Your IP : 216.73.216.93


Current Path : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/
Upload File :
Current File : /home/users/unlimited/www/web.medimeet.codeskitter.site/assets/index-CDlA-3aM.js

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-BhFu0V9O.js","assets/grid-item-abo2V3UN.js","assets/RatingStars-Xxs9oeQM.js","assets/swiper-react-DZpfHymF.js","assets/pagination-BynYDlvf.js","assets/swiper-DV8PrLMj.css","assets/Doctors-C-g8NhI4.js","assets/input-element-Bbt7yrud.js","assets/Search-DD7xJH3Y.js","assets/pagination-DE0q59Ew.css","assets/Doctor-DqJ_VBtV.js","assets/LoginModal-Di7rx5KF.js","assets/defaultISD-DlwB0yeS.js","assets/firebase.config-Dvc5QyhP.js","assets/NewAppoinment-YMFgHmhH.js","assets/index.esm-DVyQvRf9.js","assets/radio-BlI-vBak.js","assets/card-body-t9yk5qgp.js","assets/Department-K07iNNVe.js","assets/AppoinmentSuccess-Ch8k19j7.js","assets/badge-DWO6rCuf.js","assets/LabTests-D3s6j9H9.js","assets/CartData-DNPZNQPL.js","assets/NewAppoinmentsByDoctor-564T38V5.js","assets/LabTestDetails-CC2a3Bh_.js","assets/Appoinments-CAwk6Q6W.js","assets/StatusBadge-kb4wYcEV.js","assets/AppointmentDetails-DwyOVIYA.js","assets/textarea-Dc-gtYUz.js","assets/index-kV9pP1gE.js","assets/Cart-1vKYoXjM.js","assets/Products-DKNy10AK.js","assets/ProductDetails-x5UXZ9sh.js","assets/ProductDetails-CteQybwo.css","assets/OrderDetails-BtGMwEyy.js","assets/Profile-Bzg05Lgl.js","assets/Login-DkaLjszk.js","assets/Vitals-BuW64z6S.js","assets/Spo2-9vcXd20-.js","assets/BloodPressure-ZI1H-yVP.js","assets/Spo2-CHwTDi8u.css","assets/Files-Ds6F8Vo3.js","assets/UseDebounce-D_5sbxMP.js","assets/Prescriptions-BA8g4JNS.js","assets/FamilyMember-BbVKNFdE.js","assets/Signup-CY8uWC6D.js","assets/FamilyMembers-BkAeHXCt.js","assets/ContactUs-DGKXPXUF.js"])))=>i.map(i=>d[i]);
var vs=i=>{throw TypeError(i)};var Kn=(i,s,o)=>s.has(i)||vs("Cannot "+o);var _t=(i,s,o)=>(Kn(i,s,"read from private field"),o?o.call(i):s.get(i)),zt=(i,s,o)=>s.has(i)?vs("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,o),Dt=(i,s,o,a)=>(Kn(i,s,"write to private field"),a?a.call(i,o):s.set(i,o),o),Ht=(i,s,o)=>(Kn(i,s,"access private method"),o);var Dn=(i,s,o,a)=>({set _(_){Dt(i,s,_,o)},get _(){return _t(i,s,a)}});function _mergeNamespaces(i,s){for(var o=0;o<s.length;o++){const a=s[o];if(typeof a!="string"&&!Array.isArray(a)){for(const _ in a)if(_!=="default"&&!(_ in i)){const $=Object.getOwnPropertyDescriptor(a,_);$&&Object.defineProperty(i,_,$.get?$:{enumerable:!0,get:()=>a[_]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const _ of document.querySelectorAll('link[rel="modulepreload"]'))a(_);new MutationObserver(_=>{for(const $ of _)if($.type==="childList")for(const j of $.addedNodes)j.tagName==="LINK"&&j.rel==="modulepreload"&&a(j)}).observe(document,{childList:!0,subtree:!0});function o(_){const $={};return _.integrity&&($.integrity=_.integrity),_.referrerPolicy&&($.referrerPolicy=_.referrerPolicy),_.crossOrigin==="use-credentials"?$.credentials="include":_.crossOrigin==="anonymous"?$.credentials="omit":$.credentials="same-origin",$}function a(_){if(_.ep)return;_.ep=!0;const $=o(_);fetch(_.href,$)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function getAugmentedNamespace(i){if(i.__esModule)return i;var s=i.default;if(typeof s=="function"){var o=function a(){return this instanceof a?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};o.prototype=s.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(i).forEach(function(a){var _=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(o,a,_.get?_:{enumerable:!0,get:function(){return i[a]}})}),o}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l$2=Symbol.for("react.element"),n$2=Symbol.for("react.portal"),p$3=Symbol.for("react.fragment"),q$2=Symbol.for("react.strict_mode"),r$2=Symbol.for("react.profiler"),t$2=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$3=Symbol.for("react.forward_ref"),w$2=Symbol.for("react.suspense"),x$1=Symbol.for("react.memo"),y$1=Symbol.for("react.lazy"),z$2=Symbol.iterator;function A$2(i){return i===null||typeof i!="object"?null:(i=z$2&&i[z$2]||i["@@iterator"],typeof i=="function"?i:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$1={};function E$1(i,s,o){this.props=i,this.context=s,this.refs=D$1,this.updater=o||B$1}E$1.prototype.isReactComponent={};E$1.prototype.setState=function(i,s){if(typeof i!="object"&&typeof i!="function"&&i!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,i,s,"setState")};E$1.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function F(){}F.prototype=E$1.prototype;function G$1(i,s,o){this.props=i,this.context=s,this.refs=D$1,this.updater=o||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$1.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$1={key:!0,ref:!0,__self:!0,__source:!0};function M$1(i,s,o){var a,_={},$=null,j=null;if(s!=null)for(a in s.ref!==void 0&&(j=s.ref),s.key!==void 0&&($=""+s.key),s)J.call(s,a)&&!L$1.hasOwnProperty(a)&&(_[a]=s[a]);var _e=arguments.length-2;if(_e===1)_.children=o;else if(1<_e){for(var et=Array(_e),tt=0;tt<_e;tt++)et[tt]=arguments[tt+2];_.children=et}if(i&&i.defaultProps)for(a in _e=i.defaultProps,_e)_[a]===void 0&&(_[a]=_e[a]);return{$$typeof:l$2,type:i,key:$,ref:j,props:_,_owner:K$1.current}}function N$1(i,s){return{$$typeof:l$2,type:i.type,key:s,ref:i.ref,props:i.props,_owner:i._owner}}function O$1(i){return typeof i=="object"&&i!==null&&i.$$typeof===l$2}function escape$2(i){var s={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(o){return s[o]})}var P$1=/\/+/g;function Q$1(i,s){return typeof i=="object"&&i!==null&&i.key!=null?escape$2(""+i.key):s.toString(36)}function R$1(i,s,o,a,_){var $=typeof i;($==="undefined"||$==="boolean")&&(i=null);var j=!1;if(i===null)j=!0;else switch($){case"string":case"number":j=!0;break;case"object":switch(i.$$typeof){case l$2:case n$2:j=!0}}if(j)return j=i,_=_(j),i=a===""?"."+Q$1(j,0):a,I$1(_)?(o="",i!=null&&(o=i.replace(P$1,"$&/")+"/"),R$1(_,s,o,"",function(tt){return tt})):_!=null&&(O$1(_)&&(_=N$1(_,o+(!_.key||j&&j.key===_.key?"":(""+_.key).replace(P$1,"$&/")+"/")+i)),s.push(_)),1;if(j=0,a=a===""?".":a+":",I$1(i))for(var _e=0;_e<i.length;_e++){$=i[_e];var et=a+Q$1($,_e);j+=R$1($,s,o,et,_)}else if(et=A$2(i),typeof et=="function")for(i=et.call(i),_e=0;!($=i.next()).done;)$=$.value,et=a+Q$1($,_e++),j+=R$1($,s,o,et,_);else if($==="object")throw s=String(i),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return j}function S$1(i,s,o){if(i==null)return i;var a=[],_=0;return R$1(i,a,"","",function($){return s.call(o,$,_++)}),a}function T$1(i){if(i._status===-1){var s=i._result;s=s(),s.then(function(o){(i._status===0||i._status===-1)&&(i._status=1,i._result=o)},function(o){(i._status===0||i._status===-1)&&(i._status=2,i._result=o)}),i._status===-1&&(i._status=0,i._result=s)}if(i._status===1)return i._result.default;throw i._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1};function X$1(){throw Error("act(...) is not supported in production builds of React.")}react_production_min.Children={map:S$1,forEach:function(i,s,o){S$1(i,function(){s.apply(this,arguments)},o)},count:function(i){var s=0;return S$1(i,function(){s++}),s},toArray:function(i){return S$1(i,function(s){return s})||[]},only:function(i){if(!O$1(i))throw Error("React.Children.only expected to receive a single React element child.");return i}};react_production_min.Component=E$1;react_production_min.Fragment=p$3;react_production_min.Profiler=r$2;react_production_min.PureComponent=G$1;react_production_min.StrictMode=q$2;react_production_min.Suspense=w$2;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$1;react_production_min.act=X$1;react_production_min.cloneElement=function(i,s,o){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var a=C$1({},i.props),_=i.key,$=i.ref,j=i._owner;if(s!=null){if(s.ref!==void 0&&($=s.ref,j=K$1.current),s.key!==void 0&&(_=""+s.key),i.type&&i.type.defaultProps)var _e=i.type.defaultProps;for(et in s)J.call(s,et)&&!L$1.hasOwnProperty(et)&&(a[et]=s[et]===void 0&&_e!==void 0?_e[et]:s[et])}var et=arguments.length-2;if(et===1)a.children=o;else if(1<et){_e=Array(et);for(var tt=0;tt<et;tt++)_e[tt]=arguments[tt+2];a.children=_e}return{$$typeof:l$2,type:i.type,key:_,ref:$,props:a,_owner:j}};react_production_min.createContext=function(i){return i={$$typeof:u,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:t$2,_context:i},i.Consumer=i};react_production_min.createElement=M$1;react_production_min.createFactory=function(i){var s=M$1.bind(null,i);return s.type=i,s};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(i){return{$$typeof:v$3,render:i}};react_production_min.isValidElement=O$1;react_production_min.lazy=function(i){return{$$typeof:y$1,_payload:{_status:-1,_result:i},_init:T$1}};react_production_min.memo=function(i,s){return{$$typeof:x$1,type:i,compare:s===void 0?null:s}};react_production_min.startTransition=function(i){var s=V$1.transition;V$1.transition={};try{i()}finally{V$1.transition=s}};react_production_min.unstable_act=X$1;react_production_min.useCallback=function(i,s){return U$1.current.useCallback(i,s)};react_production_min.useContext=function(i){return U$1.current.useContext(i)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(i){return U$1.current.useDeferredValue(i)};react_production_min.useEffect=function(i,s){return U$1.current.useEffect(i,s)};react_production_min.useId=function(){return U$1.current.useId()};react_production_min.useImperativeHandle=function(i,s,o){return U$1.current.useImperativeHandle(i,s,o)};react_production_min.useInsertionEffect=function(i,s){return U$1.current.useInsertionEffect(i,s)};react_production_min.useLayoutEffect=function(i,s){return U$1.current.useLayoutEffect(i,s)};react_production_min.useMemo=function(i,s){return U$1.current.useMemo(i,s)};react_production_min.useReducer=function(i,s,o){return U$1.current.useReducer(i,s,o)};react_production_min.useRef=function(i){return U$1.current.useRef(i)};react_production_min.useState=function(i){return U$1.current.useState(i)};react_production_min.useSyncExternalStore=function(i,s,o){return U$1.current.useSyncExternalStore(i,s,o)};react_production_min.useTransition=function(){return U$1.current.useTransition()};react_production_min.version="18.3.1";react.exports=react_production_min;var reactExports=react.exports;const React$1=getDefaultExportFromCjs(reactExports),React$2=_mergeNamespaces({__proto__:null,default:React$1},[reactExports]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f$1=reactExports,k$1=Symbol.for("react.element"),l$1=Symbol.for("react.fragment"),m$2=Object.prototype.hasOwnProperty,n$1=f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$2={key:!0,ref:!0,__self:!0,__source:!0};function q$1(i,s,o){var a,_={},$=null,j=null;o!==void 0&&($=""+o),s.key!==void 0&&($=""+s.key),s.ref!==void 0&&(j=s.ref);for(a in s)m$2.call(s,a)&&!p$2.hasOwnProperty(a)&&(_[a]=s[a]);if(i&&i.defaultProps)for(a in s=i.defaultProps,s)_[a]===void 0&&(_[a]=s[a]);return{$$typeof:k$1,type:i,key:$,ref:j,props:_,_owner:n$1.current}}reactJsxRuntime_production_min.Fragment=l$1;reactJsxRuntime_production_min.jsx=q$1;reactJsxRuntime_production_min.jsxs=q$1;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports;function isHTMLElement$2(i){return i!=null&&typeof i=="object"&&"nodeType"in i&&i.nodeType===Node.ELEMENT_NODE}function isBrowser$3(){return!!(globalThis!=null&&globalThis.document)}function isHiddenElement(i){return i.parentElement&&isHiddenElement(i.parentElement)?!0:i.hidden}function isContentEditableElement(i){const s=i.getAttribute("contenteditable");return s!=="false"&&s!=null}function isDisabledElement(i){return!!i.getAttribute("disabled")||!!i.getAttribute("aria-disabled")}function getOwnerWindow(i){var s;return((s=getOwnerDocument$2(i))==null?void 0:s.defaultView)??window}function getOwnerDocument$2(i){return isHTMLElement$2(i)?i.ownerDocument:document}function getActiveElement$1(i){return getOwnerDocument$2(i).activeElement}function assignAfter(i,...s){if(i==null)throw new TypeError("Cannot convert undefined or null to object");const o={...i};for(const a of s)if(a!=null)for(const _ in a)Object.prototype.hasOwnProperty.call(a,_)&&(_ in o&&delete o[_],o[_]=a[_]);return o}const dataAttr=i=>i?"":void 0,ariaAttr=i=>i?!0:void 0;function isArray$2(i){return Array.isArray(i)}function isObject$2(i){const s=typeof i;return i!=null&&(s==="object"||s==="function")&&!isArray$2(i)}function getLastItem(i){const s=i==null?0:i.length;return s?i[s-1]:void 0}function analyzeCSSValue$1(i){const s=parseFloat(i.toString()),o=i.toString().replace(String(s),"");return{unitless:!o,value:s,unit:o}}function px$1(i){if(i==null)return i;const{unitless:s}=analyzeCSSValue$1(i);return s||typeof i=="number"?`${i}px`:i}const sortByBreakpointValue=(i,s)=>parseInt(i[1],10)>parseInt(s[1],10)?1:-1,sortBps=i=>Object.fromEntries(Object.entries(i).sort(sortByBreakpointValue));function normalize$1(i){const s=sortBps(i);return Object.assign(Object.values(s),s)}function keys$1(i){const s=Object.keys(sortBps(i));return new Set(s)}function subtract$4(i){if(!i)return i;i=px$1(i)??i;const s=-.02;return typeof i=="number"?`${i+s}`:i.replace(/(\d+\.?\d*)/u,o=>`${parseFloat(o)+s}`)}function toMediaQueryString(i,s){const o=["@media screen"];return i&&o.push("and",`(min-width: ${px$1(i)})`),s&&o.push("and",`(max-width: ${px$1(s)})`),o.join(" ")}function analyzeBreakpoints(i){if(!i)return null;i.base=i.base??"0px";const s=normalize$1(i),o=Object.entries(i).sort(sortByBreakpointValue).map(([$,j],_e,et)=>{let[,tt]=et[_e+1]??[];return tt=parseFloat(tt)>0?subtract$4(tt):void 0,{_minW:subtract$4(j),breakpoint:$,minW:j,maxW:tt,maxWQuery:toMediaQueryString(null,tt),minWQuery:toMediaQueryString(j),minMaxQuery:toMediaQueryString(j,tt)}}),a=keys$1(i),_=Array.from(a.values());return{keys:a,normalized:s,isResponsive($){const j=Object.keys($);return j.length>0&&j.every(_e=>a.has(_e))},asObject:sortBps(i),asArray:normalize$1(i),details:o,get($){return o.find(j=>j.breakpoint===$)},media:[null,...s.map($=>toMediaQueryString($)).slice(1)],toArrayValue($){if(!isObject$2($))throw new Error("toArrayValue: value must be an object");const j=_.map(_e=>$[_e]??null);for(;getLastItem(j)===null;)j.pop();return j},toObjectValue($){if(!Array.isArray($))throw new Error("toObjectValue: value must be an array");return $.reduce((j,_e,et)=>{const tt=_[et];return tt!=null&&_e!=null&&(j[tt]=_e),j},{})}}}function callAll(...i){return function(...o){i.forEach(a=>a==null?void 0:a(...o))}}function callAllHandlers(...i){return function(o){i.some(a=>(a==null||a(o),o==null?void 0:o.defaultPrevented))}}function getValidChildren(i){return reactExports.Children.toArray(i).filter(s=>reactExports.isValidElement(s))}function compact(i){const s=Object.assign({},i);for(let o in s)s[o]===void 0&&delete s[o];return s}function getErrorMessage(i,s){return`${i} returned \`undefined\`. Seems you forgot to wrap component within ${s}`}function createContext(i={}){const{name:s,strict:o=!0,hookName:a="useContext",providerName:_="Provider",errorMessage:$,defaultValue:j}=i,_e=reactExports.createContext(j);_e.displayName=s;function et(){var rt;const tt=reactExports.useContext(_e);if(!tt&&o){const it=new Error($??getErrorMessage(a,_));throw it.name="ContextError",(rt=Error.captureStackTrace)==null||rt.call(Error,it,et),it}return tt}return[_e.Provider,et,_e]}const cx=(...i)=>i.filter(Boolean).join(" "),hasTabIndex=i=>i.hasAttribute("tabindex"),hasNegativeTabIndex=i=>hasTabIndex(i)&&i.tabIndex===-1;function isFocusable(i){if(!isHTMLElement$2(i)||isHiddenElement(i)||isDisabledElement(i))return!1;const{localName:s}=i;if(["input","select","textarea","button"].indexOf(s)>=0)return!0;const a={a:()=>i.hasAttribute("href"),audio:()=>i.hasAttribute("controls"),video:()=>i.hasAttribute("controls")};return s in a?a[s]():isContentEditableElement(i)?!0:hasTabIndex(i)}function isTabbable(i){return i?isHTMLElement$2(i)&&isFocusable(i)&&!hasNegativeTabIndex(i):!1}const focusableElList=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],focusableElSelector=focusableElList.join(),isVisible=i=>i.offsetWidth>0&&i.offsetHeight>0;function getAllFocusable(i){const s=Array.from(i.querySelectorAll(focusableElSelector));return s.unshift(i),s.filter(o=>isFocusable(o)&&isVisible(o))}function get$5(i,s,o,a){const _=typeof s=="string"?s.split("."):[s];for(a=0;a<_.length&&i;a+=1)i=i[_[a]];return i===void 0?o:i}const memoize$2=i=>{const s=new WeakMap;return(a,_,$,j)=>{if(typeof a>"u")return i(a,_,$);s.has(a)||s.set(a,new Map);const _e=s.get(a);if(_e.has(_))return _e.get(_);const et=i(a,_,$,j);return _e.set(_,et),et}},memoizedGet$1=memoize$2(get$5),interopDefault=i=>i.default||i;function lazyDisclosure(i){const{wasSelected:s,enabled:o,isSelected:a,mode:_="unmount"}=i;return!!(!o||a||_==="keepMounted"&&s)}function omit(i,s=[]){const o=Object.assign({},i);for(const a of s)a in o&&delete o[a];return o}function pick(i,s){const o={};for(const a of s)a in i&&(o[a]=i[a]);return o}function mapResponsive(i,s){return Array.isArray(i)?i.map(o=>o===null?null:s(o)):isObject$2(i)?Object.keys(i).reduce((o,a)=>(o[a]=s(i[a]),o),{}):i!=null?s(i):null}const isFunction$4=i=>typeof i=="function";function runIfFn$1(i,...s){return isFunction$4(i)?i(...s):i}function split(i,s){const o={},a={};for(const[_,$]of Object.entries(i))s.includes(_)?o[_]=$:a[_]=$;return[o,a]}function splitProps(i,...s){const o=Object.getOwnPropertyDescriptors(i),a=Object.keys(o),_=j=>{const _e={};for(let et=0;et<j.length;et++){const tt=j[et];o[tt]&&(Object.defineProperty(_e,tt,o[tt]),delete o[tt])}return _e},$=j=>_(Array.isArray(j)?j:a.filter(j));return s.map($).concat(_(a))}function walkObject(i,s,o={}){const{stop:a,getKey:_}=o;function $(j,_e=[]){if(isObject$2(j)||Array.isArray(j)){const et={};for(const[tt,rt]of Object.entries(j)){const it=(_==null?void 0:_(tt))??tt,nt=[..._e,it];if(a!=null&&a(j,nt))return s(j,_e);et[it]=$(rt,nt)}return et}return s(j,_e)}return $(i)}const warn$1=i=>{const{condition:s,message:o}=i};var lodash_mergewith={exports:{}};lodash_mergewith.exports;(function(i,s){var o=200,a="__lodash_hash_undefined__",_=800,$=16,j=9007199254740991,_e="[object Arguments]",et="[object Array]",tt="[object AsyncFunction]",rt="[object Boolean]",it="[object Date]",nt="[object Error]",ut="[object Function]",ct="[object GeneratorFunction]",st="[object Map]",dt="[object Number]",ot="[object Null]",lt="[object Object]",at="[object Proxy]",ft="[object RegExp]",ht="[object Set]",mt="[object String]",gt="[object Undefined]",vt="[object WeakMap]",St="[object ArrayBuffer]",wt="[object DataView]",Pt="[object Float32Array]",Rt="[object Float64Array]",It="[object Int8Array]",jt="[object Int16Array]",Mt="[object Int32Array]",xt="[object Uint8Array]",bt="[object Uint8ClampedArray]",pt="[object Uint16Array]",yt="[object Uint32Array]",kt=/[\\^$.*+?()[\]{}|]/g,Et=/^\[object .+?Constructor\]$/,$t=/^(?:0|[1-9]\d*)$/,At={};At[Pt]=At[Rt]=At[It]=At[jt]=At[Mt]=At[xt]=At[bt]=At[pt]=At[yt]=!0,At[_e]=At[et]=At[St]=At[rt]=At[wt]=At[it]=At[nt]=At[ut]=At[st]=At[dt]=At[lt]=At[ft]=At[ht]=At[mt]=At[vt]=!1;var Ot=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Vt=typeof self=="object"&&self&&self.Object===Object&&self,Lt=Ot||Vt||Function("return this")(),Wt=s&&!s.nodeType&&s,qt=Wt&&!0&&i&&!i.nodeType&&i,dr=qt&&qt.exports===Wt,ir=dr&&Ot.process,Zt=function(){try{var Ct=qt&&qt.require&&qt.require("util").types;return Ct||ir&&ir.binding&&ir.binding("util")}catch{}}(),or=Zt&&Zt.isTypedArray;function Ut(Ct,Tt,Ft){switch(Ft.length){case 0:return Ct.call(Tt);case 1:return Ct.call(Tt,Ft[0]);case 2:return Ct.call(Tt,Ft[0],Ft[1]);case 3:return Ct.call(Tt,Ft[0],Ft[1],Ft[2])}return Ct.apply(Tt,Ft)}function Bt(Ct,Tt){for(var Ft=-1,Nt=Array(Ct);++Ft<Ct;)Nt[Ft]=Tt(Ft);return Nt}function yr(Ct){return function(Tt){return Ct(Tt)}}function rr(Ct,Tt){return Ct==null?void 0:Ct[Tt]}function ar(Ct,Tt){return function(Ft){return Ct(Tt(Ft))}}var lr=Array.prototype,cr=Function.prototype,Jt=Object.prototype,nr=Lt["__core-js_shared__"],pr=cr.toString,ur=Jt.hasOwnProperty,hr=function(){var Ct=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return Ct?"Symbol(src)_1."+Ct:""}(),br=Jt.toString,mr=pr.call(Object),wr=RegExp("^"+pr.call(ur).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=dr?Lt.Buffer:void 0,Kr=Lt.Symbol,Xr=Lt.Uint8Array;kr&&kr.allocUnsafe;var ns=ar(Object.getPrototypeOf,Object),is=Object.create,qs=Jt.propertyIsEnumerable,Ks=lr.splice,Qr=Kr?Kr.toStringTag:void 0,$n=function(){try{var Ct=Nn(Object,"defineProperty");return Ct({},"",{}),Ct}catch{}}(),Xs=kr?kr.isBuffer:void 0,ss=Math.max,Qs=Date.now,os=Nn(Lt,"Map"),wn=Nn(Object,"create"),Zs=function(){function Ct(){}return function(Tt){if(!Jr(Tt))return{};if(is)return is(Tt);Ct.prototype=Tt;var Ft=new Ct;return Ct.prototype=void 0,Ft}}();function Zr(Ct){var Tt=-1,Ft=Ct==null?0:Ct.length;for(this.clear();++Tt<Ft;){var Nt=Ct[Tt];this.set(Nt[0],Nt[1])}}function Js(){this.__data__=wn?wn(null):{},this.size=0}function eo(Ct){var Tt=this.has(Ct)&&delete this.__data__[Ct];return this.size-=Tt?1:0,Tt}function ro(Ct){var Tt=this.__data__;if(wn){var Ft=Tt[Ct];return Ft===a?void 0:Ft}return ur.call(Tt,Ct)?Tt[Ct]:void 0}function no(Ct){var Tt=this.__data__;return wn?Tt[Ct]!==void 0:ur.call(Tt,Ct)}function io(Ct,Tt){var Ft=this.__data__;return this.size+=this.has(Ct)?0:1,Ft[Ct]=wn&&Tt===void 0?a:Tt,this}Zr.prototype.clear=Js,Zr.prototype.delete=eo,Zr.prototype.get=ro,Zr.prototype.has=no,Zr.prototype.set=io;function Fr(Ct){var Tt=-1,Ft=Ct==null?0:Ct.length;for(this.clear();++Tt<Ft;){var Nt=Ct[Tt];this.set(Nt[0],Nt[1])}}function so(){this.__data__=[],this.size=0}function oo(Ct){var Tt=this.__data__,Ft=Fn(Tt,Ct);if(Ft<0)return!1;var Nt=Tt.length-1;return Ft==Nt?Tt.pop():Ks.call(Tt,Ft,1),--this.size,!0}function ao(Ct){var Tt=this.__data__,Ft=Fn(Tt,Ct);return Ft<0?void 0:Tt[Ft][1]}function lo(Ct){return Fn(this.__data__,Ct)>-1}function co(Ct,Tt){var Ft=this.__data__,Nt=Fn(Ft,Ct);return Nt<0?(++this.size,Ft.push([Ct,Tt])):Ft[Nt][1]=Tt,this}Fr.prototype.clear=so,Fr.prototype.delete=oo,Fr.prototype.get=ao,Fr.prototype.has=lo,Fr.prototype.set=co;function cn(Ct){var Tt=-1,Ft=Ct==null?0:Ct.length;for(this.clear();++Tt<Ft;){var Nt=Ct[Tt];this.set(Nt[0],Nt[1])}}function uo(){this.size=0,this.__data__={hash:new Zr,map:new(os||Fr),string:new Zr}}function fo(Ct){var Tt=jn(this,Ct).delete(Ct);return this.size-=Tt?1:0,Tt}function ho(Ct){return jn(this,Ct).get(Ct)}function po(Ct){return jn(this,Ct).has(Ct)}function mo(Ct,Tt){var Ft=jn(this,Ct),Nt=Ft.size;return Ft.set(Ct,Tt),this.size+=Ft.size==Nt?0:1,this}cn.prototype.clear=uo,cn.prototype.delete=fo,cn.prototype.get=ho,cn.prototype.has=po,cn.prototype.set=mo;function un(Ct){var Tt=this.__data__=new Fr(Ct);this.size=Tt.size}function go(){this.__data__=new Fr,this.size=0}function yo(Ct){var Tt=this.__data__,Ft=Tt.delete(Ct);return this.size=Tt.size,Ft}function vo(Ct){return this.__data__.get(Ct)}function xo(Ct){return this.__data__.has(Ct)}function bo(Ct,Tt){var Ft=this.__data__;if(Ft instanceof Fr){var Nt=Ft.__data__;if(!os||Nt.length<o-1)return Nt.push([Ct,Tt]),this.size=++Ft.size,this;Ft=this.__data__=new cn(Nt)}return Ft.set(Ct,Tt),this.size=Ft.size,this}un.prototype.clear=go,un.prototype.delete=yo,un.prototype.get=vo,un.prototype.has=xo,un.prototype.set=bo;function So(Ct,Tt){var Ft=Hn(Ct),Nt=!Ft&&Wn(Ct),Yt=!Ft&&!Nt&&fs(Ct),Qt=!Ft&&!Nt&&!Yt&&ps(Ct),er=Ft||Nt||Yt||Qt,Kt=er?Bt(Ct.length,String):[],tr=Kt.length;for(var Pr in Ct)er&&(Pr=="length"||Yt&&(Pr=="offset"||Pr=="parent")||Qt&&(Pr=="buffer"||Pr=="byteLength"||Pr=="byteOffset")||us(Pr,tr))||Kt.push(Pr);return Kt}function Vn(Ct,Tt,Ft){(Ft!==void 0&&!On(Ct[Tt],Ft)||Ft===void 0&&!(Tt in Ct))&&Bn(Ct,Tt,Ft)}function Eo(Ct,Tt,Ft){var Nt=Ct[Tt];(!(ur.call(Ct,Tt)&&On(Nt,Ft))||Ft===void 0&&!(Tt in Ct))&&Bn(Ct,Tt,Ft)}function Fn(Ct,Tt){for(var Ft=Ct.length;Ft--;)if(On(Ct[Ft][0],Tt))return Ft;return-1}function Bn(Ct,Tt,Ft){Tt=="__proto__"&&$n?$n(Ct,Tt,{configurable:!0,enumerable:!0,value:Ft,writable:!0}):Ct[Tt]=Ft}var Co=Oo();function In(Ct){return Ct==null?Ct===void 0?gt:ot:Qr&&Qr in Object(Ct)?Do(Ct):Wo(Ct)}function ls(Ct){return kn(Ct)&&In(Ct)==_e}function wo(Ct){if(!Jr(Ct)||No(Ct))return!1;var Tt=Gn(Ct)?wr:Et;return Tt.test(Yo(Ct))}function ko(Ct){return kn(Ct)&&hs(Ct.length)&&!!At[In(Ct)]}function _o(Ct){if(!Jr(Ct))return zo(Ct);var Tt=ds(Ct),Ft=[];for(var Nt in Ct)Nt=="constructor"&&(Tt||!ur.call(Ct,Nt))||Ft.push(Nt);return Ft}function cs(Ct,Tt,Ft,Nt,Yt){Ct!==Tt&&Co(Tt,function(Qt,er){if(Yt||(Yt=new un),Jr(Qt))Po(Ct,Tt,er,Ft,cs,Nt,Yt);else{var Kt=Nt?Nt(zn(Ct,er),Qt,er+"",Ct,Tt,Yt):void 0;Kt===void 0&&(Kt=Qt),Vn(Ct,er,Kt)}},ms)}function Po(Ct,Tt,Ft,Nt,Yt,Qt,er){var Kt=zn(Ct,Ft),tr=zn(Tt,Ft),Pr=er.get(tr);if(Pr){Vn(Ct,Ft,Pr);return}var Cr=Qt?Qt(Kt,tr,Ft+"",Ct,Tt,er):void 0,_n=Cr===void 0;if(_n){var Yn=Hn(tr),qn=!Yn&&fs(tr),ys=!Yn&&!qn&&ps(tr);Cr=tr,Yn||qn||ys?Hn(Kt)?Cr=Kt:qo(Kt)?Cr=Fo(Kt):qn?(_n=!1,Cr=Ao(tr)):ys?(_n=!1,Cr=$o(tr)):Cr=[]:Ko(tr)||Wn(tr)?(Cr=Kt,Wn(Kt)?Cr=Xo(Kt):(!Jr(Kt)||Gn(Kt))&&(Cr=Lo(tr))):_n=!1}_n&&(er.set(tr,Cr),Yt(Cr,tr,Nt,Qt,er),er.delete(tr)),Vn(Ct,Ft,Cr)}function To(Ct,Tt){return Uo(Ho(Ct,Tt,gs),Ct+"")}var Ro=$n?function(Ct,Tt){return $n(Ct,"toString",{configurable:!0,enumerable:!1,value:Zo(Tt),writable:!0})}:gs;function Ao(Ct,Tt){return Ct.slice()}function Mo(Ct){var Tt=new Ct.constructor(Ct.byteLength);return new Xr(Tt).set(new Xr(Ct)),Tt}function $o(Ct,Tt){var Ft=Mo(Ct.buffer);return new Ct.constructor(Ft,Ct.byteOffset,Ct.length)}function Fo(Ct,Tt){var Ft=-1,Nt=Ct.length;for(Tt||(Tt=Array(Nt));++Ft<Nt;)Tt[Ft]=Ct[Ft];return Tt}function Io(Ct,Tt,Ft,Nt){var Yt=!Ft;Ft||(Ft={});for(var Qt=-1,er=Tt.length;++Qt<er;){var Kt=Tt[Qt],tr=void 0;tr===void 0&&(tr=Ct[Kt]),Yt?Bn(Ft,Kt,tr):Eo(Ft,Kt,tr)}return Ft}function jo(Ct){return To(function(Tt,Ft){var Nt=-1,Yt=Ft.length,Qt=Yt>1?Ft[Yt-1]:void 0,er=Yt>2?Ft[2]:void 0;for(Qt=Ct.length>3&&typeof Qt=="function"?(Yt--,Qt):void 0,er&&Vo(Ft[0],Ft[1],er)&&(Qt=Yt<3?void 0:Qt,Yt=1),Tt=Object(Tt);++Nt<Yt;){var Kt=Ft[Nt];Kt&&Ct(Tt,Kt,Nt,Qt)}return Tt})}function Oo(Ct){return function(Tt,Ft,Nt){for(var Yt=-1,Qt=Object(Tt),er=Nt(Tt),Kt=er.length;Kt--;){var tr=er[++Yt];if(Ft(Qt[tr],tr,Qt)===!1)break}return Tt}}function jn(Ct,Tt){var Ft=Ct.__data__;return Bo(Tt)?Ft[typeof Tt=="string"?"string":"hash"]:Ft.map}function Nn(Ct,Tt){var Ft=rr(Ct,Tt);return wo(Ft)?Ft:void 0}function Do(Ct){var Tt=ur.call(Ct,Qr),Ft=Ct[Qr];try{Ct[Qr]=void 0;var Nt=!0}catch{}var Yt=br.call(Ct);return Nt&&(Tt?Ct[Qr]=Ft:delete Ct[Qr]),Yt}function Lo(Ct){return typeof Ct.constructor=="function"&&!ds(Ct)?Zs(ns(Ct)):{}}function us(Ct,Tt){var Ft=typeof Ct;return Tt=Tt??j,!!Tt&&(Ft=="number"||Ft!="symbol"&&$t.test(Ct))&&Ct>-1&&Ct%1==0&&Ct<Tt}function Vo(Ct,Tt,Ft){if(!Jr(Ft))return!1;var Nt=typeof Tt;return(Nt=="number"?Un(Ft)&&us(Tt,Ft.length):Nt=="string"&&Tt in Ft)?On(Ft[Tt],Ct):!1}function Bo(Ct){var Tt=typeof Ct;return Tt=="string"||Tt=="number"||Tt=="symbol"||Tt=="boolean"?Ct!=="__proto__":Ct===null}function No(Ct){return!!hr&&hr in Ct}function ds(Ct){var Tt=Ct&&Ct.constructor,Ft=typeof Tt=="function"&&Tt.prototype||Jt;return Ct===Ft}function zo(Ct){var Tt=[];if(Ct!=null)for(var Ft in Object(Ct))Tt.push(Ft);return Tt}function Wo(Ct){return br.call(Ct)}function Ho(Ct,Tt,Ft){return Tt=ss(Tt===void 0?Ct.length-1:Tt,0),function(){for(var Nt=arguments,Yt=-1,Qt=ss(Nt.length-Tt,0),er=Array(Qt);++Yt<Qt;)er[Yt]=Nt[Tt+Yt];Yt=-1;for(var Kt=Array(Tt+1);++Yt<Tt;)Kt[Yt]=Nt[Yt];return Kt[Tt]=Ft(er),Ut(Ct,this,Kt)}}function zn(Ct,Tt){if(!(Tt==="constructor"&&typeof Ct[Tt]=="function")&&Tt!="__proto__")return Ct[Tt]}var Uo=Go(Ro);function Go(Ct){var Tt=0,Ft=0;return function(){var Nt=Qs(),Yt=$-(Nt-Ft);if(Ft=Nt,Yt>0){if(++Tt>=_)return arguments[0]}else Tt=0;return Ct.apply(void 0,arguments)}}function Yo(Ct){if(Ct!=null){try{return pr.call(Ct)}catch{}try{return Ct+""}catch{}}return""}function On(Ct,Tt){return Ct===Tt||Ct!==Ct&&Tt!==Tt}var Wn=ls(function(){return arguments}())?ls:function(Ct){return kn(Ct)&&ur.call(Ct,"callee")&&!qs.call(Ct,"callee")},Hn=Array.isArray;function Un(Ct){return Ct!=null&&hs(Ct.length)&&!Gn(Ct)}function qo(Ct){return kn(Ct)&&Un(Ct)}var fs=Xs||Jo;function Gn(Ct){if(!Jr(Ct))return!1;var Tt=In(Ct);return Tt==ut||Tt==ct||Tt==tt||Tt==at}function hs(Ct){return typeof Ct=="number"&&Ct>-1&&Ct%1==0&&Ct<=j}function Jr(Ct){var Tt=typeof Ct;return Ct!=null&&(Tt=="object"||Tt=="function")}function kn(Ct){return Ct!=null&&typeof Ct=="object"}function Ko(Ct){if(!kn(Ct)||In(Ct)!=lt)return!1;var Tt=ns(Ct);if(Tt===null)return!0;var Ft=ur.call(Tt,"constructor")&&Tt.constructor;return typeof Ft=="function"&&Ft instanceof Ft&&pr.call(Ft)==mr}var ps=or?yr(or):ko;function Xo(Ct){return Io(Ct,ms(Ct))}function ms(Ct){return Un(Ct)?So(Ct):_o(Ct)}var Qo=jo(function(Ct,Tt,Ft,Nt){cs(Ct,Tt,Ft,Nt)});function Zo(Ct){return function(){return Ct}}function gs(Ct){return Ct}function Jo(){return!1}i.exports=Qo})(lodash_mergewith,lodash_mergewith.exports);var lodash_mergewithExports=lodash_mergewith.exports;const mergeWith=getDefaultExportFromCjs(lodash_mergewithExports);function useCallbackRef$1(i,s=[]){const o=reactExports.useRef(i);return reactExports.useEffect(()=>{o.current=i}),reactExports.useCallback((...a)=>{var _;return(_=o.current)==null?void 0:_.call(o,...a)},s)}function useEventListener(i,s,o,a){const _=useCallbackRef$1(o);return reactExports.useEffect(()=>{const $=typeof i=="function"?i():i??document;if(!(!o||!$))return $.addEventListener(s,_,a),()=>{$.removeEventListener(s,_,a)}},[s,i,a,_,o]),()=>{const $=typeof i=="function"?i():i??document;$==null||$.removeEventListener(s,_,a)}}function useAnimationState(i){const{isOpen:s,ref:o}=i,[a,_]=reactExports.useState(s),[$,j]=reactExports.useState(!1);return reactExports.useEffect(()=>{$||(_(s),j(!0))},[s,$,a]),useEventListener(()=>o.current,"animationend",()=>{_(s)}),{present:!(s?!1:!a),onComplete(){var rt;const et=getOwnerWindow(o.current),tt=new et.CustomEvent("animationend",{bubbles:!0});(rt=o.current)==null||rt.dispatchEvent(tt)}}}function useControllableState(i){const{value:s,defaultValue:o,onChange:a,shouldUpdate:_=(nt,ut)=>nt!==ut}=i,$=useCallbackRef$1(a),j=useCallbackRef$1(_),[_e,et]=reactExports.useState(o),tt=s!==void 0,rt=tt?s:_e,it=useCallbackRef$1(nt=>{const ct=typeof nt=="function"?nt(rt):nt;j(rt,ct)&&(tt||et(ct),$(ct))},[tt,$,rt,j]);return[rt,it]}function useDisclosure(i={}){const{onClose:s,onOpen:o,isOpen:a,id:_}=i,$=useCallbackRef$1(o),j=useCallbackRef$1(s),[_e,et]=reactExports.useState(i.defaultIsOpen||!1),tt=a!==void 0?a:_e,rt=a!==void 0,it=reactExports.useId(),nt=_??`disclosure-${it}`,ut=reactExports.useCallback(()=>{rt||et(!1),j==null||j()},[rt,j]),ct=reactExports.useCallback(()=>{rt||et(!0),$==null||$()},[rt,$]),st=reactExports.useCallback(()=>{tt?ut():ct()},[tt,ct,ut]);function dt(lt={}){return{...lt,"aria-expanded":tt,"aria-controls":nt,onClick(at){var ft;(ft=lt.onClick)==null||ft.call(lt,at),st()}}}function ot(lt={}){return{...lt,hidden:!tt,id:nt}}return{isOpen:tt,onOpen:ct,onClose:ut,onToggle:st,isControlled:rt,getButtonProps:dt,getDisclosureProps:ot}}const useSafeLayoutEffect$2=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:reactExports.useEffect,useUpdateEffect=(i,s)=>{const o=reactExports.useRef(!1),a=reactExports.useRef(!1);reactExports.useEffect(()=>{if(o.current&&a.current)return i();a.current=!0},s),reactExports.useEffect(()=>(o.current=!0,()=>{o.current=!1}),[])};function preventReturnFocus(i){const s=i.current;if(!s)return!1;const o=getActiveElement$1(s);return!o||s.contains(o)?!1:!!isTabbable(o)}function useFocusOnHide(i,s){const{visible:o,focusRef:a}=s,_=!o;useUpdateEffect(()=>{if(!_||preventReturnFocus(i))return;const $=(a==null?void 0:a.current)||i.current;let j;if($)return j=requestAnimationFrame(()=>{$.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(j)}},[_,i,a])}function useId(i,s){const o=reactExports.useId();return reactExports.useMemo(()=>i||[s,o].filter(Boolean).join("-"),[i,s,o])}function useIds$1(i,...s){const o=useId(i);return reactExports.useMemo(()=>s.map(a=>`${a}-${o}`),[o,s])}function assignRef$1(i,s){if(i!=null){if(typeof i=="function"){i(s);return}try{i.current=s}catch{throw new Error(`Cannot assign value '${s}' to ref '${i}'`)}}}function mergeRefs(...i){return s=>{i.forEach(o=>{assignRef$1(o,s)})}}function useMergeRefs$1(...i){return reactExports.useMemo(()=>mergeRefs(...i),i)}function useOutsideClick(i){const{ref:s,handler:o,enabled:a=!0}=i,_=useCallbackRef$1(o),j=reactExports.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;reactExports.useEffect(()=>{if(!a)return;const _e=it=>{isValidEvent(it,s)&&(j.isPointerDown=!0)},et=it=>{if(j.ignoreEmulatedMouseEvents){j.ignoreEmulatedMouseEvents=!1;return}j.isPointerDown&&o&&isValidEvent(it,s)&&(j.isPointerDown=!1,_(it))},tt=it=>{j.ignoreEmulatedMouseEvents=!0,o&&j.isPointerDown&&isValidEvent(it,s)&&(j.isPointerDown=!1,_(it))},rt=getOwnerDocument$1(s.current);return rt.addEventListener("mousedown",_e,!0),rt.addEventListener("mouseup",et,!0),rt.addEventListener("touchstart",_e,!0),rt.addEventListener("touchend",tt,!0),()=>{rt.removeEventListener("mousedown",_e,!0),rt.removeEventListener("mouseup",et,!0),rt.removeEventListener("touchstart",_e,!0),rt.removeEventListener("touchend",tt,!0)}},[o,s,_,j,a])}function isValidEvent(i,s){var a,_;const o=((a=i.composedPath)==null?void 0:a.call(i)[0])??i.target;return o&&!getOwnerDocument$1(o).contains(o)?!1:!((_=s.current)!=null&&_.contains(o))}function getOwnerDocument$1(i){return(i==null?void 0:i.ownerDocument)??document}function usePrevious$1(i){const s=reactExports.useRef(void 0);return reactExports.useEffect(()=>{s.current=i},[i]),s.current}function useTimeout(i,s){const o=useCallbackRef$1(i);reactExports.useEffect(()=>{if(s==null)return;let a=null;return a=window.setTimeout(()=>{o()},s),()=>{a&&window.clearTimeout(a)}},[s,o])}const state={open:(i,s)=>`${i}[data-open], ${i}[open], ${i}[data-state=open] ${s}`,closed:(i,s)=>`${i}[data-closed], ${i}[data-state=closed] ${s}`,hover:(i,s)=>`${i}:hover ${s}, ${i}[data-hover] ${s}`,focus:(i,s)=>`${i}:focus ${s}, ${i}[data-focus] ${s}`,focusVisible:(i,s)=>`${i}:focus-visible ${s}`,focusWithin:(i,s)=>`${i}:focus-within ${s}`,active:(i,s)=>`${i}:active ${s}, ${i}[data-active] ${s}`,disabled:(i,s)=>`${i}:disabled ${s}, ${i}[data-disabled] ${s}`,invalid:(i,s)=>`${i}:invalid ${s}, ${i}[data-invalid] ${s}`,checked:(i,s)=>`${i}:checked ${s}, ${i}[data-checked] ${s}`,placeholderShown:(i,s)=>`${i}:placeholder-shown ${s}`},toGroup=i=>merge$1(s=>i(s,"&"),"[role=group]","[data-group]",".group"),toPeer=i=>merge$1(s=>i(s,"~ &"),"[data-peer]",".peer"),merge$1=(i,...s)=>s.map(i).join(", "),pseudoSelectors={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:toGroup(state.open),_groupClosed:toGroup(state.closed),_groupHover:toGroup(state.hover),_peerHover:toPeer(state.hover),_groupFocus:toGroup(state.focus),_peerFocus:toPeer(state.focus),_groupFocusVisible:toGroup(state.focusVisible),_peerFocusVisible:toPeer(state.focusVisible),_groupActive:toGroup(state.active),_peerActive:toPeer(state.active),_groupDisabled:toGroup(state.disabled),_peerDisabled:toPeer(state.disabled),_groupInvalid:toGroup(state.invalid),_peerInvalid:toPeer(state.invalid),_groupChecked:toGroup(state.checked),_peerChecked:toPeer(state.checked),_groupFocusWithin:toGroup(state.focusWithin),_peerFocusWithin:toPeer(state.focusWithin),_peerPlaceholderShown:toPeer(state.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},pseudoPropNames=Object.keys(pseudoSelectors),isImportant=i=>/!(important)?$/.test(i),withoutImportant=i=>typeof i=="string"?i.replace(/!(important)?$/,"").trim():i,tokenToCSSVar=(i,s)=>o=>{const a=String(s),_=isImportant(a),$=withoutImportant(a),j=i?`${i}.${$}`:$;let _e=isObject$2(o.__cssMap)&&j in o.__cssMap?o.__cssMap[j].varRef:s;return _e=withoutImportant(_e),_?`${_e} !important`:_e};function createTransform(i){const{scale:s,transform:o,compose:a}=i;return($,j)=>{const _e=tokenToCSSVar(s,$)(j);let et=(o==null?void 0:o(_e,j))??_e;return a&&(et=a(et,j)),et}}const pipe$2=(...i)=>s=>i.reduce((o,a)=>a(o),s);function toConfig(i,s){return o=>{const a={property:o,scale:i};return a.transform=createTransform({scale:i,transform:s}),a}}const getRtl=({rtl:i,ltr:s})=>o=>o.direction==="rtl"?i:s;function logical(i){const{property:s,scale:o,transform:a}=i;return{scale:o,property:getRtl(s),transform:o?createTransform({scale:o,compose:a}):a}}const transformTemplate=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function getTransformTemplate(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...transformTemplate].join(" ")}function getTransformGpuTemplate(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...transformTemplate].join(" ")}const filterTemplate={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},backdropFilterTemplate={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function getRingTemplate(i){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":i,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},directionMap={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},valueSet=new Set(Object.values(directionMap)),globalSet=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),trimSpace=i=>i.trim();function parseGradient(i,s){if(i==null||globalSet.has(i))return i;if(!(isCSSFunction(i)||globalSet.has(i)))return`url('${i}')`;const _=/(^[a-z-A-Z]+)\((.*)\)/g.exec(i),$=_==null?void 0:_[1],j=_==null?void 0:_[2];if(!$||!j)return i;const _e=$.includes("-gradient")?$:`${$}-gradient`,[et,...tt]=j.split(",").map(trimSpace).filter(Boolean);if((tt==null?void 0:tt.length)===0)return i;const rt=et in directionMap?directionMap[et]:et;tt.unshift(rt);const it=tt.map(nt=>{if(valueSet.has(nt))return nt;const ut=nt.indexOf(" "),[ct,st]=ut!==-1?[nt.substr(0,ut),nt.substr(ut+1)]:[nt],dt=isCSSFunction(st)?st:st&&st.split(" "),ot=`colors.${ct}`,lt=ot in s.__cssMap?s.__cssMap[ot].varRef:ct;return dt?[lt,...Array.isArray(dt)?dt:[dt]].join(" "):lt});return`${_e}(${it.join(", ")})`}const isCSSFunction=i=>typeof i=="string"&&i.includes("(")&&i.includes(")"),gradientTransform=(i,s)=>parseGradient(i,s??{});function isCssVar$1(i){return/^var\(--.+\)$/.test(i)}const analyzeCSSValue=i=>{const s=parseFloat(i.toString()),o=i.toString().replace(String(s),"");return{unitless:!o,value:s,unit:o}},wrap=i=>s=>`${i}(${s})`,transformFunctions={filter(i){return i!=="auto"?i:filterTemplate},backdropFilter(i){return i!=="auto"?i:backdropFilterTemplate},ring(i){return getRingTemplate(transformFunctions.px(i))},bgClip(i){return i==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:i}},transform(i){return i==="auto"?getTransformTemplate():i==="auto-gpu"?getTransformGpuTemplate():i},vh(i){return i==="$100vh"?"var(--chakra-vh)":i},px(i){if(i==null)return i;const{unitless:s}=analyzeCSSValue(i);return s||typeof i=="number"?`${i}px`:i},fraction(i){return typeof i!="number"||i>1?i:`${i*100}%`},float(i,s){const o={left:"right",right:"left"};return s.direction==="rtl"?o[i]:i},degree(i){if(isCssVar$1(i)||i==null)return i;const s=typeof i=="string"&&!i.endsWith("deg");return typeof i=="number"||s?`${i}deg`:i},gradient:gradientTransform,blur:wrap("blur"),opacity:wrap("opacity"),brightness:wrap("brightness"),contrast:wrap("contrast"),dropShadow:wrap("drop-shadow"),grayscale:wrap("grayscale"),hueRotate:i=>wrap("hue-rotate")(transformFunctions.degree(i)),invert:wrap("invert"),saturate:wrap("saturate"),sepia:wrap("sepia"),bgImage(i){return i==null||isCSSFunction(i)||globalSet.has(i)?i:`url(${i})`},outline(i){const s=String(i)==="0"||String(i)==="none";return i!==null&&s?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:i}},flexDirection(i){const{space:s,divide:o}=flexDirectionTemplate[i]??{},a={flexDirection:i};return s&&(a[s]=1),o&&(a[o]=1),a}},t$1={borderWidths:toConfig("borderWidths"),borderStyles:toConfig("borderStyles"),colors:toConfig("colors"),borders:toConfig("borders"),gradients:toConfig("gradients",transformFunctions.gradient),radii:toConfig("radii",transformFunctions.px),space:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),spaceT:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),degreeT(i){return{property:i,transform:transformFunctions.degree}},prop(i,s,o){return{property:i,scale:s,...s&&{transform:createTransform({scale:s,transform:o})}}},propT(i,s){return{property:i,transform:s}},sizes:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.px)),sizesT:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.fraction)),shadows:toConfig("shadows"),logical,blur:toConfig("blur",transformFunctions.blur)},background={background:t$1.colors("background"),backgroundColor:t$1.colors("backgroundColor"),backgroundImage:t$1.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:transformFunctions.bgClip},bgSize:t$1.prop("backgroundSize"),bgPosition:t$1.prop("backgroundPosition"),bg:t$1.colors("background"),bgColor:t$1.colors("backgroundColor"),bgPos:t$1.prop("backgroundPosition"),bgRepeat:t$1.prop("backgroundRepeat"),bgAttachment:t$1.prop("backgroundAttachment"),bgGradient:t$1.gradients("backgroundImage"),bgClip:{transform:transformFunctions.bgClip}};Object.assign(background,{bgImage:background.backgroundImage,bgImg:background.backgroundImage});const border={border:t$1.borders("border"),borderWidth:t$1.borderWidths("borderWidth"),borderStyle:t$1.borderStyles("borderStyle"),borderColor:t$1.colors("borderColor"),borderRadius:t$1.radii("borderRadius"),borderTop:t$1.borders("borderTop"),borderBlockStart:t$1.borders("borderBlockStart"),borderTopLeftRadius:t$1.radii("borderTopLeftRadius"),borderStartStartRadius:t$1.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:t$1.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:t$1.radii("borderTopRightRadius"),borderStartEndRadius:t$1.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:t$1.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:t$1.borders("borderRight"),borderInlineEnd:t$1.borders("borderInlineEnd"),borderBottom:t$1.borders("borderBottom"),borderBlockEnd:t$1.borders("borderBlockEnd"),borderBottomLeftRadius:t$1.radii("borderBottomLeftRadius"),borderBottomRightRadius:t$1.radii("borderBottomRightRadius"),borderLeft:t$1.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:t$1.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:t$1.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:t$1.borders(["borderLeft","borderRight"]),borderInline:t$1.borders("borderInline"),borderY:t$1.borders(["borderTop","borderBottom"]),borderBlock:t$1.borders("borderBlock"),borderTopWidth:t$1.borderWidths("borderTopWidth"),borderBlockStartWidth:t$1.borderWidths("borderBlockStartWidth"),borderTopColor:t$1.colors("borderTopColor"),borderBlockStartColor:t$1.colors("borderBlockStartColor"),borderTopStyle:t$1.borderStyles("borderTopStyle"),borderBlockStartStyle:t$1.borderStyles("borderBlockStartStyle"),borderBottomWidth:t$1.borderWidths("borderBottomWidth"),borderBlockEndWidth:t$1.borderWidths("borderBlockEndWidth"),borderBottomColor:t$1.colors("borderBottomColor"),borderBlockEndColor:t$1.colors("borderBlockEndColor"),borderBottomStyle:t$1.borderStyles("borderBottomStyle"),borderBlockEndStyle:t$1.borderStyles("borderBlockEndStyle"),borderLeftWidth:t$1.borderWidths("borderLeftWidth"),borderInlineStartWidth:t$1.borderWidths("borderInlineStartWidth"),borderLeftColor:t$1.colors("borderLeftColor"),borderInlineStartColor:t$1.colors("borderInlineStartColor"),borderLeftStyle:t$1.borderStyles("borderLeftStyle"),borderInlineStartStyle:t$1.borderStyles("borderInlineStartStyle"),borderRightWidth:t$1.borderWidths("borderRightWidth"),borderInlineEndWidth:t$1.borderWidths("borderInlineEndWidth"),borderRightColor:t$1.colors("borderRightColor"),borderInlineEndColor:t$1.colors("borderInlineEndColor"),borderRightStyle:t$1.borderStyles("borderRightStyle"),borderInlineEndStyle:t$1.borderStyles("borderInlineEndStyle"),borderTopRadius:t$1.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:t$1.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:t$1.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:t$1.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(border,{rounded:border.borderRadius,roundedTop:border.borderTopRadius,roundedTopLeft:border.borderTopLeftRadius,roundedTopRight:border.borderTopRightRadius,roundedTopStart:border.borderStartStartRadius,roundedTopEnd:border.borderStartEndRadius,roundedBottom:border.borderBottomRadius,roundedBottomLeft:border.borderBottomLeftRadius,roundedBottomRight:border.borderBottomRightRadius,roundedBottomStart:border.borderEndStartRadius,roundedBottomEnd:border.borderEndEndRadius,roundedLeft:border.borderLeftRadius,roundedRight:border.borderRightRadius,roundedStart:border.borderInlineStartRadius,roundedEnd:border.borderInlineEndRadius,borderStart:border.borderInlineStart,borderEnd:border.borderInlineEnd,borderTopStartRadius:border.borderStartStartRadius,borderTopEndRadius:border.borderStartEndRadius,borderBottomStartRadius:border.borderEndStartRadius,borderBottomEndRadius:border.borderEndEndRadius,borderStartRadius:border.borderInlineStartRadius,borderEndRadius:border.borderInlineEndRadius,borderStartWidth:border.borderInlineStartWidth,borderEndWidth:border.borderInlineEndWidth,borderStartColor:border.borderInlineStartColor,borderEndColor:border.borderInlineEndColor,borderStartStyle:border.borderInlineStartStyle,borderEndStyle:border.borderInlineEndStyle});const color$1={color:t$1.colors("color"),textColor:t$1.colors("color"),fill:t$1.colors("fill"),stroke:t$1.colors("stroke"),accentColor:t$1.colors("accentColor"),textFillColor:t$1.colors("textFillColor")},flexbox={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:transformFunctions.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:t$1.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:t$1.space("gap"),rowGap:t$1.space("rowGap"),columnGap:t$1.space("columnGap")};Object.assign(flexbox,{flexDir:flexbox.flexDirection});const layout$1={width:t$1.sizesT("width"),inlineSize:t$1.sizesT("inlineSize"),height:t$1.sizes("height"),blockSize:t$1.sizes("blockSize"),boxSize:t$1.sizes(["width","height"]),minWidth:t$1.sizes("minWidth"),minInlineSize:t$1.sizes("minInlineSize"),minHeight:t$1.sizes("minHeight"),minBlockSize:t$1.sizes("minBlockSize"),maxWidth:t$1.sizes("maxWidth"),maxInlineSize:t$1.sizes("maxInlineSize"),maxHeight:t$1.sizes("maxHeight"),maxBlockSize:t$1.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(i,s)=>{var _,$;return{[`@media screen and (min-width: ${(($=(_=s.__breakpoints)==null?void 0:_.get(i))==null?void 0:$.minW)??i})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(i,s)=>{var _,$;return{[`@media screen and (max-width: ${(($=(_=s.__breakpoints)==null?void 0:_.get(i))==null?void 0:$._minW)??i})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:t$1.propT("float",transformFunctions.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(layout$1,{w:layout$1.width,h:layout$1.height,minW:layout$1.minWidth,maxW:layout$1.maxWidth,minH:layout$1.minHeight,maxH:layout$1.maxHeight,overscroll:layout$1.overscrollBehavior,overscrollX:layout$1.overscrollBehaviorX,overscrollY:layout$1.overscrollBehaviorY});const filter$1={filter:{transform:transformFunctions.filter},blur:t$1.blur("--chakra-blur"),brightness:t$1.propT("--chakra-brightness",transformFunctions.brightness),contrast:t$1.propT("--chakra-contrast",transformFunctions.contrast),hueRotate:t$1.propT("--chakra-hue-rotate",transformFunctions.hueRotate),invert:t$1.propT("--chakra-invert",transformFunctions.invert),saturate:t$1.propT("--chakra-saturate",transformFunctions.saturate),dropShadow:t$1.propT("--chakra-drop-shadow",transformFunctions.dropShadow),backdropFilter:{transform:transformFunctions.backdropFilter},backdropBlur:t$1.blur("--chakra-backdrop-blur"),backdropBrightness:t$1.propT("--chakra-backdrop-brightness",transformFunctions.brightness),backdropContrast:t$1.propT("--chakra-backdrop-contrast",transformFunctions.contrast),backdropHueRotate:t$1.propT("--chakra-backdrop-hue-rotate",transformFunctions.hueRotate),backdropInvert:t$1.propT("--chakra-backdrop-invert",transformFunctions.invert),backdropSaturate:t$1.propT("--chakra-backdrop-saturate",transformFunctions.saturate)},ring={ring:{transform:transformFunctions.ring},ringColor:t$1.colors("--chakra-ring-color"),ringOffset:t$1.prop("--chakra-ring-offset-width"),ringOffsetColor:t$1.colors("--chakra-ring-offset-color"),ringInset:t$1.prop("--chakra-ring-inset")},interactivity={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:transformFunctions.outline},outlineOffset:!0,outlineColor:t$1.colors("outlineColor")},grid={gridGap:t$1.space("gridGap"),gridColumnGap:t$1.space("gridColumnGap"),gridRowGap:t$1.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function get$4(i,s,o,a){const _=typeof s=="string"?s.split("."):[s];for(a=0;a<_.length&&i;a+=1)i=i[_[a]];return i===void 0?o:i}const memoize$1=i=>{const s=new WeakMap;return(a,_,$,j)=>{if(typeof a>"u")return i(a,_,$);s.has(a)||s.set(a,new Map);const _e=s.get(a);if(_e.has(_))return _e.get(_);const et=i(a,_,$,j);return _e.set(_,et),et}},memoizedGet=memoize$1(get$4),srOnly={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},srFocusable={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},getWithPriority=(i,s,o)=>{const a={},_=memoizedGet(i,s,{});for(const $ in _)$ in o&&o[$]!=null||(a[$]=_[$]);return a},others={srOnly:{transform(i){return i===!0?srOnly:i==="focusable"?srFocusable:{}}},layerStyle:{processResult:!0,transform:(i,s,o)=>getWithPriority(s,`layerStyles.${i}`,o)},textStyle:{processResult:!0,transform:(i,s,o)=>getWithPriority(s,`textStyles.${i}`,o)},apply:{processResult:!0,transform:(i,s,o)=>getWithPriority(s,i,o)}},position$1={position:!0,pos:t$1.prop("position"),zIndex:t$1.prop("zIndex","zIndices"),inset:t$1.spaceT("inset"),insetX:t$1.spaceT(["left","right"]),insetInline:t$1.spaceT("insetInline"),insetY:t$1.spaceT(["top","bottom"]),insetBlock:t$1.spaceT("insetBlock"),top:t$1.spaceT("top"),insetBlockStart:t$1.spaceT("insetBlockStart"),bottom:t$1.spaceT("bottom"),insetBlockEnd:t$1.spaceT("insetBlockEnd"),left:t$1.spaceT("left"),insetInlineStart:t$1.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:t$1.spaceT("right"),insetInlineEnd:t$1.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(position$1,{insetStart:position$1.insetInlineStart,insetEnd:position$1.insetInlineEnd});const effect$3={boxShadow:t$1.shadows("boxShadow"),mixBlendMode:!0,blendMode:t$1.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:t$1.prop("backgroundBlendMode"),opacity:!0};Object.assign(effect$3,{shadow:effect$3.boxShadow});const space={margin:t$1.spaceT("margin"),marginTop:t$1.spaceT("marginTop"),marginBlockStart:t$1.spaceT("marginBlockStart"),marginRight:t$1.spaceT("marginRight"),marginInlineEnd:t$1.spaceT("marginInlineEnd"),marginBottom:t$1.spaceT("marginBottom"),marginBlockEnd:t$1.spaceT("marginBlockEnd"),marginLeft:t$1.spaceT("marginLeft"),marginInlineStart:t$1.spaceT("marginInlineStart"),marginX:t$1.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:t$1.spaceT("marginInline"),marginY:t$1.spaceT(["marginTop","marginBottom"]),marginBlock:t$1.spaceT("marginBlock"),padding:t$1.space("padding"),paddingTop:t$1.space("paddingTop"),paddingBlockStart:t$1.space("paddingBlockStart"),paddingRight:t$1.space("paddingRight"),paddingBottom:t$1.space("paddingBottom"),paddingBlockEnd:t$1.space("paddingBlockEnd"),paddingLeft:t$1.space("paddingLeft"),paddingInlineStart:t$1.space("paddingInlineStart"),paddingInlineEnd:t$1.space("paddingInlineEnd"),paddingX:t$1.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:t$1.space("paddingInline"),paddingY:t$1.space(["paddingTop","paddingBottom"]),paddingBlock:t$1.space("paddingBlock")};Object.assign(space,{m:space.margin,mt:space.marginTop,mr:space.marginRight,me:space.marginInlineEnd,marginEnd:space.marginInlineEnd,mb:space.marginBottom,ml:space.marginLeft,ms:space.marginInlineStart,marginStart:space.marginInlineStart,mx:space.marginX,my:space.marginY,p:space.padding,pt:space.paddingTop,py:space.paddingY,px:space.paddingX,pb:space.paddingBottom,pl:space.paddingLeft,ps:space.paddingInlineStart,paddingStart:space.paddingInlineStart,pr:space.paddingRight,pe:space.paddingInlineEnd,paddingEnd:space.paddingInlineEnd});const scroll={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:t$1.spaceT("scrollMargin"),scrollMarginTop:t$1.spaceT("scrollMarginTop"),scrollMarginBottom:t$1.spaceT("scrollMarginBottom"),scrollMarginLeft:t$1.spaceT("scrollMarginLeft"),scrollMarginRight:t$1.spaceT("scrollMarginRight"),scrollMarginX:t$1.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:t$1.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:t$1.spaceT("scrollPadding"),scrollPaddingTop:t$1.spaceT("scrollPaddingTop"),scrollPaddingBottom:t$1.spaceT("scrollPaddingBottom"),scrollPaddingLeft:t$1.spaceT("scrollPaddingLeft"),scrollPaddingRight:t$1.spaceT("scrollPaddingRight"),scrollPaddingX:t$1.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:t$1.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},typography$1={fontFamily:t$1.prop("fontFamily","fonts"),fontSize:t$1.prop("fontSize","fontSizes",transformFunctions.px),fontWeight:t$1.prop("fontWeight","fontWeights"),lineHeight:t$1.prop("lineHeight","lineHeights"),letterSpacing:t$1.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(i){if(i===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},textDecoration={textDecorationColor:t$1.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:t$1.shadows("textShadow")},transform={clipPath:!0,transform:t$1.propT("transform",transformFunctions.transform),transformOrigin:!0,translateX:t$1.spaceT("--chakra-translate-x"),translateY:t$1.spaceT("--chakra-translate-y"),skewX:t$1.degreeT("--chakra-skew-x"),skewY:t$1.degreeT("--chakra-skew-y"),scaleX:t$1.prop("--chakra-scale-x"),scaleY:t$1.prop("--chakra-scale-y"),scale:t$1.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:t$1.degreeT("--chakra-rotate")},list={listStyleType:!0,listStylePosition:!0,listStylePos:t$1.prop("listStylePosition"),listStyleImage:!0,listStyleImg:t$1.prop("listStyleImage")},transition$1={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:t$1.prop("transitionDuration","transition.duration"),transitionProperty:t$1.prop("transitionProperty","transition.property"),transitionTimingFunction:t$1.prop("transitionTimingFunction","transition.easing")},systemProps=mergeWith({},background,border,color$1,flexbox,layout$1,filter$1,ring,interactivity,grid,others,position$1,effect$3,space,scroll,typography$1,textDecoration,transform,list,transition$1),layoutSystem=Object.assign({},space,layout$1,flexbox,grid,position$1),layoutPropNames=Object.keys(layoutSystem),propNames=[...Object.keys(systemProps),...pseudoPropNames],styleProps={...systemProps,...pseudoSelectors},isStyleProp=i=>i in styleProps,expandResponsive=i=>s=>{if(!s.__breakpoints)return i;const{isResponsive:o,toArrayValue:a,media:_}=s.__breakpoints,$={};for(const j in i){let _e=runIfFn$1(i[j],s);if(_e==null)continue;if(_e=isObject$2(_e)&&o(_e)?a(_e):_e,!Array.isArray(_e)){$[j]=_e;continue}const et=_e.slice(0,_.length).length;for(let tt=0;tt<et;tt+=1){const rt=_==null?void 0:_[tt];if(!rt){$[j]=_e[tt];continue}$[rt]=$[rt]||{},_e[tt]!=null&&($[rt][j]=_e[tt])}}return $};function splitByComma(i){const s=[];let o="",a=!1;for(let _=0;_<i.length;_++){const $=i[_];$==="("?(a=!0,o+=$):$===")"?(a=!1,o+=$):$===","&&!a?(s.push(o),o=""):o+=$}return o=o.trim(),o&&s.push(o),s}function isCssVar(i){return/^var\(--.+\)$/.test(i)}const isCSSVariableTokenValue=(i,s)=>i.startsWith("--")&&typeof s=="string"&&!isCssVar(s),resolveTokenValue=(i,s)=>{if(s==null)return s;const o=j=>{var _e,et;return(et=(_e=i.__cssMap)==null?void 0:_e[j])==null?void 0:et.varRef},a=j=>o(j)??j,[_,$]=splitByComma(s);return s=o(_)??a($)??a(s),s};function getCss(i){const{configs:s={},pseudos:o={},theme:a}=i,_=($,j=!1)=>{var rt;const _e=runIfFn$1($,a),et=expandResponsive(_e)(a);let tt={};for(let it in et){const nt=et[it];let ut=runIfFn$1(nt,a);it in o&&(it=o[it]),isCSSVariableTokenValue(it,ut)&&(ut=resolveTokenValue(a,ut));let ct=s[it];if(ct===!0&&(ct={property:it}),isObject$2(ut)){tt[it]=tt[it]??{},tt[it]=mergeWith({},tt[it],_(ut,!0));continue}let st=((rt=ct==null?void 0:ct.transform)==null?void 0:rt.call(ct,ut,a,_e))??ut;st=ct!=null&&ct.processResult?_(st,!0):st;const dt=runIfFn$1(ct==null?void 0:ct.property,a);if(!j&&(ct!=null&&ct.static)){const ot=runIfFn$1(ct.static,a);tt=mergeWith({},tt,ot)}if(dt&&Array.isArray(dt)){for(const ot of dt)tt[ot]=st;continue}if(dt){dt==="&"&&isObject$2(st)?tt=mergeWith({},tt,st):tt[dt]=st;continue}if(isObject$2(st)){tt=mergeWith({},tt,st);continue}tt[it]=st}return tt};return _}const css$2=i=>s=>getCss({theme:s,pseudos:pseudoSelectors,configs:systemProps})(i);function defineStyle(i){return i}function defineStyleConfig(i){return i}function createMultiStyleConfigHelpers(i){return{definePartsStyle(s){return s},defineMultiStyleConfig(s){return{parts:i,...s}}}}function normalize(i,s){if(Array.isArray(i))return i;if(isObject$2(i))return s(i);if(i!=null)return[i]}function getNextIndex$1(i,s){for(let o=s+1;o<i.length;o++)if(i[o]!=null)return o;return-1}function createResolver(i){const s=i.__breakpoints;return function(a,_,$,j){var nt,ut;if(!s)return;const _e={},et=normalize($,s.toArrayValue);if(!et)return _e;const tt=et.length,rt=tt===1,it=!!a.parts;for(let ct=0;ct<tt;ct++){const st=s.details[ct],dt=s.details[getNextIndex$1(et,ct)],ot=toMediaQueryString(st.minW,dt==null?void 0:dt._minW),lt=runIfFn$1((nt=a[_])==null?void 0:nt[et[ct]],j);if(lt){if(it){(ut=a.parts)==null||ut.forEach(at=>{mergeWith(_e,{[at]:rt?lt[at]:{[ot]:lt[at]}})});continue}if(!it){rt?mergeWith(_e,lt):_e[ot]=lt;continue}_e[ot]=lt}}return _e}}function resolveStyleConfig(i){return s=>{const{variant:o,size:a,theme:_}=s,$=createResolver(_);return mergeWith({},runIfFn$1(i.baseStyle??{},s),$(i,"sizes",a,s),$(i,"variants",o,s))}}function omitThemingProps(i){return omit(i,["styleConfig","size","variant","colorScheme"])}function resolveReference(i){return isObject$2(i)&&i.reference?i.reference:String(i)}const toExpression=(i,...s)=>s.map(resolveReference).join(` ${i} `).replace(/calc/g,""),add$3=(...i)=>`calc(${toExpression("+",...i)})`,subtract$3=(...i)=>`calc(${toExpression("-",...i)})`,multiply$1=(...i)=>`calc(${toExpression("*",...i)})`,divide$1=(...i)=>`calc(${toExpression("/",...i)})`,negate$1=i=>{const s=resolveReference(i);return s!=null&&!Number.isNaN(parseFloat(s))?String(s).startsWith("-")?String(s).slice(1):`-${s}`:multiply$1(s,-1)},calc$1=Object.assign(i=>({add:(...s)=>calc$1(add$3(i,...s)),subtract:(...s)=>calc$1(subtract$3(i,...s)),multiply:(...s)=>calc$1(multiply$1(i,...s)),divide:(...s)=>calc$1(divide$1(i,...s)),negate:()=>calc$1(negate$1(i)),toString:()=>i.toString()}),{add:add$3,subtract:subtract$3,multiply:multiply$1,divide:divide$1,negate:negate$1});function replaceWhiteSpace$1(i,s="-"){return i.replace(/\s+/g,s)}function escape$1(i){const s=replaceWhiteSpace$1(i.toString());return escapeSymbol(escapeDot(s))}function escapeDot(i){return i.includes("\\.")?i:!Number.isInteger(parseFloat(i.toString()))?i.replace(".","\\."):i}function escapeSymbol(i){return i.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function addPrefix$1(i,s=""){return[s,i].filter(Boolean).join("-")}function toVarReference(i,s){return`var(${i}${s?`, ${s}`:""})`}function toVarDefinition(i,s=""){return escape$1(`--${addPrefix$1(i,s)}`)}function cssVar$1(i,s,o){const a=toVarDefinition(i,o);return{variable:a,reference:toVarReference(a,s)}}function defineCssVars(i,s){const o={};for(const a of s){if(Array.isArray(a)){const[_,$]=a;o[_]=cssVar$1(`${i}-${_}`,$);continue}o[a]=cssVar$1(`${i}-${a}`)}return o}const tokens$1=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function extractTokens(i){return pick(i,tokens$1)}function extractSemanticTokens(i){return i.semanticTokens}function omitVars(i){const{__cssMap:s,__cssVars:o,__breakpoints:a,..._}=i;return _}function flattenTokens(i){const s=extractTokens(i),o=extractSemanticTokens(i),a=$=>pseudoPropNames.includes($)||$==="default",_={};return walkObject(s,($,j)=>{$!=null&&(_[j.join(".")]={isSemantic:!1,value:$})}),walkObject(o,($,j)=>{$!=null&&(_[j.join(".")]={isSemantic:!0,value:$})},{stop:$=>Object.keys($).every(a)}),_}function tokenToCssVar(i,s){return cssVar$1(String(i).replace(/\./g,"-"),void 0,s)}function createThemeVars(i){var j;const s=flattenTokens(i),o=(j=i.config)==null?void 0:j.cssVarPrefix;let a={};const _={};function $(_e,et){const rt=[String(_e).split(".")[0],et].join(".");if(!s[rt])return et;const{reference:nt}=tokenToCssVar(rt,o);return nt}for(const[_e,et]of Object.entries(s)){const{isSemantic:tt,value:rt}=et,{variable:it,reference:nt}=tokenToCssVar(_e,o);if(!tt){if(_e.startsWith("space")){const ct=_e.split("."),[st,...dt]=ct,ot=`${st}.-${dt.join(".")}`,lt=calc$1.negate(rt),at=calc$1.negate(nt);_[ot]={value:lt,var:it,varRef:at}}a[it]=rt,_[_e]={value:rt,var:it,varRef:nt};continue}const ut=isObject$2(rt)?rt:{default:rt};a=mergeWith(a,Object.entries(ut).reduce((ct,[st,dt])=>{if(!dt)return ct;const ot=$(_e,`${dt}`);if(st==="default")return ct[it]=ot,ct;const lt=(pseudoSelectors==null?void 0:pseudoSelectors[st])??st;return ct[lt]={[it]:ot},ct},{})),_[_e]={value:nt,var:it,varRef:nt}}return{cssVars:a,cssMap:_}}function toCSSVar(i){const s=omitVars(i),{cssMap:o,cssVars:a}=createThemeVars(s);return Object.assign(s,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...a},__cssMap:o,__breakpoints:analyzeBreakpoints(s.breakpoints)}),s}function anatomy(i,s={}){let o=!1;function a(){if(!o){o=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function _(...rt){a();for(const it of rt)s[it]=et(it);return anatomy(i,s)}function $(...rt){for(const it of rt)it in s||(s[it]=et(it));return anatomy(i,s)}function j(){return Object.fromEntries(Object.entries(s).map(([it,nt])=>[it,nt.selector]))}function _e(){return Object.fromEntries(Object.entries(s).map(([it,nt])=>[it,nt.className]))}function et(rt){const ut=`chakra-${(["container","root"].includes(rt??"")?[i]:[i,rt]).filter(Boolean).join("__")}`;return{className:ut,selector:`.${ut}`,toString:()=>rt}}return{parts:_,toPart:et,extend:$,selectors:j,classnames:_e,get keys(){return Object.keys(s)},__type:{}}}const accordionAnatomy=anatomy("accordion").parts("root","container","button","panel","icon"),alertAnatomy=anatomy("alert").parts("title","description","container","icon","spinner"),avatarAnatomy=anatomy("avatar").parts("label","badge","container","excessLabel","group"),breadcrumbAnatomy=anatomy("breadcrumb").parts("link","item","container","separator");anatomy("button").parts();const checkboxAnatomy=anatomy("checkbox").parts("control","icon","container","label");anatomy("progress").parts("track","filledTrack","label");const drawerAnatomy=anatomy("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),editableAnatomy=anatomy("editable").parts("preview","input","textarea"),formAnatomy=anatomy("form").parts("container","requiredIndicator","helperText"),formErrorAnatomy=anatomy("formError").parts("text","icon"),inputAnatomy=anatomy("input").parts("addon","field","element","group"),listAnatomy=anatomy("list").parts("container","item","icon"),menuAnatomy=anatomy("menu").parts("button","list","item","groupTitle","icon","command","divider"),modalAnatomy=anatomy("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),numberInputAnatomy=anatomy("numberinput").parts("root","field","stepperGroup","stepper");anatomy("pininput").parts("field");const popoverAnatomy=anatomy("popover").parts("content","header","body","footer","popper","arrow","closeButton"),progressAnatomy=anatomy("progress").parts("label","filledTrack","track"),radioAnatomy=anatomy("radio").parts("container","control","label"),selectAnatomy=anatomy("select").parts("field","icon"),sliderAnatomy=anatomy("slider").parts("container","track","thumb","filledTrack","mark"),statAnatomy=anatomy("stat").parts("container","label","helpText","number","icon"),switchAnatomy=anatomy("switch").parts("container","track","thumb","label"),tableAnatomy=anatomy("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tabsAnatomy=anatomy("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tagAnatomy=anatomy("tag").parts("container","label","closeButton"),cardAnatomy=anatomy("card").parts("container","header","body","footer");anatomy("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:definePartsStyle$p,defineMultiStyleConfig:defineMultiStyleConfig$p}=createMultiStyleConfigHelpers(accordionAnatomy.keys),baseStyleContainer$4={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},baseStyleButton$1={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},baseStylePanel={pt:"2",px:"4",pb:"5"},baseStyleIcon$6={fontSize:"1.25em"},baseStyle$G=definePartsStyle$p({container:baseStyleContainer$4,button:baseStyleButton$1,panel:baseStylePanel,icon:baseStyleIcon$6}),accordionTheme=defineMultiStyleConfig$p({baseStyle:baseStyle$G});function guard(i,s,o){return Math.min(Math.max(i,o),s)}class ColorError extends Error{constructor(s){super(`Failed to parse color: "${s}"`)}}var ColorError$1=ColorError;function parseToRgba(i){if(typeof i!="string")throw new ColorError$1(i);if(i.trim().toLowerCase()==="transparent")return[0,0,0,0];let s=i.trim();s=namedColorRegex.test(i)?nameToHex(i):i;const o=reducedHexRegex.exec(s);if(o){const j=Array.from(o).slice(1);return[...j.slice(0,3).map(_e=>parseInt(r$1(_e,2),16)),parseInt(r$1(j[3]||"f",2),16)/255]}const a=hexRegex.exec(s);if(a){const j=Array.from(a).slice(1);return[...j.slice(0,3).map(_e=>parseInt(_e,16)),parseInt(j[3]||"ff",16)/255]}const _=rgbaRegex.exec(s);if(_){const j=Array.from(_).slice(1);return[...j.slice(0,3).map(_e=>parseInt(_e,10)),parseFloat(j[3]||"1")]}const $=hslaRegex.exec(s);if($){const[j,_e,et,tt]=Array.from($).slice(1).map(parseFloat);if(guard(0,100,_e)!==_e)throw new ColorError$1(i);if(guard(0,100,et)!==et)throw new ColorError$1(i);return[...hslToRgb(j,_e,et),Number.isNaN(tt)?1:tt]}throw new ColorError$1(i)}function hash$3(i){let s=5381,o=i.length;for(;o;)s=s*33^i.charCodeAt(--o);return(s>>>0)%2341}const colorToInt=i=>parseInt(i.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((i,s)=>{const o=colorToInt(s.substring(0,3)),a=colorToInt(s.substring(3)).toString(16);let _="";for(let $=0;$<6-a.length;$++)_+="0";return i[o]=`${_}${a}`,i},{});function nameToHex(i){const s=i.toLowerCase().trim(),o=compressedColorMap[hash$3(s)];if(!o)throw new ColorError$1(i);return`#${o}`}const r$1=(i,s)=>Array.from(Array(s)).map(()=>i).join(""),reducedHexRegex=new RegExp(`^#${r$1("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r$1("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$1(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=i=>Math.round(i*255),hslToRgb=(i,s,o)=>{let a=o/100;if(s===0)return[a,a,a].map(roundColor);const _=(i%360+360)%360/60,$=(1-Math.abs(2*a-1))*(s/100),j=$*(1-Math.abs(_%2-1));let _e=0,et=0,tt=0;_>=0&&_<1?(_e=$,et=j):_>=1&&_<2?(_e=j,et=$):_>=2&&_<3?(et=$,tt=j):_>=3&&_<4?(et=j,tt=$):_>=4&&_<5?(_e=j,tt=$):_>=5&&_<6&&(_e=$,tt=j);const rt=a-$/2,it=_e+rt,nt=et+rt,ut=tt+rt;return[it,nt,ut].map(roundColor)};function rgba$1(i,s,o,a){return`rgba(${guard(0,255,i).toFixed()}, ${guard(0,255,s).toFixed()}, ${guard(0,255,o).toFixed()}, ${parseFloat(guard(0,1,a).toFixed(3))})`}function transparentize$1(i,s){const[o,a,_,$]=parseToRgba(i);return rgba$1(o,a,_,$-s)}function toHex(i){const[s,o,a,_]=parseToRgba(i);let $=j=>{const _e=guard(0,255,j).toString(16);return _e.length===1?`0${_e}`:_e};return`#${$(s)}${$(o)}${$(a)}${_<1?$(Math.round(_*255)):""}`}const isEmptyObject=i=>Object.keys(i).length===0;function get$3(i,s,o,a,_){for(s=s.split?s.split("."):s,a=0;a<s.length;a++)i=i?i[s[a]]:_;return i===_?o:i}const getColor=(i,s,o)=>{const a=get$3(i,`colors.${s}`,s);try{return toHex(a),a}catch{return o??"#000000"}},getBrightness=i=>{const[s,o,a]=parseToRgba(i);return(s*299+o*587+a*114)/1e3},tone=i=>s=>{const o=getColor(s,i);return getBrightness(o)<128?"dark":"light"},isDark=i=>s=>tone(i)(s)==="dark",transparentize=(i,s)=>o=>{const a=getColor(o,i);return transparentize$1(a,1-s)};function generateStripe(i="1rem",s="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${s} 25%,
    transparent 25%,
    transparent 50%,
    ${s} 50%,
    ${s} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${i} ${i}`}}const randomHex=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function randomColor(i){const s=randomHex();return!i||isEmptyObject(i)?s:i.string&&i.colors?randomColorFromList(i.string,i.colors):i.string&&!i.colors?randomColorFromString(i.string):i.colors&&!i.string?randomFromList(i.colors):s}function randomColorFromString(i){let s=0;if(i.length===0)return s.toString();for(let a=0;a<i.length;a+=1)s=i.charCodeAt(a)+((s<<5)-s),s=s&s;let o="#";for(let a=0;a<3;a+=1){const _=s>>a*8&255;o+=`00${_.toString(16)}`.substr(-2)}return o}function randomColorFromList(i,s){let o=0;if(i.length===0)return s[0];for(let a=0;a<i.length;a+=1)o=i.charCodeAt(a)+((o<<5)-o),o=o&o;return o=(o%s.length+s.length)%s.length,s[o]}function randomFromList(i){return i[Math.floor(Math.random()*i.length)]}function mode(i,s){return o=>o.colorMode==="dark"?s:i}function orient(i){const{orientation:s,vertical:o,horizontal:a}=i;return s?s==="vertical"?o:a:{}}function toRef(i){return isObject$2(i)&&i.reference?i.reference:String(i)}const toExpr=(i,...s)=>s.map(toRef).join(` ${i} `).replace(/calc/g,""),add$2=(...i)=>`calc(${toExpr("+",...i)})`,subtract$2=(...i)=>`calc(${toExpr("-",...i)})`,multiply=(...i)=>`calc(${toExpr("*",...i)})`,divide=(...i)=>`calc(${toExpr("/",...i)})`,negate=i=>{const s=toRef(i);return s!=null&&!Number.isNaN(parseFloat(s))?String(s).startsWith("-")?String(s).slice(1):`-${s}`:multiply(s,-1)},calc=Object.assign(i=>({add:(...s)=>calc(add$2(i,...s)),subtract:(...s)=>calc(subtract$2(i,...s)),multiply:(...s)=>calc(multiply(i,...s)),divide:(...s)=>calc(divide(i,...s)),negate:()=>calc(negate(i)),toString:()=>i.toString()}),{add:add$2,subtract:subtract$2,multiply,divide,negate});function isDecimal(i){return!Number.isInteger(parseFloat(i.toString()))}function replaceWhiteSpace(i,s="-"){return i.replace(/\s+/g,s)}function escape(i){const s=replaceWhiteSpace(i.toString());return s.includes("\\.")?i:isDecimal(i)?s.replace(".","\\."):i}function addPrefix(i,s=""){return[s,escape(i)].filter(Boolean).join("-")}function toVarRef(i,s){return`var(${escape(i)}${s?`, ${s}`:""})`}function toVar$1(i,s=""){return`--${addPrefix(i,s)}`}function cssVar(i,s){const o=toVar$1(i,s==null?void 0:s.prefix);return{variable:o,reference:toVarRef(o,getFallback(s==null?void 0:s.fallback))}}function getFallback(i){return i==null?void 0:i.reference}const{definePartsStyle:definePartsStyle$o,defineMultiStyleConfig:defineMultiStyleConfig$o}=createMultiStyleConfigHelpers(alertAnatomy.keys),$fg$5=cssVar$1("alert-fg"),$bg$f=cssVar$1("alert-bg"),baseStyle$F=definePartsStyle$o({container:{bg:$bg$f.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$fg$5.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$fg$5.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function getBg(i){const{theme:s,colorScheme:o}=i,a=transparentize(`${o}.200`,.16)(s);return{light:`colors.${o}.100`,dark:a}}const variantSubtle$1=definePartsStyle$o(i=>{const{colorScheme:s}=i,o=getBg(i);return{container:{[$fg$5.variable]:`colors.${s}.600`,[$bg$f.variable]:o.light,_dark:{[$fg$5.variable]:`colors.${s}.200`,[$bg$f.variable]:o.dark}}}}),variantLeftAccent=definePartsStyle$o(i=>{const{colorScheme:s}=i,o=getBg(i);return{container:{[$fg$5.variable]:`colors.${s}.600`,[$bg$f.variable]:o.light,_dark:{[$fg$5.variable]:`colors.${s}.200`,[$bg$f.variable]:o.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$fg$5.reference}}}),variantTopAccent=definePartsStyle$o(i=>{const{colorScheme:s}=i,o=getBg(i);return{container:{[$fg$5.variable]:`colors.${s}.600`,[$bg$f.variable]:o.light,_dark:{[$fg$5.variable]:`colors.${s}.200`,[$bg$f.variable]:o.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$fg$5.reference}}}),variantSolid$3=definePartsStyle$o(i=>{const{colorScheme:s}=i;return{container:{[$fg$5.variable]:"colors.white",[$bg$f.variable]:`colors.${s}.600`,_dark:{[$fg$5.variable]:"colors.gray.900",[$bg$f.variable]:`colors.${s}.200`},color:$fg$5.reference}}}),variants$g={subtle:variantSubtle$1,"left-accent":variantLeftAccent,"top-accent":variantTopAccent,solid:variantSolid$3},alertTheme=defineMultiStyleConfig$o({baseStyle:baseStyle$F,variants:variants$g,defaultProps:{variant:"subtle",colorScheme:"blue"}}),spacing={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},largeSizes={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},container={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},sizes$m={...spacing,...largeSizes,container},isFunction$3=i=>typeof i=="function";function runIfFn(i,...s){return isFunction$3(i)?i(...s):i}const{definePartsStyle:definePartsStyle$n,defineMultiStyleConfig:defineMultiStyleConfig$n}=createMultiStyleConfigHelpers(avatarAnatomy.keys),$border$3=cssVar$1("avatar-border-color"),$bg$e=cssVar$1("avatar-bg"),$fs=cssVar$1("avatar-font-size"),$size$4=cssVar$1("avatar-size"),baseStyleBadge={borderRadius:"full",border:"0.2em solid",borderColor:$border$3.reference,[$border$3.variable]:"white",_dark:{[$border$3.variable]:"colors.gray.800"}},baseStyleExcessLabel={bg:$bg$e.reference,fontSize:$fs.reference,width:$size$4.reference,height:$size$4.reference,lineHeight:"1",[$bg$e.variable]:"colors.gray.200",_dark:{[$bg$e.variable]:"colors.whiteAlpha.400"}},baseStyleContainer$3=i=>{const{name:s,theme:o}=i,a=s?randomColor({string:s}):"colors.gray.400",_=isDark(a)(o);let $="white";return _||($="gray.800"),{bg:$bg$e.reference,fontSize:$fs.reference,color:$,borderColor:$border$3.reference,verticalAlign:"top",width:$size$4.reference,height:$size$4.reference,"&:not([data-loaded])":{[$bg$e.variable]:a},[$border$3.variable]:"colors.white",_dark:{[$border$3.variable]:"colors.gray.800"}}},baseStyleLabel$4={fontSize:$fs.reference,lineHeight:"1"},baseStyle$E=definePartsStyle$n(i=>({badge:runIfFn(baseStyleBadge,i),excessLabel:runIfFn(baseStyleExcessLabel,i),container:runIfFn(baseStyleContainer$3,i),label:baseStyleLabel$4}));function getSize$3(i){const s=i!=="100%"?sizes$m[i]:void 0;return definePartsStyle$n({container:{[$size$4.variable]:s??i,[$fs.variable]:`calc(${s??i} / 2.5)`},excessLabel:{[$size$4.variable]:s??i,[$fs.variable]:`calc(${s??i} / 2.5)`}})}const sizes$l={"2xs":getSize$3(4),xs:getSize$3(6),sm:getSize$3(8),md:getSize$3(12),lg:getSize$3(16),xl:getSize$3(24),"2xl":getSize$3(32),full:getSize$3("100%")},avatarTheme=defineMultiStyleConfig$n({baseStyle:baseStyle$E,sizes:sizes$l,defaultProps:{size:"md"}}),vars=defineCssVars("badge",["bg","color","shadow"]),baseStyle$D={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:vars.bg.reference,color:vars.color.reference,boxShadow:vars.shadow.reference},variantSolid$2=i=>{const{colorScheme:s,theme:o}=i,a=transparentize(`${s}.500`,.6)(o);return{[vars.bg.variable]:`colors.${s}.500`,[vars.color.variable]:"colors.white",_dark:{[vars.bg.variable]:a,[vars.color.variable]:"colors.whiteAlpha.800"}}},variantSubtle=i=>{const{colorScheme:s,theme:o}=i,a=transparentize(`${s}.200`,.16)(o);return{[vars.bg.variable]:`colors.${s}.100`,[vars.color.variable]:`colors.${s}.800`,_dark:{[vars.bg.variable]:a,[vars.color.variable]:`colors.${s}.200`}}},variantOutline$2=i=>{const{colorScheme:s,theme:o}=i,a=transparentize(`${s}.200`,.8)(o);return{[vars.color.variable]:`colors.${s}.500`,_dark:{[vars.color.variable]:a},[vars.shadow.variable]:`inset 0 0 0px 1px ${vars.color.reference}`}},variants$f={solid:variantSolid$2,subtle:variantSubtle,outline:variantOutline$2},badgeTheme={baseStyle:baseStyle$D,variants:variants$f,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:defineMultiStyleConfig$m,definePartsStyle:definePartsStyle$m}=createMultiStyleConfigHelpers(breadcrumbAnatomy.keys),$decor=cssVar$1("breadcrumb-link-decor"),baseStyleLink={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:$decor.reference,[$decor.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[$decor.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},baseStyle$C=definePartsStyle$m({link:baseStyleLink}),breadcrumbTheme=defineMultiStyleConfig$m({baseStyle:baseStyle$C}),baseStyle$B={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variantGhost=i=>{const{colorScheme:s,theme:o}=i;if(s==="gray")return{color:mode("gray.800","whiteAlpha.900")(i),_hover:{bg:mode("gray.100","whiteAlpha.200")(i)},_active:{bg:mode("gray.200","whiteAlpha.300")(i)}};const a=transparentize(`${s}.200`,.12)(o),_=transparentize(`${s}.200`,.24)(o);return{color:mode(`${s}.600`,`${s}.200`)(i),bg:"transparent",_hover:{bg:mode(`${s}.50`,a)(i)},_active:{bg:mode(`${s}.100`,_)(i)}}},variantOutline$1=i=>{const{colorScheme:s}=i,o=mode("gray.200","whiteAlpha.300")(i);return{border:"1px solid",borderColor:s==="gray"?o:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...runIfFn(variantGhost,i)}},accessibleColorMap={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},variantSolid$1=i=>{const{colorScheme:s}=i;if(s==="gray"){const _e=mode("gray.100","whiteAlpha.200")(i);return{bg:_e,color:mode("gray.800","whiteAlpha.900")(i),_hover:{bg:mode("gray.200","whiteAlpha.300")(i),_disabled:{bg:_e}},_active:{bg:mode("gray.300","whiteAlpha.400")(i)}}}const{bg:o=`${s}.500`,color:a="white",hoverBg:_=`${s}.600`,activeBg:$=`${s}.700`}=accessibleColorMap[s]??{},j=mode(o,`${s}.200`)(i);return{bg:j,color:mode(a,"gray.800")(i),_hover:{bg:mode(_,`${s}.300`)(i),_disabled:{bg:j}},_active:{bg:mode($,`${s}.400`)(i)}}},variantLink=i=>{const{colorScheme:s}=i;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mode(`${s}.500`,`${s}.200`)(i),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mode(`${s}.700`,`${s}.500`)(i)}}},variantUnstyled$2={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},variants$e={ghost:variantGhost,outline:variantOutline$1,solid:variantSolid$1,link:variantLink,unstyled:variantUnstyled$2},sizes$k={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},buttonTheme={baseStyle:baseStyle$B,variants:variants$e,sizes:sizes$k,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:definePartsStyle$l,defineMultiStyleConfig:defineMultiStyleConfig$l}=createMultiStyleConfigHelpers(cardAnatomy.keys),$bg$d=cssVar$1("card-bg"),$padding$1=cssVar$1("card-padding"),$shadow$3=cssVar$1("card-shadow"),$radius=cssVar$1("card-radius"),$border$2=cssVar$1("card-border-width","0"),$borderColor=cssVar$1("card-border-color"),baseStyle$A=definePartsStyle$l({container:{[$bg$d.variable]:"colors.chakra-body-bg",backgroundColor:$bg$d.reference,boxShadow:$shadow$3.reference,borderRadius:$radius.reference,color:"chakra-body-text",borderWidth:$border$2.reference,borderColor:$borderColor.reference},body:{padding:$padding$1.reference,flex:"1 1 0%"},header:{padding:$padding$1.reference},footer:{padding:$padding$1.reference}}),sizes$j={sm:definePartsStyle$l({container:{[$radius.variable]:"radii.base",[$padding$1.variable]:"space.3"}}),md:definePartsStyle$l({container:{[$radius.variable]:"radii.md",[$padding$1.variable]:"space.5"}}),lg:definePartsStyle$l({container:{[$radius.variable]:"radii.xl",[$padding$1.variable]:"space.7"}})},variants$d={elevated:definePartsStyle$l({container:{[$shadow$3.variable]:"shadows.base",_dark:{[$bg$d.variable]:"colors.gray.700"}}}),outline:definePartsStyle$l({container:{[$border$2.variable]:"1px",[$borderColor.variable]:"colors.chakra-border-color"}}),filled:definePartsStyle$l({container:{[$bg$d.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[$padding$1.variable]:0},header:{[$padding$1.variable]:0},footer:{[$padding$1.variable]:0}}},cardTheme=defineMultiStyleConfig$l({baseStyle:baseStyle$A,variants:variants$d,sizes:sizes$j,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:definePartsStyle$k,defineMultiStyleConfig:defineMultiStyleConfig$k}=createMultiStyleConfigHelpers(checkboxAnatomy.keys),$size$3=cssVar$1("checkbox-size"),baseStyleControl$1=i=>{const{colorScheme:s}=i;return{w:$size$3.reference,h:$size$3.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mode(`${s}.500`,`${s}.200`)(i),borderColor:mode(`${s}.500`,`${s}.200`)(i),color:mode("white","gray.900")(i),_hover:{bg:mode(`${s}.600`,`${s}.300`)(i),borderColor:mode(`${s}.600`,`${s}.300`)(i)},_disabled:{borderColor:mode("gray.200","transparent")(i),bg:mode("gray.200","whiteAlpha.300")(i),color:mode("gray.500","whiteAlpha.500")(i)}},_indeterminate:{bg:mode(`${s}.500`,`${s}.200`)(i),borderColor:mode(`${s}.500`,`${s}.200`)(i),color:mode("white","gray.900")(i)},_disabled:{bg:mode("gray.100","whiteAlpha.100")(i),borderColor:mode("gray.100","transparent")(i)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mode("red.500","red.300")(i)}}},baseStyleContainer$2={_disabled:{cursor:"not-allowed"}},baseStyleLabel$3={userSelect:"none",_disabled:{opacity:.4}},baseStyleIcon$5={transitionProperty:"transform",transitionDuration:"normal"},baseStyle$z=definePartsStyle$k(i=>({icon:baseStyleIcon$5,container:baseStyleContainer$2,control:runIfFn(baseStyleControl$1,i),label:baseStyleLabel$3})),sizes$i={sm:definePartsStyle$k({control:{[$size$3.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:definePartsStyle$k({control:{[$size$3.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:definePartsStyle$k({control:{[$size$3.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},checkboxTheme=defineMultiStyleConfig$k({baseStyle:baseStyle$z,sizes:sizes$i,defaultProps:{size:"md",colorScheme:"blue"}}),$size$2=cssVar("close-button-size"),$bg$c=cssVar("close-button-bg"),baseStyle$y={w:[$size$2.reference],h:[$size$2.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$bg$c.variable]:"colors.blackAlpha.100",_dark:{[$bg$c.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$c.variable]:"colors.blackAlpha.200",_dark:{[$bg$c.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$bg$c.reference},sizes$h={lg:{[$size$2.variable]:"sizes.10",fontSize:"md"},md:{[$size$2.variable]:"sizes.8",fontSize:"xs"},sm:{[$size$2.variable]:"sizes.6",fontSize:"2xs"}},closeButtonTheme={baseStyle:baseStyle$y,sizes:sizes$h,defaultProps:{size:"md"}},{variants:variants$c,defaultProps}=badgeTheme,baseStyle$x={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:vars.bg.reference,color:vars.color.reference,boxShadow:vars.shadow.reference},codeTheme={baseStyle:baseStyle$x,variants:variants$c,defaultProps},baseStyle$w={w:"100%",mx:"auto",maxW:"prose",px:"4"},containerTheme={baseStyle:baseStyle$w},baseStyle$v={opacity:.6,borderColor:"inherit"},variantSolid={borderStyle:"solid"},variantDashed={borderStyle:"dashed"},variants$b={solid:variantSolid,dashed:variantDashed},dividerTheme={baseStyle:baseStyle$v,variants:variants$b,defaultProps:{variant:"solid"}},{definePartsStyle:definePartsStyle$j,defineMultiStyleConfig:defineMultiStyleConfig$j}=createMultiStyleConfigHelpers(drawerAnatomy.keys),$bg$b=cssVar$1("drawer-bg"),$bs=cssVar$1("drawer-box-shadow");function getSize$2(i){return definePartsStyle$j(i==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:i}})}const baseStyleOverlay$1={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer$1={display:"flex",zIndex:"modal",justifyContent:"center"},baseStyleDialog$1=i=>{const{isFullHeight:s}=i;return{...s&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[$bg$b.variable]:"colors.white",[$bs.variable]:"shadows.lg",_dark:{[$bg$b.variable]:"colors.gray.700",[$bs.variable]:"shadows.dark-lg"},bg:$bg$b.reference,boxShadow:$bs.reference}},baseStyleHeader$2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton$3={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody$2={px:"6",py:"2",flex:"1",overflow:"auto"},baseStyleFooter$2={px:"6",py:"4"},baseStyle$u=definePartsStyle$j(i=>({overlay:baseStyleOverlay$1,dialogContainer:baseStyleDialogContainer$1,dialog:runIfFn(baseStyleDialog$1,i),header:baseStyleHeader$2,closeButton:baseStyleCloseButton$3,body:baseStyleBody$2,footer:baseStyleFooter$2})),sizes$g={xs:getSize$2("xs"),sm:getSize$2("md"),md:getSize$2("lg"),lg:getSize$2("2xl"),xl:getSize$2("4xl"),full:getSize$2("full")},drawerTheme=defineMultiStyleConfig$j({baseStyle:baseStyle$u,sizes:sizes$g,defaultProps:{size:"xs"}}),{definePartsStyle:definePartsStyle$i,defineMultiStyleConfig:defineMultiStyleConfig$i}=createMultiStyleConfigHelpers(editableAnatomy.keys),baseStylePreview={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},baseStyleInput={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyleTextarea={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyle$t=definePartsStyle$i({preview:baseStylePreview,input:baseStyleInput,textarea:baseStyleTextarea}),editableTheme=defineMultiStyleConfig$i({baseStyle:baseStyle$t}),{definePartsStyle:definePartsStyle$h,defineMultiStyleConfig:defineMultiStyleConfig$h}=createMultiStyleConfigHelpers(formAnatomy.keys),$fg$4=cssVar$1("form-control-color"),baseStyleRequiredIndicator={marginStart:"1",[$fg$4.variable]:"colors.red.500",_dark:{[$fg$4.variable]:"colors.red.300"},color:$fg$4.reference},baseStyleHelperText={mt:"2",[$fg$4.variable]:"colors.gray.600",_dark:{[$fg$4.variable]:"colors.whiteAlpha.600"},color:$fg$4.reference,lineHeight:"normal",fontSize:"sm"},baseStyle$s=definePartsStyle$h({container:{width:"100%",position:"relative"},requiredIndicator:baseStyleRequiredIndicator,helperText:baseStyleHelperText}),formTheme=defineMultiStyleConfig$h({baseStyle:baseStyle$s}),{definePartsStyle:definePartsStyle$g,defineMultiStyleConfig:defineMultiStyleConfig$g}=createMultiStyleConfigHelpers(formErrorAnatomy.keys),$fg$3=cssVar$1("form-error-color"),baseStyleText={[$fg$3.variable]:"colors.red.500",_dark:{[$fg$3.variable]:"colors.red.300"},color:$fg$3.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},baseStyleIcon$4={marginEnd:"0.5em",[$fg$3.variable]:"colors.red.500",_dark:{[$fg$3.variable]:"colors.red.300"},color:$fg$3.reference},baseStyle$r=definePartsStyle$g({text:baseStyleText,icon:baseStyleIcon$4}),formErrorTheme=defineMultiStyleConfig$g({baseStyle:baseStyle$r}),baseStyle$q={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},formLabelTheme={baseStyle:baseStyle$q},baseStyle$p={fontFamily:"heading",fontWeight:"bold"},sizes$f={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},headingTheme={baseStyle:baseStyle$p,sizes:sizes$f,defaultProps:{size:"xl"}},{definePartsStyle:definePartsStyle$f,defineMultiStyleConfig:defineMultiStyleConfig$f}=createMultiStyleConfigHelpers(inputAnatomy.keys),$height$1=cssVar$1("input-height"),$fontSize$1=cssVar$1("input-font-size"),$padding=cssVar$1("input-padding"),$borderRadius=cssVar$1("input-border-radius"),baseStyle$o=definePartsStyle$f({addon:{height:$height$1.reference,fontSize:$fontSize$1.reference,px:$padding.reference,borderRadius:$borderRadius.reference},field:{width:"100%",height:$height$1.reference,fontSize:$fontSize$1.reference,px:$padding.reference,borderRadius:$borderRadius.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),size={lg:{[$fontSize$1.variable]:"fontSizes.lg",[$padding.variable]:"space.4",[$borderRadius.variable]:"radii.md",[$height$1.variable]:"sizes.12"},md:{[$fontSize$1.variable]:"fontSizes.md",[$padding.variable]:"space.4",[$borderRadius.variable]:"radii.md",[$height$1.variable]:"sizes.10"},sm:{[$fontSize$1.variable]:"fontSizes.sm",[$padding.variable]:"space.3",[$borderRadius.variable]:"radii.sm",[$height$1.variable]:"sizes.8"},xs:{[$fontSize$1.variable]:"fontSizes.xs",[$padding.variable]:"space.2",[$borderRadius.variable]:"radii.sm",[$height$1.variable]:"sizes.6"}},sizes$e={lg:definePartsStyle$f({field:size.lg,group:size.lg}),md:definePartsStyle$f({field:size.md,group:size.md}),sm:definePartsStyle$f({field:size.sm,group:size.sm}),xs:definePartsStyle$f({field:size.xs,group:size.xs})};function getDefaults(i){const{focusBorderColor:s,errorBorderColor:o}=i;return{focusBorderColor:s||mode("blue.500","blue.300")(i),errorBorderColor:o||mode("red.500","red.300")(i)}}const variantOutline=definePartsStyle$f(i=>{const{theme:s}=i,{focusBorderColor:o,errorBorderColor:a}=getDefaults(i);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:mode("gray.300","whiteAlpha.400")(i)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(s,a),boxShadow:`0 0 0 1px ${getColor(s,a)}`},_focusVisible:{zIndex:1,borderColor:getColor(s,o),boxShadow:`0 0 0 1px ${getColor(s,o)}`}},addon:{border:"1px solid",borderColor:mode("inherit","whiteAlpha.50")(i),bg:mode("gray.100","whiteAlpha.300")(i)}}}),variantFilled=definePartsStyle$f(i=>{const{theme:s}=i,{focusBorderColor:o,errorBorderColor:a}=getDefaults(i);return{field:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(i),_hover:{bg:mode("gray.200","whiteAlpha.100")(i)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(s,a)},_focusVisible:{bg:"transparent",borderColor:getColor(s,o)}},addon:{border:"2px solid",borderColor:"transparent",bg:mode("gray.100","whiteAlpha.50")(i)}}}),variantFlushed=definePartsStyle$f(i=>{const{theme:s}=i,{focusBorderColor:o,errorBorderColor:a}=getDefaults(i);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:getColor(s,a),boxShadow:`0px 1px 0px 0px ${getColor(s,a)}`},_focusVisible:{borderColor:getColor(s,o),boxShadow:`0px 1px 0px 0px ${getColor(s,o)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),variantUnstyled$1=definePartsStyle$f({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),variants$a={outline:variantOutline,filled:variantFilled,flushed:variantFlushed,unstyled:variantUnstyled$1},inputTheme=defineMultiStyleConfig$f({baseStyle:baseStyle$o,sizes:sizes$e,variants:variants$a,defaultProps:{size:"md",variant:"outline"}}),$bg$a=cssVar$1("kbd-bg"),baseStyle$n={[$bg$a.variable]:"colors.gray.100",_dark:{[$bg$a.variable]:"colors.whiteAlpha.100"},bg:$bg$a.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},kbdTheme={baseStyle:baseStyle$n},baseStyle$m={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},linkTheme={baseStyle:baseStyle$m},{defineMultiStyleConfig:defineMultiStyleConfig$e,definePartsStyle:definePartsStyle$e}=createMultiStyleConfigHelpers(listAnatomy.keys),baseStyleIcon$3={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},baseStyle$l=definePartsStyle$e({icon:baseStyleIcon$3}),listTheme=defineMultiStyleConfig$e({baseStyle:baseStyle$l}),{defineMultiStyleConfig:defineMultiStyleConfig$d,definePartsStyle:definePartsStyle$d}=createMultiStyleConfigHelpers(menuAnatomy.keys),$bg$9=cssVar$1("menu-bg"),$shadow$2=cssVar$1("menu-shadow"),baseStyleList={[$bg$9.variable]:"#fff",[$shadow$2.variable]:"shadows.sm",_dark:{[$bg$9.variable]:"colors.gray.700",[$shadow$2.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:$bg$9.reference,boxShadow:$shadow$2.reference},baseStyleItem={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[$bg$9.variable]:"colors.gray.100",_dark:{[$bg$9.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$9.variable]:"colors.gray.200",_dark:{[$bg$9.variable]:"colors.whiteAlpha.200"}},_expanded:{[$bg$9.variable]:"colors.gray.100",_dark:{[$bg$9.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:$bg$9.reference},baseStyleGroupTitle={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},baseStyleIcon$2={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},baseStyleCommand={opacity:.6},baseStyleDivider={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},baseStyleButton={transitionProperty:"common",transitionDuration:"normal"},baseStyle$k=definePartsStyle$d({button:baseStyleButton,list:baseStyleList,item:baseStyleItem,groupTitle:baseStyleGroupTitle,icon:baseStyleIcon$2,command:baseStyleCommand,divider:baseStyleDivider}),menuTheme=defineMultiStyleConfig$d({baseStyle:baseStyle$k}),{defineMultiStyleConfig:defineMultiStyleConfig$c,definePartsStyle:definePartsStyle$c}=createMultiStyleConfigHelpers(modalAnatomy.keys),$bg$8=cssVar$1("modal-bg"),$shadow$1=cssVar$1("modal-shadow"),baseStyleOverlay={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer=i=>{const{isCentered:s,scrollBehavior:o}=i;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:s?"center":"flex-start",overflow:o==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},baseStyleDialog=i=>{const{isCentered:s,scrollBehavior:o}=i;return{borderRadius:"md",color:"inherit",my:s?"auto":"16",mx:s?"auto":void 0,zIndex:"modal",maxH:o==="inside"?"calc(100% - 7.5rem)":void 0,[$bg$8.variable]:"colors.white",[$shadow$1.variable]:"shadows.lg",_dark:{[$bg$8.variable]:"colors.gray.700",[$shadow$1.variable]:"shadows.dark-lg"},bg:$bg$8.reference,boxShadow:$shadow$1.reference}},baseStyleHeader$1={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton$2={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody$1=i=>{const{scrollBehavior:s}=i;return{px:"6",py:"2",flex:"1",overflow:s==="inside"?"auto":void 0}},baseStyleFooter$1={px:"6",py:"4"},baseStyle$j=definePartsStyle$c(i=>({overlay:baseStyleOverlay,dialogContainer:runIfFn(baseStyleDialogContainer,i),dialog:runIfFn(baseStyleDialog,i),header:baseStyleHeader$1,closeButton:baseStyleCloseButton$2,body:runIfFn(baseStyleBody$1,i),footer:baseStyleFooter$1}));function getSize$1(i){return definePartsStyle$c(i==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:i}})}const sizes$d={xs:getSize$1("xs"),sm:getSize$1("sm"),md:getSize$1("md"),lg:getSize$1("lg"),xl:getSize$1("xl"),"2xl":getSize$1("2xl"),"3xl":getSize$1("3xl"),"4xl":getSize$1("4xl"),"5xl":getSize$1("5xl"),"6xl":getSize$1("6xl"),full:getSize$1("full")},modalTheme=defineMultiStyleConfig$c({baseStyle:baseStyle$j,sizes:sizes$d,defaultProps:{size:"md"}}),typography={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:defineMultiStyleConfig$b,definePartsStyle:definePartsStyle$b}=createMultiStyleConfigHelpers(numberInputAnatomy.keys),$stepperWidth=cssVar("number-input-stepper-width"),$inputPadding=cssVar("number-input-input-padding"),inputPaddingValue=calc($stepperWidth).add("0.5rem").toString(),$bg$7=cssVar("number-input-bg"),$fg$2=cssVar("number-input-color"),$border$1=cssVar("number-input-border-color"),baseStyleRoot$1={[$stepperWidth.variable]:"sizes.6",[$inputPadding.variable]:inputPaddingValue},baseStyleField$1=i=>{var s;return((s=runIfFn(inputTheme.baseStyle,i))==null?void 0:s.field)??{}},baseStyleStepperGroup={width:$stepperWidth.reference},baseStyleStepper={borderStart:"1px solid",borderStartColor:$border$1.reference,color:$fg$2.reference,bg:$bg$7.reference,[$fg$2.variable]:"colors.chakra-body-text",[$border$1.variable]:"colors.chakra-border-color",_dark:{[$fg$2.variable]:"colors.whiteAlpha.800",[$border$1.variable]:"colors.whiteAlpha.300"},_active:{[$bg$7.variable]:"colors.gray.200",_dark:{[$bg$7.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},baseStyle$i=definePartsStyle$b(i=>({root:baseStyleRoot$1,field:runIfFn(baseStyleField$1,i)??{},stepperGroup:baseStyleStepperGroup,stepper:baseStyleStepper}));function getSize(i){var $,j;const s=($=inputTheme.sizes)==null?void 0:$[i],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=((j=s.field)==null?void 0:j.fontSize)??"md",_=typography.fontSizes[a];return definePartsStyle$b({field:{...s.field,paddingInlineEnd:$inputPadding.reference,verticalAlign:"top"},stepper:{fontSize:calc(_).multiply(.75).toString(),_first:{borderTopEndRadius:o[i]},_last:{borderBottomEndRadius:o[i],mt:"-1px",borderTopWidth:1}}})}const sizes$c={xs:getSize("xs"),sm:getSize("sm"),md:getSize("md"),lg:getSize("lg")},numberInputTheme=defineMultiStyleConfig$b({baseStyle:baseStyle$i,sizes:sizes$c,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps});var xs;const baseStyle$h={...(xs=inputTheme.baseStyle)==null?void 0:xs.field,textAlign:"center"},sizes$b={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var bs;const variants$9={outline:i=>{var s,o;return((o=runIfFn((s=inputTheme.variants)==null?void 0:s.outline,i))==null?void 0:o.field)??{}},flushed:i=>{var s,o;return((o=runIfFn((s=inputTheme.variants)==null?void 0:s.flushed,i))==null?void 0:o.field)??{}},filled:i=>{var s,o;return((o=runIfFn((s=inputTheme.variants)==null?void 0:s.filled,i))==null?void 0:o.field)??{}},unstyled:((bs=inputTheme.variants)==null?void 0:bs.unstyled.field)??{}},pinInputTheme={baseStyle:baseStyle$h,sizes:sizes$b,variants:variants$9,defaultProps:inputTheme.defaultProps},{defineMultiStyleConfig:defineMultiStyleConfig$a,definePartsStyle:definePartsStyle$a}=createMultiStyleConfigHelpers(popoverAnatomy.keys),$popperBg=cssVar("popper-bg"),$arrowBg$1=cssVar("popper-arrow-bg"),$arrowShadowColor=cssVar("popper-arrow-shadow-color"),baseStylePopper={zIndex:"popover"},baseStyleContent={[$popperBg.variable]:"colors.white",bg:$popperBg.reference,[$arrowBg$1.variable]:$popperBg.reference,[$arrowShadowColor.variable]:"colors.gray.200",_dark:{[$popperBg.variable]:"colors.gray.700",[$arrowShadowColor.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},baseStyleHeader={px:3,py:2,borderBottomWidth:"1px"},baseStyleBody={px:3,py:2},baseStyleFooter={px:3,py:2,borderTopWidth:"1px"},baseStyleCloseButton$1={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},baseStyle$g=definePartsStyle$a({popper:baseStylePopper,content:baseStyleContent,header:baseStyleHeader,body:baseStyleBody,footer:baseStyleFooter,closeButton:baseStyleCloseButton$1}),popoverTheme=defineMultiStyleConfig$a({baseStyle:baseStyle$g}),{defineMultiStyleConfig:defineMultiStyleConfig$9,definePartsStyle:definePartsStyle$9}=createMultiStyleConfigHelpers(progressAnatomy.keys),filledStyle=i=>{const{colorScheme:s,theme:o,isIndeterminate:a,hasStripe:_}=i,$=mode(generateStripe(),generateStripe("1rem","rgba(0,0,0,0.1)"))(i),j=mode(`${s}.500`,`${s}.200`)(i),_e=`linear-gradient(
    to right,
    transparent 0%,
    ${getColor(o,j)} 50%,
    transparent 100%
  )`;return{...!a&&_&&$,...a?{bgImage:_e}:{bgColor:j}}},baseStyleLabel$2={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},baseStyleTrack$2=i=>({bg:mode("gray.100","whiteAlpha.300")(i)}),baseStyleFilledTrack$1=i=>({transitionProperty:"common",transitionDuration:"slow",...filledStyle(i)}),baseStyle$f=definePartsStyle$9(i=>({label:baseStyleLabel$2,filledTrack:baseStyleFilledTrack$1(i),track:baseStyleTrack$2(i)})),sizes$a={xs:definePartsStyle$9({track:{h:"1"}}),sm:definePartsStyle$9({track:{h:"2"}}),md:definePartsStyle$9({track:{h:"3"}}),lg:definePartsStyle$9({track:{h:"4"}})},progressTheme=defineMultiStyleConfig$9({sizes:sizes$a,baseStyle:baseStyle$f,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$8,definePartsStyle:definePartsStyle$8}=createMultiStyleConfigHelpers(radioAnatomy.keys),baseStyleControl=i=>{var o;const s=(o=runIfFn(checkboxTheme.baseStyle,i))==null?void 0:o.control;return{...s,borderRadius:"full",_checked:{...s==null?void 0:s._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},baseStyle$e=definePartsStyle$8(i=>{var s,o;return{label:(s=checkboxTheme.baseStyle)==null?void 0:s.call(checkboxTheme,i).label,container:(o=checkboxTheme.baseStyle)==null?void 0:o.call(checkboxTheme,i).container,control:baseStyleControl(i)}}),sizes$9={md:definePartsStyle$8({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:definePartsStyle$8({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:definePartsStyle$8({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},radioTheme=defineMultiStyleConfig$8({baseStyle:baseStyle$e,sizes:sizes$9,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$7,definePartsStyle:definePartsStyle$7}=createMultiStyleConfigHelpers(selectAnatomy.keys),$bg$6=cssVar$1("select-bg");var Ss;const baseStyleField={...(Ss=inputTheme.baseStyle)==null?void 0:Ss.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$bg$6.reference,[$bg$6.variable]:"colors.white",_dark:{[$bg$6.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$bg$6.reference}},baseStyleIcon$1={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},baseStyle$d=definePartsStyle$7({field:baseStyleField,icon:baseStyleIcon$1}),iconSpacing={paddingInlineEnd:"8"};var Es,Cs,ws,ks,_s,Ps,Ts,Rs;const sizes$8={lg:{...(Es=inputTheme.sizes)==null?void 0:Es.lg,field:{...(Cs=inputTheme.sizes)==null?void 0:Cs.lg.field,...iconSpacing}},md:{...(ws=inputTheme.sizes)==null?void 0:ws.md,field:{...(ks=inputTheme.sizes)==null?void 0:ks.md.field,...iconSpacing}},sm:{...(_s=inputTheme.sizes)==null?void 0:_s.sm,field:{...(Ps=inputTheme.sizes)==null?void 0:Ps.sm.field,...iconSpacing}},xs:{...(Ts=inputTheme.sizes)==null?void 0:Ts.xs,field:{...(Rs=inputTheme.sizes)==null?void 0:Rs.xs.field,...iconSpacing},icon:{insetEnd:"1"}}},selectTheme=defineMultiStyleConfig$7({baseStyle:baseStyle$d,sizes:sizes$8,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps}),$startColor$1=cssVar$1("skeleton-start-color"),$endColor$1=cssVar$1("skeleton-end-color"),baseStyle$c={[$startColor$1.variable]:"colors.gray.100",[$endColor$1.variable]:"colors.gray.400",_dark:{[$startColor$1.variable]:"colors.gray.800",[$endColor$1.variable]:"colors.gray.600"},background:$startColor$1.reference,borderColor:$endColor$1.reference,opacity:.7,borderRadius:"sm"},skeletonTheme={baseStyle:baseStyle$c},$bg$5=cssVar$1("skip-link-bg"),baseStyle$b={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[$bg$5.variable]:"colors.white",_dark:{[$bg$5.variable]:"colors.gray.700"},bg:$bg$5.reference}},skipLinkTheme={baseStyle:baseStyle$b},{defineMultiStyleConfig:defineMultiStyleConfig$6,definePartsStyle:definePartsStyle$6}=createMultiStyleConfigHelpers(sliderAnatomy.keys),$thumbSize=cssVar$1("slider-thumb-size"),$trackSize=cssVar$1("slider-track-size"),$bg$4=cssVar$1("slider-bg"),baseStyleContainer$1=i=>{const{orientation:s}=i;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...orient({orientation:s,vertical:{h:"100%",px:calc$1($thumbSize.reference).divide(2).toString()},horizontal:{w:"100%",py:calc$1($thumbSize.reference).divide(2).toString()}})}},baseStyleTrack$1=i=>({...orient({orientation:i.orientation,horizontal:{h:$trackSize.reference},vertical:{w:$trackSize.reference}}),overflow:"hidden",borderRadius:"sm",[$bg$4.variable]:"colors.gray.200",_dark:{[$bg$4.variable]:"colors.whiteAlpha.200"},_disabled:{[$bg$4.variable]:"colors.gray.300",_dark:{[$bg$4.variable]:"colors.whiteAlpha.300"}},bg:$bg$4.reference}),baseStyleThumb$1=i=>{const{orientation:s}=i;return{...orient({orientation:s,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:$thumbSize.reference,h:$thumbSize.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},baseStyleFilledTrack=i=>{const{colorScheme:s}=i;return{width:"inherit",height:"inherit",[$bg$4.variable]:`colors.${s}.500`,_dark:{[$bg$4.variable]:`colors.${s}.200`},bg:$bg$4.reference}},baseStyle$a=definePartsStyle$6(i=>({container:baseStyleContainer$1(i),track:baseStyleTrack$1(i),thumb:baseStyleThumb$1(i),filledTrack:baseStyleFilledTrack(i)})),sizeLg=definePartsStyle$6({container:{[$thumbSize.variable]:"sizes.4",[$trackSize.variable]:"sizes.1"}}),sizeMd=definePartsStyle$6({container:{[$thumbSize.variable]:"sizes.3.5",[$trackSize.variable]:"sizes.1"}}),sizeSm=definePartsStyle$6({container:{[$thumbSize.variable]:"sizes.2.5",[$trackSize.variable]:"sizes.0.5"}}),sizes$7={lg:sizeLg,md:sizeMd,sm:sizeSm},sliderTheme=defineMultiStyleConfig$6({baseStyle:baseStyle$a,sizes:sizes$7,defaultProps:{size:"md",colorScheme:"blue"}}),$size$1=cssVar("spinner-size"),baseStyle$9={width:[$size$1.reference],height:[$size$1.reference]},sizes$6={xs:{[$size$1.variable]:"sizes.3"},sm:{[$size$1.variable]:"sizes.4"},md:{[$size$1.variable]:"sizes.6"},lg:{[$size$1.variable]:"sizes.8"},xl:{[$size$1.variable]:"sizes.12"}},spinnerTheme={baseStyle:baseStyle$9,sizes:sizes$6,defaultProps:{size:"md"}},{defineMultiStyleConfig:defineMultiStyleConfig$5,definePartsStyle:definePartsStyle$5}=createMultiStyleConfigHelpers(statAnatomy.keys),baseStyleLabel$1={fontWeight:"medium"},baseStyleHelpText={opacity:.8,marginBottom:"2"},baseStyleNumber={verticalAlign:"baseline",fontWeight:"semibold"},baseStyleIcon={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},baseStyle$8=definePartsStyle$5({container:{},label:baseStyleLabel$1,helpText:baseStyleHelpText,number:baseStyleNumber,icon:baseStyleIcon}),sizes$5={md:definePartsStyle$5({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},statTheme=defineMultiStyleConfig$5({baseStyle:baseStyle$8,sizes:sizes$5,defaultProps:{size:"md"}}),{defineMultiStyleConfig:defineMultiStyleConfig$4,definePartsStyle:definePartsStyle$4}=createMultiStyleConfigHelpers(["stepper","step","title","description","indicator","separator","icon","number"]),$size=cssVar$1("stepper-indicator-size"),$iconSize=cssVar$1("stepper-icon-size"),$titleFontSize=cssVar$1("stepper-title-font-size"),$descFontSize=cssVar$1("stepper-description-font-size"),$accentColor=cssVar$1("stepper-accent-color"),baseStyle$7=definePartsStyle$4(({colorScheme:i})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[$accentColor.variable]:`colors.${i}.500`,_dark:{[$accentColor.variable]:`colors.${i}.200`}},title:{fontSize:$titleFontSize.reference,fontWeight:"medium"},description:{fontSize:$descFontSize.reference,color:"chakra-subtle-text"},number:{fontSize:$titleFontSize.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:$iconSize.reference,height:$iconSize.reference},indicator:{flexShrink:0,borderRadius:"full",width:$size.reference,height:$size.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:$accentColor.reference},"&[data-status=complete]":{bg:$accentColor.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:$accentColor.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${$size.reference} - 8px)`,top:`calc(${$size.reference} + 4px)`,insetStart:`calc(${$size.reference} / 2 - 1px)`}}})),stepperTheme=defineMultiStyleConfig$4({baseStyle:baseStyle$7,sizes:{xs:definePartsStyle$4({stepper:{[$size.variable]:"sizes.4",[$iconSize.variable]:"sizes.3",[$titleFontSize.variable]:"fontSizes.xs",[$descFontSize.variable]:"fontSizes.xs"}}),sm:definePartsStyle$4({stepper:{[$size.variable]:"sizes.6",[$iconSize.variable]:"sizes.4",[$titleFontSize.variable]:"fontSizes.sm",[$descFontSize.variable]:"fontSizes.xs"}}),md:definePartsStyle$4({stepper:{[$size.variable]:"sizes.8",[$iconSize.variable]:"sizes.5",[$titleFontSize.variable]:"fontSizes.md",[$descFontSize.variable]:"fontSizes.sm"}}),lg:definePartsStyle$4({stepper:{[$size.variable]:"sizes.10",[$iconSize.variable]:"sizes.6",[$titleFontSize.variable]:"fontSizes.lg",[$descFontSize.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$3,definePartsStyle:definePartsStyle$3}=createMultiStyleConfigHelpers(switchAnatomy.keys),$width=cssVar("switch-track-width"),$height=cssVar("switch-track-height"),$diff=cssVar("switch-track-diff"),diffValue=calc.subtract($width,$height),$translateX=cssVar("switch-thumb-x"),$bg$3=cssVar("switch-bg"),baseStyleTrack=i=>{const{colorScheme:s}=i;return{borderRadius:"full",p:"0.5",width:[$width.reference],height:[$height.reference],transitionProperty:"common",transitionDuration:"fast",[$bg$3.variable]:"colors.gray.300",_dark:{[$bg$3.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[$bg$3.variable]:`colors.${s}.500`,_dark:{[$bg$3.variable]:`colors.${s}.200`}},bg:$bg$3.reference}},baseStyleThumb={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$height.reference],height:[$height.reference],_checked:{transform:`translateX(${$translateX.reference})`}},baseStyle$6=definePartsStyle$3(i=>({container:{[$diff.variable]:diffValue,[$translateX.variable]:$diff.reference,_rtl:{[$translateX.variable]:calc($diff).negate().toString()}},track:baseStyleTrack(i),thumb:baseStyleThumb})),sizes$4={sm:definePartsStyle$3({container:{[$width.variable]:"1.375rem",[$height.variable]:"sizes.3"}}),md:definePartsStyle$3({container:{[$width.variable]:"1.875rem",[$height.variable]:"sizes.4"}}),lg:definePartsStyle$3({container:{[$width.variable]:"2.875rem",[$height.variable]:"sizes.6"}})},switchTheme=defineMultiStyleConfig$3({baseStyle:baseStyle$6,sizes:sizes$4,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$2,definePartsStyle:definePartsStyle$2}=createMultiStyleConfigHelpers(tableAnatomy.keys),baseStyle$5=definePartsStyle$2({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),numericStyles={"&[data-is-numeric=true]":{textAlign:"end"}},variantSimple=definePartsStyle$2(i=>{const{colorScheme:s}=i;return{th:{color:mode("gray.600","gray.400")(i),borderBottom:"1px",borderColor:mode(`${s}.100`,`${s}.700`)(i),...numericStyles},td:{borderBottom:"1px",borderColor:mode(`${s}.100`,`${s}.700`)(i),...numericStyles},caption:{color:mode("gray.600","gray.100")(i)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),variantStripe=definePartsStyle$2(i=>{const{colorScheme:s}=i;return{th:{color:mode("gray.600","gray.400")(i),borderBottom:"1px",borderColor:mode(`${s}.100`,`${s}.700`)(i),...numericStyles},td:{borderBottom:"1px",borderColor:mode(`${s}.100`,`${s}.700`)(i),...numericStyles},caption:{color:mode("gray.600","gray.100")(i)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:mode(`${s}.100`,`${s}.700`)(i)},td:{background:mode(`${s}.100`,`${s}.700`)(i)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),variants$8={simple:variantSimple,striped:variantStripe,unstyled:{}},sizes$3={sm:definePartsStyle$2({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:definePartsStyle$2({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:definePartsStyle$2({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},tableTheme=defineMultiStyleConfig$2({baseStyle:baseStyle$5,variants:variants$8,sizes:sizes$3,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),$fg$1=cssVar$1("tabs-color"),$bg$2=cssVar$1("tabs-bg"),$border=cssVar$1("tabs-border-color"),{defineMultiStyleConfig:defineMultiStyleConfig$1,definePartsStyle:definePartsStyle$1}=createMultiStyleConfigHelpers(tabsAnatomy.keys),baseStyleRoot=i=>{const{orientation:s}=i;return{display:s==="vertical"?"flex":"block"}},baseStyleTab=i=>{const{isFitted:s}=i;return{flex:s?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},baseStyleTablist=i=>{const{align:s="start",orientation:o}=i;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[s],flexDirection:o==="vertical"?"column":"row"}},baseStyleTabpanel={p:4},baseStyle$4=definePartsStyle$1(i=>({root:baseStyleRoot(i),tab:baseStyleTab(i),tablist:baseStyleTablist(i),tabpanel:baseStyleTabpanel})),sizes$2={sm:definePartsStyle$1({tab:{py:1,px:4,fontSize:"sm"}}),md:definePartsStyle$1({tab:{fontSize:"md",py:2,px:4}}),lg:definePartsStyle$1({tab:{fontSize:"lg",py:3,px:4}})},variantLine=definePartsStyle$1(i=>{const{colorScheme:s,orientation:o}=i,a=o==="vertical",_=a?"borderStart":"borderBottom",$=a?"marginStart":"marginBottom";return{tablist:{[_]:"2px solid",borderColor:"inherit"},tab:{[_]:"2px solid",borderColor:"transparent",[$]:"-2px",_selected:{[$fg$1.variable]:`colors.${s}.600`,_dark:{[$fg$1.variable]:`colors.${s}.300`},borderColor:"currentColor"},_active:{[$bg$2.variable]:"colors.gray.200",_dark:{[$bg$2.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:$fg$1.reference,bg:$bg$2.reference}}}),variantEnclosed=definePartsStyle$1(i=>{const{colorScheme:s}=i;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[$border.variable]:"transparent",_selected:{[$fg$1.variable]:`colors.${s}.600`,[$border.variable]:"colors.white",_dark:{[$fg$1.variable]:`colors.${s}.300`,[$border.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:$border.reference},color:$fg$1.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),variantEnclosedColored=definePartsStyle$1(i=>{const{colorScheme:s}=i;return{tab:{border:"1px solid",borderColor:"inherit",[$bg$2.variable]:"colors.gray.50",_dark:{[$bg$2.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[$bg$2.variable]:"colors.white",[$fg$1.variable]:`colors.${s}.600`,_dark:{[$bg$2.variable]:"colors.gray.800",[$fg$1.variable]:`colors.${s}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:$fg$1.reference,bg:$bg$2.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),variantSoftRounded=definePartsStyle$1(i=>{const{colorScheme:s,theme:o}=i;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:getColor(o,`${s}.700`),bg:getColor(o,`${s}.100`)}}}}),variantSolidRounded=definePartsStyle$1(i=>{const{colorScheme:s}=i;return{tab:{borderRadius:"full",fontWeight:"semibold",[$fg$1.variable]:"colors.gray.600",_dark:{[$fg$1.variable]:"inherit"},_selected:{[$fg$1.variable]:"colors.white",[$bg$2.variable]:`colors.${s}.600`,_dark:{[$fg$1.variable]:"colors.gray.800",[$bg$2.variable]:`colors.${s}.300`}},color:$fg$1.reference,bg:$bg$2.reference}}}),variantUnstyled=definePartsStyle$1({}),variants$7={line:variantLine,enclosed:variantEnclosed,"enclosed-colored":variantEnclosedColored,"soft-rounded":variantSoftRounded,"solid-rounded":variantSolidRounded,unstyled:variantUnstyled},tabsTheme=defineMultiStyleConfig$1({baseStyle:baseStyle$4,sizes:sizes$2,variants:variants$7,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig,definePartsStyle}=createMultiStyleConfigHelpers(tagAnatomy.keys),$bg$1=cssVar$1("tag-bg"),$color=cssVar$1("tag-color"),$shadow=cssVar$1("tag-shadow"),$minH=cssVar$1("tag-min-height"),$minW=cssVar$1("tag-min-width"),$fontSize=cssVar$1("tag-font-size"),$paddingX=cssVar$1("tag-padding-inline"),baseStyleContainer={fontWeight:"medium",lineHeight:1.2,outline:0,[$color.variable]:vars.color.reference,[$bg$1.variable]:vars.bg.reference,[$shadow.variable]:vars.shadow.reference,color:$color.reference,bg:$bg$1.reference,boxShadow:$shadow.reference,borderRadius:"md",minH:$minH.reference,minW:$minW.reference,fontSize:$fontSize.reference,px:$paddingX.reference,_focusVisible:{[$shadow.variable]:"shadows.outline"}},baseStyleLabel={lineHeight:1.2,overflow:"visible"},baseStyleCloseButton={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},baseStyle$3=definePartsStyle({container:baseStyleContainer,label:baseStyleLabel,closeButton:baseStyleCloseButton}),sizes$1={sm:definePartsStyle({container:{[$minH.variable]:"sizes.5",[$minW.variable]:"sizes.5",[$fontSize.variable]:"fontSizes.xs",[$paddingX.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:definePartsStyle({container:{[$minH.variable]:"sizes.6",[$minW.variable]:"sizes.6",[$fontSize.variable]:"fontSizes.sm",[$paddingX.variable]:"space.2"}}),lg:definePartsStyle({container:{[$minH.variable]:"sizes.8",[$minW.variable]:"sizes.8",[$fontSize.variable]:"fontSizes.md",[$paddingX.variable]:"space.3"}})},variants$6={subtle:definePartsStyle(i=>{var s;return{container:(s=badgeTheme.variants)==null?void 0:s.subtle(i)}}),solid:definePartsStyle(i=>{var s;return{container:(s=badgeTheme.variants)==null?void 0:s.solid(i)}}),outline:definePartsStyle(i=>{var s;return{container:(s=badgeTheme.variants)==null?void 0:s.outline(i)}})},tagTheme=defineMultiStyleConfig({variants:variants$6,baseStyle:baseStyle$3,sizes:sizes$1,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var As;const baseStyle$2={...(As=inputTheme.baseStyle)==null?void 0:As.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Ms;const variants$5={outline:i=>{var s;return((s=inputTheme.variants)==null?void 0:s.outline(i).field)??{}},flushed:i=>{var s;return((s=inputTheme.variants)==null?void 0:s.flushed(i).field)??{}},filled:i=>{var s;return((s=inputTheme.variants)==null?void 0:s.filled(i).field)??{}},unstyled:((Ms=inputTheme.variants)==null?void 0:Ms.unstyled.field)??{}};var $s,Fs,Is,js;const sizes={xs:(($s=inputTheme.sizes)==null?void 0:$s.xs.field)??{},sm:((Fs=inputTheme.sizes)==null?void 0:Fs.sm.field)??{},md:((Is=inputTheme.sizes)==null?void 0:Is.md.field)??{},lg:((js=inputTheme.sizes)==null?void 0:js.lg.field)??{}},textareaTheme={baseStyle:baseStyle$2,sizes,variants:variants$5,defaultProps:{size:"md",variant:"outline"}},$bg=cssVar("tooltip-bg"),$fg=cssVar("tooltip-fg"),$arrowBg=cssVar("popper-arrow-bg"),baseStyle$1={bg:$bg.reference,color:$fg.reference,[$bg.variable]:"colors.gray.700",[$fg.variable]:"colors.whiteAlpha.900",_dark:{[$bg.variable]:"colors.gray.300",[$fg.variable]:"colors.gray.900"},[$arrowBg.variable]:$bg.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},tooltipTheme={baseStyle:baseStyle$1},components={Accordion:accordionTheme,Alert:alertTheme,Avatar:avatarTheme,Badge:badgeTheme,Breadcrumb:breadcrumbTheme,Button:buttonTheme,Checkbox:checkboxTheme,CloseButton:closeButtonTheme,Code:codeTheme,Container:containerTheme,Divider:dividerTheme,Drawer:drawerTheme,Editable:editableTheme,Form:formTheme,FormError:formErrorTheme,FormLabel:formLabelTheme,Heading:headingTheme,Input:inputTheme,Kbd:kbdTheme,Link:linkTheme,List:listTheme,Menu:menuTheme,Modal:modalTheme,NumberInput:numberInputTheme,PinInput:pinInputTheme,Popover:popoverTheme,Progress:progressTheme,Radio:radioTheme,Select:selectTheme,Skeleton:skeletonTheme,SkipLink:skipLinkTheme,Slider:sliderTheme,Spinner:spinnerTheme,Stat:statTheme,Switch:switchTheme,Table:tableTheme,Tabs:tabsTheme,Tag:tagTheme,Textarea:textareaTheme,Tooltip:tooltipTheme,Card:cardTheme,Stepper:stepperTheme},borders$1={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},breakpoints={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},colors={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},radii={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},shadows={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},transitionProperty={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},transitionTimingFunction={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},transitionDuration={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},transition={property:transitionProperty,easing:transitionTimingFunction,duration:transitionDuration},zIndices={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},blur={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},foundations={breakpoints,zIndices,radii,blur,colors,...typography,sizes:sizes$m,shadows,space:spacing,borders:borders$1,transition},semanticTokens={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},styles={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},requiredChakraThemeKeys=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function isChakraTheme(i){return isObject$2(i)?requiredChakraThemeKeys.every(s=>Object.prototype.hasOwnProperty.call(i,s)):!1}const direction="ltr",config={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},theme$1={semanticTokens,direction,...foundations,components,styles,config};function sheetForTag(i){if(i.sheet)return i.sheet;for(var s=0;s<document.styleSheets.length;s++)if(document.styleSheets[s].ownerNode===i)return document.styleSheets[s]}function createStyleElement(i){var s=document.createElement("style");return s.setAttribute("data-emotion",i.key),i.nonce!==void 0&&s.setAttribute("nonce",i.nonce),s.appendChild(document.createTextNode("")),s.setAttribute("data-s",""),s}var StyleSheet=function(){function i(o){var a=this;this._insertTag=function(_){var $;a.tags.length===0?a.insertionPoint?$=a.insertionPoint.nextSibling:a.prepend?$=a.container.firstChild:$=a.before:$=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(_,$),a.tags.push(_)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var s=i.prototype;return s.hydrate=function(a){a.forEach(this._insertTag)},s.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var _=this.tags[this.tags.length-1];if(this.isSpeedy){var $=sheetForTag(_);try{$.insertRule(a,$.cssRules.length)}catch{}}else _.appendChild(document.createTextNode(a));this.ctr++},s.flush=function(){this.tags.forEach(function(a){var _;return(_=a.parentNode)==null?void 0:_.removeChild(a)}),this.tags=[],this.ctr=0},i}(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs$2=Math.abs,from$1=String.fromCharCode,assign=Object.assign;function hash$2(i,s){return charat(i,0)^45?(((s<<2^charat(i,0))<<2^charat(i,1))<<2^charat(i,2))<<2^charat(i,3):0}function trim$1(i){return i.trim()}function match(i,s){return(i=s.exec(i))?i[0]:i}function replace(i,s,o){return i.replace(s,o)}function indexof(i,s){return i.indexOf(s)}function charat(i,s){return i.charCodeAt(s)|0}function substr(i,s,o){return i.slice(s,o)}function strlen(i){return i.length}function sizeof(i){return i.length}function append(i,s){return s.push(i),i}function combine(i,s){return i.map(s).join("")}var line=1,column=1,length=0,position=0,character=0,characters="";function node(i,s,o,a,_,$,j){return{value:i,root:s,parent:o,type:a,props:_,children:$,line,column,length:j,return:""}}function copy(i,s){return assign(node("",null,null,"",null,null,0),i,{length:-i.length},s)}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice(i,s){return substr(characters,i,s)}function token$1(i){switch(i){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(i){return line=column=1,length=strlen(characters=i),position=0,[]}function dealloc(i){return characters="",i}function delimit(i){return trim$1(slice(position-1,delimiter(i===91?i+2:i===40?i+1:i)))}function whitespace(i){for(;(character=peek())&&character<33;)next();return token$1(i)>2||token$1(character)>3?"":" "}function escaping(i,s){for(;--s&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(i,caret()+(s<6&&peek()==32&&next()==32))}function delimiter(i){for(;next();)switch(character){case i:return position;case 34:case 39:i!==34&&i!==39&&delimiter(character);break;case 40:i===41&&delimiter(i);break;case 92:next();break}return position}function commenter(i,s){for(;next()&&i+character!==57;)if(i+character===84&&peek()===47)break;return"/*"+slice(s,position-1)+"*"+from$1(i===47?i:next())}function identifier(i){for(;!token$1(peek());)next();return slice(i,position)}function compile(i){return dealloc(parse$1("",null,null,null,[""],i=alloc(i),0,[0],i))}function parse$1(i,s,o,a,_,$,j,_e,et){for(var tt=0,rt=0,it=j,nt=0,ut=0,ct=0,st=1,dt=1,ot=1,lt=0,at="",ft=_,ht=$,mt=a,gt=at;dt;)switch(ct=lt,lt=next()){case 40:if(ct!=108&&charat(gt,it-1)==58){indexof(gt+=replace(delimit(lt),"&","&\f"),"&\f")!=-1&&(ot=-1);break}case 34:case 39:case 91:gt+=delimit(lt);break;case 9:case 10:case 13:case 32:gt+=whitespace(ct);break;case 92:gt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),s,o),et);break;default:gt+="/"}break;case 123*st:_e[tt++]=strlen(gt)*ot;case 125*st:case 59:case 0:switch(lt){case 0:case 125:dt=0;case 59+rt:ot==-1&&(gt=replace(gt,/\f/g,"")),ut>0&&strlen(gt)-it&&append(ut>32?declaration(gt+";",a,o,it-1):declaration(replace(gt," ","")+";",a,o,it-2),et);break;case 59:gt+=";";default:if(append(mt=ruleset(gt,s,o,tt,rt,_,_e,at,ft=[],ht=[],it),$),lt===123)if(rt===0)parse$1(gt,s,mt,mt,ft,$,it,_e,ht);else switch(nt===99&&charat(gt,3)===110?100:nt){case 100:case 108:case 109:case 115:parse$1(i,mt,mt,a&&append(ruleset(i,mt,mt,0,0,_,_e,at,_,ft=[],it),ht),_,ht,it,_e,a?ft:ht);break;default:parse$1(gt,mt,mt,mt,[""],ht,0,_e,ht)}}tt=rt=ut=0,st=ot=1,at=gt="",it=j;break;case 58:it=1+strlen(gt),ut=ct;default:if(st<1){if(lt==123)--st;else if(lt==125&&st++==0&&prev()==125)continue}switch(gt+=from$1(lt),lt*st){case 38:ot=rt>0?1:(gt+="\f",-1);break;case 44:_e[tt++]=(strlen(gt)-1)*ot,ot=1;break;case 64:peek()===45&&(gt+=delimit(next())),nt=peek(),rt=it=strlen(at=gt+=identifier(caret())),lt++;break;case 45:ct===45&&strlen(gt)==2&&(st=0)}}return $}function ruleset(i,s,o,a,_,$,j,_e,et,tt,rt){for(var it=_-1,nt=_===0?$:[""],ut=sizeof(nt),ct=0,st=0,dt=0;ct<a;++ct)for(var ot=0,lt=substr(i,it+1,it=abs$2(st=j[ct])),at=i;ot<ut;++ot)(at=trim$1(st>0?nt[ot]+" "+lt:replace(lt,/&\f/g,nt[ot])))&&(et[dt++]=at);return node(i,s,o,_===0?RULESET:_e,et,tt,rt)}function comment(i,s,o){return node(i,s,o,COMMENT,from$1(char()),substr(i,2,-2),0)}function declaration(i,s,o,a){return node(i,s,o,DECLARATION,substr(i,0,a),substr(i,a+1,-1),a)}function serialize(i,s){for(var o="",a=sizeof(i),_=0;_<a;_++)o+=s(i[_],_,i,s)||"";return o}function stringify(i,s,o,a){switch(i.type){case LAYER:if(i.children.length)break;case IMPORT:case DECLARATION:return i.return=i.return||i.value;case COMMENT:return"";case KEYFRAMES:return i.return=i.value+"{"+serialize(i.children,a)+"}";case RULESET:i.value=i.props.join(",")}return strlen(o=serialize(i.children,a))?i.return=i.value+"{"+o+"}":""}function middleware(i){var s=sizeof(i);return function(o,a,_,$){for(var j="",_e=0;_e<s;_e++)j+=i[_e](o,a,_,$)||"";return j}}function rulesheet(i){return function(s){s.root||(s=s.return)&&i(s)}}var weakMemoize=function(s){var o=new WeakMap;return function(a){if(o.has(a))return o.get(a);var _=s(a);return o.set(a,_),_}};function memoize(i){var s=Object.create(null);return function(o){return s[o]===void 0&&(s[o]=i(o)),s[o]}}var identifierWithPointTracking=function(s,o,a){for(var _=0,$=0;_=$,$=peek(),_===38&&$===12&&(o[a]=1),!token$1($);)next();return slice(s,position)},toRules=function(s,o){var a=-1,_=44;do switch(token$1(_)){case 0:_===38&&peek()===12&&(o[a]=1),s[a]+=identifierWithPointTracking(position-1,o,a);break;case 2:s[a]+=delimit(_);break;case 4:if(_===44){s[++a]=peek()===58?"&\f":"",o[a]=s[a].length;break}default:s[a]+=from$1(_)}while(_=next());return s},getRules=function(s,o){return dealloc(toRules(alloc(s),o))},fixedElements=new WeakMap,compat=function(s){if(!(s.type!=="rule"||!s.parent||s.length<1)){for(var o=s.value,a=s.parent,_=s.column===a.column&&s.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(s.props.length===1&&o.charCodeAt(0)!==58&&!fixedElements.get(a))&&!_){fixedElements.set(s,!0);for(var $=[],j=getRules(o,$),_e=a.props,et=0,tt=0;et<j.length;et++)for(var rt=0;rt<_e.length;rt++,tt++)s.props[tt]=$[et]?j[et].replace(/&\f/g,_e[rt]):_e[rt]+" "+j[et]}}},removeLabel=function(s){if(s.type==="decl"){var o=s.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(s.return="",s.value="")}};function prefix(i,s){switch(hash$2(i,s)){case 5103:return WEBKIT+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+i+MOZ+i+MS+i+i;case 6828:case 4268:return WEBKIT+i+MS+i+i;case 6165:return WEBKIT+i+MS+"flex-"+i+i;case 5187:return WEBKIT+i+replace(i,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+i;case 5443:return WEBKIT+i+MS+"flex-item-"+replace(i,/flex-|-self/,"")+i;case 4675:return WEBKIT+i+MS+"flex-line-pack"+replace(i,/align-content|flex-|-self/,"")+i;case 5548:return WEBKIT+i+MS+replace(i,"shrink","negative")+i;case 5292:return WEBKIT+i+MS+replace(i,"basis","preferred-size")+i;case 6060:return WEBKIT+"box-"+replace(i,"-grow","")+WEBKIT+i+MS+replace(i,"grow","positive")+i;case 4554:return WEBKIT+replace(i,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+i;case 6187:return replace(replace(replace(i,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),i,"")+i;case 5495:case 3959:return replace(i,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(i,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+i+i;case 4095:case 3583:case 4068:case 2532:return replace(i,/(.+)-inline(.+)/,WEBKIT+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(i)-1-s>6)switch(charat(i,s+1)){case 109:if(charat(i,s+4)!==45)break;case 102:return replace(i,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(i,s+3)==108?"$3":"$2-$3"))+i;case 115:return~indexof(i,"stretch")?prefix(replace(i,"stretch","fill-available"),s)+i:i}break;case 4949:if(charat(i,s+1)!==115)break;case 6444:switch(charat(i,strlen(i)-3-(~indexof(i,"!important")&&10))){case 107:return replace(i,":",":"+WEBKIT)+i;case 101:return replace(i,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(i,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+i}break;case 5936:switch(charat(i,s+11)){case 114:return WEBKIT+i+MS+replace(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return WEBKIT+i+MS+replace(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return WEBKIT+i+MS+replace(i,/[svh]\w+-[tblr]{2}/,"lr")+i}return WEBKIT+i+MS+i+i}return i}var prefixer=function(s,o,a,_){if(s.length>-1&&!s.return)switch(s.type){case DECLARATION:s.return=prefix(s.value,s.length);break;case KEYFRAMES:return serialize([copy(s,{value:replace(s.value,"@","@"+WEBKIT)})],_);case RULESET:if(s.length)return combine(s.props,function($){switch(match($,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(s,{props:[replace($,/:(read-\w+)/,":"+MOZ+"$1")]})],_);case"::placeholder":return serialize([copy(s,{props:[replace($,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(s,{props:[replace($,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(s,{props:[replace($,/:(plac\w+)/,MS+"input-$1")]})],_)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(s){var o=s.key;if(o==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(st){var dt=st.getAttribute("data-emotion");dt.indexOf(" ")!==-1&&(document.head.appendChild(st),st.setAttribute("data-s",""))})}var _=s.stylisPlugins||defaultStylisPlugins,$={},j,_e=[];j=s.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(st){for(var dt=st.getAttribute("data-emotion").split(" "),ot=1;ot<dt.length;ot++)$[dt[ot]]=!0;_e.push(st)});var et,tt=[compat,removeLabel];{var rt,it=[stringify,rulesheet(function(st){rt.insert(st)})],nt=middleware(tt.concat(_,it)),ut=function(dt){return serialize(compile(dt),nt)};et=function(dt,ot,lt,at){rt=lt,ut(dt?dt+"{"+ot.styles+"}":ot.styles),at&&(ct.inserted[ot.name]=!0)}}var ct={key:o,sheet:new StyleSheet({key:o,container:j,nonce:s.nonce,speedy:s.speedy,prepend:s.prepend,insertionPoint:s.insertionPoint}),nonce:s.nonce,inserted:$,registered:{},insert:et};return ct.sheet.hydrate(_e),ct};function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(i){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var a in o)({}).hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},_extends$4.apply(null,arguments)}var reactIs$1={exports:{}},reactIs_production_min={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b=typeof Symbol=="function"&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h$1=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m$1=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p$1=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v$2=b?Symbol.for("react.block"):60121,w$1=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z$1(i){if(typeof i=="object"&&i!==null){var s=i.$$typeof;switch(s){case c:switch(i=i.type,i){case l:case m$1:case e:case g:case f:case p$1:return i;default:switch(i=i&&i.$$typeof,i){case k:case n:case t:case r:case h$1:return i;default:return s}}case d:return s}}}function A$1(i){return z$1(i)===m$1}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m$1;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h$1;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p$1;reactIs_production_min.isAsyncMode=function(i){return A$1(i)||z$1(i)===l};reactIs_production_min.isConcurrentMode=A$1;reactIs_production_min.isContextConsumer=function(i){return z$1(i)===k};reactIs_production_min.isContextProvider=function(i){return z$1(i)===h$1};reactIs_production_min.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===c};reactIs_production_min.isForwardRef=function(i){return z$1(i)===n};reactIs_production_min.isFragment=function(i){return z$1(i)===e};reactIs_production_min.isLazy=function(i){return z$1(i)===t};reactIs_production_min.isMemo=function(i){return z$1(i)===r};reactIs_production_min.isPortal=function(i){return z$1(i)===d};reactIs_production_min.isProfiler=function(i){return z$1(i)===g};reactIs_production_min.isStrictMode=function(i){return z$1(i)===f};reactIs_production_min.isSuspense=function(i){return z$1(i)===p$1};reactIs_production_min.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===e||i===m$1||i===g||i===f||i===p$1||i===q||typeof i=="object"&&i!==null&&(i.$$typeof===t||i.$$typeof===r||i.$$typeof===h$1||i.$$typeof===k||i.$$typeof===n||i.$$typeof===w$1||i.$$typeof===x||i.$$typeof===y||i.$$typeof===v$2)};reactIs_production_min.typeOf=z$1;reactIs$1.exports=reactIs_production_min;var reactIsExports=reactIs$1.exports,reactIs=reactIsExports,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;var isBrowser$2=!0;function getRegisteredStyles(i,s,o){var a="";return o.split(" ").forEach(function(_){i[_]!==void 0?s.push(i[_]+";"):_&&(a+=_+" ")}),a}var registerStyles=function(s,o,a){var _=s.key+"-"+o.name;(a===!1||isBrowser$2===!1)&&s.registered[_]===void 0&&(s.registered[_]=o.styles)},insertStyles=function(s,o,a){registerStyles(s,o,a);var _=s.key+"-"+o.name;if(s.inserted[o.name]===void 0){var $=o;do s.insert(o===$?"."+_:"",$,s.sheet,!0),$=$.next;while($!==void 0)}};function murmur2(i){for(var s=0,o,a=0,_=i.length;_>=4;++a,_-=4)o=i.charCodeAt(a)&255|(i.charCodeAt(++a)&255)<<8|(i.charCodeAt(++a)&255)<<16|(i.charCodeAt(++a)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,s=(o&65535)*1540483477+((o>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch(_){case 3:s^=(i.charCodeAt(a+2)&255)<<16;case 2:s^=(i.charCodeAt(a+1)&255)<<8;case 1:s^=i.charCodeAt(a)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(s){return s.charCodeAt(1)===45},isProcessableValue=function(s){return s!=null&&typeof s!="boolean"},processStyleName=memoize(function(i){return isCustomProperty(i)?i:i.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(s,o){switch(s){case"animation":case"animationName":if(typeof o=="string")return o.replace(animationRegex,function(a,_,$){return cursor={name:_,styles:$,next:cursor},_})}return unitlessKeys[s]!==1&&!isCustomProperty(s)&&typeof o=="number"&&o!==0?o+"px":o};function handleInterpolation(i,s,o){if(o==null)return"";var a=o;if(a.__emotion_styles!==void 0)return a;switch(typeof o){case"boolean":return"";case"object":{var _=o;if(_.anim===1)return cursor={name:_.name,styles:_.styles,next:cursor},_.name;var $=o;if($.styles!==void 0){var j=$.next;if(j!==void 0)for(;j!==void 0;)cursor={name:j.name,styles:j.styles,next:cursor},j=j.next;var _e=$.styles+";";return _e}return createStringFromObject(i,s,o)}case"function":{if(i!==void 0){var et=cursor,tt=o(i);return cursor=et,handleInterpolation(i,s,tt)}break}}var rt=o;if(s==null)return rt;var it=s[rt];return it!==void 0?it:rt}function createStringFromObject(i,s,o){var a="";if(Array.isArray(o))for(var _=0;_<o.length;_++)a+=handleInterpolation(i,s,o[_])+";";else for(var $ in o){var j=o[$];if(typeof j!="object"){var _e=j;s!=null&&s[_e]!==void 0?a+=$+"{"+s[_e]+"}":isProcessableValue(_e)&&(a+=processStyleName($)+":"+processStyleValue($,_e)+";")}else if(Array.isArray(j)&&typeof j[0]=="string"&&(s==null||s[j[0]]===void 0))for(var et=0;et<j.length;et++)isProcessableValue(j[et])&&(a+=processStyleName($)+":"+processStyleValue($,j[et])+";");else{var tt=handleInterpolation(i,s,j);switch($){case"animation":case"animationName":{a+=processStyleName($)+":"+tt+";";break}default:a+=$+"{"+tt+"}"}}}return a}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor;function serializeStyles(i,s,o){if(i.length===1&&typeof i[0]=="object"&&i[0]!==null&&i[0].styles!==void 0)return i[0];var a=!0,_="";cursor=void 0;var $=i[0];if($==null||$.raw===void 0)a=!1,_+=handleInterpolation(o,s,$);else{var j=$;_+=j[0]}for(var _e=1;_e<i.length;_e++)if(_+=handleInterpolation(o,s,i[_e]),a){var et=$;_+=et[_e]}labelPattern.lastIndex=0;for(var tt="",rt;(rt=labelPattern.exec(_))!==null;)tt+="-"+rt[1];var it=murmur2(_)+tt;return{name:it,styles:_,next:cursor}}var syncFallback=function(s){return s()},useInsertionEffect=React$2.useInsertionEffect?React$2.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect||reactExports.useLayoutEffect,EmotionCacheContext=reactExports.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null);EmotionCacheContext.Provider;var __unsafe_useEmotionCache=function(){return reactExports.useContext(EmotionCacheContext)},withEmotionCache=function(s){return reactExports.forwardRef(function(o,a){var _=reactExports.useContext(EmotionCacheContext);return s(o,_,a)})},ThemeContext=reactExports.createContext({}),useTheme$1=function(){return reactExports.useContext(ThemeContext)},getTheme$1=function(s,o){if(typeof o=="function"){var a=o(s);return a}return _extends$4({},s,o)},createCacheWithTheme=weakMemoize(function(i){return weakMemoize(function(s){return getTheme$1(i,s)})}),ThemeProvider$1=function(s){var o=reactExports.useContext(ThemeContext);return s.theme!==o&&(o=createCacheWithTheme(o)(s.theme)),reactExports.createElement(ThemeContext.Provider,{value:o},s.children)},hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(s,o){var a={};for(var _ in o)hasOwn.call(o,_)&&(a[_]=o[_]);return a[typePropName]=s,a},Insertion$1=function(s){var o=s.cache,a=s.serialized,_=s.isStringTag;return registerStyles(o,a,_),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(o,a,_)}),null},Emotion=withEmotionCache(function(i,s,o){var a=i.css;typeof a=="string"&&s.registered[a]!==void 0&&(a=s.registered[a]);var _=i[typePropName],$=[a],j="";typeof i.className=="string"?j=getRegisteredStyles(s.registered,$,i.className):i.className!=null&&(j=i.className+" ");var _e=serializeStyles($,void 0,reactExports.useContext(ThemeContext));j+=s.key+"-"+_e.name;var et={};for(var tt in i)hasOwn.call(i,tt)&&tt!=="css"&&tt!==typePropName&&(et[tt]=i[tt]);return et.className=j,o&&(et.ref=o),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion$1,{cache:s,serialized:_e,isStringTag:typeof _=="string"}),reactExports.createElement(_,et))}),Emotion$1=Emotion,jsx=function(s,o){var a=arguments;if(o==null||!hasOwn.call(o,"css"))return reactExports.createElement.apply(void 0,a);var _=a.length,$=new Array(_);$[0]=Emotion$1,$[1]=createEmotionProps(s,o);for(var j=2;j<_;j++)$[j]=a[j];return reactExports.createElement.apply(null,$)};(function(i){var s;s||(s=i.JSX||(i.JSX={}))})(jsx||(jsx={}));var Global=withEmotionCache(function(i,s){var o=i.styles,a=serializeStyles([o],void 0,reactExports.useContext(ThemeContext)),_=reactExports.useRef();return useInsertionEffectWithLayoutFallback(function(){var $=s.key+"-global",j=new s.sheet.constructor({key:$,nonce:s.sheet.nonce,container:s.sheet.container,speedy:s.sheet.isSpeedy}),_e=!1,et=document.querySelector('style[data-emotion="'+$+" "+a.name+'"]');return s.sheet.tags.length&&(j.before=s.sheet.tags[0]),et!==null&&(_e=!0,et.setAttribute("data-emotion",$),j.hydrate([et])),_.current=[j,_e],function(){j.flush()}},[s]),useInsertionEffectWithLayoutFallback(function(){var $=_.current,j=$[0],_e=$[1];if(_e){$[1]=!1;return}if(a.next!==void 0&&insertStyles(s,a.next,!0),j.tags.length){var et=j.tags[j.tags.length-1].nextElementSibling;j.before=et,j.flush()}s.insert("",a,j,!1)},[s,a.name]),null});function css$1(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return serializeStyles(s)}function keyframes$1(){var i=css$1.apply(void 0,arguments),s="animation-"+i.name;return{name:s,styles:"@keyframes "+s+"{"+i.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const ColorModeContext=reactExports.createContext({});ColorModeContext.displayName="ColorModeContext";function useColorMode(){const i=reactExports.useContext(ColorModeContext);if(i===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return i}function useColorModeValue(i,s){const{colorMode:o}=useColorMode();return o==="dark"?s:i}const classNames={light:"chakra-ui-light",dark:"chakra-ui-dark"};function getColorModeUtils(i={}){const{preventTransition:s=!0,nonce:o}=i,a={setDataset:_=>{const $=s?a.preventTransition():void 0;document.documentElement.dataset.theme=_,document.documentElement.style.colorScheme=_,$==null||$()},setClassName(_){document.body.classList.add(_?classNames.dark:classNames.light),document.body.classList.remove(_?classNames.light:classNames.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(_){return a.query().matches??_==="dark"?"dark":"light"},addListener(_){const $=a.query(),j=_e=>{_(_e.matches?"dark":"light")};return typeof $.addListener=="function"?$.addListener(j):$.addEventListener("change",j),()=>{typeof $.removeListener=="function"?$.removeListener(j):$.removeEventListener("change",j)}},preventTransition(){const _=document.createElement("style");return _.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o!==void 0&&(_.nonce=o),document.head.appendChild(_),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(_)})})}}};return a}const STORAGE_KEY="chakra-ui-color-mode";function createLocalStorageManager(i){return{ssr:!1,type:"localStorage",get(s){if(!(globalThis!=null&&globalThis.document))return s;let o;try{o=localStorage.getItem(i)||s}catch{}return o||s},set(s){try{localStorage.setItem(i,s)}catch{}}}}const localStorageManager=createLocalStorageManager(STORAGE_KEY),noop$3=()=>{},useSafeLayoutEffect$1=isBrowser$3()?reactExports.useLayoutEffect:reactExports.useEffect;function getTheme(i,s){return i.type==="cookie"&&i.ssr?i.get(s):s}const ColorModeProvider=function(s){const{value:o,children:a,options:{useSystemColorMode:_,initialColorMode:$,disableTransitionOnChange:j}={},colorModeManager:_e=localStorageManager}=s,et=__unsafe_useEmotionCache(),tt=$==="dark"?"dark":"light",[rt,it]=reactExports.useState(()=>getTheme(_e,tt)),[nt,ut]=reactExports.useState(()=>getTheme(_e)),{getSystemTheme:ct,setClassName:st,setDataset:dt,addListener:ot}=reactExports.useMemo(()=>getColorModeUtils({preventTransition:j,nonce:et==null?void 0:et.nonce}),[j,et==null?void 0:et.nonce]),lt=$==="system"&&!rt?nt:rt,at=reactExports.useCallback(mt=>{const gt=mt==="system"?ct():mt;it(gt),st(gt==="dark"),dt(gt),_e.set(gt)},[_e,ct,st,dt]);useSafeLayoutEffect$1(()=>{$==="system"&&ut(ct())},[]),reactExports.useEffect(()=>{const mt=_e.get();if(mt){at(mt);return}if($==="system"){at("system");return}at(tt)},[_e,tt,$,at]);const ft=reactExports.useCallback(()=>{at(lt==="dark"?"light":"dark")},[lt,at]);reactExports.useEffect(()=>{if(_)return ot(at)},[_,ot,at]);const ht=reactExports.useMemo(()=>({colorMode:o??lt,toggleColorMode:o?noop$3:ft,setColorMode:o?noop$3:at,forced:o!==void 0}),[lt,ft,at,o]);return jsxRuntimeExports.jsx(ColorModeContext.Provider,{value:ht,children:a})};ColorModeProvider.displayName="ColorModeProvider";const css=String.raw,vhPolyfill=css`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,CSSPolyfill=()=>jsxRuntimeExports.jsx(Global,{styles:vhPolyfill}),CSSReset=({scope:i=""})=>jsxRuntimeExports.jsx(Global,{styles:css`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${i} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${i} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${i} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${i} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${i} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${i} :where(b, strong) {
        font-weight: bold;
      }

      ${i} small {
        font-size: 80%;
      }

      ${i} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${i} sub {
        bottom: -0.25em;
      }

      ${i} sup {
        top: -0.5em;
      }

      ${i} img {
        border-style: none;
      }

      ${i} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${i} :where(button, input) {
        overflow: visible;
      }

      ${i} :where(button, select) {
        text-transform: none;
      }

      ${i} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${i} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${i} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${i} progress {
        vertical-align: baseline;
      }

      ${i} textarea {
        overflow: auto;
      }

      ${i} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${i} input[type="number"]::-webkit-inner-spin-button,
      ${i} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${i} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${i} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${i} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${i} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${i} details {
        display: block;
      }

      ${i} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${i} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${i} button {
        background: transparent;
        padding: 0;
      }

      ${i} fieldset {
        margin: 0;
        padding: 0;
      }

      ${i} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${i} textarea {
        resize: vertical;
      }

      ${i} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${i} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${i} table {
        border-collapse: collapse;
      }

      ${i} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${i} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${i} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${i} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${i} select::-ms-expand {
        display: none;
      }

      ${vhPolyfill}
    `});function ThemeProvider(i){const{cssVarsRoot:s,theme:o,children:a}=i,_=reactExports.useMemo(()=>toCSSVar(o),[o]);return jsxRuntimeExports.jsxs(ThemeProvider$1,{theme:_,children:[jsxRuntimeExports.jsx(CSSVars,{root:s}),a]})}function CSSVars({root:i=":host, :root"}){const s=[i,"[data-theme]"].join(",");return jsxRuntimeExports.jsx(Global,{styles:o=>({[s]:o.__cssVars})})}createContext({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function createStylesContext(i){return createContext({name:`${i}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${i} />" `})}function GlobalStyle(){const{colorMode:i}=useColorMode();return jsxRuntimeExports.jsx(Global,{styles:s=>{const o=memoizedGet$1(s,"styles.global"),a=runIfFn$1(o,{theme:s,colorMode:i});return a?css$2(a)(s):void 0}})}const[PortalManagerContextProvider,usePortalManager]=createContext({strict:!1,name:"PortalManagerContext"});function PortalManager(i){const{children:s,zIndex:o}=i;return jsxRuntimeExports.jsx(PortalManagerContextProvider,{value:{zIndex:o},children:s})}PortalManager.displayName="PortalManager";const EnvironmentContext=reactExports.createContext({getDocument(){return document},getWindow(){return window}});EnvironmentContext.displayName="EnvironmentContext";function useEnvironment({defer:i}={}){const[,s]=reactExports.useReducer(o=>o+1,0);return useSafeLayoutEffect$2(()=>{i&&s()},[i]),reactExports.useContext(EnvironmentContext)}function EnvironmentProvider(i){const{children:s,environment:o,disabled:a}=i,_=reactExports.useRef(null),$=reactExports.useMemo(()=>o||{getDocument:()=>{var _e;return((_e=_.current)==null?void 0:_e.ownerDocument)??document},getWindow:()=>{var _e;return((_e=_.current)==null?void 0:_e.ownerDocument.defaultView)??window}},[o]),j=!a||!o;return jsxRuntimeExports.jsxs(EnvironmentContext.Provider,{value:$,children:[s,j&&jsxRuntimeExports.jsx("span",{id:"__chakra_env",hidden:!0,ref:_})]})}EnvironmentProvider.displayName="EnvironmentProvider";const Provider=i=>{const{children:s,colorModeManager:o,portalZIndex:a,resetScope:_,resetCSS:$=!0,theme:j={},environment:_e,cssVarsRoot:et,disableEnvironment:tt,disableGlobalStyle:rt}=i,it=jsxRuntimeExports.jsx(EnvironmentProvider,{environment:_e,disabled:tt,children:s});return jsxRuntimeExports.jsx(ThemeProvider,{theme:j,cssVarsRoot:et,children:jsxRuntimeExports.jsxs(ColorModeProvider,{colorModeManager:o,options:j.config,children:[$?jsxRuntimeExports.jsx(CSSReset,{scope:_}):jsxRuntimeExports.jsx(CSSPolyfill,{}),!rt&&jsxRuntimeExports.jsx(GlobalStyle,{}),a?jsxRuntimeExports.jsx(PortalManager,{zIndex:a,children:it}):it]})})},LayoutGroupContext=reactExports.createContext({});function useConstant(i){const s=reactExports.useRef(null);return s.current===null&&(s.current=i()),s.current}const PresenceContext=reactExports.createContext(null),MotionConfigContext=reactExports.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(s){const o=this.props.childRef.current;if(o&&s.isPresent&&!this.props.isPresent){const a=this.props.sizeRef.current;a.height=o.offsetHeight||0,a.width=o.offsetWidth||0,a.top=o.offsetTop,a.left=o.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:i,isPresent:s}){const o=reactExports.useId(),a=reactExports.useRef(null),_=reactExports.useRef({width:0,height:0,top:0,left:0}),{nonce:$}=reactExports.useContext(MotionConfigContext);return reactExports.useInsertionEffect(()=>{const{width:j,height:_e,top:et,left:tt}=_.current;if(s||!a.current||!j||!_e)return;a.current.dataset.motionPopId=o;const rt=document.createElement("style");return $&&(rt.nonce=$),document.head.appendChild(rt),rt.sheet&&rt.sheet.insertRule(`
          [data-motion-pop-id="${o}"] {
            position: absolute !important;
            width: ${j}px !important;
            height: ${_e}px !important;
            top: ${et}px !important;
            left: ${tt}px !important;
          }
        `),()=>{document.head.removeChild(rt)}},[s]),jsxRuntimeExports.jsx(PopChildMeasure,{isPresent:s,childRef:a,sizeRef:_,children:reactExports.cloneElement(i,{ref:a})})}const PresenceChild=({children:i,initial:s,isPresent:o,onExitComplete:a,custom:_,presenceAffectsLayout:$,mode:j})=>{const _e=useConstant(newChildrenMap),et=reactExports.useId(),tt=reactExports.useCallback(it=>{_e.set(it,!0);for(const nt of _e.values())if(!nt)return;a&&a()},[_e,a]),rt=reactExports.useMemo(()=>({id:et,initial:s,isPresent:o,custom:_,onExitComplete:tt,register:it=>(_e.set(it,!1),()=>_e.delete(it))}),$?[Math.random(),tt]:[o,tt]);return reactExports.useMemo(()=>{_e.forEach((it,nt)=>_e.set(nt,!1))},[o]),reactExports.useEffect(()=>{!o&&!_e.size&&a&&a()},[o]),j==="popLayout"&&(i=jsxRuntimeExports.jsx(PopChild,{isPresent:o,children:i})),jsxRuntimeExports.jsx(PresenceContext.Provider,{value:rt,children:i})};function newChildrenMap(){return new Map}function usePresence(i=!0){const s=reactExports.useContext(PresenceContext);if(s===null)return[!0,null];const{isPresent:o,onExitComplete:a,register:_}=s,$=reactExports.useId();reactExports.useEffect(()=>{i&&_($)},[i]);const j=reactExports.useCallback(()=>i&&a&&a($),[$,a,i]);return!o&&a?[!1,j]:[!0]}function useIsPresent(){return isPresent(reactExports.useContext(PresenceContext))}function isPresent(i){return i===null?!0:i.isPresent}const getChildKey=i=>i.key||"";function onlyElements(i){const s=[];return reactExports.Children.forEach(i,o=>{reactExports.isValidElement(o)&&s.push(o)}),s}const isBrowser$1=typeof window<"u",useIsomorphicLayoutEffect$2=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect,AnimatePresence=({children:i,custom:s,initial:o=!0,onExitComplete:a,presenceAffectsLayout:_=!0,mode:$="sync",propagate:j=!1})=>{const[_e,et]=usePresence(j),tt=reactExports.useMemo(()=>onlyElements(i),[i]),rt=j&&!_e?[]:tt.map(getChildKey),it=reactExports.useRef(!0),nt=reactExports.useRef(tt),ut=useConstant(()=>new Map),[ct,st]=reactExports.useState(tt),[dt,ot]=reactExports.useState(tt);useIsomorphicLayoutEffect$2(()=>{it.current=!1,nt.current=tt;for(let ft=0;ft<dt.length;ft++){const ht=getChildKey(dt[ft]);rt.includes(ht)?ut.delete(ht):ut.get(ht)!==!0&&ut.set(ht,!1)}},[dt,rt.length,rt.join("-")]);const lt=[];if(tt!==ct){let ft=[...tt];for(let ht=0;ht<dt.length;ht++){const mt=dt[ht],gt=getChildKey(mt);rt.includes(gt)||(ft.splice(ht,0,mt),lt.push(mt))}$==="wait"&&lt.length&&(ft=lt),ot(onlyElements(ft)),st(tt);return}const{forceRender:at}=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:dt.map(ft=>{const ht=getChildKey(ft),mt=j&&!_e?!1:tt===dt||rt.includes(ht),gt=()=>{if(ut.has(ht))ut.set(ht,!0);else return;let vt=!0;ut.forEach(St=>{St||(vt=!1)}),vt&&(at==null||at(),ot(nt.current),j&&(et==null||et()),a&&a())};return jsxRuntimeExports.jsx(PresenceChild,{isPresent:mt,initial:!it.current||o?void 0:!1,custom:mt?void 0:s,presenceAffectsLayout:_,mode:$,onExitComplete:mt?void 0:gt,children:ft},ht)})})},noop$2=i=>i;let invariant$1=noop$2;function memo(i){let s;return()=>(s===void 0&&(s=i()),s)}const progress=(i,s,o)=>{const a=s-i;return a===0?1:(o-i)/a},secondsToMilliseconds=i=>i*1e3,millisecondsToSeconds=i=>i/1e3,MotionGlobalConfig={useManualTiming:!1};function createRenderStep(i){let s=new Set,o=new Set,a=!1,_=!1;const $=new WeakSet;let j={delta:0,timestamp:0,isProcessing:!1};function _e(tt){$.has(tt)&&(et.schedule(tt),i()),tt(j)}const et={schedule:(tt,rt=!1,it=!1)=>{const ut=it&&a?s:o;return rt&&$.add(tt),ut.has(tt)||ut.add(tt),tt},cancel:tt=>{o.delete(tt),$.delete(tt)},process:tt=>{if(j=tt,a){_=!0;return}a=!0,[s,o]=[o,s],s.forEach(_e),s.clear(),a=!1,_&&(_=!1,et.process(tt))}};return et}const stepsOrder=["read","resolveKeyframes","update","preRender","render","postRender"],maxElapsed=40;function createRenderBatcher(i,s){let o=!1,a=!0;const _={delta:0,timestamp:0,isProcessing:!1},$=()=>o=!0,j=stepsOrder.reduce((ot,lt)=>(ot[lt]=createRenderStep($),ot),{}),{read:_e,resolveKeyframes:et,update:tt,preRender:rt,render:it,postRender:nt}=j,ut=()=>{const ot=performance.now();o=!1,_.delta=a?1e3/60:Math.max(Math.min(ot-_.timestamp,maxElapsed),1),_.timestamp=ot,_.isProcessing=!0,_e.process(_),et.process(_),tt.process(_),rt.process(_),it.process(_),nt.process(_),_.isProcessing=!1,o&&s&&(a=!1,i(ut))},ct=()=>{o=!0,a=!0,_.isProcessing||i(ut)};return{schedule:stepsOrder.reduce((ot,lt)=>{const at=j[lt];return ot[lt]=(ft,ht=!1,mt=!1)=>(o||ct(),at.schedule(ft,ht,mt)),ot},{}),cancel:ot=>{for(let lt=0;lt<stepsOrder.length;lt++)j[stepsOrder[lt]].cancel(ot)},state:_,steps:j}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps:frameSteps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop$2,!0),LazyContext=reactExports.createContext({strict:!1}),featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const i in featureProps)featureDefinitions[i]={isEnabled:s=>featureProps[i].some(o=>!!s[o])};function loadFeatures(i){for(const s in i)featureDefinitions[s]={...featureDefinitions[s],...i[s]}}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function isValidMotionProp(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||validMotionProps.has(i)}let shouldForward=i=>!isValidMotionProp(i);function loadExternalIsValidProp(i){i&&(shouldForward=s=>s.startsWith("on")?!isValidMotionProp(s):i(s))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps(i,s,o){const a={};for(const _ in i)_==="values"&&typeof i.values=="object"||(shouldForward(_)||o===!0&&isValidMotionProp(_)||!s&&!isValidMotionProp(_)||i.draggable&&_.startsWith("onDrag"))&&(a[_]=i[_]);return a}function createDOMMotionComponentProxy(i){if(typeof Proxy>"u")return i;const s=new Map,o=(...a)=>i(...a);return new Proxy(o,{get:(a,_)=>_==="create"?i:(s.has(_)||s.set(_,i(_)),s.get(_))})}const MotionContext=reactExports.createContext({});function isVariantLabel(i){return typeof i=="string"||Array.isArray(i)}function isAnimationControls(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants(i){return isAnimationControls(i.animate)||variantProps.some(s=>isVariantLabel(i[s]))}function isVariantNode(i){return!!(isControllingVariants(i)||i.variants)}function getCurrentTreeVariants(i,s){if(isControllingVariants(i)){const{initial:o,animate:a}=i;return{initial:o===!1||isVariantLabel(o)?o:void 0,animate:isVariantLabel(a)?a:void 0}}return i.inherit!==!1?s:{}}function useCreateMotionContext(i){const{initial:s,animate:o}=getCurrentTreeVariants(i,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:s,animate:o}),[variantLabelsAsDependency(s),variantLabelsAsDependency(o)])}function variantLabelsAsDependency(i){return Array.isArray(i)?i.join(" "):i}const motionComponentSymbol=Symbol.for("motionComponentSymbol");function isRefObject(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function useMotionRef(i,s,o){return reactExports.useCallback(a=>{a&&i.onMount&&i.onMount(a),s&&(a?s.mount(a):s.unmount()),o&&(typeof o=="function"?o(a):isRefObject(o)&&(o.current=a))},[s])}const camelToDash=i=>i.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId),{schedule:microtask}=createRenderBatcher(queueMicrotask,!1),SwitchLayoutGroupContext=reactExports.createContext({});function useVisualElement(i,s,o,a,_){var $,j;const{visualElement:_e}=reactExports.useContext(MotionContext),et=reactExports.useContext(LazyContext),tt=reactExports.useContext(PresenceContext),rt=reactExports.useContext(MotionConfigContext).reducedMotion,it=reactExports.useRef(null);a=a||et.renderer,!it.current&&a&&(it.current=a(i,{visualState:s,parent:_e,props:o,presenceContext:tt,blockInitialAnimation:tt?tt.initial===!1:!1,reducedMotionConfig:rt}));const nt=it.current,ut=reactExports.useContext(SwitchLayoutGroupContext);nt&&!nt.projection&&_&&(nt.type==="html"||nt.type==="svg")&&createProjectionNode$1(it.current,o,_,ut);const ct=reactExports.useRef(!1);reactExports.useInsertionEffect(()=>{nt&&ct.current&&nt.update(o,tt)});const st=o[optimizedAppearDataAttribute],dt=reactExports.useRef(!!st&&!(!(($=window.MotionHandoffIsComplete)===null||$===void 0)&&$.call(window,st))&&((j=window.MotionHasOptimisedAnimation)===null||j===void 0?void 0:j.call(window,st)));return useIsomorphicLayoutEffect$2(()=>{nt&&(ct.current=!0,window.MotionIsMounted=!0,nt.updateFeatures(),microtask.render(nt.render),dt.current&&nt.animationState&&nt.animationState.animateChanges())}),reactExports.useEffect(()=>{nt&&(!dt.current&&nt.animationState&&nt.animationState.animateChanges(),dt.current&&(queueMicrotask(()=>{var ot;(ot=window.MotionHandoffMarkAsComplete)===null||ot===void 0||ot.call(window,st)}),dt.current=!1))}),nt}function createProjectionNode$1(i,s,o,a){const{layoutId:_,layout:$,drag:j,dragConstraints:_e,layoutScroll:et,layoutRoot:tt}=s;i.projection=new o(i.latestValues,s["data-framer-portal-id"]?void 0:getClosestProjectingNode(i.parent)),i.projection.setOptions({layoutId:_,layout:$,alwaysMeasureLayout:!!j||_e&&isRefObject(_e),visualElement:i,animationType:typeof $=="string"?$:"both",initialPromotionConfig:a,layoutScroll:et,layoutRoot:tt})}function getClosestProjectingNode(i){if(i)return i.options.allowProjection!==!1?i.projection:getClosestProjectingNode(i.parent)}function createRendererMotionComponent({preloadedFeatures:i,createVisualElement:s,useRender:o,useVisualState:a,Component:_}){var $,j;i&&loadFeatures(i);function _e(tt,rt){let it;const nt={...reactExports.useContext(MotionConfigContext),...tt,layoutId:useLayoutId(tt)},{isStatic:ut}=nt,ct=useCreateMotionContext(tt),st=a(tt,ut);if(!ut&&isBrowser$1){useStrictMode();const dt=getProjectionFunctionality(nt);it=dt.MeasureLayout,ct.visualElement=useVisualElement(_,st,nt,s,dt.ProjectionNode)}return jsxRuntimeExports.jsxs(MotionContext.Provider,{value:ct,children:[it&&ct.visualElement?jsxRuntimeExports.jsx(it,{visualElement:ct.visualElement,...nt}):null,o(_,tt,useMotionRef(st,ct.visualElement,rt),st,ut,ct.visualElement)]})}_e.displayName=`motion.${typeof _=="string"?_:`create(${(j=($=_.displayName)!==null&&$!==void 0?$:_.name)!==null&&j!==void 0?j:""})`}`;const et=reactExports.forwardRef(_e);return et[motionComponentSymbol]=_,et}function useLayoutId({layoutId:i}){const s=reactExports.useContext(LayoutGroupContext).id;return s&&i!==void 0?s+"-"+i:i}function useStrictMode(i,s){reactExports.useContext(LazyContext).strict}function getProjectionFunctionality(i){const{drag:s,layout:o}=featureDefinitions;if(!s&&!o)return{};const a={...s,...o};return{MeasureLayout:s!=null&&s.isEnabled(i)||o!=null&&o.isEnabled(i)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(i){return typeof i!="string"||i.includes("-")?!1:!!(lowercaseSVGElements.indexOf(i)>-1||/[A-Z]/u.test(i))}function getValueState(i){const s=[{},{}];return i==null||i.values.forEach((o,a)=>{s[0][a]=o.get(),s[1][a]=o.getVelocity()}),s}function resolveVariantFromProps(i,s,o,a){if(typeof s=="function"){const[_,$]=getValueState(a);s=s(o!==void 0?o:i.custom,_,$)}if(typeof s=="string"&&(s=i.variants&&i.variants[s]),typeof s=="function"){const[_,$]=getValueState(a);s=s(o!==void 0?o:i.custom,_,$)}return s}const isKeyframesTarget=i=>Array.isArray(i),isCustomValue=i=>!!(i&&typeof i=="object"&&i.mix&&i.toValue),resolveFinalValueInKeyframes=i=>isKeyframesTarget(i)?i[i.length-1]||0:i,isMotionValue=i=>!!(i&&i.getVelocity);function resolveMotionValue(i){const s=isMotionValue(i)?i.get():i;return isCustomValue(s)?s.toValue():s}function makeState({scrapeMotionValuesFromProps:i,createRenderState:s,onUpdate:o},a,_,$){const j={latestValues:makeLatestValues(a,_,$,i),renderState:s()};return o&&(j.onMount=_e=>o({props:a,current:_e,...j}),j.onUpdate=_e=>o(_e)),j}const makeUseVisualState=i=>(s,o)=>{const a=reactExports.useContext(MotionContext),_=reactExports.useContext(PresenceContext),$=()=>makeState(i,s,a,_);return o?$():useConstant($)};function makeLatestValues(i,s,o,a){const _={},$=a(i,{});for(const nt in $)_[nt]=resolveMotionValue($[nt]);let{initial:j,animate:_e}=i;const et=isControllingVariants(i),tt=isVariantNode(i);s&&tt&&!et&&i.inherit!==!1&&(j===void 0&&(j=s.initial),_e===void 0&&(_e=s.animate));let rt=o?o.initial===!1:!1;rt=rt||j===!1;const it=rt?_e:j;if(it&&typeof it!="boolean"&&!isAnimationControls(it)){const nt=Array.isArray(it)?it:[it];for(let ut=0;ut<nt.length;ut++){const ct=resolveVariantFromProps(i,nt[ut]);if(ct){const{transitionEnd:st,transition:dt,...ot}=ct;for(const lt in ot){let at=ot[lt];if(Array.isArray(at)){const ft=rt?at.length-1:0;at=at[ft]}at!==null&&(_[lt]=at)}for(const lt in st)_[lt]=st[lt]}}}return _}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder),checkStringStartsWith=i=>s=>typeof s=="string"&&s.startsWith(i),isCSSVariableName=checkStringStartsWith("--"),startsAsVariableToken=checkStringStartsWith("var(--"),isCSSVariableToken=i=>startsAsVariableToken(i)?singleCssVariableRegex.test(i.split("/*")[0].trim()):!1,singleCssVariableRegex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,getValueAsType=(i,s)=>s&&typeof i=="number"?s.transform(i):i,clamp=(i,s,o)=>o>s?s:o<i?i:o,number={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},alpha={...number,transform:i=>clamp(0,1,i)},scale={...number,default:1},createUnitType=i=>({test:s=>typeof s=="string"&&s.endsWith(i)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${i}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh$1=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:i=>percent.parse(i)/100,transform:i=>percent.transform(i*100)},browserNumberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,backgroundPositionX:px,backgroundPositionY:px},transformValueTypes={rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px},int={...number,transform:Math.round},numberValueTypes={...browserNumberValueTypes,...transformValueTypes,zIndex:int,size:px,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform(i,s,o){let a="",_=!0;for(let $=0;$<numTransforms;$++){const j=transformPropOrder[$],_e=i[j];if(_e===void 0)continue;let et=!0;if(typeof _e=="number"?et=_e===(j.startsWith("scale")?1:0):et=parseFloat(_e)===0,!et||o){const tt=getValueAsType(_e,numberValueTypes[j]);if(!et){_=!1;const rt=translateAlias[j]||j;a+=`${rt}(${tt}) `}o&&(s[j]=tt)}}return a=a.trim(),o?a=o(s,_?"":a):_&&(a="none"),a}function buildHTMLStyles(i,s,o){const{style:a,vars:_,transformOrigin:$}=i;let j=!1,_e=!1;for(const et in s){const tt=s[et];if(transformProps.has(et)){j=!0;continue}else if(isCSSVariableName(et)){_[et]=tt;continue}else{const rt=getValueAsType(tt,numberValueTypes[et]);et.startsWith("origin")?(_e=!0,$[et]=rt):a[et]=rt}}if(s.transform||(j||o?a.transform=buildTransform(s,i.transform,o):a.transform&&(a.transform="none")),_e){const{originX:et="50%",originY:tt="50%",originZ:rt=0}=$;a.transformOrigin=`${et} ${tt} ${rt}`}}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath(i,s,o=1,a=0,_=!0){i.pathLength=1;const $=_?dashKeys:camelKeys;i[$.offset]=px.transform(-a);const j=px.transform(s),_e=px.transform(o);i[$.array]=`${j} ${_e}`}function calcOrigin$1(i,s,o){return typeof i=="string"?i:px.transform(s+o*i)}function calcSVGTransformOrigin(i,s,o){const a=calcOrigin$1(s,i.x,i.width),_=calcOrigin$1(o,i.y,i.height);return`${a} ${_}`}function buildSVGAttrs(i,{attrX:s,attrY:o,attrScale:a,originX:_,originY:$,pathLength:j,pathSpacing:_e=1,pathOffset:et=0,...tt},rt,it){if(buildHTMLStyles(i,tt,it),rt){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:nt,style:ut,dimensions:ct}=i;nt.transform&&(ct&&(ut.transform=nt.transform),delete nt.transform),ct&&(_!==void 0||$!==void 0||ut.transform)&&(ut.transformOrigin=calcSVGTransformOrigin(ct,_!==void 0?_:.5,$!==void 0?$:.5)),s!==void 0&&(nt.x=s),o!==void 0&&(nt.y=o),a!==void 0&&(nt.scale=a),j!==void 0&&buildSVGPath(nt,j,_e,et,!1)}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=i=>typeof i=="string"&&i.toLowerCase()==="svg";function renderHTML(i,{style:s,vars:o},a,_){Object.assign(i.style,s,_&&_.getProjectionStyles(a));for(const $ in o)i.style.setProperty($,o[$])}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG(i,s,o,a){renderHTML(i,s,void 0,a);for(const _ in s.attrs)i.setAttribute(camelCaseAttributes.has(_)?_:camelToDash(_),s.attrs[_])}const scaleCorrectors={};function addScaleCorrector(i){Object.assign(scaleCorrectors,i)}function isForcedMotionValue(i,{layout:s,layoutId:o}){return transformProps.has(i)||i.startsWith("origin")||(s||o!==void 0)&&(!!scaleCorrectors[i]||i==="opacity")}function scrapeMotionValuesFromProps$1(i,s,o){var a;const{style:_}=i,$={};for(const j in _)(isMotionValue(_[j])||s.style&&isMotionValue(s.style[j])||isForcedMotionValue(j,i)||((a=o==null?void 0:o.getValue(j))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&($[j]=_[j]);return $}function scrapeMotionValuesFromProps(i,s,o){const a=scrapeMotionValuesFromProps$1(i,s,o);for(const _ in i)if(isMotionValue(i[_])||isMotionValue(s[_])){const $=transformPropOrder.indexOf(_)!==-1?"attr"+_.charAt(0).toUpperCase()+_.substring(1):_;a[$]=i[_]}return a}function updateSVGDimensions(i,s){try{s.dimensions=typeof i.getBBox=="function"?i.getBBox():i.getBoundingClientRect()}catch{s.dimensions={x:0,y:0,width:0,height:0}}}const layoutProps=["x","y","width","height","cx","cy","r"],svgMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onUpdate:({props:i,prevProps:s,current:o,renderState:a,latestValues:_})=>{if(!o)return;let $=!!i.drag;if(!$){for(const _e in _)if(transformProps.has(_e)){$=!0;break}}if(!$)return;let j=!s;if(s)for(let _e=0;_e<layoutProps.length;_e++){const et=layoutProps[_e];i[et]!==s[et]&&(j=!0)}j&&frame.read(()=>{updateSVGDimensions(o,a),frame.render(()=>{buildSVGAttrs(a,_,isSVGTag(o.tagName),i.transformTemplate),renderSVG(o,a)})})}})},htmlMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState})};function copyRawValuesOnly(i,s,o){for(const a in s)!isMotionValue(s[a])&&!isForcedMotionValue(a,o)&&(i[a]=s[a])}function useInitialMotionValues({transformTemplate:i},s){return reactExports.useMemo(()=>{const o=createHtmlRenderState();return buildHTMLStyles(o,s,i),Object.assign({},o.vars,o.style)},[s])}function useStyle(i,s){const o=i.style||{},a={};return copyRawValuesOnly(a,o,i),Object.assign(a,useInitialMotionValues(i,s)),a}function useHTMLProps(i,s){const o={},a=useStyle(i,s);return i.drag&&i.dragListener!==!1&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(o.tabIndex=0),o.style=a,o}function useSVGProps(i,s,o,a){const _=reactExports.useMemo(()=>{const $=createSvgRenderState();return buildSVGAttrs($,s,isSVGTag(a),i.transformTemplate),{...$.attrs,style:{...$.style}}},[s]);if(i.style){const $={};copyRawValuesOnly($,i.style,i),_.style={...$,..._.style}}return _}function createUseRender(i=!1){return(o,a,_,{latestValues:$},j)=>{const et=(isSVGComponent(o)?useSVGProps:useHTMLProps)(a,$,j,o),tt=filterProps(a,typeof o=="string",i),rt=o!==reactExports.Fragment?{...tt,...et,ref:_}:{},{children:it}=a,nt=reactExports.useMemo(()=>isMotionValue(it)?it.get():it,[it]);return reactExports.createElement(o,{...rt,children:nt})}}function createMotionComponentFactory(i,s){return function(a,{forwardMotionProps:_}={forwardMotionProps:!1}){const j={...isSVGComponent(a)?svgMotionConfig:htmlMotionConfig,preloadedFeatures:i,useRender:createUseRender(_),createVisualElement:s,Component:a};return createRendererMotionComponent(j)}}function shallowCompare(i,s){if(!Array.isArray(s))return!1;const o=s.length;if(o!==i.length)return!1;for(let a=0;a<o;a++)if(s[a]!==i[a])return!1;return!0}function resolveVariant(i,s,o){const a=i.getProps();return resolveVariantFromProps(a,s,o!==void 0?o:a.custom,i)}const supportsScrollTimeline=memo(()=>window.ScrollTimeline!==void 0);class BaseGroupPlaybackControls{constructor(s){this.stop=()=>this.runAll("stop"),this.animations=s.filter(Boolean)}get finished(){return Promise.all(this.animations.map(s=>"finished"in s?s.finished:s))}getAll(s){return this.animations[0][s]}setAll(s,o){for(let a=0;a<this.animations.length;a++)this.animations[a][s]=o}attachTimeline(s,o){const a=this.animations.map(_=>{if(supportsScrollTimeline()&&_.attachTimeline)return _.attachTimeline(s);if(typeof o=="function")return o(_)});return()=>{a.forEach((_,$)=>{_&&_(),this.animations[$].stop()})}}get time(){return this.getAll("time")}set time(s){this.setAll("time",s)}get speed(){return this.getAll("speed")}set speed(s){this.setAll("speed",s)}get startTime(){return this.getAll("startTime")}get duration(){let s=0;for(let o=0;o<this.animations.length;o++)s=Math.max(s,this.animations[o].duration);return s}runAll(s){this.animations.forEach(o=>o[s]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class GroupPlaybackControls extends BaseGroupPlaybackControls{then(s,o){return Promise.all(this.animations).then(s).catch(o)}}function getValueTransition(i,s){return i?i[s]||i.default||i:void 0}const maxGeneratorDuration=2e4;function calcGeneratorDuration(i){let s=0;const o=50;let a=i.next(s);for(;!a.done&&s<maxGeneratorDuration;)s+=o,a=i.next(s);return s>=maxGeneratorDuration?1/0:s}function isGenerator(i){return typeof i=="function"}function attachTimeline(i,s){i.timeline=s,i.onfinish=null}const isBezierDefinition=i=>Array.isArray(i)&&typeof i[0]=="number",supportsFlags={linearEasing:void 0};function memoSupports(i,s){const o=memo(i);return()=>{var a;return(a=supportsFlags[s])!==null&&a!==void 0?a:o()}}const supportsLinearEasing=memoSupports(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),generateLinearEasing=(i,s,o=10)=>{let a="";const _=Math.max(Math.round(s/o),2);for(let $=0;$<_;$++)a+=i(progress(0,_-1,$))+", ";return`linear(${a.substring(0,a.length-2)})`};function isWaapiSupportedEasing(i){return!!(typeof i=="function"&&supportsLinearEasing()||!i||typeof i=="string"&&(i in supportedWaapiEasing||supportsLinearEasing())||isBezierDefinition(i)||Array.isArray(i)&&i.every(isWaapiSupportedEasing))}const cubicBezierAsString=([i,s,o,a])=>`cubic-bezier(${i}, ${s}, ${o}, ${a})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(i,s){if(i)return typeof i=="function"&&supportsLinearEasing()?generateLinearEasing(i,s):isBezierDefinition(i)?cubicBezierAsString(i):Array.isArray(i)?i.map(o=>mapEasingToNativeEasing(o,s)||supportedWaapiEasing.easeOut):supportedWaapiEasing[i]}const isDragging={x:!1,y:!1};function isDragActive(){return isDragging.x||isDragging.y}function resolveElements(i,s,o){var a;if(i instanceof Element)return[i];if(typeof i=="string"){let _=document;const $=(a=void 0)!==null&&a!==void 0?a:_.querySelectorAll(i);return $?Array.from($):[]}return Array.from(i)}function setupGesture(i,s){const o=resolveElements(i),a=new AbortController,_={passive:!0,...s,signal:a.signal};return[o,_,()=>a.abort()]}function filterEvents$1(i){return s=>{s.pointerType==="touch"||isDragActive()||i(s)}}function hover(i,s,o={}){const[a,_,$]=setupGesture(i,o),j=filterEvents$1(_e=>{const{target:et}=_e,tt=s(_e);if(typeof tt!="function"||!et)return;const rt=filterEvents$1(it=>{tt(it),et.removeEventListener("pointerleave",rt)});et.addEventListener("pointerleave",rt,_)});return a.forEach(_e=>{_e.addEventListener("pointerenter",j,_)}),$}const isNodeOrChild=(i,s)=>s?i===s?!0:isNodeOrChild(i,s.parentElement):!1,isPrimaryPointer=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,focusableElements=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function isElementKeyboardAccessible(i){return focusableElements.has(i.tagName)||i.tabIndex!==-1}const isPressing=new WeakSet;function filterEvents(i){return s=>{s.key==="Enter"&&i(s)}}function firePointerEvent(i,s){i.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const enableKeyboardPress=(i,s)=>{const o=i.currentTarget;if(!o)return;const a=filterEvents(()=>{if(isPressing.has(o))return;firePointerEvent(o,"down");const _=filterEvents(()=>{firePointerEvent(o,"up")}),$=()=>firePointerEvent(o,"cancel");o.addEventListener("keyup",_,s),o.addEventListener("blur",$,s)});o.addEventListener("keydown",a,s),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),s)};function isValidPressEvent(i){return isPrimaryPointer(i)&&!isDragActive()}function press(i,s,o={}){const[a,_,$]=setupGesture(i,o),j=_e=>{const et=_e.currentTarget;if(!isValidPressEvent(_e)||isPressing.has(et))return;isPressing.add(et);const tt=s(_e),rt=(ut,ct)=>{window.removeEventListener("pointerup",it),window.removeEventListener("pointercancel",nt),!(!isValidPressEvent(ut)||!isPressing.has(et))&&(isPressing.delete(et),typeof tt=="function"&&tt(ut,{success:ct}))},it=ut=>{rt(ut,o.useGlobalTarget||isNodeOrChild(et,ut.target))},nt=ut=>{rt(ut,!1)};window.addEventListener("pointerup",it,_),window.addEventListener("pointercancel",nt,_)};return a.forEach(_e=>{!isElementKeyboardAccessible(_e)&&_e.getAttribute("tabindex")===null&&(_e.tabIndex=0),(o.useGlobalTarget?window:_e).addEventListener("pointerdown",j,_),_e.addEventListener("focus",tt=>enableKeyboardPress(tt,_),_)}),$}function setDragLock(i){return i==="x"||i==="y"?isDragging[i]?null:(isDragging[i]=!0,()=>{isDragging[i]=!1}):isDragging.x||isDragging.y?null:(isDragging.x=isDragging.y=!0,()=>{isDragging.x=isDragging.y=!1})}const positionalKeys=new Set(["width","height","top","left","right","bottom",...transformPropOrder]);let now$1;function clearTime(){now$1=void 0}const time={now:()=>(now$1===void 0&&time.set(frameData.isProcessing||MotionGlobalConfig.useManualTiming?frameData.timestamp:performance.now()),now$1),set:i=>{now$1=i,queueMicrotask(clearTime)}};function addUniqueItem(i,s){i.indexOf(s)===-1&&i.push(s)}function removeItem(i,s){const o=i.indexOf(s);o>-1&&i.splice(o,1)}class SubscriptionManager{constructor(){this.subscriptions=[]}add(s){return addUniqueItem(this.subscriptions,s),()=>removeItem(this.subscriptions,s)}notify(s,o,a){const _=this.subscriptions.length;if(_)if(_===1)this.subscriptions[0](s,o,a);else for(let $=0;$<_;$++){const j=this.subscriptions[$];j&&j(s,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function velocityPerSecond(i,s){return s?i*(1e3/s):0}const MAX_VELOCITY_DELTA=30,isFloat=i=>!isNaN(parseFloat(i));class MotionValue{constructor(s,o={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,_=!0)=>{const $=time.now();this.updatedAt!==$&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),_&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(s),this.owner=o.owner}setCurrent(s){this.current=s,this.updatedAt=time.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,o){this.events[s]||(this.events[s]=new SubscriptionManager);const a=this.events[s].add(o);return s==="change"?()=>{a(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,o){this.passiveEffect=s,this.stopPassiveEffect=o}set(s,o=!0){!o||!this.passiveEffect?this.updateAndNotify(s,o):this.passiveEffect(s,this.updateAndNotify)}setWithVelocity(s,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-a}jump(s,o=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=time.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>MAX_VELOCITY_DELTA)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,MAX_VELOCITY_DELTA);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(s){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=s(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue(i,s){return new MotionValue(i,s)}function setMotionValue(i,s,o){i.hasValue(s)?i.getValue(s).set(o):i.addValue(s,motionValue(o))}function setTarget(i,s){const o=resolveVariant(i,s);let{transitionEnd:a={},transition:_={},...$}=o||{};$={...$,...a};for(const j in $){const _e=resolveFinalValueInKeyframes($[j]);setMotionValue(i,j,_e)}}function isWillChangeMotionValue(i){return!!(isMotionValue(i)&&i.add)}function addValueToWillChange(i,s){const o=i.getValue("willChange");if(isWillChangeMotionValue(o))return o.add(s)}function getOptimisedAppearId(i){return i.props[optimizedAppearDataAttribute]}const calcBezier=(i,s,o)=>(((1-3*o+3*s)*i+(3*o-6*s))*i+3*s)*i,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide(i,s,o,a,_){let $,j,_e=0;do j=s+(o-s)/2,$=calcBezier(j,a,_)-i,$>0?o=j:s=j;while(Math.abs($)>subdivisionPrecision&&++_e<subdivisionMaxIterations);return j}function cubicBezier(i,s,o,a){if(i===s&&o===a)return noop$2;const _=$=>binarySubdivide($,0,1,i,o);return $=>$===0||$===1?$:calcBezier(_($),s,a)}const mirrorEasing=i=>s=>s<=.5?i(2*s)/2:(2-i(2*(1-s)))/2,reverseEasing=i=>s=>1-i(1-s),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=i=>(i*=2)<1?.5*backIn(i):.5*(2-Math.pow(2,-10*(i-1))),circIn=i=>1-Math.sin(Math.acos(i)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circIn),isZeroValueString=i=>/^0[^.\s]+$/u.test(i);function isNone(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||isZeroValueString(i):!0}const sanitize=i=>Math.round(i*1e5)/1e5,floatRegex=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(i){return i==null}const singleColorRegex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(i,s)=>o=>!!(typeof o=="string"&&singleColorRegex.test(o)&&o.startsWith(i)||s&&!isNullish(o)&&Object.prototype.hasOwnProperty.call(o,s)),splitColor=(i,s,o)=>a=>{if(typeof a!="string")return a;const[_,$,j,_e]=a.match(floatRegex);return{[i]:parseFloat(_),[s]:parseFloat($),[o]:parseFloat(j),alpha:_e!==void 0?parseFloat(_e):1}},clampRgbUnit=i=>clamp(0,255,i),rgbUnit={...number,transform:i=>Math.round(clampRgbUnit(i))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:i,green:s,blue:o,alpha:a=1})=>"rgba("+rgbUnit.transform(i)+", "+rgbUnit.transform(s)+", "+rgbUnit.transform(o)+", "+sanitize(alpha.transform(a))+")"};function parseHex(i){let s="",o="",a="",_="";return i.length>5?(s=i.substring(1,3),o=i.substring(3,5),a=i.substring(5,7),_=i.substring(7,9)):(s=i.substring(1,2),o=i.substring(2,3),a=i.substring(3,4),_=i.substring(4,5),s+=s,o+=o,a+=a,_+=_),{red:parseInt(s,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:_?parseInt(_,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:i,saturation:s,lightness:o,alpha:a=1})=>"hsla("+Math.round(i)+", "+percent.transform(sanitize(s))+", "+percent.transform(sanitize(o))+", "+sanitize(alpha.transform(a))+")"},color={test:i=>rgba.test(i)||hex.test(i)||hsla.test(i),parse:i=>rgba.test(i)?rgba.parse(i):hsla.test(i)?hsla.parse(i):hex.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?rgba.transform(i):hsla.transform(i)},colorRegex=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test$1(i){var s,o;return isNaN(i)&&typeof i=="string"&&(((s=i.match(floatRegex))===null||s===void 0?void 0:s.length)||0)+(((o=i.match(colorRegex))===null||o===void 0?void 0:o.length)||0)>0}const NUMBER_TOKEN="number",COLOR_TOKEN="color",VAR_TOKEN="var",VAR_FUNCTION_TOKEN="var(",SPLIT_TOKEN="${}",complexRegex=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(i){const s=i.toString(),o=[],a={color:[],number:[],var:[]},_=[];let $=0;const _e=s.replace(complexRegex,et=>(color.test(et)?(a.color.push($),_.push(COLOR_TOKEN),o.push(color.parse(et))):et.startsWith(VAR_FUNCTION_TOKEN)?(a.var.push($),_.push(VAR_TOKEN),o.push(et)):(a.number.push($),_.push(NUMBER_TOKEN),o.push(parseFloat(et))),++$,SPLIT_TOKEN)).split(SPLIT_TOKEN);return{values:o,split:_e,indexes:a,types:_}}function parseComplexValue(i){return analyseComplexValue(i).values}function createTransformer(i){const{split:s,types:o}=analyseComplexValue(i),a=s.length;return _=>{let $="";for(let j=0;j<a;j++)if($+=s[j],_[j]!==void 0){const _e=o[j];_e===NUMBER_TOKEN?$+=sanitize(_[j]):_e===COLOR_TOKEN?$+=color.transform(_[j]):$+=_[j]}return $}}const convertNumbersToZero=i=>typeof i=="number"?0:i;function getAnimatableNone$1(i){const s=parseComplexValue(i);return createTransformer(i)(s.map(convertNumbersToZero))}const complex={test:test$1,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(i){const[s,o]=i.slice(0,-1).split("(");if(s==="drop-shadow")return i;const[a]=o.match(floatRegex)||[];if(!a)return i;const _=o.replace(a,"");let $=maxDefaults.has(s)?1:0;return a!==o&&($*=100),s+"("+$+_+")"}const functionRegex=/\b([a-z-]*)\(.*?\)/gu,filter={...complex,getAnimatableNone:i=>{const s=i.match(functionRegex);return s?s.map(applyDefaultFilter).join(" "):i}},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=i=>defaultValueTypes[i];function getAnimatableNone(i,s){let o=getDefaultValueType(i);return o!==filter&&(o=complex),o.getAnimatableNone?o.getAnimatableNone(s):void 0}const invalidTemplates=new Set(["auto","none","0"]);function makeNoneKeyframesAnimatable(i,s,o){let a=0,_;for(;a<i.length&&!_;){const $=i[a];typeof $=="string"&&!invalidTemplates.has($)&&analyseComplexValue($).values.length&&(_=i[a]),a++}if(_&&o)for(const $ of s)i[$]=getAnimatableNone(o,_)}const isNumOrPxType=i=>i===number||i===px,getPosFromMatrix=(i,s)=>parseFloat(i.split(", ")[s]),getTranslateFromMatrix=(i,s)=>(o,{transform:a})=>{if(a==="none"||!a)return 0;const _=a.match(/^matrix3d\((.+)\)$/u);if(_)return getPosFromMatrix(_[1],s);{const $=a.match(/^matrix\((.+)\)$/u);return $?getPosFromMatrix($[1],i):0}},transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter(i=>!transformKeys.has(i));function removeNonTranslationalTransform(i){const s=[];return nonTranslationalTransformKeys.forEach(o=>{const a=i.getValue(o);a!==void 0&&(s.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),s}const positionalValues={width:({x:i},{paddingLeft:s="0",paddingRight:o="0"})=>i.max-i.min-parseFloat(s)-parseFloat(o),height:({y:i},{paddingTop:s="0",paddingBottom:o="0"})=>i.max-i.min-parseFloat(s)-parseFloat(o),top:(i,{top:s})=>parseFloat(s),left:(i,{left:s})=>parseFloat(s),bottom:({y:i},{top:s})=>parseFloat(s)+(i.max-i.min),right:({x:i},{left:s})=>parseFloat(s)+(i.max-i.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const toResolve=new Set;let isScheduled=!1,anyNeedsMeasurement=!1;function measureAllKeyframes(){if(anyNeedsMeasurement){const i=Array.from(toResolve).filter(a=>a.needsMeasurement),s=new Set(i.map(a=>a.element)),o=new Map;s.forEach(a=>{const _=removeNonTranslationalTransform(a);_.length&&(o.set(a,_),a.render())}),i.forEach(a=>a.measureInitialState()),s.forEach(a=>{a.render();const _=o.get(a);_&&_.forEach(([$,j])=>{var _e;(_e=a.getValue($))===null||_e===void 0||_e.set(j)})}),i.forEach(a=>a.measureEndState()),i.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}anyNeedsMeasurement=!1,isScheduled=!1,toResolve.forEach(i=>i.complete()),toResolve.clear()}function readAllKeyframes(){toResolve.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(anyNeedsMeasurement=!0)})}function flushKeyframeResolvers(){readAllKeyframes(),measureAllKeyframes()}class KeyframeResolver{constructor(s,o,a,_,$,j=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...s],this.onComplete=o,this.name=a,this.motionValue=_,this.element=$,this.isAsync=j}scheduleResolve(){this.isScheduled=!0,this.isAsync?(toResolve.add(this),isScheduled||(isScheduled=!0,frame.read(readAllKeyframes),frame.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:o,element:a,motionValue:_}=this;for(let $=0;$<s.length;$++)if(s[$]===null)if($===0){const j=_==null?void 0:_.get(),_e=s[s.length-1];if(j!==void 0)s[0]=j;else if(a&&o){const et=a.readValue(o,_e);et!=null&&(s[0]=et)}s[0]===void 0&&(s[0]=_e),_&&j===void 0&&_.set(s[0])}else s[$]=s[$-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),toResolve.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,toResolve.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const isNumericalString=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i),splitCSSVariableRegex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function parseCSSVariable(i){const s=splitCSSVariableRegex.exec(i);if(!s)return[,];const[,o,a,_]=s;return[`--${o??a}`,_]}function getVariableValue(i,s,o=1){const[a,_]=parseCSSVariable(i);if(!a)return;const $=window.getComputedStyle(s).getPropertyValue(a);if($){const j=$.trim();return isNumericalString(j)?parseFloat(j):j}return isCSSVariableToken(_)?getVariableValue(_,s,o+1):_}const testValueType=i=>s=>s.test(i),auto$1={test:i=>i==="auto",parse:i=>i},dimensionValueTypes=[number,px,percent,degrees,vw,vh$1,auto$1],findDimensionValueType=i=>dimensionValueTypes.find(testValueType(i));class DOMKeyframesResolver extends KeyframeResolver{constructor(s,o,a,_,$){super(s,o,a,_,$,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let et=0;et<s.length;et++){let tt=s[et];if(typeof tt=="string"&&(tt=tt.trim(),isCSSVariableToken(tt))){const rt=getVariableValue(tt,o.current);rt!==void 0&&(s[et]=rt),et===s.length-1&&(this.finalKeyframe=tt)}}if(this.resolveNoneKeyframes(),!positionalKeys.has(a)||s.length!==2)return;const[_,$]=s,j=findDimensionValueType(_),_e=findDimensionValueType($);if(j!==_e)if(isNumOrPxType(j)&&isNumOrPxType(_e))for(let et=0;et<s.length;et++){const tt=s[et];typeof tt=="string"&&(s[et]=parseFloat(tt))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:o}=this,a=[];for(let _=0;_<s.length;_++)isNone(s[_])&&a.push(_);a.length&&makeNoneKeyframesAnimatable(s,a,o)}measureInitialState(){const{element:s,unresolvedKeyframes:o,name:a}=this;if(!s||!s.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=positionalValues[a](s.measureViewportBox(),window.getComputedStyle(s.current)),o[0]=this.measuredOrigin;const _=o[o.length-1];_!==void 0&&s.getValue(a,_).jump(_,!1)}measureEndState(){var s;const{element:o,name:a,unresolvedKeyframes:_}=this;if(!o||!o.current)return;const $=o.getValue(a);$&&$.jump(this.measuredOrigin,!1);const j=_.length-1,_e=_[j];_[j]=positionalValues[a](o.measureViewportBox(),window.getComputedStyle(o.current)),_e!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=_e),!((s=this.removedTransforms)===null||s===void 0)&&s.length&&this.removedTransforms.forEach(([et,tt])=>{o.getValue(et).set(tt)}),this.resolveNoneKeyframes()}}const isAnimatable=(i,s)=>s==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(complex.test(i)||i==="0")&&!i.startsWith("url("));function hasKeyframesChanged(i){const s=i[0];if(i.length===1)return!0;for(let o=0;o<i.length;o++)if(i[o]!==s)return!0}function canAnimate(i,s,o,a){const _=i[0];if(_===null)return!1;if(s==="display"||s==="visibility")return!0;const $=i[i.length-1],j=isAnimatable(_,s),_e=isAnimatable($,s);return!j||!_e?!1:hasKeyframesChanged(i)||(o==="spring"||isGenerator(o))&&a}const isNotNull=i=>i!==null;function getFinalKeyframe(i,{repeat:s,repeatType:o="loop"},a){const _=i.filter(isNotNull),$=s&&o!=="loop"&&s%2===1?0:_.length-1;return!$||a===void 0?_[$]:a}const MAX_RESOLVE_DELAY=40;class BaseAnimation{constructor({autoplay:s=!0,delay:o=0,type:a="keyframes",repeat:_=0,repeatDelay:$=0,repeatType:j="loop",..._e}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=time.now(),this.options={autoplay:s,delay:o,type:a,repeat:_,repeatDelay:$,repeatType:j,..._e},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>MAX_RESOLVE_DELAY?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&flushKeyframeResolvers(),this._resolved}onKeyframesResolved(s,o){this.resolvedAt=time.now(),this.hasAttemptedResolve=!0;const{name:a,type:_,velocity:$,delay:j,onComplete:_e,onUpdate:et,isGenerator:tt}=this.options;if(!tt&&!canAnimate(s,a,_,$))if(j)this.options.duration=0;else{et&&et(getFinalKeyframe(s,this.options,o)),_e&&_e(),this.resolveFinishedPromise();return}const rt=this.initPlayback(s,o);rt!==!1&&(this._resolved={keyframes:s,finalKeyframe:o,...rt},this.onPostResolved())}onPostResolved(){}then(s,o){return this.currentFinishedPromise.then(s,o)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(s=>{this.resolveFinishedPromise=s})}}const mixNumber$1=(i,s,o)=>i+(s-i)*o;function hueToRgb(i,s,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(s-i)*6*o:o<1/2?s:o<2/3?i+(s-i)*(2/3-o)*6:i}function hslaToRgba({hue:i,saturation:s,lightness:o,alpha:a}){i/=360,s/=100,o/=100;let _=0,$=0,j=0;if(!s)_=$=j=o;else{const _e=o<.5?o*(1+s):o+s-o*s,et=2*o-_e;_=hueToRgb(et,_e,i+1/3),$=hueToRgb(et,_e,i),j=hueToRgb(et,_e,i-1/3)}return{red:Math.round(_*255),green:Math.round($*255),blue:Math.round(j*255),alpha:a}}function mixImmediate(i,s){return o=>o>0?s:i}const mixLinearColor=(i,s,o)=>{const a=i*i,_=o*(s*s-a)+a;return _<0?0:Math.sqrt(_)},colorTypes=[hex,rgba,hsla],getColorType=i=>colorTypes.find(s=>s.test(i));function asRGBA(i){const s=getColorType(i);if(!s)return!1;let o=s.parse(i);return s===hsla&&(o=hslaToRgba(o)),o}const mixColor=(i,s)=>{const o=asRGBA(i),a=asRGBA(s);if(!o||!a)return mixImmediate(i,s);const _={...o};return $=>(_.red=mixLinearColor(o.red,a.red,$),_.green=mixLinearColor(o.green,a.green,$),_.blue=mixLinearColor(o.blue,a.blue,$),_.alpha=mixNumber$1(o.alpha,a.alpha,$),rgba.transform(_))},combineFunctions=(i,s)=>o=>s(i(o)),pipe$1=(...i)=>i.reduce(combineFunctions),invisibleValues=new Set(["none","hidden"]);function mixVisibility(i,s){return invisibleValues.has(i)?o=>o<=0?i:s:o=>o>=1?s:i}function mixNumber(i,s){return o=>mixNumber$1(i,s,o)}function getMixer(i){return typeof i=="number"?mixNumber:typeof i=="string"?isCSSVariableToken(i)?mixImmediate:color.test(i)?mixColor:mixComplex:Array.isArray(i)?mixArray:typeof i=="object"?color.test(i)?mixColor:mixObject:mixImmediate}function mixArray(i,s){const o=[...i],a=o.length,_=i.map(($,j)=>getMixer($)($,s[j]));return $=>{for(let j=0;j<a;j++)o[j]=_[j]($);return o}}function mixObject(i,s){const o={...i,...s},a={};for(const _ in o)i[_]!==void 0&&s[_]!==void 0&&(a[_]=getMixer(i[_])(i[_],s[_]));return _=>{for(const $ in a)o[$]=a[$](_);return o}}function matchOrder(i,s){var o;const a=[],_={color:0,var:0,number:0};for(let $=0;$<s.values.length;$++){const j=s.types[$],_e=i.indexes[j][_[j]],et=(o=i.values[_e])!==null&&o!==void 0?o:0;a[$]=et,_[j]++}return a}const mixComplex=(i,s)=>{const o=complex.createTransformer(s),a=analyseComplexValue(i),_=analyseComplexValue(s);return a.indexes.var.length===_.indexes.var.length&&a.indexes.color.length===_.indexes.color.length&&a.indexes.number.length>=_.indexes.number.length?invisibleValues.has(i)&&!_.values.length||invisibleValues.has(s)&&!a.values.length?mixVisibility(i,s):pipe$1(mixArray(matchOrder(a,_),_.values),o):mixImmediate(i,s)};function mix(i,s,o){return typeof i=="number"&&typeof s=="number"&&typeof o=="number"?mixNumber$1(i,s,o):getMixer(i)(i,s)}const velocitySampleDuration=5;function calcGeneratorVelocity(i,s,o){const a=Math.max(s-velocitySampleDuration,0);return velocityPerSecond(o-i(a),s-a)}const springDefaults={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},safeMin=.001;function findSpring({duration:i=springDefaults.duration,bounce:s=springDefaults.bounce,velocity:o=springDefaults.velocity,mass:a=springDefaults.mass}){let _,$,j=1-s;j=clamp(springDefaults.minDamping,springDefaults.maxDamping,j),i=clamp(springDefaults.minDuration,springDefaults.maxDuration,millisecondsToSeconds(i)),j<1?(_=tt=>{const rt=tt*j,it=rt*i,nt=rt-o,ut=calcAngularFreq(tt,j),ct=Math.exp(-it);return safeMin-nt/ut*ct},$=tt=>{const it=tt*j*i,nt=it*o+o,ut=Math.pow(j,2)*Math.pow(tt,2)*i,ct=Math.exp(-it),st=calcAngularFreq(Math.pow(tt,2),j);return(-_(tt)+safeMin>0?-1:1)*((nt-ut)*ct)/st}):(_=tt=>{const rt=Math.exp(-tt*i),it=(tt-o)*i+1;return-.001+rt*it},$=tt=>{const rt=Math.exp(-tt*i),it=(o-tt)*(i*i);return rt*it});const _e=5/i,et=approximateRoot(_,$,_e);if(i=secondsToMilliseconds(i),isNaN(et))return{stiffness:springDefaults.stiffness,damping:springDefaults.damping,duration:i};{const tt=Math.pow(et,2)*a;return{stiffness:tt,damping:j*2*Math.sqrt(a*tt),duration:i}}}const rootIterations=12;function approximateRoot(i,s,o){let a=o;for(let _=1;_<rootIterations;_++)a=a-i(a)/s(a);return a}function calcAngularFreq(i,s){return i*Math.sqrt(1-s*s)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType(i,s){return s.some(o=>i[o]!==void 0)}function getSpringOptions(i){let s={velocity:springDefaults.velocity,stiffness:springDefaults.stiffness,damping:springDefaults.damping,mass:springDefaults.mass,isResolvedFromDuration:!1,...i};if(!isSpringType(i,physicsKeys)&&isSpringType(i,durationKeys))if(i.visualDuration){const o=i.visualDuration,a=2*Math.PI/(o*1.2),_=a*a,$=2*clamp(.05,1,1-(i.bounce||0))*Math.sqrt(_);s={...s,mass:springDefaults.mass,stiffness:_,damping:$}}else{const o=findSpring(i);s={...s,...o,mass:springDefaults.mass},s.isResolvedFromDuration=!0}return s}function spring(i=springDefaults.visualDuration,s=springDefaults.bounce){const o=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:s}:i;let{restSpeed:a,restDelta:_}=o;const $=o.keyframes[0],j=o.keyframes[o.keyframes.length-1],_e={done:!1,value:$},{stiffness:et,damping:tt,mass:rt,duration:it,velocity:nt,isResolvedFromDuration:ut}=getSpringOptions({...o,velocity:-millisecondsToSeconds(o.velocity||0)}),ct=nt||0,st=tt/(2*Math.sqrt(et*rt)),dt=j-$,ot=millisecondsToSeconds(Math.sqrt(et/rt)),lt=Math.abs(dt)<5;a||(a=lt?springDefaults.restSpeed.granular:springDefaults.restSpeed.default),_||(_=lt?springDefaults.restDelta.granular:springDefaults.restDelta.default);let at;if(st<1){const ht=calcAngularFreq(ot,st);at=mt=>{const gt=Math.exp(-st*ot*mt);return j-gt*((ct+st*ot*dt)/ht*Math.sin(ht*mt)+dt*Math.cos(ht*mt))}}else if(st===1)at=ht=>j-Math.exp(-ot*ht)*(dt+(ct+ot*dt)*ht);else{const ht=ot*Math.sqrt(st*st-1);at=mt=>{const gt=Math.exp(-st*ot*mt),vt=Math.min(ht*mt,300);return j-gt*((ct+st*ot*dt)*Math.sinh(vt)+ht*dt*Math.cosh(vt))/ht}}const ft={calculatedDuration:ut&&it||null,next:ht=>{const mt=at(ht);if(ut)_e.done=ht>=it;else{let gt=0;st<1&&(gt=ht===0?secondsToMilliseconds(ct):calcGeneratorVelocity(at,ht,mt));const vt=Math.abs(gt)<=a,St=Math.abs(j-mt)<=_;_e.done=vt&&St}return _e.value=_e.done?j:mt,_e},toString:()=>{const ht=Math.min(calcGeneratorDuration(ft),maxGeneratorDuration),mt=generateLinearEasing(gt=>ft.next(ht*gt).value,ht,30);return ht+"ms "+mt}};return ft}function inertia({keyframes:i,velocity:s=0,power:o=.8,timeConstant:a=325,bounceDamping:_=10,bounceStiffness:$=500,modifyTarget:j,min:_e,max:et,restDelta:tt=.5,restSpeed:rt}){const it=i[0],nt={done:!1,value:it},ut=vt=>_e!==void 0&&vt<_e||et!==void 0&&vt>et,ct=vt=>_e===void 0?et:et===void 0||Math.abs(_e-vt)<Math.abs(et-vt)?_e:et;let st=o*s;const dt=it+st,ot=j===void 0?dt:j(dt);ot!==dt&&(st=ot-it);const lt=vt=>-st*Math.exp(-vt/a),at=vt=>ot+lt(vt),ft=vt=>{const St=lt(vt),wt=at(vt);nt.done=Math.abs(St)<=tt,nt.value=nt.done?ot:wt};let ht,mt;const gt=vt=>{ut(nt.value)&&(ht=vt,mt=spring({keyframes:[nt.value,ct(nt.value)],velocity:calcGeneratorVelocity(at,vt,nt.value),damping:_,stiffness:$,restDelta:tt,restSpeed:rt}))};return gt(0),{calculatedDuration:null,next:vt=>{let St=!1;return!mt&&ht===void 0&&(St=!0,ft(vt),gt(vt)),ht!==void 0&&vt>=ht?mt.next(vt-ht):(!St&&ft(vt),nt)}}}const easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=i=>Array.isArray(i)&&typeof i[0]!="number",easingLookup={linear:noop$2,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},easingDefinitionToFunction=i=>{if(isBezierDefinition(i)){invariant$1(i.length===4);const[s,o,a,_]=i;return cubicBezier(s,o,a,_)}else if(typeof i=="string")return easingLookup[i];return i};function createMixers(i,s,o){const a=[],_=o||mix,$=i.length-1;for(let j=0;j<$;j++){let _e=_(i[j],i[j+1]);if(s){const et=Array.isArray(s)?s[j]||noop$2:s;_e=pipe$1(et,_e)}a.push(_e)}return a}function interpolate(i,s,{clamp:o=!0,ease:a,mixer:_}={}){const $=i.length;if(invariant$1($===s.length),$===1)return()=>s[0];if($===2&&s[0]===s[1])return()=>s[1];const j=i[0]===i[1];i[0]>i[$-1]&&(i=[...i].reverse(),s=[...s].reverse());const _e=createMixers(s,a,_),et=_e.length,tt=rt=>{if(j&&rt<i[0])return s[0];let it=0;if(et>1)for(;it<i.length-2&&!(rt<i[it+1]);it++);const nt=progress(i[it],i[it+1],rt);return _e[it](nt)};return o?rt=>tt(clamp(i[0],i[$-1],rt)):tt}function fillOffset(i,s){const o=i[i.length-1];for(let a=1;a<=s;a++){const _=progress(0,s,a);i.push(mixNumber$1(o,1,_))}}function defaultOffset(i){const s=[0];return fillOffset(s,i.length-1),s}function convertOffsetToTimes(i,s){return i.map(o=>o*s)}function defaultEasing(i,s){return i.map(()=>s||easeInOut).splice(0,i.length-1)}function keyframes({duration:i=300,keyframes:s,times:o,ease:a="easeInOut"}){const _=isEasingArray(a)?a.map(easingDefinitionToFunction):easingDefinitionToFunction(a),$={done:!1,value:s[0]},j=convertOffsetToTimes(o&&o.length===s.length?o:defaultOffset(s),i),_e=interpolate(j,s,{ease:Array.isArray(_)?_:defaultEasing(s,_)});return{calculatedDuration:i,next:et=>($.value=_e(et),$.done=et>=i,$)}}const frameloopDriver=i=>{const s=({timestamp:o})=>i(o);return{start:()=>frame.update(s,!0),stop:()=>cancelFrame(s),now:()=>frameData.isProcessing?frameData.timestamp:time.now()}},generators={decay:inertia,inertia,tween:keyframes,keyframes,spring},percentToProgress=i=>i/100;class MainThreadAnimation extends BaseAnimation{constructor(s){super(s),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:et}=this.options;et&&et()};const{name:o,motionValue:a,element:_,keyframes:$}=this.options,j=(_==null?void 0:_.KeyframeResolver)||KeyframeResolver,_e=(et,tt)=>this.onKeyframesResolved(et,tt);this.resolver=new j($,_e,o,a,_),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(s){const{type:o="keyframes",repeat:a=0,repeatDelay:_=0,repeatType:$,velocity:j=0}=this.options,_e=isGenerator(o)?o:generators[o]||keyframes;let et,tt;_e!==keyframes&&typeof s[0]!="number"&&(et=pipe$1(percentToProgress,mix(s[0],s[1])),s=[0,100]);const rt=_e({...this.options,keyframes:s});$==="mirror"&&(tt=_e({...this.options,keyframes:[...s].reverse(),velocity:-j})),rt.calculatedDuration===null&&(rt.calculatedDuration=calcGeneratorDuration(rt));const{calculatedDuration:it}=rt,nt=it+_,ut=nt*(a+1)-_;return{generator:rt,mirroredGenerator:tt,mapPercentToKeyframes:et,calculatedDuration:it,resolvedDuration:nt,totalDuration:ut}}onPostResolved(){const{autoplay:s=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!s?this.pause():this.state=this.pendingPlayState}tick(s,o=!1){const{resolved:a}=this;if(!a){const{keyframes:vt}=this.options;return{done:!0,value:vt[vt.length-1]}}const{finalKeyframe:_,generator:$,mirroredGenerator:j,mapPercentToKeyframes:_e,keyframes:et,calculatedDuration:tt,totalDuration:rt,resolvedDuration:it}=a;if(this.startTime===null)return $.next(0);const{delay:nt,repeat:ut,repeatType:ct,repeatDelay:st,onUpdate:dt}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-rt/this.speed,this.startTime)),o?this.currentTime=s:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(s-this.startTime)*this.speed;const ot=this.currentTime-nt*(this.speed>=0?1:-1),lt=this.speed>=0?ot<0:ot>rt;this.currentTime=Math.max(ot,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=rt);let at=this.currentTime,ft=$;if(ut){const vt=Math.min(this.currentTime,rt)/it;let St=Math.floor(vt),wt=vt%1;!wt&&vt>=1&&(wt=1),wt===1&&St--,St=Math.min(St,ut+1),!!(St%2)&&(ct==="reverse"?(wt=1-wt,st&&(wt-=st/it)):ct==="mirror"&&(ft=j)),at=clamp(0,1,wt)*it}const ht=lt?{done:!1,value:et[0]}:ft.next(at);_e&&(ht.value=_e(ht.value));let{done:mt}=ht;!lt&&tt!==null&&(mt=this.speed>=0?this.currentTime>=rt:this.currentTime<=0);const gt=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&mt);return gt&&_!==void 0&&(ht.value=getFinalKeyframe(et,this.options,_)),dt&&dt(ht.value),gt&&this.finish(),ht}get duration(){const{resolved:s}=this;return s?millisecondsToSeconds(s.calculatedDuration):0}get time(){return millisecondsToSeconds(this.currentTime)}set time(s){s=secondsToMilliseconds(s),this.currentTime=s,this.holdTime!==null||this.speed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.speed)}get speed(){return this.playbackSpeed}set speed(s){const o=this.playbackSpeed!==s;this.playbackSpeed=s,o&&(this.time=millisecondsToSeconds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:s=frameloopDriver,onPlay:o,startTime:a}=this.options;this.driver||(this.driver=s($=>this.tick($))),o&&o();const _=this.driver.now();this.holdTime!==null?this.startTime=_-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=_):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var s;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(s=this.currentTime)!==null&&s!==void 0?s:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:s}=this.options;s&&s()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(s){return this.startTime=0,this.tick(s,!0)}}const acceleratedValues=new Set(["opacity","clipPath","filter","transform"]);function startWaapiAnimation(i,s,o,{delay:a=0,duration:_=300,repeat:$=0,repeatType:j="loop",ease:_e="easeInOut",times:et}={}){const tt={[s]:o};et&&(tt.offset=et);const rt=mapEasingToNativeEasing(_e,_);return Array.isArray(rt)&&(tt.easing=rt),i.animate(tt,{delay:a,duration:_,easing:Array.isArray(rt)?"linear":rt,fill:"both",iterations:$+1,direction:j==="reverse"?"alternate":"normal"})}const supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),sampleDelta=10,maxDuration=2e4;function requiresPregeneratedKeyframes(i){return isGenerator(i.type)||i.type==="spring"||!isWaapiSupportedEasing(i.ease)}function pregenerateKeyframes(i,s){const o=new MainThreadAnimation({...s,keyframes:i,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:i[0]};const _=[];let $=0;for(;!a.done&&$<maxDuration;)a=o.sample($),_.push(a.value),$+=sampleDelta;return{times:void 0,keyframes:_,duration:$-sampleDelta,ease:"linear"}}const unsupportedEasingFunctions={anticipate,backInOut,circInOut};function isUnsupportedEase(i){return i in unsupportedEasingFunctions}class AcceleratedAnimation extends BaseAnimation{constructor(s){super(s);const{name:o,motionValue:a,element:_,keyframes:$}=this.options;this.resolver=new DOMKeyframesResolver($,(j,_e)=>this.onKeyframesResolved(j,_e),o,a,_),this.resolver.scheduleResolve()}initPlayback(s,o){let{duration:a=300,times:_,ease:$,type:j,motionValue:_e,name:et,startTime:tt}=this.options;if(!_e.owner||!_e.owner.current)return!1;if(typeof $=="string"&&supportsLinearEasing()&&isUnsupportedEase($)&&($=unsupportedEasingFunctions[$]),requiresPregeneratedKeyframes(this.options)){const{onComplete:it,onUpdate:nt,motionValue:ut,element:ct,...st}=this.options,dt=pregenerateKeyframes(s,st);s=dt.keyframes,s.length===1&&(s[1]=s[0]),a=dt.duration,_=dt.times,$=dt.ease,j="keyframes"}const rt=startWaapiAnimation(_e.owner.current,et,s,{...this.options,duration:a,times:_,ease:$});return rt.startTime=tt??this.calcStartTime(),this.pendingTimeline?(attachTimeline(rt,this.pendingTimeline),this.pendingTimeline=void 0):rt.onfinish=()=>{const{onComplete:it}=this.options;_e.set(getFinalKeyframe(s,this.options,o)),it&&it(),this.cancel(),this.resolveFinishedPromise()},{animation:rt,duration:a,times:_,type:j,ease:$,keyframes:s}}get duration(){const{resolved:s}=this;if(!s)return 0;const{duration:o}=s;return millisecondsToSeconds(o)}get time(){const{resolved:s}=this;if(!s)return 0;const{animation:o}=s;return millisecondsToSeconds(o.currentTime||0)}set time(s){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.currentTime=secondsToMilliseconds(s)}get speed(){const{resolved:s}=this;if(!s)return 1;const{animation:o}=s;return o.playbackRate}set speed(s){const{resolved:o}=this;if(!o)return;const{animation:a}=o;a.playbackRate=s}get state(){const{resolved:s}=this;if(!s)return"idle";const{animation:o}=s;return o.playState}get startTime(){const{resolved:s}=this;if(!s)return null;const{animation:o}=s;return o.startTime}attachTimeline(s){if(!this._resolved)this.pendingTimeline=s;else{const{resolved:o}=this;if(!o)return noop$2;const{animation:a}=o;attachTimeline(a,s)}return noop$2}play(){if(this.isStopped)return;const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.playState==="finished"&&this.updateFinishedPromise(),o.play()}pause(){const{resolved:s}=this;if(!s)return;const{animation:o}=s;o.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:s}=this;if(!s)return;const{animation:o,keyframes:a,duration:_,type:$,ease:j,times:_e}=s;if(o.playState==="idle"||o.playState==="finished")return;if(this.time){const{motionValue:tt,onUpdate:rt,onComplete:it,element:nt,...ut}=this.options,ct=new MainThreadAnimation({...ut,keyframes:a,duration:_,type:$,ease:j,times:_e,isGenerator:!0}),st=secondsToMilliseconds(this.time);tt.setWithVelocity(ct.sample(st-sampleDelta).value,ct.sample(st).value,sampleDelta)}const{onStop:et}=this.options;et&&et(),this.cancel()}complete(){const{resolved:s}=this;s&&s.animation.finish()}cancel(){const{resolved:s}=this;s&&s.animation.cancel()}static supports(s){const{motionValue:o,name:a,repeatDelay:_,repeatType:$,damping:j,type:_e}=s;if(!o||!o.owner||!(o.owner.current instanceof HTMLElement))return!1;const{onUpdate:et,transformTemplate:tt}=o.owner.getProps();return supportsWaapi()&&a&&acceleratedValues.has(a)&&!et&&!tt&&!_&&$!=="mirror"&&j!==0&&_e!=="inertia"}}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(i,{keyframes:s})=>s.length>2?keyframesTransition:transformProps.has(i)?i.startsWith("scale")?criticallyDampedSpring(s[1]):underDampedSpring:ease;function isTransitionDefined({when:i,delay:s,delayChildren:o,staggerChildren:a,staggerDirection:_,repeat:$,repeatType:j,repeatDelay:_e,from:et,elapsed:tt,...rt}){return!!Object.keys(rt).length}const animateMotionValue=(i,s,o,a={},_,$)=>j=>{const _e=getValueTransition(a,i)||{},et=_e.delay||a.delay||0;let{elapsed:tt=0}=a;tt=tt-secondsToMilliseconds(et);let rt={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:s.getVelocity(),..._e,delay:-tt,onUpdate:nt=>{s.set(nt),_e.onUpdate&&_e.onUpdate(nt)},onComplete:()=>{j(),_e.onComplete&&_e.onComplete()},name:i,motionValue:s,element:$?void 0:_};isTransitionDefined(_e)||(rt={...rt,...getDefaultTransition(i,rt)}),rt.duration&&(rt.duration=secondsToMilliseconds(rt.duration)),rt.repeatDelay&&(rt.repeatDelay=secondsToMilliseconds(rt.repeatDelay)),rt.from!==void 0&&(rt.keyframes[0]=rt.from);let it=!1;if((rt.type===!1||rt.duration===0&&!rt.repeatDelay)&&(rt.duration=0,rt.delay===0&&(it=!0)),it&&!$&&s.get()!==void 0){const nt=getFinalKeyframe(rt.keyframes,_e);if(nt!==void 0)return frame.update(()=>{rt.onUpdate(nt),rt.onComplete()}),new GroupPlaybackControls([])}return!$&&AcceleratedAnimation.supports(rt)?new AcceleratedAnimation(rt):new MainThreadAnimation(rt)};function shouldBlockAnimation({protectedKeys:i,needsAnimating:s},o){const a=i.hasOwnProperty(o)&&s[o]!==!0;return s[o]=!1,a}function animateTarget(i,s,{delay:o=0,transitionOverride:a,type:_}={}){var $;let{transition:j=i.getDefaultTransition(),transitionEnd:_e,...et}=s;a&&(j=a);const tt=[],rt=_&&i.animationState&&i.animationState.getState()[_];for(const it in et){const nt=i.getValue(it,($=i.latestValues[it])!==null&&$!==void 0?$:null),ut=et[it];if(ut===void 0||rt&&shouldBlockAnimation(rt,it))continue;const ct={delay:o,...getValueTransition(j||{},it)};let st=!1;if(window.MotionHandoffAnimation){const ot=getOptimisedAppearId(i);if(ot){const lt=window.MotionHandoffAnimation(ot,it,frame);lt!==null&&(ct.startTime=lt,st=!0)}}addValueToWillChange(i,it),nt.start(animateMotionValue(it,nt,ut,i.shouldReduceMotion&&positionalKeys.has(it)?{type:!1}:ct,i,st));const dt=nt.animation;dt&&tt.push(dt)}return _e&&Promise.all(tt).then(()=>{frame.update(()=>{_e&&setTarget(i,_e)})}),tt}function animateVariant(i,s,o={}){var a;const _=resolveVariant(i,s,o.type==="exit"?(a=i.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:$=i.getDefaultTransition()||{}}=_||{};o.transitionOverride&&($=o.transitionOverride);const j=_?()=>Promise.all(animateTarget(i,_,o)):()=>Promise.resolve(),_e=i.variantChildren&&i.variantChildren.size?(tt=0)=>{const{delayChildren:rt=0,staggerChildren:it,staggerDirection:nt}=$;return animateChildren(i,s,rt+tt,it,nt,o)}:()=>Promise.resolve(),{when:et}=$;if(et){const[tt,rt]=et==="beforeChildren"?[j,_e]:[_e,j];return tt().then(()=>rt())}else return Promise.all([j(),_e(o.delay)])}function animateChildren(i,s,o=0,a=0,_=1,$){const j=[],_e=(i.variantChildren.size-1)*a,et=_===1?(tt=0)=>tt*a:(tt=0)=>_e-tt*a;return Array.from(i.variantChildren).sort(sortByTreeOrder).forEach((tt,rt)=>{tt.notify("AnimationStart",s),j.push(animateVariant(tt,s,{...$,delay:o+et(rt)}).then(()=>tt.notify("AnimationComplete",s)))}),Promise.all(j)}function sortByTreeOrder(i,s){return i.sortNodePosition(s)}function animateVisualElement(i,s,o={}){i.notify("AnimationStart",s);let a;if(Array.isArray(s)){const _=s.map($=>animateVariant(i,$,o));a=Promise.all(_)}else if(typeof s=="string")a=animateVariant(i,s,o);else{const _=typeof s=="function"?resolveVariant(i,s,o.custom):s;a=Promise.all(animateTarget(i,_,o))}return a.then(()=>{i.notify("AnimationComplete",s)})}const numVariantProps=variantProps.length;function getVariantContext(i){if(!i)return;if(!i.isControllingVariants){const o=i.parent?getVariantContext(i.parent)||{}:{};return i.props.initial!==void 0&&(o.initial=i.props.initial),o}const s={};for(let o=0;o<numVariantProps;o++){const a=variantProps[o],_=i.props[a];(isVariantLabel(_)||_===!1)&&(s[a]=_)}return s}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList(i){return s=>Promise.all(s.map(({animation:o,options:a})=>animateVisualElement(i,o,a)))}function createAnimationState(i){let s=animateList(i),o=createState(),a=!0;const _=et=>(tt,rt)=>{var it;const nt=resolveVariant(i,rt,et==="exit"?(it=i.presenceContext)===null||it===void 0?void 0:it.custom:void 0);if(nt){const{transition:ut,transitionEnd:ct,...st}=nt;tt={...tt,...st,...ct}}return tt};function $(et){s=et(i)}function j(et){const{props:tt}=i,rt=getVariantContext(i.parent)||{},it=[],nt=new Set;let ut={},ct=1/0;for(let dt=0;dt<numAnimationTypes;dt++){const ot=reversePriorityOrder[dt],lt=o[ot],at=tt[ot]!==void 0?tt[ot]:rt[ot],ft=isVariantLabel(at),ht=ot===et?lt.isActive:null;ht===!1&&(ct=dt);let mt=at===rt[ot]&&at!==tt[ot]&&ft;if(mt&&a&&i.manuallyAnimateOnMount&&(mt=!1),lt.protectedKeys={...ut},!lt.isActive&&ht===null||!at&&!lt.prevProp||isAnimationControls(at)||typeof at=="boolean")continue;const gt=checkVariantsDidChange(lt.prevProp,at);let vt=gt||ot===et&&lt.isActive&&!mt&&ft||dt>ct&&ft,St=!1;const wt=Array.isArray(at)?at:[at];let Pt=wt.reduce(_(ot),{});ht===!1&&(Pt={});const{prevResolvedValues:Rt={}}=lt,It={...Rt,...Pt},jt=bt=>{vt=!0,nt.has(bt)&&(St=!0,nt.delete(bt)),lt.needsAnimating[bt]=!0;const pt=i.getValue(bt);pt&&(pt.liveStyle=!1)};for(const bt in It){const pt=Pt[bt],yt=Rt[bt];if(ut.hasOwnProperty(bt))continue;let kt=!1;isKeyframesTarget(pt)&&isKeyframesTarget(yt)?kt=!shallowCompare(pt,yt):kt=pt!==yt,kt?pt!=null?jt(bt):nt.add(bt):pt!==void 0&&nt.has(bt)?jt(bt):lt.protectedKeys[bt]=!0}lt.prevProp=at,lt.prevResolvedValues=Pt,lt.isActive&&(ut={...ut,...Pt}),a&&i.blockInitialAnimation&&(vt=!1),vt&&(!(mt&&gt)||St)&&it.push(...wt.map(bt=>({animation:bt,options:{type:ot}})))}if(nt.size){const dt={};nt.forEach(ot=>{const lt=i.getBaseTarget(ot),at=i.getValue(ot);at&&(at.liveStyle=!0),dt[ot]=lt??null}),it.push({animation:dt})}let st=!!it.length;return a&&(tt.initial===!1||tt.initial===tt.animate)&&!i.manuallyAnimateOnMount&&(st=!1),a=!1,st?s(it):Promise.resolve()}function _e(et,tt){var rt;if(o[et].isActive===tt)return Promise.resolve();(rt=i.variantChildren)===null||rt===void 0||rt.forEach(nt=>{var ut;return(ut=nt.animationState)===null||ut===void 0?void 0:ut.setActive(et,tt)}),o[et].isActive=tt;const it=j(et);for(const nt in o)o[nt].protectedKeys={};return it}return{animateChanges:j,setActive:_e,setAnimateFunction:$,getState:()=>o,reset:()=>{o=createState(),a=!0}}}function checkVariantsDidChange(i,s){return typeof s=="string"?s!==i:Array.isArray(s)?!shallowCompare(s,i):!1}function createTypeState(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class Feature{constructor(s){this.isMounted=!1,this.node=s}update(){}}class AnimationFeature extends Feature{constructor(s){super(s),s.animationState||(s.animationState=createAnimationState(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();isAnimationControls(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:o}=this.node.prevProps||{};s!==o&&this.updateAnimationControlsSubscription()}unmount(){var s;this.node.animationState.reset(),(s=this.unmountControls)===null||s===void 0||s.call(this)}}let id$2=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$2++}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:o}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===a)return;const _=this.node.animationState.setActive("exit",!s);o&&!s&&_.then(()=>o(this.id))}mount(){const{register:s}=this.node.presenceContext||{};s&&(this.unmount=s(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}};function addDomEvent(i,s,o,a={passive:!0}){return i.addEventListener(s,o,a),()=>i.removeEventListener(s,o)}function extractEventInfo(i){return{point:{x:i.pageX,y:i.pageY}}}const addPointerInfo=i=>s=>isPrimaryPointer(s)&&i(s,extractEventInfo(s));function addPointerEvent(i,s,o,a){return addDomEvent(i,s,addPointerInfo(o),a)}const distance=(i,s)=>Math.abs(i-s);function distance2D(i,s){const o=distance(i.x,s.x),a=distance(i.y,s.y);return Math.sqrt(o**2+a**2)}class PanSession{constructor(s,o,{transformPagePoint:a,contextWindow:_,dragSnapToOrigin:$=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const it=getPanInfo(this.lastMoveEventInfo,this.history),nt=this.startEvent!==null,ut=distance2D(it.offset,{x:0,y:0})>=3;if(!nt&&!ut)return;const{point:ct}=it,{timestamp:st}=frameData;this.history.push({...ct,timestamp:st});const{onStart:dt,onMove:ot}=this.handlers;nt||(dt&&dt(this.lastMoveEvent,it),this.startEvent=this.lastMoveEvent),ot&&ot(this.lastMoveEvent,it)},this.handlePointerMove=(it,nt)=>{this.lastMoveEvent=it,this.lastMoveEventInfo=transformPoint(nt,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(it,nt)=>{this.end();const{onEnd:ut,onSessionEnd:ct,resumeAnimation:st}=this.handlers;if(this.dragSnapToOrigin&&st&&st(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const dt=getPanInfo(it.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(nt,this.transformPagePoint),this.history);this.startEvent&&ut&&ut(it,dt),ct&&ct(it,dt)},!isPrimaryPointer(s))return;this.dragSnapToOrigin=$,this.handlers=o,this.transformPagePoint=a,this.contextWindow=_||window;const j=extractEventInfo(s),_e=transformPoint(j,this.transformPagePoint),{point:et}=_e,{timestamp:tt}=frameData;this.history=[{...et,timestamp:tt}];const{onSessionStart:rt}=o;rt&&rt(s,getPanInfo(_e,this.history)),this.removeListeners=pipe$1(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint(i,s){return s?{point:s(i.point)}:i}function subtractPoint(i,s){return{x:i.x-s.x,y:i.y-s.y}}function getPanInfo({point:i},s){return{point:i,delta:subtractPoint(i,lastDevicePoint(s)),offset:subtractPoint(i,startDevicePoint(s)),velocity:getVelocity(s,.1)}}function startDevicePoint(i){return i[0]}function lastDevicePoint(i){return i[i.length-1]}function getVelocity(i,s){if(i.length<2)return{x:0,y:0};let o=i.length-1,a=null;const _=lastDevicePoint(i);for(;o>=0&&(a=i[o],!(_.timestamp-a.timestamp>secondsToMilliseconds(s)));)o--;if(!a)return{x:0,y:0};const $=millisecondsToSeconds(_.timestamp-a.timestamp);if($===0)return{x:0,y:0};const j={x:(_.x-a.x)/$,y:(_.y-a.y)/$};return j.x===1/0&&(j.x=0),j.y===1/0&&(j.y=0),j}const SCALE_PRECISION=1e-4,SCALE_MIN=1-SCALE_PRECISION,SCALE_MAX=1+SCALE_PRECISION,TRANSLATE_PRECISION=.01,TRANSLATE_MIN=0-TRANSLATE_PRECISION,TRANSLATE_MAX=0+TRANSLATE_PRECISION;function calcLength(i){return i.max-i.min}function isNear(i,s,o){return Math.abs(i-s)<=o}function calcAxisDelta(i,s,o,a=.5){i.origin=a,i.originPoint=mixNumber$1(s.min,s.max,i.origin),i.scale=calcLength(o)/calcLength(s),i.translate=mixNumber$1(o.min,o.max,i.origin)-i.originPoint,(i.scale>=SCALE_MIN&&i.scale<=SCALE_MAX||isNaN(i.scale))&&(i.scale=1),(i.translate>=TRANSLATE_MIN&&i.translate<=TRANSLATE_MAX||isNaN(i.translate))&&(i.translate=0)}function calcBoxDelta(i,s,o,a){calcAxisDelta(i.x,s.x,o.x,a?a.originX:void 0),calcAxisDelta(i.y,s.y,o.y,a?a.originY:void 0)}function calcRelativeAxis(i,s,o){i.min=o.min+s.min,i.max=i.min+calcLength(s)}function calcRelativeBox(i,s,o){calcRelativeAxis(i.x,s.x,o.x),calcRelativeAxis(i.y,s.y,o.y)}function calcRelativeAxisPosition(i,s,o){i.min=s.min-o.min,i.max=i.min+calcLength(s)}function calcRelativePosition(i,s,o){calcRelativeAxisPosition(i.x,s.x,o.x),calcRelativeAxisPosition(i.y,s.y,o.y)}function applyConstraints(i,{min:s,max:o},a){return s!==void 0&&i<s?i=a?mixNumber$1(s,i,a.min):Math.max(i,s):o!==void 0&&i>o&&(i=a?mixNumber$1(o,i,a.max):Math.min(i,o)),i}function calcRelativeAxisConstraints(i,s,o){return{min:s!==void 0?i.min+s:void 0,max:o!==void 0?i.max+o-(i.max-i.min):void 0}}function calcRelativeConstraints(i,{top:s,left:o,bottom:a,right:_}){return{x:calcRelativeAxisConstraints(i.x,o,_),y:calcRelativeAxisConstraints(i.y,s,a)}}function calcViewportAxisConstraints(i,s){let o=s.min-i.min,a=s.max-i.max;return s.max-s.min<i.max-i.min&&([o,a]=[a,o]),{min:o,max:a}}function calcViewportConstraints(i,s){return{x:calcViewportAxisConstraints(i.x,s.x),y:calcViewportAxisConstraints(i.y,s.y)}}function calcOrigin(i,s){let o=.5;const a=calcLength(i),_=calcLength(s);return _>a?o=progress(s.min,s.max-a,i.min):a>_&&(o=progress(i.min,i.max-_,s.min)),clamp(0,1,o)}function rebaseAxisConstraints(i,s){const o={};return s.min!==void 0&&(o.min=s.min-i.min),s.max!==void 0&&(o.max=s.max-i.min),o}const defaultElastic=.35;function resolveDragElastic(i=defaultElastic){return i===!1?i=0:i===!0&&(i=defaultElastic),{x:resolveAxisElastic(i,"left","right"),y:resolveAxisElastic(i,"top","bottom")}}function resolveAxisElastic(i,s,o){return{min:resolvePointElastic(i,s),max:resolvePointElastic(i,o)}}function resolvePointElastic(i,s){return typeof i=="number"?i:i[s]||0}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(i){return[i("x"),i("y")]}function convertBoundingBoxToBox({top:i,left:s,right:o,bottom:a}){return{x:{min:s,max:o},y:{min:i,max:a}}}function convertBoxToBoundingBox({x:i,y:s}){return{top:s.min,right:i.max,bottom:s.max,left:i.min}}function transformBoxPoints(i,s){if(!s)return i;const o=s({x:i.left,y:i.top}),a=s({x:i.right,y:i.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}function isIdentityScale(i){return i===void 0||i===1}function hasScale({scale:i,scaleX:s,scaleY:o}){return!isIdentityScale(i)||!isIdentityScale(s)||!isIdentityScale(o)}function hasTransform(i){return hasScale(i)||has2DTranslate(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function has2DTranslate(i){return is2DTranslate(i.x)||is2DTranslate(i.y)}function is2DTranslate(i){return i&&i!=="0%"}function scalePoint(i,s,o){const a=i-o,_=s*a;return o+_}function applyPointDelta(i,s,o,a,_){return _!==void 0&&(i=scalePoint(i,_,a)),scalePoint(i,o,a)+s}function applyAxisDelta(i,s=0,o=1,a,_){i.min=applyPointDelta(i.min,s,o,a,_),i.max=applyPointDelta(i.max,s,o,a,_)}function applyBoxDelta(i,{x:s,y:o}){applyAxisDelta(i.x,s.translate,s.scale,s.originPoint),applyAxisDelta(i.y,o.translate,o.scale,o.originPoint)}const TREE_SCALE_SNAP_MIN=.999999999999,TREE_SCALE_SNAP_MAX=1.0000000000001;function applyTreeDeltas(i,s,o,a=!1){const _=o.length;if(!_)return;s.x=s.y=1;let $,j;for(let _e=0;_e<_;_e++){$=o[_e],j=$.projectionDelta;const{visualElement:et}=$.options;et&&et.props.style&&et.props.style.display==="contents"||(a&&$.options.layoutScroll&&$.scroll&&$!==$.root&&transformBox(i,{x:-$.scroll.offset.x,y:-$.scroll.offset.y}),j&&(s.x*=j.x.scale,s.y*=j.y.scale,applyBoxDelta(i,j)),a&&hasTransform($.latestValues)&&transformBox(i,$.latestValues))}s.x<TREE_SCALE_SNAP_MAX&&s.x>TREE_SCALE_SNAP_MIN&&(s.x=1),s.y<TREE_SCALE_SNAP_MAX&&s.y>TREE_SCALE_SNAP_MIN&&(s.y=1)}function translateAxis(i,s){i.min=i.min+s,i.max=i.max+s}function transformAxis(i,s,o,a,_=.5){const $=mixNumber$1(i.min,i.max,_);applyAxisDelta(i,s,o,$,a)}function transformBox(i,s){transformAxis(i.x,s.x,s.scaleX,s.scale,s.originX),transformAxis(i.y,s.y,s.scaleY,s.scale,s.originY)}function measureViewportBox(i,s){return convertBoundingBoxToBox(transformBoxPoints(i.getBoundingClientRect(),s))}function measurePageBox(i,s,o){const a=measureViewportBox(i,o),{scroll:_}=s;return _&&(translateAxis(a.x,_.offset.x),translateAxis(a.y,_.offset.y)),a}const getContextWindow=({current:i})=>i?i.ownerDocument.defaultView:null,elementDragControls=new WeakMap;class VisualElementDragControls{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=s}start(s,{snapToCursor:o=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const _=rt=>{const{dragSnapToOrigin:it}=this.getProps();it?this.pauseAnimation():this.stopAnimation(),o&&this.snapToCursor(extractEventInfo(rt).point)},$=(rt,it)=>{const{drag:nt,dragPropagation:ut,onDragStart:ct}=this.getProps();if(nt&&!ut&&(this.openDragLock&&this.openDragLock(),this.openDragLock=setDragLock(nt),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(dt=>{let ot=this.getAxisMotionValue(dt).get()||0;if(percent.test(ot)){const{projection:lt}=this.visualElement;if(lt&&lt.layout){const at=lt.layout.layoutBox[dt];at&&(ot=calcLength(at)*(parseFloat(ot)/100))}}this.originPoint[dt]=ot}),ct&&frame.postRender(()=>ct(rt,it)),addValueToWillChange(this.visualElement,"transform");const{animationState:st}=this.visualElement;st&&st.setActive("whileDrag",!0)},j=(rt,it)=>{const{dragPropagation:nt,dragDirectionLock:ut,onDirectionLock:ct,onDrag:st}=this.getProps();if(!nt&&!this.openDragLock)return;const{offset:dt}=it;if(ut&&this.currentDirection===null){this.currentDirection=getCurrentDirection(dt),this.currentDirection!==null&&ct&&ct(this.currentDirection);return}this.updateAxis("x",it.point,dt),this.updateAxis("y",it.point,dt),this.visualElement.render(),st&&st(rt,it)},_e=(rt,it)=>this.stop(rt,it),et=()=>eachAxis(rt=>{var it;return this.getAnimationState(rt)==="paused"&&((it=this.getAxisMotionValue(rt).animation)===null||it===void 0?void 0:it.play())}),{dragSnapToOrigin:tt}=this.getProps();this.panSession=new PanSession(s,{onSessionStart:_,onStart:$,onMove:j,onSessionEnd:_e,resumeAnimation:et},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:tt,contextWindow:getContextWindow(this.visualElement)})}stop(s,o){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:_}=o;this.startAnimation(_);const{onDragEnd:$}=this.getProps();$&&frame.postRender(()=>$(s,o))}cancel(){this.isDragging=!1;const{projection:s,animationState:o}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}updateAxis(s,o,a){const{drag:_}=this.getProps();if(!a||!shouldDrag(s,_,this.currentDirection))return;const $=this.getAxisMotionValue(s);let j=this.originPoint[s]+a[s];this.constraints&&this.constraints[s]&&(j=applyConstraints(j,this.constraints[s],this.elastic[s])),$.set(j)}resolveConstraints(){var s;const{dragConstraints:o,dragElastic:a}=this.getProps(),_=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)===null||s===void 0?void 0:s.layout,$=this.constraints;o&&isRefObject(o)?this.constraints||(this.constraints=this.resolveRefConstraints()):o&&_?this.constraints=calcRelativeConstraints(_.layoutBox,o):this.constraints=!1,this.elastic=resolveDragElastic(a),$!==this.constraints&&_&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(j=>{this.constraints!==!1&&this.getAxisMotionValue(j)&&(this.constraints[j]=rebaseAxisConstraints(_.layoutBox[j],this.constraints[j]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:o}=this.getProps();if(!s||!isRefObject(s))return!1;const a=s.current,{projection:_}=this.visualElement;if(!_||!_.layout)return!1;const $=measurePageBox(a,_.root,this.visualElement.getTransformPagePoint());let j=calcViewportConstraints(_.layout.layoutBox,$);if(o){const _e=o(convertBoxToBoundingBox(j));this.hasMutatedConstraints=!!_e,_e&&(j=convertBoundingBoxToBox(_e))}return j}startAnimation(s){const{drag:o,dragMomentum:a,dragElastic:_,dragTransition:$,dragSnapToOrigin:j,onDragTransitionEnd:_e}=this.getProps(),et=this.constraints||{},tt=eachAxis(rt=>{if(!shouldDrag(rt,o,this.currentDirection))return;let it=et&&et[rt]||{};j&&(it={min:0,max:0});const nt=_?200:1e6,ut=_?40:1e7,ct={type:"inertia",velocity:a?s[rt]:0,bounceStiffness:nt,bounceDamping:ut,timeConstant:750,restDelta:1,restSpeed:10,...$,...it};return this.startAxisValueAnimation(rt,ct)});return Promise.all(tt).then(_e)}startAxisValueAnimation(s,o){const a=this.getAxisMotionValue(s);return addValueToWillChange(this.visualElement,s),a.start(animateMotionValue(s,a,0,o,this.visualElement,!1))}stopAnimation(){eachAxis(s=>this.getAxisMotionValue(s).stop())}pauseAnimation(){eachAxis(s=>{var o;return(o=this.getAxisMotionValue(s).animation)===null||o===void 0?void 0:o.pause()})}getAnimationState(s){var o;return(o=this.getAxisMotionValue(s).animation)===null||o===void 0?void 0:o.state}getAxisMotionValue(s){const o=`_drag${s.toUpperCase()}`,a=this.visualElement.getProps(),_=a[o];return _||this.visualElement.getValue(s,(a.initial?a.initial[s]:void 0)||0)}snapToCursor(s){eachAxis(o=>{const{drag:a}=this.getProps();if(!shouldDrag(o,a,this.currentDirection))return;const{projection:_}=this.visualElement,$=this.getAxisMotionValue(o);if(_&&_.layout){const{min:j,max:_e}=_.layout.layoutBox[o];$.set(s[o]-mixNumber$1(j,_e,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:o}=this.getProps(),{projection:a}=this.visualElement;if(!isRefObject(o)||!a||!this.constraints)return;this.stopAnimation();const _={x:0,y:0};eachAxis(j=>{const _e=this.getAxisMotionValue(j);if(_e&&this.constraints!==!1){const et=_e.get();_[j]=calcOrigin({min:et,max:et},this.constraints[j])}});const{transformTemplate:$}=this.visualElement.getProps();this.visualElement.current.style.transform=$?$({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),eachAxis(j=>{if(!shouldDrag(j,s,null))return;const _e=this.getAxisMotionValue(j),{min:et,max:tt}=this.constraints[j];_e.set(mixNumber$1(et,tt,_[j]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const s=this.visualElement.current,o=addPointerEvent(s,"pointerdown",et=>{const{drag:tt,dragListener:rt=!0}=this.getProps();tt&&rt&&this.start(et)}),a=()=>{const{dragConstraints:et}=this.getProps();isRefObject(et)&&et.current&&(this.constraints=this.resolveRefConstraints())},{projection:_}=this.visualElement,$=_.addEventListener("measure",a);_&&!_.layout&&(_.root&&_.root.updateScroll(),_.updateLayout()),frame.read(a);const j=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),_e=_.addEventListener("didUpdate",({delta:et,hasLayoutChanged:tt})=>{this.isDragging&&tt&&(eachAxis(rt=>{const it=this.getAxisMotionValue(rt);it&&(this.originPoint[rt]+=et[rt].translate,it.set(it.get()+et[rt].translate))}),this.visualElement.render())});return()=>{j(),o(),$(),_e&&_e()}}getProps(){const s=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:a=!1,dragPropagation:_=!1,dragConstraints:$=!1,dragElastic:j=defaultElastic,dragMomentum:_e=!0}=s;return{...s,drag:o,dragDirectionLock:a,dragPropagation:_,dragConstraints:$,dragElastic:j,dragMomentum:_e}}}function shouldDrag(i,s,o){return(s===!0||s===i)&&(o===null||o===i)}function getCurrentDirection(i,s=10){let o=null;return Math.abs(i.y)>s?o="y":Math.abs(i.x)>s&&(o="x"),o}class DragGesture extends Feature{constructor(s){super(s),this.removeGroupControls=noop$2,this.removeListeners=noop$2,this.controls=new VisualElementDragControls(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop$2}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=i=>(s,o)=>{i&&frame.postRender(()=>i(s,o))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop$2}onPointerDown(s){this.session=new PanSession(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:o,onPan:a,onPanEnd:_}=this.node.getProps();return{onSessionStart:asyncHandler(s),onStart:asyncHandler(o),onMove:a,onEnd:($,j)=>{delete this.session,_&&frame.postRender(()=>_($,j))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(i,s){return s.max===s.min?0:i/(s.max-s.min)*100}const correctBorderRadius={correct:(i,s)=>{if(!s.target)return i;if(typeof i=="string")if(px.test(i))i=parseFloat(i);else return i;const o=pixelsToPercent(i,s.target.x),a=pixelsToPercent(i,s.target.y);return`${o}% ${a}%`}},correctBoxShadow={correct:(i,{treeScale:s,projectionDelta:o})=>{const a=i,_=complex.parse(i);if(_.length>5)return a;const $=complex.createTransformer(i),j=typeof _[0]!="number"?1:0,_e=o.x.scale*s.x,et=o.y.scale*s.y;_[0+j]/=_e,_[1+j]/=et;const tt=mixNumber$1(_e,et,.5);return typeof _[2+j]=="number"&&(_[2+j]/=tt),typeof _[3+j]=="number"&&(_[3+j]/=tt),$(_)}};class MeasureLayoutWithContext extends reactExports.Component{componentDidMount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:a,layoutId:_}=this.props,{projection:$}=s;addScaleCorrector(defaultScaleCorrectors),$&&(o.group&&o.group.add($),a&&a.register&&_&&a.register($),$.root.didUpdate(),$.addEventListener("animationComplete",()=>{this.safeToRemove()}),$.setOptions({...$.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:o,visualElement:a,drag:_,isPresent:$}=this.props,j=a.projection;return j&&(j.isPresent=$,_||s.layoutDependency!==o||o===void 0?j.willUpdate():this.safeToRemove(),s.isPresent!==$&&($?j.promote():j.relegate()||frame.postRender(()=>{const _e=j.getStack();(!_e||!_e.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:s}=this.props.visualElement;s&&(s.root.didUpdate(),microtask.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:a}=this.props,{projection:_}=s;_&&(_.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(_),a&&a.deregister&&a.deregister(_))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function MeasureLayout(i){const[s,o]=usePresence(),a=reactExports.useContext(LayoutGroupContext);return jsxRuntimeExports.jsx(MeasureLayoutWithContext,{...i,layoutGroup:a,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:s,safeToRemove:o})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow};function animateSingleValue(i,s,o){const a=isMotionValue(i)?i:motionValue(i);return a.start(animateMotionValue("",a,s,o)),a.animation}function isSVGElement(i){return i instanceof SVGElement&&i.tagName!=="svg"}const compareByDepth=(i,s)=>i.depth-s.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(s){addUniqueItem(this.children,s),this.isDirty=!0}remove(s){removeItem(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(s)}}function delay(i,s){const o=time.now(),a=({timestamp:_})=>{const $=_-o;$>=s&&(cancelFrame(a),i($-s))};return frame.read(a,!0),()=>cancelFrame(a)}const borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=i=>typeof i=="string"?parseFloat(i):i,isPx=i=>typeof i=="number"||px.test(i);function mixValues(i,s,o,a,_,$){_?(i.opacity=mixNumber$1(0,o.opacity!==void 0?o.opacity:1,easeCrossfadeIn(a)),i.opacityExit=mixNumber$1(s.opacity!==void 0?s.opacity:1,0,easeCrossfadeOut(a))):$&&(i.opacity=mixNumber$1(s.opacity!==void 0?s.opacity:1,o.opacity!==void 0?o.opacity:1,a));for(let j=0;j<numBorders;j++){const _e=`border${borders[j]}Radius`;let et=getRadius(s,_e),tt=getRadius(o,_e);if(et===void 0&&tt===void 0)continue;et||(et=0),tt||(tt=0),et===0||tt===0||isPx(et)===isPx(tt)?(i[_e]=Math.max(mixNumber$1(asNumber(et),asNumber(tt),a),0),(percent.test(tt)||percent.test(et))&&(i[_e]+="%")):i[_e]=tt}(s.rotate||o.rotate)&&(i.rotate=mixNumber$1(s.rotate||0,o.rotate||0,a))}function getRadius(i,s){return i[s]!==void 0?i[s]:i.borderRadius}const easeCrossfadeIn=compress(0,.5,circOut),easeCrossfadeOut=compress(.5,.95,noop$2);function compress(i,s,o){return a=>a<i?0:a>s?1:o(progress(i,s,a))}function copyAxisInto(i,s){i.min=s.min,i.max=s.max}function copyBoxInto(i,s){copyAxisInto(i.x,s.x),copyAxisInto(i.y,s.y)}function copyAxisDeltaInto(i,s){i.translate=s.translate,i.scale=s.scale,i.originPoint=s.originPoint,i.origin=s.origin}function removePointDelta(i,s,o,a,_){return i-=s,i=scalePoint(i,1/o,a),_!==void 0&&(i=scalePoint(i,1/_,a)),i}function removeAxisDelta(i,s=0,o=1,a=.5,_,$=i,j=i){if(percent.test(s)&&(s=parseFloat(s),s=mixNumber$1(j.min,j.max,s/100)-j.min),typeof s!="number")return;let _e=mixNumber$1($.min,$.max,a);i===$&&(_e-=s),i.min=removePointDelta(i.min,s,o,_e,_),i.max=removePointDelta(i.max,s,o,_e,_)}function removeAxisTransforms(i,s,[o,a,_],$,j){removeAxisDelta(i,s[o],s[a],s[_],s.scale,$,j)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms(i,s,o,a){removeAxisTransforms(i.x,s,xKeys,o?o.x:void 0,a?a.x:void 0),removeAxisTransforms(i.y,s,yKeys,o?o.y:void 0,a?a.y:void 0)}function isAxisDeltaZero(i){return i.translate===0&&i.scale===1}function isDeltaZero(i){return isAxisDeltaZero(i.x)&&isAxisDeltaZero(i.y)}function axisEquals(i,s){return i.min===s.min&&i.max===s.max}function boxEquals(i,s){return axisEquals(i.x,s.x)&&axisEquals(i.y,s.y)}function axisEqualsRounded(i,s){return Math.round(i.min)===Math.round(s.min)&&Math.round(i.max)===Math.round(s.max)}function boxEqualsRounded(i,s){return axisEqualsRounded(i.x,s.x)&&axisEqualsRounded(i.y,s.y)}function aspectRatio(i){return calcLength(i.x)/calcLength(i.y)}function axisDeltaEquals(i,s){return i.translate===s.translate&&i.scale===s.scale&&i.originPoint===s.originPoint}class NodeStack{constructor(){this.members=[]}add(s){addUniqueItem(this.members,s),s.scheduleRender()}remove(s){if(removeItem(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(s){const o=this.members.findIndex(_=>s===_);if(o===0)return!1;let a;for(let _=o;_>=0;_--){const $=this.members[_];if($.isPresent!==!1){a=$;break}}return a?(this.promote(a),!0):!1}promote(s,o){const a=this.lead;if(s!==a&&(this.prevLead=a,this.lead=s,s.show(),a)){a.instance&&a.scheduleRender(),s.scheduleRender(),s.resumeFrom=a,o&&(s.resumeFrom.preserveOpacity=!0),a.snapshot&&(s.snapshot=a.snapshot,s.snapshot.latestValues=a.animationValues||a.latestValues),s.root&&s.root.isUpdating&&(s.isLayoutDirty=!0);const{crossfade:_}=s.options;_===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(s=>{const{options:o,resumingFrom:a}=s;o.onExitComplete&&o.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(s=>{s.instance&&s.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform(i,s,o){let a="";const _=i.x.translate/s.x,$=i.y.translate/s.y,j=(o==null?void 0:o.z)||0;if((_||$||j)&&(a=`translate3d(${_}px, ${$}px, ${j}px) `),(s.x!==1||s.y!==1)&&(a+=`scale(${1/s.x}, ${1/s.y}) `),o){const{transformPerspective:tt,rotate:rt,rotateX:it,rotateY:nt,skewX:ut,skewY:ct}=o;tt&&(a=`perspective(${tt}px) ${a}`),rt&&(a+=`rotate(${rt}deg) `),it&&(a+=`rotateX(${it}deg) `),nt&&(a+=`rotateY(${nt}deg) `),ut&&(a+=`skewX(${ut}deg) `),ct&&(a+=`skewY(${ct}deg) `)}const _e=i.x.scale*s.x,et=i.y.scale*s.y;return(_e!==1||et!==1)&&(a+=`scale(${_e}, ${et})`),a||"none"}const metrics={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},isDebug=typeof window<"u"&&window.MotionDebug!==void 0,transformAxes=["","X","Y","Z"],hiddenVisibility={visibility:"hidden"},animationTarget=1e3;let id$1=0;function resetDistortingTransform(i,s,o,a){const{latestValues:_}=s;_[i]&&(o[i]=_[i],s.setStaticValue(i,0),a&&(a[i]=0))}function cancelTreeOptimisedTransformAnimations(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:s}=i.options;if(!s)return;const o=getOptimisedAppearId(s);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:_,layoutId:$}=i.options;window.MotionCancelOptimisedAnimation(o,"transform",frame,!(_||$))}const{parent:a}=i;a&&!a.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(a)}function createProjectionNode({attachResizeListener:i,defaultParent:s,measureScroll:o,checkIsScrollRoot:a,resetTransform:_}){return class{constructor(j={},_e=s==null?void 0:s()){this.id=id$1++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,isDebug&&(metrics.totalNodes=metrics.resolvedTargetDeltas=metrics.recalculatedProjection=0),this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),isDebug&&window.MotionDebug.record(metrics)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=j,this.root=_e?_e.root||_e:this,this.path=_e?[..._e.path,_e]:[],this.parent=_e,this.depth=_e?_e.depth+1:0;for(let et=0;et<this.path.length;et++)this.path[et].shouldResetTransform=!0;this.root===this&&(this.nodes=new FlatTree)}addEventListener(j,_e){return this.eventHandlers.has(j)||this.eventHandlers.set(j,new SubscriptionManager),this.eventHandlers.get(j).add(_e)}notifyListeners(j,..._e){const et=this.eventHandlers.get(j);et&&et.notify(..._e)}hasListeners(j){return this.eventHandlers.has(j)}mount(j,_e=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=isSVGElement(j),this.instance=j;const{layoutId:et,layout:tt,visualElement:rt}=this.options;if(rt&&!rt.current&&rt.mount(j),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),_e&&(tt||et)&&(this.isLayoutDirty=!0),i){let it;const nt=()=>this.root.updateBlockedByResize=!1;i(j,()=>{this.root.updateBlockedByResize=!0,it&&it(),it=delay(nt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}et&&this.root.registerSharedNode(et,this),this.options.animate!==!1&&rt&&(et||tt)&&this.addEventListener("didUpdate",({delta:it,hasLayoutChanged:nt,hasRelativeTargetChanged:ut,layout:ct})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const st=this.options.transition||rt.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:dt,onLayoutAnimationComplete:ot}=rt.getProps(),lt=!this.targetLayout||!boxEqualsRounded(this.targetLayout,ct)||ut,at=!nt&&ut;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||at||nt&&(lt||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(it,at);const ft={...getValueTransition(st,"layout"),onPlay:dt,onComplete:ot};(rt.shouldReduceMotion||this.options.layoutRoot)&&(ft.delay=0,ft.type=!1),this.startAnimation(ft)}else nt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=ct})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const j=this.getStack();j&&j.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetSkewAndRotation),this.animationId++)}getTransformTemplate(){const{visualElement:j}=this.options;return j&&j.getProps().transformTemplate}willUpdate(j=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cancelTreeOptimisedTransformAnimations(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let rt=0;rt<this.path.length;rt++){const it=this.path[rt];it.shouldResetTransform=!0,it.updateScroll("snapshot"),it.options.layoutRoot&&it.willUpdate(!1)}const{layoutId:_e,layout:et}=this.options;if(_e===void 0&&!et)return;const tt=this.getTransformTemplate();this.prevTransformTemplateValue=tt?tt(this.latestValues,""):void 0,this.updateSnapshot(),j&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(clearMeasurements);return}this.isUpdating||this.nodes.forEach(clearIsLayoutDirty),this.isUpdating=!1,this.nodes.forEach(resetTransformStyle),this.nodes.forEach(updateLayout),this.nodes.forEach(notifyLayoutUpdate),this.clearAllSnapshots();const _e=time.now();frameData.delta=clamp(0,1e3/60,_e-frameData.timestamp),frameData.timestamp=_e,frameData.isProcessing=!0,frameSteps.update.process(frameData),frameSteps.preRender.process(frameData),frameSteps.render.process(frameData),frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,microtask.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,frame.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let et=0;et<this.path.length;et++)this.path[et].updateScroll();const j=this.layout;this.layout=this.measure(!1),this.layoutCorrected=createBox(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:_e}=this.options;_e&&_e.notify("LayoutMeasure",this.layout.layoutBox,j?j.layoutBox:void 0)}updateScroll(j="measure"){let _e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===j&&(_e=!1),_e){const et=a(this.instance);this.scroll={animationId:this.root.animationId,phase:j,isRoot:et,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:et}}}resetTransform(){if(!_)return;const j=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,_e=this.projectionDelta&&!isDeltaZero(this.projectionDelta),et=this.getTransformTemplate(),tt=et?et(this.latestValues,""):void 0,rt=tt!==this.prevTransformTemplateValue;j&&(_e||hasTransform(this.latestValues)||rt)&&(_(this.instance,tt),this.shouldResetTransform=!1,this.scheduleRender())}measure(j=!0){const _e=this.measurePageBox();let et=this.removeElementScroll(_e);return j&&(et=this.removeTransform(et)),roundBox(et),{animationId:this.root.animationId,measuredBox:_e,layoutBox:et,latestValues:{},source:this.id}}measurePageBox(){var j;const{visualElement:_e}=this.options;if(!_e)return createBox();const et=_e.measureViewportBox();if(!(((j=this.scroll)===null||j===void 0?void 0:j.wasRoot)||this.path.some(checkNodeWasScrollRoot))){const{scroll:rt}=this.root;rt&&(translateAxis(et.x,rt.offset.x),translateAxis(et.y,rt.offset.y))}return et}removeElementScroll(j){var _e;const et=createBox();if(copyBoxInto(et,j),!((_e=this.scroll)===null||_e===void 0)&&_e.wasRoot)return et;for(let tt=0;tt<this.path.length;tt++){const rt=this.path[tt],{scroll:it,options:nt}=rt;rt!==this.root&&it&&nt.layoutScroll&&(it.wasRoot&&copyBoxInto(et,j),translateAxis(et.x,it.offset.x),translateAxis(et.y,it.offset.y))}return et}applyTransform(j,_e=!1){const et=createBox();copyBoxInto(et,j);for(let tt=0;tt<this.path.length;tt++){const rt=this.path[tt];!_e&&rt.options.layoutScroll&&rt.scroll&&rt!==rt.root&&transformBox(et,{x:-rt.scroll.offset.x,y:-rt.scroll.offset.y}),hasTransform(rt.latestValues)&&transformBox(et,rt.latestValues)}return hasTransform(this.latestValues)&&transformBox(et,this.latestValues),et}removeTransform(j){const _e=createBox();copyBoxInto(_e,j);for(let et=0;et<this.path.length;et++){const tt=this.path[et];if(!tt.instance||!hasTransform(tt.latestValues))continue;hasScale(tt.latestValues)&&tt.updateSnapshot();const rt=createBox(),it=tt.measurePageBox();copyBoxInto(rt,it),removeBoxTransforms(_e,tt.latestValues,tt.snapshot?tt.snapshot.layoutBox:void 0,rt)}return hasTransform(this.latestValues)&&removeBoxTransforms(_e,this.latestValues),_e}setTargetDelta(j){this.targetDelta=j,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(j){this.options={...this.options,...j,crossfade:j.crossfade!==void 0?j.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(j=!1){var _e;const et=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=et.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=et.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=et.isSharedProjectionDirty);const tt=!!this.resumingFrom||this!==et;if(!(j||tt&&this.isSharedProjectionDirty||this.isProjectionDirty||!((_e=this.parent)===null||_e===void 0)&&_e.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:it,layoutId:nt}=this.options;if(!(!this.layout||!(it||nt))){if(this.resolvedRelativeTargetAt=frameData.timestamp,!this.targetDelta&&!this.relativeTarget){const ut=this.getClosestProjectingParent();ut&&ut.layout&&this.animationProgress!==1?(this.relativeParent=ut,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.layout.layoutBox,ut.layout.layoutBox),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=createBox(),this.targetWithTransforms=createBox()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),calcRelativeBox(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):copyBoxInto(this.target,this.layout.layoutBox),applyBoxDelta(this.target,this.targetDelta)):copyBoxInto(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const ut=this.getClosestProjectingParent();ut&&!!ut.resumingFrom==!!this.resumingFrom&&!ut.options.layoutScroll&&ut.target&&this.animationProgress!==1?(this.relativeParent=ut,this.forceRelativeParentToResolveTarget(),this.relativeTarget=createBox(),this.relativeTargetOrigin=createBox(),calcRelativePosition(this.relativeTargetOrigin,this.target,ut.target),copyBoxInto(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}isDebug&&metrics.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hasScale(this.parent.latestValues)||has2DTranslate(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var j;const _e=this.getLead(),et=!!this.resumingFrom||this!==_e;let tt=!0;if((this.isProjectionDirty||!((j=this.parent)===null||j===void 0)&&j.isProjectionDirty)&&(tt=!1),et&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(tt=!1),this.resolvedRelativeTargetAt===frameData.timestamp&&(tt=!1),tt)return;const{layout:rt,layoutId:it}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(rt||it))return;copyBoxInto(this.layoutCorrected,this.layout.layoutBox);const nt=this.treeScale.x,ut=this.treeScale.y;applyTreeDeltas(this.layoutCorrected,this.treeScale,this.path,et),_e.layout&&!_e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(_e.target=_e.layout.layoutBox,_e.targetWithTransforms=createBox());const{target:ct}=_e;if(!ct){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(copyAxisDeltaInto(this.prevProjectionDelta.x,this.projectionDelta.x),copyAxisDeltaInto(this.prevProjectionDelta.y,this.projectionDelta.y)),calcBoxDelta(this.projectionDelta,this.layoutCorrected,ct,this.latestValues),(this.treeScale.x!==nt||this.treeScale.y!==ut||!axisDeltaEquals(this.projectionDelta.x,this.prevProjectionDelta.x)||!axisDeltaEquals(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",ct)),isDebug&&metrics.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(j=!0){var _e;if((_e=this.options.visualElement)===null||_e===void 0||_e.scheduleRender(),j){const et=this.getStack();et&&et.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=createDelta(),this.projectionDelta=createDelta(),this.projectionDeltaWithTransform=createDelta()}setAnimationOrigin(j,_e=!1){const et=this.snapshot,tt=et?et.latestValues:{},rt={...this.latestValues},it=createDelta();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!_e;const nt=createBox(),ut=et?et.source:void 0,ct=this.layout?this.layout.source:void 0,st=ut!==ct,dt=this.getStack(),ot=!dt||dt.members.length<=1,lt=!!(st&&!ot&&this.options.crossfade===!0&&!this.path.some(hasOpacityCrossfade));this.animationProgress=0;let at;this.mixTargetDelta=ft=>{const ht=ft/1e3;mixAxisDelta(it.x,j.x,ht),mixAxisDelta(it.y,j.y,ht),this.setTargetDelta(it),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(nt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,nt,ht),at&&boxEquals(this.relativeTarget,at)&&(this.isProjectionDirty=!1),at||(at=createBox()),copyBoxInto(at,this.relativeTarget)),st&&(this.animationValues=rt,mixValues(rt,tt,this.latestValues,ht,lt,ot)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=ht},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(j){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.currentAnimation=animateSingleValue(0,animationTarget,{...j,onUpdate:_e=>{this.mixTargetDelta(_e),j.onUpdate&&j.onUpdate(_e)},onComplete:()=>{j.onComplete&&j.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const j=this.getStack();j&&j.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const j=this.getLead();let{targetWithTransforms:_e,target:et,layout:tt,latestValues:rt}=j;if(!(!_e||!et||!tt)){if(this!==j&&this.layout&&tt&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,tt.layoutBox)){et=this.target||createBox();const it=calcLength(this.layout.layoutBox.x);et.x.min=j.target.x.min,et.x.max=et.x.min+it;const nt=calcLength(this.layout.layoutBox.y);et.y.min=j.target.y.min,et.y.max=et.y.min+nt}copyBoxInto(_e,et),transformBox(_e,rt),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,_e,rt)}}registerSharedNode(j,_e){this.sharedNodes.has(j)||this.sharedNodes.set(j,new NodeStack),this.sharedNodes.get(j).add(_e);const tt=_e.options.initialPromotionConfig;_e.promote({transition:tt?tt.transition:void 0,preserveFollowOpacity:tt&&tt.shouldPreserveFollowOpacity?tt.shouldPreserveFollowOpacity(_e):void 0})}isLead(){const j=this.getStack();return j?j.lead===this:!0}getLead(){var j;const{layoutId:_e}=this.options;return _e?((j=this.getStack())===null||j===void 0?void 0:j.lead)||this:this}getPrevLead(){var j;const{layoutId:_e}=this.options;return _e?(j=this.getStack())===null||j===void 0?void 0:j.prevLead:void 0}getStack(){const{layoutId:j}=this.options;if(j)return this.root.sharedNodes.get(j)}promote({needsReset:j,transition:_e,preserveFollowOpacity:et}={}){const tt=this.getStack();tt&&tt.promote(this,et),j&&(this.projectionDelta=void 0,this.needsReset=!0),_e&&this.setOptions({transition:_e})}relegate(){const j=this.getStack();return j?j.relegate(this):!1}resetSkewAndRotation(){const{visualElement:j}=this.options;if(!j)return;let _e=!1;const{latestValues:et}=j;if((et.z||et.rotate||et.rotateX||et.rotateY||et.rotateZ||et.skewX||et.skewY)&&(_e=!0),!_e)return;const tt={};et.z&&resetDistortingTransform("z",j,tt,this.animationValues);for(let rt=0;rt<transformAxes.length;rt++)resetDistortingTransform(`rotate${transformAxes[rt]}`,j,tt,this.animationValues),resetDistortingTransform(`skew${transformAxes[rt]}`,j,tt,this.animationValues);j.render();for(const rt in tt)j.setStaticValue(rt,tt[rt]),this.animationValues&&(this.animationValues[rt]=tt[rt]);j.scheduleRender()}getProjectionStyles(j){var _e,et;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hiddenVisibility;const tt={visibility:""},rt=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,tt.opacity="",tt.pointerEvents=resolveMotionValue(j==null?void 0:j.pointerEvents)||"",tt.transform=rt?rt(this.latestValues,""):"none",tt;const it=this.getLead();if(!this.projectionDelta||!this.layout||!it.target){const st={};return this.options.layoutId&&(st.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,st.pointerEvents=resolveMotionValue(j==null?void 0:j.pointerEvents)||""),this.hasProjected&&!hasTransform(this.latestValues)&&(st.transform=rt?rt({},""):"none",this.hasProjected=!1),st}const nt=it.animationValues||it.latestValues;this.applyTransformsToTarget(),tt.transform=buildProjectionTransform(this.projectionDeltaWithTransform,this.treeScale,nt),rt&&(tt.transform=rt(nt,tt.transform));const{x:ut,y:ct}=this.projectionDelta;tt.transformOrigin=`${ut.origin*100}% ${ct.origin*100}% 0`,it.animationValues?tt.opacity=it===this?(et=(_e=nt.opacity)!==null&&_e!==void 0?_e:this.latestValues.opacity)!==null&&et!==void 0?et:1:this.preserveOpacity?this.latestValues.opacity:nt.opacityExit:tt.opacity=it===this?nt.opacity!==void 0?nt.opacity:"":nt.opacityExit!==void 0?nt.opacityExit:0;for(const st in scaleCorrectors){if(nt[st]===void 0)continue;const{correct:dt,applyTo:ot}=scaleCorrectors[st],lt=tt.transform==="none"?nt[st]:dt(nt[st],it);if(ot){const at=ot.length;for(let ft=0;ft<at;ft++)tt[ot[ft]]=lt}else tt[st]=lt}return this.options.layoutId&&(tt.pointerEvents=it===this?resolveMotionValue(j==null?void 0:j.pointerEvents)||"":"none"),tt}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(j=>{var _e;return(_e=j.currentAnimation)===null||_e===void 0?void 0:_e.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(i){i.updateLayout()}function notifyLayoutUpdate(i){var s;const o=((s=i.resumeFrom)===null||s===void 0?void 0:s.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&o&&i.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:_}=i.layout,{animationType:$}=i.options,j=o.source!==i.layout.source;$==="size"?eachAxis(it=>{const nt=j?o.measuredBox[it]:o.layoutBox[it],ut=calcLength(nt);nt.min=a[it].min,nt.max=nt.min+ut}):shouldAnimatePositionOnly($,o.layoutBox,a)&&eachAxis(it=>{const nt=j?o.measuredBox[it]:o.layoutBox[it],ut=calcLength(a[it]);nt.max=nt.min+ut,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[it].max=i.relativeTarget[it].min+ut)});const _e=createDelta();calcBoxDelta(_e,a,o.layoutBox);const et=createDelta();j?calcBoxDelta(et,i.applyTransform(_,!0),o.measuredBox):calcBoxDelta(et,a,o.layoutBox);const tt=!isDeltaZero(_e);let rt=!1;if(!i.resumeFrom){const it=i.getClosestProjectingParent();if(it&&!it.resumeFrom){const{snapshot:nt,layout:ut}=it;if(nt&&ut){const ct=createBox();calcRelativePosition(ct,o.layoutBox,nt.layoutBox);const st=createBox();calcRelativePosition(st,a,ut.layoutBox),boxEqualsRounded(ct,st)||(rt=!0),it.options.layoutRoot&&(i.relativeTarget=st,i.relativeTargetOrigin=ct,i.relativeParent=it)}}}i.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:et,layoutDelta:_e,hasLayoutChanged:tt,hasRelativeTargetChanged:rt})}else if(i.isLead()){const{onExitComplete:a}=i.options;a&&a()}i.options.transition=void 0}function propagateDirtyNodes(i){isDebug&&metrics.totalNodes++,i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function cleanDirtyNodes(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function clearSnapshot(i){i.clearSnapshot()}function clearMeasurements(i){i.clearMeasurements()}function clearIsLayoutDirty(i){i.isLayoutDirty=!1}function resetTransformStyle(i){const{visualElement:s}=i.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),i.resetTransform()}function finishAnimation(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function resolveTargetDelta(i){i.resolveTargetDelta()}function calcProjection(i){i.calcProjection()}function resetSkewAndRotation(i){i.resetSkewAndRotation()}function removeLeadSnapshots(i){i.removeLeadSnapshot()}function mixAxisDelta(i,s,o){i.translate=mixNumber$1(s.translate,0,o),i.scale=mixNumber$1(s.scale,1,o),i.origin=s.origin,i.originPoint=s.originPoint}function mixAxis(i,s,o,a){i.min=mixNumber$1(s.min,o.min,a),i.max=mixNumber$1(s.max,o.max,a)}function mixBox(i,s,o,a){mixAxis(i.x,s.x,o.x,a),mixAxis(i.y,s.y,o.y,a)}function hasOpacityCrossfade(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop$2;function roundAxis(i){i.min=roundPoint(i.min),i.max=roundPoint(i.max)}function roundBox(i){roundAxis(i.x),roundAxis(i.y)}function shouldAnimatePositionOnly(i,s,o){return i==="position"||i==="preserve-aspect"&&!isNear(aspectRatio(s),aspectRatio(o),.2)}function checkNodeWasScrollRoot(i){var s;return i!==i.root&&((s=i.scroll)===null||s===void 0?void 0:s.wasRoot)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:(i,s)=>addDomEvent(i,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const i=new DocumentProjectionNode({});i.mount(window),i.setOptions({layoutScroll:!0}),rootProjectionNode.current=i}return rootProjectionNode.current},resetTransform:(i,s)=>{i.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}};function handleHoverEvent(i,s,o){const{props:a}=i;i.animationState&&a.whileHover&&i.animationState.setActive("whileHover",o==="Start");const _="onHover"+o,$=a[_];$&&frame.postRender(()=>$(s,extractEventInfo(s)))}class HoverGesture extends Feature{mount(){const{current:s}=this.node;s&&(this.unmount=hover(s,o=>(handleHoverEvent(this.node,o,"Start"),a=>handleHoverEvent(this.node,a,"End"))))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe$1(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function handlePressEvent(i,s,o){const{props:a}=i;i.animationState&&a.whileTap&&i.animationState.setActive("whileTap",o==="Start");const _="onTap"+(o==="End"?"":o),$=a[_];$&&frame.postRender(()=>$(s,extractEventInfo(s)))}class PressGesture extends Feature{mount(){const{current:s}=this.node;s&&(this.unmount=press(s,o=>(handlePressEvent(this.node,o,"Start"),(a,{success:_})=>handlePressEvent(this.node,a,_?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=i=>{const s=observerCallbacks.get(i.target);s&&s(i)},fireAllObserverCallbacks=i=>{i.forEach(fireObserverCallback)};function initIntersectionObserver({root:i,...s}){const o=i||document;observers.has(o)||observers.set(o,{});const a=observers.get(o),_=JSON.stringify(s);return a[_]||(a[_]=new IntersectionObserver(fireAllObserverCallbacks,{root:i,...s})),a[_]}function observeIntersection(i,s,o){const a=initIntersectionObserver(s);return observerCallbacks.set(i,o),a.observe(i),()=>{observerCallbacks.delete(i),a.unobserve(i)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:s={}}=this.node.getProps(),{root:o,margin:a,amount:_="some",once:$}=s,j={root:o?o.current:void 0,rootMargin:a,threshold:typeof _=="number"?_:thresholdNames[_]},_e=et=>{const{isIntersecting:tt}=et;if(this.isInView===tt||(this.isInView=tt,$&&!tt&&this.hasEnteredView))return;tt&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",tt);const{onViewportEnter:rt,onViewportLeave:it}=this.node.getProps(),nt=tt?rt:it;nt&&nt(et)};return observeIntersection(this.node.current,j,_e)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:o}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(s,o))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:i={}},{viewport:s={}}={}){return o=>i[o]!==s[o]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}},layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser$1)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),s=()=>prefersReducedMotion.current=i.matches;i.addListener(s),s()}else prefersReducedMotion.current=!1}const valueTypes=[...dimensionValueTypes,color,complex],findValueType=i=>valueTypes.find(testValueType(i)),visualElementStore=new WeakMap;function updateMotionValuesFromProps(i,s,o){for(const a in s){const _=s[a],$=o[a];if(isMotionValue(_))i.addValue(a,_);else if(isMotionValue($))i.addValue(a,motionValue(_,{owner:i}));else if($!==_)if(i.hasValue(a)){const j=i.getValue(a);j.liveStyle===!0?j.jump(_):j.hasAnimated||j.set(_)}else{const j=i.getStaticValue(a);i.addValue(a,motionValue(j!==void 0?j:_,{owner:i}))}}for(const a in o)s[a]===void 0&&i.removeValue(a);return s}const propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VisualElement{scrapeMotionValuesFromProps(s,o,a){return{}}constructor({parent:s,props:o,presenceContext:a,reducedMotionConfig:_,blockInitialAnimation:$,visualState:j},_e={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const ut=time.now();this.renderScheduledAt<ut&&(this.renderScheduledAt=ut,frame.render(this.render,!1,!0))};const{latestValues:et,renderState:tt,onUpdate:rt}=j;this.onUpdate=rt,this.latestValues=et,this.baseTarget={...et},this.initialValues=o.initial?{...et}:{},this.renderState=tt,this.parent=s,this.props=o,this.presenceContext=a,this.depth=s?s.depth+1:0,this.reducedMotionConfig=_,this.options=_e,this.blockInitialAnimation=!!$,this.isControllingVariants=isControllingVariants(o),this.isVariantNode=isVariantNode(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:it,...nt}=this.scrapeMotionValuesFromProps(o,{},this);for(const ut in nt){const ct=nt[ut];et[ut]!==void 0&&isMotionValue(ct)&&ct.set(et[ut],!1)}}mount(s){this.current=s,visualElementStore.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,a)=>this.bindToMotionValue(a,o)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){visualElementStore.delete(this.current),this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}bindToMotionValue(s,o){this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)();const a=transformProps.has(s),_=o.on("change",_e=>{this.latestValues[s]=_e,this.props.onUpdate&&frame.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),$=o.on("renderRequest",this.scheduleRender);let j;window.MotionCheckAppearSync&&(j=window.MotionCheckAppearSync(this,s,o)),this.valueSubscriptions.set(s,()=>{_(),$(),j&&j(),o.owner&&o.stop()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in featureDefinitions){const o=featureDefinitions[s];if(!o)continue;const{isEnabled:a,Feature:_}=o;if(!this.features[s]&&_&&a(this.props)&&(this.features[s]=new _(this)),this.features[s]){const $=this.features[s];$.isMounted?$.update():($.mount(),$.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,o){this.latestValues[s]=o}update(s,o){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<propEventHandlers.length;a++){const _=propEventHandlers[a];this.propEventSubscriptions[_]&&(this.propEventSubscriptions[_](),delete this.propEventSubscriptions[_]);const $="on"+_,j=s[$];j&&(this.propEventSubscriptions[_]=this.on(_,j))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(s,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(s){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(s),()=>o.variantChildren.delete(s)}addValue(s,o){const a=this.values.get(s);o!==a&&(a&&this.removeValue(s),this.bindToMotionValue(s,o),this.values.set(s,o),this.latestValues[s]=o.get())}removeValue(s){this.values.delete(s);const o=this.valueSubscriptions.get(s);o&&(o(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,o){if(this.props.values&&this.props.values[s])return this.props.values[s];let a=this.values.get(s);return a===void 0&&o!==void 0&&(a=motionValue(o===null?void 0:o,{owner:this}),this.addValue(s,a)),a}readValue(s,o){var a;let _=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:(a=this.getBaseTargetFromProps(this.props,s))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,s,this.options);return _!=null&&(typeof _=="string"&&(isNumericalString(_)||isZeroValueString(_))?_=parseFloat(_):!findValueType(_)&&complex.test(o)&&(_=getAnimatableNone(s,o)),this.setBaseTarget(s,isMotionValue(_)?_.get():_)),isMotionValue(_)?_.get():_}setBaseTarget(s,o){this.baseTarget[s]=o}getBaseTarget(s){var o;const{initial:a}=this.props;let _;if(typeof a=="string"||typeof a=="object"){const j=resolveVariantFromProps(this.props,a,(o=this.presenceContext)===null||o===void 0?void 0:o.custom);j&&(_=j[s])}if(a&&_!==void 0)return _;const $=this.getBaseTargetFromProps(this.props,s);return $!==void 0&&!isMotionValue($)?$:this.initialValues[s]!==void 0&&_===void 0?void 0:this.baseTarget[s]}on(s,o){return this.events[s]||(this.events[s]=new SubscriptionManager),this.events[s].add(o)}notify(s,...o){this.events[s]&&this.events[s].notify(...o)}}class DOMVisualElement extends VisualElement{constructor(){super(...arguments),this.KeyframeResolver=DOMKeyframesResolver}sortInstanceNodePosition(s,o){return s.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(s,o){return s.style?s.style[o]:void 0}removeValueFromRenderState(s,{vars:o,style:a}){delete o[s],delete a[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;isMotionValue(s)&&(this.childSubscription=s.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}function getComputedStyle$1(i){return window.getComputedStyle(i)}class HTMLVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=renderHTML}readValueFromInstance(s,o){if(transformProps.has(o)){const a=getDefaultValueType(o);return a&&a.default||0}else{const a=getComputedStyle$1(s),_=(isCSSVariableName(o)?a.getPropertyValue(o):a[o])||0;return typeof _=="string"?_.trim():_}}measureInstanceViewportBox(s,{transformPagePoint:o}){return measureViewportBox(s,o)}build(s,o,a){buildHTMLStyles(s,o,a.transformTemplate)}scrapeMotionValuesFromProps(s,o,a){return scrapeMotionValuesFromProps$1(s,o,a)}}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=createBox}getBaseTargetFromProps(s,o){return s[o]}readValueFromInstance(s,o){if(transformProps.has(o)){const a=getDefaultValueType(o);return a&&a.default||0}return o=camelCaseAttributes.has(o)?o:camelToDash(o),s.getAttribute(o)}scrapeMotionValuesFromProps(s,o,a){return scrapeMotionValuesFromProps(s,o,a)}build(s,o,a){buildSVGAttrs(s,o,this.isSVGTag,a.transformTemplate)}renderInstance(s,o,a,_){renderSVG(s,o,a,_)}mount(s){this.isSVGTag=isSVGTag(s.tagName),super.mount(s)}}const createDomVisualElement=(i,s)=>isSVGComponent(i)?new SVGVisualElement(s):new HTMLVisualElement(s,{allowProjection:i!==reactExports.Fragment}),createMotionComponent=createMotionComponentFactory({...animations,...gestureAnimations,...drag,...layout},createDomVisualElement),motion=createDOMMotionComponentProxy(createMotionComponent),findById=(i,s)=>i.find(o=>o.id===s);function findToast(i,s){const o=getToastPosition(i,s),a=o?i[o].findIndex(_=>_.id===s):-1;return{position:o,index:a}}function getToastPosition(i,s){for(const[o,a]of Object.entries(i))if(findById(a,s))return o}function getToastStyle(i){const s=i.includes("right"),o=i.includes("left");let a="center";return s&&(a="flex-end"),o&&(a="flex-start"),{display:"flex",flexDirection:"column",alignItems:a}}function getToastListStyle(i){const o=i==="top"||i==="bottom"?"0 auto":void 0,a=i.includes("top")?"env(safe-area-inset-top, 0px)":void 0,_=i.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,$=i.includes("left")?void 0:"env(safe-area-inset-right, 0px)",j=i.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:o,top:a,bottom:_,right:$,left:j}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize(function(i){return reactPropsRegex.test(i)||i.charCodeAt(0)===111&&i.charCodeAt(1)===110&&i.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(s){return s!=="theme"},getDefaultShouldForwardProp=function(s){return typeof s=="string"&&s.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(s,o,a){var _;if(o){var $=o.shouldForwardProp;_=s.__emotion_forwardProp&&$?function(j){return s.__emotion_forwardProp(j)&&$(j)}:$}return typeof _!="function"&&a&&(_=s.__emotion_forwardProp),_},Insertion=function(s){var o=s.cache,a=s.serialized,_=s.isStringTag;return registerStyles(o,a,_),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(o,a,_)}),null},createStyled=function i(s,o){var a=s.__emotion_real===s,_=a&&s.__emotion_base||s,$,j;o!==void 0&&($=o.label,j=o.target);var _e=composeShouldForwardProps(s,o,a),et=_e||getDefaultShouldForwardProp(_),tt=!et("as");return function(){var rt=arguments,it=a&&s.__emotion_styles!==void 0?s.__emotion_styles.slice(0):[];if($!==void 0&&it.push("label:"+$+";"),rt[0]==null||rt[0].raw===void 0)it.push.apply(it,rt);else{var nt=rt[0];it.push(nt[0]);for(var ut=rt.length,ct=1;ct<ut;ct++)it.push(rt[ct],nt[ct])}var st=withEmotionCache(function(dt,ot,lt){var at=tt&&dt.as||_,ft="",ht=[],mt=dt;if(dt.theme==null){mt={};for(var gt in dt)mt[gt]=dt[gt];mt.theme=reactExports.useContext(ThemeContext)}typeof dt.className=="string"?ft=getRegisteredStyles(ot.registered,ht,dt.className):dt.className!=null&&(ft=dt.className+" ");var vt=serializeStyles(it.concat(ht),ot.registered,mt);ft+=ot.key+"-"+vt.name,j!==void 0&&(ft+=" "+j);var St=tt&&_e===void 0?getDefaultShouldForwardProp(at):et,wt={};for(var Pt in dt)tt&&Pt==="as"||St(Pt)&&(wt[Pt]=dt[Pt]);return wt.className=ft,lt&&(wt.ref=lt),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion,{cache:ot,serialized:vt,isStringTag:typeof at=="string"}),reactExports.createElement(at,wt))});return st.displayName=$!==void 0?$:"Styled("+(typeof _=="string"?_:_.displayName||_.name||"Component")+")",st.defaultProps=s.defaultProps,st.__emotion_real=st,st.__emotion_base=_,st.__emotion_styles=it,st.__emotion_forwardProp=_e,Object.defineProperty(st,"toString",{value:function(){return"."+j}}),st.withComponent=function(dt,ot){var lt=i(dt,_extends$4({},o,ot,{shouldForwardProp:composeShouldForwardProps(st,ot,!0)}));return lt.apply(void 0,it)},st}},tags=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],newStyled=createStyled.bind(null);tags.forEach(function(i){newStyled[i]=newStyled(i)});const allPropNames=new Set([...propNames,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),validHTMLProps=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function shouldForwardProp(i){return(validHTMLProps.has(i)||!allPropNames.has(i))&&i[0]!=="_"}const emotion_styled=interopDefault(newStyled),toCSSObject=({baseStyle:i})=>s=>{const{theme:o,css:a,__css:_,sx:$,...j}=s,[_e]=splitProps(j,isStyleProp),et=runIfFn$1(i,s),tt=assignAfter({},_,et,compact(_e),$),rt=css$2(tt)(s.theme);return a?[rt,a]:rt};function styled(i,s){const{baseStyle:o,...a}=s??{};a.shouldForwardProp||(a.shouldForwardProp=shouldForwardProp);const _=toCSSObject({baseStyle:o}),$=emotion_styled(i,a)(_);return reactExports.forwardRef(function(et,tt){const{children:rt,...it}=et,{colorMode:nt,forced:ut}=useColorMode(),ct=ut?nt:void 0;return reactExports.createElement($,{ref:tt,"data-theme":ct,...it},rt)})}function factory(){const i=new Map;return new Proxy(styled,{apply(s,o,a){return styled(...a)},get(s,o){return i.has(o)||i.set(o,styled(o)),i.get(o)}})}const chakra=factory(),toastMotionVariants={initial:i=>{const{position:s}=i,o=["top","bottom"].includes(s)?"y":"x";let a=["top-right","bottom-right"].includes(s)?1:-1;return s==="bottom"&&(a=1),{opacity:0,[o]:a*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},ToastComponent=reactExports.memo(i=>{const{id:s,message:o,onCloseComplete:a,onRequestRemove:_,requestClose:$=!1,position:j="bottom",duration:_e=5e3,containerStyle:et,motionVariants:tt=toastMotionVariants,toastSpacing:rt="0.5rem"}=i,[it,nt]=reactExports.useState(_e),ut=useIsPresent();useUpdateEffect(()=>{ut||a==null||a()},[ut]),useUpdateEffect(()=>{nt(_e)},[_e]);const ct=()=>nt(null),st=()=>nt(_e),dt=()=>{ut&&_()};reactExports.useEffect(()=>{ut&&$&&_()},[ut,$,_]),useTimeout(dt,it);const ot=reactExports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:rt,...et}),[et,rt]),lt=reactExports.useMemo(()=>getToastStyle(j),[j]);return jsxRuntimeExports.jsx(motion.div,{layout:!0,className:"chakra-toast",variants:tt,initial:"initial",animate:"animate",exit:"exit",onHoverStart:ct,onHoverEnd:st,custom:{position:j},style:lt,children:jsxRuntimeExports.jsx(chakra.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:ot,children:runIfFn$1(o,{id:s,onClose:dt})})})});ToastComponent.displayName="ToastComponent";function forwardRef(i){return reactExports.forwardRef(i)}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){if(i.constructor!==s.constructor)return!1;var o,a,_;if(Array.isArray(i)){if(o=i.length,o!=s.length)return!1;for(a=o;a--!==0;)if(!equal(i[a],s[a]))return!1;return!0}var $;if(hasMap&&i instanceof Map&&s instanceof Map){if(i.size!==s.size)return!1;for($=i.entries();!(a=$.next()).done;)if(!s.has(a.value[0]))return!1;for($=i.entries();!(a=$.next()).done;)if(!equal(a.value[1],s.get(a.value[0])))return!1;return!0}if(hasSet&&i instanceof Set&&s instanceof Set){if(i.size!==s.size)return!1;for($=i.entries();!(a=$.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(s)){if(o=i.length,o!=s.length)return!1;for(a=o;a--!==0;)if(i[a]!==s[a])return!1;return!0}if(i.constructor===RegExp)return i.source===s.source&&i.flags===s.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof s.valueOf=="function")return i.valueOf()===s.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof s.toString=="function")return i.toString()===s.toString();if(_=Object.keys(i),o=_.length,o!==Object.keys(s).length)return!1;for(a=o;a--!==0;)if(!Object.prototype.hasOwnProperty.call(s,_[a]))return!1;if(hasElementType&&i instanceof Element)return!1;for(a=o;a--!==0;)if(!((_[a]==="_owner"||_[a]==="__v"||_[a]==="__o")&&i.$$typeof)&&!equal(i[_[a]],s[_[a]]))return!1;return!0}return i!==i&&s!==s}var reactFastCompare=function(s,o){try{return equal(s,o)}catch(a){if((a.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw a}};const isEqual$1=getDefaultExportFromCjs(reactFastCompare);function useTheme(){const i=reactExports.useContext(ThemeContext);if(!i)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return i}function useChakra(){const i=useColorMode(),s=useTheme();return{...i,theme:s}}function getBreakpointValue(i,s,o){if(s==null)return s;const a=_=>{var $,j;return(j=($=i.__breakpoints)==null?void 0:$.asArray)==null?void 0:j[_]};return a(s)??a(o)??o}function getTokenValue(i,s,o){if(s==null)return s;const a=_=>{var $,j;return(j=($=i.__cssMap)==null?void 0:$[_])==null?void 0:j.value};return a(s)??a(o)??o}function useToken(i,s,o){const a=useTheme();return getToken(i,s,o)(a)}function getToken(i,s,o){const a=Array.isArray(s)?s:[s],_=Array.isArray(o)?o:[o];return $=>{const j=_.filter(Boolean),_e=a.map((et,tt)=>{if(i==="breakpoints")return getBreakpointValue($,et,j[tt]??et);const rt=`${i}.${et}`;return getTokenValue($,rt,j[tt]??et)});return Array.isArray(s)?_e:_e[0]}}function useStyleConfigImpl(i,s={}){const{styleConfig:o,...a}=s,{theme:_,colorMode:$}=useChakra(),j=i?memoizedGet$1(_,`components.${i}`):void 0,_e=o||j,et=mergeWith({theme:_,colorMode:$},(_e==null?void 0:_e.defaultProps)??{},compact(omit(a,["children"])),(rt,it)=>rt?void 0:it),tt=reactExports.useRef({});if(_e){const it=resolveStyleConfig(_e)(et);isEqual$1(tt.current,it)||(tt.current=it)}return tt.current}function useStyleConfig(i,s={}){return useStyleConfigImpl(i,s)}function useMultiStyleConfig(i,s={}){return useStyleConfigImpl(i,s)}const fallbackIcon={path:jsxRuntimeExports.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),jsxRuntimeExports.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Icon=forwardRef((i,s)=>{const{as:o,viewBox:a,color:_="currentColor",focusable:$=!1,children:j,className:_e,__css:et,...tt}=i,rt=cx("chakra-icon",_e),it=useStyleConfig("Icon",i),nt={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:_,...et,...it},ut={ref:s,focusable:$,className:rt,__css:nt},ct=a??fallbackIcon.viewBox;if(o&&typeof o!="string")return jsxRuntimeExports.jsx(chakra.svg,{as:o,...ut,...tt});const st=j??fallbackIcon.path;return jsxRuntimeExports.jsx(chakra.svg,{verticalAlign:"middle",viewBox:ct,...ut,...tt,children:st})});Icon.displayName="Icon";function CheckIcon(i){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...i,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function InfoIcon(i){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...i,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function WarningIcon(i){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...i,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const spin=keyframes$1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Spinner=forwardRef((i,s)=>{const o=useStyleConfig("Spinner",i),{label:a="Loading...",thickness:_="2px",speed:$="0.45s",emptyColor:j="transparent",className:_e,...et}=omitThemingProps(i),tt=cx("chakra-spinner",_e),rt={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:_,borderBottomColor:j,borderLeftColor:j,animation:`${spin} ${$} linear infinite`,...o};return jsxRuntimeExports.jsx(chakra.div,{ref:s,__css:rt,className:tt,...et,children:a&&jsxRuntimeExports.jsx(chakra.span,{srOnly:!0,children:a})})});Spinner.displayName="Spinner";const[AlertProvider,useAlertContext]=createContext({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[AlertStylesProvider,useAlertStyles]=createContext({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),STATUSES={info:{icon:InfoIcon,colorScheme:"blue"},warning:{icon:WarningIcon,colorScheme:"orange"},success:{icon:CheckIcon,colorScheme:"green"},error:{icon:WarningIcon,colorScheme:"red"},loading:{icon:Spinner,colorScheme:"blue"}};function getStatusColorScheme(i){return STATUSES[i].colorScheme}function getStatusIcon(i){return STATUSES[i].icon}const Alert=forwardRef(function(s,o){const{status:a="info",addRole:_=!0,...$}=omitThemingProps(s),j=s.colorScheme??getStatusColorScheme(a),_e=useMultiStyleConfig("Alert",{...s,colorScheme:j}),et={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",..._e.container};return jsxRuntimeExports.jsx(AlertProvider,{value:{status:a},children:jsxRuntimeExports.jsx(AlertStylesProvider,{value:_e,children:jsxRuntimeExports.jsx(chakra.div,{"data-status":a,role:_?"alert":void 0,ref:o,...$,className:cx("chakra-alert",s.className),__css:et})})})});Alert.displayName="Alert";function AlertIcon(i){const{status:s}=useAlertContext(),o=getStatusIcon(s),a=useAlertStyles(),_=s==="loading"?a.spinner:a.icon;return jsxRuntimeExports.jsx(chakra.span,{display:"inherit","data-status":s,...i,className:cx("chakra-alert__icon",i.className),__css:_,children:i.children||jsxRuntimeExports.jsx(o,{h:"100%",w:"100%"})})}AlertIcon.displayName="AlertIcon";const AlertTitle=forwardRef(function(s,o){const a=useAlertStyles(),{status:_}=useAlertContext();return jsxRuntimeExports.jsx(chakra.div,{ref:o,"data-status":_,...s,className:cx("chakra-alert__title",s.className),__css:a.title})});AlertTitle.displayName="AlertTitle";const AlertDescription=forwardRef(function(s,o){const{status:a}=useAlertContext(),_=useAlertStyles(),$={display:"inline",..._.description};return jsxRuntimeExports.jsx(chakra.div,{ref:o,"data-status":a,...s,className:cx("chakra-alert__desc",s.className),__css:$})});AlertDescription.displayName="AlertDescription";function CloseIcon(i){return jsxRuntimeExports.jsx(Icon,{focusable:"false","aria-hidden":!0,...i,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const CloseButton=forwardRef(function(s,o){const a=useStyleConfig("CloseButton",s),{children:_,isDisabled:$,__css:j,..._e}=omitThemingProps(s),et={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return jsxRuntimeExports.jsx(chakra.button,{type:"button","aria-label":"Close",ref:o,disabled:$,__css:{...et,...a,...j},..._e,children:_||jsxRuntimeExports.jsx(CloseIcon,{width:"1em",height:"1em"})})});CloseButton.displayName="CloseButton";const Toast=i=>{const{status:s,variant:o="solid",id:a,title:_,isClosable:$,onClose:j,description:_e,colorScheme:et,icon:tt}=i,rt=a?{root:`toast-${a}`,title:`toast-${a}-title`,description:`toast-${a}-description`}:void 0;return jsxRuntimeExports.jsxs(Alert,{addRole:!1,status:s,variant:o,id:rt==null?void 0:rt.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:et,children:[jsxRuntimeExports.jsx(AlertIcon,{children:tt}),jsxRuntimeExports.jsxs(chakra.div,{flex:"1",maxWidth:"100%",children:[_&&jsxRuntimeExports.jsx(AlertTitle,{id:rt==null?void 0:rt.title,children:_}),_e&&jsxRuntimeExports.jsx(AlertDescription,{id:rt==null?void 0:rt.description,display:"block",children:_e})]}),$&&jsxRuntimeExports.jsx(CloseButton,{size:"sm",onClick:j,position:"absolute",insetEnd:1,top:1})]})};function createRenderToast(i={}){const{render:s,toastComponent:o=Toast}=i;return _=>typeof s=="function"?s({..._,...i}):jsxRuntimeExports.jsx(o,{..._,...i})}const initialState={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},toastStore=createStore(initialState);function createStore(i){let s=i;const o=new Set,a=_=>{s=_(s),o.forEach($=>$())};return{getState:()=>s,subscribe:_=>(o.add(_),()=>{a(()=>i),o.delete(_)}),removeToast:(_,$)=>{a(j=>({...j,[$]:j[$].filter(_e=>_e.id!=_)}))},notify:(_,$)=>{const j=createToast(_,$),{position:_e,id:et}=j;return a(tt=>{const it=_e.includes("top")?[j,...tt[_e]??[]]:[...tt[_e]??[],j];return{...tt,[_e]:it}}),et},update:(_,$)=>{_&&a(j=>{const _e={...j},{position:et,index:tt}=findToast(_e,_);return et&&tt!==-1&&(_e[et][tt]={..._e[et][tt],...$,message:createRenderToast($)}),_e})},closeAll:({positions:_}={})=>{a($=>(_??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((et,tt)=>(et[tt]=$[tt].map(rt=>({...rt,requestClose:!0})),et),{...$}))},close:_=>{a($=>{const j=getToastPosition($,_);return j?{...$,[j]:$[j].map(_e=>_e.id==_?{..._e,requestClose:!0}:_e)}:$})},isActive:_=>!!findToast(toastStore.getState(),_).position}}let counter=0;function createToast(i,s={}){counter+=1;const o=s.id??counter,a=s.position??"bottom";return{id:o,message:i,position:a,duration:s.duration,onCloseComplete:s.onCloseComplete,onRequestRemove:()=>toastStore.removeToast(String(o),a),status:s.status,requestClose:!1,containerStyle:s.containerStyle}}var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(i){function s(pt,yt){var kt=pt.length;pt.push(yt);e:for(;0<kt;){var Et=kt-1>>>1,$t=pt[Et];if(0<_($t,yt))pt[Et]=yt,pt[kt]=$t,kt=Et;else break e}}function o(pt){return pt.length===0?null:pt[0]}function a(pt){if(pt.length===0)return null;var yt=pt[0],kt=pt.pop();if(kt!==yt){pt[0]=kt;e:for(var Et=0,$t=pt.length,At=$t>>>1;Et<At;){var Ot=2*(Et+1)-1,Vt=pt[Ot],Lt=Ot+1,Wt=pt[Lt];if(0>_(Vt,kt))Lt<$t&&0>_(Wt,Vt)?(pt[Et]=Wt,pt[Lt]=kt,Et=Lt):(pt[Et]=Vt,pt[Ot]=kt,Et=Ot);else if(Lt<$t&&0>_(Wt,kt))pt[Et]=Wt,pt[Lt]=kt,Et=Lt;else break e}}return yt}function _(pt,yt){var kt=pt.sortIndex-yt.sortIndex;return kt!==0?kt:pt.id-yt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var $=performance;i.unstable_now=function(){return $.now()}}else{var j=Date,_e=j.now();i.unstable_now=function(){return j.now()-_e}}var et=[],tt=[],rt=1,it=null,nt=3,ut=!1,ct=!1,st=!1,dt=typeof setTimeout=="function"?setTimeout:null,ot=typeof clearTimeout=="function"?clearTimeout:null,lt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function at(pt){for(var yt=o(tt);yt!==null;){if(yt.callback===null)a(tt);else if(yt.startTime<=pt)a(tt),yt.sortIndex=yt.expirationTime,s(et,yt);else break;yt=o(tt)}}function ft(pt){if(st=!1,at(pt),!ct)if(o(et)!==null)ct=!0,xt(ht);else{var yt=o(tt);yt!==null&&bt(ft,yt.startTime-pt)}}function ht(pt,yt){ct=!1,st&&(st=!1,ot(vt),vt=-1),ut=!0;var kt=nt;try{for(at(yt),it=o(et);it!==null&&(!(it.expirationTime>yt)||pt&&!Pt());){var Et=it.callback;if(typeof Et=="function"){it.callback=null,nt=it.priorityLevel;var $t=Et(it.expirationTime<=yt);yt=i.unstable_now(),typeof $t=="function"?it.callback=$t:it===o(et)&&a(et),at(yt)}else a(et);it=o(et)}if(it!==null)var At=!0;else{var Ot=o(tt);Ot!==null&&bt(ft,Ot.startTime-yt),At=!1}return At}finally{it=null,nt=kt,ut=!1}}var mt=!1,gt=null,vt=-1,St=5,wt=-1;function Pt(){return!(i.unstable_now()-wt<St)}function Rt(){if(gt!==null){var pt=i.unstable_now();wt=pt;var yt=!0;try{yt=gt(!0,pt)}finally{yt?It():(mt=!1,gt=null)}}else mt=!1}var It;if(typeof lt=="function")It=function(){lt(Rt)};else if(typeof MessageChannel<"u"){var jt=new MessageChannel,Mt=jt.port2;jt.port1.onmessage=Rt,It=function(){Mt.postMessage(null)}}else It=function(){dt(Rt,0)};function xt(pt){gt=pt,mt||(mt=!0,It())}function bt(pt,yt){vt=dt(function(){pt(i.unstable_now())},yt)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(pt){pt.callback=null},i.unstable_continueExecution=function(){ct||ut||(ct=!0,xt(ht))},i.unstable_forceFrameRate=function(pt){0>pt||125<pt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):St=0<pt?Math.floor(1e3/pt):5},i.unstable_getCurrentPriorityLevel=function(){return nt},i.unstable_getFirstCallbackNode=function(){return o(et)},i.unstable_next=function(pt){switch(nt){case 1:case 2:case 3:var yt=3;break;default:yt=nt}var kt=nt;nt=yt;try{return pt()}finally{nt=kt}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(pt,yt){switch(pt){case 1:case 2:case 3:case 4:case 5:break;default:pt=3}var kt=nt;nt=pt;try{return yt()}finally{nt=kt}},i.unstable_scheduleCallback=function(pt,yt,kt){var Et=i.unstable_now();switch(typeof kt=="object"&&kt!==null?(kt=kt.delay,kt=typeof kt=="number"&&0<kt?Et+kt:Et):kt=Et,pt){case 1:var $t=-1;break;case 2:$t=250;break;case 5:$t=1073741823;break;case 4:$t=1e4;break;default:$t=5e3}return $t=kt+$t,pt={id:rt++,callback:yt,priorityLevel:pt,startTime:kt,expirationTime:$t,sortIndex:-1},kt>Et?(pt.sortIndex=kt,s(tt,pt),o(et)===null&&pt===o(tt)&&(st?(ot(vt),vt=-1):st=!0,bt(ft,kt-Et))):(pt.sortIndex=$t,s(et,pt),ct||ut||(ct=!0,xt(ht))),pt},i.unstable_shouldYield=Pt,i.unstable_wrapCallback=function(pt){var yt=nt;return function(){var kt=nt;nt=yt;try{return pt.apply(this,arguments)}finally{nt=kt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var aa=reactExports,ca=schedulerExports;function p(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,o=1;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(i,s){ha(i,s),ha(i+"Capture",s)}function ha(i,s){for(ea[i]=s,i=0;i<s.length;i++)da.add(s[i])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(i){return ja.call(ma,i)?!0:ja.call(la,i)?!1:ka.test(i)?ma[i]=!0:(la[i]=!0,!1)}function pa(i,s,o,a){if(o!==null&&o.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function qa(i,s,o,a){if(s===null||typeof s>"u"||pa(i,s,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function v$1(i,s,o,a,_,$,j){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=a,this.attributeNamespace=_,this.mustUseProperty=o,this.propertyName=i,this.type=s,this.sanitizeURL=$,this.removeEmptyString=j}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){z[i]=new v$1(i,0,!1,i,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];z[s]=new v$1(s,1,!1,i[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(i){z[i]=new v$1(i,2,!1,i.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){z[i]=new v$1(i,2,!1,i,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){z[i]=new v$1(i,3,!1,i.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(i){z[i]=new v$1(i,3,!0,i,null,!1,!1)});["capture","download"].forEach(function(i){z[i]=new v$1(i,4,!1,i,null,!1,!1)});["cols","rows","size","span"].forEach(function(i){z[i]=new v$1(i,6,!1,i,null,!1,!1)});["rowSpan","start"].forEach(function(i){z[i]=new v$1(i,5,!1,i.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(ra,sa);z[s]=new v$1(s,1,!1,i,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(ra,sa);z[s]=new v$1(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(ra,sa);z[s]=new v$1(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(i){z[i]=new v$1(i,1,!1,i.toLowerCase(),null,!1,!1)});z.xlinkHref=new v$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(i){z[i]=new v$1(i,1,!1,i.toLowerCase(),null,!0,!0)});function ta(i,s,o,a){var _=z.hasOwnProperty(s)?z[s]:null;(_!==null?_.type!==0:a||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(qa(s,o,_,a)&&(o=null),a||_===null?oa(s)&&(o===null?i.removeAttribute(s):i.setAttribute(s,""+o)):_.mustUseProperty?i[_.propertyName]=o===null?_.type===3?!1:"":o:(s=_.attributeName,a=_.attributeNamespace,o===null?i.removeAttribute(s):(_=_.type,o=_===3||_===4&&o===!0?"":""+o,a?i.setAttributeNS(a,s,o):i.setAttribute(s,o))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(i){return i===null||typeof i!="object"?null:(i=Ja&&i[Ja]||i["@@iterator"],typeof i=="function"?i:null)}var A=Object.assign,La;function Ma(i){if(La===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);La=s&&s[1]||""}return`
`+La+i}var Na=!1;function Oa(i,s){if(!i||Na)return"";Na=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(tt){var a=tt}Reflect.construct(i,[],s)}else{try{s.call()}catch(tt){a=tt}i.call(s.prototype)}else{try{throw Error()}catch(tt){a=tt}i()}}catch(tt){if(tt&&a&&typeof tt.stack=="string"){for(var _=tt.stack.split(`
`),$=a.stack.split(`
`),j=_.length-1,_e=$.length-1;1<=j&&0<=_e&&_[j]!==$[_e];)_e--;for(;1<=j&&0<=_e;j--,_e--)if(_[j]!==$[_e]){if(j!==1||_e!==1)do if(j--,_e--,0>_e||_[j]!==$[_e]){var et=`
`+_[j].replace(" at new "," at ");return i.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",i.displayName)),et}while(1<=j&&0<=_e);break}}}finally{Na=!1,Error.prepareStackTrace=o}return(i=i?i.displayName||i.name:"")?Ma(i):""}function Pa(i){switch(i.tag){case 5:return Ma(i.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return i=Oa(i.type,!1),i;case 11:return i=Oa(i.type.render,!1),i;case 1:return i=Oa(i.type,!0),i;default:return""}}function Qa(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ca:return(i.displayName||"Context")+".Consumer";case Ba:return(i._context.displayName||"Context")+".Provider";case Da:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Ga:return s=i.displayName||null,s!==null?s:Qa(i.type)||"Memo";case Ha:s=i._payload,i=i._init;try{return Qa(i(s))}catch{}}return null}function Ra(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(s);case 8:return s===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Sa(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ta(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ua(i){var s=Ta(i)?"checked":"value",o=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),a=""+i[s];if(!i.hasOwnProperty(s)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var _=o.get,$=o.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return _.call(this)},set:function(j){a=""+j,$.call(this,j)}}),Object.defineProperty(i,s,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(j){a=""+j},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Va(i){i._valueTracker||(i._valueTracker=Ua(i))}function Wa(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var o=s.getValue(),a="";return i&&(a=Ta(i)?i.checked?"true":"false":i.value),i=a,i!==o?(s.setValue(i),!0):!1}function Xa(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Ya(i,s){var o=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??i._wrapperState.initialChecked})}function Za(i,s){var o=s.defaultValue==null?"":s.defaultValue,a=s.checked!=null?s.checked:s.defaultChecked;o=Sa(s.value!=null?s.value:o),i._wrapperState={initialChecked:a,initialValue:o,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ab(i,s){s=s.checked,s!=null&&ta(i,"checked",s,!1)}function bb(i,s){ab(i,s);var o=Sa(s.value),a=s.type;if(o!=null)a==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+o):i.value!==""+o&&(i.value=""+o);else if(a==="submit"||a==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?cb(i,s.type,o):s.hasOwnProperty("defaultValue")&&cb(i,s.type,Sa(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function db(i,s,o){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var a=s.type;if(!(a!=="submit"&&a!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,o||s===i.value||(i.value=s),i.defaultValue=s}o=i.name,o!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,o!==""&&(i.name=o)}function cb(i,s,o){(s!=="number"||Xa(i.ownerDocument)!==i)&&(o==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+o&&(i.defaultValue=""+o))}var eb=Array.isArray;function fb(i,s,o,a){if(i=i.options,s){s={};for(var _=0;_<o.length;_++)s["$"+o[_]]=!0;for(o=0;o<i.length;o++)_=s.hasOwnProperty("$"+i[o].value),i[o].selected!==_&&(i[o].selected=_),_&&a&&(i[o].defaultSelected=!0)}else{for(o=""+Sa(o),s=null,_=0;_<i.length;_++){if(i[_].value===o){i[_].selected=!0,a&&(i[_].defaultSelected=!0);return}s!==null||i[_].disabled||(s=i[_])}s!==null&&(s.selected=!0)}}function gb(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(p(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function hb(i,s){var o=s.value;if(o==null){if(o=s.children,s=s.defaultValue,o!=null){if(s!=null)throw Error(p(92));if(eb(o)){if(1<o.length)throw Error(p(93));o=o[0]}s=o}s==null&&(s=""),o=s}i._wrapperState={initialValue:Sa(o)}}function ib(i,s){var o=Sa(s.value),a=Sa(s.defaultValue);o!=null&&(o=""+o,o!==i.value&&(i.value=o),s.defaultValue==null&&i.defaultValue!==o&&(i.defaultValue=o)),a!=null&&(i.defaultValue=""+a)}function jb(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function kb(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?kb(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var mb,nb=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,o,a,_){MSApp.execUnsafeLocalFunction(function(){return i(s,o,a,_)})}:i}(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=mb.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function ob(i,s){if(s){var o=i.firstChild;if(o&&o===i.lastChild&&o.nodeType===3){o.nodeValue=s;return}}i.textContent=s}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(i){qb.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),pb[s]=pb[i]})});function rb(i,s,o){return s==null||typeof s=="boolean"||s===""?"":o||typeof s!="number"||s===0||pb.hasOwnProperty(i)&&pb[i]?(""+s).trim():s+"px"}function sb(i,s){i=i.style;for(var o in s)if(s.hasOwnProperty(o)){var a=o.indexOf("--")===0,_=rb(o,s[o],a);o==="float"&&(o="cssFloat"),a?i.setProperty(o,_):i[o]=_}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(i,s){if(s){if(tb[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(p(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(p(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(p(61))}if(s.style!=null&&typeof s.style!="object")throw Error(p(62))}}function vb(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var yb=null,zb=null,Ab=null;function Bb(i){if(i=Cb(i)){if(typeof yb!="function")throw Error(p(280));var s=i.stateNode;s&&(s=Db(s),yb(i.stateNode,i.type,s))}}function Eb(i){zb?Ab?Ab.push(i):Ab=[i]:zb=i}function Fb(){if(zb){var i=zb,s=Ab;if(Ab=zb=null,Bb(i),s)for(i=0;i<s.length;i++)Bb(s[i])}}function Gb(i,s){return i(s)}function Hb(){}var Ib=!1;function Jb(i,s,o){if(Ib)return i(s,o);Ib=!0;try{return Gb(i,s,o)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(i,s){var o=i.stateNode;if(o===null)return null;var a=Db(o);if(a===null)return null;o=a[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(i=i.type,a=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!a;break e;default:i=!1}if(i)return null;if(o&&typeof o!="function")throw Error(p(231,s,typeof o));return o}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(i,s,o,a,_,$,j,_e,et){var tt=Array.prototype.slice.call(arguments,3);try{s.apply(o,tt)}catch(rt){this.onError(rt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(i){Ob=!0,Pb=i}};function Tb(i,s,o,a,_,$,j,_e,et){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(i,s,o,a,_,$,j,_e,et){if(Tb.apply(this,arguments),Ob){if(Ob){var tt=Pb;Ob=!1,Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=tt)}}function Vb(i){var s=i,o=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,s.flags&4098&&(o=s.return),i=s.return;while(i)}return s.tag===3?o:null}function Wb(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function Xb(i){if(Vb(i)!==i)throw Error(p(188))}function Yb(i){var s=i.alternate;if(!s){if(s=Vb(i),s===null)throw Error(p(188));return s!==i?null:i}for(var o=i,a=s;;){var _=o.return;if(_===null)break;var $=_.alternate;if($===null){if(a=_.return,a!==null){o=a;continue}break}if(_.child===$.child){for($=_.child;$;){if($===o)return Xb(_),i;if($===a)return Xb(_),s;$=$.sibling}throw Error(p(188))}if(o.return!==a.return)o=_,a=$;else{for(var j=!1,_e=_.child;_e;){if(_e===o){j=!0,o=_,a=$;break}if(_e===a){j=!0,a=_,o=$;break}_e=_e.sibling}if(!j){for(_e=$.child;_e;){if(_e===o){j=!0,o=$,a=_;break}if(_e===a){j=!0,a=$,o=_;break}_e=_e.sibling}if(!j)throw Error(p(189))}}if(o.alternate!==a)throw Error(p(190))}if(o.tag!==3)throw Error(p(188));return o.stateNode.current===o?i:s}function Zb(i){return i=Yb(i),i!==null?$b(i):null}function $b(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=$b(i);if(s!==null)return s;i=i.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(i){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,i,void 0,(i.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(i){return i>>>=0,i===0?32:31-(pc(i)/qc|0)|0}var rc=64,sc=4194304;function tc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function uc(i,s){var o=i.pendingLanes;if(o===0)return 0;var a=0,_=i.suspendedLanes,$=i.pingedLanes,j=o&268435455;if(j!==0){var _e=j&~_;_e!==0?a=tc(_e):($&=j,$!==0&&(a=tc($)))}else j=o&~_,j!==0?a=tc(j):$!==0&&(a=tc($));if(a===0)return 0;if(s!==0&&s!==a&&!(s&_)&&(_=a&-a,$=s&-s,_>=$||_===16&&($&4194240)!==0))return s;if(a&4&&(a|=o&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=a;0<s;)o=31-oc(s),_=1<<o,a|=i[o],s&=~_;return a}function vc(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(i,s){for(var o=i.suspendedLanes,a=i.pingedLanes,_=i.expirationTimes,$=i.pendingLanes;0<$;){var j=31-oc($),_e=1<<j,et=_[j];et===-1?(!(_e&o)||_e&a)&&(_[j]=vc(_e,s)):et<=s&&(i.expiredLanes|=_e),$&=~_e}}function xc(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function yc(){var i=rc;return rc<<=1,!(rc&4194240)&&(rc=64),i}function zc(i){for(var s=[],o=0;31>o;o++)s.push(i);return s}function Ac(i,s,o){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-oc(s),i[s]=o}function Bc(i,s){var o=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var a=i.eventTimes;for(i=i.expirationTimes;0<o;){var _=31-oc(o),$=1<<_;s[_]=0,a[_]=-1,i[_]=-1,o&=~$}}function Cc(i,s){var o=i.entangledLanes|=s;for(i=i.entanglements;o;){var a=31-oc(o),_=1<<a;_&s|i[a]&s&&(i[a]|=s),o&=~_}}var C=0;function Dc(i){return i&=-i,1<i?4<i?i&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(i,s){switch(i){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(s.pointerId)}}function Tc(i,s,o,a,_,$){return i===null||i.nativeEvent!==$?(i={blockedOn:s,domEventName:o,eventSystemFlags:a,nativeEvent:$,targetContainers:[_]},s!==null&&(s=Cb(s),s!==null&&Fc(s)),i):(i.eventSystemFlags|=a,s=i.targetContainers,_!==null&&s.indexOf(_)===-1&&s.push(_),i)}function Uc(i,s,o,a,_){switch(s){case"focusin":return Lc=Tc(Lc,i,s,o,a,_),!0;case"dragenter":return Mc=Tc(Mc,i,s,o,a,_),!0;case"mouseover":return Nc=Tc(Nc,i,s,o,a,_),!0;case"pointerover":var $=_.pointerId;return Oc.set($,Tc(Oc.get($)||null,i,s,o,a,_)),!0;case"gotpointercapture":return $=_.pointerId,Pc.set($,Tc(Pc.get($)||null,i,s,o,a,_)),!0}return!1}function Vc(i){var s=Wc(i.target);if(s!==null){var o=Vb(s);if(o!==null){if(s=o.tag,s===13){if(s=Wb(o),s!==null){i.blockedOn=s,Ic(i.priority,function(){Gc(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){i.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Xc(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var o=Yc(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(o===null){o=i.nativeEvent;var a=new o.constructor(o.type,o);wb=a,o.target.dispatchEvent(a),wb=null}else return s=Cb(o),s!==null&&Fc(s),i.blockedOn=o,!1;s.shift()}return!0}function Zc(i,s,o){Xc(i)&&o.delete(s)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(i,s){i.blockedOn===s&&(i.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(i){function s(_){return ad(_,i)}if(0<Kc.length){ad(Kc[0],i);for(var o=1;o<Kc.length;o++){var a=Kc[o];a.blockedOn===i&&(a.blockedOn=null)}}for(Lc!==null&&ad(Lc,i),Mc!==null&&ad(Mc,i),Nc!==null&&ad(Nc,i),Oc.forEach(s),Pc.forEach(s),o=0;o<Qc.length;o++)a=Qc[o],a.blockedOn===i&&(a.blockedOn=null);for(;0<Qc.length&&(o=Qc[0],o.blockedOn===null);)Vc(o),o.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(i,s,o,a){var _=C,$=cd.transition;cd.transition=null;try{C=1,fd(i,s,o,a)}finally{C=_,cd.transition=$}}function gd(i,s,o,a){var _=C,$=cd.transition;cd.transition=null;try{C=4,fd(i,s,o,a)}finally{C=_,cd.transition=$}}function fd(i,s,o,a){if(dd){var _=Yc(i,s,o,a);if(_===null)hd(i,s,a,id,o),Sc(i,a);else if(Uc(_,i,s,o,a))a.stopPropagation();else if(Sc(i,a),s&4&&-1<Rc.indexOf(i)){for(;_!==null;){var $=Cb(_);if($!==null&&Ec($),$=Yc(i,s,o,a),$===null&&hd(i,s,a,id,o),$===_)break;_=$}_!==null&&a.stopPropagation()}else hd(i,s,a,null,o)}}var id=null;function Yc(i,s,o,a){if(id=null,i=xb(a),i=Wc(i),i!==null)if(s=Vb(i),s===null)i=null;else if(o=s.tag,o===13){if(i=Wb(s),i!==null)return i;i=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return id=i,null}function jd(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var i,s=ld,o=s.length,a,_="value"in kd?kd.value:kd.textContent,$=_.length;for(i=0;i<o&&s[i]===_[i];i++);var j=o-i;for(a=1;a<=j&&s[o-a]===_[$-a];a++);return md=_.slice(i,1<a?1-a:void 0)}function od(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function pd(){return!0}function qd(){return!1}function rd(i){function s(o,a,_,$,j){this._reactName=o,this._targetInst=_,this.type=a,this.nativeEvent=$,this.target=j,this.currentTarget=null;for(var _e in i)i.hasOwnProperty(_e)&&(o=i[_e],this[_e]=o?o($):$[_e]);return this.isDefaultPrevented=($.defaultPrevented!=null?$.defaultPrevented:$.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==yd&&(yd&&i.type==="mousemove"?(wd=i.screenX-yd.screenX,xd=i.screenY-yd.screenY):xd=wd=0,yd=i),wd)},movementY:function(i){return"movementY"in i?i.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Od[i])?!!s[i]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(i){if(i.key){var s=Md[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=od(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Nd[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(i){return i.type==="keypress"?od(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?od(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=" ",fe=!1;function ge(i,s){switch(i){case"keyup":return $d.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ie=!1;function je(i,s){switch(i){case"compositionend":return he(s);case"keypress":return s.which!==32?null:(fe=!0,ee);case"textInput":return i=s.data,i===ee&&fe?null:i;default:return null}}function ke(i,s){if(ie)return i==="compositionend"||!ae&&ge(i,s)?(i=nd(),md=ld=kd=null,ie=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return de&&s.locale!=="ko"?null:s.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!le[i.type]:s==="textarea"}function ne(i,s,o,a){Eb(a),s=oe(s,"onChange"),0<s.length&&(o=new td("onChange","change",null,o,a),i.push({event:o,listeners:s}))}var pe=null,qe=null;function re(i){se(i,0)}function te(i){var s=ue(i);if(Wa(s))return i}function ve(i,s){if(i==="change")return s}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(i){if(i.propertyName==="value"&&te(qe)){var s=[];ne(s,qe,i,xb(i)),Jb(re,s)}}function Ce(i,s,o){i==="focusin"?(Ae(),pe=s,qe=o,pe.attachEvent("onpropertychange",Be)):i==="focusout"&&Ae()}function De(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return te(qe)}function Ee(i,s){if(i==="click")return te(s)}function Fe(i,s){if(i==="input"||i==="change")return te(s)}function Ge(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(i,s){if(He(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var o=Object.keys(i),a=Object.keys(s);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var _=o[a];if(!ja.call(s,_)||!He(i[_],s[_]))return!1}return!0}function Je(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ke(i,s){var o=Je(i);i=0;for(var a;o;){if(o.nodeType===3){if(a=i+o.textContent.length,i<=s&&a>=s)return{node:o,offset:s-i};i=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Je(o)}}function Le(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Le(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Me(){for(var i=window,s=Xa();s instanceof i.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}if(o)i=s.contentWindow;else break;s=Xa(i.document)}return s}function Ne(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function Oe(i){var s=Me(),o=i.focusedElem,a=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&Le(o.ownerDocument.documentElement,o)){if(a!==null&&Ne(o)){if(s=a.start,i=a.end,i===void 0&&(i=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(i,o.value.length);else if(i=(s=o.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var _=o.textContent.length,$=Math.min(a.start,_);a=a.end===void 0?$:Math.min(a.end,_),!i.extend&&$>a&&(_=a,a=$,$=_),_=Ke(o,$);var j=Ke(o,a);_&&j&&(i.rangeCount!==1||i.anchorNode!==_.node||i.anchorOffset!==_.offset||i.focusNode!==j.node||i.focusOffset!==j.offset)&&(s=s.createRange(),s.setStart(_.node,_.offset),i.removeAllRanges(),$>a?(i.addRange(s),i.extend(j.node,j.offset)):(s.setEnd(j.node,j.offset),i.addRange(s)))}}for(s=[],i=o;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<s.length;o++)i=s[o],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(i,s,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Te||Qe==null||Qe!==Xa(a)||(a=Qe,"selectionStart"in a&&Ne(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Se&&Ie(Se,a)||(Se=a,a=oe(Re,"onSelect"),0<a.length&&(s=new td("onSelect","select",null,s,o),i.push({event:s,listeners:a}),s.target=Qe)))}function Ve(i,s){var o={};return o[i.toLowerCase()]=s.toLowerCase(),o["Webkit"+i]="webkit"+s,o["Moz"+i]="moz"+s,o}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(i){if(Xe[i])return Xe[i];if(!We[i])return i;var s=We[i],o;for(o in s)if(s.hasOwnProperty(o)&&o in Ye)return Xe[i]=s[o];return i}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(i,s){df.set(i,s),fa(s,[i])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(i,s,o){var a=i.type||"unknown-event";i.currentTarget=o,Ub(a,s,void 0,i),i.currentTarget=null}function se(i,s){s=(s&4)!==0;for(var o=0;o<i.length;o++){var a=i[o],_=a.event;a=a.listeners;e:{var $=void 0;if(s)for(var j=a.length-1;0<=j;j--){var _e=a[j],et=_e.instance,tt=_e.currentTarget;if(_e=_e.listener,et!==$&&_.isPropagationStopped())break e;nf(_,_e,tt),$=et}else for(j=0;j<a.length;j++){if(_e=a[j],et=_e.instance,tt=_e.currentTarget,_e=_e.listener,et!==$&&_.isPropagationStopped())break e;nf(_,_e,tt),$=et}}}if(Qb)throw i=Rb,Qb=!1,Rb=null,i}function D(i,s){var o=s[of];o===void 0&&(o=s[of]=new Set);var a=i+"__bubble";o.has(a)||(pf(s,i,2,!1),o.add(a))}function qf(i,s,o){var a=0;s&&(a|=4),pf(o,i,a,s)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(i){if(!i[rf]){i[rf]=!0,da.forEach(function(o){o!=="selectionchange"&&(mf.has(o)||qf(o,!1,i),qf(o,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[rf]||(s[rf]=!0,qf("selectionchange",!1,s))}}function pf(i,s,o,a){switch(jd(s)){case 1:var _=ed;break;case 4:_=gd;break;default:_=fd}o=_.bind(null,s,o,i),_=void 0,!Lb||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(_=!0),a?_!==void 0?i.addEventListener(s,o,{capture:!0,passive:_}):i.addEventListener(s,o,!0):_!==void 0?i.addEventListener(s,o,{passive:_}):i.addEventListener(s,o,!1)}function hd(i,s,o,a,_){var $=a;if(!(s&1)&&!(s&2)&&a!==null)e:for(;;){if(a===null)return;var j=a.tag;if(j===3||j===4){var _e=a.stateNode.containerInfo;if(_e===_||_e.nodeType===8&&_e.parentNode===_)break;if(j===4)for(j=a.return;j!==null;){var et=j.tag;if((et===3||et===4)&&(et=j.stateNode.containerInfo,et===_||et.nodeType===8&&et.parentNode===_))return;j=j.return}for(;_e!==null;){if(j=Wc(_e),j===null)return;if(et=j.tag,et===5||et===6){a=$=j;continue e}_e=_e.parentNode}}a=a.return}Jb(function(){var tt=$,rt=xb(o),it=[];e:{var nt=df.get(i);if(nt!==void 0){var ut=td,ct=i;switch(i){case"keypress":if(od(o)===0)break e;case"keydown":case"keyup":ut=Rd;break;case"focusin":ct="focus",ut=Fd;break;case"focusout":ct="blur",ut=Fd;break;case"beforeblur":case"afterblur":ut=Fd;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ut=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ut=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ut=Vd;break;case $e:case af:case bf:ut=Hd;break;case cf:ut=Xd;break;case"scroll":ut=vd;break;case"wheel":ut=Zd;break;case"copy":case"cut":case"paste":ut=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ut=Td}var st=(s&4)!==0,dt=!st&&i==="scroll",ot=st?nt!==null?nt+"Capture":null:nt;st=[];for(var lt=tt,at;lt!==null;){at=lt;var ft=at.stateNode;if(at.tag===5&&ft!==null&&(at=ft,ot!==null&&(ft=Kb(lt,ot),ft!=null&&st.push(tf(lt,ft,at)))),dt)break;lt=lt.return}0<st.length&&(nt=new ut(nt,ct,null,o,rt),it.push({event:nt,listeners:st}))}}if(!(s&7)){e:{if(nt=i==="mouseover"||i==="pointerover",ut=i==="mouseout"||i==="pointerout",nt&&o!==wb&&(ct=o.relatedTarget||o.fromElement)&&(Wc(ct)||ct[uf]))break e;if((ut||nt)&&(nt=rt.window===rt?rt:(nt=rt.ownerDocument)?nt.defaultView||nt.parentWindow:window,ut?(ct=o.relatedTarget||o.toElement,ut=tt,ct=ct?Wc(ct):null,ct!==null&&(dt=Vb(ct),ct!==dt||ct.tag!==5&&ct.tag!==6)&&(ct=null)):(ut=null,ct=tt),ut!==ct)){if(st=Bd,ft="onMouseLeave",ot="onMouseEnter",lt="mouse",(i==="pointerout"||i==="pointerover")&&(st=Td,ft="onPointerLeave",ot="onPointerEnter",lt="pointer"),dt=ut==null?nt:ue(ut),at=ct==null?nt:ue(ct),nt=new st(ft,lt+"leave",ut,o,rt),nt.target=dt,nt.relatedTarget=at,ft=null,Wc(rt)===tt&&(st=new st(ot,lt+"enter",ct,o,rt),st.target=at,st.relatedTarget=dt,ft=st),dt=ft,ut&&ct)t:{for(st=ut,ot=ct,lt=0,at=st;at;at=vf(at))lt++;for(at=0,ft=ot;ft;ft=vf(ft))at++;for(;0<lt-at;)st=vf(st),lt--;for(;0<at-lt;)ot=vf(ot),at--;for(;lt--;){if(st===ot||ot!==null&&st===ot.alternate)break t;st=vf(st),ot=vf(ot)}st=null}else st=null;ut!==null&&wf(it,nt,ut,st,!1),ct!==null&&dt!==null&&wf(it,dt,ct,st,!0)}}e:{if(nt=tt?ue(tt):window,ut=nt.nodeName&&nt.nodeName.toLowerCase(),ut==="select"||ut==="input"&&nt.type==="file")var ht=ve;else if(me(nt))if(we)ht=Fe;else{ht=De;var mt=Ce}else(ut=nt.nodeName)&&ut.toLowerCase()==="input"&&(nt.type==="checkbox"||nt.type==="radio")&&(ht=Ee);if(ht&&(ht=ht(i,tt))){ne(it,ht,o,rt);break e}mt&&mt(i,nt,tt),i==="focusout"&&(mt=nt._wrapperState)&&mt.controlled&&nt.type==="number"&&cb(nt,"number",nt.value)}switch(mt=tt?ue(tt):window,i){case"focusin":(me(mt)||mt.contentEditable==="true")&&(Qe=mt,Re=tt,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(it,o,rt);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(it,o,rt)}var gt;if(ae)e:{switch(i){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else ie?ge(i,o)&&(vt="onCompositionEnd"):i==="keydown"&&o.keyCode===229&&(vt="onCompositionStart");vt&&(de&&o.locale!=="ko"&&(ie||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&ie&&(gt=nd()):(kd=rt,ld="value"in kd?kd.value:kd.textContent,ie=!0)),mt=oe(tt,vt),0<mt.length&&(vt=new Ld(vt,i,null,o,rt),it.push({event:vt,listeners:mt}),gt?vt.data=gt:(gt=he(o),gt!==null&&(vt.data=gt)))),(gt=ce?je(i,o):ke(i,o))&&(tt=oe(tt,"onBeforeInput"),0<tt.length&&(rt=new Ld("onBeforeInput","beforeinput",null,o,rt),it.push({event:rt,listeners:tt}),rt.data=gt))}se(it,s)})}function tf(i,s,o){return{instance:i,listener:s,currentTarget:o}}function oe(i,s){for(var o=s+"Capture",a=[];i!==null;){var _=i,$=_.stateNode;_.tag===5&&$!==null&&(_=$,$=Kb(i,o),$!=null&&a.unshift(tf(i,$,_)),$=Kb(i,s),$!=null&&a.push(tf(i,$,_))),i=i.return}return a}function vf(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function wf(i,s,o,a,_){for(var $=s._reactName,j=[];o!==null&&o!==a;){var _e=o,et=_e.alternate,tt=_e.stateNode;if(et!==null&&et===a)break;_e.tag===5&&tt!==null&&(_e=tt,_?(et=Kb(o,$),et!=null&&j.unshift(tf(o,et,_e))):_||(et=Kb(o,$),et!=null&&j.push(tf(o,et,_e)))),o=o.return}j.length!==0&&i.push({event:s,listeners:j})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(i){return(typeof i=="string"?i:""+i).replace(xf,`
`).replace(yf,"")}function Af(i,s,o){if(s=zf(s),zf(i)!==s&&o)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(i){return Hf.resolve(null).then(i).catch(If)}:Ff;function If(i){setTimeout(function(){throw i})}function Kf(i,s){var o=s,a=0;do{var _=o.nextSibling;if(i.removeChild(o),_&&_.nodeType===8)if(o=_.data,o==="/$"){if(a===0){i.removeChild(_),bd(s);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=_}while(o);bd(s)}function Lf(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function Mf(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var o=i.data;if(o==="$"||o==="$!"||o==="$?"){if(s===0)return i;s--}else o==="/$"&&s++}i=i.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(i){var s=i[Of];if(s)return s;for(var o=i.parentNode;o;){if(s=o[uf]||o[Of]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(i=Mf(i);i!==null;){if(o=i[Of])return o;i=Mf(i)}return s}i=o,o=i.parentNode}return null}function Cb(i){return i=i[Of]||i[uf],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ue(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(p(33))}function Db(i){return i[Pf]||null}var Sf=[],Tf=-1;function Uf(i){return{current:i}}function E(i){0>Tf||(i.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(i,s){Tf++,Sf[Tf]=i.current,i.current=s}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(i,s){var o=i.type.contextTypes;if(!o)return Vf;var a=i.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===s)return a.__reactInternalMemoizedMaskedChildContext;var _={},$;for($ in o)_[$]=s[$];return a&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=_),_}function Zf(i){return i=i.childContextTypes,i!=null}function $f(){E(Wf),E(H)}function ag(i,s,o){if(H.current!==Vf)throw Error(p(168));G(H,s),G(Wf,o)}function bg(i,s,o){var a=i.stateNode;if(s=s.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var _ in a)if(!(_ in s))throw Error(p(108,Ra(i)||"Unknown",_));return A({},o,a)}function cg(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,i),G(Wf,Wf.current),!0}function dg(i,s,o){var a=i.stateNode;if(!a)throw Error(p(169));o?(i=bg(i,s,Xf),a.__reactInternalMemoizedMergedChildContext=i,E(Wf),E(H),G(H,i)):E(Wf),G(Wf,o)}var eg=null,fg=!1,gg=!1;function hg(i){eg===null?eg=[i]:eg.push(i)}function ig(i){fg=!0,hg(i)}function jg(){if(!gg&&eg!==null){gg=!0;var i=0,s=C;try{var o=eg;for(C=1;i<o.length;i++){var a=o[i];do a=a(!0);while(a!==null)}eg=null,fg=!1}catch(_){throw eg!==null&&(eg=eg.slice(i+1)),ac(fc,jg),_}finally{C=s,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(i,s){kg[lg++]=ng,kg[lg++]=mg,mg=i,ng=s}function ug(i,s,o){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=i;var a=rg;i=sg;var _=32-oc(a)-1;a&=~(1<<_),o+=1;var $=32-oc(s)+_;if(30<$){var j=_-_%5;$=(a&(1<<j)-1).toString(32),a>>=j,_-=j,rg=1<<32-oc(s)+_|o<<_|a,sg=$+i}else rg=1<<$|o<<_|a,sg=i}function vg(i){i.return!==null&&(tg(i,1),ug(i,1,0))}function wg(i){for(;i===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;i===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(i,s){var o=Bg(5,null,null,0);o.elementType="DELETED",o.stateNode=s,o.return=i,s=i.deletions,s===null?(i.deletions=[o],i.flags|=16):s.push(o)}function Cg(i,s){switch(i.tag){case 5:var o=i.type;return s=s.nodeType!==1||o.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,xg=i,yg=Lf(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,xg=i,yg=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(o=qg!==null?{id:rg,overflow:sg}:null,i.memoizedState={dehydrated:s,treeContext:o,retryLane:1073741824},o=Bg(18,null,null,0),o.stateNode=s,o.return=i,i.child=o,xg=i,yg=null,!0):!1;default:return!1}}function Dg(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Eg(i){if(I){var s=yg;if(s){var o=s;if(!Cg(i,s)){if(Dg(i))throw Error(p(418));s=Lf(o.nextSibling);var a=xg;s&&Cg(i,s)?Ag(a,o):(i.flags=i.flags&-4097|2,I=!1,xg=i)}}else{if(Dg(i))throw Error(p(418));i.flags=i.flags&-4097|2,I=!1,xg=i}}}function Fg(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;xg=i}function Gg(i){if(i!==xg)return!1;if(!I)return Fg(i),I=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Ef(i.type,i.memoizedProps)),s&&(s=yg)){if(Dg(i))throw Hg(),Error(p(418));for(;s;)Ag(i,s),s=Lf(s.nextSibling)}if(Fg(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(p(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var o=i.data;if(o==="/$"){if(s===0){yg=Lf(i.nextSibling);break e}s--}else o!=="$"&&o!=="$!"&&o!=="$?"||s++}i=i.nextSibling}yg=null}}else yg=xg?Lf(i.stateNode.nextSibling):null;return!0}function Hg(){for(var i=yg;i;)i=Lf(i.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(i){zg===null?zg=[i]:zg.push(i)}var Kg=ua.ReactCurrentBatchConfig;function Lg(i,s,o){if(i=o.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(p(309));var a=o.stateNode}if(!a)throw Error(p(147,i));var _=a,$=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===$?s.ref:(s=function(j){var _e=_.refs;j===null?delete _e[$]:_e[$]=j},s._stringRef=$,s)}if(typeof i!="string")throw Error(p(284));if(!o._owner)throw Error(p(290,i))}return i}function Mg(i,s){throw i=Object.prototype.toString.call(s),Error(p(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function Ng(i){var s=i._init;return s(i._payload)}function Og(i){function s(ot,lt){if(i){var at=ot.deletions;at===null?(ot.deletions=[lt],ot.flags|=16):at.push(lt)}}function o(ot,lt){if(!i)return null;for(;lt!==null;)s(ot,lt),lt=lt.sibling;return null}function a(ot,lt){for(ot=new Map;lt!==null;)lt.key!==null?ot.set(lt.key,lt):ot.set(lt.index,lt),lt=lt.sibling;return ot}function _(ot,lt){return ot=Pg(ot,lt),ot.index=0,ot.sibling=null,ot}function $(ot,lt,at){return ot.index=at,i?(at=ot.alternate,at!==null?(at=at.index,at<lt?(ot.flags|=2,lt):at):(ot.flags|=2,lt)):(ot.flags|=1048576,lt)}function j(ot){return i&&ot.alternate===null&&(ot.flags|=2),ot}function _e(ot,lt,at,ft){return lt===null||lt.tag!==6?(lt=Qg(at,ot.mode,ft),lt.return=ot,lt):(lt=_(lt,at),lt.return=ot,lt)}function et(ot,lt,at,ft){var ht=at.type;return ht===ya?rt(ot,lt,at.props.children,ft,at.key):lt!==null&&(lt.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===Ha&&Ng(ht)===lt.type)?(ft=_(lt,at.props),ft.ref=Lg(ot,lt,at),ft.return=ot,ft):(ft=Rg(at.type,at.key,at.props,null,ot.mode,ft),ft.ref=Lg(ot,lt,at),ft.return=ot,ft)}function tt(ot,lt,at,ft){return lt===null||lt.tag!==4||lt.stateNode.containerInfo!==at.containerInfo||lt.stateNode.implementation!==at.implementation?(lt=Sg(at,ot.mode,ft),lt.return=ot,lt):(lt=_(lt,at.children||[]),lt.return=ot,lt)}function rt(ot,lt,at,ft,ht){return lt===null||lt.tag!==7?(lt=Tg(at,ot.mode,ft,ht),lt.return=ot,lt):(lt=_(lt,at),lt.return=ot,lt)}function it(ot,lt,at){if(typeof lt=="string"&&lt!==""||typeof lt=="number")return lt=Qg(""+lt,ot.mode,at),lt.return=ot,lt;if(typeof lt=="object"&&lt!==null){switch(lt.$$typeof){case va:return at=Rg(lt.type,lt.key,lt.props,null,ot.mode,at),at.ref=Lg(ot,null,lt),at.return=ot,at;case wa:return lt=Sg(lt,ot.mode,at),lt.return=ot,lt;case Ha:var ft=lt._init;return it(ot,ft(lt._payload),at)}if(eb(lt)||Ka(lt))return lt=Tg(lt,ot.mode,at,null),lt.return=ot,lt;Mg(ot,lt)}return null}function nt(ot,lt,at,ft){var ht=lt!==null?lt.key:null;if(typeof at=="string"&&at!==""||typeof at=="number")return ht!==null?null:_e(ot,lt,""+at,ft);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case va:return at.key===ht?et(ot,lt,at,ft):null;case wa:return at.key===ht?tt(ot,lt,at,ft):null;case Ha:return ht=at._init,nt(ot,lt,ht(at._payload),ft)}if(eb(at)||Ka(at))return ht!==null?null:rt(ot,lt,at,ft,null);Mg(ot,at)}return null}function ut(ot,lt,at,ft,ht){if(typeof ft=="string"&&ft!==""||typeof ft=="number")return ot=ot.get(at)||null,_e(lt,ot,""+ft,ht);if(typeof ft=="object"&&ft!==null){switch(ft.$$typeof){case va:return ot=ot.get(ft.key===null?at:ft.key)||null,et(lt,ot,ft,ht);case wa:return ot=ot.get(ft.key===null?at:ft.key)||null,tt(lt,ot,ft,ht);case Ha:var mt=ft._init;return ut(ot,lt,at,mt(ft._payload),ht)}if(eb(ft)||Ka(ft))return ot=ot.get(at)||null,rt(lt,ot,ft,ht,null);Mg(lt,ft)}return null}function ct(ot,lt,at,ft){for(var ht=null,mt=null,gt=lt,vt=lt=0,St=null;gt!==null&&vt<at.length;vt++){gt.index>vt?(St=gt,gt=null):St=gt.sibling;var wt=nt(ot,gt,at[vt],ft);if(wt===null){gt===null&&(gt=St);break}i&&gt&&wt.alternate===null&&s(ot,gt),lt=$(wt,lt,vt),mt===null?ht=wt:mt.sibling=wt,mt=wt,gt=St}if(vt===at.length)return o(ot,gt),I&&tg(ot,vt),ht;if(gt===null){for(;vt<at.length;vt++)gt=it(ot,at[vt],ft),gt!==null&&(lt=$(gt,lt,vt),mt===null?ht=gt:mt.sibling=gt,mt=gt);return I&&tg(ot,vt),ht}for(gt=a(ot,gt);vt<at.length;vt++)St=ut(gt,ot,vt,at[vt],ft),St!==null&&(i&&St.alternate!==null&&gt.delete(St.key===null?vt:St.key),lt=$(St,lt,vt),mt===null?ht=St:mt.sibling=St,mt=St);return i&&gt.forEach(function(Pt){return s(ot,Pt)}),I&&tg(ot,vt),ht}function st(ot,lt,at,ft){var ht=Ka(at);if(typeof ht!="function")throw Error(p(150));if(at=ht.call(at),at==null)throw Error(p(151));for(var mt=ht=null,gt=lt,vt=lt=0,St=null,wt=at.next();gt!==null&&!wt.done;vt++,wt=at.next()){gt.index>vt?(St=gt,gt=null):St=gt.sibling;var Pt=nt(ot,gt,wt.value,ft);if(Pt===null){gt===null&&(gt=St);break}i&&gt&&Pt.alternate===null&&s(ot,gt),lt=$(Pt,lt,vt),mt===null?ht=Pt:mt.sibling=Pt,mt=Pt,gt=St}if(wt.done)return o(ot,gt),I&&tg(ot,vt),ht;if(gt===null){for(;!wt.done;vt++,wt=at.next())wt=it(ot,wt.value,ft),wt!==null&&(lt=$(wt,lt,vt),mt===null?ht=wt:mt.sibling=wt,mt=wt);return I&&tg(ot,vt),ht}for(gt=a(ot,gt);!wt.done;vt++,wt=at.next())wt=ut(gt,ot,vt,wt.value,ft),wt!==null&&(i&&wt.alternate!==null&&gt.delete(wt.key===null?vt:wt.key),lt=$(wt,lt,vt),mt===null?ht=wt:mt.sibling=wt,mt=wt);return i&&gt.forEach(function(Rt){return s(ot,Rt)}),I&&tg(ot,vt),ht}function dt(ot,lt,at,ft){if(typeof at=="object"&&at!==null&&at.type===ya&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case va:e:{for(var ht=at.key,mt=lt;mt!==null;){if(mt.key===ht){if(ht=at.type,ht===ya){if(mt.tag===7){o(ot,mt.sibling),lt=_(mt,at.props.children),lt.return=ot,ot=lt;break e}}else if(mt.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===Ha&&Ng(ht)===mt.type){o(ot,mt.sibling),lt=_(mt,at.props),lt.ref=Lg(ot,mt,at),lt.return=ot,ot=lt;break e}o(ot,mt);break}else s(ot,mt);mt=mt.sibling}at.type===ya?(lt=Tg(at.props.children,ot.mode,ft,at.key),lt.return=ot,ot=lt):(ft=Rg(at.type,at.key,at.props,null,ot.mode,ft),ft.ref=Lg(ot,lt,at),ft.return=ot,ot=ft)}return j(ot);case wa:e:{for(mt=at.key;lt!==null;){if(lt.key===mt)if(lt.tag===4&&lt.stateNode.containerInfo===at.containerInfo&&lt.stateNode.implementation===at.implementation){o(ot,lt.sibling),lt=_(lt,at.children||[]),lt.return=ot,ot=lt;break e}else{o(ot,lt);break}else s(ot,lt);lt=lt.sibling}lt=Sg(at,ot.mode,ft),lt.return=ot,ot=lt}return j(ot);case Ha:return mt=at._init,dt(ot,lt,mt(at._payload),ft)}if(eb(at))return ct(ot,lt,at,ft);if(Ka(at))return st(ot,lt,at,ft);Mg(ot,at)}return typeof at=="string"&&at!==""||typeof at=="number"?(at=""+at,lt!==null&&lt.tag===6?(o(ot,lt.sibling),lt=_(lt,at),lt.return=ot,ot=lt):(o(ot,lt),lt=Qg(at,ot.mode,ft),lt.return=ot,ot=lt),j(ot)):o(ot,lt)}return dt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(i){var s=Wg.current;E(Wg),i._currentValue=s}function bh(i,s,o){for(;i!==null;){var a=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,a!==null&&(a.childLanes|=s)):a!==null&&(a.childLanes&s)!==s&&(a.childLanes|=s),i===o)break;i=i.return}}function ch(i,s){Xg=i,Zg=Yg=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&s&&(dh=!0),i.firstContext=null)}function eh(i){var s=i._currentValue;if(Zg!==i)if(i={context:i,memoizedValue:s,next:null},Yg===null){if(Xg===null)throw Error(p(308));Yg=i,Xg.dependencies={lanes:0,firstContext:i}}else Yg=Yg.next=i;return s}var fh=null;function gh(i){fh===null?fh=[i]:fh.push(i)}function hh(i,s,o,a){var _=s.interleaved;return _===null?(o.next=o,gh(s)):(o.next=_.next,_.next=o),s.interleaved=o,ih(i,a)}function ih(i,s){i.lanes|=s;var o=i.alternate;for(o!==null&&(o.lanes|=s),o=i,i=i.return;i!==null;)i.childLanes|=s,o=i.alternate,o!==null&&(o.childLanes|=s),o=i,i=i.return;return o.tag===3?o.stateNode:null}var jh=!1;function kh(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function mh(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function nh(i,s,o){var a=i.updateQueue;if(a===null)return null;if(a=a.shared,K&2){var _=a.pending;return _===null?s.next=s:(s.next=_.next,_.next=s),a.pending=s,ih(i,o)}return _=a.interleaved,_===null?(s.next=s,gh(a)):(s.next=_.next,_.next=s),a.interleaved=s,ih(i,o)}function oh(i,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194240)!==0)){var a=s.lanes;a&=i.pendingLanes,o|=a,s.lanes=o,Cc(i,o)}}function ph(i,s){var o=i.updateQueue,a=i.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var _=null,$=null;if(o=o.firstBaseUpdate,o!==null){do{var j={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};$===null?_=$=j:$=$.next=j,o=o.next}while(o!==null);$===null?_=$=s:$=$.next=s}else _=$=s;o={baseState:a.baseState,firstBaseUpdate:_,lastBaseUpdate:$,shared:a.shared,effects:a.effects},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=s:i.next=s,o.lastBaseUpdate=s}function qh(i,s,o,a){var _=i.updateQueue;jh=!1;var $=_.firstBaseUpdate,j=_.lastBaseUpdate,_e=_.shared.pending;if(_e!==null){_.shared.pending=null;var et=_e,tt=et.next;et.next=null,j===null?$=tt:j.next=tt,j=et;var rt=i.alternate;rt!==null&&(rt=rt.updateQueue,_e=rt.lastBaseUpdate,_e!==j&&(_e===null?rt.firstBaseUpdate=tt:_e.next=tt,rt.lastBaseUpdate=et))}if($!==null){var it=_.baseState;j=0,rt=tt=et=null,_e=$;do{var nt=_e.lane,ut=_e.eventTime;if((a&nt)===nt){rt!==null&&(rt=rt.next={eventTime:ut,lane:0,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null});e:{var ct=i,st=_e;switch(nt=s,ut=o,st.tag){case 1:if(ct=st.payload,typeof ct=="function"){it=ct.call(ut,it,nt);break e}it=ct;break e;case 3:ct.flags=ct.flags&-65537|128;case 0:if(ct=st.payload,nt=typeof ct=="function"?ct.call(ut,it,nt):ct,nt==null)break e;it=A({},it,nt);break e;case 2:jh=!0}}_e.callback!==null&&_e.lane!==0&&(i.flags|=64,nt=_.effects,nt===null?_.effects=[_e]:nt.push(_e))}else ut={eventTime:ut,lane:nt,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null},rt===null?(tt=rt=ut,et=it):rt=rt.next=ut,j|=nt;if(_e=_e.next,_e===null){if(_e=_.shared.pending,_e===null)break;nt=_e,_e=nt.next,nt.next=null,_.lastBaseUpdate=nt,_.shared.pending=null}}while(!0);if(rt===null&&(et=it),_.baseState=et,_.firstBaseUpdate=tt,_.lastBaseUpdate=rt,s=_.shared.interleaved,s!==null){_=s;do j|=_.lane,_=_.next;while(_!==s)}else $===null&&(_.shared.lanes=0);rh|=j,i.lanes=j,i.memoizedState=it}}function sh(i,s,o){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var a=i[s],_=a.callback;if(_!==null){if(a.callback=null,a=o,typeof _!="function")throw Error(p(191,_));_.call(a)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(i){if(i===th)throw Error(p(174));return i}function yh(i,s){switch(G(wh,s),G(vh,i),G(uh,th),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:lb(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=lb(s,i)}E(uh),G(uh,s)}function zh(){E(uh),E(vh),E(wh)}function Ah(i){xh(wh.current);var s=xh(uh.current),o=lb(s,i.type);s!==o&&(G(vh,i),G(uh,o))}function Bh(i){vh.current===i&&(E(uh),E(vh))}var L=Uf(0);function Ch(i){for(var s=i;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Dh=[];function Eh(){for(var i=0;i<Dh.length;i++)Dh[i]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p(321))}function Mh(i,s){if(s===null)return!1;for(var o=0;o<s.length&&o<i.length;o++)if(!He(i[o],s[o]))return!1;return!0}function Nh(i,s,o,a,_,$){if(Hh=$,M=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Fh.current=i===null||i.memoizedState===null?Oh:Ph,i=o(a,_),Jh){$=0;do{if(Jh=!1,Kh=0,25<=$)throw Error(p(301));$+=1,O=N=null,s.updateQueue=null,Fh.current=Qh,i=o(a,_)}while(Jh)}if(Fh.current=Rh,s=N!==null&&N.next!==null,Hh=0,O=N=M=null,Ih=!1,s)throw Error(p(300));return i}function Sh(){var i=Kh!==0;return Kh=0,i}function Th(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M.memoizedState=O=i:O=O.next=i,O}function Uh(){if(N===null){var i=M.alternate;i=i!==null?i.memoizedState:null}else i=N.next;var s=O===null?M.memoizedState:O.next;if(s!==null)O=s,N=i;else{if(i===null)throw Error(p(310));N=i,i={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M.memoizedState=O=i:O=O.next=i}return O}function Vh(i,s){return typeof s=="function"?s(i):s}function Wh(i){var s=Uh(),o=s.queue;if(o===null)throw Error(p(311));o.lastRenderedReducer=i;var a=N,_=a.baseQueue,$=o.pending;if($!==null){if(_!==null){var j=_.next;_.next=$.next,$.next=j}a.baseQueue=_=$,o.pending=null}if(_!==null){$=_.next,a=a.baseState;var _e=j=null,et=null,tt=$;do{var rt=tt.lane;if((Hh&rt)===rt)et!==null&&(et=et.next={lane:0,action:tt.action,hasEagerState:tt.hasEagerState,eagerState:tt.eagerState,next:null}),a=tt.hasEagerState?tt.eagerState:i(a,tt.action);else{var it={lane:rt,action:tt.action,hasEagerState:tt.hasEagerState,eagerState:tt.eagerState,next:null};et===null?(_e=et=it,j=a):et=et.next=it,M.lanes|=rt,rh|=rt}tt=tt.next}while(tt!==null&&tt!==$);et===null?j=a:et.next=_e,He(a,s.memoizedState)||(dh=!0),s.memoizedState=a,s.baseState=j,s.baseQueue=et,o.lastRenderedState=a}if(i=o.interleaved,i!==null){_=i;do $=_.lane,M.lanes|=$,rh|=$,_=_.next;while(_!==i)}else _===null&&(o.lanes=0);return[s.memoizedState,o.dispatch]}function Xh(i){var s=Uh(),o=s.queue;if(o===null)throw Error(p(311));o.lastRenderedReducer=i;var a=o.dispatch,_=o.pending,$=s.memoizedState;if(_!==null){o.pending=null;var j=_=_.next;do $=i($,j.action),j=j.next;while(j!==_);He($,s.memoizedState)||(dh=!0),s.memoizedState=$,s.baseQueue===null&&(s.baseState=$),o.lastRenderedState=$}return[$,a]}function Yh(){}function Zh(i,s){var o=M,a=Uh(),_=s(),$=!He(a.memoizedState,_);if($&&(a.memoizedState=_,dh=!0),a=a.queue,$h(ai.bind(null,o,a,i),[i]),a.getSnapshot!==s||$||O!==null&&O.memoizedState.tag&1){if(o.flags|=2048,bi(9,ci.bind(null,o,a,_,s),void 0,null),Q===null)throw Error(p(349));Hh&30||di(o,s,_)}return _}function di(i,s,o){i.flags|=16384,i={getSnapshot:s,value:o},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.stores=[i]):(o=s.stores,o===null?s.stores=[i]:o.push(i))}function ci(i,s,o,a){s.value=o,s.getSnapshot=a,ei(s)&&fi(i)}function ai(i,s,o){return o(function(){ei(s)&&fi(i)})}function ei(i){var s=i.getSnapshot;i=i.value;try{var o=s();return!He(i,o)}catch{return!0}}function fi(i){var s=ih(i,1);s!==null&&gi(s,i,1,-1)}function hi(i){var s=Th();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:i},s.queue=i,i=i.dispatch=ii.bind(null,M,i),[s.memoizedState,i]}function bi(i,s,o,a){return i={tag:i,create:s,destroy:o,deps:a,next:null},s=M.updateQueue,s===null?(s={lastEffect:null,stores:null},M.updateQueue=s,s.lastEffect=i.next=i):(o=s.lastEffect,o===null?s.lastEffect=i.next=i:(a=o.next,o.next=i,i.next=a,s.lastEffect=i)),i}function ji(){return Uh().memoizedState}function ki(i,s,o,a){var _=Th();M.flags|=i,_.memoizedState=bi(1|s,o,void 0,a===void 0?null:a)}function li(i,s,o,a){var _=Uh();a=a===void 0?null:a;var $=void 0;if(N!==null){var j=N.memoizedState;if($=j.destroy,a!==null&&Mh(a,j.deps)){_.memoizedState=bi(s,o,$,a);return}}M.flags|=i,_.memoizedState=bi(1|s,o,$,a)}function mi(i,s){return ki(8390656,8,i,s)}function $h(i,s){return li(2048,8,i,s)}function ni(i,s){return li(4,2,i,s)}function oi(i,s){return li(4,4,i,s)}function pi(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function qi(i,s,o){return o=o!=null?o.concat([i]):null,li(4,4,pi.bind(null,s,i),o)}function ri(){}function si(i,s){var o=Uh();s=s===void 0?null:s;var a=o.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(o.memoizedState=[i,s],i)}function ti(i,s){var o=Uh();s=s===void 0?null:s;var a=o.memoizedState;return a!==null&&s!==null&&Mh(s,a[1])?a[0]:(i=i(),o.memoizedState=[i,s],i)}function ui(i,s,o){return Hh&21?(He(o,s)||(o=yc(),M.lanes|=o,rh|=o,i.baseState=!0),s):(i.baseState&&(i.baseState=!1,dh=!0),i.memoizedState=o)}function vi(i,s){var o=C;C=o!==0&&4>o?o:4,i(!0);var a=Gh.transition;Gh.transition={};try{i(!1),s()}finally{C=o,Gh.transition=a}}function wi(){return Uh().memoizedState}function xi(i,s,o){var a=yi(i);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},zi(i))Ai(s,o);else if(o=hh(i,s,o,a),o!==null){var _=R();gi(o,i,a,_),Bi(o,s,a)}}function ii(i,s,o){var a=yi(i),_={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(zi(i))Ai(s,_);else{var $=i.alternate;if(i.lanes===0&&($===null||$.lanes===0)&&($=s.lastRenderedReducer,$!==null))try{var j=s.lastRenderedState,_e=$(j,o);if(_.hasEagerState=!0,_.eagerState=_e,He(_e,j)){var et=s.interleaved;et===null?(_.next=_,gh(s)):(_.next=et.next,et.next=_),s.interleaved=_;return}}catch{}finally{}o=hh(i,s,_,a),o!==null&&(_=R(),gi(o,i,a,_),Bi(o,s,a))}}function zi(i){var s=i.alternate;return i===M||s!==null&&s===M}function Ai(i,s){Jh=Ih=!0;var o=i.pending;o===null?s.next=s:(s.next=o.next,o.next=s),i.pending=s}function Bi(i,s,o){if(o&4194240){var a=s.lanes;a&=i.pendingLanes,o|=a,s.lanes=o,Cc(i,o)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(i,s){return Th().memoizedState=[i,s===void 0?null:s],i},useContext:eh,useEffect:mi,useImperativeHandle:function(i,s,o){return o=o!=null?o.concat([i]):null,ki(4194308,4,pi.bind(null,s,i),o)},useLayoutEffect:function(i,s){return ki(4194308,4,i,s)},useInsertionEffect:function(i,s){return ki(4,2,i,s)},useMemo:function(i,s){var o=Th();return s=s===void 0?null:s,i=i(),o.memoizedState=[i,s],i},useReducer:function(i,s,o){var a=Th();return s=o!==void 0?o(s):s,a.memoizedState=a.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},a.queue=i,i=i.dispatch=xi.bind(null,M,i),[a.memoizedState,i]},useRef:function(i){var s=Th();return i={current:i},s.memoizedState=i},useState:hi,useDebugValue:ri,useDeferredValue:function(i){return Th().memoizedState=i},useTransition:function(){var i=hi(!1),s=i[0];return i=vi.bind(null,i[1]),Th().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,o){var a=M,_=Th();if(I){if(o===void 0)throw Error(p(407));o=o()}else{if(o=s(),Q===null)throw Error(p(349));Hh&30||di(a,s,o)}_.memoizedState=o;var $={value:o,getSnapshot:s};return _.queue=$,mi(ai.bind(null,a,$,i),[i]),a.flags|=2048,bi(9,ci.bind(null,a,$,o,s),void 0,null),o},useId:function(){var i=Th(),s=Q.identifierPrefix;if(I){var o=sg,a=rg;o=(a&~(1<<32-oc(a)-1)).toString(32)+o,s=":"+s+"R"+o,o=Kh++,0<o&&(s+="H"+o.toString(32)),s+=":"}else o=Lh++,s=":"+s+"r"+o.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(i){var s=Uh();return ui(s,N.memoizedState,i)},useTransition:function(){var i=Wh(Vh)[0],s=Uh().memoizedState;return[i,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(i){var s=Uh();return N===null?s.memoizedState=i:ui(s,N.memoizedState,i)},useTransition:function(){var i=Xh(Vh)[0],s=Uh().memoizedState;return[i,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(i,s){if(i&&i.defaultProps){s=A({},s),i=i.defaultProps;for(var o in i)s[o]===void 0&&(s[o]=i[o]);return s}return s}function Di(i,s,o,a){s=i.memoizedState,o=o(a,s),o=o==null?s:A({},s,o),i.memoizedState=o,i.lanes===0&&(i.updateQueue.baseState=o)}var Ei={isMounted:function(i){return(i=i._reactInternals)?Vb(i)===i:!1},enqueueSetState:function(i,s,o){i=i._reactInternals;var a=R(),_=yi(i),$=mh(a,_);$.payload=s,o!=null&&($.callback=o),s=nh(i,$,_),s!==null&&(gi(s,i,_,a),oh(s,i,_))},enqueueReplaceState:function(i,s,o){i=i._reactInternals;var a=R(),_=yi(i),$=mh(a,_);$.tag=1,$.payload=s,o!=null&&($.callback=o),s=nh(i,$,_),s!==null&&(gi(s,i,_,a),oh(s,i,_))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var o=R(),a=yi(i),_=mh(o,a);_.tag=2,s!=null&&(_.callback=s),s=nh(i,_,a),s!==null&&(gi(s,i,a,o),oh(s,i,a))}};function Fi(i,s,o,a,_,$,j){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(a,$,j):s.prototype&&s.prototype.isPureReactComponent?!Ie(o,a)||!Ie(_,$):!0}function Gi(i,s,o){var a=!1,_=Vf,$=s.contextType;return typeof $=="object"&&$!==null?$=eh($):(_=Zf(s)?Xf:H.current,a=s.contextTypes,$=(a=a!=null)?Yf(i,_):Vf),s=new s(o,$),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ei,i.stateNode=s,s._reactInternals=i,a&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=_,i.__reactInternalMemoizedMaskedChildContext=$),s}function Hi(i,s,o,a){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,a),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,a),s.state!==i&&Ei.enqueueReplaceState(s,s.state,null)}function Ii(i,s,o,a){var _=i.stateNode;_.props=o,_.state=i.memoizedState,_.refs={},kh(i);var $=s.contextType;typeof $=="object"&&$!==null?_.context=eh($):($=Zf(s)?Xf:H.current,_.context=Yf(i,$)),_.state=i.memoizedState,$=s.getDerivedStateFromProps,typeof $=="function"&&(Di(i,s,$,o),_.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(s=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),s!==_.state&&Ei.enqueueReplaceState(_,_.state,null),qh(i,o,_,a),_.state=i.memoizedState),typeof _.componentDidMount=="function"&&(i.flags|=4194308)}function Ji(i,s){try{var o="",a=s;do o+=Pa(a),a=a.return;while(a);var _=o}catch($){_=`
Error generating stack: `+$.message+`
`+$.stack}return{value:i,source:s,stack:_,digest:null}}function Ki(i,s,o){return{value:i,source:null,stack:o??null,digest:s??null}}function Li(i,s){try{console.error(s.value)}catch(o){setTimeout(function(){throw o})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(i,s,o){o=mh(-1,o),o.tag=3,o.payload={element:null};var a=s.value;return o.callback=function(){Oi||(Oi=!0,Pi=a),Li(i,s)},o}function Qi(i,s,o){o=mh(-1,o),o.tag=3;var a=i.type.getDerivedStateFromError;if(typeof a=="function"){var _=s.value;o.payload=function(){return a(_)},o.callback=function(){Li(i,s)}}var $=i.stateNode;return $!==null&&typeof $.componentDidCatch=="function"&&(o.callback=function(){Li(i,s),typeof a!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var j=s.stack;this.componentDidCatch(s.value,{componentStack:j!==null?j:""})}),o}function Si(i,s,o){var a=i.pingCache;if(a===null){a=i.pingCache=new Mi;var _=new Set;a.set(s,_)}else _=a.get(s),_===void 0&&(_=new Set,a.set(s,_));_.has(o)||(_.add(o),i=Ti.bind(null,i,s,o),s.then(i,i))}function Ui(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Vi(i,s,o,a,_){return i.mode&1?(i.flags|=65536,i.lanes=_,i):(i===s?i.flags|=65536:(i.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(s=mh(-1,1),s.tag=2,nh(o,s,1))),o.lanes|=1),i)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(i,s,o,a){s.child=i===null?Vg(s,null,o,a):Ug(s,i.child,o,a)}function Yi(i,s,o,a,_){o=o.render;var $=s.ref;return ch(s,_),a=Nh(i,s,o,a,$,_),o=Sh(),i!==null&&!dh?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~_,Zi(i,s,_)):(I&&o&&vg(s),s.flags|=1,Xi(i,s,a,_),s.child)}function $i(i,s,o,a,_){if(i===null){var $=o.type;return typeof $=="function"&&!aj($)&&$.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(s.tag=15,s.type=$,bj(i,s,$,a,_)):(i=Rg(o.type,null,a,s,s.mode,_),i.ref=s.ref,i.return=s,s.child=i)}if($=i.child,!(i.lanes&_)){var j=$.memoizedProps;if(o=o.compare,o=o!==null?o:Ie,o(j,a)&&i.ref===s.ref)return Zi(i,s,_)}return s.flags|=1,i=Pg($,a),i.ref=s.ref,i.return=s,s.child=i}function bj(i,s,o,a,_){if(i!==null){var $=i.memoizedProps;if(Ie($,a)&&i.ref===s.ref)if(dh=!1,s.pendingProps=a=$,(i.lanes&_)!==0)i.flags&131072&&(dh=!0);else return s.lanes=i.lanes,Zi(i,s,_)}return cj(i,s,o,a,_)}function dj(i,s,o){var a=s.pendingProps,_=a.children,$=i!==null?i.memoizedState:null;if(a.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=o;else{if(!(o&1073741824))return i=$!==null?$.baseLanes|o:o,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,G(ej,fj),fj|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=$!==null?$.baseLanes:o,G(ej,fj),fj|=a}else $!==null?(a=$.baseLanes|o,s.memoizedState=null):a=o,G(ej,fj),fj|=a;return Xi(i,s,_,o),s.child}function gj(i,s){var o=s.ref;(i===null&&o!==null||i!==null&&i.ref!==o)&&(s.flags|=512,s.flags|=2097152)}function cj(i,s,o,a,_){var $=Zf(o)?Xf:H.current;return $=Yf(s,$),ch(s,_),o=Nh(i,s,o,a,$,_),a=Sh(),i!==null&&!dh?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~_,Zi(i,s,_)):(I&&a&&vg(s),s.flags|=1,Xi(i,s,o,_),s.child)}function hj(i,s,o,a,_){if(Zf(o)){var $=!0;cg(s)}else $=!1;if(ch(s,_),s.stateNode===null)ij(i,s),Gi(s,o,a),Ii(s,o,a,_),a=!0;else if(i===null){var j=s.stateNode,_e=s.memoizedProps;j.props=_e;var et=j.context,tt=o.contextType;typeof tt=="object"&&tt!==null?tt=eh(tt):(tt=Zf(o)?Xf:H.current,tt=Yf(s,tt));var rt=o.getDerivedStateFromProps,it=typeof rt=="function"||typeof j.getSnapshotBeforeUpdate=="function";it||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(_e!==a||et!==tt)&&Hi(s,j,a,tt),jh=!1;var nt=s.memoizedState;j.state=nt,qh(s,a,j,_),et=s.memoizedState,_e!==a||nt!==et||Wf.current||jh?(typeof rt=="function"&&(Di(s,o,rt,a),et=s.memoizedState),(_e=jh||Fi(s,o,_e,a,nt,et,tt))?(it||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount()),typeof j.componentDidMount=="function"&&(s.flags|=4194308)):(typeof j.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=a,s.memoizedState=et),j.props=a,j.state=et,j.context=tt,a=_e):(typeof j.componentDidMount=="function"&&(s.flags|=4194308),a=!1)}else{j=s.stateNode,lh(i,s),_e=s.memoizedProps,tt=s.type===s.elementType?_e:Ci(s.type,_e),j.props=tt,it=s.pendingProps,nt=j.context,et=o.contextType,typeof et=="object"&&et!==null?et=eh(et):(et=Zf(o)?Xf:H.current,et=Yf(s,et));var ut=o.getDerivedStateFromProps;(rt=typeof ut=="function"||typeof j.getSnapshotBeforeUpdate=="function")||typeof j.UNSAFE_componentWillReceiveProps!="function"&&typeof j.componentWillReceiveProps!="function"||(_e!==it||nt!==et)&&Hi(s,j,a,et),jh=!1,nt=s.memoizedState,j.state=nt,qh(s,a,j,_);var ct=s.memoizedState;_e!==it||nt!==ct||Wf.current||jh?(typeof ut=="function"&&(Di(s,o,ut,a),ct=s.memoizedState),(tt=jh||Fi(s,o,tt,a,nt,ct,et)||!1)?(rt||typeof j.UNSAFE_componentWillUpdate!="function"&&typeof j.componentWillUpdate!="function"||(typeof j.componentWillUpdate=="function"&&j.componentWillUpdate(a,ct,et),typeof j.UNSAFE_componentWillUpdate=="function"&&j.UNSAFE_componentWillUpdate(a,ct,et)),typeof j.componentDidUpdate=="function"&&(s.flags|=4),typeof j.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof j.componentDidUpdate!="function"||_e===i.memoizedProps&&nt===i.memoizedState||(s.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||_e===i.memoizedProps&&nt===i.memoizedState||(s.flags|=1024),s.memoizedProps=a,s.memoizedState=ct),j.props=a,j.state=ct,j.context=et,a=tt):(typeof j.componentDidUpdate!="function"||_e===i.memoizedProps&&nt===i.memoizedState||(s.flags|=4),typeof j.getSnapshotBeforeUpdate!="function"||_e===i.memoizedProps&&nt===i.memoizedState||(s.flags|=1024),a=!1)}return jj(i,s,o,a,$,_)}function jj(i,s,o,a,_,$){gj(i,s);var j=(s.flags&128)!==0;if(!a&&!j)return _&&dg(s,o,!1),Zi(i,s,$);a=s.stateNode,Wi.current=s;var _e=j&&typeof o.getDerivedStateFromError!="function"?null:a.render();return s.flags|=1,i!==null&&j?(s.child=Ug(s,i.child,null,$),s.child=Ug(s,null,_e,$)):Xi(i,s,_e,$),s.memoizedState=a.state,_&&dg(s,o,!0),s.child}function kj(i){var s=i.stateNode;s.pendingContext?ag(i,s.pendingContext,s.pendingContext!==s.context):s.context&&ag(i,s.context,!1),yh(i,s.containerInfo)}function lj(i,s,o,a,_){return Ig(),Jg(_),s.flags|=256,Xi(i,s,o,a),s.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(i){return{baseLanes:i,cachePool:null,transitions:null}}function oj(i,s,o){var a=s.pendingProps,_=L.current,$=!1,j=(s.flags&128)!==0,_e;if((_e=j)||(_e=i!==null&&i.memoizedState===null?!1:(_&2)!==0),_e?($=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(_|=1),G(L,_&1),i===null)return Eg(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(s.mode&1?i.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(j=a.children,i=a.fallback,$?(a=s.mode,$=s.child,j={mode:"hidden",children:j},!(a&1)&&$!==null?($.childLanes=0,$.pendingProps=j):$=pj(j,a,0,null),i=Tg(i,a,o,null),$.return=s,i.return=s,$.sibling=i,s.child=$,s.child.memoizedState=nj(o),s.memoizedState=mj,i):qj(s,j));if(_=i.memoizedState,_!==null&&(_e=_.dehydrated,_e!==null))return rj(i,s,j,a,_e,_,o);if($){$=a.fallback,j=s.mode,_=i.child,_e=_.sibling;var et={mode:"hidden",children:a.children};return!(j&1)&&s.child!==_?(a=s.child,a.childLanes=0,a.pendingProps=et,s.deletions=null):(a=Pg(_,et),a.subtreeFlags=_.subtreeFlags&14680064),_e!==null?$=Pg(_e,$):($=Tg($,j,o,null),$.flags|=2),$.return=s,a.return=s,a.sibling=$,s.child=a,a=$,$=s.child,j=i.child.memoizedState,j=j===null?nj(o):{baseLanes:j.baseLanes|o,cachePool:null,transitions:j.transitions},$.memoizedState=j,$.childLanes=i.childLanes&~o,s.memoizedState=mj,a}return $=i.child,i=$.sibling,a=Pg($,{mode:"visible",children:a.children}),!(s.mode&1)&&(a.lanes=o),a.return=s,a.sibling=null,i!==null&&(o=s.deletions,o===null?(s.deletions=[i],s.flags|=16):o.push(i)),s.child=a,s.memoizedState=null,a}function qj(i,s){return s=pj({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function sj(i,s,o,a){return a!==null&&Jg(a),Ug(s,i.child,null,o),i=qj(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function rj(i,s,o,a,_,$,j){if(o)return s.flags&256?(s.flags&=-257,a=Ki(Error(p(422))),sj(i,s,j,a)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):($=a.fallback,_=s.mode,a=pj({mode:"visible",children:a.children},_,0,null),$=Tg($,_,j,null),$.flags|=2,a.return=s,$.return=s,a.sibling=$,s.child=a,s.mode&1&&Ug(s,i.child,null,j),s.child.memoizedState=nj(j),s.memoizedState=mj,$);if(!(s.mode&1))return sj(i,s,j,null);if(_.data==="$!"){if(a=_.nextSibling&&_.nextSibling.dataset,a)var _e=a.dgst;return a=_e,$=Error(p(419)),a=Ki($,a,void 0),sj(i,s,j,a)}if(_e=(j&i.childLanes)!==0,dh||_e){if(a=Q,a!==null){switch(j&-j){case 4:_=2;break;case 16:_=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:_=32;break;case 536870912:_=268435456;break;default:_=0}_=_&(a.suspendedLanes|j)?0:_,_!==0&&_!==$.retryLane&&($.retryLane=_,ih(i,_),gi(a,i,_,-1))}return tj(),a=Ki(Error(p(421))),sj(i,s,j,a)}return _.data==="$?"?(s.flags|=128,s.child=i.child,s=uj.bind(null,i),_._reactRetry=s,null):(i=$.treeContext,yg=Lf(_.nextSibling),xg=s,I=!0,zg=null,i!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=i.id,sg=i.overflow,qg=s),s=qj(s,a.children),s.flags|=4096,s)}function vj(i,s,o){i.lanes|=s;var a=i.alternate;a!==null&&(a.lanes|=s),bh(i.return,s,o)}function wj(i,s,o,a,_){var $=i.memoizedState;$===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:_}:($.isBackwards=s,$.rendering=null,$.renderingStartTime=0,$.last=a,$.tail=o,$.tailMode=_)}function xj(i,s,o){var a=s.pendingProps,_=a.revealOrder,$=a.tail;if(Xi(i,s,a.children,o),a=L.current,a&2)a=a&1|2,s.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&vj(i,o,s);else if(i.tag===19)vj(i,o,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}a&=1}if(G(L,a),!(s.mode&1))s.memoizedState=null;else switch(_){case"forwards":for(o=s.child,_=null;o!==null;)i=o.alternate,i!==null&&Ch(i)===null&&(_=o),o=o.sibling;o=_,o===null?(_=s.child,s.child=null):(_=o.sibling,o.sibling=null),wj(s,!1,_,o,$);break;case"backwards":for(o=null,_=s.child,s.child=null;_!==null;){if(i=_.alternate,i!==null&&Ch(i)===null){s.child=_;break}i=_.sibling,_.sibling=o,o=_,_=i}wj(s,!0,o,null,$);break;case"together":wj(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ij(i,s){!(s.mode&1)&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Zi(i,s,o){if(i!==null&&(s.dependencies=i.dependencies),rh|=s.lanes,!(o&s.childLanes))return null;if(i!==null&&s.child!==i.child)throw Error(p(153));if(s.child!==null){for(i=s.child,o=Pg(i,i.pendingProps),s.child=o,o.return=s;i.sibling!==null;)i=i.sibling,o=o.sibling=Pg(i,i.pendingProps),o.return=s;o.sibling=null}return s.child}function yj(i,s,o){switch(s.tag){case 3:kj(s),Ig();break;case 5:Ah(s);break;case 1:Zf(s.type)&&cg(s);break;case 4:yh(s,s.stateNode.containerInfo);break;case 10:var a=s.type._context,_=s.memoizedProps.value;G(Wg,a._currentValue),a._currentValue=_;break;case 13:if(a=s.memoizedState,a!==null)return a.dehydrated!==null?(G(L,L.current&1),s.flags|=128,null):o&s.child.childLanes?oj(i,s,o):(G(L,L.current&1),i=Zi(i,s,o),i!==null?i.sibling:null);G(L,L.current&1);break;case 19:if(a=(o&s.childLanes)!==0,i.flags&128){if(a)return xj(i,s,o);s.flags|=128}if(_=s.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),G(L,L.current),a)break;return null;case 22:case 23:return s.lanes=0,dj(i,s,o)}return Zi(i,s,o)}var zj,Aj,Bj,Cj;zj=function(i,s){for(var o=s.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return;o=o.return}o.sibling.return=o.return,o=o.sibling}};Aj=function(){};Bj=function(i,s,o,a){var _=i.memoizedProps;if(_!==a){i=s.stateNode,xh(uh.current);var $=null;switch(o){case"input":_=Ya(i,_),a=Ya(i,a),$=[];break;case"select":_=A({},_,{value:void 0}),a=A({},a,{value:void 0}),$=[];break;case"textarea":_=gb(i,_),a=gb(i,a),$=[];break;default:typeof _.onClick!="function"&&typeof a.onClick=="function"&&(i.onclick=Bf)}ub(o,a);var j;o=null;for(tt in _)if(!a.hasOwnProperty(tt)&&_.hasOwnProperty(tt)&&_[tt]!=null)if(tt==="style"){var _e=_[tt];for(j in _e)_e.hasOwnProperty(j)&&(o||(o={}),o[j]="")}else tt!=="dangerouslySetInnerHTML"&&tt!=="children"&&tt!=="suppressContentEditableWarning"&&tt!=="suppressHydrationWarning"&&tt!=="autoFocus"&&(ea.hasOwnProperty(tt)?$||($=[]):($=$||[]).push(tt,null));for(tt in a){var et=a[tt];if(_e=_!=null?_[tt]:void 0,a.hasOwnProperty(tt)&&et!==_e&&(et!=null||_e!=null))if(tt==="style")if(_e){for(j in _e)!_e.hasOwnProperty(j)||et&&et.hasOwnProperty(j)||(o||(o={}),o[j]="");for(j in et)et.hasOwnProperty(j)&&_e[j]!==et[j]&&(o||(o={}),o[j]=et[j])}else o||($||($=[]),$.push(tt,o)),o=et;else tt==="dangerouslySetInnerHTML"?(et=et?et.__html:void 0,_e=_e?_e.__html:void 0,et!=null&&_e!==et&&($=$||[]).push(tt,et)):tt==="children"?typeof et!="string"&&typeof et!="number"||($=$||[]).push(tt,""+et):tt!=="suppressContentEditableWarning"&&tt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(tt)?(et!=null&&tt==="onScroll"&&D("scroll",i),$||_e===et||($=[])):($=$||[]).push(tt,et))}o&&($=$||[]).push("style",o);var tt=$;(s.updateQueue=tt)&&(s.flags|=4)}};Cj=function(i,s,o,a){o!==a&&(s.flags|=4)};function Dj(i,s){if(!I)switch(i.tailMode){case"hidden":s=i.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?i.tail=null:o.sibling=null;break;case"collapsed":o=i.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:a.sibling=null}}function S(i){var s=i.alternate!==null&&i.alternate.child===i.child,o=0,a=0;if(s)for(var _=i.child;_!==null;)o|=_.lanes|_.childLanes,a|=_.subtreeFlags&14680064,a|=_.flags&14680064,_.return=i,_=_.sibling;else for(_=i.child;_!==null;)o|=_.lanes|_.childLanes,a|=_.subtreeFlags,a|=_.flags,_.return=i,_=_.sibling;return i.subtreeFlags|=a,i.childLanes=o,s}function Ej(i,s,o){var a=s.pendingProps;switch(wg(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(s),null;case 1:return Zf(s.type)&&$f(),S(s),null;case 3:return a=s.stateNode,zh(),E(Wf),E(H),Eh(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(i===null||i.child===null)&&(Gg(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(i,s),S(s),null;case 5:Bh(s);var _=xh(wh.current);if(o=s.type,i!==null&&s.stateNode!=null)Bj(i,s,o,a,_),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!a){if(s.stateNode===null)throw Error(p(166));return S(s),null}if(i=xh(uh.current),Gg(s)){a=s.stateNode,o=s.type;var $=s.memoizedProps;switch(a[Of]=s,a[Pf]=$,i=(s.mode&1)!==0,o){case"dialog":D("cancel",a),D("close",a);break;case"iframe":case"object":case"embed":D("load",a);break;case"video":case"audio":for(_=0;_<lf.length;_++)D(lf[_],a);break;case"source":D("error",a);break;case"img":case"image":case"link":D("error",a),D("load",a);break;case"details":D("toggle",a);break;case"input":Za(a,$),D("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!$.multiple},D("invalid",a);break;case"textarea":hb(a,$),D("invalid",a)}ub(o,$),_=null;for(var j in $)if($.hasOwnProperty(j)){var _e=$[j];j==="children"?typeof _e=="string"?a.textContent!==_e&&($.suppressHydrationWarning!==!0&&Af(a.textContent,_e,i),_=["children",_e]):typeof _e=="number"&&a.textContent!==""+_e&&($.suppressHydrationWarning!==!0&&Af(a.textContent,_e,i),_=["children",""+_e]):ea.hasOwnProperty(j)&&_e!=null&&j==="onScroll"&&D("scroll",a)}switch(o){case"input":Va(a),db(a,$,!0);break;case"textarea":Va(a),jb(a);break;case"select":case"option":break;default:typeof $.onClick=="function"&&(a.onclick=Bf)}a=_,s.updateQueue=a,a!==null&&(s.flags|=4)}else{j=_.nodeType===9?_:_.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=kb(o)),i==="http://www.w3.org/1999/xhtml"?o==="script"?(i=j.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof a.is=="string"?i=j.createElement(o,{is:a.is}):(i=j.createElement(o),o==="select"&&(j=i,a.multiple?j.multiple=!0:a.size&&(j.size=a.size))):i=j.createElementNS(i,o),i[Of]=s,i[Pf]=a,zj(i,s,!1,!1),s.stateNode=i;e:{switch(j=vb(o,a),o){case"dialog":D("cancel",i),D("close",i),_=a;break;case"iframe":case"object":case"embed":D("load",i),_=a;break;case"video":case"audio":for(_=0;_<lf.length;_++)D(lf[_],i);_=a;break;case"source":D("error",i),_=a;break;case"img":case"image":case"link":D("error",i),D("load",i),_=a;break;case"details":D("toggle",i),_=a;break;case"input":Za(i,a),_=Ya(i,a),D("invalid",i);break;case"option":_=a;break;case"select":i._wrapperState={wasMultiple:!!a.multiple},_=A({},a,{value:void 0}),D("invalid",i);break;case"textarea":hb(i,a),_=gb(i,a),D("invalid",i);break;default:_=a}ub(o,_),_e=_;for($ in _e)if(_e.hasOwnProperty($)){var et=_e[$];$==="style"?sb(i,et):$==="dangerouslySetInnerHTML"?(et=et?et.__html:void 0,et!=null&&nb(i,et)):$==="children"?typeof et=="string"?(o!=="textarea"||et!=="")&&ob(i,et):typeof et=="number"&&ob(i,""+et):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(ea.hasOwnProperty($)?et!=null&&$==="onScroll"&&D("scroll",i):et!=null&&ta(i,$,et,j))}switch(o){case"input":Va(i),db(i,a,!1);break;case"textarea":Va(i),jb(i);break;case"option":a.value!=null&&i.setAttribute("value",""+Sa(a.value));break;case"select":i.multiple=!!a.multiple,$=a.value,$!=null?fb(i,!!a.multiple,$,!1):a.defaultValue!=null&&fb(i,!!a.multiple,a.defaultValue,!0);break;default:typeof _.onClick=="function"&&(i.onclick=Bf)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return S(s),null;case 6:if(i&&s.stateNode!=null)Cj(i,s,i.memoizedProps,a);else{if(typeof a!="string"&&s.stateNode===null)throw Error(p(166));if(o=xh(wh.current),xh(uh.current),Gg(s)){if(a=s.stateNode,o=s.memoizedProps,a[Of]=s,($=a.nodeValue!==o)&&(i=xg,i!==null))switch(i.tag){case 3:Af(a.nodeValue,o,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Af(a.nodeValue,o,(i.mode&1)!==0)}$&&(s.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[Of]=s,s.stateNode=a}return S(s),null;case 13:if(E(L),a=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(I&&yg!==null&&s.mode&1&&!(s.flags&128))Hg(),Ig(),s.flags|=98560,$=!1;else if($=Gg(s),a!==null&&a.dehydrated!==null){if(i===null){if(!$)throw Error(p(318));if($=s.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error(p(317));$[Of]=s}else Ig(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;S(s),$=!1}else zg!==null&&(Fj(zg),zg=null),$=!0;if(!$)return s.flags&65536?s:null}return s.flags&128?(s.lanes=o,s):(a=a!==null,a!==(i!==null&&i.memoizedState!==null)&&a&&(s.child.flags|=8192,s.mode&1&&(i===null||L.current&1?T===0&&(T=3):tj())),s.updateQueue!==null&&(s.flags|=4),S(s),null);case 4:return zh(),Aj(i,s),i===null&&sf(s.stateNode.containerInfo),S(s),null;case 10:return ah(s.type._context),S(s),null;case 17:return Zf(s.type)&&$f(),S(s),null;case 19:if(E(L),$=s.memoizedState,$===null)return S(s),null;if(a=(s.flags&128)!==0,j=$.rendering,j===null)if(a)Dj($,!1);else{if(T!==0||i!==null&&i.flags&128)for(i=s.child;i!==null;){if(j=Ch(i),j!==null){for(s.flags|=128,Dj($,!1),a=j.updateQueue,a!==null&&(s.updateQueue=a,s.flags|=4),s.subtreeFlags=0,a=o,o=s.child;o!==null;)$=o,i=a,$.flags&=14680066,j=$.alternate,j===null?($.childLanes=0,$.lanes=i,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null):($.childLanes=j.childLanes,$.lanes=j.lanes,$.child=j.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=j.memoizedProps,$.memoizedState=j.memoizedState,$.updateQueue=j.updateQueue,$.type=j.type,i=j.dependencies,$.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),o=o.sibling;return G(L,L.current&1|2),s.child}i=i.sibling}$.tail!==null&&B()>Gj&&(s.flags|=128,a=!0,Dj($,!1),s.lanes=4194304)}else{if(!a)if(i=Ch(j),i!==null){if(s.flags|=128,a=!0,o=i.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),Dj($,!0),$.tail===null&&$.tailMode==="hidden"&&!j.alternate&&!I)return S(s),null}else 2*B()-$.renderingStartTime>Gj&&o!==1073741824&&(s.flags|=128,a=!0,Dj($,!1),s.lanes=4194304);$.isBackwards?(j.sibling=s.child,s.child=j):(o=$.last,o!==null?o.sibling=j:s.child=j,$.last=j)}return $.tail!==null?(s=$.tail,$.rendering=s,$.tail=s.sibling,$.renderingStartTime=B(),s.sibling=null,o=L.current,G(L,a?o&1|2:o&1),s):(S(s),null);case 22:case 23:return Hj(),a=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==a&&(s.flags|=8192),a&&s.mode&1?fj&1073741824&&(S(s),s.subtreeFlags&6&&(s.flags|=8192)):S(s),null;case 24:return null;case 25:return null}throw Error(p(156,s.tag))}function Ij(i,s){switch(wg(s),s.tag){case 1:return Zf(s.type)&&$f(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return zh(),E(Wf),E(H),Eh(),i=s.flags,i&65536&&!(i&128)?(s.flags=i&-65537|128,s):null;case 5:return Bh(s),null;case 13:if(E(L),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(p(340));Ig()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(s.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(i,s){var o=i.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){W(i,s,a)}else o.current=null}function Mj(i,s,o){try{o()}catch(a){W(i,s,a)}}var Nj=!1;function Oj(i,s){if(Cf=dd,i=Me(),Ne(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{o=(o=i.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var _=a.anchorOffset,$=a.focusNode;a=a.focusOffset;try{o.nodeType,$.nodeType}catch{o=null;break e}var j=0,_e=-1,et=-1,tt=0,rt=0,it=i,nt=null;t:for(;;){for(var ut;it!==o||_!==0&&it.nodeType!==3||(_e=j+_),it!==$||a!==0&&it.nodeType!==3||(et=j+a),it.nodeType===3&&(j+=it.nodeValue.length),(ut=it.firstChild)!==null;)nt=it,it=ut;for(;;){if(it===i)break t;if(nt===o&&++tt===_&&(_e=j),nt===$&&++rt===a&&(et=j),(ut=it.nextSibling)!==null)break;it=nt,nt=it.parentNode}it=ut}o=_e===-1||et===-1?null:{start:_e,end:et}}else o=null}o=o||{start:0,end:0}}else o=null;for(Df={focusedElem:i,selectionRange:o},dd=!1,V=s;V!==null;)if(s=V,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,V=i;else for(;V!==null;){s=V;try{var ct=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ct!==null){var st=ct.memoizedProps,dt=ct.memoizedState,ot=s.stateNode,lt=ot.getSnapshotBeforeUpdate(s.elementType===s.type?st:Ci(s.type,st),dt);ot.__reactInternalSnapshotBeforeUpdate=lt}break;case 3:var at=s.stateNode.containerInfo;at.nodeType===1?at.textContent="":at.nodeType===9&&at.documentElement&&at.removeChild(at.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(ft){W(s,s.return,ft)}if(i=s.sibling,i!==null){i.return=s.return,V=i;break}V=s.return}return ct=Nj,Nj=!1,ct}function Pj(i,s,o){var a=s.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var _=a=a.next;do{if((_.tag&i)===i){var $=_.destroy;_.destroy=void 0,$!==void 0&&Mj(s,o,$)}_=_.next}while(_!==a)}}function Qj(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&i)===i){var a=o.create;o.destroy=a()}o=o.next}while(o!==s)}}function Rj(i){var s=i.ref;if(s!==null){var o=i.stateNode;switch(i.tag){case 5:i=o;break;default:i=o}typeof s=="function"?s(i):s.current=i}}function Sj(i){var s=i.alternate;s!==null&&(i.alternate=null,Sj(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[Of],delete s[Pf],delete s[of],delete s[Qf],delete s[Rf])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Tj(i){return i.tag===5||i.tag===3||i.tag===4}function Uj(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Tj(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vj(i,s,o){var a=i.tag;if(a===5||a===6)i=i.stateNode,s?o.nodeType===8?o.parentNode.insertBefore(i,s):o.insertBefore(i,s):(o.nodeType===8?(s=o.parentNode,s.insertBefore(i,o)):(s=o,s.appendChild(i)),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=Bf));else if(a!==4&&(i=i.child,i!==null))for(Vj(i,s,o),i=i.sibling;i!==null;)Vj(i,s,o),i=i.sibling}function Wj(i,s,o){var a=i.tag;if(a===5||a===6)i=i.stateNode,s?o.insertBefore(i,s):o.appendChild(i);else if(a!==4&&(i=i.child,i!==null))for(Wj(i,s,o),i=i.sibling;i!==null;)Wj(i,s,o),i=i.sibling}var X=null,Xj=!1;function Yj(i,s,o){for(o=o.child;o!==null;)Zj(i,s,o),o=o.sibling}function Zj(i,s,o){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,o)}catch{}switch(o.tag){case 5:U||Lj(o,s);case 6:var a=X,_=Xj;X=null,Yj(i,s,o),X=a,Xj=_,X!==null&&(Xj?(i=X,o=o.stateNode,i.nodeType===8?i.parentNode.removeChild(o):i.removeChild(o)):X.removeChild(o.stateNode));break;case 18:X!==null&&(Xj?(i=X,o=o.stateNode,i.nodeType===8?Kf(i.parentNode,o):i.nodeType===1&&Kf(i,o),bd(i)):Kf(X,o.stateNode));break;case 4:a=X,_=Xj,X=o.stateNode.containerInfo,Xj=!0,Yj(i,s,o),X=a,Xj=_;break;case 0:case 11:case 14:case 15:if(!U&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){_=a=a.next;do{var $=_,j=$.destroy;$=$.tag,j!==void 0&&($&2||$&4)&&Mj(o,s,j),_=_.next}while(_!==a)}Yj(i,s,o);break;case 1:if(!U&&(Lj(o,s),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(_e){W(o,s,_e)}Yj(i,s,o);break;case 21:Yj(i,s,o);break;case 22:o.mode&1?(U=(a=U)||o.memoizedState!==null,Yj(i,s,o),U=a):Yj(i,s,o);break;default:Yj(i,s,o)}}function ak(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var o=i.stateNode;o===null&&(o=i.stateNode=new Kj),s.forEach(function(a){var _=bk.bind(null,i,a);o.has(a)||(o.add(a),a.then(_,_))})}}function ck(i,s){var o=s.deletions;if(o!==null)for(var a=0;a<o.length;a++){var _=o[a];try{var $=i,j=s,_e=j;e:for(;_e!==null;){switch(_e.tag){case 5:X=_e.stateNode,Xj=!1;break e;case 3:X=_e.stateNode.containerInfo,Xj=!0;break e;case 4:X=_e.stateNode.containerInfo,Xj=!0;break e}_e=_e.return}if(X===null)throw Error(p(160));Zj($,j,_),X=null,Xj=!1;var et=_.alternate;et!==null&&(et.return=null),_.return=null}catch(tt){W(_,s,tt)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)dk(s,i),s=s.sibling}function dk(i,s){var o=i.alternate,a=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(ck(s,i),ek(i),a&4){try{Pj(3,i,i.return),Qj(3,i)}catch(st){W(i,i.return,st)}try{Pj(5,i,i.return)}catch(st){W(i,i.return,st)}}break;case 1:ck(s,i),ek(i),a&512&&o!==null&&Lj(o,o.return);break;case 5:if(ck(s,i),ek(i),a&512&&o!==null&&Lj(o,o.return),i.flags&32){var _=i.stateNode;try{ob(_,"")}catch(st){W(i,i.return,st)}}if(a&4&&(_=i.stateNode,_!=null)){var $=i.memoizedProps,j=o!==null?o.memoizedProps:$,_e=i.type,et=i.updateQueue;if(i.updateQueue=null,et!==null)try{_e==="input"&&$.type==="radio"&&$.name!=null&&ab(_,$),vb(_e,j);var tt=vb(_e,$);for(j=0;j<et.length;j+=2){var rt=et[j],it=et[j+1];rt==="style"?sb(_,it):rt==="dangerouslySetInnerHTML"?nb(_,it):rt==="children"?ob(_,it):ta(_,rt,it,tt)}switch(_e){case"input":bb(_,$);break;case"textarea":ib(_,$);break;case"select":var nt=_._wrapperState.wasMultiple;_._wrapperState.wasMultiple=!!$.multiple;var ut=$.value;ut!=null?fb(_,!!$.multiple,ut,!1):nt!==!!$.multiple&&($.defaultValue!=null?fb(_,!!$.multiple,$.defaultValue,!0):fb(_,!!$.multiple,$.multiple?[]:"",!1))}_[Pf]=$}catch(st){W(i,i.return,st)}}break;case 6:if(ck(s,i),ek(i),a&4){if(i.stateNode===null)throw Error(p(162));_=i.stateNode,$=i.memoizedProps;try{_.nodeValue=$}catch(st){W(i,i.return,st)}}break;case 3:if(ck(s,i),ek(i),a&4&&o!==null&&o.memoizedState.isDehydrated)try{bd(s.containerInfo)}catch(st){W(i,i.return,st)}break;case 4:ck(s,i),ek(i);break;case 13:ck(s,i),ek(i),_=i.child,_.flags&8192&&($=_.memoizedState!==null,_.stateNode.isHidden=$,!$||_.alternate!==null&&_.alternate.memoizedState!==null||(fk=B())),a&4&&ak(i);break;case 22:if(rt=o!==null&&o.memoizedState!==null,i.mode&1?(U=(tt=U)||rt,ck(s,i),U=tt):ck(s,i),ek(i),a&8192){if(tt=i.memoizedState!==null,(i.stateNode.isHidden=tt)&&!rt&&i.mode&1)for(V=i,rt=i.child;rt!==null;){for(it=V=rt;V!==null;){switch(nt=V,ut=nt.child,nt.tag){case 0:case 11:case 14:case 15:Pj(4,nt,nt.return);break;case 1:Lj(nt,nt.return);var ct=nt.stateNode;if(typeof ct.componentWillUnmount=="function"){a=nt,o=nt.return;try{s=a,ct.props=s.memoizedProps,ct.state=s.memoizedState,ct.componentWillUnmount()}catch(st){W(a,o,st)}}break;case 5:Lj(nt,nt.return);break;case 22:if(nt.memoizedState!==null){gk(it);continue}}ut!==null?(ut.return=nt,V=ut):gk(it)}rt=rt.sibling}e:for(rt=null,it=i;;){if(it.tag===5){if(rt===null){rt=it;try{_=it.stateNode,tt?($=_.style,typeof $.setProperty=="function"?$.setProperty("display","none","important"):$.display="none"):(_e=it.stateNode,et=it.memoizedProps.style,j=et!=null&&et.hasOwnProperty("display")?et.display:null,_e.style.display=rb("display",j))}catch(st){W(i,i.return,st)}}}else if(it.tag===6){if(rt===null)try{it.stateNode.nodeValue=tt?"":it.memoizedProps}catch(st){W(i,i.return,st)}}else if((it.tag!==22&&it.tag!==23||it.memoizedState===null||it===i)&&it.child!==null){it.child.return=it,it=it.child;continue}if(it===i)break e;for(;it.sibling===null;){if(it.return===null||it.return===i)break e;rt===it&&(rt=null),it=it.return}rt===it&&(rt=null),it.sibling.return=it.return,it=it.sibling}}break;case 19:ck(s,i),ek(i),a&4&&ak(i);break;case 21:break;default:ck(s,i),ek(i)}}function ek(i){var s=i.flags;if(s&2){try{e:{for(var o=i.return;o!==null;){if(Tj(o)){var a=o;break e}o=o.return}throw Error(p(160))}switch(a.tag){case 5:var _=a.stateNode;a.flags&32&&(ob(_,""),a.flags&=-33);var $=Uj(i);Wj(i,$,_);break;case 3:case 4:var j=a.stateNode.containerInfo,_e=Uj(i);Vj(i,_e,j);break;default:throw Error(p(161))}}catch(et){W(i,i.return,et)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function hk(i,s,o){V=i,ik(i)}function ik(i,s,o){for(var a=(i.mode&1)!==0;V!==null;){var _=V,$=_.child;if(_.tag===22&&a){var j=_.memoizedState!==null||Jj;if(!j){var _e=_.alternate,et=_e!==null&&_e.memoizedState!==null||U;_e=Jj;var tt=U;if(Jj=j,(U=et)&&!tt)for(V=_;V!==null;)j=V,et=j.child,j.tag===22&&j.memoizedState!==null?jk(_):et!==null?(et.return=j,V=et):jk(_);for(;$!==null;)V=$,ik($),$=$.sibling;V=_,Jj=_e,U=tt}kk(i)}else _.subtreeFlags&8772&&$!==null?($.return=_,V=$):kk(i)}}function kk(i){for(;V!==null;){var s=V;if(s.flags&8772){var o=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:U||Qj(5,s);break;case 1:var a=s.stateNode;if(s.flags&4&&!U)if(o===null)a.componentDidMount();else{var _=s.elementType===s.type?o.memoizedProps:Ci(s.type,o.memoizedProps);a.componentDidUpdate(_,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var $=s.updateQueue;$!==null&&sh(s,$,a);break;case 3:var j=s.updateQueue;if(j!==null){if(o=null,s.child!==null)switch(s.child.tag){case 5:o=s.child.stateNode;break;case 1:o=s.child.stateNode}sh(s,j,o)}break;case 5:var _e=s.stateNode;if(o===null&&s.flags&4){o=_e;var et=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":et.autoFocus&&o.focus();break;case"img":et.src&&(o.src=et.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var tt=s.alternate;if(tt!==null){var rt=tt.memoizedState;if(rt!==null){var it=rt.dehydrated;it!==null&&bd(it)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||s.flags&512&&Rj(s)}catch(nt){W(s,s.return,nt)}}if(s===i){V=null;break}if(o=s.sibling,o!==null){o.return=s.return,V=o;break}V=s.return}}function gk(i){for(;V!==null;){var s=V;if(s===i){V=null;break}var o=s.sibling;if(o!==null){o.return=s.return,V=o;break}V=s.return}}function jk(i){for(;V!==null;){var s=V;try{switch(s.tag){case 0:case 11:case 15:var o=s.return;try{Qj(4,s)}catch(et){W(s,o,et)}break;case 1:var a=s.stateNode;if(typeof a.componentDidMount=="function"){var _=s.return;try{a.componentDidMount()}catch(et){W(s,_,et)}}var $=s.return;try{Rj(s)}catch(et){W(s,$,et)}break;case 5:var j=s.return;try{Rj(s)}catch(et){W(s,j,et)}}}catch(et){W(s,s.return,et)}if(s===i){V=null;break}var _e=s.sibling;if(_e!==null){_e.return=s.return,V=_e;break}V=s.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(i){return i.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(i=C,i!==0||(i=window.event,i=i===void 0?16:jd(i.type)),i):1}function gi(i,s,o,a){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(i,o,a),(!(K&2)||i!==Q)&&(i===Q&&(!(K&2)&&(qk|=o),T===4&&Ck(i,Z)),Dk(i,a),o===1&&K===0&&!(s.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(i,s){var o=i.callbackNode;wc(i,s);var a=uc(i,i===Q?Z:0);if(a===0)o!==null&&bc(o),i.callbackNode=null,i.callbackPriority=0;else if(s=a&-a,i.callbackPriority!==s){if(o!=null&&bc(o),s===1)i.tag===0?ig(Ek.bind(null,i)):hg(Ek.bind(null,i)),Jf(function(){!(K&6)&&jg()}),o=null;else{switch(Dc(a)){case 1:o=fc;break;case 4:o=gc;break;case 16:o=hc;break;case 536870912:o=jc;break;default:o=hc}o=Fk(o,Gk.bind(null,i))}i.callbackPriority=s,i.callbackNode=o}}function Gk(i,s){if(Ak=-1,Bk=0,K&6)throw Error(p(327));var o=i.callbackNode;if(Hk()&&i.callbackNode!==o)return null;var a=uc(i,i===Q?Z:0);if(a===0)return null;if(a&30||a&i.expiredLanes||s)s=Ik(i,a);else{s=a;var _=K;K|=2;var $=Jk();(Q!==i||Z!==s)&&(uk=null,Gj=B()+500,Kk(i,s));do try{Lk();break}catch(_e){Mk(i,_e)}while(!0);$g(),mk.current=$,K=_,Y!==null?s=0:(Q=null,Z=0,s=T)}if(s!==0){if(s===2&&(_=xc(i),_!==0&&(a=_,s=Nk(i,_))),s===1)throw o=pk,Kk(i,0),Ck(i,a),Dk(i,B()),o;if(s===6)Ck(i,a);else{if(_=i.current.alternate,!(a&30)&&!Ok(_)&&(s=Ik(i,a),s===2&&($=xc(i),$!==0&&(a=$,s=Nk(i,$))),s===1))throw o=pk,Kk(i,0),Ck(i,a),Dk(i,B()),o;switch(i.finishedWork=_,i.finishedLanes=a,s){case 0:case 1:throw Error(p(345));case 2:Pk(i,tk,uk);break;case 3:if(Ck(i,a),(a&130023424)===a&&(s=fk+500-B(),10<s)){if(uc(i,0)!==0)break;if(_=i.suspendedLanes,(_&a)!==a){R(),i.pingedLanes|=i.suspendedLanes&_;break}i.timeoutHandle=Ff(Pk.bind(null,i,tk,uk),s);break}Pk(i,tk,uk);break;case 4:if(Ck(i,a),(a&4194240)===a)break;for(s=i.eventTimes,_=-1;0<a;){var j=31-oc(a);$=1<<j,j=s[j],j>_&&(_=j),a&=~$}if(a=_,a=B()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*lk(a/1960))-a,10<a){i.timeoutHandle=Ff(Pk.bind(null,i,tk,uk),a);break}Pk(i,tk,uk);break;case 5:Pk(i,tk,uk);break;default:throw Error(p(329))}}}return Dk(i,B()),i.callbackNode===o?Gk.bind(null,i):null}function Nk(i,s){var o=sk;return i.current.memoizedState.isDehydrated&&(Kk(i,s).flags|=256),i=Ik(i,s),i!==2&&(s=tk,tk=o,s!==null&&Fj(s)),i}function Fj(i){tk===null?tk=i:tk.push.apply(tk,i)}function Ok(i){for(var s=i;;){if(s.flags&16384){var o=s.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var _=o[a],$=_.getSnapshot;_=_.value;try{if(!He($(),_))return!1}catch{return!1}}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ck(i,s){for(s&=~rk,s&=~qk,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var o=31-oc(s),a=1<<o;i[o]=-1,s&=~a}}function Ek(i){if(K&6)throw Error(p(327));Hk();var s=uc(i,0);if(!(s&1))return Dk(i,B()),null;var o=Ik(i,s);if(i.tag!==0&&o===2){var a=xc(i);a!==0&&(s=a,o=Nk(i,a))}if(o===1)throw o=pk,Kk(i,0),Ck(i,s),Dk(i,B()),o;if(o===6)throw Error(p(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,Pk(i,tk,uk),Dk(i,B()),null}function Qk(i,s){var o=K;K|=1;try{return i(s)}finally{K=o,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(i){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var s=K;K|=1;var o=ok.transition,a=C;try{if(ok.transition=null,C=1,i)return i()}finally{C=a,ok.transition=o,K=s,!(K&6)&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(i,s){i.finishedWork=null,i.finishedLanes=0;var o=i.timeoutHandle;if(o!==-1&&(i.timeoutHandle=-1,Gf(o)),Y!==null)for(o=Y.return;o!==null;){var a=o;switch(wg(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(a);break;case 4:zh();break;case 13:E(L);break;case 19:E(L);break;case 10:ah(a.type._context);break;case 22:case 23:Hj()}o=o.return}if(Q=i,Y=i=Pg(i.current,null),Z=fj=s,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(s=0;s<fh.length;s++)if(o=fh[s],a=o.interleaved,a!==null){o.interleaved=null;var _=a.next,$=o.pending;if($!==null){var j=$.next;$.next=_,a.next=j}o.pending=a}fh=null}return i}function Mk(i,s){do{var o=Y;try{if($g(),Fh.current=Rh,Ih){for(var a=M.memoizedState;a!==null;){var _=a.queue;_!==null&&(_.pending=null),a=a.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,o===null||o.return===null){T=1,pk=s,Y=null;break}e:{var $=i,j=o.return,_e=o,et=s;if(s=Z,_e.flags|=32768,et!==null&&typeof et=="object"&&typeof et.then=="function"){var tt=et,rt=_e,it=rt.tag;if(!(rt.mode&1)&&(it===0||it===11||it===15)){var nt=rt.alternate;nt?(rt.updateQueue=nt.updateQueue,rt.memoizedState=nt.memoizedState,rt.lanes=nt.lanes):(rt.updateQueue=null,rt.memoizedState=null)}var ut=Ui(j);if(ut!==null){ut.flags&=-257,Vi(ut,j,_e,$,s),ut.mode&1&&Si($,tt,s),s=ut,et=tt;var ct=s.updateQueue;if(ct===null){var st=new Set;st.add(et),s.updateQueue=st}else ct.add(et);break e}else{if(!(s&1)){Si($,tt,s),tj();break e}et=Error(p(426))}}else if(I&&_e.mode&1){var dt=Ui(j);if(dt!==null){!(dt.flags&65536)&&(dt.flags|=256),Vi(dt,j,_e,$,s),Jg(Ji(et,_e));break e}}$=et=Ji(et,_e),T!==4&&(T=2),sk===null?sk=[$]:sk.push($),$=j;do{switch($.tag){case 3:$.flags|=65536,s&=-s,$.lanes|=s;var ot=Ni($,et,s);ph($,ot);break e;case 1:_e=et;var lt=$.type,at=$.stateNode;if(!($.flags&128)&&(typeof lt.getDerivedStateFromError=="function"||at!==null&&typeof at.componentDidCatch=="function"&&(Ri===null||!Ri.has(at)))){$.flags|=65536,s&=-s,$.lanes|=s;var ft=Qi($,_e,s);ph($,ft);break e}}$=$.return}while($!==null)}Sk(o)}catch(ht){s=ht,Y===o&&o!==null&&(Y=o=o.return);continue}break}while(!0)}function Jk(){var i=mk.current;return mk.current=Rh,i===null?Rh:i}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(i,s){var o=K;K|=2;var a=Jk();(Q!==i||Z!==s)&&(uk=null,Kk(i,s));do try{Tk();break}catch(_){Mk(i,_)}while(!0);if($g(),K=o,mk.current=a,Y!==null)throw Error(p(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(i){var s=Vk(i.alternate,i,fj);i.memoizedProps=i.pendingProps,s===null?Sk(i):Y=s,nk.current=null}function Sk(i){var s=i;do{var o=s.alternate;if(i=s.return,s.flags&32768){if(o=Ij(o,s),o!==null){o.flags&=32767,Y=o;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{T=6,Y=null;return}}else if(o=Ej(o,s,fj),o!==null){Y=o;return}if(s=s.sibling,s!==null){Y=s;return}Y=s=i}while(s!==null);T===0&&(T=5)}function Pk(i,s,o){var a=C,_=ok.transition;try{ok.transition=null,C=1,Wk(i,s,o,a)}finally{ok.transition=_,C=a}return null}function Wk(i,s,o,a){do Hk();while(wk!==null);if(K&6)throw Error(p(327));o=i.finishedWork;var _=i.finishedLanes;if(o===null)return null;if(i.finishedWork=null,i.finishedLanes=0,o===i.current)throw Error(p(177));i.callbackNode=null,i.callbackPriority=0;var $=o.lanes|o.childLanes;if(Bc(i,$),i===Q&&(Y=Q=null,Z=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),$=(o.flags&15990)!==0,o.subtreeFlags&15990||$){$=ok.transition,ok.transition=null;var j=C;C=1;var _e=K;K|=4,nk.current=null,Oj(i,o),dk(o,i),Oe(Df),dd=!!Cf,Df=Cf=null,i.current=o,hk(o),dc(),K=_e,C=j,ok.transition=$}else i.current=o;if(vk&&(vk=!1,wk=i,xk=_),$=i.pendingLanes,$===0&&(Ri=null),mc(o.stateNode),Dk(i,B()),s!==null)for(a=i.onRecoverableError,o=0;o<s.length;o++)_=s[o],a(_.value,{componentStack:_.stack,digest:_.digest});if(Oi)throw Oi=!1,i=Pi,Pi=null,i;return xk&1&&i.tag!==0&&Hk(),$=i.pendingLanes,$&1?i===zk?yk++:(yk=0,zk=i):yk=0,jg(),null}function Hk(){if(wk!==null){var i=Dc(xk),s=ok.transition,o=C;try{if(ok.transition=null,C=16>i?16:i,wk===null)var a=!1;else{if(i=wk,wk=null,xk=0,K&6)throw Error(p(331));var _=K;for(K|=4,V=i.current;V!==null;){var $=V,j=$.child;if(V.flags&16){var _e=$.deletions;if(_e!==null){for(var et=0;et<_e.length;et++){var tt=_e[et];for(V=tt;V!==null;){var rt=V;switch(rt.tag){case 0:case 11:case 15:Pj(8,rt,$)}var it=rt.child;if(it!==null)it.return=rt,V=it;else for(;V!==null;){rt=V;var nt=rt.sibling,ut=rt.return;if(Sj(rt),rt===tt){V=null;break}if(nt!==null){nt.return=ut,V=nt;break}V=ut}}}var ct=$.alternate;if(ct!==null){var st=ct.child;if(st!==null){ct.child=null;do{var dt=st.sibling;st.sibling=null,st=dt}while(st!==null)}}V=$}}if($.subtreeFlags&2064&&j!==null)j.return=$,V=j;else e:for(;V!==null;){if($=V,$.flags&2048)switch($.tag){case 0:case 11:case 15:Pj(9,$,$.return)}var ot=$.sibling;if(ot!==null){ot.return=$.return,V=ot;break e}V=$.return}}var lt=i.current;for(V=lt;V!==null;){j=V;var at=j.child;if(j.subtreeFlags&2064&&at!==null)at.return=j,V=at;else e:for(j=lt;V!==null;){if(_e=V,_e.flags&2048)try{switch(_e.tag){case 0:case 11:case 15:Qj(9,_e)}}catch(ht){W(_e,_e.return,ht)}if(_e===j){V=null;break e}var ft=_e.sibling;if(ft!==null){ft.return=_e.return,V=ft;break e}V=_e.return}}if(K=_,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,i)}catch{}a=!0}return a}finally{C=o,ok.transition=s}}return!1}function Xk(i,s,o){s=Ji(o,s),s=Ni(i,s,1),i=nh(i,s,1),s=R(),i!==null&&(Ac(i,1,s),Dk(i,s))}function W(i,s,o){if(i.tag===3)Xk(i,i,o);else for(;s!==null;){if(s.tag===3){Xk(s,i,o);break}else if(s.tag===1){var a=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ri===null||!Ri.has(a))){i=Ji(o,i),i=Qi(s,i,1),s=nh(s,i,1),i=R(),s!==null&&(Ac(s,1,i),Dk(s,i));break}}s=s.return}}function Ti(i,s,o){var a=i.pingCache;a!==null&&a.delete(s),s=R(),i.pingedLanes|=i.suspendedLanes&o,Q===i&&(Z&o)===o&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(i,0):rk|=o),Dk(i,s)}function Yk(i,s){s===0&&(i.mode&1?(s=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):s=1);var o=R();i=ih(i,s),i!==null&&(Ac(i,s,o),Dk(i,o))}function uj(i){var s=i.memoizedState,o=0;s!==null&&(o=s.retryLane),Yk(i,o)}function bk(i,s){var o=0;switch(i.tag){case 13:var a=i.stateNode,_=i.memoizedState;_!==null&&(o=_.retryLane);break;case 19:a=i.stateNode;break;default:throw Error(p(314))}a!==null&&a.delete(s),Yk(i,o)}var Vk;Vk=function(i,s,o){if(i!==null)if(i.memoizedProps!==s.pendingProps||Wf.current)dh=!0;else{if(!(i.lanes&o)&&!(s.flags&128))return dh=!1,yj(i,s,o);dh=!!(i.flags&131072)}else dh=!1,I&&s.flags&1048576&&ug(s,ng,s.index);switch(s.lanes=0,s.tag){case 2:var a=s.type;ij(i,s),i=s.pendingProps;var _=Yf(s,H.current);ch(s,o),_=Nh(null,s,a,i,_,o);var $=Sh();return s.flags|=1,typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Zf(a)?($=!0,cg(s)):$=!1,s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,kh(s),_.updater=Ei,s.stateNode=_,_._reactInternals=s,Ii(s,a,i,o),s=jj(null,s,a,!0,$,o)):(s.tag=0,I&&$&&vg(s),Xi(null,s,_,o),s=s.child),s;case 16:a=s.elementType;e:{switch(ij(i,s),i=s.pendingProps,_=a._init,a=_(a._payload),s.type=a,_=s.tag=Zk(a),i=Ci(a,i),_){case 0:s=cj(null,s,a,i,o);break e;case 1:s=hj(null,s,a,i,o);break e;case 11:s=Yi(null,s,a,i,o);break e;case 14:s=$i(null,s,a,Ci(a.type,i),o);break e}throw Error(p(306,a,""))}return s;case 0:return a=s.type,_=s.pendingProps,_=s.elementType===a?_:Ci(a,_),cj(i,s,a,_,o);case 1:return a=s.type,_=s.pendingProps,_=s.elementType===a?_:Ci(a,_),hj(i,s,a,_,o);case 3:e:{if(kj(s),i===null)throw Error(p(387));a=s.pendingProps,$=s.memoizedState,_=$.element,lh(i,s),qh(s,a,null,o);var j=s.memoizedState;if(a=j.element,$.isDehydrated)if($={element:a,isDehydrated:!1,cache:j.cache,pendingSuspenseBoundaries:j.pendingSuspenseBoundaries,transitions:j.transitions},s.updateQueue.baseState=$,s.memoizedState=$,s.flags&256){_=Ji(Error(p(423)),s),s=lj(i,s,a,o,_);break e}else if(a!==_){_=Ji(Error(p(424)),s),s=lj(i,s,a,o,_);break e}else for(yg=Lf(s.stateNode.containerInfo.firstChild),xg=s,I=!0,zg=null,o=Vg(s,null,a,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ig(),a===_){s=Zi(i,s,o);break e}Xi(i,s,a,o)}s=s.child}return s;case 5:return Ah(s),i===null&&Eg(s),a=s.type,_=s.pendingProps,$=i!==null?i.memoizedProps:null,j=_.children,Ef(a,_)?j=null:$!==null&&Ef(a,$)&&(s.flags|=32),gj(i,s),Xi(i,s,j,o),s.child;case 6:return i===null&&Eg(s),null;case 13:return oj(i,s,o);case 4:return yh(s,s.stateNode.containerInfo),a=s.pendingProps,i===null?s.child=Ug(s,null,a,o):Xi(i,s,a,o),s.child;case 11:return a=s.type,_=s.pendingProps,_=s.elementType===a?_:Ci(a,_),Yi(i,s,a,_,o);case 7:return Xi(i,s,s.pendingProps,o),s.child;case 8:return Xi(i,s,s.pendingProps.children,o),s.child;case 12:return Xi(i,s,s.pendingProps.children,o),s.child;case 10:e:{if(a=s.type._context,_=s.pendingProps,$=s.memoizedProps,j=_.value,G(Wg,a._currentValue),a._currentValue=j,$!==null)if(He($.value,j)){if($.children===_.children&&!Wf.current){s=Zi(i,s,o);break e}}else for($=s.child,$!==null&&($.return=s);$!==null;){var _e=$.dependencies;if(_e!==null){j=$.child;for(var et=_e.firstContext;et!==null;){if(et.context===a){if($.tag===1){et=mh(-1,o&-o),et.tag=2;var tt=$.updateQueue;if(tt!==null){tt=tt.shared;var rt=tt.pending;rt===null?et.next=et:(et.next=rt.next,rt.next=et),tt.pending=et}}$.lanes|=o,et=$.alternate,et!==null&&(et.lanes|=o),bh($.return,o,s),_e.lanes|=o;break}et=et.next}}else if($.tag===10)j=$.type===s.type?null:$.child;else if($.tag===18){if(j=$.return,j===null)throw Error(p(341));j.lanes|=o,_e=j.alternate,_e!==null&&(_e.lanes|=o),bh(j,o,s),j=$.sibling}else j=$.child;if(j!==null)j.return=$;else for(j=$;j!==null;){if(j===s){j=null;break}if($=j.sibling,$!==null){$.return=j.return,j=$;break}j=j.return}$=j}Xi(i,s,_.children,o),s=s.child}return s;case 9:return _=s.type,a=s.pendingProps.children,ch(s,o),_=eh(_),a=a(_),s.flags|=1,Xi(i,s,a,o),s.child;case 14:return a=s.type,_=Ci(a,s.pendingProps),_=Ci(a.type,_),$i(i,s,a,_,o);case 15:return bj(i,s,s.type,s.pendingProps,o);case 17:return a=s.type,_=s.pendingProps,_=s.elementType===a?_:Ci(a,_),ij(i,s),s.tag=1,Zf(a)?(i=!0,cg(s)):i=!1,ch(s,o),Gi(s,a,_),Ii(s,a,_,o),jj(null,s,a,!0,i,o);case 19:return xj(i,s,o);case 22:return dj(i,s,o)}throw Error(p(156,s.tag))};function Fk(i,s){return ac(i,s)}function $k(i,s,o,a){this.tag=i,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(i,s,o,a){return new $k(i,s,o,a)}function aj(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Zk(i){if(typeof i=="function")return aj(i)?1:0;if(i!=null){if(i=i.$$typeof,i===Da)return 11;if(i===Ga)return 14}return 2}function Pg(i,s){var o=i.alternate;return o===null?(o=Bg(i.tag,s,i.key,i.mode),o.elementType=i.elementType,o.type=i.type,o.stateNode=i.stateNode,o.alternate=i,i.alternate=o):(o.pendingProps=s,o.type=i.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=i.flags&14680064,o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,s=i.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=i.sibling,o.index=i.index,o.ref=i.ref,o}function Rg(i,s,o,a,_,$){var j=2;if(a=i,typeof i=="function")aj(i)&&(j=1);else if(typeof i=="string")j=5;else e:switch(i){case ya:return Tg(o.children,_,$,s);case za:j=8,_|=8;break;case Aa:return i=Bg(12,o,s,_|2),i.elementType=Aa,i.lanes=$,i;case Ea:return i=Bg(13,o,s,_),i.elementType=Ea,i.lanes=$,i;case Fa:return i=Bg(19,o,s,_),i.elementType=Fa,i.lanes=$,i;case Ia:return pj(o,_,$,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Ba:j=10;break e;case Ca:j=9;break e;case Da:j=11;break e;case Ga:j=14;break e;case Ha:j=16,a=null;break e}throw Error(p(130,i==null?i:typeof i,""))}return s=Bg(j,o,s,_),s.elementType=i,s.type=a,s.lanes=$,s}function Tg(i,s,o,a){return i=Bg(7,i,a,s),i.lanes=o,i}function pj(i,s,o,a){return i=Bg(22,i,a,s),i.elementType=Ia,i.lanes=o,i.stateNode={isHidden:!1},i}function Qg(i,s,o){return i=Bg(6,i,null,s),i.lanes=o,i}function Sg(i,s,o){return s=Bg(4,i.children!==null?i.children:[],i.key,s),s.lanes=o,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function al(i,s,o,a,_){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=a,this.onRecoverableError=_,this.mutableSourceEagerHydrationData=null}function bl(i,s,o,a,_,$,j,_e,et){return i=new al(i,s,o,_e,et),s===1?(s=1,$===!0&&(s|=8)):s=0,$=Bg(3,null,null,s),i.current=$,$.stateNode=i,$.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh($),i}function cl(i,s,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:a==null?null:""+a,children:i,containerInfo:s,implementation:o}}function dl(i){if(!i)return Vf;i=i._reactInternals;e:{if(Vb(i)!==i||i.tag!==1)throw Error(p(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Zf(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(p(171))}if(i.tag===1){var o=i.type;if(Zf(o))return bg(i,o,s)}return s}function el(i,s,o,a,_,$,j,_e,et){return i=bl(o,a,!0,i,_,$,j,_e,et),i.context=dl(null),o=i.current,a=R(),_=yi(o),$=mh(a,_),$.callback=s??null,nh(o,$,_),i.current.lanes=_,Ac(i,_,a),Dk(i,a),i}function fl(i,s,o,a){var _=s.current,$=R(),j=yi(_);return o=dl(o),s.context===null?s.context=o:s.pendingContext=o,s=mh($,j),s.payload={element:i},a=a===void 0?null:a,a!==null&&(s.callback=a),i=nh(_,s,j),i!==null&&(gi(i,_,j,$),oh(i,_,j)),j}function gl(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function hl(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o<s?o:s}}function il(i,s){hl(i,s),(i=i.alternate)&&hl(i,s)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(i){console.error(i)};function ll(i){this._internalRoot=i}ml.prototype.render=ll.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(p(409));fl(i,s,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Rk(function(){fl(null,i,null,null)}),s[uf]=null}};function ml(i){this._internalRoot=i}ml.prototype.unstable_scheduleHydration=function(i){if(i){var s=Hc();i={blockedOn:null,target:i,priority:s};for(var o=0;o<Qc.length&&s!==0&&s<Qc[o].priority;o++);Qc.splice(o,0,i),o===0&&Vc(i)}};function nl(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function ol(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(i,s,o,a,_){if(_){if(typeof a=="function"){var $=a;a=function(){var tt=gl(j);$.call(tt)}}var j=el(s,a,i,0,null,!1,!1,"",pl);return i._reactRootContainer=j,i[uf]=j.current,sf(i.nodeType===8?i.parentNode:i),Rk(),j}for(;_=i.lastChild;)i.removeChild(_);if(typeof a=="function"){var _e=a;a=function(){var tt=gl(et);_e.call(tt)}}var et=bl(i,0,!1,null,null,!1,!1,"",pl);return i._reactRootContainer=et,i[uf]=et.current,sf(i.nodeType===8?i.parentNode:i),Rk(function(){fl(s,et,o,a)}),et}function rl(i,s,o,a,_){var $=o._reactRootContainer;if($){var j=$;if(typeof _=="function"){var _e=_;_=function(){var et=gl(j);_e.call(et)}}fl(s,j,i,_)}else j=ql(o,s,i,_,a);return gl(j)}Ec=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var o=tc(s.pendingLanes);o!==0&&(Cc(s,o|1),Dk(s,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var a=ih(i,1);if(a!==null){var _=R();gi(a,i,1,_)}}),il(i,1)}};Fc=function(i){if(i.tag===13){var s=ih(i,134217728);if(s!==null){var o=R();gi(s,i,134217728,o)}il(i,134217728)}};Gc=function(i){if(i.tag===13){var s=yi(i),o=ih(i,s);if(o!==null){var a=R();gi(o,i,s,a)}il(i,s)}};Hc=function(){return C};Ic=function(i,s){var o=C;try{return C=i,s()}finally{C=o}};yb=function(i,s,o){switch(s){case"input":if(bb(i,o),s=o.name,o.type==="radio"&&s!=null){for(o=i;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<o.length;s++){var a=o[s];if(a!==i&&a.form===i.form){var _=Db(a);if(!_)throw Error(p(90));Wa(a),bb(a,_)}}}break;case"textarea":ib(i,o);break;case"select":s=o.value,s!=null&&fb(i,!!o.multiple,s,!1)}};Gb=Qk;Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Zb(i),i===null?null:i.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;reactDom_production_min.createPortal=function(i,s){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(s))throw Error(p(200));return cl(i,s,null,o)};reactDom_production_min.createRoot=function(i,s){if(!nl(i))throw Error(p(299));var o=!1,a="",_=kl;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(a=s.identifierPrefix),s.onRecoverableError!==void 0&&(_=s.onRecoverableError)),s=bl(i,1,!1,null,null,o,!1,a,_),i[uf]=s.current,sf(i.nodeType===8?i.parentNode:i),new ll(s)};reactDom_production_min.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(p(188)):(i=Object.keys(i).join(","),Error(p(268,i)));return i=Zb(s),i=i===null?null:i.stateNode,i};reactDom_production_min.flushSync=function(i){return Rk(i)};reactDom_production_min.hydrate=function(i,s,o){if(!ol(s))throw Error(p(200));return rl(null,i,s,!0,o)};reactDom_production_min.hydrateRoot=function(i,s,o){if(!nl(i))throw Error(p(405));var a=o!=null&&o.hydratedSources||null,_=!1,$="",j=kl;if(o!=null&&(o.unstable_strictMode===!0&&(_=!0),o.identifierPrefix!==void 0&&($=o.identifierPrefix),o.onRecoverableError!==void 0&&(j=o.onRecoverableError)),s=el(s,null,i,1,o??null,_,!1,$,j),i[uf]=s.current,sf(i),a)for(i=0;i<a.length;i++)o=a[i],_=o._getVersion,_=_(o._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[o,_]:s.mutableSourceEagerHydrationData.push(o,_);return new ml(s)};reactDom_production_min.render=function(i,s,o){if(!ol(s))throw Error(p(200));return rl(null,i,s,!1,o)};reactDom_production_min.unmountComponentAtNode=function(i){if(!ol(i))throw Error(p(40));return i._reactRootContainer?(Rk(function(){rl(null,null,i,!1,function(){i._reactRootContainer=null,i[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(i,s,o,a){if(!ol(o))throw Error(p(200));if(i==null||i._reactInternals===void 0)throw Error(p(38));return rl(i,s,o,!1,a)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(i){console.error(i)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const[PortalContextProvider,usePortalContext]=createContext({strict:!1,name:"PortalContext"}),PORTAL_CLASSNAME="chakra-portal",PORTAL_SELECTOR=".chakra-portal",Container$1=i=>jsxRuntimeExports.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:i.zIndex,top:0,left:0,right:0},children:i.children}),DefaultPortal=i=>{const{appendToParentPortal:s,children:o}=i,[a,_]=reactExports.useState(null),$=reactExports.useRef(null),[,j]=reactExports.useState({});reactExports.useEffect(()=>j({}),[]);const _e=usePortalContext(),et=usePortalManager();useSafeLayoutEffect$2(()=>{if(!a)return;const rt=a.ownerDocument,it=s?_e??rt.body:rt.body;if(!it)return;$.current=rt.createElement("div"),$.current.className=PORTAL_CLASSNAME,it.appendChild($.current),j({});const nt=$.current;return()=>{it.contains(nt)&&it.removeChild(nt)}},[a]);const tt=et!=null&&et.zIndex?jsxRuntimeExports.jsx(Container$1,{zIndex:et==null?void 0:et.zIndex,children:o}):o;return $.current?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:$.current,children:tt}),$.current):jsxRuntimeExports.jsx("span",{ref:rt=>{rt&&_(rt)}})},ContainerPortal=i=>{const{children:s,containerRef:o,appendToParentPortal:a}=i,_=o.current,$=_??(typeof window<"u"?document.body:void 0),j=reactExports.useMemo(()=>{const et=_==null?void 0:_.ownerDocument.createElement("div");return et&&(et.className=PORTAL_CLASSNAME),et},[_]),[,_e]=reactExports.useState({});return useSafeLayoutEffect$2(()=>_e({}),[]),useSafeLayoutEffect$2(()=>{if(!(!j||!$))return $.appendChild(j),()=>{$.removeChild(j)}},[j,$]),$&&j?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:a?j:null,children:s}),j):null};function Portal(i){const s={appendToParentPortal:!0,...i},{containerRef:o,...a}=s;return o?jsxRuntimeExports.jsx(ContainerPortal,{containerRef:o,...a}):jsxRuntimeExports.jsx(DefaultPortal,{...a})}Portal.className=PORTAL_CLASSNAME;Portal.selector=PORTAL_SELECTOR;Portal.displayName="Portal";const[ToastOptionProvider,useToastOptionContext]=createContext({name:"ToastOptionsContext",strict:!1}),ToastProvider=i=>{const s=reactExports.useSyncExternalStore(toastStore.subscribe,toastStore.getState,toastStore.getState),{motionVariants:o,component:a=ToastComponent,portalProps:_,animatePresenceProps:$}=i,_e=Object.keys(s).map(et=>{const tt=s[et];return jsxRuntimeExports.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${et}`,id:`chakra-toast-manager-${et}`,style:getToastListStyle(et),children:jsxRuntimeExports.jsx(AnimatePresence,{...$,initial:!1,children:tt.map(rt=>jsxRuntimeExports.jsx(a,{motionVariants:o,...rt},rt.id))})},et)});return jsxRuntimeExports.jsx(Portal,{..._,children:_e})},createProvider=i=>function({children:o,theme:a=i,toastOptions:_,...$}){return jsxRuntimeExports.jsxs(Provider,{theme:a,...$,children:[jsxRuntimeExports.jsx(ToastOptionProvider,{value:_==null?void 0:_.defaultOptions,children:o}),jsxRuntimeExports.jsx(ToastProvider,{..._})]})},ChakraProvider=createProvider(theme$1);function sortNodes(i){return i.sort((s,o)=>{const a=s.compareDocumentPosition(o);if(a&Node.DOCUMENT_POSITION_FOLLOWING||a&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(a&Node.DOCUMENT_POSITION_PRECEDING||a&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(a&Node.DOCUMENT_POSITION_DISCONNECTED||a&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const isElement$2=i=>typeof i=="object"&&"nodeType"in i&&i.nodeType===Node.ELEMENT_NODE;function getNextIndex(i,s,o){let a=i+1;return o&&a>=s&&(a=0),a}function getPrevIndex(i,s,o){let a=i-1;return o&&a<0&&(a=s),a}const useSafeLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,cast=i=>i;var __defProp$1=Object.defineProperty,__defNormalProp$1=(i,s,o)=>s in i?__defProp$1(i,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[s]=o,__publicField$1=(i,s,o)=>(__defNormalProp$1(i,typeof s!="symbol"?s+"":s,o),o);class DescendantsManager{constructor(){__publicField$1(this,"descendants",new Map),__publicField$1(this,"register",s=>{if(s!=null)return isElement$2(s)?this.registerNode(s):o=>{this.registerNode(o,s)}}),__publicField$1(this,"unregister",s=>{this.descendants.delete(s);const o=sortNodes(Array.from(this.descendants.keys()));this.assignIndex(o)}),__publicField$1(this,"destroy",()=>{this.descendants.clear()}),__publicField$1(this,"assignIndex",s=>{this.descendants.forEach(o=>{const a=s.indexOf(o.node);o.index=a,o.node.dataset.index=o.index.toString()})}),__publicField$1(this,"count",()=>this.descendants.size),__publicField$1(this,"enabledCount",()=>this.enabledValues().length),__publicField$1(this,"values",()=>Array.from(this.descendants.values()).sort((o,a)=>o.index-a.index)),__publicField$1(this,"enabledValues",()=>this.values().filter(s=>!s.disabled)),__publicField$1(this,"item",s=>{if(this.count()!==0)return this.values()[s]}),__publicField$1(this,"enabledItem",s=>{if(this.enabledCount()!==0)return this.enabledValues()[s]}),__publicField$1(this,"first",()=>this.item(0)),__publicField$1(this,"firstEnabled",()=>this.enabledItem(0)),__publicField$1(this,"last",()=>this.item(this.descendants.size-1)),__publicField$1(this,"lastEnabled",()=>{const s=this.enabledValues().length-1;return this.enabledItem(s)}),__publicField$1(this,"indexOf",s=>{var o;return s?((o=this.descendants.get(s))==null?void 0:o.index)??-1:-1}),__publicField$1(this,"enabledIndexOf",s=>s==null?-1:this.enabledValues().findIndex(o=>o.node.isSameNode(s))),__publicField$1(this,"next",(s,o=!0)=>{const a=getNextIndex(s,this.count(),o);return this.item(a)}),__publicField$1(this,"nextEnabled",(s,o=!0)=>{const a=this.item(s);if(!a)return;const _=this.enabledIndexOf(a.node),$=getNextIndex(_,this.enabledCount(),o);return this.enabledItem($)}),__publicField$1(this,"prev",(s,o=!0)=>{const a=getPrevIndex(s,this.count()-1,o);return this.item(a)}),__publicField$1(this,"prevEnabled",(s,o=!0)=>{const a=this.item(s);if(!a)return;const _=this.enabledIndexOf(a.node),$=getPrevIndex(_,this.enabledCount()-1,o);return this.enabledItem($)}),__publicField$1(this,"registerNode",(s,o)=>{if(!s||this.descendants.has(s))return;const a=Array.from(this.descendants.keys()).concat(s),_=sortNodes(a);o!=null&&o.disabled&&(o.disabled=!!o.disabled);const $={node:s,index:-1,...o};this.descendants.set(s,$),this.assignIndex(_)})}}function createDescendantContext(){const[i,s]=createContext({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[i,s,()=>{const _=reactExports.useRef(new DescendantsManager);return useSafeLayoutEffect(()=>()=>_.current.destroy()),_.current},_=>{const $=s(),[j,_e]=reactExports.useState(-1),et=reactExports.useRef(null);useSafeLayoutEffect(()=>()=>{et.current&&$.unregister(et.current)},[]),useSafeLayoutEffect(()=>{if(!et.current)return;const rt=Number(et.current.dataset.index);j!=rt&&!Number.isNaN(rt)&&_e(rt)});const tt=cast(_?$.register(_):$.register);return{descendants:$,index:j,enabledIndex:$.enabledIndexOf(et.current),register:mergeRefs(tt,et)}}]}const[AccordionStylesProvider,useAccordionStyles]=createContext({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[AccordionItemProvider,useAccordionItemContext]=createContext({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[AccordionDescendantsProvider,useAccordionDescendantsContext,useAccordionDescendants,useAccordionDescendant]=createDescendantContext();function useAccordion(i){const{onChange:s,defaultIndex:o,index:a,allowMultiple:_,allowToggle:$,...j}=i;allowMultipleWarning(i),allowMultipleAndAllowToggleWarning(i);const _e=useAccordionDescendants(),[et,tt]=reactExports.useState(-1);reactExports.useEffect(()=>()=>{tt(-1)},[]);const[rt,it]=useControllableState({value:a,defaultValue(){return _?o??[]:o??-1},onChange:s});return{index:rt,setIndex:it,htmlProps:j,getAccordionItemProps:ut=>{let ct=!1;return ut!==null&&(ct=Array.isArray(rt)?rt.includes(ut):rt===ut),{isOpen:ct,onChange:dt=>{if(ut!==null)if(_&&Array.isArray(rt)){const ot=dt?rt.concat(ut):rt.filter(lt=>lt!==ut);it(ot)}else dt?it(ut):$&&it(-1)}}},focusedIndex:et,setFocusedIndex:tt,descendants:_e}}const[AccordionProvider,useAccordionContext]=createContext({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function useAccordionItem(i){const{isDisabled:s,isFocusable:o,id:a,..._}=i,{getAccordionItemProps:$,setFocusedIndex:j}=useAccordionContext(),_e=reactExports.useRef(null),et=reactExports.useId(),tt=a??et,rt=`accordion-button-${tt}`,it=`accordion-panel-${tt}`;focusableNotDisabledWarning(i);const{register:nt,index:ut,descendants:ct}=useAccordionDescendant({disabled:s&&!o}),{isOpen:st,onChange:dt}=$(ut===-1?null:ut);warnIfOpenAndDisabled({isOpen:st,isDisabled:s});const ot=()=>{dt==null||dt(!0)},lt=()=>{dt==null||dt(!1)},at=reactExports.useCallback(()=>{dt==null||dt(!st),j(ut)},[ut,j,st,dt]),ft=reactExports.useCallback(vt=>{const wt={ArrowDown:()=>{const Pt=ct.nextEnabled(ut);Pt==null||Pt.node.focus()},ArrowUp:()=>{const Pt=ct.prevEnabled(ut);Pt==null||Pt.node.focus()},Home:()=>{const Pt=ct.firstEnabled();Pt==null||Pt.node.focus()},End:()=>{const Pt=ct.lastEnabled();Pt==null||Pt.node.focus()}}[vt.key];wt&&(vt.preventDefault(),wt(vt))},[ct,ut]),ht=reactExports.useCallback(()=>{j(ut)},[j,ut]),mt=reactExports.useCallback(function(St={},wt=null){return{...St,type:"button",ref:mergeRefs(nt,_e,wt),id:rt,disabled:!!s,"aria-expanded":!!st,"aria-controls":it,onClick:callAllHandlers(St.onClick,at),onFocus:callAllHandlers(St.onFocus,ht),onKeyDown:callAllHandlers(St.onKeyDown,ft)}},[rt,s,st,at,ht,ft,it,nt]),gt=reactExports.useCallback(function(St={},wt=null){return{...St,ref:wt,role:"region",id:it,"aria-labelledby":rt,hidden:!st}},[rt,st,it]);return{isOpen:st,isDisabled:s,isFocusable:o,onOpen:ot,onClose:lt,getButtonProps:mt,getPanelProps:gt,htmlProps:_}}function allowMultipleWarning(i){const s=i.index||i.defaultIndex,o=s!=null&&!Array.isArray(s)&&i.allowMultiple;warn$1({condition:!!o,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof s},`})}function allowMultipleAndAllowToggleWarning(i){warn$1({condition:!!(i.allowMultiple&&i.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function focusableNotDisabledWarning(i){warn$1({condition:!!(i.isFocusable&&!i.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
    `})}function warnIfOpenAndDisabled(i){warn$1({condition:i.isOpen&&!!i.isDisabled,message:"Cannot open a disabled accordion item"})}const Accordion=forwardRef(function({children:s,reduceMotion:o,...a},_){const $=useMultiStyleConfig("Accordion",a),j=omitThemingProps(a),{htmlProps:_e,descendants:et,...tt}=useAccordion(j),rt=reactExports.useMemo(()=>({...tt,reduceMotion:!!o}),[tt,o]);return jsxRuntimeExports.jsx(AccordionDescendantsProvider,{value:et,children:jsxRuntimeExports.jsx(AccordionProvider,{value:rt,children:jsxRuntimeExports.jsx(AccordionStylesProvider,{value:$,children:jsxRuntimeExports.jsx(chakra.div,{ref:_,..._e,className:cx("chakra-accordion",a.className),__css:$.root,children:s})})})})});Accordion.displayName="Accordion";const AccordionButton=forwardRef(function(s,o){const{getButtonProps:a}=useAccordionItemContext(),_=a(s,o),j={display:"flex",alignItems:"center",width:"100%",outline:0,...useAccordionStyles().button};return jsxRuntimeExports.jsx(chakra.button,{..._,className:cx("chakra-accordion__button",s.className),__css:j})});AccordionButton.displayName="AccordionButton";const AccordionItem=forwardRef(function(s,o){const{children:a,className:_}=s,{htmlProps:$,...j}=useAccordionItem(s),_e=useAccordionStyles(),et={..._e.container,overflowAnchor:"none"},tt=reactExports.useMemo(()=>j,[j]);return jsxRuntimeExports.jsx(AccordionItemProvider,{value:tt,children:jsxRuntimeExports.jsx(chakra.div,{ref:o,...$,className:cx("chakra-accordion__item",_),__css:et,children:typeof a=="function"?a({isExpanded:!!j.isOpen,isDisabled:!!j.isDisabled}):a})})});AccordionItem.displayName="AccordionItem";const TRANSITION_EASINGS={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},TRANSITION_VARIANTS={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function getSlideTransition(i){switch((i==null?void 0:i.direction)??"right"){case"right":return TRANSITION_VARIANTS.slideRight;case"left":return TRANSITION_VARIANTS.slideLeft;case"bottom":return TRANSITION_VARIANTS.slideDown;case"top":return TRANSITION_VARIANTS.slideUp;default:return TRANSITION_VARIANTS.slideRight}}const TRANSITION_DEFAULTS={enter:{duration:.2,ease:TRANSITION_EASINGS.easeOut},exit:{duration:.1,ease:TRANSITION_EASINGS.easeIn}},withDelay={enter:(i,s)=>({...i,delay:typeof s=="number"?s:s==null?void 0:s.enter}),exit:(i,s)=>({...i,delay:typeof s=="number"?s:s==null?void 0:s.exit})},isNumeric=i=>i!=null&&parseInt(i.toString(),10)>0,defaultTransitions={exit:{height:{duration:.2,ease:TRANSITION_EASINGS.ease},opacity:{duration:.3,ease:TRANSITION_EASINGS.ease}},enter:{height:{duration:.3,ease:TRANSITION_EASINGS.ease},opacity:{duration:.4,ease:TRANSITION_EASINGS.ease}}},variants$4={exit:({animateOpacity:i,startingHeight:s,transition:o,transitionEnd:a,delay:_})=>({...i&&{opacity:isNumeric(s)?1:0},height:s,transitionEnd:a==null?void 0:a.exit,transition:(o==null?void 0:o.exit)??withDelay.exit(defaultTransitions.exit,_)}),enter:({animateOpacity:i,endingHeight:s,transition:o,transitionEnd:a,delay:_})=>({...i&&{opacity:1},height:s,transitionEnd:a==null?void 0:a.enter,transition:(o==null?void 0:o.enter)??withDelay.enter(defaultTransitions.enter,_)})},Collapse=reactExports.forwardRef((i,s)=>{const{in:o,unmountOnExit:a,animateOpacity:_=!0,startingHeight:$=0,endingHeight:j="auto",style:_e,className:et,transition:tt,transitionEnd:rt,animatePresenceProps:it,...nt}=i,[ut,ct]=reactExports.useState(!1);reactExports.useEffect(()=>{const at=setTimeout(()=>{ct(!0)});return()=>clearTimeout(at)},[]),warn$1({condition:Number($)>0&&!!a,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const st=parseFloat($.toString())>0,dt={startingHeight:$,endingHeight:j,animateOpacity:_,transition:ut?tt:{enter:{duration:0}},transitionEnd:{enter:rt==null?void 0:rt.enter,exit:a?rt==null?void 0:rt.exit:{...rt==null?void 0:rt.exit,display:st?"block":"none"}}},ot=a?o:!0,lt=o||a?"enter":"exit";return jsxRuntimeExports.jsx(AnimatePresence,{...it,initial:!1,custom:dt,children:ot&&jsxRuntimeExports.jsx(motion.div,{ref:s,...nt,className:cx("chakra-collapse",et),style:{overflow:"hidden",display:"block",..._e},custom:dt,variants:variants$4,initial:a?"exit":!1,animate:lt,exit:"exit"})})});Collapse.displayName="Collapse";const AccordionPanel=forwardRef(function(s,o){const{className:a,motionProps:_,...$}=s,{reduceMotion:j}=useAccordionContext(),{getPanelProps:_e,isOpen:et}=useAccordionItemContext(),tt=_e($,o),rt=cx("chakra-accordion__panel",a),it=useAccordionStyles();j||delete tt.hidden;const nt=jsxRuntimeExports.jsx(chakra.div,{...tt,__css:it.panel,className:rt});return j?nt:jsxRuntimeExports.jsx(Collapse,{in:et,..._,children:nt})});AccordionPanel.displayName="AccordionPanel";const[AvatarStylesProvider,useAvatarStyles]=createContext({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function initials(i){const s=i.trim().split(" "),o=s[0]??"",a=s.length>1?s[s.length-1]:"";return o&&a?`${o.charAt(0)}${a.charAt(0)}`:o.charAt(0)}function AvatarName(i){const{name:s,getInitials:o,...a}=i,_=useAvatarStyles();return jsxRuntimeExports.jsx(chakra.div,{role:"img","aria-label":s,...a,__css:_.label,children:s?o==null?void 0:o(s):null})}AvatarName.displayName="AvatarName";const GenericAvatarIcon=i=>jsxRuntimeExports.jsxs(chakra.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...i,children:[jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function useImage(i){const{loading:s,src:o,srcSet:a,onLoad:_,onError:$,crossOrigin:j,sizes:_e,ignoreFallback:et}=i,[tt,rt]=reactExports.useState("pending");reactExports.useEffect(()=>{rt(o?"loading":"pending")},[o]);const it=reactExports.useRef(null),nt=reactExports.useCallback(()=>{if(!o)return;ut();const ct=new Image;ct.src=o,j&&(ct.crossOrigin=j),a&&(ct.srcset=a),_e&&(ct.sizes=_e),s&&(ct.loading=s),ct.onload=st=>{ut(),rt("loaded"),_==null||_(st)},ct.onerror=st=>{ut(),rt("failed"),$==null||$(st)},it.current=ct},[o,j,a,_e,_,$,s]),ut=()=>{it.current&&(it.current.onload=null,it.current.onerror=null,it.current=null)};return useSafeLayoutEffect$2(()=>{if(!et)return tt==="loading"&&nt(),()=>{ut()}},[tt,nt,et]),et?"loaded":tt}const shouldShowFallbackImage=(i,s)=>i!=="loaded"&&s==="beforeLoadOrError"||i==="failed"&&s==="onError";function AvatarImage(i){const{src:s,srcSet:o,onError:a,onLoad:_,getInitials:$,name:j,borderRadius:_e,loading:et,iconLabel:tt,icon:rt=jsxRuntimeExports.jsx(GenericAvatarIcon,{}),ignoreFallback:it,referrerPolicy:nt,crossOrigin:ut}=i,st=useImage({src:s,onError:a,crossOrigin:ut,ignoreFallback:it})==="loaded";return!s||!st?j?jsxRuntimeExports.jsx(AvatarName,{className:"chakra-avatar__initials",getInitials:$,name:j}):reactExports.cloneElement(rt,{role:"img","aria-label":tt}):jsxRuntimeExports.jsx(chakra.img,{src:s,srcSet:o,alt:j??tt,onLoad:_,referrerPolicy:nt,crossOrigin:ut??void 0,className:"chakra-avatar__img",loading:et,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:_e}})}AvatarImage.displayName="AvatarImage";const baseStyle={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},Avatar=forwardRef((i,s)=>{const o=useMultiStyleConfig("Avatar",i),[a,_]=reactExports.useState(!1),{src:$,srcSet:j,name:_e,showBorder:et,borderRadius:tt="full",onError:rt,onLoad:it,getInitials:nt=initials,icon:ut=jsxRuntimeExports.jsx(GenericAvatarIcon,{}),iconLabel:ct=" avatar",loading:st,children:dt,borderColor:ot,ignoreFallback:lt,crossOrigin:at,referrerPolicy:ft,...ht}=omitThemingProps(i),mt={borderRadius:tt,borderWidth:et?"2px":void 0,...baseStyle,...o.container};return ot&&(mt.borderColor=ot),jsxRuntimeExports.jsx(chakra.span,{ref:s,...ht,className:cx("chakra-avatar",i.className),"data-loaded":dataAttr(a),__css:mt,children:jsxRuntimeExports.jsxs(AvatarStylesProvider,{value:o,children:[jsxRuntimeExports.jsx(AvatarImage,{src:$,srcSet:j,loading:st,onLoad:callAllHandlers(it,()=>{_(!0)}),onError:rt,getInitials:nt,name:_e,borderRadius:tt,icon:ut,iconLabel:ct,ignoreFallback:lt,crossOrigin:at,referrerPolicy:ft}),dt]})})});Avatar.displayName="Avatar";const Box=chakra("div");Box.displayName="Box";const[ButtonGroupProvider,useButtonGroup]=createContext({strict:!1,name:"ButtonGroupContext"});function ButtonIcon(i){const{children:s,className:o,...a}=i,_=reactExports.isValidElement(s)?reactExports.cloneElement(s,{"aria-hidden":!0,focusable:!1}):s,$=cx("chakra-button__icon",o);return jsxRuntimeExports.jsx(chakra.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...a,className:$,children:_})}ButtonIcon.displayName="ButtonIcon";function ButtonSpinner(i){const{label:s,placement:o,spacing:a="0.5rem",children:_=jsxRuntimeExports.jsx(Spinner,{color:"currentColor",width:"1em",height:"1em"}),className:$,__css:j,..._e}=i,et=cx("chakra-button__spinner",$),tt=o==="start"?"marginEnd":"marginStart",rt=reactExports.useMemo(()=>({display:"flex",alignItems:"center",position:s?"relative":"absolute",[tt]:s?a:0,fontSize:"1em",lineHeight:"normal",...j}),[j,s,tt,a]);return jsxRuntimeExports.jsx(chakra.div,{className:et,..._e,__css:rt,children:_})}ButtonSpinner.displayName="ButtonSpinner";function useButtonType(i){const[s,o]=reactExports.useState(!i);return{ref:reactExports.useCallback($=>{$&&o($.tagName==="BUTTON")},[]),type:s?"button":void 0}}const Button=forwardRef((i,s)=>{const o=useButtonGroup(),a=useStyleConfig("Button",{...o,...i}),{isDisabled:_=o==null?void 0:o.isDisabled,isLoading:$,isActive:j,children:_e,leftIcon:et,rightIcon:tt,loadingText:rt,iconSpacing:it="0.5rem",type:nt,spinner:ut,spinnerPlacement:ct="start",className:st,as:dt,shouldWrapChildren:ot,...lt}=omitThemingProps(i),at=reactExports.useMemo(()=>{const gt={...a==null?void 0:a._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...a,...!!o&&{_focus:gt}}},[a,o]),{ref:ft,type:ht}=useButtonType(dt),mt={rightIcon:tt,leftIcon:et,iconSpacing:it,children:_e,shouldWrapChildren:ot};return jsxRuntimeExports.jsxs(chakra.button,{disabled:_||$,ref:useMergeRefs$1(s,ft),as:dt,type:nt??ht,"data-active":dataAttr(j),"data-loading":dataAttr($),__css:at,className:cx("chakra-button",st),...lt,children:[$&&ct==="start"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--start",label:rt,placement:"start",spacing:it,children:ut}),$?rt||jsxRuntimeExports.jsx(chakra.span,{opacity:0,children:jsxRuntimeExports.jsx(ButtonContent,{...mt})}):jsxRuntimeExports.jsx(ButtonContent,{...mt}),$&&ct==="end"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--end",label:rt,placement:"end",spacing:it,children:ut})]})});Button.displayName="Button";function ButtonContent(i){const{leftIcon:s,rightIcon:o,children:a,iconSpacing:_,shouldWrapChildren:$}=i;return $?jsxRuntimeExports.jsxs("span",{style:{display:"contents"},children:[s&&jsxRuntimeExports.jsx(ButtonIcon,{marginEnd:_,children:s}),a,o&&jsxRuntimeExports.jsx(ButtonIcon,{marginStart:_,children:o})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s&&jsxRuntimeExports.jsx(ButtonIcon,{marginEnd:_,children:s}),a,o&&jsxRuntimeExports.jsx(ButtonIcon,{marginStart:_,children:o})]})}const IconButton=forwardRef((i,s)=>{const{icon:o,children:a,isRound:_,"aria-label":$,...j}=i,_e=o||a,et=reactExports.isValidElement(_e)?reactExports.cloneElement(_e,{"aria-hidden":!0,focusable:!1}):null;return jsxRuntimeExports.jsx(Button,{px:"0",py:"0",borderRadius:_?"full":void 0,ref:s,"aria-label":$,...j,children:et})});IconButton.displayName="IconButton";const Center=chakra("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});Center.displayName="Center";const centerStyles={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};forwardRef(function(s,o){const{axis:a="both",..._}=s;return jsxRuntimeExports.jsx(chakra.div,{ref:o,__css:centerStyles[a],..._,position:"absolute"})});const[FormControlStylesProvider,useFormControlStyles]=createContext({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[FormControlProvider,useFormControlContext]=createContext({strict:!1,name:"FormControlContext"});function useFormControlProvider(i){const{id:s,isRequired:o,isInvalid:a,isDisabled:_,isReadOnly:$,...j}=i,_e=reactExports.useId(),et=s||`field-${_e}`,tt=`${et}-label`,rt=`${et}-feedback`,it=`${et}-helptext`,[nt,ut]=reactExports.useState(!1),[ct,st]=reactExports.useState(!1),[dt,ot]=reactExports.useState(!1),lt=reactExports.useCallback((gt={},vt=null)=>({id:it,...gt,ref:mergeRefs(vt,St=>{St&&st(!0)})}),[it]),at=reactExports.useCallback((gt={},vt=null)=>({...gt,ref:vt,"data-focus":dataAttr(dt),"data-disabled":dataAttr(_),"data-invalid":dataAttr(a),"data-readonly":dataAttr($),id:gt.id!==void 0?gt.id:tt,htmlFor:gt.htmlFor!==void 0?gt.htmlFor:et}),[et,_,dt,a,$,tt]),ft=reactExports.useCallback((gt={},vt=null)=>({id:rt,...gt,ref:mergeRefs(vt,St=>{St&&ut(!0)}),"aria-live":"polite"}),[rt]),ht=reactExports.useCallback((gt={},vt=null)=>({...gt,...j,ref:vt,role:"group","data-focus":dataAttr(dt),"data-disabled":dataAttr(_),"data-invalid":dataAttr(a),"data-readonly":dataAttr($)}),[j,_,dt,a,$]),mt=reactExports.useCallback((gt={},vt=null)=>({...gt,ref:vt,role:"presentation","aria-hidden":!0,children:gt.children||"*"}),[]);return{isRequired:!!o,isInvalid:!!a,isReadOnly:!!$,isDisabled:!!_,isFocused:!!dt,onFocus:()=>ot(!0),onBlur:()=>ot(!1),hasFeedbackText:nt,setHasFeedbackText:ut,hasHelpText:ct,setHasHelpText:st,id:et,labelId:tt,feedbackId:rt,helpTextId:it,htmlProps:j,getHelpTextProps:lt,getErrorMessageProps:ft,getRootProps:ht,getLabelProps:at,getRequiredIndicatorProps:mt}}const FormControl=forwardRef(function(s,o){const a=useMultiStyleConfig("Form",s),_=omitThemingProps(s),{getRootProps:$,htmlProps:j,..._e}=useFormControlProvider(_),et=cx("chakra-form-control",s.className);return jsxRuntimeExports.jsx(FormControlProvider,{value:_e,children:jsxRuntimeExports.jsx(FormControlStylesProvider,{value:a,children:jsxRuntimeExports.jsx(chakra.div,{...$({},o),className:et,__css:a.container})})})});FormControl.displayName="FormControl";const FormHelperText=forwardRef(function(s,o){const a=useFormControlContext(),_=useFormControlStyles(),$=cx("chakra-form__helper-text",s.className);return jsxRuntimeExports.jsx(chakra.div,{...a==null?void 0:a.getHelpTextProps(s,o),__css:_.helperText,className:$})});FormHelperText.displayName="FormHelperText";function useFormControl(i){const{isDisabled:s,isInvalid:o,isReadOnly:a,isRequired:_,...$}=useFormControlProps(i);return{...$,disabled:s,readOnly:a,required:_,"aria-invalid":ariaAttr(o),"aria-required":ariaAttr(_),"aria-readonly":ariaAttr(a)}}function useFormControlProps(i){const s=useFormControlContext(),{id:o,disabled:a,readOnly:_,required:$,isRequired:j,isInvalid:_e,isReadOnly:et,isDisabled:tt,onFocus:rt,onBlur:it,...nt}=i,ut=i["aria-describedby"]?[i["aria-describedby"]]:[];return s!=null&&s.hasFeedbackText&&(s!=null&&s.isInvalid)&&ut.push(s.feedbackId),s!=null&&s.hasHelpText&&ut.push(s.helpTextId),{...nt,"aria-describedby":ut.join(" ")||void 0,id:o??(s==null?void 0:s.id),isDisabled:a??tt??(s==null?void 0:s.isDisabled),isReadOnly:_??et??(s==null?void 0:s.isReadOnly),isRequired:$??j??(s==null?void 0:s.isRequired),isInvalid:_e??(s==null?void 0:s.isInvalid),onFocus:callAllHandlers(s==null?void 0:s.onFocus,rt),onBlur:callAllHandlers(s==null?void 0:s.onBlur,it)}}const visuallyHiddenStyle={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Container=forwardRef(function(s,o){const{className:a,centerContent:_,...$}=omitThemingProps(s),j=useStyleConfig("Container",s);return jsxRuntimeExports.jsx(chakra.div,{ref:o,className:cx("chakra-container",a),...$,__css:{...j,..._&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Container.displayName="Container";const Divider=forwardRef(function(s,o){const{borderLeftWidth:a,borderBottomWidth:_,borderTopWidth:$,borderRightWidth:j,borderWidth:_e,borderStyle:et,borderColor:tt,...rt}=useStyleConfig("Divider",s),{className:it,orientation:nt="horizontal",__css:ut,...ct}=omitThemingProps(s),st={vertical:{borderLeftWidth:a||j||_e||"1px",height:"100%"},horizontal:{borderBottomWidth:_||$||_e||"1px",width:"100%"}};return jsxRuntimeExports.jsx(chakra.hr,{ref:o,"aria-orientation":nt,...ct,__css:{...rt,border:"0",borderColor:tt,borderStyle:et,...st[nt],...ut},className:cx("chakra-divider",it)})});Divider.displayName="Divider";function isFunction$2(i){return typeof i=="function"}function pipe(...i){return s=>i.reduce((o,a)=>a(o),s)}const createExtendTheme=i=>function(...o){let a=[...o],_=o[o.length-1];return isChakraTheme(_)&&a.length>1?a=a.slice(0,a.length-1):_=i,pipe(...a.map($=>j=>isFunction$2($)?$(j):mergeThemeOverride(j,$)))(_)},extendTheme=createExtendTheme(theme$1);function mergeThemeOverride(...i){return mergeWith({},...i,mergeThemeCustomizer)}function mergeThemeCustomizer(i,s,o,a){if((isFunction$2(i)||isFunction$2(s))&&Object.prototype.hasOwnProperty.call(a,o))return(..._)=>{const $=isFunction$2(i)?i(..._):i,j=isFunction$2(s)?s(..._):s;return mergeWith({},$,j,mergeThemeCustomizer)};if(isObject$2(i)&&isArray$2(s)||isArray$2(i)&&isObject$2(s))return s}const Flex=forwardRef(function(s,o){const{direction:a,align:_,justify:$,wrap:j,basis:_e,grow:et,shrink:tt,...rt}=s,it={display:"flex",flexDirection:a,alignItems:_,justifyContent:$,flexWrap:j,flexBasis:_e,flexGrow:et,flexShrink:tt};return jsxRuntimeExports.jsx(chakra.div,{ref:o,__css:it,...rt})});Flex.displayName="Flex";function _objectWithoutPropertiesLoose$3(i,s){if(i==null)return{};var o={};for(var a in i)if({}.hasOwnProperty.call(i,a)){if(s.indexOf(a)!==-1)continue;o[a]=i[a]}return o}var propTypes$1={exports:{}},ReactPropTypesSecret$3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1$1=ReactPropTypesSecret$3,ReactPropTypesSecret$2=ReactPropTypesSecret_1$1;function emptyFunction$1(){}function emptyFunctionWithReset$1(){}emptyFunctionWithReset$1.resetWarningCache=emptyFunction$1;var factoryWithThrowingShims$1=function(){function i(a,_,$,j,_e,et){if(et!==ReactPropTypesSecret$2){var tt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw tt.name="Invariant Violation",tt}}i.isRequired=i;function s(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:emptyFunctionWithReset$1,resetWarningCache:emptyFunction$1};return o.PropTypes=o,o};propTypes$1.exports=factoryWithThrowingShims$1();var propTypesExports$1=propTypes$1.exports;const PropTypes$1=getDefaultExportFromCjs(propTypesExports$1);var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef(i,s){return typeof i=="function"?i(s):i&&(i.current=s),i}function useCallbackRef(i,s){var o=reactExports.useState(function(){return{value:i,callback:s,facade:{get current(){return o.value},set current(a){var _=o.value;_!==a&&(o.value=a,o.callback(a,_))}}}})[0];return o.callback=s,o.facade}var useIsomorphicLayoutEffect$1=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(i,s){var o=useCallbackRef(null,function(a){return i.forEach(function(_){return assignRef(_,a)})});return useIsomorphicLayoutEffect$1(function(){var a=currentValues.get(o);if(a){var _=new Set(a),$=new Set(i),j=o.current;_.forEach(function(_e){$.has(_e)||assignRef(_e,null)}),$.forEach(function(_e){_.has(_e)||assignRef(_e,j)})}currentValues.set(o,i)},[i]),o}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},__assign=function(){return __assign=Object.assign||function(s){for(var o,a=1,_=arguments.length;a<_;a++){o=arguments[a];for(var $ in o)Object.prototype.hasOwnProperty.call(o,$)&&(s[$]=o[$])}return s},__assign.apply(this,arguments)};function __rest(i,s){var o={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.indexOf(a)<0&&(o[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,a=Object.getOwnPropertySymbols(i);_<a.length;_++)s.indexOf(a[_])<0&&Object.prototype.propertyIsEnumerable.call(i,a[_])&&(o[a[_]]=i[a[_]]);return o}function __spreadArray(i,s,o){if(o||arguments.length===2)for(var a=0,_=s.length,$;a<_;a++)($||!(a in s))&&($||($=Array.prototype.slice.call(s,0,a)),$[a]=s[a]);return i.concat($||Array.prototype.slice.call(s))}typeof SuppressedError=="function"&&SuppressedError;function ItoI(i){return i}function innerCreateMedium(i,s){s===void 0&&(s=ItoI);var o=[],a=!1,_={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:i},useMedium:function($){var j=s($,a);return o.push(j),function(){o=o.filter(function(_e){return _e!==j})}},assignSyncMedium:function($){for(a=!0;o.length;){var j=o;o=[],j.forEach($)}o={push:function(_e){return $(_e)},filter:function(){return o}}},assignMedium:function($){a=!0;var j=[];if(o.length){var _e=o;o=[],_e.forEach($),j=o}var et=function(){var rt=j;j=[],rt.forEach($)},tt=function(){return Promise.resolve().then(et)};tt(),o={push:function(rt){j.push(rt),tt()},filter:function(rt){return j=j.filter(rt),o}}}};return _}function createMedium(i,s){return s===void 0&&(s=ItoI),innerCreateMedium(i,s)}function createSidecarMedium(i){i===void 0&&(i={});var s=innerCreateMedium(null);return s.options=__assign({async:!0,ssr:!1},i),s}var SideCar$1=function(i){var s=i.sideCar,o=__rest(i,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=s.read();if(!a)throw new Error("Sidecar medium not found");return reactExports.createElement(a,__assign({},o))};SideCar$1.isSideCarExport=!0;function exportSidecar(i,s){return i.useMedium(s),SideCar$1}var mediumFocus=createMedium({},function(i){var s=i.target,o=i.currentTarget;return{target:s,currentTarget:o}}),mediumBlur=createMedium(),mediumEffect=createMedium(),mediumSidecar=createSidecarMedium({async:!0,ssr:typeof document<"u"}),focusScope=reactExports.createContext(void 0),emptyArray=[],FocusLock$1=reactExports.forwardRef(function(s,o){var a,_=reactExports.useState(),$=_[0],j=_[1],_e=reactExports.useRef(),et=reactExports.useRef(!1),tt=reactExports.useRef(null),rt=reactExports.useState({}),it=rt[1],nt=s.children,ut=s.disabled,ct=ut===void 0?!1:ut,st=s.noFocusGuards,dt=st===void 0?!1:st,ot=s.persistentFocus,lt=ot===void 0?!1:ot,at=s.crossFrame,ft=at===void 0?!0:at,ht=s.autoFocus,mt=ht===void 0?!0:ht;s.allowTextSelection;var gt=s.group,vt=s.className,St=s.whiteList,wt=s.hasPositiveIndices,Pt=s.shards,Rt=Pt===void 0?emptyArray:Pt,It=s.as,jt=It===void 0?"div":It,Mt=s.lockProps,xt=Mt===void 0?{}:Mt,bt=s.sideCar,pt=s.returnFocus,yt=pt===void 0?!1:pt,kt=s.focusOptions,Et=s.onActivation,$t=s.onDeactivation,At=reactExports.useState({}),Ot=At[0],Vt=reactExports.useCallback(function(rr){var ar=rr.captureFocusRestore;if(!tt.current){var lr,cr=(lr=document)==null?void 0:lr.activeElement;tt.current=cr,cr!==document.body&&(tt.current=ar(cr))}_e.current&&Et&&Et(_e.current),et.current=!0,it()},[Et]),Lt=reactExports.useCallback(function(){et.current=!1,$t&&$t(_e.current),it()},[$t]),Wt=reactExports.useCallback(function(rr){var ar=tt.current;if(ar){var lr=(typeof ar=="function"?ar():ar)||document.body,cr=typeof yt=="function"?yt(lr):yt;if(cr){var Jt=typeof cr=="object"?cr:void 0;tt.current=null,rr?Promise.resolve().then(function(){return lr.focus(Jt)}):lr.focus(Jt)}}},[yt]),qt=reactExports.useCallback(function(rr){et.current&&mediumFocus.useMedium(rr)},[]),dr=mediumBlur.useMedium,ir=reactExports.useCallback(function(rr){_e.current!==rr&&(_e.current=rr,j(rr))},[]),Zt=_extends$4((a={},a[FOCUS_DISABLED]=ct&&"disabled",a[FOCUS_GROUP]=gt,a),xt),or=dt!==!0,Ut=or&&dt!=="tail",Bt=useMergeRefs([o,ir]),yr=reactExports.useMemo(function(){return{observed:_e,shards:Rt,enabled:!ct,active:et.current}},[ct,et.current,Rt,$]);return React$1.createElement(reactExports.Fragment,null,or&&[React$1.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:ct?-1:0,style:hiddenGuard}),wt?React$1.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:ct?-1:1,style:hiddenGuard}):null],!ct&&React$1.createElement(bt,{id:Ot,sideCar:mediumSidecar,observed:$,disabled:ct,persistentFocus:lt,crossFrame:ft,autoFocus:mt,whiteList:St,shards:Rt,onActivation:Vt,onDeactivation:Lt,returnFocus:Wt,focusOptions:kt,noFocusGuards:dt}),React$1.createElement(jt,_extends$4({ref:Bt},Zt,{className:vt,onBlur:dr,onFocus:qt}),React$1.createElement(focusScope.Provider,{value:yr},nt)),Ut&&React$1.createElement("div",{"data-focus-guard":!0,tabIndex:ct?-1:0,style:hiddenGuard}))});FocusLock$1.propTypes={};function _setPrototypeOf(i,s){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},_setPrototypeOf(i,s)}function _inheritsLoose(i,s){i.prototype=Object.create(s.prototype),i.prototype.constructor=i,_setPrototypeOf(i,s)}function _typeof$1(i){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$1(i)}function toPrimitive(i,s){if(_typeof$1(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,s);if(_typeof$1(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}function toPropertyKey(i){var s=toPrimitive(i,"string");return _typeof$1(s)=="symbol"?s:s+""}function _defineProperty$3(i,s,o){return(s=toPropertyKey(s))in i?Object.defineProperty(i,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[s]=o,i}function withSideEffect(i,s){function o(a){return a.displayName||a.name||"Component"}return function(_){var $=[],j;function _e(){j=i($.map(function(tt){return tt.props})),s(j)}var et=function(tt){_inheritsLoose(rt,tt);function rt(){return tt.apply(this,arguments)||this}rt.peek=function(){return j};var it=rt.prototype;return it.componentDidMount=function(){$.push(this),_e()},it.componentDidUpdate=function(){_e()},it.componentWillUnmount=function(){var ut=$.indexOf(this);$.splice(ut,1),_e()},it.render=function(){return React$1.createElement(_,this.props)},rt}(reactExports.PureComponent);return _defineProperty$3(et,"displayName","SideEffect("+o(_)+")"),et}}var toArray$2=function(i){for(var s=Array(i.length),o=0;o<i.length;++o)s[o]=i[o];return s},asArray=function(i){return Array.isArray(i)?i:[i]},getFirst=function(i){return Array.isArray(i)?i[0]:i},isElementHidden=function(i){if(i.nodeType!==Node.ELEMENT_NODE)return!1;var s=window.getComputedStyle(i,null);return!s||!s.getPropertyValue?!1:s.getPropertyValue("display")==="none"||s.getPropertyValue("visibility")==="hidden"},getParentNode$1=function(i){return i.parentNode&&i.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.parentNode.host:i.parentNode},isTopNode=function(i){return i===document||i&&i.nodeType===Node.DOCUMENT_NODE},isInert=function(i){return i.hasAttribute("inert")},isVisibleUncached=function(i,s){return!i||isTopNode(i)||!isElementHidden(i)&&!isInert(i)&&s(getParentNode$1(i))},isVisibleCached=function(i,s){var o=i.get(s);if(o!==void 0)return o;var a=isVisibleUncached(s,isVisibleCached.bind(void 0,i));return i.set(s,a),a},isAutoFocusAllowedUncached=function(i,s){return i&&!isTopNode(i)?isAutoFocusAllowed(i)?s(getParentNode$1(i)):!1:!0},isAutoFocusAllowedCached=function(i,s){var o=i.get(s);if(o!==void 0)return o;var a=isAutoFocusAllowedUncached(s,isAutoFocusAllowedCached.bind(void 0,i));return i.set(s,a),a},getDataset=function(i){return i.dataset},isHTMLButtonElement=function(i){return i.tagName==="BUTTON"},isHTMLInputElement=function(i){return i.tagName==="INPUT"},isRadioElement=function(i){return isHTMLInputElement(i)&&i.type==="radio"},notHiddenInput=function(i){return!((isHTMLInputElement(i)||isHTMLButtonElement(i))&&(i.type==="hidden"||i.disabled))},isAutoFocusAllowed=function(i){var s=i.getAttribute(FOCUS_NO_AUTOFOCUS);return![!0,"true",""].includes(s)},isGuard=function(i){var s;return!!(i&&(!((s=getDataset(i))===null||s===void 0)&&s.focusGuard))},isNotAGuard=function(i){return!isGuard(i)},isDefined=function(i){return!!i},tabSort=function(i,s){var o=Math.max(0,i.tabIndex),a=Math.max(0,s.tabIndex),_=o-a,$=i.index-s.index;if(_){if(!o)return 1;if(!a)return-1}return _||$},getTabIndex=function(i){return i.tabIndex<0&&!i.hasAttribute("tabindex")?0:i.tabIndex},orderByTabIndex=function(i,s,o){return toArray$2(i).map(function(a,_){var $=getTabIndex(a);return{node:a,index:_,tabIndex:o&&$===-1?(a.dataset||{}).focusGuard?0:-1:$}}).filter(function(a){return!s||a.tabIndex>=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function(i,s){return toArray$2((i.shadowRoot||i).children).reduce(function(o,a){return o.concat(a.matches(s?queryGuardTabbables:queryTabbables)?[a]:[],getFocusablesWithShadowDom(a))},[])},getFocusablesWithIFrame=function(i,s){var o;return i instanceof HTMLIFrameElement&&(!((o=i.contentDocument)===null||o===void 0)&&o.body)?getFocusables([i.contentDocument.body],s):[i]},getFocusables=function(i,s){return i.reduce(function(o,a){var _,$=getFocusablesWithShadowDom(a,s),j=(_=[]).concat.apply(_,$.map(function(_e){return getFocusablesWithIFrame(_e,s)}));return o.concat(j,a.parentNode?toArray$2(a.parentNode.querySelectorAll(queryTabbables)).filter(function(_e){return _e===a}):[])},[])},getParentAutofocusables=function(i){var s=i.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$2(s).map(function(o){return getFocusables([o])}).reduce(function(o,a){return o.concat(a)},[])},filterFocusable=function(i,s){return toArray$2(i).filter(function(o){return isVisibleCached(s,o)}).filter(function(o){return notHiddenInput(o)})},filterAutoFocusable=function(i,s){return s===void 0&&(s=new Map),toArray$2(i).filter(function(o){return isAutoFocusAllowedCached(s,o)})},getTabbableNodes=function(i,s,o){return orderByTabIndex(filterFocusable(getFocusables(i,o),s),!0,o)},getFocusableNodes=function(i,s){return orderByTabIndex(filterFocusable(getFocusables(i),s),!1)},parentAutofocusables=function(i,s){return filterFocusable(getParentAutofocusables(i),s)},contains$1=function(i,s){return i.shadowRoot?contains$1(i.shadowRoot,s):Object.getPrototypeOf(i).contains!==void 0&&Object.getPrototypeOf(i).contains.call(i,s)?!0:toArray$2(i.children).some(function(o){var a;if(o instanceof HTMLIFrameElement){var _=(a=o.contentDocument)===null||a===void 0?void 0:a.body;return _?contains$1(_,s):!1}return contains$1(o,s)})},filterNested=function(i){for(var s=new Set,o=i.length,a=0;a<o;a+=1)for(var _=a+1;_<o;_+=1){var $=i[a].compareDocumentPosition(i[_]);($&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&s.add(_),($&Node.DOCUMENT_POSITION_CONTAINS)>0&&s.add(a)}return i.filter(function(j,_e){return!s.has(_e)})},getTopParent=function(i){return i.parentNode?getTopParent(i.parentNode):i},getAllAffectedNodes=function(i){var s=asArray(i);return s.filter(Boolean).reduce(function(o,a){var _=a.getAttribute(FOCUS_GROUP);return o.push.apply(o,_?filterNested(toArray$2(getTopParent(a).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(_,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[a]),o},[])},safeProbe=function(i){try{return i()}catch{return}},getActiveElement=function(i){if(i===void 0&&(i=document),!(!i||!i.activeElement)){var s=i.activeElement;return s.shadowRoot?getActiveElement(s.shadowRoot):s instanceof HTMLIFrameElement&&safeProbe(function(){return s.contentWindow.document})?getActiveElement(s.contentWindow.document):s}},focusInFrame=function(i,s){return i===s},focusInsideIframe=function(i,s){return!!toArray$2(i.querySelectorAll("iframe")).some(function(o){return focusInFrame(o,s)})},focusInside=function(i,s){return s===void 0&&(s=getActiveElement(getFirst(i).ownerDocument)),!s||s.dataset&&s.dataset.focusGuard?!1:getAllAffectedNodes(i).some(function(o){return contains$1(o,s)||focusInsideIframe(o,s)})},focusIsHidden=function(i){i===void 0&&(i=document);var s=getActiveElement(i);return s?toArray$2(i.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(o){return contains$1(o,s)}):!1},findSelectedRadio=function(i,s){return s.filter(isRadioElement).filter(function(o){return o.name===i.name}).filter(function(o){return o.checked})[0]||i},correctNode=function(i,s){return isRadioElement(i)&&i.name?findSelectedRadio(i,s):i},correctNodes=function(i){var s=new Set;return i.forEach(function(o){return s.add(correctNode(o,i))}),i.filter(function(o){return s.has(o)})},pickFirstFocus=function(i){return i[0]&&i.length>1?correctNode(i[0],i):i[0]},pickFocusable=function(i,s){return i.indexOf(correctNode(s,i))},NEW_FOCUS="NEW_FOCUS",newFocus=function(i,s,o,a,_){var $=i.length,j=i[0],_e=i[$-1],et=isGuard(a);if(!(a&&i.indexOf(a)>=0)){var tt=a!==void 0?o.indexOf(a):-1,rt=_?o.indexOf(_):tt,it=_?i.indexOf(_):-1;if(tt===-1)return it!==-1?it:NEW_FOCUS;if(it===-1)return NEW_FOCUS;var nt=tt-rt,ut=o.indexOf(j),ct=o.indexOf(_e),st=correctNodes(o),dt=a!==void 0?st.indexOf(a):-1,ot=_?st.indexOf(_):dt,lt=st.filter(function(vt){return vt.tabIndex>=0}),at=a!==void 0?lt.indexOf(a):-1,ft=_?lt.indexOf(_):at,ht=at>=0&&ft>=0?ft-at:ot-dt;if(!nt&&it>=0||s.length===0)return it;var mt=pickFocusable(i,s[0]),gt=pickFocusable(i,s[s.length-1]);if(tt<=ut&&et&&Math.abs(nt)>1)return gt;if(tt>=ct&&et&&Math.abs(nt)>1)return mt;if(nt&&Math.abs(ht)>1)return it;if(tt<=ut)return gt;if(tt>ct)return mt;if(nt)return Math.abs(nt)>1?it:($+it+nt)%$}},findAutoFocused=function(i){return function(s){var o,a=(o=getDataset(s))===null||o===void 0?void 0:o.autofocus;return s.autofocus||a!==void 0&&a!=="false"||i.indexOf(s)>=0}},pickAutofocus=function(i,s,o){var a=i.map(function($){var j=$.node;return j}),_=filterAutoFocusable(a.filter(findAutoFocused(o)));return _&&_.length?pickFirstFocus(_):pickFirstFocus(filterAutoFocusable(s))},getParents=function(i,s){return s===void 0&&(s=[]),s.push(i),i.parentNode&&getParents(i.parentNode.host||i.parentNode,s),s},getCommonParent=function(i,s){for(var o=getParents(i),a=getParents(s),_=0;_<o.length;_+=1){var $=o[_];if(a.indexOf($)>=0)return $}return!1},getTopCommonParent=function(i,s,o){var a=asArray(i),_=asArray(s),$=a[0],j=!1;return _.filter(Boolean).forEach(function(_e){j=getCommonParent(j||_e,_e)||j,o.filter(Boolean).forEach(function(et){var tt=getCommonParent($,et);tt&&(!j||contains$1(tt,j)?j=tt:j=getCommonParent(tt,j))})}),j},allParentAutofocusables=function(i,s){return i.reduce(function(o,a){return o.concat(parentAutofocusables(a,s))},[])},reorderNodes=function(i,s){var o=new Map;return s.forEach(function(a){return o.set(a.node,a)}),i.map(function(a){return o.get(a)}).filter(isDefined)},focusSolver=function(i,s){var o=getActiveElement(asArray(i).length>0?document:getFirst(i).ownerDocument),a=getAllAffectedNodes(i).filter(isNotAGuard),_=getTopCommonParent(o||i,i,a),$=new Map,j=getFocusableNodes(a,$),_e=j.filter(function(ct){var st=ct.node;return isNotAGuard(st)});if(_e[0]){var et=getFocusableNodes([_],$).map(function(ct){var st=ct.node;return st}),tt=reorderNodes(et,_e),rt=tt.map(function(ct){var st=ct.node;return st}),it=tt.filter(function(ct){var st=ct.tabIndex;return st>=0}).map(function(ct){var st=ct.node;return st}),nt=newFocus(rt,it,et,o,s);if(nt===NEW_FOCUS){var ut=pickAutofocus(j,it,allParentAutofocusables(a,$))||pickAutofocus(j,rt,allParentAutofocusables(a,$));if(ut)return{node:ut};console.warn("focus-lock: cannot find any node to move focus into");return}return nt===void 0?nt:tt[nt]}},expandFocusableNodes=function(i){var s=getAllAffectedNodes(i).filter(isNotAGuard),o=getTopCommonParent(i,i,s),a=orderByTabIndex(getFocusables([o],!0),!0,!0),_=getFocusables(s,!1);return a.map(function($){var j=$.node,_e=$.index;return{node:j,index:_e,lockItem:_.indexOf(j)>=0,guard:isGuard(j)}})},focusOn=function(i,s){i&&("focus"in i&&i.focus(s),"contentWindow"in i&&i.contentWindow&&i.contentWindow.focus())},guardCount=0,lockDisabled=!1,moveFocusInside=function(i,s,o){o===void 0&&(o={});var a=focusSolver(i,s);if(!lockDisabled&&a){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(a.node,o.focusOptions),guardCount--}};function weakRef(i){if(!i)return null;if(typeof WeakRef>"u")return function(){return i||null};var s=i?new WeakRef(i):null;return function(){return(s==null?void 0:s.deref())||null}}var recordElementLocation=function(i){if(!i)return null;for(var s=[],o=i;o&&o!==document.body;)s.push({current:weakRef(o),parent:weakRef(o.parentElement),left:weakRef(o.previousElementSibling),right:weakRef(o.nextElementSibling)}),o=o.parentElement;return{element:weakRef(i),stack:s,ownerDocument:i.ownerDocument}},restoreFocusTo=function(i){var s,o,a,_,$;if(i)for(var j=i.stack,_e=i.ownerDocument,et=new Map,tt=0,rt=j;tt<rt.length;tt++){var it=rt[tt],nt=(s=it.parent)===null||s===void 0?void 0:s.call(it);if(nt&&_e.contains(nt)){for(var ut=(o=it.left)===null||o===void 0?void 0:o.call(it),ct=it.current(),st=nt.contains(ct)?ct:void 0,dt=(a=it.right)===null||a===void 0?void 0:a.call(it),ot=getTabbableNodes([nt],et),lt=($=(_=st??(ut==null?void 0:ut.nextElementSibling))!==null&&_!==void 0?_:dt)!==null&&$!==void 0?$:ut;lt;){for(var at=0,ft=ot;at<ft.length;at++){var ht=ft[at];if(lt!=null&&lt.contains(ht.node))return ht.node}lt=lt.nextElementSibling}if(ot.length)return ot[0].node}}},captureFocusRestore=function(i){var s=recordElementLocation(i);return function(){return restoreFocusTo(s)}},getRelativeFocusable=function(i,s,o){if(!i||!s)return console.error("no element or scope given"),{};var a=asArray(s);if(a.every(function(j){return!contains$1(j,i)}))return console.error("Active element is not contained in the scope"),{};var _=o?getTabbableNodes(a,new Map):getFocusableNodes(a,new Map),$=_.findIndex(function(j){var _e=j.node;return _e===i});if($!==-1)return{prev:_[$-1],next:_[$+1],first:_[0],last:_[_.length-1]}},getBoundary=function(i,s){var o=s?getTabbableNodes(asArray(i),new Map):getFocusableNodes(asArray(i),new Map);return{first:o[0],last:o[o.length-1]}},defaultOptions=function(i){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},i)},moveFocus=function(i,s,o){s===void 0&&(s={});var a=defaultOptions(s),_=getRelativeFocusable(i,a.scope,a.onlyTabbable);if(_){var $=o(_,a.cycle);$&&focusOn($.node,a.focusOptions)}},focusNextElement=function(i,s){s===void 0&&(s={}),moveFocus(i,s,function(o,a){var _=o.next,$=o.first;return _||a&&$})},focusPrevElement=function(i,s){s===void 0&&(s={}),moveFocus(i,s,function(o,a){var _=o.prev,$=o.last;return _||a&&$})},pickBoundary=function(i,s,o){var a,_=getBoundary(i,(a=s.onlyTabbable)!==null&&a!==void 0?a:!0),$=_[o];$&&focusOn($.node,s.focusOptions)},focusFirstElement=function(i,s){s===void 0&&(s={}),pickBoundary(i,s,"first")},focusLastElement=function(i,s){s===void 0&&(s={}),pickBoundary(i,s,"last")};function deferAction(i){setTimeout(i,1)}var extractRef$1=function(s){return s&&"current"in s?s.current:s},focusOnBody=function(){return document&&document.activeElement===document.body},isFreeFocus=function(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,tryRestoreFocus=function(){return null},lastPortaledElement=null,focusWasOutsideWindow=!1,windowFocused=!1,defaultWhitelist=function(){return!0},focusWhitelisted=function(s){return(lastActiveTrap.whiteList||defaultWhitelist)(s)},recordPortal=function(s,o){lastPortaledElement={observerNode:s,portaledElement:o}},focusIsPortaledPair=function(s){return lastPortaledElement&&lastPortaledElement.portaledElement===s};function autoGuard(i,s,o,a){var _=null,$=i;do{var j=a[$];if(j.guard)j.node.dataset.focusAutoGuard&&(_=j);else if(j.lockItem){if($!==i)return;_=null}else break}while(($+=o)!==s);_&&(_.node.tabIndex=0)}var focusWasOutside=function(s){return s?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function i(s,o,a){return o&&(o.host===s&&(!o.activeElement||a.contains(o.activeElement))||o.parentNode&&i(s,o.parentNode,a))},withinHost=function(s,o){return o.some(function(a){return checkInHost(s,a,a)})},getNodeFocusables=function(s){return getFocusableNodes(s,new Map)},isNotFocusable=function(s){return!getNodeFocusables([s.parentNode]).some(function(o){return o.node===s})},activateTrap=function(){var s=!1;if(lastActiveTrap){var o=lastActiveTrap,a=o.observed,_=o.persistentFocus,$=o.autoFocus,j=o.shards,_e=o.crossFrame,et=o.focusOptions,tt=o.noFocusGuards,rt=a||lastPortaledElement&&lastPortaledElement.portaledElement;if(focusOnBody()&&lastActiveFocus&&lastActiveFocus!==document.body&&(!document.body.contains(lastActiveFocus)||isNotFocusable(lastActiveFocus))){var it=tryRestoreFocus();it&&it.focus()}var nt=document&&document.activeElement;if(rt){var ut=[rt].concat(j.map(extractRef$1).filter(Boolean)),ct=function(){if(!focusWasOutside(_e)||!tt||!lastActiveFocus||windowFocused)return!1;var at=getNodeFocusables(ut),ft=at.findIndex(function(ht){var mt=ht.node;return mt===lastActiveFocus});return ft===0||ft===at.length-1};if((!nt||focusWhitelisted(nt))&&(_||ct()||!isFreeFocus()||!lastActiveFocus&&$)&&(rt&&!(focusInside(ut)||nt&&withinHost(nt,ut)||focusIsPortaledPair(nt))&&(document&&!lastActiveFocus&&nt&&!$?(nt.blur&&nt.blur(),document.body.focus()):(s=moveFocusInside(ut,lastActiveFocus,{focusOptions:et}),lastPortaledElement={})),lastActiveFocus=document&&document.activeElement,lastActiveFocus!==document.body&&(tryRestoreFocus=captureFocusRestore(lastActiveFocus)),focusWasOutsideWindow=!1),document&&nt!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var st=document&&document.activeElement,dt=expandFocusableNodes(ut),ot=dt.map(function(lt){var at=lt.node;return at}).indexOf(st);ot>-1&&(dt.filter(function(lt){var at=lt.guard,ft=lt.node;return at&&ft.dataset.focusAutoGuard}).forEach(function(lt){var at=lt.node;return at.removeAttribute("tabIndex")}),autoGuard(ot,dt.length,1,dt),autoGuard(ot,-1,-1,dt))}}}return s},onTrap=function(s){activateTrap()&&s&&(s.stopPropagation(),s.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onFocus=function(s){var o=s.target,a=s.currentTarget;a.contains(o)||recordPortal(a,o)},FocusWatcher=function(){return null},onWindowFocus=function(){windowFocused=!0},onWindowBlur=function(){windowFocused=!1,focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("focus",onWindowFocus),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("focus",onWindowFocus),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState(i){return i.filter(function(s){var o=s.disabled;return!o})}var focusLockAPI={moveFocusInside,focusInside,focusNextElement,focusPrevElement,focusFirstElement,focusLastElement,captureFocusRestore};function handleStateChangeOnClient(i){var s=i.slice(-1)[0];s&&!lastActiveTrap&&attachHandler();var o=lastActiveTrap,a=o&&s&&s.id===o.id;lastActiveTrap=s,o&&!a&&(o.onDeactivation(),i.filter(function(_){var $=_.id;return $===o.id}).length||o.returnFocus(!s)),s?(lastActiveFocus=null,(!a||o.observed!==s.observed)&&s.onActivation(focusLockAPI),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function(i){return i(focusLockAPI)});const FocusTrap$1=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function(s,o){return React$1.createElement(FocusLock$1,_extends$4({sideCar:FocusTrap$1,ref:o},s))}),_ref=FocusLock$1.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose$3(_ref,["sideCar"]);FocusLockCombination.propTypes={};const FocusTrap=FocusLockCombination.default??FocusLockCombination,FocusLock=i=>{const{initialFocusRef:s,finalFocusRef:o,contentRef:a,restoreFocus:_,children:$,isDisabled:j,autoFocus:_e,persistentFocus:et,lockFocusAcrossFrames:tt}=i,rt=reactExports.useCallback(()=>{s!=null&&s.current?s.current.focus():a!=null&&a.current&&getAllFocusable(a.current).length===0&&requestAnimationFrame(()=>{var ct;(ct=a.current)==null||ct.focus()})},[s,a]),it=reactExports.useCallback(()=>{var ut;(ut=o==null?void 0:o.current)==null||ut.focus()},[o]),nt=_&&!o;return jsxRuntimeExports.jsx(FocusTrap,{crossFrame:tt,persistentFocus:et,autoFocus:_e,disabled:j,onActivation:rt,onDeactivation:it,returnFocus:nt,children:$})};FocusLock.displayName="FocusLock";const FormLabel=forwardRef(function(s,o){const a=useStyleConfig("FormLabel",s),_=omitThemingProps(s),{className:$,children:j,requiredIndicator:_e=jsxRuntimeExports.jsx(RequiredIndicator,{}),optionalIndicator:et=null,...tt}=_,rt=useFormControlContext(),it=(rt==null?void 0:rt.getLabelProps(tt,o))??{ref:o,...tt};return jsxRuntimeExports.jsxs(chakra.label,{...it,className:cx("chakra-form__label",_.className),__css:{display:"block",textAlign:"start",...a},children:[j,rt!=null&&rt.isRequired?_e:et]})});FormLabel.displayName="FormLabel";const RequiredIndicator=forwardRef(function(s,o){const a=useFormControlContext(),_=useFormControlStyles();if(!(a!=null&&a.isRequired))return null;const $=cx("chakra-form__required-indicator",s.className);return jsxRuntimeExports.jsx(chakra.span,{...a==null?void 0:a.getRequiredIndicatorProps(s,o),__css:_.requiredIndicator,className:$})});RequiredIndicator.displayName="RequiredIndicator";const Grid=forwardRef(function(s,o){const{templateAreas:a,gap:_,rowGap:$,columnGap:j,column:_e,row:et,autoFlow:tt,autoRows:rt,templateRows:it,autoColumns:nt,templateColumns:ut,...ct}=s,st={display:"grid",gridTemplateAreas:a,gridGap:_,gridRowGap:$,gridColumnGap:j,gridAutoColumns:nt,gridColumn:_e,gridRow:et,gridAutoFlow:tt,gridAutoRows:rt,gridTemplateRows:it,gridTemplateColumns:ut};return jsxRuntimeExports.jsx(chakra.div,{ref:o,__css:st,...ct})});Grid.displayName="Grid";const SimpleGrid=forwardRef(function(s,o){const{columns:a,spacingX:_,spacingY:$,spacing:j,minChildWidth:_e,...et}=s,tt=useTheme(),rt=_e?widthToColumns(_e,tt):countToColumns(a);return jsxRuntimeExports.jsx(Grid,{ref:o,gap:j,columnGap:_,rowGap:$,templateColumns:rt,...et})});SimpleGrid.displayName="SimpleGrid";function toPx(i){return typeof i=="number"?`${i}px`:i}function widthToColumns(i,s){return mapResponsive(i,o=>{const a=getToken("sizes",o,toPx(o))(s);return o===null?null:`repeat(auto-fit, minmax(${a}, 1fr))`})}function countToColumns(i){return mapResponsive(i,s=>s===null?null:`repeat(${s}, minmax(0, 1fr))`)}function createIcon(i){const{viewBox:s="0 0 24 24",d:o,displayName:a,defaultProps:_={}}=i,$=reactExports.Children.toArray(i.path),j=forwardRef((_e,et)=>jsxRuntimeExports.jsx(Icon,{ref:et,viewBox:s,..._,..._e,children:$.length?$:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:o})}));return j.displayName=a,j}const NativeImage=forwardRef(function(s,o){const{htmlWidth:a,htmlHeight:_,alt:$,...j}=s;return jsxRuntimeExports.jsx("img",{width:a,height:_,ref:o,alt:$,...j})});NativeImage.displayName="NativeImage";const Image$1=forwardRef(function(s,o){const{fallbackSrc:a,fallback:_,src:$,srcSet:j,align:_e,fit:et,loading:tt,ignoreFallback:rt,crossOrigin:it,fallbackStrategy:nt="beforeLoadOrError",referrerPolicy:ut,...ct}=s,st=a!==void 0||_!==void 0,dt=tt!=null||rt||!st,ot=useImage({...s,crossOrigin:it,ignoreFallback:dt}),lt=shouldShowFallbackImage(ot,nt),at={ref:o,objectFit:et,objectPosition:_e,...dt?ct:omit(ct,["onError","onLoad"])};return lt?_||jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,className:"chakra-image__placeholder",src:a,...at}):jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,src:$,srcSet:j,crossOrigin:it,loading:tt,referrerPolicy:ut,className:"chakra-image",...at})});Image$1.displayName="Image";const Input=forwardRef(function(s,o){const{htmlSize:a,..._}=s,$=useMultiStyleConfig("Input",_),j=omitThemingProps(_),_e=useFormControl(j),et=cx("chakra-input",s.className);return jsxRuntimeExports.jsx(chakra.input,{size:a,..._e,__css:$.field,ref:o,className:et})});Input.displayName="Input";Input.id="Input";const[InputGroupStylesProvider,useInputGroupStyles]=createContext({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),InputGroup=forwardRef(function(s,o){const a=useMultiStyleConfig("Input",s),{children:_,className:$,...j}=omitThemingProps(s),_e=cx("chakra-input__group",$),et={},tt=getValidChildren(_),rt=a.field;tt.forEach(nt=>{a&&(rt&&nt.type.id==="InputLeftElement"&&(et.paddingStart=rt.height??rt.h),rt&&nt.type.id==="InputRightElement"&&(et.paddingEnd=rt.height??rt.h),nt.type.id==="InputRightAddon"&&(et.borderEndRadius=0),nt.type.id==="InputLeftAddon"&&(et.borderStartRadius=0))});const it=tt.map(nt=>{var ct,st;const ut=compact({size:((ct=nt.props)==null?void 0:ct.size)||s.size,variant:((st=nt.props)==null?void 0:st.variant)||s.variant});return nt.type.id!=="Input"?reactExports.cloneElement(nt,ut):reactExports.cloneElement(nt,Object.assign(ut,et,nt.props))});return jsxRuntimeExports.jsx(chakra.div,{className:_e,ref:o,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...a.group},"data-group":!0,...j,children:jsxRuntimeExports.jsx(InputGroupStylesProvider,{value:a,children:it})})});InputGroup.displayName="InputGroup";const placements$1={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},StyledAddon=chakra("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),InputAddon=forwardRef(function(s,o){const{placement:a="left",..._}=s,$=placements$1[a]??{},j=useInputGroupStyles();return jsxRuntimeExports.jsx(StyledAddon,{ref:o,..._,__css:{...j.addon,...$}})});InputAddon.displayName="InputAddon";const InputLeftAddon=forwardRef(function(s,o){return jsxRuntimeExports.jsx(InputAddon,{ref:o,placement:"left",...s,className:cx("chakra-input__left-addon",s.className)})});InputLeftAddon.displayName="InputLeftAddon";InputLeftAddon.id="InputLeftAddon";const InputRightAddon=forwardRef(function(s,o){return jsxRuntimeExports.jsx(InputAddon,{ref:o,placement:"right",...s,className:cx("chakra-input__right-addon",s.className)})});InputRightAddon.displayName="InputRightAddon";InputRightAddon.id="InputRightAddon";const Link$1=forwardRef(function(s,o){const a=useStyleConfig("Link",s),{className:_,isExternal:$,...j}=omitThemingProps(s);return jsxRuntimeExports.jsx(chakra.a,{target:$?"_blank":void 0,rel:$?"noopener":void 0,ref:o,className:cx("chakra-link",_),...j,__css:a})});Link$1.displayName="Link";const[ListStylesProvider,useListStyles]=createContext({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),List=forwardRef(function(s,o){const a=useMultiStyleConfig("List",s),{children:_,styleType:$="none",stylePosition:j,spacing:_e,...et}=omitThemingProps(s),tt=getValidChildren(_),it=_e?{["& > *:not(style) ~ *:not(style)"]:{mt:_e}}:{};return jsxRuntimeExports.jsx(ListStylesProvider,{value:a,children:jsxRuntimeExports.jsx(chakra.ul,{ref:o,listStyleType:$,listStylePosition:j,role:"list",__css:{...a.container,...it},...et,children:tt})})});List.displayName="List";const OrderedList=forwardRef((i,s)=>{const{as:o,...a}=i;return jsxRuntimeExports.jsx(List,{ref:s,as:"ol",styleType:"decimal",marginStart:"1em",...a})});OrderedList.displayName="OrderedList";const UnorderedList=forwardRef(function(s,o){const{as:a,..._}=s;return jsxRuntimeExports.jsx(List,{ref:o,as:"ul",styleType:"initial",marginStart:"1em",..._})});UnorderedList.displayName="UnorderedList";const ListItem=forwardRef(function(s,o){const a=useListStyles();return jsxRuntimeExports.jsx(chakra.li,{ref:o,...s,__css:a.item})});ListItem.displayName="ListItem";const ListIcon=forwardRef(function(s,o){const a=useListStyles();return jsxRuntimeExports.jsx(Icon,{ref:o,role:"presentation",...s,__css:a.icon})});ListIcon.displayName="ListIcon";function useMediaQuery(i,s={}){const{ssr:o=!0,fallback:a}=s,{getWindow:_}=useEnvironment(),$=Array.isArray(i)?i:[i];let j=Array.isArray(a)?a:[a];j=j.filter(tt=>tt!=null);const[_e,et]=reactExports.useState(()=>$.map((tt,rt)=>({media:tt,matches:o?!!j[rt]:_().matchMedia(tt).matches})));return reactExports.useEffect(()=>{const tt=_();et($.map(nt=>({media:nt,matches:tt.matchMedia(nt).matches})));const rt=$.map(nt=>tt.matchMedia(nt)),it=nt=>{et(ut=>ut.slice().map(ct=>ct.media===nt.media?{...ct,matches:nt.matches}:ct))};return rt.forEach(nt=>{typeof nt.addListener=="function"?nt.addListener(it):nt.addEventListener("change",it)}),()=>{rt.forEach(nt=>{typeof nt.removeListener=="function"?nt.removeListener(it):nt.removeEventListener("change",it)})}},[_]),_e.map(tt=>tt.matches)}function getNextItemFromSearch(i,s,o,a){if(s==null)return a;if(!a)return i.find(j=>o(j).toLowerCase().startsWith(s.toLowerCase()));const _=i.filter($=>o($).toLowerCase().startsWith(s.toLowerCase()));if(_.length>0){let $;return _.includes(a)?($=_.indexOf(a)+1,$===_.length&&($=0),_[$]):($=i.indexOf(_[0]),i[$])}return a}function isPrintableCharacter(i){const{key:s}=i;return s.length===1||s.length>1&&/[^a-zA-Z0-9]/.test(s)}function useShortcut(i={}){const{timeout:s=300,preventDefault:o=()=>!0}=i,[a,_]=reactExports.useState([]),$=reactExports.useRef(void 0),j=()=>{$.current&&(clearTimeout($.current),$.current=null)},_e=()=>{j(),$.current=setTimeout(()=>{_([]),$.current=null},s)};reactExports.useEffect(()=>j,[]);function et(tt){return rt=>{if(rt.key==="Backspace"){const it=[...a];it.pop(),_(it);return}if(isPrintableCharacter(rt)){const it=a.concat(rt.key);o(rt)&&(rt.preventDefault(),rt.stopPropagation()),_(it),tt(it.join("")),_e()}}}return et}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(i,s){return i.concat([s+"-"+start,s+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(i,s){return i.concat([s,s+"-"+start,s+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(i){return i?(i.nodeName||"").toLowerCase():null}function getWindow(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var s=i.ownerDocument;return s&&s.defaultView||window}return i}function isElement$1(i){var s=getWindow(i).Element;return i instanceof s||i instanceof Element}function isHTMLElement$1(i){var s=getWindow(i).HTMLElement;return i instanceof s||i instanceof HTMLElement}function isShadowRoot(i){if(typeof ShadowRoot>"u")return!1;var s=getWindow(i).ShadowRoot;return i instanceof s||i instanceof ShadowRoot}function applyStyles(i){var s=i.state;Object.keys(s.elements).forEach(function(o){var a=s.styles[o]||{},_=s.attributes[o]||{},$=s.elements[o];!isHTMLElement$1($)||!getNodeName($)||(Object.assign($.style,a),Object.keys(_).forEach(function(j){var _e=_[j];_e===!1?$.removeAttribute(j):$.setAttribute(j,_e===!0?"":_e)}))})}function effect$2(i){var s=i.state,o={popper:{position:s.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(s.elements.popper.style,o.popper),s.styles=o,s.elements.arrow&&Object.assign(s.elements.arrow.style,o.arrow),function(){Object.keys(s.elements).forEach(function(a){var _=s.elements[a],$=s.attributes[a]||{},j=Object.keys(s.styles.hasOwnProperty(a)?s.styles[a]:o[a]),_e=j.reduce(function(et,tt){return et[tt]="",et},{});!isHTMLElement$1(_)||!getNodeName(_)||(Object.assign(_.style,_e),Object.keys($).forEach(function(et){_.removeAttribute(et)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(i){return i.split("-")[0]}var max$1=Math.max,min$1=Math.min,round$1=Math.round;function getUAString(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(s){return s.brand+"/"+s.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(i,s,o){s===void 0&&(s=!1),o===void 0&&(o=!1);var a=i.getBoundingClientRect(),_=1,$=1;s&&isHTMLElement$1(i)&&(_=i.offsetWidth>0&&round$1(a.width)/i.offsetWidth||1,$=i.offsetHeight>0&&round$1(a.height)/i.offsetHeight||1);var j=isElement$1(i)?getWindow(i):window,_e=j.visualViewport,et=!isLayoutViewport()&&o,tt=(a.left+(et&&_e?_e.offsetLeft:0))/_,rt=(a.top+(et&&_e?_e.offsetTop:0))/$,it=a.width/_,nt=a.height/$;return{width:it,height:nt,top:rt,right:tt+it,bottom:rt+nt,left:tt,x:tt,y:rt}}function getLayoutRect(i){var s=getBoundingClientRect(i),o=i.offsetWidth,a=i.offsetHeight;return Math.abs(s.width-o)<=1&&(o=s.width),Math.abs(s.height-a)<=1&&(a=s.height),{x:i.offsetLeft,y:i.offsetTop,width:o,height:a}}function contains(i,s){var o=s.getRootNode&&s.getRootNode();if(i.contains(s))return!0;if(o&&isShadowRoot(o)){var a=s;do{if(a&&i.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function getComputedStyle(i){return getWindow(i).getComputedStyle(i)}function isTableElement(i){return["table","td","th"].indexOf(getNodeName(i))>=0}function getDocumentElement(i){return((isElement$1(i)?i.ownerDocument:i.document)||window.document).documentElement}function getParentNode(i){return getNodeName(i)==="html"?i:i.assignedSlot||i.parentNode||(isShadowRoot(i)?i.host:null)||getDocumentElement(i)}function getTrueOffsetParent(i){return!isHTMLElement$1(i)||getComputedStyle(i).position==="fixed"?null:i.offsetParent}function getContainingBlock(i){var s=/firefox/i.test(getUAString()),o=/Trident/i.test(getUAString());if(o&&isHTMLElement$1(i)){var a=getComputedStyle(i);if(a.position==="fixed")return null}var _=getParentNode(i);for(isShadowRoot(_)&&(_=_.host);isHTMLElement$1(_)&&["html","body"].indexOf(getNodeName(_))<0;){var $=getComputedStyle(_);if($.transform!=="none"||$.perspective!=="none"||$.contain==="paint"||["transform","perspective"].indexOf($.willChange)!==-1||s&&$.willChange==="filter"||s&&$.filter&&$.filter!=="none")return _;_=_.parentNode}return null}function getOffsetParent(i){for(var s=getWindow(i),o=getTrueOffsetParent(i);o&&isTableElement(o)&&getComputedStyle(o).position==="static";)o=getTrueOffsetParent(o);return o&&(getNodeName(o)==="html"||getNodeName(o)==="body"&&getComputedStyle(o).position==="static")?s:o||getContainingBlock(i)||s}function getMainAxisFromPlacement(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function within(i,s,o){return max$1(i,min$1(s,o))}function withinMaxClamp(i,s,o){var a=within(i,s,o);return a>o?o:a}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(i){return Object.assign({},getFreshSideObject(),i)}function expandToHashMap(i,s){return s.reduce(function(o,a){return o[a]=i,o},{})}var toPaddingObject=function(s,o){return s=typeof s=="function"?s(Object.assign({},o.rects,{placement:o.placement})):s,mergePaddingObject(typeof s!="number"?s:expandToHashMap(s,basePlacements))};function arrow(i){var s,o=i.state,a=i.name,_=i.options,$=o.elements.arrow,j=o.modifiersData.popperOffsets,_e=getBasePlacement(o.placement),et=getMainAxisFromPlacement(_e),tt=[left,right].indexOf(_e)>=0,rt=tt?"height":"width";if(!(!$||!j)){var it=toPaddingObject(_.padding,o),nt=getLayoutRect($),ut=et==="y"?top:left,ct=et==="y"?bottom:right,st=o.rects.reference[rt]+o.rects.reference[et]-j[et]-o.rects.popper[rt],dt=j[et]-o.rects.reference[et],ot=getOffsetParent($),lt=ot?et==="y"?ot.clientHeight||0:ot.clientWidth||0:0,at=st/2-dt/2,ft=it[ut],ht=lt-nt[rt]-it[ct],mt=lt/2-nt[rt]/2+at,gt=within(ft,mt,ht),vt=et;o.modifiersData[a]=(s={},s[vt]=gt,s.centerOffset=gt-mt,s)}}function effect$1(i){var s=i.state,o=i.options,a=o.element,_=a===void 0?"[data-popper-arrow]":a;_!=null&&(typeof _=="string"&&(_=s.elements.popper.querySelector(_),!_)||contains(s.elements.popper,_)&&(s.elements.arrow=_))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(i){return i.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(i,s){var o=i.x,a=i.y,_=s.devicePixelRatio||1;return{x:round$1(o*_)/_||0,y:round$1(a*_)/_||0}}function mapToStyles(i){var s,o=i.popper,a=i.popperRect,_=i.placement,$=i.variation,j=i.offsets,_e=i.position,et=i.gpuAcceleration,tt=i.adaptive,rt=i.roundOffsets,it=i.isFixed,nt=j.x,ut=nt===void 0?0:nt,ct=j.y,st=ct===void 0?0:ct,dt=typeof rt=="function"?rt({x:ut,y:st}):{x:ut,y:st};ut=dt.x,st=dt.y;var ot=j.hasOwnProperty("x"),lt=j.hasOwnProperty("y"),at=left,ft=top,ht=window;if(tt){var mt=getOffsetParent(o),gt="clientHeight",vt="clientWidth";if(mt===getWindow(o)&&(mt=getDocumentElement(o),getComputedStyle(mt).position!=="static"&&_e==="absolute"&&(gt="scrollHeight",vt="scrollWidth")),mt=mt,_===top||(_===left||_===right)&&$===end){ft=bottom;var St=it&&mt===ht&&ht.visualViewport?ht.visualViewport.height:mt[gt];st-=St-a.height,st*=et?1:-1}if(_===left||(_===top||_===bottom)&&$===end){at=right;var wt=it&&mt===ht&&ht.visualViewport?ht.visualViewport.width:mt[vt];ut-=wt-a.width,ut*=et?1:-1}}var Pt=Object.assign({position:_e},tt&&unsetSides),Rt=rt===!0?roundOffsetsByDPR({x:ut,y:st},getWindow(o)):{x:ut,y:st};if(ut=Rt.x,st=Rt.y,et){var It;return Object.assign({},Pt,(It={},It[ft]=lt?"0":"",It[at]=ot?"0":"",It.transform=(ht.devicePixelRatio||1)<=1?"translate("+ut+"px, "+st+"px)":"translate3d("+ut+"px, "+st+"px, 0)",It))}return Object.assign({},Pt,(s={},s[ft]=lt?st+"px":"",s[at]=ot?ut+"px":"",s.transform="",s))}function computeStyles(i){var s=i.state,o=i.options,a=o.gpuAcceleration,_=a===void 0?!0:a,$=o.adaptive,j=$===void 0?!0:$,_e=o.roundOffsets,et=_e===void 0?!0:_e,tt={placement:getBasePlacement(s.placement),variation:getVariation(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:_,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,mapToStyles(Object.assign({},tt,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:j,roundOffsets:et})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,mapToStyles(Object.assign({},tt,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:et})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(i){var s=i.state,o=i.instance,a=i.options,_=a.scroll,$=_===void 0?!0:_,j=a.resize,_e=j===void 0?!0:j,et=getWindow(s.elements.popper),tt=[].concat(s.scrollParents.reference,s.scrollParents.popper);return $&&tt.forEach(function(rt){rt.addEventListener("scroll",o.update,passive)}),_e&&et.addEventListener("resize",o.update,passive),function(){$&&tt.forEach(function(rt){rt.removeEventListener("scroll",o.update,passive)}),_e&&et.removeEventListener("resize",o.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(i){return i.replace(/left|right|bottom|top/g,function(s){return hash$1[s]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(i){return i.replace(/start|end/g,function(s){return hash[s]})}function getWindowScroll(i){var s=getWindow(i),o=s.pageXOffset,a=s.pageYOffset;return{scrollLeft:o,scrollTop:a}}function getWindowScrollBarX(i){return getBoundingClientRect(getDocumentElement(i)).left+getWindowScroll(i).scrollLeft}function getViewportRect(i,s){var o=getWindow(i),a=getDocumentElement(i),_=o.visualViewport,$=a.clientWidth,j=a.clientHeight,_e=0,et=0;if(_){$=_.width,j=_.height;var tt=isLayoutViewport();(tt||!tt&&s==="fixed")&&(_e=_.offsetLeft,et=_.offsetTop)}return{width:$,height:j,x:_e+getWindowScrollBarX(i),y:et}}function getDocumentRect(i){var s,o=getDocumentElement(i),a=getWindowScroll(i),_=(s=i.ownerDocument)==null?void 0:s.body,$=max$1(o.scrollWidth,o.clientWidth,_?_.scrollWidth:0,_?_.clientWidth:0),j=max$1(o.scrollHeight,o.clientHeight,_?_.scrollHeight:0,_?_.clientHeight:0),_e=-a.scrollLeft+getWindowScrollBarX(i),et=-a.scrollTop;return getComputedStyle(_||o).direction==="rtl"&&(_e+=max$1(o.clientWidth,_?_.clientWidth:0)-$),{width:$,height:j,x:_e,y:et}}function isScrollParent(i){var s=getComputedStyle(i),o=s.overflow,a=s.overflowX,_=s.overflowY;return/auto|scroll|overlay|hidden/.test(o+_+a)}function getScrollParent(i){return["html","body","#document"].indexOf(getNodeName(i))>=0?i.ownerDocument.body:isHTMLElement$1(i)&&isScrollParent(i)?i:getScrollParent(getParentNode(i))}function listScrollParents(i,s){var o;s===void 0&&(s=[]);var a=getScrollParent(i),_=a===((o=i.ownerDocument)==null?void 0:o.body),$=getWindow(a),j=_?[$].concat($.visualViewport||[],isScrollParent(a)?a:[]):a,_e=s.concat(j);return _?_e:_e.concat(listScrollParents(getParentNode(j)))}function rectToClientRect(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function getInnerBoundingClientRect(i,s){var o=getBoundingClientRect(i,!1,s==="fixed");return o.top=o.top+i.clientTop,o.left=o.left+i.clientLeft,o.bottom=o.top+i.clientHeight,o.right=o.left+i.clientWidth,o.width=i.clientWidth,o.height=i.clientHeight,o.x=o.left,o.y=o.top,o}function getClientRectFromMixedType(i,s,o){return s===viewport?rectToClientRect(getViewportRect(i,o)):isElement$1(s)?getInnerBoundingClientRect(s,o):rectToClientRect(getDocumentRect(getDocumentElement(i)))}function getClippingParents(i){var s=listScrollParents(getParentNode(i)),o=["absolute","fixed"].indexOf(getComputedStyle(i).position)>=0,a=o&&isHTMLElement$1(i)?getOffsetParent(i):i;return isElement$1(a)?s.filter(function(_){return isElement$1(_)&&contains(_,a)&&getNodeName(_)!=="body"}):[]}function getClippingRect(i,s,o,a){var _=s==="clippingParents"?getClippingParents(i):[].concat(s),$=[].concat(_,[o]),j=$[0],_e=$.reduce(function(et,tt){var rt=getClientRectFromMixedType(i,tt,a);return et.top=max$1(rt.top,et.top),et.right=min$1(rt.right,et.right),et.bottom=min$1(rt.bottom,et.bottom),et.left=max$1(rt.left,et.left),et},getClientRectFromMixedType(i,j,a));return _e.width=_e.right-_e.left,_e.height=_e.bottom-_e.top,_e.x=_e.left,_e.y=_e.top,_e}function computeOffsets(i){var s=i.reference,o=i.element,a=i.placement,_=a?getBasePlacement(a):null,$=a?getVariation(a):null,j=s.x+s.width/2-o.width/2,_e=s.y+s.height/2-o.height/2,et;switch(_){case top:et={x:j,y:s.y-o.height};break;case bottom:et={x:j,y:s.y+s.height};break;case right:et={x:s.x+s.width,y:_e};break;case left:et={x:s.x-o.width,y:_e};break;default:et={x:s.x,y:s.y}}var tt=_?getMainAxisFromPlacement(_):null;if(tt!=null){var rt=tt==="y"?"height":"width";switch($){case start:et[tt]=et[tt]-(s[rt]/2-o[rt]/2);break;case end:et[tt]=et[tt]+(s[rt]/2-o[rt]/2);break}}return et}function detectOverflow(i,s){s===void 0&&(s={});var o=s,a=o.placement,_=a===void 0?i.placement:a,$=o.strategy,j=$===void 0?i.strategy:$,_e=o.boundary,et=_e===void 0?clippingParents:_e,tt=o.rootBoundary,rt=tt===void 0?viewport:tt,it=o.elementContext,nt=it===void 0?popper:it,ut=o.altBoundary,ct=ut===void 0?!1:ut,st=o.padding,dt=st===void 0?0:st,ot=mergePaddingObject(typeof dt!="number"?dt:expandToHashMap(dt,basePlacements)),lt=nt===popper?reference:popper,at=i.rects.popper,ft=i.elements[ct?lt:nt],ht=getClippingRect(isElement$1(ft)?ft:ft.contextElement||getDocumentElement(i.elements.popper),et,rt,j),mt=getBoundingClientRect(i.elements.reference),gt=computeOffsets({reference:mt,element:at,placement:_}),vt=rectToClientRect(Object.assign({},at,gt)),St=nt===popper?vt:mt,wt={top:ht.top-St.top+ot.top,bottom:St.bottom-ht.bottom+ot.bottom,left:ht.left-St.left+ot.left,right:St.right-ht.right+ot.right},Pt=i.modifiersData.offset;if(nt===popper&&Pt){var Rt=Pt[_];Object.keys(wt).forEach(function(It){var jt=[right,bottom].indexOf(It)>=0?1:-1,Mt=[top,bottom].indexOf(It)>=0?"y":"x";wt[It]+=Rt[Mt]*jt})}return wt}function computeAutoPlacement(i,s){s===void 0&&(s={});var o=s,a=o.placement,_=o.boundary,$=o.rootBoundary,j=o.padding,_e=o.flipVariations,et=o.allowedAutoPlacements,tt=et===void 0?placements:et,rt=getVariation(a),it=rt?_e?variationPlacements:variationPlacements.filter(function(ct){return getVariation(ct)===rt}):basePlacements,nt=it.filter(function(ct){return tt.indexOf(ct)>=0});nt.length===0&&(nt=it);var ut=nt.reduce(function(ct,st){return ct[st]=detectOverflow(i,{placement:st,boundary:_,rootBoundary:$,padding:j})[getBasePlacement(st)],ct},{});return Object.keys(ut).sort(function(ct,st){return ut[ct]-ut[st]})}function getExpandedFallbackPlacements(i){if(getBasePlacement(i)===auto)return[];var s=getOppositePlacement(i);return[getOppositeVariationPlacement(i),s,getOppositeVariationPlacement(s)]}function flip(i){var s=i.state,o=i.options,a=i.name;if(!s.modifiersData[a]._skip){for(var _=o.mainAxis,$=_===void 0?!0:_,j=o.altAxis,_e=j===void 0?!0:j,et=o.fallbackPlacements,tt=o.padding,rt=o.boundary,it=o.rootBoundary,nt=o.altBoundary,ut=o.flipVariations,ct=ut===void 0?!0:ut,st=o.allowedAutoPlacements,dt=s.options.placement,ot=getBasePlacement(dt),lt=ot===dt,at=et||(lt||!ct?[getOppositePlacement(dt)]:getExpandedFallbackPlacements(dt)),ft=[dt].concat(at).reduce(function(Ot,Vt){return Ot.concat(getBasePlacement(Vt)===auto?computeAutoPlacement(s,{placement:Vt,boundary:rt,rootBoundary:it,padding:tt,flipVariations:ct,allowedAutoPlacements:st}):Vt)},[]),ht=s.rects.reference,mt=s.rects.popper,gt=new Map,vt=!0,St=ft[0],wt=0;wt<ft.length;wt++){var Pt=ft[wt],Rt=getBasePlacement(Pt),It=getVariation(Pt)===start,jt=[top,bottom].indexOf(Rt)>=0,Mt=jt?"width":"height",xt=detectOverflow(s,{placement:Pt,boundary:rt,rootBoundary:it,altBoundary:nt,padding:tt}),bt=jt?It?right:left:It?bottom:top;ht[Mt]>mt[Mt]&&(bt=getOppositePlacement(bt));var pt=getOppositePlacement(bt),yt=[];if($&&yt.push(xt[Rt]<=0),_e&&yt.push(xt[bt]<=0,xt[pt]<=0),yt.every(function(Ot){return Ot})){St=Pt,vt=!1;break}gt.set(Pt,yt)}if(vt)for(var kt=ct?3:1,Et=function(Vt){var Lt=ft.find(function(Wt){var qt=gt.get(Wt);if(qt)return qt.slice(0,Vt).every(function(dr){return dr})});if(Lt)return St=Lt,"break"},$t=kt;$t>0;$t--){var At=Et($t);if(At==="break")break}s.placement!==St&&(s.modifiersData[a]._skip=!0,s.placement=St,s.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(i,s,o){return o===void 0&&(o={x:0,y:0}),{top:i.top-s.height-o.y,right:i.right-s.width+o.x,bottom:i.bottom-s.height+o.y,left:i.left-s.width-o.x}}function isAnySideFullyClipped(i){return[top,right,bottom,left].some(function(s){return i[s]>=0})}function hide(i){var s=i.state,o=i.name,a=s.rects.reference,_=s.rects.popper,$=s.modifiersData.preventOverflow,j=detectOverflow(s,{elementContext:"reference"}),_e=detectOverflow(s,{altBoundary:!0}),et=getSideOffsets(j,a),tt=getSideOffsets(_e,_,$),rt=isAnySideFullyClipped(et),it=isAnySideFullyClipped(tt);s.modifiersData[o]={referenceClippingOffsets:et,popperEscapeOffsets:tt,isReferenceHidden:rt,hasPopperEscaped:it},s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-reference-hidden":rt,"data-popper-escaped":it})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(i,s,o){var a=getBasePlacement(i),_=[left,top].indexOf(a)>=0?-1:1,$=typeof o=="function"?o(Object.assign({},s,{placement:i})):o,j=$[0],_e=$[1];return j=j||0,_e=(_e||0)*_,[left,right].indexOf(a)>=0?{x:_e,y:j}:{x:j,y:_e}}function offset$1(i){var s=i.state,o=i.options,a=i.name,_=o.offset,$=_===void 0?[0,0]:_,j=placements.reduce(function(rt,it){return rt[it]=distanceAndSkiddingToXY(it,s.rects,$),rt},{}),_e=j[s.placement],et=_e.x,tt=_e.y;s.modifiersData.popperOffsets!=null&&(s.modifiersData.popperOffsets.x+=et,s.modifiersData.popperOffsets.y+=tt),s.modifiersData[a]=j}const offset$2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset$1};function popperOffsets(i){var s=i.state,o=i.name;s.modifiersData[o]=computeOffsets({reference:s.rects.reference,element:s.rects.popper,placement:s.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(i){return i==="x"?"y":"x"}function preventOverflow(i){var s=i.state,o=i.options,a=i.name,_=o.mainAxis,$=_===void 0?!0:_,j=o.altAxis,_e=j===void 0?!1:j,et=o.boundary,tt=o.rootBoundary,rt=o.altBoundary,it=o.padding,nt=o.tether,ut=nt===void 0?!0:nt,ct=o.tetherOffset,st=ct===void 0?0:ct,dt=detectOverflow(s,{boundary:et,rootBoundary:tt,padding:it,altBoundary:rt}),ot=getBasePlacement(s.placement),lt=getVariation(s.placement),at=!lt,ft=getMainAxisFromPlacement(ot),ht=getAltAxis(ft),mt=s.modifiersData.popperOffsets,gt=s.rects.reference,vt=s.rects.popper,St=typeof st=="function"?st(Object.assign({},s.rects,{placement:s.placement})):st,wt=typeof St=="number"?{mainAxis:St,altAxis:St}:Object.assign({mainAxis:0,altAxis:0},St),Pt=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,Rt={x:0,y:0};if(mt){if($){var It,jt=ft==="y"?top:left,Mt=ft==="y"?bottom:right,xt=ft==="y"?"height":"width",bt=mt[ft],pt=bt+dt[jt],yt=bt-dt[Mt],kt=ut?-vt[xt]/2:0,Et=lt===start?gt[xt]:vt[xt],$t=lt===start?-vt[xt]:-gt[xt],At=s.elements.arrow,Ot=ut&&At?getLayoutRect(At):{width:0,height:0},Vt=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Lt=Vt[jt],Wt=Vt[Mt],qt=within(0,gt[xt],Ot[xt]),dr=at?gt[xt]/2-kt-qt-Lt-wt.mainAxis:Et-qt-Lt-wt.mainAxis,ir=at?-gt[xt]/2+kt+qt+Wt+wt.mainAxis:$t+qt+Wt+wt.mainAxis,Zt=s.elements.arrow&&getOffsetParent(s.elements.arrow),or=Zt?ft==="y"?Zt.clientTop||0:Zt.clientLeft||0:0,Ut=(It=Pt==null?void 0:Pt[ft])!=null?It:0,Bt=bt+dr-Ut-or,yr=bt+ir-Ut,rr=within(ut?min$1(pt,Bt):pt,bt,ut?max$1(yt,yr):yt);mt[ft]=rr,Rt[ft]=rr-bt}if(_e){var ar,lr=ft==="x"?top:left,cr=ft==="x"?bottom:right,Jt=mt[ht],nr=ht==="y"?"height":"width",pr=Jt+dt[lr],ur=Jt-dt[cr],hr=[top,left].indexOf(ot)!==-1,br=(ar=Pt==null?void 0:Pt[ht])!=null?ar:0,mr=hr?pr:Jt-gt[nr]-vt[nr]-br+wt.altAxis,wr=hr?Jt+gt[nr]+vt[nr]-br-wt.altAxis:ur,kr=ut&&hr?withinMaxClamp(mr,Jt,wr):within(ut?mr:pr,Jt,ut?wr:ur);mt[ht]=kr,Rt[ht]=kr-Jt}s.modifiersData[a]=Rt}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function getNodeScroll(i){return i===getWindow(i)||!isHTMLElement$1(i)?getWindowScroll(i):getHTMLElementScroll(i)}function isElementScaled(i){var s=i.getBoundingClientRect(),o=round$1(s.width)/i.offsetWidth||1,a=round$1(s.height)/i.offsetHeight||1;return o!==1||a!==1}function getCompositeRect(i,s,o){o===void 0&&(o=!1);var a=isHTMLElement$1(s),_=isHTMLElement$1(s)&&isElementScaled(s),$=getDocumentElement(s),j=getBoundingClientRect(i,_,o),_e={scrollLeft:0,scrollTop:0},et={x:0,y:0};return(a||!a&&!o)&&((getNodeName(s)!=="body"||isScrollParent($))&&(_e=getNodeScroll(s)),isHTMLElement$1(s)?(et=getBoundingClientRect(s,!0),et.x+=s.clientLeft,et.y+=s.clientTop):$&&(et.x=getWindowScrollBarX($))),{x:j.left+_e.scrollLeft-et.x,y:j.top+_e.scrollTop-et.y,width:j.width,height:j.height}}function order(i){var s=new Map,o=new Set,a=[];i.forEach(function($){s.set($.name,$)});function _($){o.add($.name);var j=[].concat($.requires||[],$.requiresIfExists||[]);j.forEach(function(_e){if(!o.has(_e)){var et=s.get(_e);et&&_(et)}}),a.push($)}return i.forEach(function($){o.has($.name)||_($)}),a}function orderModifiers(i){var s=order(i);return modifierPhases.reduce(function(o,a){return o.concat(s.filter(function(_){return _.phase===a}))},[])}function debounce(i){var s;return function(){return s||(s=new Promise(function(o){Promise.resolve().then(function(){s=void 0,o(i())})})),s}}function mergeByName(i){var s=i.reduce(function(o,a){var _=o[a.name];return o[a.name]=_?Object.assign({},_,a,{options:Object.assign({},_.options,a.options),data:Object.assign({},_.data,a.data)}):a,o},{});return Object.keys(s).map(function(o){return s[o]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return!s.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function popperGenerator(i){i===void 0&&(i={});var s=i,o=s.defaultModifiers,a=o===void 0?[]:o,_=s.defaultOptions,$=_===void 0?DEFAULT_OPTIONS:_;return function(_e,et,tt){tt===void 0&&(tt=$);var rt={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,$),modifiersData:{},elements:{reference:_e,popper:et},attributes:{},styles:{}},it=[],nt=!1,ut={state:rt,setOptions:function(ot){var lt=typeof ot=="function"?ot(rt.options):ot;st(),rt.options=Object.assign({},$,rt.options,lt),rt.scrollParents={reference:isElement$1(_e)?listScrollParents(_e):_e.contextElement?listScrollParents(_e.contextElement):[],popper:listScrollParents(et)};var at=orderModifiers(mergeByName([].concat(a,rt.options.modifiers)));return rt.orderedModifiers=at.filter(function(ft){return ft.enabled}),ct(),ut.update()},forceUpdate:function(){if(!nt){var ot=rt.elements,lt=ot.reference,at=ot.popper;if(areValidElements(lt,at)){rt.rects={reference:getCompositeRect(lt,getOffsetParent(at),rt.options.strategy==="fixed"),popper:getLayoutRect(at)},rt.reset=!1,rt.placement=rt.options.placement,rt.orderedModifiers.forEach(function(wt){return rt.modifiersData[wt.name]=Object.assign({},wt.data)});for(var ft=0;ft<rt.orderedModifiers.length;ft++){if(rt.reset===!0){rt.reset=!1,ft=-1;continue}var ht=rt.orderedModifiers[ft],mt=ht.fn,gt=ht.options,vt=gt===void 0?{}:gt,St=ht.name;typeof mt=="function"&&(rt=mt({state:rt,options:vt,name:St,instance:ut})||rt)}}}},update:debounce(function(){return new Promise(function(dt){ut.forceUpdate(),dt(rt)})}),destroy:function(){st(),nt=!0}};if(!areValidElements(_e,et))return ut;ut.setOptions(tt).then(function(dt){!nt&&tt.onFirstUpdate&&tt.onFirstUpdate(dt)});function ct(){rt.orderedModifiers.forEach(function(dt){var ot=dt.name,lt=dt.options,at=lt===void 0?{}:lt,ft=dt.effect;if(typeof ft=="function"){var ht=ft({state:rt,name:ot,instance:ut,options:at}),mt=function(){};it.push(ht||mt)}})}function st(){it.forEach(function(dt){return dt()}),it=[]}return ut}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$2,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers});const toVar=(i,s)=>({var:i,varRef:s?`var(${i}, ${s})`:`var(${i})`}),cssVars={arrowSize:toVar("--popper-arrow-size","8px"),arrowSizeHalf:toVar("--popper-arrow-size-half"),arrowBg:toVar("--popper-arrow-bg"),transformOrigin:toVar("--popper-transform-origin"),arrowOffset:toVar("--popper-arrow-offset")};function getBoxShadow(i){if(i.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(i.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(i.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(i.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const transforms={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},toTransformOrigin=i=>transforms[i],defaultEventListeners={scroll:!0,resize:!0};function getEventListenerOptions(i){let s;return typeof i=="object"?s={enabled:!0,options:{...defaultEventListeners,...i}}:s={enabled:i,options:defaultEventListeners},s}const matchWidth={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:i})=>{i.styles.popper.width=`${i.rects.reference.width}px`},effect:({state:i})=>()=>{const s=i.elements.reference;i.elements.popper.style.width=`${s.offsetWidth}px`}},transformOrigin={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:i})=>{setTransformOrigin(i)},effect:({state:i})=>()=>{setTransformOrigin(i)}},setTransformOrigin=i=>{i.elements.popper.style.setProperty(cssVars.transformOrigin.var,toTransformOrigin(i.placement))},positionArrow={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:i})=>{setArrowStyles(i)}},setArrowStyles=i=>{var o;if(!i.placement)return;const s=getArrowStyle$1(i.placement);if((o=i.elements)!=null&&o.arrow&&s){Object.assign(i.elements.arrow.style,{[s.property]:s.value,width:cssVars.arrowSize.varRef,height:cssVars.arrowSize.varRef,zIndex:-1});const a={[cssVars.arrowSizeHalf.var]:`calc(${cssVars.arrowSize.varRef} / 2 - 1px)`,[cssVars.arrowOffset.var]:`calc(${cssVars.arrowSizeHalf.varRef} * -1)`};for(const _ in a)i.elements.arrow.style.setProperty(_,a[_])}},getArrowStyle$1=i=>{if(i.startsWith("top"))return{property:"bottom",value:cssVars.arrowOffset.varRef};if(i.startsWith("bottom"))return{property:"top",value:cssVars.arrowOffset.varRef};if(i.startsWith("left"))return{property:"right",value:cssVars.arrowOffset.varRef};if(i.startsWith("right"))return{property:"left",value:cssVars.arrowOffset.varRef}},innerArrow={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:i})=>{setInnerArrowStyles(i)},effect:({state:i})=>()=>{setInnerArrowStyles(i)}},setInnerArrowStyles=i=>{if(!i.elements.arrow)return;const s=i.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!s)return;const o=getBoxShadow(i.placement);o&&s.style.setProperty("--popper-arrow-default-shadow",o),Object.assign(s.style,{transform:"rotate(45deg)",background:cssVars.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},logicals={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},opposites={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function getPopperPlacement(i,s="ltr"){var a;const o=((a=logicals[i])==null?void 0:a[s])||i;return s==="ltr"?o:opposites[i]??o}function usePopper(i={}){const{enabled:s=!0,modifiers:o,placement:a="bottom",strategy:_="absolute",arrowPadding:$=8,eventListeners:j=!0,offset:_e,gutter:et=8,flip:tt=!0,boundary:rt="clippingParents",preventOverflow:it=!0,matchWidth:nt,direction:ut="ltr"}=i,ct=reactExports.useRef(null),st=reactExports.useRef(null),dt=reactExports.useRef(null),ot=getPopperPlacement(a,ut),lt=reactExports.useRef(()=>{}),at=reactExports.useCallback(()=>{var wt;!s||!ct.current||!st.current||((wt=lt.current)==null||wt.call(lt),dt.current=createPopper(ct.current,st.current,{placement:ot,modifiers:[innerArrow,positionArrow,transformOrigin,{...matchWidth,enabled:!!nt},{name:"eventListeners",...getEventListenerOptions(j)},{name:"arrow",options:{padding:$}},{name:"offset",options:{offset:_e??[0,et]}},{name:"flip",enabled:!!tt,options:{padding:8}},{name:"preventOverflow",enabled:!!it,options:{boundary:rt}},...o??[]],strategy:_}),dt.current.forceUpdate(),lt.current=dt.current.destroy)},[ot,s,o,nt,j,$,_e,et,tt,it,rt,_]);reactExports.useEffect(()=>()=>{var wt;!ct.current&&!st.current&&((wt=dt.current)==null||wt.destroy(),dt.current=null)},[]);const ft=reactExports.useCallback(wt=>{ct.current=wt,at()},[at]),ht=reactExports.useCallback((wt={},Pt=null)=>({...wt,ref:mergeRefs(ft,Pt)}),[ft]),mt=reactExports.useCallback(wt=>{st.current=wt,at()},[at]),gt=reactExports.useCallback((wt={},Pt=null)=>({...wt,ref:mergeRefs(mt,Pt),style:{...wt.style,position:_,minWidth:nt?void 0:"max-content",inset:"0 auto auto 0"}}),[_,mt,nt]),vt=reactExports.useCallback((wt={},Pt=null)=>{const{size:Rt,shadowColor:It,bg:jt,style:Mt,...xt}=wt;return{...xt,ref:Pt,"data-popper-arrow":"",style:getArrowStyle(wt)}},[]),St=reactExports.useCallback((wt={},Pt=null)=>({...wt,ref:Pt,"data-popper-arrow-inner":""}),[]);return{update(){var wt;(wt=dt.current)==null||wt.update()},forceUpdate(){var wt;(wt=dt.current)==null||wt.forceUpdate()},transformOrigin:cssVars.transformOrigin.varRef,referenceRef:ft,popperRef:mt,getPopperProps:gt,getArrowProps:vt,getArrowInnerProps:St,getReferenceProps:ht}}function getArrowStyle(i){const{size:s,shadowColor:o,bg:a,style:_}=i,$={..._,position:"absolute"};return s&&($["--popper-arrow-size"]=s),o&&($["--popper-arrow-shadow-color"]=o),a&&($["--popper-arrow-bg"]=a),$}function useEventListeners(){const i=reactExports.useRef(new Map),s=i.current,o=reactExports.useCallback((_,$,j,_e)=>{i.current.set(j,{type:$,el:_,options:_e}),_.addEventListener($,j,_e)},[]),a=reactExports.useCallback((_,$,j,_e)=>{_.removeEventListener($,j,_e),i.current.delete(j)},[]);return reactExports.useEffect(()=>()=>{s.forEach((_,$)=>{a(_.el,_.type,$,_.options)})},[a,s]),{add:o,remove:a}}function isValidElement(i){var _,$;const s=(($=(_=i.composedPath)==null?void 0:_.call(i))==null?void 0:$[0])??i.target,{tagName:o,isContentEditable:a}=s;return o!=="INPUT"&&o!=="TEXTAREA"&&a!==!0}function useClickable(i={}){const{ref:s,isDisabled:o,isFocusable:a,clickOnEnter:_=!0,clickOnSpace:$=!0,onMouseDown:j,onMouseUp:_e,onClick:et,onKeyDown:tt,onKeyUp:rt,tabIndex:it,onMouseOver:nt,onMouseLeave:ut,...ct}=i,[st,dt]=reactExports.useState(!0),[ot,lt]=reactExports.useState(!1),at=useEventListeners(),ft=bt=>{bt&&bt.tagName!=="BUTTON"&&dt(!1)},ht=st?it:it||0,mt=o&&!a,gt=reactExports.useCallback(bt=>{if(o){bt.stopPropagation(),bt.preventDefault();return}bt.currentTarget.focus(),et==null||et(bt)},[o,et]),vt=reactExports.useCallback(bt=>{ot&&isValidElement(bt)&&(bt.preventDefault(),bt.stopPropagation(),lt(!1),at.remove(document,"keyup",vt,!1))},[ot,at]),St=reactExports.useCallback(bt=>{if(tt==null||tt(bt),o||bt.defaultPrevented||bt.metaKey||!isValidElement(bt.nativeEvent)||st)return;const pt=_&&bt.key==="Enter";$&&bt.key===" "&&(bt.preventDefault(),lt(!0)),pt&&(bt.preventDefault(),bt.currentTarget.click()),at.add(document,"keyup",vt,!1)},[o,st,tt,_,$,at,vt]),wt=reactExports.useCallback(bt=>{if(rt==null||rt(bt),o||bt.defaultPrevented||bt.metaKey||!isValidElement(bt.nativeEvent)||st)return;$&&bt.key===" "&&(bt.preventDefault(),lt(!1),bt.currentTarget.click())},[$,st,o,rt]),Pt=reactExports.useCallback(bt=>{bt.button===0&&(lt(!1),at.remove(document,"mouseup",Pt,!1))},[at]),Rt=reactExports.useCallback(bt=>{if(bt.button!==0)return;if(o){bt.stopPropagation(),bt.preventDefault();return}st||lt(!0),bt.currentTarget.focus({preventScroll:!0}),at.add(document,"mouseup",Pt,!1),j==null||j(bt)},[o,st,j,at,Pt]),It=reactExports.useCallback(bt=>{bt.button===0&&(st||lt(!1),_e==null||_e(bt))},[_e,st]),jt=reactExports.useCallback(bt=>{if(o){bt.preventDefault();return}nt==null||nt(bt)},[o,nt]),Mt=reactExports.useCallback(bt=>{ot&&(bt.preventDefault(),lt(!1)),ut==null||ut(bt)},[ot,ut]),xt=mergeRefs(s,ft);return st?{...ct,ref:xt,type:"button","aria-disabled":mt?void 0:o,disabled:mt,onClick:gt,onMouseDown:j,onMouseUp:_e,onKeyUp:rt,onKeyDown:tt,onMouseOver:nt,onMouseLeave:ut}:{...ct,ref:xt,role:"button","data-active":dataAttr(ot),"aria-disabled":o?"true":void 0,tabIndex:mt?void 0:ht,onClick:gt,onMouseDown:Rt,onMouseUp:It,onKeyUp:wt,onKeyDown:St,onMouseOver:jt,onMouseLeave:Mt}}const[MenuDescendantsProvider,useMenuDescendantsContext,useMenuDescendants,useMenuDescendant]=createDescendantContext(),[MenuProvider,useMenuContext]=createContext({strict:!1,name:"MenuContext"});function getOwnerDocument(i){return(i==null?void 0:i.ownerDocument)??document}function isActiveElement(i){return getOwnerDocument(i).activeElement===i}function useMenu(i={}){const{id:s,closeOnSelect:o=!0,closeOnBlur:a=!0,initialFocusRef:_,autoSelect:$=!0,isLazy:j,isOpen:_e,defaultIsOpen:et,onClose:tt,onOpen:rt,placement:it="bottom-start",lazyBehavior:nt="unmount",direction:ut,computePositionOnMount:ct=!1,...st}=i,dt=reactExports.useRef(null),ot=reactExports.useRef(null),lt=reactExports.useRef(!0),at=useMenuDescendants(),ft=reactExports.useCallback(()=>{requestAnimationFrame(()=>{var At;(At=dt.current)==null||At.focus({preventScroll:!1})})},[]),ht=reactExports.useCallback(()=>{const At=setTimeout(()=>{var Ot,Vt;if(_)(Ot=_.current)==null||Ot.focus();else if(!at.count())(Vt=dt.current)==null||Vt.focus({preventScroll:!1});else{const Lt=at.firstEnabled();Lt&&jt(Lt.index)}});yt.current.add(At)},[at,_]),mt=reactExports.useCallback(()=>{const At=setTimeout(()=>{var Ot;if(!at.count())(Ot=dt.current)==null||Ot.focus({preventScroll:!1});else{const Vt=at.lastEnabled();Vt&&jt(Vt.index)}});yt.current.add(At)},[at]),gt=reactExports.useCallback(()=>{rt==null||rt(),$?ht():ft()},[$,ht,ft,rt]),{isOpen:vt,onOpen:St,onClose:wt,onToggle:Pt}=useDisclosure({isOpen:_e,defaultIsOpen:et,onClose:tt,onOpen:gt});useOutsideClick({enabled:vt&&a,ref:dt,handler:At=>{var Vt,Lt,Wt;const Ot=((Lt=(Vt=At.composedPath)==null?void 0:Vt.call(At))==null?void 0:Lt[0])??At.target;(Wt=ot.current)!=null&&Wt.contains(Ot)||wt()}});const Rt=usePopper({...st,enabled:vt||ct,placement:it,direction:ut}),[It,jt]=reactExports.useState(-1);useFocusOnHide(dt,{focusRef:ot,visible:vt});const Mt=useAnimationState({isOpen:vt,ref:dt}),[xt,bt]=useIds$1(s,"menu-button","menu-list"),pt=reactExports.useCallback(()=>{St(),ft()},[St,ft]),yt=reactExports.useRef(new Set([]));reactExports.useEffect(()=>{const At=yt.current;return()=>{At.forEach(Ot=>clearTimeout(Ot)),At.clear()}},[]),useUpdateEffect(()=>{var At;vt||(jt(-1),(At=dt.current)==null||At.scrollTo(0,0))},[vt]),useUpdateEffect(()=>{vt&&It===-1&&ft()},[It,vt]),reactExports.useEffect(()=>{var Ot;if(!vt)return;const At=at.item(It);(Ot=At==null?void 0:At.node)==null||Ot.focus({preventScroll:!lt.current})},[at,It,vt]);const kt=reactExports.useCallback(()=>{St(),ht()},[ht,St]),Et=reactExports.useCallback(()=>{lt.current=!0,St(),mt()},[St,mt]),$t=reactExports.useCallback(()=>{var Wt,qt;const At=getOwnerDocument(dt.current),Ot=(Wt=dt.current)==null?void 0:Wt.contains(At.activeElement);if(!(vt&&!Ot))return;const Lt=(qt=at.item(It))==null?void 0:qt.node;Lt==null||Lt.focus({preventScroll:!lt.current})},[vt,It,at]);return{openAndFocusMenu:pt,openAndFocusFirstItem:kt,openAndFocusLastItem:Et,onTransitionEnd:$t,unstable__animationState:Mt,descendants:at,popper:Rt,buttonId:xt,menuId:bt,forceUpdate:Rt.forceUpdate,orientation:"vertical",isOpen:vt,onToggle:Pt,onOpen:St,onClose:wt,menuRef:dt,buttonRef:ot,focusedIndex:It,closeOnSelect:o,closeOnBlur:a,autoSelect:$,setFocusedIndex:jt,isLazy:j,lazyBehavior:nt,initialFocusRef:_,scrollIntoViewRef:lt}}function useMenuButton(i={},s=null){const o=useMenuContext(),{onToggle:a,popper:_,openAndFocusFirstItem:$,openAndFocusLastItem:j,scrollIntoViewRef:_e}=o,et=reactExports.useCallback(tt=>{const rt=tt.key,nt={Enter:$,ArrowDown:$,ArrowUp:j}[rt];nt&&(_e.current=!0,tt.preventDefault(),tt.stopPropagation(),nt(tt))},[$,j,_e]);return{...i,ref:mergeRefs(o.buttonRef,s,_.referenceRef),id:o.buttonId,"data-active":dataAttr(o.isOpen),"aria-expanded":o.isOpen,"aria-haspopup":"menu","aria-controls":o.menuId,onClick:callAllHandlers(i.onClick,a),onKeyDown:callAllHandlers(i.onKeyDown,et)}}function isTargetMenuItem(i){var s;return isHTMLElement(i)&&!!((s=i==null?void 0:i.getAttribute("role"))!=null&&s.startsWith("menuitem"))}function useMenuList(i={},s=null){const o=useMenuContext();if(!o)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:a,setFocusedIndex:_,menuRef:$,isOpen:j,onClose:_e,menuId:et,isLazy:tt,lazyBehavior:rt,scrollIntoViewRef:it,unstable__animationState:nt}=o,ut=useMenuDescendantsContext(),ct=useShortcut({preventDefault:lt=>lt.key!==" "&&isTargetMenuItem(lt.target)}),st=reactExports.useCallback(lt=>{if(!lt.currentTarget.contains(lt.target))return;const at=lt.key,ht={Tab:gt=>gt.preventDefault(),Escape:gt=>{gt.stopPropagation(),_e()},ArrowDown:()=>{it.current=!0;const gt=ut.nextEnabled(a)??ut.firstEnabled();gt&&_(gt.index)},ArrowUp:()=>{it.current=!0;const gt=ut.prevEnabled(a)??ut.firstEnabled();gt&&_(gt.index)}}[at];if(ht){lt.preventDefault(),ht(lt);return}const mt=ct(gt=>{const vt=getNextItemFromSearch(ut.values(),gt,St=>{var wt;return((wt=St==null?void 0:St.node)==null?void 0:wt.textContent)??""},ut.item(a));if(vt){const St=ut.indexOf(vt.node);_(St)}});isTargetMenuItem(lt.target)&&mt(lt)},[ut,a,ct,_e,_,it]),dt=reactExports.useRef(!1);j&&(dt.current=!0);const ot=lazyDisclosure({wasSelected:dt.current,enabled:tt,mode:rt,isSelected:nt.present});return{...i,ref:mergeRefs($,s),children:ot?i.children:null,tabIndex:-1,role:"menu",id:et,style:{...i.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:callAllHandlers(i.onKeyDown,st)}}function useMenuPositioner(i={}){const{popper:s,isOpen:o}=useMenuContext();return s.getPopperProps({...i,style:{visibility:o?"visible":"hidden",...i.style}})}function useMenuItem(i={},s=null){const{onMouseEnter:o,onMouseMove:a,onMouseLeave:_,onClick:$,onFocus:j,isDisabled:_e,isFocusable:et,closeOnSelect:tt,type:rt,...it}=i,nt=useMenuContext(),{setFocusedIndex:ut,focusedIndex:ct,closeOnSelect:st,onClose:dt,menuId:ot,scrollIntoViewRef:lt}=nt,at=reactExports.useRef(null),ft=`${ot}-menuitem-${reactExports.useId()}`,{index:ht,register:mt}=useMenuDescendant({disabled:_e&&!et}),gt=reactExports.useCallback(jt=>{o==null||o(jt),!_e&&(lt.current=!1,ut(ht))},[ut,ht,_e,o,lt]),vt=reactExports.useCallback(jt=>{a==null||a(jt),at.current&&!isActiveElement(at.current)&&gt(jt)},[gt,a]),St=reactExports.useCallback(jt=>{_==null||_(jt),!_e&&ut(-1)},[ut,_e,_]),wt=reactExports.useCallback(jt=>{$==null||$(jt),isTargetMenuItem(jt.currentTarget)&&(tt??st)&&dt()},[dt,$,st,tt]),Pt=reactExports.useCallback(jt=>{j==null||j(jt),ut(ht)},[ut,j,ht]),Rt=ht===ct,It=useClickable({onClick:wt,onFocus:Pt,onMouseEnter:gt,onMouseMove:vt,onMouseLeave:St,ref:mergeRefs(mt,at,s),isDisabled:_e,isFocusable:et});return{...it,...It,type:rt??It.type,id:ft,role:"menuitem",tabIndex:Rt?0:-1}}function isHTMLElement(i){if(!isElement(i))return!1;const s=i.ownerDocument.defaultView??window;return i instanceof s.HTMLElement}function isElement(i){return i!=null&&typeof i=="object"&&"nodeType"in i&&i.nodeType===Node.ELEMENT_NODE}const[MenuStylesProvider,useMenuStyles]=createContext({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),Menu=i=>{const{children:s}=i,o=useMultiStyleConfig("Menu",i),a=omitThemingProps(i),{direction:_}=useTheme(),{descendants:$,...j}=useMenu({...a,direction:_}),_e=reactExports.useMemo(()=>j,[j]),{isOpen:et,onClose:tt,forceUpdate:rt}=_e;return jsxRuntimeExports.jsx(MenuDescendantsProvider,{value:$,children:jsxRuntimeExports.jsx(MenuProvider,{value:_e,children:jsxRuntimeExports.jsx(MenuStylesProvider,{value:o,children:runIfFn$1(s,{isOpen:et,onClose:tt,forceUpdate:rt})})})})};Menu.displayName="Menu";const StyledMenuButton=forwardRef((i,s)=>{const o=useMenuStyles();return jsxRuntimeExports.jsx(chakra.button,{ref:s,...i,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...o.button}})}),MenuButton=forwardRef((i,s)=>{const{children:o,as:a,..._}=i,$=useMenuButton(_,s),j=a||StyledMenuButton;return jsxRuntimeExports.jsx(j,{...$,className:cx("chakra-menu__menu-button",i.className),children:jsxRuntimeExports.jsx(chakra.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:i.children})})});MenuButton.displayName="MenuButton";const MenuCommand=forwardRef((i,s)=>{const o=useMenuStyles();return jsxRuntimeExports.jsx(chakra.span,{ref:s,...i,__css:o.command,className:"chakra-menu__command"})});MenuCommand.displayName="MenuCommand";const MenuDivider=i=>{const{className:s,...o}=i,a=useMenuStyles();return jsxRuntimeExports.jsx(chakra.hr,{"aria-orientation":"horizontal",className:cx("chakra-menu__divider",s),...o,__css:a.divider})};MenuDivider.displayName="MenuDivider";const MenuIcon=i=>{const{className:s,children:o,...a}=i,_=useMenuStyles(),$=reactExports.Children.only(o),j=reactExports.isValidElement($)?reactExports.cloneElement($,{focusable:"false","aria-hidden":!0,className:cx("chakra-menu__icon",$.props.className)}):null,_e=cx("chakra-menu__icon-wrapper",s);return jsxRuntimeExports.jsx(chakra.span,{className:_e,...a,__css:_.icon,children:j})};MenuIcon.displayName="MenuIcon";const StyledMenuItem=forwardRef((i,s)=>{const{type:o,...a}=i,_=useMenuStyles(),$=a.as||o?o??void 0:"button",j=reactExports.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,..._.item}),[_.item]);return jsxRuntimeExports.jsx(chakra.button,{ref:s,type:$,...a,__css:j})}),MenuItem=forwardRef((i,s)=>{const{icon:o,iconSpacing:a="0.75rem",command:_,commandSpacing:$="0.75rem",children:j,..._e}=i,et=useMenuItem(_e,s),rt=o||_?jsxRuntimeExports.jsx("span",{style:{pointerEvents:"none",flex:1},children:j}):j;return jsxRuntimeExports.jsxs(StyledMenuItem,{...et,className:cx("chakra-menu__menuitem",et.className),children:[o&&jsxRuntimeExports.jsx(MenuIcon,{fontSize:"0.8em",marginEnd:a,children:o}),rt,_&&jsxRuntimeExports.jsx(MenuCommand,{marginStart:$,children:_})]})});MenuItem.displayName="MenuItem";const motionVariants={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},MenuTransition=chakra(motion.div),MenuList=forwardRef(function(s,o){var nt;const{rootProps:a,motionProps:_,...$}=s,{isOpen:j,onTransitionEnd:_e,unstable__animationState:et}=useMenuContext(),tt=useMenuList($,o),rt=useMenuPositioner(a),it=useMenuStyles();return jsxRuntimeExports.jsx(chakra.div,{...rt,__css:{zIndex:s.zIndex??((nt=it.list)==null?void 0:nt.zIndex)},children:jsxRuntimeExports.jsx(MenuTransition,{variants:motionVariants,initial:!1,animate:j?"enter":"exit",__css:{outline:0,...it.list},..._,...tt,className:cx("chakra-menu__menu-list",tt.className),onUpdate:_e,onAnimationComplete:callAll(et.onComplete,tt.onAnimationComplete)})})});MenuList.displayName="MenuList";var getDefaultParent=function(i){if(typeof document>"u")return null;var s=Array.isArray(i)?i[0]:i;return s.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(i){return i&&(i.host||unwrapHost(i.parentNode))},correctTargets=function(i,s){return s.map(function(o){if(i.contains(o))return o;var a=unwrapHost(o);return a&&i.contains(a)?a:(console.error("aria-hidden",o,"in not contained inside",i,". Doing nothing"),null)}).filter(function(o){return!!o})},applyAttributeToOthers=function(i,s,o,a){var _=correctTargets(s,Array.isArray(i)?i:[i]);markerMap[o]||(markerMap[o]=new WeakMap);var $=markerMap[o],j=[],_e=new Set,et=new Set(_),tt=function(it){!it||_e.has(it)||(_e.add(it),tt(it.parentNode))};_.forEach(tt);var rt=function(it){!it||et.has(it)||Array.prototype.forEach.call(it.children,function(nt){if(_e.has(nt))rt(nt);else try{var ut=nt.getAttribute(a),ct=ut!==null&&ut!=="false",st=(counterMap.get(nt)||0)+1,dt=($.get(nt)||0)+1;counterMap.set(nt,st),$.set(nt,dt),j.push(nt),st===1&&ct&&uncontrolledNodes.set(nt,!0),dt===1&&nt.setAttribute(o,"true"),ct||nt.setAttribute(a,"true")}catch(ot){console.error("aria-hidden: cannot operate on ",nt,ot)}})};return rt(s),_e.clear(),lockCount++,function(){j.forEach(function(it){var nt=counterMap.get(it)-1,ut=$.get(it)-1;counterMap.set(it,nt),$.set(it,ut),nt||(uncontrolledNodes.has(it)||it.removeAttribute(a),uncontrolledNodes.delete(it)),ut||it.removeAttribute(o)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(i,s,o){o===void 0&&(o="data-aria-hidden");var a=Array.from(Array.isArray(i)?i:[i]),_=getDefaultParent(i);return _?(a.push.apply(a,Array.from(_.querySelectorAll("[aria-live]"))),applyAttributeToOthers(a,_,o,"aria-hidden")):function(){return null}},__defProp=Object.defineProperty,__defNormalProp=(i,s,o)=>s in i?__defProp(i,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):i[s]=o,__publicField=(i,s,o)=>(__defNormalProp(i,s+"",o),o);class ModalManager{constructor(){__publicField(this,"modals"),this.modals=new Set}add(s){return this.modals.add(s),this.modals.size}remove(s){this.modals.delete(s)}isTopModal(s){if(!s)return!1;const o=Array.from(this.modals)[this.modals.size-1];return s===o}}const modalManager=new ModalManager;function useModalManager(i,s){const[o,a]=reactExports.useState(0);return reactExports.useEffect(()=>{const _=i.current;if(_){if(s){const $=modalManager.add(_);a($)}return()=>{modalManager.remove(_),a(0)}}},[s,i]),o}function useModal(i){const{isOpen:s,onClose:o,id:a,closeOnOverlayClick:_=!0,closeOnEsc:$=!0,useInert:j=!0,onOverlayClick:_e,onEsc:et}=i,tt=reactExports.useRef(null),rt=reactExports.useRef(null),[it,nt,ut]=useIds(a,"chakra-modal","chakra-modal--header","chakra-modal--body");useAriaHidden(tt,s&&j);const ct=useModalManager(tt,s),st=reactExports.useRef(null),dt=reactExports.useCallback(St=>{st.current=St.target},[]),ot=reactExports.useCallback(St=>{St.key==="Escape"&&(St.stopPropagation(),$&&(o==null||o()),et==null||et())},[$,o,et]),[lt,at]=reactExports.useState(!1),[ft,ht]=reactExports.useState(!1),mt=reactExports.useCallback((St={},wt=null)=>({role:"dialog",...St,ref:mergeRefs(wt,tt),id:it,tabIndex:-1,"aria-modal":!0,"aria-labelledby":lt?nt:void 0,"aria-describedby":ft?ut:void 0,onClick:callAllHandlers(St.onClick,Pt=>Pt.stopPropagation())}),[ut,ft,it,nt,lt]),gt=reactExports.useCallback(St=>{St.stopPropagation(),st.current===St.target&&modalManager.isTopModal(tt.current)&&(_&&(o==null||o()),_e==null||_e())},[o,_,_e]),vt=reactExports.useCallback((St={},wt=null)=>({...St,ref:mergeRefs(wt,rt),onClick:callAllHandlers(St.onClick,gt),onKeyDown:callAllHandlers(St.onKeyDown,ot),onMouseDown:callAllHandlers(St.onMouseDown,dt)}),[ot,dt,gt]);return{isOpen:s,onClose:o,headerId:nt,bodyId:ut,setBodyMounted:ht,setHeaderMounted:at,dialogRef:tt,overlayRef:rt,getDialogProps:mt,getDialogContainerProps:vt,index:ct}}function useAriaHidden(i,s){const o=i.current;reactExports.useEffect(()=>{if(!(!i.current||!s))return hideOthers(i.current)},[s,i,o])}function useIds(i,...s){const o=reactExports.useId(),a=i||o;return reactExports.useMemo(()=>s.map(_=>`${_}-${a}`),[a,s])}const[ModalStylesProvider,useModalStyles]=createContext({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[ModalContextProvider,useModalContext]=createContext({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Modal=i=>{const s={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...i,lockFocusAcrossFrames:i.lockFocusAcrossFrames||!0},{portalProps:o,children:a,autoFocus:_,trapFocus:$,initialFocusRef:j,finalFocusRef:_e,returnFocusOnClose:et,blockScrollOnMount:tt,allowPinchZoom:rt,preserveScrollBarGap:it,motionPreset:nt,lockFocusAcrossFrames:ut,animatePresenceProps:ct,onCloseComplete:st}=s,dt=useMultiStyleConfig("Modal",s),lt={...useModal(s),autoFocus:_,trapFocus:$,initialFocusRef:j,finalFocusRef:_e,returnFocusOnClose:et,blockScrollOnMount:tt,allowPinchZoom:rt,preserveScrollBarGap:it,motionPreset:nt,lockFocusAcrossFrames:ut};return jsxRuntimeExports.jsx(ModalContextProvider,{value:lt,children:jsxRuntimeExports.jsx(ModalStylesProvider,{value:dt,children:jsxRuntimeExports.jsx(AnimatePresence,{...ct,onExitComplete:st,children:lt.isOpen&&jsxRuntimeExports.jsx(Portal,{...o,children:a})})})})};Modal.displayName="Modal";var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size",effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=reactExports.forwardRef(function(i,s){var o=reactExports.useRef(null),a=reactExports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),_=a[0],$=a[1],j=i.forwardProps,_e=i.children,et=i.className,tt=i.removeScrollBar,rt=i.enabled,it=i.shards,nt=i.sideCar,ut=i.noIsolation,ct=i.inert,st=i.allowPinchZoom,dt=i.as,ot=dt===void 0?"div":dt,lt=i.gapMode,at=__rest(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),ft=nt,ht=useMergeRefs([o,s]),mt=__assign(__assign({},at),_);return reactExports.createElement(reactExports.Fragment,null,rt&&reactExports.createElement(ft,{sideCar:effectCar,removeScrollBar:tt,shards:it,noIsolation:ut,inert:ct,setCallbacks:$,allowPinchZoom:!!st,lockRef:o,gapMode:lt}),j?reactExports.cloneElement(reactExports.Children.only(_e),__assign(__assign({},mt),{ref:ht})):reactExports.createElement(ot,__assign({},mt,{className:et,ref:ht}),_e))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var s=getNonce();return s&&i.setAttribute("nonce",s),i}function injectStyles(i,s){i.styleSheet?i.styleSheet.cssText=s:i.appendChild(document.createTextNode(s))}function insertStyleTag(i){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(i)}var stylesheetSingleton=function(){var i=0,s=null;return{add:function(o){i==0&&(s=makeStyleTag())&&(injectStyles(s,o),insertStyleTag(s)),i++},remove:function(){i--,!i&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},styleHookSingleton=function(){var i=stylesheetSingleton();return function(s,o){reactExports.useEffect(function(){return i.add(s),function(){i.remove()}},[s&&o])}},styleSingleton=function(){var i=styleHookSingleton(),s=function(o){var a=o.styles,_=o.dynamic;return i(a,_),null};return s},zeroGap={left:0,top:0,right:0,gap:0},parse=function(i){return parseInt(i||"",10)||0},getOffset=function(i){var s=window.getComputedStyle(document.body),o=s[i==="padding"?"paddingLeft":"marginLeft"],a=s[i==="padding"?"paddingTop":"marginTop"],_=s[i==="padding"?"paddingRight":"marginRight"];return[parse(o),parse(a),parse(_)]},getGapWidth=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return zeroGap;var s=getOffset(i),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,a-o+s[2]-s[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(i,s,o,a){var _=i.left,$=i.top,j=i.right,_e=i.gap;return o===void 0&&(o="margin"),`
  .`.concat(noScrollbarsClassName,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(_e,"px ").concat(a,`;
  }
  body[`).concat(lockAttribute,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([s&&"position: relative ".concat(a,";"),o==="margin"&&`
    padding-left: `.concat(_,`px;
    padding-top: `).concat($,`px;
    padding-right: `).concat(j,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(_e,"px ").concat(a,`;
    `),o==="padding"&&"padding-right: ".concat(_e,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(zeroRightClassName,` {
    right: `).concat(_e,"px ").concat(a,`;
  }
  
  .`).concat(fullWidthClassName,` {
    margin-right: `).concat(_e,"px ").concat(a,`;
  }
  
  .`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(lockAttribute,`] {
    `).concat(removedBarSizeVariable,": ").concat(_e,`px;
  }
`)},getCurrentUseCounter=function(){var i=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(i)?i:0},useLockAttribute=function(){reactExports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var i=getCurrentUseCounter()-1;i<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,i.toString())}},[])},RemoveScrollBar=function(i){var s=i.noRelative,o=i.noImportant,a=i.gapMode,_=a===void 0?"margin":a;useLockAttribute();var $=reactExports.useMemo(function(){return getGapWidth(_)},[_]);return reactExports.createElement(Style,{styles:getStyles($,!s,_,o?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(i){return i.tagName==="TEXTAREA"},elementCanBeScrolled=function(i,s){if(!(i instanceof Element))return!1;var o=window.getComputedStyle(i);return o[s]!=="hidden"&&!(o.overflowY===o.overflowX&&!alwaysContainsScroll(i)&&o[s]==="visible")},elementCouldBeVScrolled=function(i){return elementCanBeScrolled(i,"overflowY")},elementCouldBeHScrolled=function(i){return elementCanBeScrolled(i,"overflowX")},locationCouldBeScrolled=function(i,s){var o=s.ownerDocument,a=s;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var _=elementCouldBeScrolled(i,a);if(_){var $=getScrollVariables(i,a),j=$[1],_e=$[2];if(j>_e)return!0}a=a.parentNode}while(a&&a!==o.body);return!1},getVScrollVariables=function(i){var s=i.scrollTop,o=i.scrollHeight,a=i.clientHeight;return[s,o,a]},getHScrollVariables=function(i){var s=i.scrollLeft,o=i.scrollWidth,a=i.clientWidth;return[s,o,a]},elementCouldBeScrolled=function(i,s){return i==="v"?elementCouldBeVScrolled(s):elementCouldBeHScrolled(s)},getScrollVariables=function(i,s){return i==="v"?getVScrollVariables(s):getHScrollVariables(s)},getDirectionFactor=function(i,s){return i==="h"&&s==="rtl"?-1:1},handleScroll=function(i,s,o,a,_){var $=getDirectionFactor(i,window.getComputedStyle(s).direction),j=$*a,_e=o.target,et=s.contains(_e),tt=!1,rt=j>0,it=0,nt=0;do{var ut=getScrollVariables(i,_e),ct=ut[0],st=ut[1],dt=ut[2],ot=st-dt-$*ct;(ct||ot)&&elementCouldBeScrolled(i,_e)&&(it+=ot,nt+=ct),_e instanceof ShadowRoot?_e=_e.host:_e=_e.parentNode}while(!et&&_e!==document.body||et&&(s.contains(_e)||s===_e));return(rt&&Math.abs(it)<1||!rt&&Math.abs(nt)<1)&&(tt=!0),tt},getTouchXY=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(i){return[i.deltaX,i.deltaY]},extractRef=function(i){return i&&"current"in i?i.current:i},deltaCompare=function(i,s){return i[0]===s[0]&&i[1]===s[1]},generateStyle=function(i){return`
  .block-interactivity-`.concat(i,` {pointer-events: none;}
  .allow-interactivity-`).concat(i,` {pointer-events: all;}
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(i){var s=reactExports.useRef([]),o=reactExports.useRef([0,0]),a=reactExports.useRef(),_=reactExports.useState(idCounter++)[0],$=reactExports.useState(styleSingleton)[0],j=reactExports.useRef(i);reactExports.useEffect(function(){j.current=i},[i]),reactExports.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(_));var st=__spreadArray([i.lockRef.current],(i.shards||[]).map(extractRef),!0).filter(Boolean);return st.forEach(function(dt){return dt.classList.add("allow-interactivity-".concat(_))}),function(){document.body.classList.remove("block-interactivity-".concat(_)),st.forEach(function(dt){return dt.classList.remove("allow-interactivity-".concat(_))})}}},[i.inert,i.lockRef.current,i.shards]);var _e=reactExports.useCallback(function(st,dt){if("touches"in st&&st.touches.length===2||st.type==="wheel"&&st.ctrlKey)return!j.current.allowPinchZoom;var ot=getTouchXY(st),lt=o.current,at="deltaX"in st?st.deltaX:lt[0]-ot[0],ft="deltaY"in st?st.deltaY:lt[1]-ot[1],ht,mt=st.target,gt=Math.abs(at)>Math.abs(ft)?"h":"v";if("touches"in st&&gt==="h"&&mt.type==="range")return!1;var vt=locationCouldBeScrolled(gt,mt);if(!vt)return!0;if(vt?ht=gt:(ht=gt==="v"?"h":"v",vt=locationCouldBeScrolled(gt,mt)),!vt)return!1;if(!a.current&&"changedTouches"in st&&(at||ft)&&(a.current=ht),!ht)return!0;var St=a.current||ht;return handleScroll(St,dt,st,St==="h"?at:ft)},[]),et=reactExports.useCallback(function(st){var dt=st;if(!(!lockStack.length||lockStack[lockStack.length-1]!==$)){var ot="deltaY"in dt?getDeltaXY(dt):getTouchXY(dt),lt=s.current.filter(function(ht){return ht.name===dt.type&&(ht.target===dt.target||dt.target===ht.shadowParent)&&deltaCompare(ht.delta,ot)})[0];if(lt&&lt.should){dt.cancelable&&dt.preventDefault();return}if(!lt){var at=(j.current.shards||[]).map(extractRef).filter(Boolean).filter(function(ht){return ht.contains(dt.target)}),ft=at.length>0?_e(dt,at[0]):!j.current.noIsolation;ft&&dt.cancelable&&dt.preventDefault()}}},[]),tt=reactExports.useCallback(function(st,dt,ot,lt){var at={name:st,delta:dt,target:ot,should:lt,shadowParent:getOutermostShadowParent(ot)};s.current.push(at),setTimeout(function(){s.current=s.current.filter(function(ft){return ft!==at})},1)},[]),rt=reactExports.useCallback(function(st){o.current=getTouchXY(st),a.current=void 0},[]),it=reactExports.useCallback(function(st){tt(st.type,getDeltaXY(st),st.target,_e(st,i.lockRef.current))},[]),nt=reactExports.useCallback(function(st){tt(st.type,getTouchXY(st),st.target,_e(st,i.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push($),i.setCallbacks({onScrollCapture:it,onWheelCapture:it,onTouchMoveCapture:nt}),document.addEventListener("wheel",et,nonPassive),document.addEventListener("touchmove",et,nonPassive),document.addEventListener("touchstart",rt,nonPassive),function(){lockStack=lockStack.filter(function(st){return st!==$}),document.removeEventListener("wheel",et,nonPassive),document.removeEventListener("touchmove",et,nonPassive),document.removeEventListener("touchstart",rt,nonPassive)}},[]);var ut=i.removeScrollBar,ct=i.inert;return reactExports.createElement(reactExports.Fragment,null,ct?reactExports.createElement($,{styles:generateStyle(_)}):null,ut?reactExports.createElement(RemoveScrollBar,{gapMode:i.gapMode}):null)}function getOutermostShadowParent(i){for(var s=null;i!==null;)i instanceof ShadowRoot&&(s=i.host,i=i.host),i=i.parentNode;return s}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function(i,s){return reactExports.createElement(RemoveScroll,__assign({},i,{ref:s,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;function ModalFocusScope(i){const{autoFocus:s,trapFocus:o,dialogRef:a,initialFocusRef:_,blockScrollOnMount:$,allowPinchZoom:j,finalFocusRef:_e,returnFocusOnClose:et,preserveScrollBarGap:tt,lockFocusAcrossFrames:rt,isOpen:it}=useModalContext(),[nt,ut]=usePresence();reactExports.useEffect(()=>{!nt&&ut&&setTimeout(ut)},[nt,ut]);const ct=useModalManager(a,it);return jsxRuntimeExports.jsx(FocusLock,{autoFocus:s,isDisabled:!o,initialFocusRef:_,finalFocusRef:_e,restoreFocus:et,contentRef:a,lockFocusAcrossFrames:rt,children:jsxRuntimeExports.jsx(ReactRemoveScroll,{removeScrollBar:!tt,allowPinchZoom:j,enabled:ct===1&&$,forwardProps:!0,children:i.children})})}const variants$3={initial:({offsetX:i,offsetY:s,transition:o,transitionEnd:a,delay:_})=>({opacity:0,x:i,y:s,transition:(o==null?void 0:o.exit)??withDelay.exit(TRANSITION_DEFAULTS.exit,_),transitionEnd:a==null?void 0:a.exit}),enter:({transition:i,transitionEnd:s,delay:o})=>({opacity:1,x:0,y:0,transition:(i==null?void 0:i.enter)??withDelay.enter(TRANSITION_DEFAULTS.enter,o),transitionEnd:s==null?void 0:s.enter}),exit:({offsetY:i,offsetX:s,transition:o,transitionEnd:a,reverse:_,delay:$})=>{const j={x:s,y:i};return{opacity:0,transition:(o==null?void 0:o.exit)??withDelay.exit(TRANSITION_DEFAULTS.exit,$),..._?{...j,transitionEnd:a==null?void 0:a.exit}:{transitionEnd:{...j,...a==null?void 0:a.exit}}}}},slideFadeConfig={initial:"initial",animate:"enter",exit:"exit",variants:variants$3},SlideFade=reactExports.forwardRef(function(s,o){const{unmountOnExit:a,in:_,reverse:$=!0,className:j,offsetX:_e=0,offsetY:et=8,transition:tt,transitionEnd:rt,delay:it,animatePresenceProps:nt,...ut}=s,ct=a?_&&a:!0,st=_||a?"enter":"exit",dt={offsetX:_e,offsetY:et,reverse:$,transition:tt,transitionEnd:rt,delay:it};return jsxRuntimeExports.jsx(AnimatePresence,{...nt,custom:dt,children:ct&&jsxRuntimeExports.jsx(motion.div,{ref:o,className:cx("chakra-offset-slide",j),custom:dt,...slideFadeConfig,animate:st,...ut})})});SlideFade.displayName="SlideFade";const variants$2={exit:({reverse:i,initialScale:s,transition:o,transitionEnd:a,delay:_})=>({opacity:0,...i?{scale:s,transitionEnd:a==null?void 0:a.exit}:{transitionEnd:{scale:s,...a==null?void 0:a.exit}},transition:(o==null?void 0:o.exit)??withDelay.exit(TRANSITION_DEFAULTS.exit,_)}),enter:({transitionEnd:i,transition:s,delay:o})=>({opacity:1,scale:1,transition:(s==null?void 0:s.enter)??withDelay.enter(TRANSITION_DEFAULTS.enter,o),transitionEnd:i==null?void 0:i.enter})},scaleFadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$2},ScaleFade=reactExports.forwardRef(function(s,o){const{unmountOnExit:a,in:_,reverse:$=!0,initialScale:j=.95,className:_e,transition:et,transitionEnd:tt,delay:rt,animatePresenceProps:it,...nt}=s,ut=a?_&&a:!0,ct=_||a?"enter":"exit",st={initialScale:j,reverse:$,transition:et,transitionEnd:tt,delay:rt};return jsxRuntimeExports.jsx(AnimatePresence,{...it,custom:st,children:ut&&jsxRuntimeExports.jsx(motion.div,{ref:o,className:cx("chakra-offset-slide",_e),...scaleFadeConfig,animate:ct,custom:st,...nt})})});ScaleFade.displayName="ScaleFade";const transitions={slideInBottom:{...slideFadeConfig,custom:{offsetY:16,reverse:!0}},slideInRight:{...slideFadeConfig,custom:{offsetX:16,reverse:!0}},slideInTop:{...slideFadeConfig,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...slideFadeConfig,custom:{offsetX:-16,reverse:!0}},scale:{...scaleFadeConfig,custom:{initialScale:.95,reverse:!0}},none:{}},MotionSection=chakra(motion.section),getMotionProps=i=>transitions[i||"none"],ModalTransition=reactExports.forwardRef((i,s)=>{const{preset:o,motionProps:a=getMotionProps(o),..._}=i;return jsxRuntimeExports.jsx(MotionSection,{ref:s,...a,..._})});ModalTransition.displayName="ModalTransition";const ModalContent=forwardRef((i,s)=>{const{className:o,children:a,containerProps:_,motionProps:$,...j}=i,{getDialogProps:_e,getDialogContainerProps:et}=useModalContext(),tt=_e(j,s),rt=et(_),it=cx("chakra-modal__content",o),nt=useModalStyles(),ut={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...nt.dialog},ct={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...nt.dialogContainer},{motionPreset:st}=useModalContext();return jsxRuntimeExports.jsx(ModalFocusScope,{children:jsxRuntimeExports.jsx(chakra.div,{...rt,className:"chakra-modal__content-container",tabIndex:-1,__css:ct,children:jsxRuntimeExports.jsx(ModalTransition,{preset:st,motionProps:$,className:it,...tt,__css:ut,children:a})})})});ModalContent.displayName="ModalContent";const ModalBody=forwardRef((i,s)=>{const{className:o,...a}=i,{bodyId:_,setBodyMounted:$}=useModalContext();reactExports.useEffect(()=>($(!0),()=>$(!1)),[$]);const j=cx("chakra-modal__body",o),_e=useModalStyles();return jsxRuntimeExports.jsx(chakra.div,{ref:s,className:j,id:_,...a,__css:_e.body})});ModalBody.displayName="ModalBody";const ModalCloseButton=forwardRef((i,s)=>{const{onClick:o,className:a,..._}=i,{onClose:$}=useModalContext(),j=cx("chakra-modal__close-btn",a),_e=useModalStyles();return jsxRuntimeExports.jsx(CloseButton,{ref:s,__css:_e.closeButton,className:j,onClick:callAllHandlers(o,et=>{et.stopPropagation(),$()}),..._})});ModalCloseButton.displayName="ModalCloseButton";const ModalFooter=forwardRef((i,s)=>{const{className:o,...a}=i,_=cx("chakra-modal__footer",o),$=useModalStyles(),j={display:"flex",alignItems:"center",justifyContent:"flex-end",...$.footer};return jsxRuntimeExports.jsx(chakra.footer,{ref:s,...a,__css:j,className:_})});ModalFooter.displayName="ModalFooter";const ModalHeader=forwardRef((i,s)=>{const{className:o,...a}=i,{headerId:_,setHeaderMounted:$}=useModalContext();reactExports.useEffect(()=>($(!0),()=>$(!1)),[$]);const j=cx("chakra-modal__header",o),_e=useModalStyles(),et={flex:0,..._e.header};return jsxRuntimeExports.jsx(chakra.header,{ref:s,className:j,id:_,...a,__css:et})});ModalHeader.displayName="ModalHeader";const variants$1={enter:({transition:i,transitionEnd:s,delay:o}={})=>({opacity:1,transition:(i==null?void 0:i.enter)??withDelay.enter(TRANSITION_DEFAULTS.enter,o),transitionEnd:s==null?void 0:s.enter}),exit:({transition:i,transitionEnd:s,delay:o}={})=>({opacity:0,transition:(i==null?void 0:i.exit)??withDelay.exit(TRANSITION_DEFAULTS.exit,o),transitionEnd:s==null?void 0:s.exit})},fadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$1},Fade=reactExports.forwardRef(function(s,o){const{unmountOnExit:a,in:_,className:$,transition:j,transitionEnd:_e,delay:et,animatePresenceProps:tt,...rt}=s,it=_||a?"enter":"exit",nt=a?_&&a:!0,ut={transition:j,transitionEnd:_e,delay:et};return jsxRuntimeExports.jsx(AnimatePresence,{...tt,custom:ut,children:nt&&jsxRuntimeExports.jsx(motion.div,{ref:o,className:cx("chakra-fade",$),custom:ut,...fadeConfig,animate:it,...rt})})});Fade.displayName="Fade";const MotionDiv$1=chakra(motion.div),ModalOverlay=forwardRef((i,s)=>{const{className:o,transition:a,motionProps:_,...$}=i,j=cx("chakra-modal__overlay",o),et={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...useModalStyles().overlay},{motionPreset:tt}=useModalContext(),it=_||(tt==="none"?{}:fadeConfig);return jsxRuntimeExports.jsx(MotionDiv$1,{...it,__css:et,ref:s,className:j,...$})});ModalOverlay.displayName="ModalOverlay";function AlertDialog(i){const{leastDestructiveRef:s,...o}=i;return jsxRuntimeExports.jsx(Modal,{...o,initialFocusRef:s})}const AlertDialogContent=forwardRef((i,s)=>jsxRuntimeExports.jsx(ModalContent,{ref:s,role:"alertdialog",...i})),[DrawerContextProvider,useDrawerContext]=createContext(),placementMap={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function getDrawerPlacement(i,s){var o;if(i)return((o=placementMap[i])==null?void 0:o[s])??i}function Drawer(i){var tt;const{isOpen:s,onClose:o,placement:a="right",children:_,...$}=i,j=useTheme(),_e=(tt=j.components)==null?void 0:tt.Drawer,et=getDrawerPlacement(a,j.direction);return jsxRuntimeExports.jsx(DrawerContextProvider,{value:{placement:et},children:jsxRuntimeExports.jsx(Modal,{isOpen:s,onClose:o,styleConfig:_e,...$,children:_})})}const defaultTransition={exit:{duration:.15,ease:TRANSITION_EASINGS.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},variants={exit:({direction:i,transition:s,transitionEnd:o,delay:a})=>{const{exit:_}=getSlideTransition({direction:i});return{..._,transition:(s==null?void 0:s.exit)??withDelay.exit(defaultTransition.exit,a),transitionEnd:o==null?void 0:o.exit}},enter:({direction:i,transitionEnd:s,transition:o,delay:a})=>{const{enter:_}=getSlideTransition({direction:i});return{..._,transition:(o==null?void 0:o.enter)??withDelay.enter(defaultTransition.enter,a),transitionEnd:s==null?void 0:s.enter}}},Slide=reactExports.forwardRef(function(s,o){const{direction:a="right",style:_,unmountOnExit:$,in:j,className:_e,transition:et,transitionEnd:tt,delay:rt,motionProps:it,animatePresenceProps:nt,...ut}=s,ct=getSlideTransition({direction:a}),st=Object.assign({position:"fixed"},ct.position,_),dt=$?j&&$:!0,ot=j||$?"enter":"exit",lt={transitionEnd:tt,transition:et,direction:a,delay:rt};return jsxRuntimeExports.jsx(AnimatePresence,{...nt,custom:lt,children:dt&&jsxRuntimeExports.jsx(motion.div,{...ut,ref:o,initial:"exit",className:cx("chakra-slide",_e),animate:ot,exit:"exit",custom:lt,variants,style:st,...it})})});Slide.displayName="Slide";const MotionDiv=chakra(Slide),DrawerContent=forwardRef((i,s)=>{const{className:o,children:a,motionProps:_,containerProps:$,...j}=i,{getDialogProps:_e,getDialogContainerProps:et,isOpen:tt}=useModalContext(),rt=_e(j,s),it=et($),nt=cx("chakra-modal__content",o),ut=useModalStyles(),ct={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...ut.dialog},st={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...ut.dialogContainer},{placement:dt}=useDrawerContext();return jsxRuntimeExports.jsx(ModalFocusScope,{children:jsxRuntimeExports.jsx(chakra.div,{...it,className:"chakra-modal__content-container",__css:st,children:jsxRuntimeExports.jsx(MotionDiv,{motionProps:_,direction:dt,in:tt,className:nt,...rt,__css:ct,children:a})})})});DrawerContent.displayName="DrawerContent";const SelectField=forwardRef(function(s,o){const{children:a,placeholder:_,className:$,...j}=s;return jsxRuntimeExports.jsxs(chakra.select,{...j,ref:o,className:cx("chakra-select",$),children:[_&&jsxRuntimeExports.jsx("option",{value:"",children:_}),a]})});SelectField.displayName="SelectField";const Select=forwardRef((i,s)=>{var at;const o=useMultiStyleConfig("Select",i),{rootProps:a,placeholder:_,icon:$,color:j,height:_e,h:et,minH:tt,minHeight:rt,iconColor:it,iconSize:nt,...ut}=omitThemingProps(i),[ct,st]=split(ut,layoutPropNames),dt=useFormControl(st),ot={width:"100%",height:"fit-content",position:"relative",color:j},lt={paddingEnd:"2rem",...o.field,_focus:{zIndex:"unset",...(at=o.field)==null?void 0:at._focus}};return jsxRuntimeExports.jsxs(chakra.div,{className:"chakra-select__wrapper",__css:ot,...ct,...a,children:[jsxRuntimeExports.jsx(SelectField,{ref:s,height:et??_e,minH:tt??rt,placeholder:_,...dt,__css:lt,children:i.children}),jsxRuntimeExports.jsx(SelectIcon,{"data-disabled":dataAttr(dt.disabled),...(it||j)&&{color:it||j},__css:o.icon,...nt&&{fontSize:nt},children:$})]})});Select.displayName="Select";const DefaultIcon=i=>jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",...i,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),IconWrapper=chakra("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),SelectIcon=i=>{const{children:s=jsxRuntimeExports.jsx(DefaultIcon,{}),...o}=i,a=reactExports.cloneElement(s,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return jsxRuntimeExports.jsx(IconWrapper,{...o,className:"chakra-select__icon-wrapper",children:reactExports.isValidElement(s)?a:null})};SelectIcon.displayName="SelectIcon";function useIsFirstRender(){const i=reactExports.useRef(!0);return reactExports.useEffect(()=>{i.current=!1},[]),i.current}const StyledSkeleton=chakra("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),$startColor=cssVar$1("skeleton-start-color"),$endColor=cssVar$1("skeleton-end-color"),fade=keyframes$1({from:{opacity:0},to:{opacity:1}}),bgFade=keyframes$1({from:{borderColor:$startColor.reference,background:$startColor.reference},to:{borderColor:$endColor.reference,background:$endColor.reference}}),Skeleton=forwardRef((i,s)=>{const o={...i,fadeDuration:typeof i.fadeDuration=="number"?i.fadeDuration:.4,speed:typeof i.speed=="number"?i.speed:.8},a=useStyleConfig("Skeleton",o),_=useIsFirstRender(),{startColor:$="",endColor:j="",isLoaded:_e,fadeDuration:et,speed:tt,className:rt,fitContent:it,animation:nt,...ut}=omitThemingProps(o),[ct,st]=useToken("colors",[$,j]),dt=usePrevious$1(_e),ot=cx("chakra-skeleton",rt),lt={...ct&&{[$startColor.variable]:ct},...st&&{[$endColor.variable]:st}};if(_e){const at=_||dt?"none":`${fade} ${et}s`;return jsxRuntimeExports.jsx(chakra.div,{ref:s,className:ot,__css:{animation:at},...ut})}return jsxRuntimeExports.jsx(StyledSkeleton,{ref:s,className:ot,...ut,__css:{width:it?"fit-content":void 0,...a,...lt,_dark:{...a._dark,...lt},animation:nt||`${tt}s linear infinite alternate ${bgFade}`}})});Skeleton.displayName="Skeleton";const StackItem=i=>jsxRuntimeExports.jsx(chakra.div,{className:"chakra-stack__item",...i,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...i.__css}});StackItem.displayName="StackItem";function getDividerStyles(i){const{spacing:s,direction:o}=i,a={column:{my:s,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:s,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:s,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:s,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mapResponsive(o,_=>a[_])}}const Stack=forwardRef((i,s)=>{const{isInline:o,direction:a,align:_,justify:$,spacing:j="0.5rem",wrap:_e,children:et,divider:tt,className:rt,shouldWrapChildren:it,...nt}=i,ut=o?"row":a??"column",ct=reactExports.useMemo(()=>getDividerStyles({spacing:j,direction:ut}),[j,ut]),st=!!tt,dt=!it&&!st,ot=reactExports.useMemo(()=>{const at=getValidChildren(et);return dt?at:at.map((ft,ht)=>{const mt=typeof ft.key<"u"?ft.key:ht,gt=ht+1===at.length,St=it?jsxRuntimeExports.jsx(StackItem,{children:ft},mt):ft;if(!st)return St;const wt=reactExports.cloneElement(tt,{__css:ct}),Pt=gt?null:wt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[St,Pt]},mt)})},[tt,ct,st,dt,it,et]),lt=cx("chakra-stack",rt);return jsxRuntimeExports.jsx(chakra.div,{ref:s,display:"flex",alignItems:_,justifyContent:$,flexDirection:ut,flexWrap:_e,gap:st?void 0:j,className:lt,...nt,children:ot})});Stack.displayName="Stack";const HStack=forwardRef((i,s)=>jsxRuntimeExports.jsx(Stack,{align:"center",...i,direction:"row",ref:s}));HStack.displayName="HStack";const VStack=forwardRef((i,s)=>jsxRuntimeExports.jsx(Stack,{align:"center",...i,direction:"column",ref:s}));VStack.displayName="VStack";function getToastPlacement(i,s){const o=i??"bottom",_={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[o];return(_==null?void 0:_[s])??o}function createToastFn(i,s){const o=_=>({...s,..._,position:getToastPlacement((_==null?void 0:_.position)??(s==null?void 0:s.position),i)}),a=_=>{const $=o(_),j=createRenderToast($);return toastStore.notify(j,$)};return a.update=(_,$)=>{toastStore.update(_,o($))},a.promise=(_,$)=>{const j=a({...$.loading,status:"loading",duration:null});_.then(_e=>a.update(j,{status:"success",duration:5e3,...runIfFn$1($.success,_e)})).catch(_e=>a.update(j,{status:"error",duration:5e3,...runIfFn$1($.error,_e)}))},a.closeAll=toastStore.closeAll,a.close=toastStore.close,a.isActive=toastStore.isActive,a}function useToast(i){const{theme:s}=useChakra(),o=useToastOptionContext();return reactExports.useMemo(()=>createToastFn(s.direction,{...o,...i}),[i,s.direction,o])}const Heading=forwardRef(function(s,o){const a=useStyleConfig("Heading",s),{className:_,...$}=omitThemingProps(s);return jsxRuntimeExports.jsx(chakra.h2,{ref:o,className:cx("chakra-heading",s.className),...$,__css:a})});Heading.displayName="Heading";const Text=forwardRef(function(s,o){const a=useStyleConfig("Text",s),{className:_,align:$,decoration:j,casing:_e,...et}=omitThemingProps(s),tt=compact({textAlign:s.align,textDecoration:s.decoration,textTransform:s.casing});return jsxRuntimeExports.jsx(chakra.p,{ref:o,className:cx("chakra-text",s.className),...tt,...et,__css:a})});Text.displayName="Text";const VisuallyHidden=chakra("span",{baseStyle:visuallyHiddenStyle});VisuallyHidden.displayName="VisuallyHidden";const VisuallyHiddenInput=chakra("input",{baseStyle:visuallyHiddenStyle});VisuallyHiddenInput.displayName="VisuallyHiddenInput";var client={},m=reactDomExports;client.createRoot=m.createRoot,client.hydrateRoot=m.hydrateRoot;/**
 * @remix-run/router v1.23.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(i){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},_extends$3.apply(this,arguments)}var Action;(function(i){i.Pop="POP",i.Push="PUSH",i.Replace="REPLACE"})(Action||(Action={}));const PopStateEventType="popstate";function createBrowserHistory(i){i===void 0&&(i={});function s(a,_){let{pathname:$,search:j,hash:_e}=a.location;return createLocation("",{pathname:$,search:j,hash:_e},_.state&&_.state.usr||null,_.state&&_.state.key||"default")}function o(a,_){return typeof _=="string"?_:createPath(_)}return getUrlBasedHistory(s,o,null,i)}function invariant(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function warning(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(i,s){return{usr:i.state,key:i.key,idx:s}}function createLocation(i,s,o,a){return o===void 0&&(o=null),_extends$3({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof s=="string"?parsePath(s):s,{state:o,key:s&&s.key||a||createKey()})}function createPath(i){let{pathname:s="/",search:o="",hash:a=""}=i;return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),a&&a!=="#"&&(s+=a.charAt(0)==="#"?a:"#"+a),s}function parsePath(i){let s={};if(i){let o=i.indexOf("#");o>=0&&(s.hash=i.substr(o),i=i.substr(0,o));let a=i.indexOf("?");a>=0&&(s.search=i.substr(a),i=i.substr(0,a)),i&&(s.pathname=i)}return s}function getUrlBasedHistory(i,s,o,a){a===void 0&&(a={});let{window:_=document.defaultView,v5Compat:$=!1}=a,j=_.history,_e=Action.Pop,et=null,tt=rt();tt==null&&(tt=0,j.replaceState(_extends$3({},j.state,{idx:tt}),""));function rt(){return(j.state||{idx:null}).idx}function it(){_e=Action.Pop;let dt=rt(),ot=dt==null?null:dt-tt;tt=dt,et&&et({action:_e,location:st.location,delta:ot})}function nt(dt,ot){_e=Action.Push;let lt=createLocation(st.location,dt,ot);tt=rt()+1;let at=getHistoryState(lt,tt),ft=st.createHref(lt);try{j.pushState(at,"",ft)}catch(ht){if(ht instanceof DOMException&&ht.name==="DataCloneError")throw ht;_.location.assign(ft)}$&&et&&et({action:_e,location:st.location,delta:1})}function ut(dt,ot){_e=Action.Replace;let lt=createLocation(st.location,dt,ot);tt=rt();let at=getHistoryState(lt,tt),ft=st.createHref(lt);j.replaceState(at,"",ft),$&&et&&et({action:_e,location:st.location,delta:0})}function ct(dt){let ot=_.location.origin!=="null"?_.location.origin:_.location.href,lt=typeof dt=="string"?dt:createPath(dt);return lt=lt.replace(/ $/,"%20"),invariant(ot,"No window.location.(origin|href) available to create URL for href: "+lt),new URL(lt,ot)}let st={get action(){return _e},get location(){return i(_,j)},listen(dt){if(et)throw new Error("A history only accepts one active listener");return _.addEventListener(PopStateEventType,it),et=dt,()=>{_.removeEventListener(PopStateEventType,it),et=null}},createHref(dt){return s(_,dt)},createURL:ct,encodeLocation(dt){let ot=ct(dt);return{pathname:ot.pathname,search:ot.search,hash:ot.hash}},push:nt,replace:ut,go(dt){return j.go(dt)}};return st}var ResultType;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(ResultType||(ResultType={}));function matchRoutes(i,s,o){return o===void 0&&(o="/"),matchRoutesImpl(i,s,o)}function matchRoutesImpl(i,s,o,a){let _=typeof s=="string"?parsePath(s):s,$=stripBasename(_.pathname||"/",o);if($==null)return null;let j=flattenRoutes(i);rankRouteBranches(j);let _e=null;for(let et=0;_e==null&&et<j.length;++et){let tt=decodePath($);_e=matchRouteBranch(j[et],tt)}return _e}function flattenRoutes(i,s,o,a){s===void 0&&(s=[]),o===void 0&&(o=[]),a===void 0&&(a="");let _=($,j,_e)=>{let et={relativePath:_e===void 0?$.path||"":_e,caseSensitive:$.caseSensitive===!0,childrenIndex:j,route:$};et.relativePath.startsWith("/")&&(invariant(et.relativePath.startsWith(a),'Absolute route path "'+et.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),et.relativePath=et.relativePath.slice(a.length));let tt=joinPaths([a,et.relativePath]),rt=o.concat(et);$.children&&$.children.length>0&&(invariant($.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+tt+'".')),flattenRoutes($.children,s,rt,tt)),!($.path==null&&!$.index)&&s.push({path:tt,score:computeScore(tt,$.index),routesMeta:rt})};return i.forEach(($,j)=>{var _e;if($.path===""||!((_e=$.path)!=null&&_e.includes("?")))_($,j);else for(let et of explodeOptionalSegments($.path))_($,j,et)}),s}function explodeOptionalSegments(i){let s=i.split("/");if(s.length===0)return[];let[o,...a]=s,_=o.endsWith("?"),$=o.replace(/\?$/,"");if(a.length===0)return _?[$,""]:[$];let j=explodeOptionalSegments(a.join("/")),_e=[];return _e.push(...j.map(et=>et===""?$:[$,et].join("/"))),_&&_e.push(...j),_e.map(et=>i.startsWith("/")&&et===""?"/":et)}function rankRouteBranches(i){i.sort((s,o)=>s.score!==o.score?o.score-s.score:compareIndexes(s.routesMeta.map(a=>a.childrenIndex),o.routesMeta.map(a=>a.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=i=>i==="*";function computeScore(i,s){let o=i.split("/"),a=o.length;return o.some(isSplat)&&(a+=splatPenalty),s&&(a+=indexRouteValue),o.filter(_=>!isSplat(_)).reduce((_,$)=>_+(paramRe.test($)?dynamicSegmentValue:$===""?emptySegmentValue:staticSegmentValue),a)}function compareIndexes(i,s){return i.length===s.length&&i.slice(0,-1).every((a,_)=>a===s[_])?i[i.length-1]-s[s.length-1]:0}function matchRouteBranch(i,s,o){let{routesMeta:a}=i,_={},$="/",j=[];for(let _e=0;_e<a.length;++_e){let et=a[_e],tt=_e===a.length-1,rt=$==="/"?s:s.slice($.length)||"/",it=matchPath({path:et.relativePath,caseSensitive:et.caseSensitive,end:tt},rt),nt=et.route;if(!it)return null;Object.assign(_,it.params),j.push({params:_,pathname:joinPaths([$,it.pathname]),pathnameBase:normalizePathname(joinPaths([$,it.pathnameBase])),route:nt}),it.pathnameBase!=="/"&&($=joinPaths([$,it.pathnameBase]))}return j}function matchPath(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,a]=compilePath(i.path,i.caseSensitive,i.end),_=s.match(o);if(!_)return null;let $=_[0],j=$.replace(/(.)\/+$/,"$1"),_e=_.slice(1);return{params:a.reduce((tt,rt,it)=>{let{paramName:nt,isOptional:ut}=rt;if(nt==="*"){let st=_e[it]||"";j=$.slice(0,$.length-st.length).replace(/(.)\/+$/,"$1")}const ct=_e[it];return ut&&!ct?tt[nt]=void 0:tt[nt]=(ct||"").replace(/%2F/g,"/"),tt},{}),pathname:$,pathnameBase:j,pattern:i}}function compilePath(i,s,o){s===void 0&&(s=!1),o===void 0&&(o=!0),warning(i==="*"||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were '+('"'+i.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+i.replace(/\*$/,"/*")+'".'));let a=[],_="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(j,_e,et)=>(a.push({paramName:_e,isOptional:et!=null}),et?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(a.push({paramName:"*"}),_+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?_+="\\/*$":i!==""&&i!=="/"&&(_+="(?:(?=\\/|$))"),[new RegExp(_,s?void 0:"i"),a]}function decodePath(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return warning(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+s+").")),i}}function stripBasename(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,a=i.charAt(o);return a&&a!=="/"?null:i.slice(o)||"/"}function resolvePath(i,s){s===void 0&&(s="/");let{pathname:o,search:a="",hash:_=""}=typeof i=="string"?parsePath(i):i;return{pathname:o?o.startsWith("/")?o:resolvePathname(o,s):s,search:normalizeSearch(a),hash:normalizeHash(_)}}function resolvePathname(i,s){let o=s.replace(/\/+$/,"").split("/");return i.split("/").forEach(_=>{_===".."?o.length>1&&o.pop():_!=="."&&o.push(_)}),o.length>1?o.join("/"):"/"}function getInvalidPathError(i,s,o,a){return"Cannot include a '"+i+"' character in a manually specified "+("`to."+s+"` field ["+JSON.stringify(a)+"].  Please separate it out to the ")+("`to."+o+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(i){return i.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function getResolveToMatches(i,s){let o=getPathContributingMatches(i);return s?o.map((a,_)=>_===o.length-1?a.pathname:a.pathnameBase):o.map(a=>a.pathnameBase)}function resolveTo(i,s,o,a){a===void 0&&(a=!1);let _;typeof i=="string"?_=parsePath(i):(_=_extends$3({},i),invariant(!_.pathname||!_.pathname.includes("?"),getInvalidPathError("?","pathname","search",_)),invariant(!_.pathname||!_.pathname.includes("#"),getInvalidPathError("#","pathname","hash",_)),invariant(!_.search||!_.search.includes("#"),getInvalidPathError("#","search","hash",_)));let $=i===""||_.pathname==="",j=$?"/":_.pathname,_e;if(j==null)_e=o;else{let it=s.length-1;if(!a&&j.startsWith("..")){let nt=j.split("/");for(;nt[0]==="..";)nt.shift(),it-=1;_.pathname=nt.join("/")}_e=it>=0?s[it]:"/"}let et=resolvePath(_,_e),tt=j&&j!=="/"&&j.endsWith("/"),rt=($||j===".")&&o.endsWith("/");return!et.pathname.endsWith("/")&&(tt||rt)&&(et.pathname+="/"),et}const joinPaths=i=>i.join("/").replace(/\/\/+/g,"/"),normalizePathname=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,normalizeHash=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function isRouteErrorResponse(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/**
 * React Router v6.30.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(i){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},_extends$2.apply(this,arguments)}const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=reactExports.createContext(null);function useHref(i,s){let{relative:o}=s===void 0?{}:s;useInRouterContext()||invariant(!1);let{basename:a,navigator:_}=reactExports.useContext(NavigationContext),{hash:$,pathname:j,search:_e}=useResolvedPath(i,{relative:o}),et=j;return a!=="/"&&(et=j==="/"?a:joinPaths([a,j])),_.createHref({pathname:et,search:_e,hash:$})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant(!1),reactExports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(i){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(i)}function useNavigate(){let{isDataRoute:i}=reactExports.useContext(RouteContext);return i?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){useInRouterContext()||invariant(!1);let i=reactExports.useContext(DataRouterContext),{basename:s,future:o,navigator:a}=reactExports.useContext(NavigationContext),{matches:_}=reactExports.useContext(RouteContext),{pathname:$}=useLocation(),j=JSON.stringify(getResolveToMatches(_,o.v7_relativeSplatPath)),_e=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{_e.current=!0}),reactExports.useCallback(function(tt,rt){if(rt===void 0&&(rt={}),!_e.current)return;if(typeof tt=="number"){a.go(tt);return}let it=resolveTo(tt,JSON.parse(j),$,rt.relative==="path");i==null&&s!=="/"&&(it.pathname=it.pathname==="/"?s:joinPaths([s,it.pathname])),(rt.replace?a.replace:a.push)(it,rt.state,rt)},[s,a,j,$,i])}function useParams(){let{matches:i}=reactExports.useContext(RouteContext),s=i[i.length-1];return s?s.params:{}}function useResolvedPath(i,s){let{relative:o}=s===void 0?{}:s,{future:a}=reactExports.useContext(NavigationContext),{matches:_}=reactExports.useContext(RouteContext),{pathname:$}=useLocation(),j=JSON.stringify(getResolveToMatches(_,a.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo(i,JSON.parse(j),$,o==="path"),[i,j,$,o])}function useRoutes(i,s){return useRoutesImpl(i,s)}function useRoutesImpl(i,s,o,a){useInRouterContext()||invariant(!1);let{navigator:_,static:$}=reactExports.useContext(NavigationContext),{matches:j}=reactExports.useContext(RouteContext),_e=j[j.length-1],et=_e?_e.params:{};_e&&_e.pathname;let tt=_e?_e.pathnameBase:"/";_e&&_e.route;let rt=useLocation(),it;if(s){var nt;let ot=typeof s=="string"?parsePath(s):s;tt==="/"||(nt=ot.pathname)!=null&&nt.startsWith(tt)||invariant(!1),it=ot}else it=rt;let ut=it.pathname||"/",ct=ut;if(tt!=="/"){let ot=tt.replace(/^\//,"").split("/");ct="/"+ut.replace(/^\//,"").split("/").slice(ot.length).join("/")}let st=matchRoutes(i,{pathname:ct}),dt=_renderMatches(st&&st.map(ot=>Object.assign({},ot,{params:Object.assign({},et,ot.params),pathname:joinPaths([tt,_.encodeLocation?_.encodeLocation(ot.pathname).pathname:ot.pathname]),pathnameBase:ot.pathnameBase==="/"?tt:joinPaths([tt,_.encodeLocation?_.encodeLocation(ot.pathnameBase).pathname:ot.pathnameBase])})),j,o,a);return s&&dt?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$2({pathname:"/",search:"",hash:"",state:null,key:"default"},it),navigationType:Action.Pop}},dt):dt}function DefaultErrorComponent(){let i=useRouteError(),s=isRouteErrorResponse(i)?i.status+" "+i.statusText:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,_={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},s),o?reactExports.createElement("pre",{style:_},o):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){console.error("React Router caught the following error during render",s,o)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(i){let{routeContext:s,match:o,children:a}=i,_=reactExports.useContext(DataRouterContext);return _&&_.static&&_.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(_.staticContext._deepestRenderedBoundaryId=o.route.id),reactExports.createElement(RouteContext.Provider,{value:s},a)}function _renderMatches(i,s,o,a){var _;if(s===void 0&&(s=[]),o===void 0&&(o=null),a===void 0&&(a=null),i==null){var $;if(!o)return null;if(o.errors)i=o.matches;else if(($=a)!=null&&$.v7_partialHydration&&s.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let j=i,_e=(_=o)==null?void 0:_.errors;if(_e!=null){let rt=j.findIndex(it=>it.route.id&&(_e==null?void 0:_e[it.route.id])!==void 0);rt>=0||invariant(!1),j=j.slice(0,Math.min(j.length,rt+1))}let et=!1,tt=-1;if(o&&a&&a.v7_partialHydration)for(let rt=0;rt<j.length;rt++){let it=j[rt];if((it.route.HydrateFallback||it.route.hydrateFallbackElement)&&(tt=rt),it.route.id){let{loaderData:nt,errors:ut}=o,ct=it.route.loader&&nt[it.route.id]===void 0&&(!ut||ut[it.route.id]===void 0);if(it.route.lazy||ct){et=!0,tt>=0?j=j.slice(0,tt+1):j=[j[0]];break}}}return j.reduceRight((rt,it,nt)=>{let ut,ct=!1,st=null,dt=null;o&&(ut=_e&&it.route.id?_e[it.route.id]:void 0,st=it.route.errorElement||defaultErrorElement,et&&(tt<0&&nt===0?(warningOnce("route-fallback"),ct=!0,dt=null):tt===nt&&(ct=!0,dt=it.route.hydrateFallbackElement||null)));let ot=s.concat(j.slice(0,nt+1)),lt=()=>{let at;return ut?at=st:ct?at=dt:it.route.Component?at=reactExports.createElement(it.route.Component,null):it.route.element?at=it.route.element:at=rt,reactExports.createElement(RenderedRoute,{match:it,routeContext:{outlet:rt,matches:ot,isDataRoute:o!=null},children:at})};return o&&(it.route.ErrorBoundary||it.route.errorElement||nt===0)?reactExports.createElement(RenderErrorBoundary,{location:o.location,revalidation:o.revalidation,component:st,error:ut,children:lt(),routeContext:{outlet:null,matches:ot,isDataRoute:!0}}):lt()},null)}var DataRouterHook$1=function(i){return i.UseBlocker="useBlocker",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i}(DataRouterHook$1||{}),DataRouterStateHook$1=function(i){return i.UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i}(DataRouterStateHook$1||{});function useDataRouterContext(i){let s=reactExports.useContext(DataRouterContext);return s||invariant(!1),s}function useDataRouterState(i){let s=reactExports.useContext(DataRouterStateContext);return s||invariant(!1),s}function useRouteContext(i){let s=reactExports.useContext(RouteContext);return s||invariant(!1),s}function useCurrentRouteId(i){let s=useRouteContext(),o=s.matches[s.matches.length-1];return o.route.id||invariant(!1),o.route.id}function useRouteError(){var i;let s=reactExports.useContext(RouteErrorContext),o=useDataRouterState(),a=useCurrentRouteId();return s!==void 0?s:(i=o.errors)==null?void 0:i[a]}function useNavigateStable(){let{router:i}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),s=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),o=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{o.current=!0}),reactExports.useCallback(function(_,$){$===void 0&&($={}),o.current&&(typeof _=="number"?i.navigate(_):i.navigate(_,_extends$2({fromRouteId:s},$)))},[i,s])}const alreadyWarned$1={};function warningOnce(i,s,o){alreadyWarned$1[i]||(alreadyWarned$1[i]=!0)}function logV6DeprecationWarnings(i,s){i==null||i.v7_startTransition,i==null||i.v7_relativeSplatPath}function Route(i){invariant(!1)}function Router(i){let{basename:s="/",children:o=null,location:a,navigationType:_=Action.Pop,navigator:$,static:j=!1,future:_e}=i;useInRouterContext()&&invariant(!1);let et=s.replace(/^\/*/,"/"),tt=reactExports.useMemo(()=>({basename:et,navigator:$,static:j,future:_extends$2({v7_relativeSplatPath:!1},_e)}),[et,_e,$,j]);typeof a=="string"&&(a=parsePath(a));let{pathname:rt="/",search:it="",hash:nt="",state:ut=null,key:ct="default"}=a,st=reactExports.useMemo(()=>{let dt=stripBasename(rt,et);return dt==null?null:{location:{pathname:dt,search:it,hash:nt,state:ut,key:ct},navigationType:_}},[et,rt,it,nt,ut,ct,_]);return st==null?null:reactExports.createElement(NavigationContext.Provider,{value:tt},reactExports.createElement(LocationContext.Provider,{children:o,value:st}))}function Routes(i){let{children:s,location:o}=i;return useRoutes(createRoutesFromChildren(s),o)}new Promise(()=>{});function createRoutesFromChildren(i,s){s===void 0&&(s=[]);let o=[];return reactExports.Children.forEach(i,(a,_)=>{if(!reactExports.isValidElement(a))return;let $=[...s,_];if(a.type===reactExports.Fragment){o.push.apply(o,createRoutesFromChildren(a.props.children,$));return}a.type!==Route&&invariant(!1),!a.props.index||!a.props.children||invariant(!1);let j={id:a.props.id||$.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(j.children=createRoutesFromChildren(a.props.children,$)),o.push(j)}),o}/**
 * React Router DOM v6.30.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(i){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},_extends$1.apply(this,arguments)}function _objectWithoutPropertiesLoose$2(i,s){if(i==null)return{};var o={},a=Object.keys(i),_,$;for($=0;$<a.length;$++)_=a[$],!(s.indexOf(_)>=0)&&(o[_]=i[_]);return o}function isModifiedEvent(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function shouldProcessLinkClick(i,s){return i.button===0&&(!s||s==="_self")&&!isModifiedEvent(i)}const _excluded$3=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=React$2[START_TRANSITION];function BrowserRouter(i){let{basename:s,children:o,future:a,window:_}=i,$=reactExports.useRef();$.current==null&&($.current=createBrowserHistory({window:_,v5Compat:!0}));let j=$.current,[_e,et]=reactExports.useState({action:j.action,location:j.location}),{v7_startTransition:tt}=a||{},rt=reactExports.useCallback(it=>{tt&&startTransitionImpl?startTransitionImpl(()=>et(it)):et(it)},[et,tt]);return reactExports.useLayoutEffect(()=>j.listen(rt),[j,rt]),reactExports.useEffect(()=>logV6DeprecationWarnings(a),[a]),reactExports.createElement(Router,{basename:s,children:o,location:_e.location,navigationType:_e.action,navigator:j,future:a})}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(s,o){let{onClick:a,relative:_,reloadDocument:$,replace:j,state:_e,target:et,to:tt,preventScrollReset:rt,viewTransition:it}=s,nt=_objectWithoutPropertiesLoose$2(s,_excluded$3),{basename:ut}=reactExports.useContext(NavigationContext),ct,st=!1;if(typeof tt=="string"&&ABSOLUTE_URL_REGEX.test(tt)&&(ct=tt,isBrowser))try{let at=new URL(window.location.href),ft=tt.startsWith("//")?new URL(at.protocol+tt):new URL(tt),ht=stripBasename(ft.pathname,ut);ft.origin===at.origin&&ht!=null?tt=ht+ft.search+ft.hash:st=!0}catch{}let dt=useHref(tt,{relative:_}),ot=useLinkClickHandler(tt,{replace:j,state:_e,target:et,preventScrollReset:rt,relative:_,viewTransition:it});function lt(at){a&&a(at),at.defaultPrevented||ot(at)}return reactExports.createElement("a",_extends$1({},nt,{href:ct||dt,onClick:st||$?a:lt,ref:o,target:et}))});var DataRouterHook;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher",i.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(i){i.UseFetcher="useFetcher",i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(i,s){let{target:o,replace:a,state:_,preventScrollReset:$,relative:j,viewTransition:_e}=s===void 0?{}:s,et=useNavigate(),tt=useLocation(),rt=useResolvedPath(i,{relative:j});return reactExports.useCallback(it=>{if(shouldProcessLinkClick(it,o)){it.preventDefault();let nt=a!==void 0?a:createPath(tt)===createPath(rt);et(i,{replace:nt,state:_,preventScrollReset:$,relative:j,viewTransition:_e})}},[tt,et,rt,a,_,o,i,$,j,_e])}const theme=extendTheme({config:{initialColorMode:"light",useSystemColorMode:!1},fonts:{body:"Figtree, sans-serif",heading:"Figtree, sans-serif",mono:"Roboto, monospace",text:"Figtree, sans-serif"},styles:{global:{body:{bg:"#f8f8f8"}}},colors:{tiber:{DEFAULT:"#07332F",50:"#1DD4C4",100:"#1BC3B3",200:"#169F92",300:"#117B71",400:"#0C5750",500:"#07332F",main:"#07332F",text:"#F7A582"},primary:{50:"#e6f4ff",100:"#d2eaff",200:"#aed6ff",300:"#7db8ff",400:"#4a89ff",500:"#215bff",600:"#002eff",700:"#0032ff",800:"#002ad8",900:"#0828a7",950:"#041150",main:"#041150",text:"#34C38F",bg:"#485EC4",select:"#086BD8"},blue:{50:"#f1f4fd",100:"#e0e6f9",200:"#c9d4f4",300:"#a4b8ec",400:"#7893e2",500:"#4c66d6",600:"#4455cc",700:"#3a43bb",800:"#353998",900:"#2f3479",950:"#21224a",default:"#485EC4"},green:{main:"#00E2B8",text:"#34C38F"}}});var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer$1=typeof window>"u"||"Deno"in globalThis;function noop$1(){}function functionalUpdate(i,s){return typeof i=="function"?i(s):i}function isValidTimeout(i){return typeof i=="number"&&i>=0&&i!==1/0}function timeUntilStale(i,s){return Math.max(i+(s||0)-Date.now(),0)}function resolveStaleTime(i,s){return typeof i=="function"?i(s):i}function resolveEnabled(i,s){return typeof i=="function"?i(s):i}function matchQuery(i,s){const{type:o="all",exact:a,fetchStatus:_,predicate:$,queryKey:j,stale:_e}=i;if(j){if(a){if(s.queryHash!==hashQueryKeyByOptions(j,s.options))return!1}else if(!partialMatchKey(s.queryKey,j))return!1}if(o!=="all"){const et=s.isActive();if(o==="active"&&!et||o==="inactive"&&et)return!1}return!(typeof _e=="boolean"&&s.isStale()!==_e||_&&_!==s.state.fetchStatus||$&&!$(s))}function matchMutation(i,s){const{exact:o,status:a,predicate:_,mutationKey:$}=i;if($){if(!s.options.mutationKey)return!1;if(o){if(hashKey(s.options.mutationKey)!==hashKey($))return!1}else if(!partialMatchKey(s.options.mutationKey,$))return!1}return!(a&&s.state.status!==a||_&&!_(s))}function hashQueryKeyByOptions(i,s){return((s==null?void 0:s.queryKeyHashFn)||hashKey)(i)}function hashKey(i){return JSON.stringify(i,(s,o)=>isPlainObject$1(o)?Object.keys(o).sort().reduce((a,_)=>(a[_]=o[_],a),{}):o)}function partialMatchKey(i,s){return i===s?!0:typeof i!=typeof s?!1:i&&s&&typeof i=="object"&&typeof s=="object"?Object.keys(s).every(o=>partialMatchKey(i[o],s[o])):!1}function replaceEqualDeep(i,s){if(i===s)return i;const o=isPlainArray(i)&&isPlainArray(s);if(o||isPlainObject$1(i)&&isPlainObject$1(s)){const a=o?i:Object.keys(i),_=a.length,$=o?s:Object.keys(s),j=$.length,_e=o?[]:{};let et=0;for(let tt=0;tt<j;tt++){const rt=o?tt:$[tt];(!o&&a.includes(rt)||o)&&i[rt]===void 0&&s[rt]===void 0?(_e[rt]=void 0,et++):(_e[rt]=replaceEqualDeep(i[rt],s[rt]),_e[rt]===i[rt]&&i[rt]!==void 0&&et++)}return _===j&&et===_?i:_e}return s}function shallowEqualObjects(i,s){if(!s||Object.keys(i).length!==Object.keys(s).length)return!1;for(const o in i)if(i[o]!==s[o])return!1;return!0}function isPlainArray(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function isPlainObject$1(i){if(!hasObjectPrototype(i))return!1;const s=i.constructor;if(s===void 0)return!0;const o=s.prototype;return!(!hasObjectPrototype(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function hasObjectPrototype(i){return Object.prototype.toString.call(i)==="[object Object]"}function sleep(i){return new Promise(s=>{setTimeout(s,i)})}function replaceData(i,s,o){return typeof o.structuralSharing=="function"?o.structuralSharing(i,s):o.structuralSharing!==!1?replaceEqualDeep(i,s):s}function addToEnd(i,s,o=0){const a=[...i,s];return o&&a.length>o?a.slice(1):a}function addToStart(i,s,o=0){const a=[s,...i];return o&&a.length>o?a.slice(0,-1):a}var skipToken=Symbol();function ensureQueryFn(i,s){return!i.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!i.queryFn||i.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function shouldThrowError(i,s){return typeof i=="function"?i(...s):!!i}var en,Vr,dn,Os,FocusManager=(Os=class extends Subscribable{constructor(){super();zt(this,en);zt(this,Vr);zt(this,dn);Dt(this,dn,s=>{if(!isServer$1&&window.addEventListener){const o=()=>s();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){_t(this,Vr)||this.setEventListener(_t(this,dn))}onUnsubscribe(){var s;this.hasListeners()||((s=_t(this,Vr))==null||s.call(this),Dt(this,Vr,void 0))}setEventListener(s){var o;Dt(this,dn,s),(o=_t(this,Vr))==null||o.call(this),Dt(this,Vr,s(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(s){_t(this,en)!==s&&(Dt(this,en,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(o=>{o(s)})}isFocused(){var s;return typeof _t(this,en)=="boolean"?_t(this,en):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},en=new WeakMap,Vr=new WeakMap,dn=new WeakMap,Os),focusManager=new FocusManager,fn,Br,hn,Ds,OnlineManager=(Ds=class extends Subscribable{constructor(){super();zt(this,fn,!0);zt(this,Br);zt(this,hn);Dt(this,hn,s=>{if(!isServer$1&&window.addEventListener){const o=()=>s(!0),a=()=>s(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",a)}}})}onSubscribe(){_t(this,Br)||this.setEventListener(_t(this,hn))}onUnsubscribe(){var s;this.hasListeners()||((s=_t(this,Br))==null||s.call(this),Dt(this,Br,void 0))}setEventListener(s){var o;Dt(this,hn,s),(o=_t(this,Br))==null||o.call(this),Dt(this,Br,s(this.setOnline.bind(this)))}setOnline(s){_t(this,fn)!==s&&(Dt(this,fn,s),this.listeners.forEach(a=>{a(s)}))}isOnline(){return _t(this,fn)}},fn=new WeakMap,Br=new WeakMap,hn=new WeakMap,Ds),onlineManager=new OnlineManager;function pendingThenable(){let i,s;const o=new Promise((_,$)=>{i=_,s=$});o.status="pending",o.catch(()=>{});function a(_){Object.assign(o,_),delete o.resolve,delete o.reject}return o.resolve=_=>{a({status:"fulfilled",value:_}),i(_)},o.reject=_=>{a({status:"rejected",reason:_}),s(_)},o}function defaultRetryDelay(i){return Math.min(1e3*2**i,3e4)}function canFetch(i){return(i??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function isCancelledError(i){return i instanceof CancelledError}function createRetryer(i){let s=!1,o=0,a=!1,_;const $=pendingThenable(),j=st=>{var dt;a||(nt(new CancelledError(st)),(dt=i.abort)==null||dt.call(i))},_e=()=>{s=!0},et=()=>{s=!1},tt=()=>focusManager.isFocused()&&(i.networkMode==="always"||onlineManager.isOnline())&&i.canRun(),rt=()=>canFetch(i.networkMode)&&i.canRun(),it=st=>{var dt;a||(a=!0,(dt=i.onSuccess)==null||dt.call(i,st),_==null||_(),$.resolve(st))},nt=st=>{var dt;a||(a=!0,(dt=i.onError)==null||dt.call(i,st),_==null||_(),$.reject(st))},ut=()=>new Promise(st=>{var dt;_=ot=>{(a||tt())&&st(ot)},(dt=i.onPause)==null||dt.call(i)}).then(()=>{var st;_=void 0,a||(st=i.onContinue)==null||st.call(i)}),ct=()=>{if(a)return;let st;const dt=o===0?i.initialPromise:void 0;try{st=dt??i.fn()}catch(ot){st=Promise.reject(ot)}Promise.resolve(st).then(it).catch(ot=>{var mt;if(a)return;const lt=i.retry??(isServer$1?0:3),at=i.retryDelay??defaultRetryDelay,ft=typeof at=="function"?at(o,ot):at,ht=lt===!0||typeof lt=="number"&&o<lt||typeof lt=="function"&&lt(o,ot);if(s||!ht){nt(ot);return}o++,(mt=i.onFail)==null||mt.call(i,o,ot),sleep(ft).then(()=>tt()?void 0:ut()).then(()=>{s?nt(ot):ct()})})};return{promise:$,cancel:j,continue:()=>(_==null||_(),$),cancelRetry:_e,continueRetry:et,canStart:rt,start:()=>(rt()?ct():ut().then(ct),$)}}var defaultScheduler=i=>setTimeout(i,0);function createNotifyManager(){let i=[],s=0,o=_e=>{_e()},a=_e=>{_e()},_=defaultScheduler;const $=_e=>{s?i.push(_e):_(()=>{o(_e)})},j=()=>{const _e=i;i=[],_e.length&&_(()=>{a(()=>{_e.forEach(et=>{o(et)})})})};return{batch:_e=>{let et;s++;try{et=_e()}finally{s--,s||j()}return et},batchCalls:_e=>(...et)=>{$(()=>{_e(...et)})},schedule:$,setNotifyFunction:_e=>{o=_e},setBatchNotifyFunction:_e=>{a=_e},setScheduler:_e=>{_=_e}}}var notifyManager=createNotifyManager(),tn,Ls,Removable=(Ls=class{constructor(){zt(this,tn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Dt(this,tn,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(isServer$1?1/0:5*60*1e3))}clearGcTimeout(){_t(this,tn)&&(clearTimeout(_t(this,tn)),Dt(this,tn,void 0))}},tn=new WeakMap,Ls),pn,mn,_r,rn,gr,Tn,nn,Tr,Ir,Vs,Query=(Vs=class extends Removable{constructor(s){super();zt(this,Tr);zt(this,pn);zt(this,mn);zt(this,_r);zt(this,rn);zt(this,gr);zt(this,Tn);zt(this,nn);Dt(this,nn,!1),Dt(this,Tn,s.defaultOptions),this.setOptions(s.options),this.observers=[],Dt(this,rn,s.client),Dt(this,_r,_t(this,rn).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Dt(this,pn,getDefaultState$1(this.options)),this.state=s.state??_t(this,pn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=_t(this,gr))==null?void 0:s.promise}setOptions(s){this.options={..._t(this,Tn),...s},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_t(this,_r).remove(this)}setData(s,o){const a=replaceData(this.state.data,s,this.options);return Ht(this,Tr,Ir).call(this,{data:a,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),a}setState(s,o){Ht(this,Tr,Ir).call(this,{type:"setState",state:s,setStateOptions:o})}cancel(s){var a,_;const o=(a=_t(this,gr))==null?void 0:a.promise;return(_=_t(this,gr))==null||_.cancel(s),o?o.then(noop$1).catch(noop$1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_t(this,pn))}isActive(){return this.observers.some(s=>resolveEnabled(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(s=0){return this.state.isInvalidated||this.state.data===void 0||!timeUntilStale(this.state.dataUpdatedAt,s)}onFocus(){var o;const s=this.observers.find(a=>a.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(o=_t(this,gr))==null||o.continue()}onOnline(){var o;const s=this.observers.find(a=>a.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(o=_t(this,gr))==null||o.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),_t(this,_r).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(o=>o!==s),this.observers.length||(_t(this,gr)&&(_t(this,nn)?_t(this,gr).cancel({revert:!0}):_t(this,gr).cancelRetry()),this.scheduleGc()),_t(this,_r).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ht(this,Tr,Ir).call(this,{type:"invalidate"})}fetch(s,o){var et,tt,rt;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(_t(this,gr))return _t(this,gr).continueRetry(),_t(this,gr).promise}if(s&&this.setOptions(s),!this.options.queryFn){const it=this.observers.find(nt=>nt.options.queryFn);it&&this.setOptions(it.options)}const a=new AbortController,_=it=>{Object.defineProperty(it,"signal",{enumerable:!0,get:()=>(Dt(this,nn,!0),a.signal)})},$=()=>{const it=ensureQueryFn(this.options,o),nt={client:_t(this,rn),queryKey:this.queryKey,meta:this.meta};return _(nt),Dt(this,nn,!1),this.options.persister?this.options.persister(it,nt,this):it(nt)},j={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:_t(this,rn),state:this.state,fetchFn:$};_(j),(et=this.options.behavior)==null||et.onFetch(j,this),Dt(this,mn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((tt=j.fetchOptions)==null?void 0:tt.meta))&&Ht(this,Tr,Ir).call(this,{type:"fetch",meta:(rt=j.fetchOptions)==null?void 0:rt.meta});const _e=it=>{var nt,ut,ct,st;isCancelledError(it)&&it.silent||Ht(this,Tr,Ir).call(this,{type:"error",error:it}),isCancelledError(it)||((ut=(nt=_t(this,_r).config).onError)==null||ut.call(nt,it,this),(st=(ct=_t(this,_r).config).onSettled)==null||st.call(ct,this.state.data,it,this)),this.scheduleGc()};return Dt(this,gr,createRetryer({initialPromise:o==null?void 0:o.initialPromise,fn:j.fetchFn,abort:a.abort.bind(a),onSuccess:it=>{var nt,ut,ct,st;if(it===void 0){_e(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(it)}catch(dt){_e(dt);return}(ut=(nt=_t(this,_r).config).onSuccess)==null||ut.call(nt,it,this),(st=(ct=_t(this,_r).config).onSettled)==null||st.call(ct,it,this.state.error,this),this.scheduleGc()},onError:_e,onFail:(it,nt)=>{Ht(this,Tr,Ir).call(this,{type:"failed",failureCount:it,error:nt})},onPause:()=>{Ht(this,Tr,Ir).call(this,{type:"pause"})},onContinue:()=>{Ht(this,Tr,Ir).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0})),_t(this,gr).start()}},pn=new WeakMap,mn=new WeakMap,_r=new WeakMap,rn=new WeakMap,gr=new WeakMap,Tn=new WeakMap,nn=new WeakMap,Tr=new WeakSet,Ir=function(s){const o=a=>{switch(s.type){case"failed":return{...a,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...fetchState(a.data,this.options),fetchMeta:s.meta??null};case"success":return{...a,data:s.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const _=s.error;return isCancelledError(_)&&_.revert&&_t(this,mn)?{..._t(this,mn),fetchStatus:"idle"}:{...a,error:_,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:_,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...s.state}}};this.state=o(this.state),notifyManager.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),_t(this,_r).notify({query:this,type:"updated",action:s})})},Vs);function fetchState(i,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(i){const s=typeof i.initialData=="function"?i.initialData():i.initialData,o=s!==void 0,a=o?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:o?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var Ar,Bs,QueryCache=(Bs=class extends Subscribable{constructor(s={}){super();zt(this,Ar);this.config=s,Dt(this,Ar,new Map)}build(s,o,a){const _=o.queryKey,$=o.queryHash??hashQueryKeyByOptions(_,o);let j=this.get($);return j||(j=new Query({client:s,queryKey:_,queryHash:$,options:s.defaultQueryOptions(o),state:a,defaultOptions:s.getQueryDefaults(_)}),this.add(j)),j}add(s){_t(this,Ar).has(s.queryHash)||(_t(this,Ar).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const o=_t(this,Ar).get(s.queryHash);o&&(s.destroy(),o===s&&_t(this,Ar).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return _t(this,Ar).get(s)}getAll(){return[..._t(this,Ar).values()]}find(s){const o={exact:!0,...s};return this.getAll().find(a=>matchQuery(o,a))}findAll(s={}){const o=this.getAll();return Object.keys(s).length>0?o.filter(a=>matchQuery(s,a)):o}notify(s){notifyManager.batch(()=>{this.listeners.forEach(o=>{o(s)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Ar=new WeakMap,Bs),Mr,vr,sn,$r,Lr,Ns,Mutation=(Ns=class extends Removable{constructor(s){super();zt(this,$r);zt(this,Mr);zt(this,vr);zt(this,sn);this.mutationId=s.mutationId,Dt(this,vr,s.mutationCache),Dt(this,Mr,[]),this.state=s.state||getDefaultState(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){_t(this,Mr).includes(s)||(_t(this,Mr).push(s),this.clearGcTimeout(),_t(this,vr).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Dt(this,Mr,_t(this,Mr).filter(o=>o!==s)),this.scheduleGc(),_t(this,vr).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){_t(this,Mr).length||(this.state.status==="pending"?this.scheduleGc():_t(this,vr).remove(this))}continue(){var s;return((s=_t(this,sn))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var $,j,_e,et,tt,rt,it,nt,ut,ct,st,dt,ot,lt,at,ft,ht,mt,gt,vt;const o=()=>{Ht(this,$r,Lr).call(this,{type:"continue"})};Dt(this,sn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s):Promise.reject(new Error("No mutationFn found")),onFail:(St,wt)=>{Ht(this,$r,Lr).call(this,{type:"failed",failureCount:St,error:wt})},onPause:()=>{Ht(this,$r,Lr).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_t(this,vr).canRun(this)}));const a=this.state.status==="pending",_=!_t(this,sn).canStart();try{if(a)o();else{Ht(this,$r,Lr).call(this,{type:"pending",variables:s,isPaused:_}),await((j=($=_t(this,vr).config).onMutate)==null?void 0:j.call($,s,this));const wt=await((et=(_e=this.options).onMutate)==null?void 0:et.call(_e,s));wt!==this.state.context&&Ht(this,$r,Lr).call(this,{type:"pending",context:wt,variables:s,isPaused:_})}const St=await _t(this,sn).start();return await((rt=(tt=_t(this,vr).config).onSuccess)==null?void 0:rt.call(tt,St,s,this.state.context,this)),await((nt=(it=this.options).onSuccess)==null?void 0:nt.call(it,St,s,this.state.context)),await((ct=(ut=_t(this,vr).config).onSettled)==null?void 0:ct.call(ut,St,null,this.state.variables,this.state.context,this)),await((dt=(st=this.options).onSettled)==null?void 0:dt.call(st,St,null,s,this.state.context)),Ht(this,$r,Lr).call(this,{type:"success",data:St}),St}catch(St){try{throw await((lt=(ot=_t(this,vr).config).onError)==null?void 0:lt.call(ot,St,s,this.state.context,this)),await((ft=(at=this.options).onError)==null?void 0:ft.call(at,St,s,this.state.context)),await((mt=(ht=_t(this,vr).config).onSettled)==null?void 0:mt.call(ht,void 0,St,this.state.variables,this.state.context,this)),await((vt=(gt=this.options).onSettled)==null?void 0:vt.call(gt,void 0,St,s,this.state.context)),St}finally{Ht(this,$r,Lr).call(this,{type:"error",error:St})}}finally{_t(this,vr).runNext(this)}}},Mr=new WeakMap,vr=new WeakMap,sn=new WeakMap,$r=new WeakSet,Lr=function(s){const o=a=>{switch(s.type){case"failed":return{...a,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...a,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:s.error,failureCount:a.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=o(this.state),notifyManager.batch(()=>{_t(this,Mr).forEach(a=>{a.onMutationUpdate(s)}),_t(this,vr).notify({mutation:this,type:"updated",action:s})})},Ns);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jr,Rr,Rn,zs,MutationCache=(zs=class extends Subscribable{constructor(s={}){super();zt(this,jr);zt(this,Rr);zt(this,Rn);this.config=s,Dt(this,jr,new Set),Dt(this,Rr,new Map),Dt(this,Rn,0)}build(s,o,a){const _=new Mutation({mutationCache:this,mutationId:++Dn(this,Rn)._,options:s.defaultMutationOptions(o),state:a});return this.add(_),_}add(s){_t(this,jr).add(s);const o=scopeFor(s);if(typeof o=="string"){const a=_t(this,Rr).get(o);a?a.push(s):_t(this,Rr).set(o,[s])}this.notify({type:"added",mutation:s})}remove(s){if(_t(this,jr).delete(s)){const o=scopeFor(s);if(typeof o=="string"){const a=_t(this,Rr).get(o);if(a)if(a.length>1){const _=a.indexOf(s);_!==-1&&a.splice(_,1)}else a[0]===s&&_t(this,Rr).delete(o)}}this.notify({type:"removed",mutation:s})}canRun(s){const o=scopeFor(s);if(typeof o=="string"){const a=_t(this,Rr).get(o),_=a==null?void 0:a.find($=>$.state.status==="pending");return!_||_===s}else return!0}runNext(s){var a;const o=scopeFor(s);if(typeof o=="string"){const _=(a=_t(this,Rr).get(o))==null?void 0:a.find($=>$!==s&&$.state.isPaused);return(_==null?void 0:_.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{_t(this,jr).forEach(s=>{this.notify({type:"removed",mutation:s})}),_t(this,jr).clear(),_t(this,Rr).clear()})}getAll(){return Array.from(_t(this,jr))}find(s){const o={exact:!0,...s};return this.getAll().find(a=>matchMutation(o,a))}findAll(s={}){return this.getAll().filter(o=>matchMutation(s,o))}notify(s){notifyManager.batch(()=>{this.listeners.forEach(o=>{o(s)})})}resumePausedMutations(){const s=this.getAll().filter(o=>o.state.isPaused);return notifyManager.batch(()=>Promise.all(s.map(o=>o.continue().catch(noop$1))))}},jr=new WeakMap,Rr=new WeakMap,Rn=new WeakMap,zs);function scopeFor(i){var s;return(s=i.options.scope)==null?void 0:s.id}function infiniteQueryBehavior(i){return{onFetch:(s,o)=>{var rt,it,nt,ut,ct;const a=s.options,_=(nt=(it=(rt=s.fetchOptions)==null?void 0:rt.meta)==null?void 0:it.fetchMore)==null?void 0:nt.direction,$=((ut=s.state.data)==null?void 0:ut.pages)||[],j=((ct=s.state.data)==null?void 0:ct.pageParams)||[];let _e={pages:[],pageParams:[]},et=0;const tt=async()=>{let st=!1;const dt=at=>{Object.defineProperty(at,"signal",{enumerable:!0,get:()=>(s.signal.aborted?st=!0:s.signal.addEventListener("abort",()=>{st=!0}),s.signal)})},ot=ensureQueryFn(s.options,s.fetchOptions),lt=async(at,ft,ht)=>{if(st)return Promise.reject();if(ft==null&&at.pages.length)return Promise.resolve(at);const mt={client:s.client,queryKey:s.queryKey,pageParam:ft,direction:ht?"backward":"forward",meta:s.options.meta};dt(mt);const gt=await ot(mt),{maxPages:vt}=s.options,St=ht?addToStart:addToEnd;return{pages:St(at.pages,gt,vt),pageParams:St(at.pageParams,ft,vt)}};if(_&&$.length){const at=_==="backward",ft=at?getPreviousPageParam:getNextPageParam,ht={pages:$,pageParams:j},mt=ft(a,ht);_e=await lt(ht,mt,at)}else{const at=i??$.length;do{const ft=et===0?j[0]??a.initialPageParam:getNextPageParam(a,_e);if(et>0&&ft==null)break;_e=await lt(_e,ft),et++}while(et<at)}return _e};s.options.persister?s.fetchFn=()=>{var st,dt;return(dt=(st=s.options).persister)==null?void 0:dt.call(st,tt,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},o)}:s.fetchFn=tt}}}function getNextPageParam(i,{pages:s,pageParams:o}){const a=s.length-1;return s.length>0?i.getNextPageParam(s[a],s,o[a],o):void 0}function getPreviousPageParam(i,{pages:s,pageParams:o}){var a;return s.length>0?(a=i.getPreviousPageParam)==null?void 0:a.call(i,s[0],s,o[0],o):void 0}var sr,Nr,zr,gn,yn,Wr,vn,xn,Ws,QueryClient=(Ws=class{constructor(i={}){zt(this,sr);zt(this,Nr);zt(this,zr);zt(this,gn);zt(this,yn);zt(this,Wr);zt(this,vn);zt(this,xn);Dt(this,sr,i.queryCache||new QueryCache),Dt(this,Nr,i.mutationCache||new MutationCache),Dt(this,zr,i.defaultOptions||{}),Dt(this,gn,new Map),Dt(this,yn,new Map),Dt(this,Wr,0)}mount(){Dn(this,Wr)._++,_t(this,Wr)===1&&(Dt(this,vn,focusManager.subscribe(async i=>{i&&(await this.resumePausedMutations(),_t(this,sr).onFocus())})),Dt(this,xn,onlineManager.subscribe(async i=>{i&&(await this.resumePausedMutations(),_t(this,sr).onOnline())})))}unmount(){var i,s;Dn(this,Wr)._--,_t(this,Wr)===0&&((i=_t(this,vn))==null||i.call(this),Dt(this,vn,void 0),(s=_t(this,xn))==null||s.call(this),Dt(this,xn,void 0))}isFetching(i){return _t(this,sr).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return _t(this,Nr).findAll({...i,status:"pending"}).length}getQueryData(i){var o;const s=this.defaultQueryOptions({queryKey:i});return(o=_t(this,sr).get(s.queryHash))==null?void 0:o.state.data}ensureQueryData(i){const s=this.defaultQueryOptions(i),o=_t(this,sr).build(this,s),a=o.state.data;return a===void 0?this.fetchQuery(i):(i.revalidateIfStale&&o.isStaleByTime(resolveStaleTime(s.staleTime,o))&&this.prefetchQuery(s),Promise.resolve(a))}getQueriesData(i){return _t(this,sr).findAll(i).map(({queryKey:s,state:o})=>{const a=o.data;return[s,a]})}setQueryData(i,s,o){const a=this.defaultQueryOptions({queryKey:i}),_=_t(this,sr).get(a.queryHash),$=_==null?void 0:_.state.data,j=functionalUpdate(s,$);if(j!==void 0)return _t(this,sr).build(this,a).setData(j,{...o,manual:!0})}setQueriesData(i,s,o){return notifyManager.batch(()=>_t(this,sr).findAll(i).map(({queryKey:a})=>[a,this.setQueryData(a,s,o)]))}getQueryState(i){var o;const s=this.defaultQueryOptions({queryKey:i});return(o=_t(this,sr).get(s.queryHash))==null?void 0:o.state}removeQueries(i){const s=_t(this,sr);notifyManager.batch(()=>{s.findAll(i).forEach(o=>{s.remove(o)})})}resetQueries(i,s){const o=_t(this,sr);return notifyManager.batch(()=>(o.findAll(i).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...i},s)))}cancelQueries(i,s={}){const o={revert:!0,...s},a=notifyManager.batch(()=>_t(this,sr).findAll(i).map(_=>_.cancel(o)));return Promise.all(a).then(noop$1).catch(noop$1)}invalidateQueries(i,s={}){return notifyManager.batch(()=>(_t(this,sr).findAll(i).forEach(o=>{o.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},s)))}refetchQueries(i,s={}){const o={...s,cancelRefetch:s.cancelRefetch??!0},a=notifyManager.batch(()=>_t(this,sr).findAll(i).filter(_=>!_.isDisabled()).map(_=>{let $=_.fetch(void 0,o);return o.throwOnError||($=$.catch(noop$1)),_.state.fetchStatus==="paused"?Promise.resolve():$}));return Promise.all(a).then(noop$1)}fetchQuery(i){const s=this.defaultQueryOptions(i);s.retry===void 0&&(s.retry=!1);const o=_t(this,sr).build(this,s);return o.isStaleByTime(resolveStaleTime(s.staleTime,o))?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(noop$1).catch(noop$1)}fetchInfiniteQuery(i){return i.behavior=infiniteQueryBehavior(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(noop$1).catch(noop$1)}ensureInfiniteQueryData(i){return i.behavior=infiniteQueryBehavior(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return onlineManager.isOnline()?_t(this,Nr).resumePausedMutations():Promise.resolve()}getQueryCache(){return _t(this,sr)}getMutationCache(){return _t(this,Nr)}getDefaultOptions(){return _t(this,zr)}setDefaultOptions(i){Dt(this,zr,i)}setQueryDefaults(i,s){_t(this,gn).set(hashKey(i),{queryKey:i,defaultOptions:s})}getQueryDefaults(i){const s=[..._t(this,gn).values()],o={};return s.forEach(a=>{partialMatchKey(i,a.queryKey)&&Object.assign(o,a.defaultOptions)}),o}setMutationDefaults(i,s){_t(this,yn).set(hashKey(i),{mutationKey:i,defaultOptions:s})}getMutationDefaults(i){const s=[..._t(this,yn).values()],o={};return s.forEach(a=>{partialMatchKey(i,a.mutationKey)&&Object.assign(o,a.defaultOptions)}),o}defaultQueryOptions(i){if(i._defaulted)return i;const s={..._t(this,zr).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return s.queryHash||(s.queryHash=hashQueryKeyByOptions(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===skipToken&&(s.enabled=!1),s}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{..._t(this,zr).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){_t(this,sr).clear(),_t(this,Nr).clear()}},sr=new WeakMap,Nr=new WeakMap,zr=new WeakMap,gn=new WeakMap,yn=new WeakMap,Wr=new WeakMap,vn=new WeakMap,xn=new WeakMap,Ws),Sr,Gt,An,xr,on,bn,Hr,Ur,Mn,Sn,En,an,ln,Gr,Cn,Xt,Pn,Xn,Qn,Zn,Jn,_i,es,ts,Gs,Hs,QueryObserver=(Hs=class extends Subscribable{constructor(s,o){super();zt(this,Xt);zt(this,Sr);zt(this,Gt);zt(this,An);zt(this,xr);zt(this,on);zt(this,bn);zt(this,Hr);zt(this,Ur);zt(this,Mn);zt(this,Sn);zt(this,En);zt(this,an);zt(this,ln);zt(this,Gr);zt(this,Cn,new Set);this.options=o,Dt(this,Sr,s),Dt(this,Ur,null),Dt(this,Hr,pendingThenable()),this.options.experimental_prefetchInRender||_t(this,Hr).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_t(this,Gt).addObserver(this),shouldFetchOnMount(_t(this,Gt),this.options)?Ht(this,Xt,Pn).call(this):this.updateResult(),Ht(this,Xt,Jn).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(_t(this,Gt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(_t(this,Gt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ht(this,Xt,_i).call(this),Ht(this,Xt,es).call(this),_t(this,Gt).removeObserver(this)}setOptions(s){const o=this.options,a=_t(this,Gt);if(this.options=_t(this,Sr).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof resolveEnabled(this.options.enabled,_t(this,Gt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ht(this,Xt,ts).call(this),_t(this,Gt).setOptions(this.options),o._defaulted&&!shallowEqualObjects(this.options,o)&&_t(this,Sr).getQueryCache().notify({type:"observerOptionsUpdated",query:_t(this,Gt),observer:this});const _=this.hasListeners();_&&shouldFetchOptionally(_t(this,Gt),a,this.options,o)&&Ht(this,Xt,Pn).call(this),this.updateResult(),_&&(_t(this,Gt)!==a||resolveEnabled(this.options.enabled,_t(this,Gt))!==resolveEnabled(o.enabled,_t(this,Gt))||resolveStaleTime(this.options.staleTime,_t(this,Gt))!==resolveStaleTime(o.staleTime,_t(this,Gt)))&&Ht(this,Xt,Xn).call(this);const $=Ht(this,Xt,Qn).call(this);_&&(_t(this,Gt)!==a||resolveEnabled(this.options.enabled,_t(this,Gt))!==resolveEnabled(o.enabled,_t(this,Gt))||$!==_t(this,Gr))&&Ht(this,Xt,Zn).call(this,$)}getOptimisticResult(s){const o=_t(this,Sr).getQueryCache().build(_t(this,Sr),s),a=this.createResult(o,s);return shouldAssignObserverCurrentProperties(this,a)&&(Dt(this,xr,a),Dt(this,bn,this.options),Dt(this,on,_t(this,Gt).state)),a}getCurrentResult(){return _t(this,xr)}trackResult(s,o){return new Proxy(s,{get:(a,_)=>(this.trackProp(_),o==null||o(_),Reflect.get(a,_))})}trackProp(s){_t(this,Cn).add(s)}getCurrentQuery(){return _t(this,Gt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const o=_t(this,Sr).defaultQueryOptions(s),a=_t(this,Sr).getQueryCache().build(_t(this,Sr),o);return a.fetch().then(()=>this.createResult(a,o))}fetch(s){return Ht(this,Xt,Pn).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),_t(this,xr)))}createResult(s,o){var St;const a=_t(this,Gt),_=this.options,$=_t(this,xr),j=_t(this,on),_e=_t(this,bn),tt=s!==a?s.state:_t(this,An),{state:rt}=s;let it={...rt},nt=!1,ut;if(o._optimisticResults){const wt=this.hasListeners(),Pt=!wt&&shouldFetchOnMount(s,o),Rt=wt&&shouldFetchOptionally(s,a,o,_);(Pt||Rt)&&(it={...it,...fetchState(rt.data,s.options)}),o._optimisticResults==="isRestoring"&&(it.fetchStatus="idle")}let{error:ct,errorUpdatedAt:st,status:dt}=it;ut=it.data;let ot=!1;if(o.placeholderData!==void 0&&ut===void 0&&dt==="pending"){let wt;$!=null&&$.isPlaceholderData&&o.placeholderData===(_e==null?void 0:_e.placeholderData)?(wt=$.data,ot=!0):wt=typeof o.placeholderData=="function"?o.placeholderData((St=_t(this,En))==null?void 0:St.state.data,_t(this,En)):o.placeholderData,wt!==void 0&&(dt="success",ut=replaceData($==null?void 0:$.data,wt,o),nt=!0)}if(o.select&&ut!==void 0&&!ot)if($&&ut===(j==null?void 0:j.data)&&o.select===_t(this,Mn))ut=_t(this,Sn);else try{Dt(this,Mn,o.select),ut=o.select(ut),ut=replaceData($==null?void 0:$.data,ut,o),Dt(this,Sn,ut),Dt(this,Ur,null)}catch(wt){Dt(this,Ur,wt)}_t(this,Ur)&&(ct=_t(this,Ur),ut=_t(this,Sn),st=Date.now(),dt="error");const lt=it.fetchStatus==="fetching",at=dt==="pending",ft=dt==="error",ht=at&&lt,mt=ut!==void 0,vt={status:dt,fetchStatus:it.fetchStatus,isPending:at,isSuccess:dt==="success",isError:ft,isInitialLoading:ht,isLoading:ht,data:ut,dataUpdatedAt:it.dataUpdatedAt,error:ct,errorUpdatedAt:st,failureCount:it.fetchFailureCount,failureReason:it.fetchFailureReason,errorUpdateCount:it.errorUpdateCount,isFetched:it.dataUpdateCount>0||it.errorUpdateCount>0,isFetchedAfterMount:it.dataUpdateCount>tt.dataUpdateCount||it.errorUpdateCount>tt.errorUpdateCount,isFetching:lt,isRefetching:lt&&!at,isLoadingError:ft&&!mt,isPaused:it.fetchStatus==="paused",isPlaceholderData:nt,isRefetchError:ft&&mt,isStale:isStale(s,o),refetch:this.refetch,promise:_t(this,Hr)};if(this.options.experimental_prefetchInRender){const wt=It=>{vt.status==="error"?It.reject(vt.error):vt.data!==void 0&&It.resolve(vt.data)},Pt=()=>{const It=Dt(this,Hr,vt.promise=pendingThenable());wt(It)},Rt=_t(this,Hr);switch(Rt.status){case"pending":s.queryHash===a.queryHash&&wt(Rt);break;case"fulfilled":(vt.status==="error"||vt.data!==Rt.value)&&Pt();break;case"rejected":(vt.status!=="error"||vt.error!==Rt.reason)&&Pt();break}}return vt}updateResult(){const s=_t(this,xr),o=this.createResult(_t(this,Gt),this.options);if(Dt(this,on,_t(this,Gt).state),Dt(this,bn,this.options),_t(this,on).data!==void 0&&Dt(this,En,_t(this,Gt)),shallowEqualObjects(o,s))return;Dt(this,xr,o);const a=()=>{if(!s)return!0;const{notifyOnChangeProps:_}=this.options,$=typeof _=="function"?_():_;if($==="all"||!$&&!_t(this,Cn).size)return!0;const j=new Set($??_t(this,Cn));return this.options.throwOnError&&j.add("error"),Object.keys(_t(this,xr)).some(_e=>{const et=_e;return _t(this,xr)[et]!==s[et]&&j.has(et)})};Ht(this,Xt,Gs).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ht(this,Xt,Jn).call(this)}},Sr=new WeakMap,Gt=new WeakMap,An=new WeakMap,xr=new WeakMap,on=new WeakMap,bn=new WeakMap,Hr=new WeakMap,Ur=new WeakMap,Mn=new WeakMap,Sn=new WeakMap,En=new WeakMap,an=new WeakMap,ln=new WeakMap,Gr=new WeakMap,Cn=new WeakMap,Xt=new WeakSet,Pn=function(s){Ht(this,Xt,ts).call(this);let o=_t(this,Gt).fetch(this.options,s);return s!=null&&s.throwOnError||(o=o.catch(noop$1)),o},Xn=function(){Ht(this,Xt,_i).call(this);const s=resolveStaleTime(this.options.staleTime,_t(this,Gt));if(isServer$1||_t(this,xr).isStale||!isValidTimeout(s))return;const a=timeUntilStale(_t(this,xr).dataUpdatedAt,s)+1;Dt(this,an,setTimeout(()=>{_t(this,xr).isStale||this.updateResult()},a))},Qn=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_t(this,Gt)):this.options.refetchInterval)??!1},Zn=function(s){Ht(this,Xt,es).call(this),Dt(this,Gr,s),!(isServer$1||resolveEnabled(this.options.enabled,_t(this,Gt))===!1||!isValidTimeout(_t(this,Gr))||_t(this,Gr)===0)&&Dt(this,ln,setInterval(()=>{(this.options.refetchIntervalInBackground||focusManager.isFocused())&&Ht(this,Xt,Pn).call(this)},_t(this,Gr)))},Jn=function(){Ht(this,Xt,Xn).call(this),Ht(this,Xt,Zn).call(this,Ht(this,Xt,Qn).call(this))},_i=function(){_t(this,an)&&(clearTimeout(_t(this,an)),Dt(this,an,void 0))},es=function(){_t(this,ln)&&(clearInterval(_t(this,ln)),Dt(this,ln,void 0))},ts=function(){const s=_t(this,Sr).getQueryCache().build(_t(this,Sr),this.options);if(s===_t(this,Gt))return;const o=_t(this,Gt);Dt(this,Gt,s),Dt(this,An,s.state),this.hasListeners()&&(o==null||o.removeObserver(this),s.addObserver(this))},Gs=function(s){notifyManager.batch(()=>{s.listeners&&this.listeners.forEach(o=>{o(_t(this,xr))}),_t(this,Sr).getQueryCache().notify({query:_t(this,Gt),type:"observerResultsUpdated"})})},Hs);function shouldLoadOnMount(i,s){return resolveEnabled(s.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&s.retryOnMount===!1)}function shouldFetchOnMount(i,s){return shouldLoadOnMount(i,s)||i.state.data!==void 0&&shouldFetchOn(i,s,s.refetchOnMount)}function shouldFetchOn(i,s,o){if(resolveEnabled(s.enabled,i)!==!1){const a=typeof o=="function"?o(i):o;return a==="always"||a!==!1&&isStale(i,s)}return!1}function shouldFetchOptionally(i,s,o,a){return(i!==s||resolveEnabled(a.enabled,i)===!1)&&(!o.suspense||i.state.status!=="error")&&isStale(i,o)}function isStale(i,s){return resolveEnabled(s.enabled,i)!==!1&&i.isStaleByTime(resolveStaleTime(s.staleTime,i))}function shouldAssignObserverCurrentProperties(i,s){return!shallowEqualObjects(i.getCurrentResult(),s)}var Yr,qr,Er,Or,Dr,Ln,rs,Us,MutationObserver$1=(Us=class extends Subscribable{constructor(o,a){super();zt(this,Dr);zt(this,Yr);zt(this,qr);zt(this,Er);zt(this,Or);Dt(this,Yr,o),this.setOptions(a),this.bindMethods(),Ht(this,Dr,Ln).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){var _;const a=this.options;this.options=_t(this,Yr).defaultMutationOptions(o),shallowEqualObjects(this.options,a)||_t(this,Yr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_t(this,Er),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&hashKey(a.mutationKey)!==hashKey(this.options.mutationKey)?this.reset():((_=_t(this,Er))==null?void 0:_.state.status)==="pending"&&_t(this,Er).setOptions(this.options)}onUnsubscribe(){var o;this.hasListeners()||(o=_t(this,Er))==null||o.removeObserver(this)}onMutationUpdate(o){Ht(this,Dr,Ln).call(this),Ht(this,Dr,rs).call(this,o)}getCurrentResult(){return _t(this,qr)}reset(){var o;(o=_t(this,Er))==null||o.removeObserver(this),Dt(this,Er,void 0),Ht(this,Dr,Ln).call(this),Ht(this,Dr,rs).call(this)}mutate(o,a){var _;return Dt(this,Or,a),(_=_t(this,Er))==null||_.removeObserver(this),Dt(this,Er,_t(this,Yr).getMutationCache().build(_t(this,Yr),this.options)),_t(this,Er).addObserver(this),_t(this,Er).execute(o)}},Yr=new WeakMap,qr=new WeakMap,Er=new WeakMap,Or=new WeakMap,Dr=new WeakSet,Ln=function(){var a;const o=((a=_t(this,Er))==null?void 0:a.state)??getDefaultState();Dt(this,qr,{...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset})},rs=function(o){notifyManager.batch(()=>{var a,_,$,j,_e,et,tt,rt;if(_t(this,Or)&&this.hasListeners()){const it=_t(this,qr).variables,nt=_t(this,qr).context;(o==null?void 0:o.type)==="success"?((_=(a=_t(this,Or)).onSuccess)==null||_.call(a,o.data,it,nt),(j=($=_t(this,Or)).onSettled)==null||j.call($,o.data,null,it,nt)):(o==null?void 0:o.type)==="error"&&((et=(_e=_t(this,Or)).onError)==null||et.call(_e,o.error,it,nt),(rt=(tt=_t(this,Or)).onSettled)==null||rt.call(tt,void 0,o.error,it,nt))}this.listeners.forEach(it=>{it(_t(this,qr))})})},Us),QueryClientContext=reactExports.createContext(void 0),useQueryClient=i=>{const s=reactExports.useContext(QueryClientContext);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QueryClientProvider=({client:i,children:s})=>(reactExports.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:i,children:s})),IsRestoringContext=reactExports.createContext(!1),useIsRestoring=()=>reactExports.useContext(IsRestoringContext);IsRestoringContext.Provider;function createValue(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var QueryErrorResetBoundaryContext=reactExports.createContext(createValue()),useQueryErrorResetBoundary=()=>reactExports.useContext(QueryErrorResetBoundaryContext),ensurePreventErrorBoundaryRetry=(i,s)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(s.isReset()||(i.retryOnMount=!1))},useClearResetErrorBoundary=i=>{reactExports.useEffect(()=>{i.clearReset()},[i])},getHasError=({result:i,errorResetBoundary:s,throwOnError:o,query:a,suspense:_})=>i.isError&&!s.isReset()&&!i.isFetching&&a&&(_&&i.data===void 0||shouldThrowError(o,[i.error,a])),ensureSuspenseTimers=i=>{const s=i.staleTime;i.suspense&&(i.staleTime=typeof s=="function"?(...o)=>Math.max(s(...o),1e3):Math.max(s??1e3,1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},willFetch=(i,s)=>i.isLoading&&i.isFetching&&!s,shouldSuspend=(i,s)=>(i==null?void 0:i.suspense)&&s.isPending,fetchOptimistic=(i,s,o)=>s.fetchOptimistic(i).catch(()=>{o.clearReset()});function useBaseQuery(i,s,o){var it,nt,ut,ct,st;const a=useQueryClient(),_=useIsRestoring(),$=useQueryErrorResetBoundary(),j=a.defaultQueryOptions(i);(nt=(it=a.getDefaultOptions().queries)==null?void 0:it._experimental_beforeQuery)==null||nt.call(it,j),j._optimisticResults=_?"isRestoring":"optimistic",ensureSuspenseTimers(j),ensurePreventErrorBoundaryRetry(j,$),useClearResetErrorBoundary($);const _e=!a.getQueryCache().get(j.queryHash),[et]=reactExports.useState(()=>new s(a,j)),tt=et.getOptimisticResult(j),rt=!_&&i.subscribed!==!1;if(reactExports.useSyncExternalStore(reactExports.useCallback(dt=>{const ot=rt?et.subscribe(notifyManager.batchCalls(dt)):noop$1;return et.updateResult(),ot},[et,rt]),()=>et.getCurrentResult(),()=>et.getCurrentResult()),reactExports.useEffect(()=>{et.setOptions(j)},[j,et]),shouldSuspend(j,tt))throw fetchOptimistic(j,et,$);if(getHasError({result:tt,errorResetBoundary:$,throwOnError:j.throwOnError,query:a.getQueryCache().get(j.queryHash),suspense:j.suspense}))throw tt.error;if((ct=(ut=a.getDefaultOptions().queries)==null?void 0:ut._experimental_afterQuery)==null||ct.call(ut,j,tt),j.experimental_prefetchInRender&&!isServer$1&&willFetch(tt,_)){const dt=_e?fetchOptimistic(j,et,$):(st=a.getQueryCache().get(j.queryHash))==null?void 0:st.promise;dt==null||dt.catch(noop$1).finally(()=>{et.updateResult()})}return j.notifyOnChangeProps?tt:et.trackResult(tt)}function useQuery(i,s){return useBaseQuery(i,QueryObserver)}function useMutation(i,s){const o=useQueryClient(),[a]=reactExports.useState(()=>new MutationObserver$1(o,i));reactExports.useEffect(()=>{a.setOptions(i)},[a,i]);const _=reactExports.useSyncExternalStore(reactExports.useCallback(j=>a.subscribe(notifyManager.batchCalls(j)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),$=reactExports.useCallback((j,_e)=>{a.mutate(j,_e).catch(noop$1)},[a]);if(_.error&&shouldThrowError(a.options.throwOnError,[_.error]))throw _.error;return{..._,mutate:$,mutateAsync:_.mutate}}const scriptRel="modulepreload",assetsURL=function(i){return"/"+i},seen={},__vitePreload=function(s,o,a){let _=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const j=document.querySelector("meta[property=csp-nonce]"),_e=(j==null?void 0:j.nonce)||(j==null?void 0:j.getAttribute("nonce"));_=Promise.allSettled(o.map(et=>{if(et=assetsURL(et),et in seen)return;seen[et]=!0;const tt=et.endsWith(".css"),rt=tt?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${et}"]${rt}`))return;const it=document.createElement("link");if(it.rel=tt?"stylesheet":scriptRel,tt||(it.as="script"),it.crossOrigin="",it.href=et,_e&&it.setAttribute("nonce",_e),document.head.appendChild(it),tt)return new Promise((nt,ut)=>{it.addEventListener("load",nt),it.addEventListener("error",()=>ut(new Error(`Unable to preload CSS for ${et}`)))})}))}function $(j){const _e=new Event("vite:preloadError",{cancelable:!0});if(_e.payload=j,window.dispatchEvent(_e),!_e.defaultPrevented)throw j}return _.then(j=>{for(const _e of j||[])_e.status==="rejected"&&$(_e.reason);return s().catch($)})};var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React$1.createContext&&React$1.createContext(DefaultContext),_excluded$2=["attr","size","title"];function _objectWithoutProperties$1(i,s){if(i==null)return{};var o=_objectWithoutPropertiesLoose$1(i,s),a,_;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(i);for(_=0;_<$.length;_++)a=$[_],!(s.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}function _objectWithoutPropertiesLoose$1(i,s){if(i==null)return{};var o={};for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)){if(s.indexOf(a)>=0)continue;o[a]=i[a]}return o}function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])}return i},_extends.apply(this,arguments)}function ownKeys$2(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);s&&(a=a.filter(function(_){return Object.getOwnPropertyDescriptor(i,_).enumerable})),o.push.apply(o,a)}return o}function _objectSpread(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$2(Object(o),!0).forEach(function(a){_defineProperty$2(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys$2(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}function _defineProperty$2(i,s,o){return s=_toPropertyKey$1(s),s in i?Object.defineProperty(i,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[s]=o,i}function _toPropertyKey$1(i){var s=_toPrimitive$1(i,"string");return typeof s=="symbol"?s:s+""}function _toPrimitive$1(i,s){if(typeof i!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}function Tree2Element(i){return i&&i.map((s,o)=>React$1.createElement(s.tag,_objectSpread({key:o},s.attr),Tree2Element(s.child)))}function GenIcon(i){return s=>React$1.createElement(IconBase,_extends({attr:_objectSpread({},i.attr)},s),Tree2Element(i.child))}function IconBase(i){var s=o=>{var{attr:a,size:_,title:$}=i,j=_objectWithoutProperties$1(i,_excluded$2),_e=_||o.size||"1em",et;return o.className&&(et=o.className),i.className&&(et=(et?et+" ":"")+i.className),React$1.createElement("svg",_extends({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,a,j,{className:et,style:_objectSpread(_objectSpread({color:i.color||o.color},o.style),i.style),height:_e,width:_e,xmlns:"http://www.w3.org/2000/svg"}),$&&React$1.createElement("title",null,$),i.children)};return IconContext!==void 0?React$1.createElement(IconContext.Consumer,null,o=>s(o)):s(DefaultContext)}function FaDiscord(i){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(i)}function FaFacebook(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(i)}function FaGithub(i){return GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(i)}function FaInstagram(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(i)}function FaLinkedin(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},child:[]}]})(i)}function FaMedium(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 32v448h448V32H0zm372.2 106.1l-24 23c-2.1 1.6-3.1 4.2-2.7 6.7v169.3c-.4 2.6.6 5.2 2.7 6.7l23.5 23v5.1h-118V367l24.3-23.6c2.4-2.4 2.4-3.1 2.4-6.7V199.8l-67.6 171.6h-9.1L125 199.8v115c-.7 4.8 1 9.7 4.4 13.2l31.6 38.3v5.1H71.2v-5.1l31.6-38.3c3.4-3.5 4.9-8.4 4.1-13.2v-133c.4-3.7-1-7.3-3.8-9.8L75 138.1V133h87.3l67.4 148L289 133.1h83.2v5z"},child:[]}]})(i)}function FaPinterest(i){return GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},child:[]}]})(i)}function FaReddit(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},child:[]}]})(i)}function FaSnapchat(i){return GenIcon({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm169.5 338.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C183.1 100 230.7 96 244.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},child:[]}]})(i)}function FaTwitch(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M391.17,103.47H352.54v109.7h38.63ZM285,103H246.37V212.75H285ZM120.83,0,24.31,91.42V420.58H140.14V512l96.53-91.42h77.25L487.69,256V0ZM449.07,237.75l-77.22,73.12H294.61l-67.6,64v-64H140.14V36.58H449.07Z"},child:[]}]})(i)}function FaTwitter(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},child:[]}]})(i)}function FaWhatsapp(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(i)}function FaYoutube(i){return GenIcon({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(i)}function FaAmbulance(i){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},child:[]}]})(i)}function FaCalendarAlt(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"},child:[]}]})(i)}function FaCheckCircle(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(i)}function FaCheck(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(i)}function FaClock(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(i)}function FaDirections(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"},child:[]}]})(i)}function FaEnvelope(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(i)}function FaFileDownload(i){return GenIcon({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"},child:[]}]})(i)}function FaHandHoldingMedical(i){return GenIcon({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M159.88,175.82h64v64a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16v-64h64a16,16,0,0,0,16-16v-64a16,16,0,0,0-16-16h-64v-64a16,16,0,0,0-16-16h-64a16,16,0,0,0-16,16v64h-64a16,16,0,0,0-16,16v64A16,16,0,0,0,159.88,175.82ZM568.07,336.13a39.91,39.91,0,0,0-55.93-8.47L392.47,415.84H271.86a16,16,0,0,1,0-32H350.1c16,0,30.75-10.87,33.37-26.61a32.06,32.06,0,0,0-31.62-37.38h-160a117.7,117.7,0,0,0-74.12,26.25l-46.5,37.74H15.87a16.11,16.11,0,0,0-16,16v96a16.11,16.11,0,0,0,16,16h347a104.8,104.8,0,0,0,61.7-20.27L559.6,392A40,40,0,0,0,568.07,336.13Z"},child:[]}]})(i)}function FaHospitalAlt(i){return GenIcon({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"},child:[]}]})(i)}function FaHourglassHalf(i){return GenIcon({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"},child:[]}]})(i)}function FaListAlt(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},child:[]}]})(i)}function FaThermometer(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"},child:[]}]})(i)}function FaTimesCircle(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"},child:[]}]})(i)}function FaTimes(i){return GenIcon({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(i)}function FaTrash(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(i)}function FaUserAlt(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"},child:[]}]})(i)}function FaUserCheck(i){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"},child:[]}]})(i)}function FaUserFriends(i){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"},child:[]}]})(i)}function FaUserMd(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"},child:[]}]})(i)}function FaUser(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(i)}function FaUsers(i){return GenIcon({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(i)}function FaWeight(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"},child:[]}]})(i)}function FaRegHospital(i){return GenIcon({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M128 244v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12zm140 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm-76 84v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm76 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm180 124v36H0v-36c0-6.627 5.373-12 12-12h19.5V85.035C31.5 73.418 42.245 64 55.5 64H144V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v40h88.5c13.255 0 24 9.418 24 21.035V464H436c6.627 0 12 5.373 12 12zM79.5 463H192v-67c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v67h112.5V112H304v24c0 13.255-10.745 24-24 24H168c-13.255 0-24-10.745-24-24v-24H79.5v351zM266 64h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6z"},child:[]}]})(i)}function bind(i,s){return function(){return i.apply(s,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(i=>s=>{const o=toString$1.call(s);return i[o]||(i[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=i=>(i=i.toLowerCase(),s=>kindOf(s)===i),typeOfTest=i=>s=>typeof s===i,{isArray:isArray$1}=Array,isUndefined$1=typeOfTest("undefined");function isBuffer(i){return i!==null&&!isUndefined$1(i)&&i.constructor!==null&&!isUndefined$1(i.constructor)&&isFunction$1(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(i){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(i):s=i&&i.buffer&&isArrayBuffer(i.buffer),s}const isString$1=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$1=i=>i!==null&&typeof i=="object",isBoolean=i=>i===!0||i===!1,isPlainObject=i=>{if(kindOf(i)!=="object")return!1;const s=getPrototypeOf(i);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(toStringTag in i)&&!(iterator in i)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=i=>isObject$1(i)&&isFunction$1(i.pipe),isFormData=i=>{let s;return i&&(typeof FormData=="function"&&i instanceof FormData||isFunction$1(i.append)&&((s=kindOf(i))==="formdata"||s==="object"&&isFunction$1(i.toString)&&i.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(i,s,{allOwnKeys:o=!1}={}){if(i===null||typeof i>"u")return;let a,_;if(typeof i!="object"&&(i=[i]),isArray$1(i))for(a=0,_=i.length;a<_;a++)s.call(null,i[a],a,i);else{const $=o?Object.getOwnPropertyNames(i):Object.keys(i),j=$.length;let _e;for(a=0;a<j;a++)_e=$[a],s.call(null,i[_e],_e,i)}}function findKey(i,s){s=s.toLowerCase();const o=Object.keys(i);let a=o.length,_;for(;a-- >0;)if(_=o[a],s===_.toLowerCase())return _;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=i=>!isUndefined$1(i)&&i!==_global;function merge(){const{caseless:i}=isContextDefined(this)&&this||{},s={},o=(a,_)=>{const $=i&&findKey(s,_)||_;isPlainObject(s[$])&&isPlainObject(a)?s[$]=merge(s[$],a):isPlainObject(a)?s[$]=merge({},a):isArray$1(a)?s[$]=a.slice():s[$]=a};for(let a=0,_=arguments.length;a<_;a++)arguments[a]&&forEach(arguments[a],o);return s}const extend$1=(i,s,o,{allOwnKeys:a}={})=>(forEach(s,(_,$)=>{o&&isFunction$1(_)?i[$]=bind(_,o):i[$]=_},{allOwnKeys:a}),i),stripBOM=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),inherits=(i,s,o,a)=>{i.prototype=Object.create(s.prototype,a),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:s.prototype}),o&&Object.assign(i.prototype,o)},toFlatObject=(i,s,o,a)=>{let _,$,j;const _e={};if(s=s||{},i==null)return s;do{for(_=Object.getOwnPropertyNames(i),$=_.length;$-- >0;)j=_[$],(!a||a(j,i,s))&&!_e[j]&&(s[j]=i[j],_e[j]=!0);i=o!==!1&&getPrototypeOf(i)}while(i&&(!o||o(i,s))&&i!==Object.prototype);return s},endsWith=(i,s,o)=>{i=String(i),(o===void 0||o>i.length)&&(o=i.length),o-=s.length;const a=i.indexOf(s,o);return a!==-1&&a===o},toArray$1=i=>{if(!i)return null;if(isArray$1(i))return i;let s=i.length;if(!isNumber$1(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=i[s];return o},isTypedArray=(i=>s=>i&&s instanceof i)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(i,s)=>{const a=(i&&i[iterator]).call(i);let _;for(;(_=a.next())&&!_.done;){const $=_.value;s.call(i,$[0],$[1])}},matchAll=(i,s)=>{let o;const a=[];for(;(o=i.exec(s))!==null;)a.push(o);return a},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,_){return a.toUpperCase()+_}),hasOwnProperty=(({hasOwnProperty:i})=>(s,o)=>i.call(s,o))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(i,s)=>{const o=Object.getOwnPropertyDescriptors(i),a={};forEach(o,(_,$)=>{let j;(j=s(_,$,i))!==!1&&(a[$]=j||_)}),Object.defineProperties(i,a)},freezeMethods=i=>{reduceDescriptors(i,(s,o)=>{if(isFunction$1(i)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const a=i[o];if(isFunction$1(a)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet=(i,s)=>{const o={},a=_=>{_.forEach($=>{o[$]=!0})};return isArray$1(i)?a(i):a(String(i).split(s)),o},noop=()=>{},toFiniteNumber=(i,s)=>i!=null&&Number.isFinite(i=+i)?i:s;function isSpecCompliantForm(i){return!!(i&&isFunction$1(i.append)&&i[toStringTag]==="FormData"&&i[iterator])}const toJSONObject=i=>{const s=new Array(10),o=(a,_)=>{if(isObject$1(a)){if(s.indexOf(a)>=0)return;if(!("toJSON"in a)){s[_]=a;const $=isArray$1(a)?[]:{};return forEach(a,(j,_e)=>{const et=o(j,_+1);!isUndefined$1(et)&&($[_e]=et)}),s[_]=void 0,$}}return a};return o(i,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=i=>i&&(isObject$1(i)||isFunction$1(i))&&isFunction$1(i.then)&&isFunction$1(i.catch),_setImmediate=((i,s)=>i?setImmediate:s?((o,a)=>(_global.addEventListener("message",({source:_,data:$})=>{_===_global&&$===o&&a.length&&a.shift()()},!1),_=>{a.push(_),_global.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=i=>i!=null&&isFunction$1(i[iterator]),utils$1={isArray:isArray$1,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isBoolean,isObject:isObject$1,isPlainObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined:isUndefined$1,isDate:isDate$1,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend:extend$1,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(i,s,o,a,_){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),a&&(this.request=a),_&&(this.response=_,this.status=_.status?_.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{descriptors[i]={value:i}});Object.defineProperties(AxiosError$1,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError$1.from=(i,s,o,a,_,$)=>{const j=Object.create(prototype$1);return utils$1.toFlatObject(i,j,function(et){return et!==Error.prototype},_e=>_e!=="isAxiosError"),AxiosError$1.call(j,i.message,s,o,a,_),j.cause=i,j.name=i.name,$&&Object.assign(j,$),j};const httpAdapter=null;function isVisitable(i){return utils$1.isPlainObject(i)||utils$1.isArray(i)}function removeBrackets(i){return utils$1.endsWith(i,"[]")?i.slice(0,-2):i}function renderKey(i,s,o){return i?i.concat(s).map(function(_,$){return _=removeBrackets(_),!o&&$?"["+_+"]":_}).join(o?".":""):s}function isFlatArray(i){return utils$1.isArray(i)&&!i.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function(s){return/^is[A-Z]/.test(s)});function toFormData$1(i,s,o){if(!utils$1.isObject(i))throw new TypeError("target must be an object");s=s||new FormData,o=utils$1.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(st,dt){return!utils$1.isUndefined(dt[st])});const a=o.metaTokens,_=o.visitor||rt,$=o.dots,j=o.indexes,et=(o.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(s);if(!utils$1.isFunction(_))throw new TypeError("visitor must be a function");function tt(ct){if(ct===null)return"";if(utils$1.isDate(ct))return ct.toISOString();if(!et&&utils$1.isBlob(ct))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(ct)||utils$1.isTypedArray(ct)?et&&typeof Blob=="function"?new Blob([ct]):Buffer.from(ct):ct}function rt(ct,st,dt){let ot=ct;if(ct&&!dt&&typeof ct=="object"){if(utils$1.endsWith(st,"{}"))st=a?st:st.slice(0,-2),ct=JSON.stringify(ct);else if(utils$1.isArray(ct)&&isFlatArray(ct)||(utils$1.isFileList(ct)||utils$1.endsWith(st,"[]"))&&(ot=utils$1.toArray(ct)))return st=removeBrackets(st),ot.forEach(function(at,ft){!(utils$1.isUndefined(at)||at===null)&&s.append(j===!0?renderKey([st],ft,$):j===null?st:st+"[]",tt(at))}),!1}return isVisitable(ct)?!0:(s.append(renderKey(dt,st,$),tt(ct)),!1)}const it=[],nt=Object.assign(predicates,{defaultVisitor:rt,convertValue:tt,isVisitable});function ut(ct,st){if(!utils$1.isUndefined(ct)){if(it.indexOf(ct)!==-1)throw Error("Circular reference detected in "+st.join("."));it.push(ct),utils$1.forEach(ct,function(ot,lt){(!(utils$1.isUndefined(ot)||ot===null)&&_.call(s,ot,utils$1.isString(lt)?lt.trim():lt,st,nt))===!0&&ut(ot,st?st.concat(lt):[lt])}),it.pop()}}if(!utils$1.isObject(i))throw new TypeError("data must be an object");return ut(i),s}function encode$1(i){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(a){return s[a]})}function AxiosURLSearchParams(i,s){this._pairs=[],i&&toFormData$1(i,this,s)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(s,o){this._pairs.push([s,o])};prototype.toString=function(s){const o=s?function(a){return s.call(this,a,encode$1)}:encode$1;return this._pairs.map(function(_){return o(_[0])+"="+o(_[1])},"").join("&")};function encode(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(i,s,o){if(!s)return i;const a=o&&o.encode||encode;utils$1.isFunction(o)&&(o={serialize:o});const _=o&&o.serialize;let $;if(_?$=_(s,o):$=utils$1.isURLSearchParams(s)?s.toString():new AxiosURLSearchParams(s,o).toString(a),$){const j=i.indexOf("#");j!==-1&&(i=i.slice(0,j)),i+=(i.indexOf("?")===-1?"?":"&")+$}return i}class InterceptorManager{constructor(){this.handlers=[]}use(s,o,a){return this.handlers.push({fulfilled:s,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){utils$1.forEach(this.handlers,function(a){a!==null&&s(a)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(i,s){return toFormData$1(i,new platform.classes.URLSearchParams,Object.assign({visitor:function(o,a,_,$){return platform.isNode&&utils$1.isBuffer(o)?(this.append(a,o.toString("base64")),!1):$.defaultVisitor.apply(this,arguments)}},s))}function parsePropPath(i){return utils$1.matchAll(/\w+|\[(\w*)]/g,i).map(s=>s[0]==="[]"?"":s[1]||s[0])}function arrayToObject(i){const s={},o=Object.keys(i);let a;const _=o.length;let $;for(a=0;a<_;a++)$=o[a],s[$]=i[$];return s}function formDataToJSON(i){function s(o,a,_,$){let j=o[$++];if(j==="__proto__")return!0;const _e=Number.isFinite(+j),et=$>=o.length;return j=!j&&utils$1.isArray(_)?_.length:j,et?(utils$1.hasOwnProp(_,j)?_[j]=[_[j],a]:_[j]=a,!_e):((!_[j]||!utils$1.isObject(_[j]))&&(_[j]=[]),s(o,a,_[j],$)&&utils$1.isArray(_[j])&&(_[j]=arrayToObject(_[j])),!_e)}if(utils$1.isFormData(i)&&utils$1.isFunction(i.entries)){const o={};return utils$1.forEachEntry(i,(a,_)=>{s(parsePropPath(a),_,o,0)}),o}return null}function stringifySafely(i,s,o){if(utils$1.isString(i))try{return(s||JSON.parse)(i),utils$1.trim(i)}catch(a){if(a.name!=="SyntaxError")throw a}return(o||JSON.stringify)(i)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function(s,o){const a=o.getContentType()||"",_=a.indexOf("application/json")>-1,$=utils$1.isObject(s);if($&&utils$1.isHTMLForm(s)&&(s=new FormData(s)),utils$1.isFormData(s))return _?JSON.stringify(formDataToJSON(s)):s;if(utils$1.isArrayBuffer(s)||utils$1.isBuffer(s)||utils$1.isStream(s)||utils$1.isFile(s)||utils$1.isBlob(s)||utils$1.isReadableStream(s))return s;if(utils$1.isArrayBufferView(s))return s.buffer;if(utils$1.isURLSearchParams(s))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let _e;if($){if(a.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(s,this.formSerializer).toString();if((_e=utils$1.isFileList(s))||a.indexOf("multipart/form-data")>-1){const et=this.env&&this.env.FormData;return toFormData$1(_e?{"files[]":s}:s,et&&new et,this.formSerializer)}}return $||_?(o.setContentType("application/json",!1),stringifySafely(s)):s}],transformResponse:[function(s){const o=this.transitional||defaults$1.transitional,a=o&&o.forcedJSONParsing,_=this.responseType==="json";if(utils$1.isResponse(s)||utils$1.isReadableStream(s))return s;if(s&&utils$1.isString(s)&&(a&&!this.responseType||_)){const j=!(o&&o.silentJSONParsing)&&_;try{return JSON.parse(s)}catch(_e){if(j)throw _e.name==="SyntaxError"?AxiosError$1.from(_e,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):_e}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],i=>{defaults$1.headers[i]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=i=>{const s={};let o,a,_;return i&&i.split(`
`).forEach(function(j){_=j.indexOf(":"),o=j.substring(0,_).trim().toLowerCase(),a=j.substring(_+1).trim(),!(!o||s[o]&&ignoreDuplicateOf[o])&&(o==="set-cookie"?s[o]?s[o].push(a):s[o]=[a]:s[o]=s[o]?s[o]+", "+a:a)}),s},$internals=Symbol("internals");function normalizeHeader(i){return i&&String(i).trim().toLowerCase()}function normalizeValue(i){return i===!1||i==null?i:utils$1.isArray(i)?i.map(normalizeValue):String(i)}function parseTokens(i){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=o.exec(i);)s[a[1]]=a[2];return s}const isValidHeaderName=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function matchHeaderValue(i,s,o,a,_){if(utils$1.isFunction(a))return a.call(this,s,o);if(_&&(s=o),!!utils$1.isString(s)){if(utils$1.isString(a))return s.indexOf(a)!==-1;if(utils$1.isRegExp(a))return a.test(s)}}function formatHeader(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,a)=>o.toUpperCase()+a)}function buildAccessors(i,s){const o=utils$1.toCamelCase(" "+s);["get","set","has"].forEach(a=>{Object.defineProperty(i,a+o,{value:function(_,$,j){return this[a].call(this,s,_,$,j)},configurable:!0})})}let AxiosHeaders$1=class{constructor(s){s&&this.set(s)}set(s,o,a){const _=this;function $(_e,et,tt){const rt=normalizeHeader(et);if(!rt)throw new Error("header name must be a non-empty string");const it=utils$1.findKey(_,rt);(!it||_[it]===void 0||tt===!0||tt===void 0&&_[it]!==!1)&&(_[it||et]=normalizeValue(_e))}const j=(_e,et)=>utils$1.forEach(_e,(tt,rt)=>$(tt,rt,et));if(utils$1.isPlainObject(s)||s instanceof this.constructor)j(s,o);else if(utils$1.isString(s)&&(s=s.trim())&&!isValidHeaderName(s))j(parseHeaders(s),o);else if(utils$1.isObject(s)&&utils$1.isIterable(s)){let _e={},et,tt;for(const rt of s){if(!utils$1.isArray(rt))throw TypeError("Object iterator must return a key-value pair");_e[tt=rt[0]]=(et=_e[tt])?utils$1.isArray(et)?[...et,rt[1]]:[et,rt[1]]:rt[1]}j(_e,o)}else s!=null&&$(o,s,a);return this}get(s,o){if(s=normalizeHeader(s),s){const a=utils$1.findKey(this,s);if(a){const _=this[a];if(!o)return _;if(o===!0)return parseTokens(_);if(utils$1.isFunction(o))return o.call(this,_,a);if(utils$1.isRegExp(o))return o.exec(_);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=normalizeHeader(s),s){const a=utils$1.findKey(this,s);return!!(a&&this[a]!==void 0&&(!o||matchHeaderValue(this,this[a],a,o)))}return!1}delete(s,o){const a=this;let _=!1;function $(j){if(j=normalizeHeader(j),j){const _e=utils$1.findKey(a,j);_e&&(!o||matchHeaderValue(a,a[_e],_e,o))&&(delete a[_e],_=!0)}}return utils$1.isArray(s)?s.forEach($):$(s),_}clear(s){const o=Object.keys(this);let a=o.length,_=!1;for(;a--;){const $=o[a];(!s||matchHeaderValue(this,this[$],$,s,!0))&&(delete this[$],_=!0)}return _}normalize(s){const o=this,a={};return utils$1.forEach(this,(_,$)=>{const j=utils$1.findKey(a,$);if(j){o[j]=normalizeValue(_),delete o[$];return}const _e=s?formatHeader($):String($).trim();_e!==$&&delete o[$],o[_e]=normalizeValue(_),a[_e]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return utils$1.forEach(this,(a,_)=>{a!=null&&a!==!1&&(o[_]=s&&utils$1.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const a=new this(s);return o.forEach(_=>a.set(_)),a}static accessor(s){const a=(this[$internals]=this[$internals]={accessors:{}}).accessors,_=this.prototype;function $(j){const _e=normalizeHeader(j);a[_e]||(buildAccessors(_,j),a[_e]=!0)}return utils$1.isArray(s)?s.forEach($):$(s),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:i},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>i,set(a){this[o]=a}}});utils$1.freezeMethods(AxiosHeaders$1);function transformData(i,s){const o=this||defaults$1,a=s||o,_=AxiosHeaders$1.from(a.headers);let $=a.data;return utils$1.forEach(i,function(_e){$=_e.call(o,$,_.normalize(),s?s.status:void 0)}),_.normalize(),$}function isCancel$1(i){return!!(i&&i.__CANCEL__)}function CanceledError$1(i,s,o){AxiosError$1.call(this,i??"canceled",AxiosError$1.ERR_CANCELED,s,o),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(i,s,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?i(o):s(new AxiosError$1("Request failed with status code "+o.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function parseProtocol(i){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return s&&s[1]||""}function speedometer(i,s){i=i||10;const o=new Array(i),a=new Array(i);let _=0,$=0,j;return s=s!==void 0?s:1e3,function(et){const tt=Date.now(),rt=a[$];j||(j=tt),o[_]=et,a[_]=tt;let it=$,nt=0;for(;it!==_;)nt+=o[it++],it=it%i;if(_=(_+1)%i,_===$&&($=($+1)%i),tt-j<s)return;const ut=rt&&tt-rt;return ut?Math.round(nt*1e3/ut):void 0}}function throttle(i,s){let o=0,a=1e3/s,_,$;const j=(tt,rt=Date.now())=>{o=rt,_=null,$&&(clearTimeout($),$=null),i.apply(null,tt)};return[(...tt)=>{const rt=Date.now(),it=rt-o;it>=a?j(tt,rt):(_=tt,$||($=setTimeout(()=>{$=null,j(_)},a-it)))},()=>_&&j(_)]}const progressEventReducer=(i,s,o=3)=>{let a=0;const _=speedometer(50,250);return throttle($=>{const j=$.loaded,_e=$.lengthComputable?$.total:void 0,et=j-a,tt=_(et),rt=j<=_e;a=j;const it={loaded:j,total:_e,progress:_e?j/_e:void 0,bytes:et,rate:tt||void 0,estimated:tt&&_e&&rt?(_e-j)/tt:void 0,event:$,lengthComputable:_e!=null,[s?"download":"upload"]:!0};i(it)},o)},progressEventDecorator=(i,s)=>{const o=i!=null;return[a=>s[0]({lengthComputable:o,total:i,loaded:a}),s[1]]},asyncDecorator=i=>(...s)=>utils$1.asap(()=>i(...s)),isURLSameOrigin=platform.hasStandardBrowserEnv?((i,s)=>o=>(o=new URL(o,platform.origin),i.protocol===o.protocol&&i.host===o.host&&(s||i.port===o.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(i,s,o,a,_,$){const j=[i+"="+encodeURIComponent(s)];utils$1.isNumber(o)&&j.push("expires="+new Date(o).toGMTString()),utils$1.isString(a)&&j.push("path="+a),utils$1.isString(_)&&j.push("domain="+_),$===!0&&j.push("secure"),document.cookie=j.join("; ")},read(i){const s=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(i){this.write(i,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function combineURLs(i,s){return s?i.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):i}function buildFullPath(i,s,o){let a=!isAbsoluteURL(s);return i&&(a||o==!1)?combineURLs(i,s):s}const headersToObject=i=>i instanceof AxiosHeaders$1?{...i}:i;function mergeConfig$1(i,s){s=s||{};const o={};function a(tt,rt,it,nt){return utils$1.isPlainObject(tt)&&utils$1.isPlainObject(rt)?utils$1.merge.call({caseless:nt},tt,rt):utils$1.isPlainObject(rt)?utils$1.merge({},rt):utils$1.isArray(rt)?rt.slice():rt}function _(tt,rt,it,nt){if(utils$1.isUndefined(rt)){if(!utils$1.isUndefined(tt))return a(void 0,tt,it,nt)}else return a(tt,rt,it,nt)}function $(tt,rt){if(!utils$1.isUndefined(rt))return a(void 0,rt)}function j(tt,rt){if(utils$1.isUndefined(rt)){if(!utils$1.isUndefined(tt))return a(void 0,tt)}else return a(void 0,rt)}function _e(tt,rt,it){if(it in s)return a(tt,rt);if(it in i)return a(void 0,tt)}const et={url:$,method:$,data:$,baseURL:j,transformRequest:j,transformResponse:j,paramsSerializer:j,timeout:j,timeoutMessage:j,withCredentials:j,withXSRFToken:j,adapter:j,responseType:j,xsrfCookieName:j,xsrfHeaderName:j,onUploadProgress:j,onDownloadProgress:j,decompress:j,maxContentLength:j,maxBodyLength:j,beforeRedirect:j,transport:j,httpAgent:j,httpsAgent:j,cancelToken:j,socketPath:j,responseEncoding:j,validateStatus:_e,headers:(tt,rt,it)=>_(headersToObject(tt),headersToObject(rt),it,!0)};return utils$1.forEach(Object.keys(Object.assign({},i,s)),function(rt){const it=et[rt]||_,nt=it(i[rt],s[rt],rt);utils$1.isUndefined(nt)&&it!==_e||(o[rt]=nt)}),o}const resolveConfig=i=>{const s=mergeConfig$1({},i);let{data:o,withXSRFToken:a,xsrfHeaderName:_,xsrfCookieName:$,headers:j,auth:_e}=s;s.headers=j=AxiosHeaders$1.from(j),s.url=buildURL(buildFullPath(s.baseURL,s.url,s.allowAbsoluteUrls),i.params,i.paramsSerializer),_e&&j.set("Authorization","Basic "+btoa((_e.username||"")+":"+(_e.password?unescape(encodeURIComponent(_e.password)):"")));let et;if(utils$1.isFormData(o)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)j.setContentType(void 0);else if((et=j.getContentType())!==!1){const[tt,...rt]=et?et.split(";").map(it=>it.trim()).filter(Boolean):[];j.setContentType([tt||"multipart/form-data",...rt].join("; "))}}if(platform.hasStandardBrowserEnv&&(a&&utils$1.isFunction(a)&&(a=a(s)),a||a!==!1&&isURLSameOrigin(s.url))){const tt=_&&$&&cookies.read($);tt&&j.set(_,tt)}return s},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(i){return new Promise(function(o,a){const _=resolveConfig(i);let $=_.data;const j=AxiosHeaders$1.from(_.headers).normalize();let{responseType:_e,onUploadProgress:et,onDownloadProgress:tt}=_,rt,it,nt,ut,ct;function st(){ut&&ut(),ct&&ct(),_.cancelToken&&_.cancelToken.unsubscribe(rt),_.signal&&_.signal.removeEventListener("abort",rt)}let dt=new XMLHttpRequest;dt.open(_.method.toUpperCase(),_.url,!0),dt.timeout=_.timeout;function ot(){if(!dt)return;const at=AxiosHeaders$1.from("getAllResponseHeaders"in dt&&dt.getAllResponseHeaders()),ht={data:!_e||_e==="text"||_e==="json"?dt.responseText:dt.response,status:dt.status,statusText:dt.statusText,headers:at,config:i,request:dt};settle(function(gt){o(gt),st()},function(gt){a(gt),st()},ht),dt=null}"onloadend"in dt?dt.onloadend=ot:dt.onreadystatechange=function(){!dt||dt.readyState!==4||dt.status===0&&!(dt.responseURL&&dt.responseURL.indexOf("file:")===0)||setTimeout(ot)},dt.onabort=function(){dt&&(a(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,i,dt)),dt=null)},dt.onerror=function(){a(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,i,dt)),dt=null},dt.ontimeout=function(){let ft=_.timeout?"timeout of "+_.timeout+"ms exceeded":"timeout exceeded";const ht=_.transitional||transitionalDefaults;_.timeoutErrorMessage&&(ft=_.timeoutErrorMessage),a(new AxiosError$1(ft,ht.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,i,dt)),dt=null},$===void 0&&j.setContentType(null),"setRequestHeader"in dt&&utils$1.forEach(j.toJSON(),function(ft,ht){dt.setRequestHeader(ht,ft)}),utils$1.isUndefined(_.withCredentials)||(dt.withCredentials=!!_.withCredentials),_e&&_e!=="json"&&(dt.responseType=_.responseType),tt&&([nt,ct]=progressEventReducer(tt,!0),dt.addEventListener("progress",nt)),et&&dt.upload&&([it,ut]=progressEventReducer(et),dt.upload.addEventListener("progress",it),dt.upload.addEventListener("loadend",ut)),(_.cancelToken||_.signal)&&(rt=at=>{dt&&(a(!at||at.type?new CanceledError$1(null,i,dt):at),dt.abort(),dt=null)},_.cancelToken&&_.cancelToken.subscribe(rt),_.signal&&(_.signal.aborted?rt():_.signal.addEventListener("abort",rt)));const lt=parseProtocol(_.url);if(lt&&platform.protocols.indexOf(lt)===-1){a(new AxiosError$1("Unsupported protocol "+lt+":",AxiosError$1.ERR_BAD_REQUEST,i));return}dt.send($||null)})},composeSignals=(i,s)=>{const{length:o}=i=i?i.filter(Boolean):[];if(s||o){let a=new AbortController,_;const $=function(tt){if(!_){_=!0,_e();const rt=tt instanceof Error?tt:this.reason;a.abort(rt instanceof AxiosError$1?rt:new CanceledError$1(rt instanceof Error?rt.message:rt))}};let j=s&&setTimeout(()=>{j=null,$(new AxiosError$1(`timeout ${s} of ms exceeded`,AxiosError$1.ETIMEDOUT))},s);const _e=()=>{i&&(j&&clearTimeout(j),j=null,i.forEach(tt=>{tt.unsubscribe?tt.unsubscribe($):tt.removeEventListener("abort",$)}),i=null)};i.forEach(tt=>tt.addEventListener("abort",$));const{signal:et}=a;return et.unsubscribe=()=>utils$1.asap(_e),et}},streamChunk=function*(i,s){let o=i.byteLength;if(o<s){yield i;return}let a=0,_;for(;a<o;)_=a+s,yield i.slice(a,_),a=_},readBytes=async function*(i,s){for await(const o of readStream(i))yield*streamChunk(o,s)},readStream=async function*(i){if(i[Symbol.asyncIterator]){yield*i;return}const s=i.getReader();try{for(;;){const{done:o,value:a}=await s.read();if(o)break;yield a}}finally{await s.cancel()}},trackStream=(i,s,o,a)=>{const _=readBytes(i,s);let $=0,j,_e=et=>{j||(j=!0,a&&a(et))};return new ReadableStream({async pull(et){try{const{done:tt,value:rt}=await _.next();if(tt){_e(),et.close();return}let it=rt.byteLength;if(o){let nt=$+=it;o(nt)}et.enqueue(new Uint8Array(rt))}catch(tt){throw _e(tt),tt}},cancel(et){return _e(et),_.return()}},{highWaterMark:2})},isFetchSupported=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",isReadableStreamSupported=isFetchSupported&&typeof ReadableStream=="function",encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(i=>s=>i.encode(s))(new TextEncoder):async i=>new Uint8Array(await new Response(i).arrayBuffer())),test=(i,...s)=>{try{return!!i(...s)}catch{return!1}},supportsRequestStream=isReadableStreamSupported&&test(()=>{let i=!1;const s=new Request(platform.origin,{body:new ReadableStream,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!s}),DEFAULT_CHUNK_SIZE=64*1024,supportsResponseStream=isReadableStreamSupported&&test(()=>utils$1.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(i=>i.body)};isFetchSupported&&(i=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!resolvers[s]&&(resolvers[s]=utils$1.isFunction(i[s])?o=>o[s]():(o,a)=>{throw new AxiosError$1(`Response type '${s}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,a)})})})(new Response);const getBodyLength=async i=>{if(i==null)return 0;if(utils$1.isBlob(i))return i.size;if(utils$1.isSpecCompliantForm(i))return(await new Request(platform.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(i)||utils$1.isArrayBuffer(i))return i.byteLength;if(utils$1.isURLSearchParams(i)&&(i=i+""),utils$1.isString(i))return(await encodeText(i)).byteLength},resolveBodyLength=async(i,s)=>{const o=utils$1.toFiniteNumber(i.getContentLength());return o??getBodyLength(s)},fetchAdapter=isFetchSupported&&(async i=>{let{url:s,method:o,data:a,signal:_,cancelToken:$,timeout:j,onDownloadProgress:_e,onUploadProgress:et,responseType:tt,headers:rt,withCredentials:it="same-origin",fetchOptions:nt}=resolveConfig(i);tt=tt?(tt+"").toLowerCase():"text";let ut=composeSignals([_,$&&$.toAbortSignal()],j),ct;const st=ut&&ut.unsubscribe&&(()=>{ut.unsubscribe()});let dt;try{if(et&&supportsRequestStream&&o!=="get"&&o!=="head"&&(dt=await resolveBodyLength(rt,a))!==0){let ht=new Request(s,{method:"POST",body:a,duplex:"half"}),mt;if(utils$1.isFormData(a)&&(mt=ht.headers.get("content-type"))&&rt.setContentType(mt),ht.body){const[gt,vt]=progressEventDecorator(dt,progressEventReducer(asyncDecorator(et)));a=trackStream(ht.body,DEFAULT_CHUNK_SIZE,gt,vt)}}utils$1.isString(it)||(it=it?"include":"omit");const ot="credentials"in Request.prototype;ct=new Request(s,{...nt,signal:ut,method:o.toUpperCase(),headers:rt.normalize().toJSON(),body:a,duplex:"half",credentials:ot?it:void 0});let lt=await fetch(ct);const at=supportsResponseStream&&(tt==="stream"||tt==="response");if(supportsResponseStream&&(_e||at&&st)){const ht={};["status","statusText","headers"].forEach(St=>{ht[St]=lt[St]});const mt=utils$1.toFiniteNumber(lt.headers.get("content-length")),[gt,vt]=_e&&progressEventDecorator(mt,progressEventReducer(asyncDecorator(_e),!0))||[];lt=new Response(trackStream(lt.body,DEFAULT_CHUNK_SIZE,gt,()=>{vt&&vt(),st&&st()}),ht)}tt=tt||"text";let ft=await resolvers[utils$1.findKey(resolvers,tt)||"text"](lt,i);return!at&&st&&st(),await new Promise((ht,mt)=>{settle(ht,mt,{data:ft,headers:AxiosHeaders$1.from(lt.headers),status:lt.status,statusText:lt.statusText,config:i,request:ct})})}catch(ot){throw st&&st(),ot&&ot.name==="TypeError"&&/Load failed|fetch/i.test(ot.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,i,ct),{cause:ot.cause||ot}):AxiosError$1.from(ot,ot&&ot.code,i,ct)}}),knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:fetchAdapter};utils$1.forEach(knownAdapters,(i,s)=>{if(i){try{Object.defineProperty(i,"name",{value:s})}catch{}Object.defineProperty(i,"adapterName",{value:s})}});const renderReason=i=>`- ${i}`,isResolvedHandle=i=>utils$1.isFunction(i)||i===null||i===!1,adapters={getAdapter:i=>{i=utils$1.isArray(i)?i:[i];const{length:s}=i;let o,a;const _={};for(let $=0;$<s;$++){o=i[$];let j;if(a=o,!isResolvedHandle(o)&&(a=knownAdapters[(j=String(o)).toLowerCase()],a===void 0))throw new AxiosError$1(`Unknown adapter '${j}'`);if(a)break;_[j||"#"+$]=a}if(!a){const $=Object.entries(_).map(([_e,et])=>`adapter ${_e} `+(et===!1?"is not supported by the environment":"is not available in the build"));let j=s?$.length>1?`since :
`+$.map(renderReason).join(`
`):" "+renderReason($[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+j,"ERR_NOT_SUPPORT")}return a},adapters:knownAdapters};function throwIfCancellationRequested(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new CanceledError$1(null,i)}function dispatchRequest(i){return throwIfCancellationRequested(i),i.headers=AxiosHeaders$1.from(i.headers),i.data=transformData.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(i.adapter||defaults$1.adapter)(i).then(function(a){return throwIfCancellationRequested(i),a.data=transformData.call(i,i.transformResponse,a),a.headers=AxiosHeaders$1.from(a.headers),a},function(a){return isCancel$1(a)||(throwIfCancellationRequested(i),a&&a.response&&(a.response.data=transformData.call(i,i.transformResponse,a.response),a.response.headers=AxiosHeaders$1.from(a.response.headers))),Promise.reject(a)})}const VERSION$1="1.9.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((i,s)=>{validators$1[i]=function(a){return typeof a===i||"a"+(s<1?"n ":" ")+i}});const deprecatedWarnings={};validators$1.transitional=function(s,o,a){function _($,j){return"[Axios v"+VERSION$1+"] Transitional option '"+$+"'"+j+(a?". "+a:"")}return($,j,_e)=>{if(s===!1)throw new AxiosError$1(_(j," has been removed"+(o?" in "+o:"")),AxiosError$1.ERR_DEPRECATED);return o&&!deprecatedWarnings[j]&&(deprecatedWarnings[j]=!0,console.warn(_(j," has been deprecated since v"+o+" and will be removed in the near future"))),s?s($,j,_e):!0}};validators$1.spelling=function(s){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${s}`),!0)};function assertOptions(i,s,o){if(typeof i!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const a=Object.keys(i);let _=a.length;for(;_-- >0;){const $=a[_],j=s[$];if(j){const _e=i[$],et=_e===void 0||j(_e,$,i);if(et!==!0)throw new AxiosError$1("option "+$+" must be "+et,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new AxiosError$1("Unknown option "+$,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(s){this.defaults=s||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(s,o){try{return await this._request(s,o)}catch(a){if(a instanceof Error){let _={};Error.captureStackTrace?Error.captureStackTrace(_):_=new Error;const $=_.stack?_.stack.replace(/^.+\n/,""):"";try{a.stack?$&&!String(a.stack).endsWith($.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+$):a.stack=$}catch{}}throw a}}_request(s,o){typeof s=="string"?(o=o||{},o.url=s):o=s||{},o=mergeConfig$1(this.defaults,o);const{transitional:a,paramsSerializer:_,headers:$}=o;a!==void 0&&validator.assertOptions(a,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),_!=null&&(utils$1.isFunction(_)?o.paramsSerializer={serialize:_}:validator.assertOptions(_,{encode:validators.function,serialize:validators.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),validator.assertOptions(o,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let j=$&&utils$1.merge($.common,$[o.method]);$&&utils$1.forEach(["delete","get","head","post","put","patch","common"],ct=>{delete $[ct]}),o.headers=AxiosHeaders$1.concat(j,$);const _e=[];let et=!0;this.interceptors.request.forEach(function(st){typeof st.runWhen=="function"&&st.runWhen(o)===!1||(et=et&&st.synchronous,_e.unshift(st.fulfilled,st.rejected))});const tt=[];this.interceptors.response.forEach(function(st){tt.push(st.fulfilled,st.rejected)});let rt,it=0,nt;if(!et){const ct=[dispatchRequest.bind(this),void 0];for(ct.unshift.apply(ct,_e),ct.push.apply(ct,tt),nt=ct.length,rt=Promise.resolve(o);it<nt;)rt=rt.then(ct[it++],ct[it++]);return rt}nt=_e.length;let ut=o;for(it=0;it<nt;){const ct=_e[it++],st=_e[it++];try{ut=ct(ut)}catch(dt){st.call(this,dt);break}}try{rt=dispatchRequest.call(this,ut)}catch(ct){return Promise.reject(ct)}for(it=0,nt=tt.length;it<nt;)rt=rt.then(tt[it++],tt[it++]);return rt}getUri(s){s=mergeConfig$1(this.defaults,s);const o=buildFullPath(s.baseURL,s.url,s.allowAbsoluteUrls);return buildURL(o,s.params,s.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function(s){Axios$1.prototype[s]=function(o,a){return this.request(mergeConfig$1(a||{},{method:s,url:o,data:(a||{}).data}))}});utils$1.forEach(["post","put","patch"],function(s){function o(a){return function($,j,_e){return this.request(mergeConfig$1(_e||{},{method:s,headers:a?{"Content-Type":"multipart/form-data"}:{},url:$,data:j}))}}Axios$1.prototype[s]=o(),Axios$1.prototype[s+"Form"]=o(!0)});let CancelToken$1=class Ys{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function($){o=$});const a=this;this.promise.then(_=>{if(!a._listeners)return;let $=a._listeners.length;for(;$-- >0;)a._listeners[$](_);a._listeners=null}),this.promise.then=_=>{let $;const j=new Promise(_e=>{a.subscribe(_e),$=_e}).then(_);return j.cancel=function(){a.unsubscribe($)},j},s(function($,j,_e){a.reason||(a.reason=new CanceledError$1($,j,_e),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const o=this._listeners.indexOf(s);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const s=new AbortController,o=a=>{s.abort(a)};return this.subscribe(o),s.signal.unsubscribe=()=>this.unsubscribe(o),s.signal}static source(){let s;return{token:new Ys(function(_){s=_}),cancel:s}}};function spread$1(i){return function(o){return i.apply(null,o)}}function isAxiosError$1(i){return utils$1.isObject(i)&&i.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode$1).forEach(([i,s])=>{HttpStatusCode$1[s]=i});function createInstance(i){const s=new Axios$1(i),o=bind(Axios$1.prototype.request,s);return utils$1.extend(o,Axios$1.prototype,s,{allOwnKeys:!0}),utils$1.extend(o,s,null,{allOwnKeys:!0}),o.create=function(_){return createInstance(mergeConfig$1(i,_))},o}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError$1;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel$1;axios.VERSION=VERSION$1;axios.toFormData=toFormData$1;axios.AxiosError=AxiosError$1;axios.Cancel=axios.CanceledError;axios.all=function(s){return Promise.all(s)};axios.spread=spread$1;axios.isAxiosError=isAxiosError$1;axios.mergeConfig=mergeConfig$1;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=i=>formDataToJSON(utils$1.isHTMLForm(i)?new FormData(i):i);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios;function GenerateToken(i){return`Bearer ${i}`}const apiAddress="https://medimeet.codeskitter.site",api=`${apiAddress}/api/v1`,handleSessionExpiration=i=>{if(i.response&&i.response.data&&i.response.data.response===401&&i.response.data.status===!1&&i.response.data.message==="Session expired. Please log in again.")return console.error(i.response.data.message),setTimeout(()=>{localStorage.removeItem("user"),window.location.href="/login"},2e3),{sessionExpired:!0,message:"Session expired. Please log-in again."};throw i},GET=async i=>{var s={method:"get",maxBodyLength:1/0,url:`${api}/${i}`};try{return(await axios(s)).data}catch(o){throw console.error(o),new Error(o)}},ADD=async(i,s,o)=>{var a={method:"post",maxBodyLength:1/0,url:`${api}/${s}`,headers:{Authorization:GenerateToken(i),"Content-Type":"multipart/form-data"},data:o};try{return(await axios(a)).data}catch(_){return console.error(_),handleSessionExpiration(_)}},UPDATE=async(i,s,o)=>{var a={method:"post",maxBodyLength:1/0,url:`${api}/${s}`,headers:{Authorization:GenerateToken(i),"Content-Type":"multipart/form-data"},data:o};try{return(await axios(a)).data}catch(_){return console.error(_),handleSessionExpiration(_)}},getData$3=async()=>(await GET("get_configurations")).data,useSettingsData=()=>{const{isLoading:i,data:s,error:o}=useQuery({queryKey:["settings"],queryFn:getData$3});return{settingsData:s,settingsLoading:i,settingsError:o}},imageBaseURL=`${apiAddress}/public/storage`,Logo=i=>{const{settingsData:s}=useSettingsData(),o=s==null?void 0:s.find(a=>a.id_name==="logo");return jsxRuntimeExports.jsx(Image$1,{w:12,src:`${imageBaseURL}/${o==null?void 0:o.value}`,alt:"Logo",...i})},SocialButton=({children:i,label:s,href:o})=>jsxRuntimeExports.jsxs(Link$1,{bg:useColorModeValue("blackAlpha.100","whiteAlpha.100"),rounded:"full",w:8,h:8,cursor:"pointer",as:"a",href:o,display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"background 0.3s ease",_hover:{bg:useColorModeValue("blackAlpha.200","whiteAlpha.200")},isExternal:!0,children:[jsxRuntimeExports.jsx(VisuallyHidden,{children:s}),i]}),getSocialMediaIcon=i=>{switch(i){case"facebook":return jsxRuntimeExports.jsx(FaFacebook,{});case"twitter":return jsxRuntimeExports.jsx(FaTwitter,{});case"instagram":return jsxRuntimeExports.jsx(FaInstagram,{});case"linkedin":return jsxRuntimeExports.jsx(FaLinkedin,{});case"github":return jsxRuntimeExports.jsx(FaGithub,{});case"youtube":return jsxRuntimeExports.jsx(FaYoutube,{});case"snapchat":return jsxRuntimeExports.jsx(FaSnapchat,{});case"twitch":return jsxRuntimeExports.jsx(FaTwitch,{});case"pinterest":return jsxRuntimeExports.jsx(FaPinterest,{});case"reddit":return jsxRuntimeExports.jsx(FaReddit,{});case"whatsapp":return jsxRuntimeExports.jsx(FaWhatsapp,{});case"discord":return jsxRuntimeExports.jsx(FaDiscord,{});case"medium":return jsxRuntimeExports.jsx(FaMedium,{});default:return null}},ListHeader=({children:i})=>jsxRuntimeExports.jsx(Text,{fontWeight:"500",fontSize:"lg",mb:2,children:i}),getData$2=async()=>(await GET("get_social_media")).data;function Footer(){const{data:i}=useQuery({queryKey:["social-media"],queryFn:getData$2}),{settingsData:s}=useSettingsData(),o=s==null?void 0:s.find($=>$.id_name==="play_store_link"),a=s==null?void 0:s.find($=>$.id_name==="app_store_link"),_=s==null?void 0:s.find($=>$.id_name==="clinic_name");return jsxRuntimeExports.jsxs(Box,{children:[" ",jsxRuntimeExports.jsx(Box,{mt:-10,bg:"primary.main",color:"#fff",borderTopRadius:{base:"30px",md:"100px"},children:jsxRuntimeExports.jsx(Container,{as:Stack,maxW:"6xl",py:10,children:jsxRuntimeExports.jsxs(SimpleGrid,{templateColumns:{sm:"1fr 1fr",md:"2fr 1fr 1fr 2fr"},spacing:8,mt:10,children:[jsxRuntimeExports.jsxs(Stack,{spacing:6,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",gap:2,children:[jsxRuntimeExports.jsx(Logo,{color:useColorModeValue("gray.700","white")}),jsxRuntimeExports.jsx(Text,{fontFamily:"Quicksand, sans-serif",fontWeight:800,fontSize:20,children:_.value})]}),jsxRuntimeExports.jsxs(Text,{fontSize:"sm",children:["© 2024 ",_.value,". All rights reserved"]}),jsxRuntimeExports.jsx(Stack,{direction:"row",spacing:6,children:i==null?void 0:i.map(($,j)=>jsxRuntimeExports.jsx(SocialButton,{label:$.title,href:$.url,children:getSocialMediaIcon($.title.toLowerCase())},j))}),jsxRuntimeExports.jsxs(Flex,{gap:5,justifyContent:"start",w:"100%",children:[jsxRuntimeExports.jsx(Link$1,{isExternal:!0,href:o.value,children:jsxRuntimeExports.jsx(Image$1,{src:"/play store.png",w:120})}),jsxRuntimeExports.jsx(Link$1,{isExternal:!0,href:a.value,children:jsxRuntimeExports.jsx(Image$1,{src:"/app store.png",w:120})})]})]}),jsxRuntimeExports.jsxs(Stack,{align:"flex-start",children:[jsxRuntimeExports.jsx(ListHeader,{children:"Hospital"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/about-us",children:"About us"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/departments",children:"Departments"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/doctors",children:"Doctors"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/contact-us",children:"Contact Us"})]}),jsxRuntimeExports.jsxs(Stack,{align:"flex-start",children:[jsxRuntimeExports.jsx(ListHeader,{children:"Support"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/terms-and-conditions",children:"Terms of Service"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/legal",children:"Legal"}),jsxRuntimeExports.jsx(Box,{as:Link,to:"/privacy-policy",children:"Privacy Policy"})]})]})})})]})}function Loading(){return jsxRuntimeExports.jsx(Box,{position:"fixed",top:0,left:0,width:"100%",height:"100%",bg:"gray.50",zIndex:9999,display:"flex",justifyContent:"center",alignItems:"center",children:jsxRuntimeExports.jsx(Flex,{w:"100%",h:"100%",align:"center",justify:"center",children:jsxRuntimeExports.jsxs(Flex,{flexDir:"column",align:"center",children:[jsxRuntimeExports.jsxs("div",{className:"loading",children:[jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{}),jsxRuntimeExports.jsx("span",{})]}),jsxRuntimeExports.jsx(Text,{letterSpacing:5,children:"PLEASE WAIT"})]})})})}function NotFoundPage(){return jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx("div",{className:"container",children:jsxRuntimeExports.jsxs(Box,{textAlign:"center",py:10,px:6,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minH:"100vh",bg:"gray.50",children:[jsxRuntimeExports.jsx(Image$1,{src:"/404.svg",alt:"Not Found",boxSize:{base:"200px",md:"300px"}}),jsxRuntimeExports.jsx(Heading,{as:"h1",size:{base:"xl",md:"2xl"},mt:6,mb:2,fontWeight:"bold",children:"Something is not right..."}),jsxRuntimeExports.jsx(Text,{color:"gray.500",fontSize:{base:"sm",md:"md"},children:"The page you are trying to access does not exist. You may have mistyped the URL or the page has been moved to another location. If you believe this is an error, please contact our support team. We apologize for any inconvenience caused and appreciate your understanding."}),jsxRuntimeExports.jsx(Button,{as:Link,to:"/",mt:6,colorScheme:"red",variant:"solid",size:"sm",children:"Get back to home page"})]})})})}function BsFillCameraVideoFill(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2z"},child:[]}]})(i)}function BsFillClipboardCheckFill(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.5 0A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0zm3 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5z"},child:[]},{tag:"path",attr:{d:"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1A2.5 2.5 0 0 1 9.5 5h-3A2.5 2.5 0 0 1 4 2.5zm6.854 7.354-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 .708-.708L7.5 10.793l2.646-2.647a.5.5 0 0 1 .708.708"},child:[]}]})(i)}function BsFillMenuButtonWideFill(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 0A1.5 1.5 0 0 0 0 1.5v2A1.5 1.5 0 0 0 1.5 5h13A1.5 1.5 0 0 0 16 3.5v-2A1.5 1.5 0 0 0 14.5 0zm1 2h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1m9.927.427A.25.25 0 0 1 12.604 2h.792a.25.25 0 0 1 .177.427l-.396.396a.25.25 0 0 1-.354 0zM0 8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm1 3v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2zm14-1V8a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2zM2 8.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5m0 4a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5"},child:[]}]})(i)}function BsFillTelephoneFill(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z"},child:[]}]})(i)}function BsEnvelope(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"},child:[]}]})(i)}function BsPersonAdd(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m.5-5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0m-2-6a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4"},child:[]},{tag:"path",attr:{d:"M8.256 14a4.5 4.5 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10q.39 0 .74.025c.226-.341.496-.65.804-.918Q8.844 9.002 8 9c-5 0-6 3-6 4s1 1 1 1z"},child:[]}]})(i)}function BsPerson(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"},child:[]}]})(i)}function BsPhone(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM5 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"},child:[]},{tag:"path",attr:{d:"M8 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},child:[]}]})(i)}function BsPrescription(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 6a.5.5 0 0 0-.5.5v4a.5.5 0 0 0 1 0V9h.293l2 2-1.147 1.146a.5.5 0 0 0 .708.708L9 11.707l1.146 1.147a.5.5 0 0 0 .708-.708L9.707 11l1.147-1.146a.5.5 0 0 0-.708-.708L9 10.293 7.695 8.987A1.5 1.5 0 0 0 7.5 6zM6 7h1.5a.5.5 0 0 1 0 1H6z"},child:[]},{tag:"path",attr:{d:"M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1v10.5a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 14.5V4a1 1 0 0 1-1-1zm2 3v10.5a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5V4zM3 3h10V1H3z"},child:[]}]})(i)}function BsStarFill(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"},child:[]}]})(i)}function BsStarHalf(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.354 5.119 7.538.792A.52.52 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.54.54 0 0 1 16 6.32a.55.55 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.5.5 0 0 1-.146.05c-.342.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.172-.403.6.6 0 0 1 .085-.302.51.51 0 0 1 .37-.245zM8 12.027a.5.5 0 0 1 .232.056l3.686 1.894-.694-3.957a.56.56 0 0 1 .162-.505l2.907-2.77-4.052-.576a.53.53 0 0 1-.393-.288L8.001 2.223 8 2.226z"},child:[]}]})(i)}function BsStar(i){return GenIcon({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.56.56 0 0 0-.163-.505L1.71 6.745l4.052-.576a.53.53 0 0 0 .393-.288L8 2.223l1.847 3.658a.53.53 0 0 0 .393.288l4.052.575-2.906 2.77a.56.56 0 0 0-.163.506l.694 3.957-3.686-1.894a.5.5 0 0 0-.461 0z"},child:[]}]})(i)}function CgFileDocument(i){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M7 18H17V16H7V18Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M17 14H7V12H17V14Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M7 10H11V8H7V10Z",fill:"currentColor"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M6 2C4.34315 2 3 3.34315 3 5V19C3 20.6569 4.34315 22 6 22H18C19.6569 22 21 20.6569 21 19V9C21 5.13401 17.866 2 14 2H6ZM6 4H13V9H19V19C19 19.5523 18.5523 20 18 20H6C5.44772 20 5 19.5523 5 19V5C5 4.44772 5.44772 4 6 4ZM15 4.10002C16.6113 4.4271 17.9413 5.52906 18.584 7H15V4.10002Z",fill:"currentColor"},child:[]}]})(i)}function MdBloodtype(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 2c-5.33 4.55-8 8.48-8 11.8 0 4.98 3.8 8.2 8 8.2s8-3.22 8-8.2c0-3.32-2.67-7.25-8-11.8zm3 16H9v-2h6v2zm0-5h-2v2h-2v-2H9v-2h2V9h2v2h2v2z"},child:[]}]})(i)}function MdFamilyRestroom(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm4 18v-6h2.5l-2.54-7.63A2.01 2.01 0 0 0 18.06 7h-.12a2 2 0 0 0-1.9 1.37l-.86 2.58c1.08.6 1.82 1.73 1.82 3.05v8h3zm-7.5-10.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5S11 9.17 11 10s.67 1.5 1.5 1.5zM5.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm2 16v-7H9V9c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v6h1.5v7h4zm6.5 0v-4h1v-4c0-.82-.68-1.5-1.5-1.5h-2c-.82 0-1.5.68-1.5 1.5v4h1v4h3z"},child:[]}]})(i)}function MdHandshake(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16.48 10.41c-.39.39-1.04.39-1.43 0l-4.47-4.46-7.05 7.04-.66-.63a3 3 0 0 1 0-4.24l4.24-4.24a3 3 0 0 1 4.24 0L16.48 9c.39.39.39 1.02 0 1.41zm.7-2.12c.78.78.78 2.05 0 2.83-1.27 1.27-2.61.22-2.83 0l-3.76-3.76-5.57 5.57a.996.996 0 0 0 0 1.41c.39.39 1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62a.996.996 0 0 0 0 1.41c.39.39 1.02.39 1.42 0l4.62-4.62.71.71-4.62 4.62a.996.996 0 1 0 1.41 1.41l4.62-4.62.71.71-4.62 4.62a.996.996 0 1 0 1.41 1.41l8.32-8.34a3 3 0 0 0 0-4.24l-4.24-4.24a3.001 3.001 0 0 0-4.18-.06l4.47 4.47z"},child:[]}]})(i)}function MdHealthAndSafety(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10.5 13H8v-3h2.5V7.5h3V10H16v3h-2.5v2.5h-3V13zM12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5l-8-3z"},child:[]}]})(i)}function MdOutlineLogin(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"},child:[]}]})(i)}function AiFillBell(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"},child:[]}]})(i)}function AiFillCaretDown(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},child:[]}]})(i)}function AiFillCaretRight(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(i)}function AiFillEdit(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"},child:[]}]})(i)}function AiFillHome(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z"},child:[]}]})(i)}function AiFillInfoCircle(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(i)}function AiOutlineArrowLeft(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"},child:[]}]})(i)}function AiOutlineArrowRight(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z"},child:[]}]})(i)}function AiOutlineDownload(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"},child:[]}]})(i)}function AiOutlineHistory(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 0 0 3 14.1zm167.7 301.1l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 0 1-112.5 75.9 352.18 352.18 0 0 1-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 0 1-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 0 1 171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 0 1 112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 0 1 775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"},child:[]}]})(i)}function AiOutlineRight(i){return GenIcon({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"},child:[]}]})(i)}function HiUsers(i){return GenIcon({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9 6a3 3 0 11-6 0 3 3 0 016 0zM17 6a3 3 0 11-6 0 3 3 0 016 0zM12.93 17c.046-.327.07-.66.07-1a6.97 6.97 0 00-1.5-4.33A5 5 0 0119 16v1h-6.07zM6 11a5 5 0 015 5v1H1v-1a5 5 0 015-5z"},child:[]}]})(i)}function BiBell(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"},child:[]}]})(i)}function BiCalendar(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 11h2v2H7zm0 4h2v2H7zm4-4h2v2h-2zm0 4h2v2h-2zm4-4h2v2h-2zm0 4h2v2h-2z"},child:[]},{tag:"path",attr:{d:"M5 22h14c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2h-2V2h-2v2H9V2H7v2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2zM19 8l.001 12H5V8h14z"},child:[]}]})(i)}function BiCheckCircle(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"},child:[]},{tag:"path",attr:{d:"M9.999 13.587 7.7 11.292l-1.412 1.416 3.713 3.705 6.706-6.706-1.414-1.414z"},child:[]}]})(i)}function BiDonateHeart(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 21h9.62a3.995 3.995 0 0 0 3.037-1.397l5.102-5.952a1 1 0 0 0-.442-1.6l-1.968-.656a3.043 3.043 0 0 0-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 0 0 9.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 0 0 .442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 0 0 .11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 0 1-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 0 0 1.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0 0 16.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0 1 11.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 0 1 .701.292c.189.189.293.44.293.707z"},child:[]}]})(i)}function BiEdit(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m7 17.013 4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"},child:[]},{tag:"path",attr:{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"},child:[]}]})(i)}function BiLocationPlus(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.42 21.815a1.004 1.004 0 0 0 1.16 0C12.884 21.598 20.029 16.44 20 10c0-4.411-3.589-8-8-8S4 5.589 4 9.996c-.029 6.444 7.116 11.602 7.42 11.819zM12 4c3.309 0 6 2.691 6 6.004.021 4.438-4.388 8.423-6 9.731-1.611-1.308-6.021-5.293-6-9.735 0-3.309 2.691-6 6-6z"},child:[]},{tag:"path",attr:{d:"M11 14h2v-3h3V9h-3V6h-2v3H8v2h3z"},child:[]}]})(i)}function BiLogOut(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 13v-2H7V8l-5 4 5 4v-3z"},child:[]},{tag:"path",attr:{d:"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"},child:[]}]})(i)}function BiRightArrowCircle(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.999 1.993c-5.514.001-10 4.487-10 10.001s4.486 10 10.001 10c5.513 0 9.999-4.486 10-10 0-5.514-4.486-10-10.001-10.001zM12 19.994c-4.412 0-8.001-3.589-8.001-8s3.589-8 8-8.001C16.411 3.994 20 7.583 20 11.994c-.001 4.411-3.59 8-8 8z"},child:[]},{tag:"path",attr:{d:"M12 10.994H8v2h4V16l4.005-4.005L12 7.991z"},child:[]}]})(i)}function BiSearch(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"},child:[]}]})(i)}function BiTrash(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 20a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8h2V6h-4V4a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2H3v2h2zM9 4h6v2H9zM8 8h9v12H7V8z"},child:[]},{tag:"path",attr:{d:"M9 10h2v8H9zm4 0h2v8h-2z"},child:[]}]})(i)}function BiUser(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z"},child:[]}]})(i)}function BiWallet(i){return GenIcon({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 12h2v4h-2z"},child:[]},{tag:"path",attr:{d:"M20 7V5c0-1.103-.897-2-2-2H5C3.346 3 2 4.346 2 6v12c0 2.201 1.794 3 3 3h15c1.103 0 2-.897 2-2V9c0-1.103-.897-2-2-2zM5 5h13v2H5a1.001 1.001 0 0 1 0-2zm15 14H5.012C4.55 18.988 4 18.805 4 18V8.815c.314.113.647.185 1 .185h15v10z"},child:[]}]})(i)}function IoMdCall(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M426.666 330.667a250.385 250.385 0 0 1-75.729-11.729c-7.469-2.136-16-1.073-21.332 5.333l-46.939 46.928c-60.802-30.928-109.864-80-140.802-140.803l46.939-46.927c5.332-5.333 7.462-13.864 5.332-21.333-8.537-24.531-12.802-50.136-12.802-76.803C181.333 73.604 171.734 64 160 64H85.333C73.599 64 64 73.604 64 85.333 64 285.864 226.136 448 426.666 448c11.73 0 21.334-9.604 21.334-21.333V352c0-11.729-9.604-21.333-21.334-21.333z"},child:[]}]})(i)}function IoMdPeople(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M337.454 232c33.599 0 61.092-27.002 61.092-60 0-32.997-27.493-60-61.092-60s-61.09 27.003-61.09 60c0 32.998 27.491 60 61.09 60zm-162.908 0c33.599 0 61.09-27.002 61.09-60 0-32.997-27.491-60-61.09-60s-61.092 27.003-61.092 60c0 32.998 27.493 60 61.092 60zm0 44C126.688 276 32 298.998 32 346v54h288v-54c0-47.002-97.599-70-145.454-70zm162.908 11.003c-6.105 0-10.325 0-17.454.997 23.426 17.002 32 28 32 58v54h128v-54c0-47.002-94.688-58.997-142.546-58.997z"},child:[]}]})(i)}function IoMdRefresh(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z"},child:[]}]})(i)}function IoMdWallet(i){return GenIcon({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M202.7 341.3V170.7c0-23.5 19-42.7 42.7-42.7h197v-21.3c0-23.5-18.9-42.7-42.3-42.7H92c-23.7 0-44 18.5-44 42v300c0 23.5 20.3 42 44 42h308c23.5 0 42.3-19.2 42.3-42.7V384h-197c-23.6 0-42.6-19.2-42.6-42.7z"},child:[]},{tag:"path",attr:{d:"M245 186v140c0 8.8 7.2 16 16 16h187c8.8 0 16-7.2 16-16V186c0-8.8-7.2-16-16-16H261c-8.8 0-16 7.2-16 16zm77.1 101.9c-19.3 1.2-35.2-14.7-34-34 1-15.9 13.9-28.8 29.9-29.9 19.3-1.2 35.2 14.7 34 34-1.1 16-14 28.9-29.9 29.9z"},child:[]}]})(i)}const AddIcon=createIcon({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),PhoneIcon=createIcon({d:"M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z",displayName:"PhoneIcon",viewBox:"0 0 14 14"}),MinusIcon=createIcon({displayName:"MinusIcon",path:jsxRuntimeExports.jsx("g",{fill:"currentColor",children:jsxRuntimeExports.jsx("rect",{height:"4",width:"20",x:"2",y:"10"})})}),HamburgerIcon=createIcon({displayName:"HamburgerIcon",viewBox:"0 0 24 24",d:"M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z"}),user=JSON.parse(localStorage.getItem("user")),getData$1=async()=>{const i=await GET(`get_user_notification/date/${user.id}/${user.created_at}`);return i.response!==200?[]:i.data},getDotStatus=async()=>{const i=await GET(`users_notification_seen_status/${user.id}`);return i.response!==200?[]:i.data},updateReadStatus=async()=>{let i={id:user.id,notification_seen_at:!0};const s=await ADD(user.token,"update_user",i);return s.response!==200?[]:s.data};function NotificationIcon(){const[i,s]=reactExports.useState(!1),o=useQueryClient(),a=useTheme(),{data:_}=useQuery({queryKey:["notification"],queryFn:getData$1}),{data:$}=useQuery({queryKey:["dot-status"],queryFn:getDotStatus}),j=useMutation({mutationFn:async()=>{await updateReadStatus()},onSuccess:()=>{o.invalidateQueries(["dot-status",user.id])}}),_e=()=>{i||j.mutate(),s(!i)};return jsxRuntimeExports.jsxs(Menu,{isOpen:i,onClose:()=>s(!1),children:[jsxRuntimeExports.jsxs(MenuButton,{as:Button,onClick:_e,variant:"ghost",colorScheme:"black",pos:"relative",size:"sm",children:[jsxRuntimeExports.jsx(BiBell,{fontSize:"20px"}),($==null?void 0:$.dot_status)&&jsxRuntimeExports.jsx(Box,{bg:"red.300",borderRadius:"full",position:"absolute",top:"0",right:"1",w:3,h:3,color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",children:jsxRuntimeExports.jsx(Box,{bg:"#fff",w:"6px",h:"6px",borderRadius:"50%"})})]}),jsxRuntimeExports.jsxs(MenuList,{w:300,maxH:"90vh",overflow:"scroll",children:[_==null?void 0:_.map(et=>jsxRuntimeExports.jsx(MenuItem,{color:"#000",children:jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsxs(Flex,{gap:5,align:"center",children:[jsxRuntimeExports.jsxs(Box,{children:[" ",(et==null?void 0:et.image)!==null?jsxRuntimeExports.jsx(Image$1,{src:`${imageBaseURL}/${et.image}`,fallbackSrc:"/imagePlaceholder.png",w:8}):jsxRuntimeExports.jsx(AiFillBell,{fontSize:24,color:a.colors.teal[600]})]}),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Text,{fontWeight:600,color:"primary.text",mb:1,lineHeight:1,children:et.title}),jsxRuntimeExports.jsx(Text,{fontWeight:500,fontSize:"xs",lineHeight:"12px",maxW:"100%",wordBreak:"break-all",children:et.body})]})]})})},et.id)),(_==null?void 0:_.length)===0&&jsxRuntimeExports.jsx(MenuItem,{color:"#000",children:"No notifications"})]})]})}//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(i){hookCallback=i}function isArray(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function isObject(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function hasOwnProp(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function isObjectEmpty(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var s;for(s in i)if(hasOwnProp(i,s))return!1;return!0}function isUndefined(i){return i===void 0}function isNumber(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function isDate(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function map(i,s){var o=[],a,_=i.length;for(a=0;a<_;++a)o.push(s(i[a],a));return o}function extend(i,s){for(var o in s)hasOwnProp(s,o)&&(i[o]=s[o]);return hasOwnProp(s,"toString")&&(i.toString=s.toString),hasOwnProp(s,"valueOf")&&(i.valueOf=s.valueOf),i}function createUTC(i,s,o,a){return createLocalOrUTC(i,s,o,a,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(i){return i._pf==null&&(i._pf=defaultParsingFlags()),i._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(i){var s=Object(this),o=s.length>>>0,a;for(a=0;a<o;a++)if(a in s&&i.call(this,s[a],a,s))return!0;return!1};function isValid(i){var s=null,o=!1,a=i._d&&!isNaN(i._d.getTime());if(a&&(s=getParsingFlags(i),o=some.call(s.parsedDateParts,function(_){return _!=null}),a=s.overflow<0&&!s.empty&&!s.invalidEra&&!s.invalidMonth&&!s.invalidWeekday&&!s.weekdayMismatch&&!s.nullInput&&!s.invalidFormat&&!s.userInvalidated&&(!s.meridiem||s.meridiem&&o),i._strict&&(a=a&&s.charsLeftOver===0&&s.unusedTokens.length===0&&s.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(i))i._isValid=a;else return a;return i._isValid}function createInvalid(i){var s=createUTC(NaN);return i!=null?extend(getParsingFlags(s),i):getParsingFlags(s).userInvalidated=!0,s}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(i,s){var o,a,_,$=momentProperties.length;if(isUndefined(s._isAMomentObject)||(i._isAMomentObject=s._isAMomentObject),isUndefined(s._i)||(i._i=s._i),isUndefined(s._f)||(i._f=s._f),isUndefined(s._l)||(i._l=s._l),isUndefined(s._strict)||(i._strict=s._strict),isUndefined(s._tzm)||(i._tzm=s._tzm),isUndefined(s._isUTC)||(i._isUTC=s._isUTC),isUndefined(s._offset)||(i._offset=s._offset),isUndefined(s._pf)||(i._pf=getParsingFlags(s)),isUndefined(s._locale)||(i._locale=s._locale),$>0)for(o=0;o<$;o++)a=momentProperties[o],_=s[a],isUndefined(_)||(i[a]=_);return i}function Moment(i){copyConfig(this,i),this._d=new Date(i._d!=null?i._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(i){return i instanceof Moment||i!=null&&i._isAMomentObject!=null}function warn(i){hooks.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+i)}function deprecate(i,s){var o=!0;return extend(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,i),o){var a=[],_,$,j,_e=arguments.length;for($=0;$<_e;$++){if(_="",typeof arguments[$]=="object"){_+=`
[`+$+"] ";for(j in arguments[0])hasOwnProp(arguments[0],j)&&(_+=j+": "+arguments[0][j]+", ");_=_.slice(0,-2)}else _=arguments[$];a.push(_)}warn(i+`
Arguments: `+Array.prototype.slice.call(a).join("")+`
`+new Error().stack),o=!1}return s.apply(this,arguments)},s)}var deprecations={};function deprecateSimple(i,s){hooks.deprecationHandler!=null&&hooks.deprecationHandler(i,s),deprecations[i]||(warn(s),deprecations[i]=!0)}hooks.suppressDeprecationWarnings=!1;hooks.deprecationHandler=null;function isFunction(i){return typeof Function<"u"&&i instanceof Function||Object.prototype.toString.call(i)==="[object Function]"}function set(i){var s,o;for(o in i)hasOwnProp(i,o)&&(s=i[o],isFunction(s)?this[o]=s:this["_"+o]=s);this._config=i,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(i,s){var o=extend({},i),a;for(a in s)hasOwnProp(s,a)&&(isObject(i[a])&&isObject(s[a])?(o[a]={},extend(o[a],i[a]),extend(o[a],s[a])):s[a]!=null?o[a]=s[a]:delete o[a]);for(a in i)hasOwnProp(i,a)&&!hasOwnProp(s,a)&&isObject(i[a])&&(o[a]=extend({},o[a]));return o}function Locale(i){i!=null&&this.set(i)}var keys;Object.keys?keys=Object.keys:keys=function(i){var s,o=[];for(s in i)hasOwnProp(i,s)&&o.push(s);return o};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(i,s,o){var a=this._calendar[i]||this._calendar.sameElse;return isFunction(a)?a.call(s,o):a}function zeroFill(i,s,o){var a=""+Math.abs(i),_=s-a.length,$=i>=0;return($?o?"+":"":"-")+Math.pow(10,Math.max(0,_)).toString().substr(1)+a}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(i,s,o,a){var _=a;typeof a=="string"&&(_=function(){return this[a]()}),i&&(formatTokenFunctions[i]=_),s&&(formatTokenFunctions[s[0]]=function(){return zeroFill(_.apply(this,arguments),s[1],s[2])}),o&&(formatTokenFunctions[o]=function(){return this.localeData().ordinal(_.apply(this,arguments),i)})}function removeFormattingTokens(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function makeFormatFunction(i){var s=i.match(formattingTokens),o,a;for(o=0,a=s.length;o<a;o++)formatTokenFunctions[s[o]]?s[o]=formatTokenFunctions[s[o]]:s[o]=removeFormattingTokens(s[o]);return function(_){var $="",j;for(j=0;j<a;j++)$+=isFunction(s[j])?s[j].call(_,i):s[j];return $}}function formatMoment(i,s){return i.isValid()?(s=expandFormat(s,i.localeData()),formatFunctions[s]=formatFunctions[s]||makeFormatFunction(s),formatFunctions[s](i)):i.localeData().invalidDate()}function expandFormat(i,s){var o=5;function a(_){return s.longDateFormat(_)||_}for(localFormattingTokens.lastIndex=0;o>=0&&localFormattingTokens.test(i);)i=i.replace(localFormattingTokens,a),localFormattingTokens.lastIndex=0,o-=1;return i}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(i){var s=this._longDateFormat[i],o=this._longDateFormat[i.toUpperCase()];return s||!o?s:(this._longDateFormat[i]=o.match(formattingTokens).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[i])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(i){return this._ordinal.replace("%d",i)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(i,s,o,a){var _=this._relativeTime[o];return isFunction(_)?_(i,s,o,a):_.replace(/%d/i,i)}function pastFuture(i,s){var o=this._relativeTime[i>0?"future":"past"];return isFunction(o)?o(s):o.replace(/%s/i,s)}var aliases={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(i){return typeof i=="string"?aliases[i]||aliases[i.toLowerCase()]:void 0}function normalizeObjectUnits(i){var s={},o,a;for(a in i)hasOwnProp(i,a)&&(o=normalizeUnits(a),o&&(s[o]=i[a]));return s}var priorities={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(i){var s=[],o;for(o in i)hasOwnProp(i,o)&&s.push({unit:o,priority:priorities[o]});return s.sort(function(a,_){return a.priority-_.priority}),s}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(i,s,o){regexes[i]=isFunction(s)?s:function(a,_){return a&&o?o:s}}function getParseRegexForToken(i,s){return hasOwnProp(regexes,i)?regexes[i](s._strict,s._locale):new RegExp(unescapeFormat(i))}function unescapeFormat(i){return regexEscape(i.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(s,o,a,_,$){return o||a||_||$}))}function regexEscape(i){return i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function toInt(i){var s=+i,o=0;return s!==0&&isFinite(s)&&(o=absFloor(s)),o}var tokens={};function addParseToken(i,s){var o,a=s,_;for(typeof i=="string"&&(i=[i]),isNumber(s)&&(a=function($,j){j[s]=toInt($)}),_=i.length,o=0;o<_;o++)tokens[i[o]]=a}function addWeekParseToken(i,s){addParseToken(i,function(o,a,_,$){_._w=_._w||{},s(o,_._w,_,$)})}function addTimeToArrayFromToken(i,s,o){s!=null&&hasOwnProp(tokens,i)&&tokens[i](s,o._a,o,i)}function isLeapYear(i){return i%4===0&&i%100!==0||i%400===0}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;addFormatToken("Y",0,0,function(){var i=this.year();return i<=9999?zeroFill(i,4):"+"+i});addFormatToken(0,["YY",2],0,function(){return this.year()%100});addFormatToken(0,["YYYY",4],0,"year");addFormatToken(0,["YYYYY",5],0,"year");addFormatToken(0,["YYYYYY",6,!0],0,"year");addRegexToken("Y",matchSigned);addRegexToken("YY",match1to2,match2);addRegexToken("YYYY",match1to4,match4);addRegexToken("YYYYY",match1to6,match6);addRegexToken("YYYYYY",match1to6,match6);addParseToken(["YYYYY","YYYYYY"],YEAR);addParseToken("YYYY",function(i,s){s[YEAR]=i.length===2?hooks.parseTwoDigitYear(i):toInt(i)});addParseToken("YY",function(i,s){s[YEAR]=hooks.parseTwoDigitYear(i)});addParseToken("Y",function(i,s){s[YEAR]=parseInt(i,10)});function daysInYear(i){return isLeapYear(i)?366:365}hooks.parseTwoDigitYear=function(i){return toInt(i)+(toInt(i)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(i,s){return function(o){return o!=null?(set$1(this,i,o),hooks.updateOffset(this,s),this):get(this,i)}}function get(i,s){if(!i.isValid())return NaN;var o=i._d,a=i._isUTC;switch(s){case"Milliseconds":return a?o.getUTCMilliseconds():o.getMilliseconds();case"Seconds":return a?o.getUTCSeconds():o.getSeconds();case"Minutes":return a?o.getUTCMinutes():o.getMinutes();case"Hours":return a?o.getUTCHours():o.getHours();case"Date":return a?o.getUTCDate():o.getDate();case"Day":return a?o.getUTCDay():o.getDay();case"Month":return a?o.getUTCMonth():o.getMonth();case"FullYear":return a?o.getUTCFullYear():o.getFullYear();default:return NaN}}function set$1(i,s,o){var a,_,$,j,_e;if(!(!i.isValid()||isNaN(o))){switch(a=i._d,_=i._isUTC,s){case"Milliseconds":return void(_?a.setUTCMilliseconds(o):a.setMilliseconds(o));case"Seconds":return void(_?a.setUTCSeconds(o):a.setSeconds(o));case"Minutes":return void(_?a.setUTCMinutes(o):a.setMinutes(o));case"Hours":return void(_?a.setUTCHours(o):a.setHours(o));case"Date":return void(_?a.setUTCDate(o):a.setDate(o));case"FullYear":break;default:return}$=o,j=i.month(),_e=i.date(),_e=_e===29&&j===1&&!isLeapYear($)?28:_e,_?a.setUTCFullYear($,j,_e):a.setFullYear($,j,_e)}}function stringGet(i){return i=normalizeUnits(i),isFunction(this[i])?this[i]():this}function stringSet(i,s){if(typeof i=="object"){i=normalizeObjectUnits(i);var o=getPrioritizedUnits(i),a,_=o.length;for(a=0;a<_;a++)this[o[a].unit](i[o[a].unit])}else if(i=normalizeUnits(i),isFunction(this[i]))return this[i](s);return this}function mod(i,s){return(i%s+s)%s}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(i){var s;for(s=0;s<this.length;++s)if(this[s]===i)return s;return-1};function daysInMonth(i,s){if(isNaN(i)||isNaN(s))return NaN;var o=mod(s,12);return i+=(s-o)/12,o===1?isLeapYear(i)?29:28:31-o%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1});addFormatToken("MMM",0,0,function(i){return this.localeData().monthsShort(this,i)});addFormatToken("MMMM",0,0,function(i){return this.localeData().months(this,i)});addRegexToken("M",match1to2,match1to2NoLeadingZero);addRegexToken("MM",match1to2,match2);addRegexToken("MMM",function(i,s){return s.monthsShortRegex(i)});addRegexToken("MMMM",function(i,s){return s.monthsRegex(i)});addParseToken(["M","MM"],function(i,s){s[MONTH]=toInt(i)-1});addParseToken(["MMM","MMMM"],function(i,s,o,a){var _=o._locale.monthsParse(i,a,o._strict);_!=null?s[MONTH]=_:getParsingFlags(o).invalidMonth=i});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(i,s){return i?isArray(this._months)?this._months[i.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(s)?"format":"standalone"][i.month()]:isArray(this._months)?this._months:this._months.standalone}function localeMonthsShort(i,s){return i?isArray(this._monthsShort)?this._monthsShort[i.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(s)?"format":"standalone"][i.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(i,s,o){var a,_,$,j=i.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)$=createUTC([2e3,a]),this._shortMonthsParse[a]=this.monthsShort($,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months($,"").toLocaleLowerCase();return o?s==="MMM"?(_=indexOf.call(this._shortMonthsParse,j),_!==-1?_:null):(_=indexOf.call(this._longMonthsParse,j),_!==-1?_:null):s==="MMM"?(_=indexOf.call(this._shortMonthsParse,j),_!==-1?_:(_=indexOf.call(this._longMonthsParse,j),_!==-1?_:null)):(_=indexOf.call(this._longMonthsParse,j),_!==-1?_:(_=indexOf.call(this._shortMonthsParse,j),_!==-1?_:null))}function localeMonthsParse(i,s,o){var a,_,$;if(this._monthsParseExact)return handleStrictParse.call(this,i,s,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(_=createUTC([2e3,a]),o&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(_,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(_,"").replace(".","")+"$","i")),!o&&!this._monthsParse[a]&&($="^"+this.months(_,"")+"|^"+this.monthsShort(_,""),this._monthsParse[a]=new RegExp($.replace(".",""),"i")),o&&s==="MMMM"&&this._longMonthsParse[a].test(i))return a;if(o&&s==="MMM"&&this._shortMonthsParse[a].test(i))return a;if(!o&&this._monthsParse[a].test(i))return a}}function setMonth(i,s){if(!i.isValid())return i;if(typeof s=="string"){if(/^\d+$/.test(s))s=toInt(s);else if(s=i.localeData().monthsParse(s),!isNumber(s))return i}var o=s,a=i.date();return a=a<29?a:Math.min(a,daysInMonth(i.year(),o)),i._isUTC?i._d.setUTCMonth(o,a):i._d.setMonth(o,a),i}function getSetMonth(i){return i!=null?(setMonth(this,i),hooks.updateOffset(this,!0),this):get(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(i){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),i?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&i?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(i){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),i?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&i?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function i(et,tt){return tt.length-et.length}var s=[],o=[],a=[],_,$,j,_e;for(_=0;_<12;_++)$=createUTC([2e3,_]),j=regexEscape(this.monthsShort($,"")),_e=regexEscape(this.months($,"")),s.push(j),o.push(_e),a.push(_e),a.push(j);s.sort(i),o.sort(i),a.sort(i),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function createDate(i,s,o,a,_,$,j){var _e;return i<100&&i>=0?(_e=new Date(i+400,s,o,a,_,$,j),isFinite(_e.getFullYear())&&_e.setFullYear(i)):_e=new Date(i,s,o,a,_,$,j),_e}function createUTCDate(i){var s,o;return i<100&&i>=0?(o=Array.prototype.slice.call(arguments),o[0]=i+400,s=new Date(Date.UTC.apply(null,o)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(i)):s=new Date(Date.UTC.apply(null,arguments)),s}function firstWeekOffset(i,s,o){var a=7+s-o,_=(7+createUTCDate(i,0,a).getUTCDay()-s)%7;return-_+a-1}function dayOfYearFromWeeks(i,s,o,a,_){var $=(7+o-a)%7,j=firstWeekOffset(i,a,_),_e=1+7*(s-1)+$+j,et,tt;return _e<=0?(et=i-1,tt=daysInYear(et)+_e):_e>daysInYear(i)?(et=i+1,tt=_e-daysInYear(i)):(et=i,tt=_e),{year:et,dayOfYear:tt}}function weekOfYear(i,s,o){var a=firstWeekOffset(i.year(),s,o),_=Math.floor((i.dayOfYear()-a-1)/7)+1,$,j;return _<1?(j=i.year()-1,$=_+weeksInYear(j,s,o)):_>weeksInYear(i.year(),s,o)?($=_-weeksInYear(i.year(),s,o),j=i.year()+1):(j=i.year(),$=_),{week:$,year:j}}function weeksInYear(i,s,o){var a=firstWeekOffset(i,s,o),_=firstWeekOffset(i+1,s,o);return(daysInYear(i)-a+_)/7}addFormatToken("w",["ww",2],"wo","week");addFormatToken("W",["WW",2],"Wo","isoWeek");addRegexToken("w",match1to2,match1to2NoLeadingZero);addRegexToken("ww",match1to2,match2);addRegexToken("W",match1to2,match1to2NoLeadingZero);addRegexToken("WW",match1to2,match2);addWeekParseToken(["w","ww","W","WW"],function(i,s,o,a){s[a.substr(0,1)]=toInt(i)});function localeWeek(i){return weekOfYear(i,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(i){var s=this.localeData().week(this);return i==null?s:this.add((i-s)*7,"d")}function getSetISOWeek(i){var s=weekOfYear(this,1,4).week;return i==null?s:this.add((i-s)*7,"d")}addFormatToken("d",0,"do","day");addFormatToken("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)});addFormatToken("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)});addFormatToken("dddd",0,0,function(i){return this.localeData().weekdays(this,i)});addFormatToken("e",0,0,"weekday");addFormatToken("E",0,0,"isoWeekday");addRegexToken("d",match1to2);addRegexToken("e",match1to2);addRegexToken("E",match1to2);addRegexToken("dd",function(i,s){return s.weekdaysMinRegex(i)});addRegexToken("ddd",function(i,s){return s.weekdaysShortRegex(i)});addRegexToken("dddd",function(i,s){return s.weekdaysRegex(i)});addWeekParseToken(["dd","ddd","dddd"],function(i,s,o,a){var _=o._locale.weekdaysParse(i,a,o._strict);_!=null?s.d=_:getParsingFlags(o).invalidWeekday=i});addWeekParseToken(["d","e","E"],function(i,s,o,a){s[a]=toInt(i)});function parseWeekday(i,s){return typeof i!="string"?i:isNaN(i)?(i=s.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function parseIsoWeekday(i,s){return typeof i=="string"?s.weekdaysParse(i)%7||7:isNaN(i)?null:i}function shiftWeekdays(i,s){return i.slice(s,7).concat(i.slice(0,s))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(i,s){var o=isArray(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return i===!0?shiftWeekdays(o,this._week.dow):i?o[i.day()]:o}function localeWeekdaysShort(i){return i===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function localeWeekdaysMin(i){return i===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function handleStrictParse$1(i,s,o){var a,_,$,j=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)$=createUTC([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays($,"").toLocaleLowerCase();return o?s==="dddd"?(_=indexOf.call(this._weekdaysParse,j),_!==-1?_:null):s==="ddd"?(_=indexOf.call(this._shortWeekdaysParse,j),_!==-1?_:null):(_=indexOf.call(this._minWeekdaysParse,j),_!==-1?_:null):s==="dddd"?(_=indexOf.call(this._weekdaysParse,j),_!==-1||(_=indexOf.call(this._shortWeekdaysParse,j),_!==-1)?_:(_=indexOf.call(this._minWeekdaysParse,j),_!==-1?_:null)):s==="ddd"?(_=indexOf.call(this._shortWeekdaysParse,j),_!==-1||(_=indexOf.call(this._weekdaysParse,j),_!==-1)?_:(_=indexOf.call(this._minWeekdaysParse,j),_!==-1?_:null)):(_=indexOf.call(this._minWeekdaysParse,j),_!==-1||(_=indexOf.call(this._weekdaysParse,j),_!==-1)?_:(_=indexOf.call(this._shortWeekdaysParse,j),_!==-1?_:null))}function localeWeekdaysParse(i,s,o){var a,_,$;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,i,s,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(_=createUTC([2e3,1]).day(a),o&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(_,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(_,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(_,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||($="^"+this.weekdays(_,"")+"|^"+this.weekdaysShort(_,"")+"|^"+this.weekdaysMin(_,""),this._weekdaysParse[a]=new RegExp($.replace(".",""),"i")),o&&s==="dddd"&&this._fullWeekdaysParse[a].test(i))return a;if(o&&s==="ddd"&&this._shortWeekdaysParse[a].test(i))return a;if(o&&s==="dd"&&this._minWeekdaysParse[a].test(i))return a;if(!o&&this._weekdaysParse[a].test(i))return a}}function getSetDayOfWeek(i){if(!this.isValid())return i!=null?this:NaN;var s=get(this,"Day");return i!=null?(i=parseWeekday(i,this.localeData()),this.add(i-s,"d")):s}function getSetLocaleDayOfWeek(i){if(!this.isValid())return i!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return i==null?s:this.add(i-s,"d")}function getSetISODayOfWeek(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var s=parseIsoWeekday(i,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function weekdaysRegex(i){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(i){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(i){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function i(rt,it){return it.length-rt.length}var s=[],o=[],a=[],_=[],$,j,_e,et,tt;for($=0;$<7;$++)j=createUTC([2e3,1]).day($),_e=regexEscape(this.weekdaysMin(j,"")),et=regexEscape(this.weekdaysShort(j,"")),tt=regexEscape(this.weekdays(j,"")),s.push(_e),o.push(et),a.push(tt),_.push(_e),_.push(et),_.push(tt);s.sort(i),o.sort(i),a.sort(i),_.sort(i),this._weekdaysRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour");addFormatToken("h",["hh",2],0,hFormat);addFormatToken("k",["kk",2],0,kFormat);addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)});addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)});addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(i,s){addFormatToken(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}meridiem("a",!0);meridiem("A",!1);function matchMeridiem(i,s){return s._meridiemParse}addRegexToken("a",matchMeridiem);addRegexToken("A",matchMeridiem);addRegexToken("H",match1to2,match1to2HasZero);addRegexToken("h",match1to2,match1to2NoLeadingZero);addRegexToken("k",match1to2,match1to2NoLeadingZero);addRegexToken("HH",match1to2,match2);addRegexToken("hh",match1to2,match2);addRegexToken("kk",match1to2,match2);addRegexToken("hmm",match3to4);addRegexToken("hmmss",match5to6);addRegexToken("Hmm",match3to4);addRegexToken("Hmmss",match5to6);addParseToken(["H","HH"],HOUR);addParseToken(["k","kk"],function(i,s,o){var a=toInt(i);s[HOUR]=a===24?0:a});addParseToken(["a","A"],function(i,s,o){o._isPm=o._locale.isPM(i),o._meridiem=i});addParseToken(["h","hh"],function(i,s,o){s[HOUR]=toInt(i),getParsingFlags(o).bigHour=!0});addParseToken("hmm",function(i,s,o){var a=i.length-2;s[HOUR]=toInt(i.substr(0,a)),s[MINUTE]=toInt(i.substr(a)),getParsingFlags(o).bigHour=!0});addParseToken("hmmss",function(i,s,o){var a=i.length-4,_=i.length-2;s[HOUR]=toInt(i.substr(0,a)),s[MINUTE]=toInt(i.substr(a,2)),s[SECOND]=toInt(i.substr(_)),getParsingFlags(o).bigHour=!0});addParseToken("Hmm",function(i,s,o){var a=i.length-2;s[HOUR]=toInt(i.substr(0,a)),s[MINUTE]=toInt(i.substr(a))});addParseToken("Hmmss",function(i,s,o){var a=i.length-4,_=i.length-2;s[HOUR]=toInt(i.substr(0,a)),s[MINUTE]=toInt(i.substr(a,2)),s[SECOND]=toInt(i.substr(_))});function localeIsPM(i){return(i+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(i,s,o){return i>11?o?"pm":"PM":o?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(i,s){var o,a=Math.min(i.length,s.length);for(o=0;o<a;o+=1)if(i[o]!==s[o])return o;return a}function normalizeLocale(i){return i&&i.toLowerCase().replace("_","-")}function chooseLocale(i){for(var s=0,o,a,_,$;s<i.length;){for($=normalizeLocale(i[s]).split("-"),o=$.length,a=normalizeLocale(i[s+1]),a=a?a.split("-"):null;o>0;){if(_=loadLocale($.slice(0,o).join("-")),_)return _;if(a&&a.length>=o&&commonPrefix($,a)>=o-1)break;o--}s++}return globalLocale}function isLocaleNameSane(i){return!!(i&&i.match("^[^/\\\\]*$"))}function loadLocale(i){var s=null,o;if(locales[i]===void 0&&typeof module<"u"&&module&&module.exports&&isLocaleNameSane(i))try{s=globalLocale._abbr,o=require,o("./locale/"+i),getSetGlobalLocale(s)}catch{locales[i]=null}return locales[i]}function getSetGlobalLocale(i,s){var o;return i&&(isUndefined(s)?o=getLocale(i):o=defineLocale(i,s),o?globalLocale=o:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(i,s){if(s!==null){var o,a=baseConfig;if(s.abbr=i,locales[i]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=locales[i]._config;else if(s.parentLocale!=null)if(locales[s.parentLocale]!=null)a=locales[s.parentLocale]._config;else if(o=loadLocale(s.parentLocale),o!=null)a=o._config;else return localeFamilies[s.parentLocale]||(localeFamilies[s.parentLocale]=[]),localeFamilies[s.parentLocale].push({name:i,config:s}),null;return locales[i]=new Locale(mergeConfigs(a,s)),localeFamilies[i]&&localeFamilies[i].forEach(function(_){defineLocale(_.name,_.config)}),getSetGlobalLocale(i),locales[i]}else return delete locales[i],null}function updateLocale(i,s){if(s!=null){var o,a,_=baseConfig;locales[i]!=null&&locales[i].parentLocale!=null?locales[i].set(mergeConfigs(locales[i]._config,s)):(a=loadLocale(i),a!=null&&(_=a._config),s=mergeConfigs(_,s),a==null&&(s.abbr=i),o=new Locale(s),o.parentLocale=locales[i],locales[i]=o),getSetGlobalLocale(i)}else locales[i]!=null&&(locales[i].parentLocale!=null?(locales[i]=locales[i].parentLocale,i===getSetGlobalLocale()&&getSetGlobalLocale(i)):locales[i]!=null&&delete locales[i]);return locales[i]}function getLocale(i){var s;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return globalLocale;if(!isArray(i)){if(s=loadLocale(i),s)return s;i=[i]}return chooseLocale(i)}function listLocales(){return keys(locales)}function checkOverflow(i){var s,o=i._a;return o&&getParsingFlags(i).overflow===-2&&(s=o[MONTH]<0||o[MONTH]>11?MONTH:o[DATE]<1||o[DATE]>daysInMonth(o[YEAR],o[MONTH])?DATE:o[HOUR]<0||o[HOUR]>24||o[HOUR]===24&&(o[MINUTE]!==0||o[SECOND]!==0||o[MILLISECOND]!==0)?HOUR:o[MINUTE]<0||o[MINUTE]>59?MINUTE:o[SECOND]<0||o[SECOND]>59?SECOND:o[MILLISECOND]<0||o[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(i)._overflowDayOfYear&&(s<YEAR||s>DATE)&&(s=DATE),getParsingFlags(i)._overflowWeeks&&s===-1&&(s=WEEK),getParsingFlags(i)._overflowWeekday&&s===-1&&(s=WEEKDAY),getParsingFlags(i).overflow=s),i}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function configFromISO(i){var s,o,a=i._i,_=extendedIsoRegex.exec(a)||basicIsoRegex.exec(a),$,j,_e,et,tt=isoDates.length,rt=isoTimes.length;if(_){for(getParsingFlags(i).iso=!0,s=0,o=tt;s<o;s++)if(isoDates[s][1].exec(_[1])){j=isoDates[s][0],$=isoDates[s][2]!==!1;break}if(j==null){i._isValid=!1;return}if(_[3]){for(s=0,o=rt;s<o;s++)if(isoTimes[s][1].exec(_[3])){_e=(_[2]||" ")+isoTimes[s][0];break}if(_e==null){i._isValid=!1;return}}if(!$&&_e!=null){i._isValid=!1;return}if(_[4])if(tzRegex.exec(_[4]))et="Z";else{i._isValid=!1;return}i._f=j+(_e||"")+(et||""),configFromStringAndFormat(i)}else i._isValid=!1}function extractFromRFC2822Strings(i,s,o,a,_,$){var j=[untruncateYear(i),defaultLocaleMonthsShort.indexOf(s),parseInt(o,10),parseInt(a,10),parseInt(_,10)];return $&&j.push(parseInt($,10)),j}function untruncateYear(i){var s=parseInt(i,10);return s<=49?2e3+s:s<=999?1900+s:s}function preprocessRFC2822(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(i,s,o){if(i){var a=defaultLocaleWeekdaysShort.indexOf(i),_=new Date(s[0],s[1],s[2]).getDay();if(a!==_)return getParsingFlags(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function calculateOffset(i,s,o){if(i)return obsOffsets[i];if(s)return 0;var a=parseInt(o,10),_=a%100,$=(a-_)/100;return $*60+_}function configFromRFC2822(i){var s=rfc2822.exec(preprocessRFC2822(i._i)),o;if(s){if(o=extractFromRFC2822Strings(s[4],s[3],s[2],s[5],s[6],s[7]),!checkWeekday(s[1],o,i))return;i._a=o,i._tzm=calculateOffset(s[8],s[9],s[10]),i._d=createUTCDate.apply(null,i._a),i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),getParsingFlags(i).rfc2822=!0}else i._isValid=!1}function configFromString(i){var s=aspNetJsonRegex.exec(i._i);if(s!==null){i._d=new Date(+s[1]);return}if(configFromISO(i),i._isValid===!1)delete i._isValid;else return;if(configFromRFC2822(i),i._isValid===!1)delete i._isValid;else return;i._strict?i._isValid=!1:hooks.createFromInputFallback(i)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(i){i._d=new Date(i._i+(i._useUTC?" UTC":""))});function defaults(i,s,o){return i??s??o}function currentDateArray(i){var s=new Date(hooks.now());return i._useUTC?[s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()]:[s.getFullYear(),s.getMonth(),s.getDate()]}function configFromArray(i){var s,o,a=[],_,$,j;if(!i._d){for(_=currentDateArray(i),i._w&&i._a[DATE]==null&&i._a[MONTH]==null&&dayOfYearFromWeekInfo(i),i._dayOfYear!=null&&(j=defaults(i._a[YEAR],_[YEAR]),(i._dayOfYear>daysInYear(j)||i._dayOfYear===0)&&(getParsingFlags(i)._overflowDayOfYear=!0),o=createUTCDate(j,0,i._dayOfYear),i._a[MONTH]=o.getUTCMonth(),i._a[DATE]=o.getUTCDate()),s=0;s<3&&i._a[s]==null;++s)i._a[s]=a[s]=_[s];for(;s<7;s++)i._a[s]=a[s]=i._a[s]==null?s===2?1:0:i._a[s];i._a[HOUR]===24&&i._a[MINUTE]===0&&i._a[SECOND]===0&&i._a[MILLISECOND]===0&&(i._nextDay=!0,i._a[HOUR]=0),i._d=(i._useUTC?createUTCDate:createDate).apply(null,a),$=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[HOUR]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==$&&(getParsingFlags(i).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(i){var s,o,a,_,$,j,_e,et,tt;s=i._w,s.GG!=null||s.W!=null||s.E!=null?($=1,j=4,o=defaults(s.GG,i._a[YEAR],weekOfYear(createLocal(),1,4).year),a=defaults(s.W,1),_=defaults(s.E,1),(_<1||_>7)&&(et=!0)):($=i._locale._week.dow,j=i._locale._week.doy,tt=weekOfYear(createLocal(),$,j),o=defaults(s.gg,i._a[YEAR],tt.year),a=defaults(s.w,tt.week),s.d!=null?(_=s.d,(_<0||_>6)&&(et=!0)):s.e!=null?(_=s.e+$,(s.e<0||s.e>6)&&(et=!0)):_=$),a<1||a>weeksInYear(o,$,j)?getParsingFlags(i)._overflowWeeks=!0:et!=null?getParsingFlags(i)._overflowWeekday=!0:(_e=dayOfYearFromWeeks(o,a,_,$,j),i._a[YEAR]=_e.year,i._dayOfYear=_e.dayOfYear)}hooks.ISO_8601=function(){};hooks.RFC_2822=function(){};function configFromStringAndFormat(i){if(i._f===hooks.ISO_8601){configFromISO(i);return}if(i._f===hooks.RFC_2822){configFromRFC2822(i);return}i._a=[],getParsingFlags(i).empty=!0;var s=""+i._i,o,a,_,$,j,_e=s.length,et=0,tt,rt;for(_=expandFormat(i._f,i._locale).match(formattingTokens)||[],rt=_.length,o=0;o<rt;o++)$=_[o],a=(s.match(getParseRegexForToken($,i))||[])[0],a&&(j=s.substr(0,s.indexOf(a)),j.length>0&&getParsingFlags(i).unusedInput.push(j),s=s.slice(s.indexOf(a)+a.length),et+=a.length),formatTokenFunctions[$]?(a?getParsingFlags(i).empty=!1:getParsingFlags(i).unusedTokens.push($),addTimeToArrayFromToken($,a,i)):i._strict&&!a&&getParsingFlags(i).unusedTokens.push($);getParsingFlags(i).charsLeftOver=_e-et,s.length>0&&getParsingFlags(i).unusedInput.push(s),i._a[HOUR]<=12&&getParsingFlags(i).bigHour===!0&&i._a[HOUR]>0&&(getParsingFlags(i).bigHour=void 0),getParsingFlags(i).parsedDateParts=i._a.slice(0),getParsingFlags(i).meridiem=i._meridiem,i._a[HOUR]=meridiemFixWrap(i._locale,i._a[HOUR],i._meridiem),tt=getParsingFlags(i).era,tt!==null&&(i._a[YEAR]=i._locale.erasConvertYear(tt,i._a[YEAR])),configFromArray(i),checkOverflow(i)}function meridiemFixWrap(i,s,o){var a;return o==null?s:i.meridiemHour!=null?i.meridiemHour(s,o):(i.isPM!=null&&(a=i.isPM(o),a&&s<12&&(s+=12),!a&&s===12&&(s=0)),s)}function configFromStringAndArray(i){var s,o,a,_,$,j,_e=!1,et=i._f.length;if(et===0){getParsingFlags(i).invalidFormat=!0,i._d=new Date(NaN);return}for(_=0;_<et;_++)$=0,j=!1,s=copyConfig({},i),i._useUTC!=null&&(s._useUTC=i._useUTC),s._f=i._f[_],configFromStringAndFormat(s),isValid(s)&&(j=!0),$+=getParsingFlags(s).charsLeftOver,$+=getParsingFlags(s).unusedTokens.length*10,getParsingFlags(s).score=$,_e?$<a&&(a=$,o=s):(a==null||$<a||j)&&(a=$,o=s,j&&(_e=!0));extend(i,o||s)}function configFromObject(i){if(!i._d){var s=normalizeObjectUnits(i._i),o=s.day===void 0?s.date:s.day;i._a=map([s.year,s.month,o,s.hour,s.minute,s.second,s.millisecond],function(a){return a&&parseInt(a,10)}),configFromArray(i)}}function createFromConfig(i){var s=new Moment(checkOverflow(prepareConfig(i)));return s._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function prepareConfig(i){var s=i._i,o=i._f;return i._locale=i._locale||getLocale(i._l),s===null||o===void 0&&s===""?createInvalid({nullInput:!0}):(typeof s=="string"&&(i._i=s=i._locale.preparse(s)),isMoment(s)?new Moment(checkOverflow(s)):(isDate(s)?i._d=s:isArray(o)?configFromStringAndArray(i):o?configFromStringAndFormat(i):configFromInput(i),isValid(i)||(i._d=null),i))}function configFromInput(i){var s=i._i;isUndefined(s)?i._d=new Date(hooks.now()):isDate(s)?i._d=new Date(s.valueOf()):typeof s=="string"?configFromString(i):isArray(s)?(i._a=map(s.slice(0),function(o){return parseInt(o,10)}),configFromArray(i)):isObject(s)?configFromObject(i):isNumber(s)?i._d=new Date(s):hooks.createFromInputFallback(i)}function createLocalOrUTC(i,s,o,a,_){var $={};return(s===!0||s===!1)&&(a=s,s=void 0),(o===!0||o===!1)&&(a=o,o=void 0),(isObject(i)&&isObjectEmpty(i)||isArray(i)&&i.length===0)&&(i=void 0),$._isAMomentObject=!0,$._useUTC=$._isUTC=_,$._l=o,$._i=i,$._f=s,$._strict=a,createFromConfig($)}function createLocal(i,s,o,a){return createLocalOrUTC(i,s,o,a,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=createLocal.apply(null,arguments);return this.isValid()&&i.isValid()?i<this?this:i:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var i=createLocal.apply(null,arguments);return this.isValid()&&i.isValid()?i>this?this:i:createInvalid()});function pickBy(i,s){var o,a;if(s.length===1&&isArray(s[0])&&(s=s[0]),!s.length)return createLocal();for(o=s[0],a=1;a<s.length;++a)(!s[a].isValid()||s[a][i](o))&&(o=s[a]);return o}function min(){var i=[].slice.call(arguments,0);return pickBy("isBefore",i)}function max(){var i=[].slice.call(arguments,0);return pickBy("isAfter",i)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(i){var s,o=!1,a,_=ordering.length;for(s in i)if(hasOwnProp(i,s)&&!(indexOf.call(ordering,s)!==-1&&(i[s]==null||!isNaN(i[s]))))return!1;for(a=0;a<_;++a)if(i[ordering[a]]){if(o)return!1;parseFloat(i[ordering[a]])!==toInt(i[ordering[a]])&&(o=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(i){var s=normalizeObjectUnits(i),o=s.year||0,a=s.quarter||0,_=s.month||0,$=s.week||s.isoWeek||0,j=s.day||0,_e=s.hour||0,et=s.minute||0,tt=s.second||0,rt=s.millisecond||0;this._isValid=isDurationValid(s),this._milliseconds=+rt+tt*1e3+et*6e4+_e*1e3*60*60,this._days=+j+$*7,this._months=+_+a*3+o*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(i){return i instanceof Duration}function absRound(i){return i<0?Math.round(-1*i)*-1:Math.round(i)}function compareArrays(i,s,o){var a=Math.min(i.length,s.length),_=Math.abs(i.length-s.length),$=0,j;for(j=0;j<a;j++)toInt(i[j])!==toInt(s[j])&&$++;return $+_}function offset(i,s){addFormatToken(i,0,0,function(){var o=this.utcOffset(),a="+";return o<0&&(o=-o,a="-"),a+zeroFill(~~(o/60),2)+s+zeroFill(~~o%60,2)})}offset("Z",":");offset("ZZ","");addRegexToken("Z",matchShortOffset);addRegexToken("ZZ",matchShortOffset);addParseToken(["Z","ZZ"],function(i,s,o){o._useUTC=!0,o._tzm=offsetFromString(matchShortOffset,i)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(i,s){var o=(s||"").match(i),a,_,$;return o===null?null:(a=o[o.length-1]||[],_=(a+"").match(chunkOffset)||["-",0,0],$=+(_[1]*60)+toInt(_[2]),$===0?0:_[0]==="+"?$:-$)}function cloneWithOffset(i,s){var o,a;return s._isUTC?(o=s.clone(),a=(isMoment(i)||isDate(i)?i.valueOf():createLocal(i).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+a),hooks.updateOffset(o,!1),o):createLocal(i).local()}function getDateOffset(i){return-Math.round(i._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(i,s,o){var a=this._offset||0,_;if(!this.isValid())return i!=null?this:NaN;if(i!=null){if(typeof i=="string"){if(i=offsetFromString(matchShortOffset,i),i===null)return this}else Math.abs(i)<16&&!o&&(i=i*60);return!this._isUTC&&s&&(_=getDateOffset(this)),this._offset=i,this._isUTC=!0,_!=null&&this.add(_,"m"),a!==i&&(!s||this._changeInProgress?addSubtract(this,createDuration(i-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?a:getDateOffset(this)}function getSetZone(i,s){return i!=null?(typeof i!="string"&&(i=-i),this.utcOffset(i,s),this):-this.utcOffset()}function setOffsetToUTC(i){return this.utcOffset(0,i)}function setOffsetToLocal(i){return this._isUTC&&(this.utcOffset(0,i),this._isUTC=!1,i&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var i=offsetFromString(matchOffset,this._i);i!=null?this.utcOffset(i):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(i){return this.isValid()?(i=i?createLocal(i).utcOffset():0,(this.utcOffset()-i)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var i={},s;return copyConfig(i,this),i=prepareConfig(i),i._a?(s=i._isUTC?createUTC(i._a):createLocal(i._a),this._isDSTShifted=this.isValid()&&compareArrays(i._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(i,s){var o=i,a=null,_,$,j;return isDuration(i)?o={ms:i._milliseconds,d:i._days,M:i._months}:isNumber(i)||!isNaN(+i)?(o={},s?o[s]=+i:o.milliseconds=+i):(a=aspNetRegex.exec(i))?(_=a[1]==="-"?-1:1,o={y:0,d:toInt(a[DATE])*_,h:toInt(a[HOUR])*_,m:toInt(a[MINUTE])*_,s:toInt(a[SECOND])*_,ms:toInt(absRound(a[MILLISECOND]*1e3))*_}):(a=isoRegex.exec(i))?(_=a[1]==="-"?-1:1,o={y:parseIso(a[2],_),M:parseIso(a[3],_),w:parseIso(a[4],_),d:parseIso(a[5],_),h:parseIso(a[6],_),m:parseIso(a[7],_),s:parseIso(a[8],_)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(j=momentsDifference(createLocal(o.from),createLocal(o.to)),o={},o.ms=j.milliseconds,o.M=j.months),$=new Duration(o),isDuration(i)&&hasOwnProp(i,"_locale")&&($._locale=i._locale),isDuration(i)&&hasOwnProp(i,"_isValid")&&($._isValid=i._isValid),$}createDuration.fn=Duration.prototype;createDuration.invalid=createInvalid$1;function parseIso(i,s){var o=i&&parseFloat(i.replace(",","."));return(isNaN(o)?0:o)*s}function positiveMomentsDifference(i,s){var o={};return o.months=s.month()-i.month()+(s.year()-i.year())*12,i.clone().add(o.months,"M").isAfter(s)&&--o.months,o.milliseconds=+s-+i.clone().add(o.months,"M"),o}function momentsDifference(i,s){var o;return i.isValid()&&s.isValid()?(s=cloneWithOffset(s,i),i.isBefore(s)?o=positiveMomentsDifference(i,s):(o=positiveMomentsDifference(s,i),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function createAdder(i,s){return function(o,a){var _,$;return a!==null&&!isNaN(+a)&&(deprecateSimple(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=o,o=a,a=$),_=createDuration(o,a),addSubtract(this,_,i),this}}function addSubtract(i,s,o,a){var _=s._milliseconds,$=absRound(s._days),j=absRound(s._months);i.isValid()&&(a=a??!0,j&&setMonth(i,get(i,"Month")+j*o),$&&set$1(i,"Date",get(i,"Date")+$*o),_&&i._d.setTime(i._d.valueOf()+_*o),a&&hooks.updateOffset(i,$||j))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString(i){return typeof i=="string"||i instanceof String}function isMomentInput(i){return isMoment(i)||isDate(i)||isString(i)||isNumber(i)||isNumberOrStringArray(i)||isMomentInputObject(i)||i===null||i===void 0}function isMomentInputObject(i){var s=isObject(i)&&!isObjectEmpty(i),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],_,$,j=a.length;for(_=0;_<j;_+=1)$=a[_],o=o||hasOwnProp(i,$);return s&&o}function isNumberOrStringArray(i){var s=isArray(i),o=!1;return s&&(o=i.filter(function(a){return!isNumber(a)&&isString(i)}).length===0),s&&o}function isCalendarSpec(i){var s=isObject(i)&&!isObjectEmpty(i),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],_,$;for(_=0;_<a.length;_+=1)$=a[_],o=o||hasOwnProp(i,$);return s&&o}function getCalendarFormat(i,s){var o=i.diff(s,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function calendar$1(i,s){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(i=arguments[0],s=void 0):isCalendarSpec(arguments[0])&&(s=arguments[0],i=void 0):(i=void 0,s=void 0));var o=i||createLocal(),a=cloneWithOffset(o,this).startOf("day"),_=hooks.calendarFormat(this,a)||"sameElse",$=s&&(isFunction(s[_])?s[_].call(this,o):s[_]);return this.format($||this.localeData().calendar(_,this,createLocal(o)))}function clone(){return new Moment(this)}function isAfter(i,s){var o=isMoment(i)?i:createLocal(i);return this.isValid()&&o.isValid()?(s=normalizeUnits(s)||"millisecond",s==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(s).valueOf()):!1}function isBefore(i,s){var o=isMoment(i)?i:createLocal(i);return this.isValid()&&o.isValid()?(s=normalizeUnits(s)||"millisecond",s==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(s).valueOf()<o.valueOf()):!1}function isBetween(i,s,o,a){var _=isMoment(i)?i:createLocal(i),$=isMoment(s)?s:createLocal(s);return this.isValid()&&_.isValid()&&$.isValid()?(a=a||"()",(a[0]==="("?this.isAfter(_,o):!this.isBefore(_,o))&&(a[1]===")"?this.isBefore($,o):!this.isAfter($,o))):!1}function isSame(i,s){var o=isMoment(i)?i:createLocal(i),a;return this.isValid()&&o.isValid()?(s=normalizeUnits(s)||"millisecond",s==="millisecond"?this.valueOf()===o.valueOf():(a=o.valueOf(),this.clone().startOf(s).valueOf()<=a&&a<=this.clone().endOf(s).valueOf())):!1}function isSameOrAfter(i,s){return this.isSame(i,s)||this.isAfter(i,s)}function isSameOrBefore(i,s){return this.isSame(i,s)||this.isBefore(i,s)}function diff(i,s,o){var a,_,$;if(!this.isValid())return NaN;if(a=cloneWithOffset(i,this),!a.isValid())return NaN;switch(_=(a.utcOffset()-this.utcOffset())*6e4,s=normalizeUnits(s),s){case"year":$=monthDiff(this,a)/12;break;case"month":$=monthDiff(this,a);break;case"quarter":$=monthDiff(this,a)/3;break;case"second":$=(this-a)/1e3;break;case"minute":$=(this-a)/6e4;break;case"hour":$=(this-a)/36e5;break;case"day":$=(this-a-_)/864e5;break;case"week":$=(this-a-_)/6048e5;break;default:$=this-a}return o?$:absFloor($)}function monthDiff(i,s){if(i.date()<s.date())return-monthDiff(s,i);var o=(s.year()-i.year())*12+(s.month()-i.month()),a=i.clone().add(o,"months"),_,$;return s-a<0?(_=i.clone().add(o-1,"months"),$=(s-a)/(a-_)):(_=i.clone().add(o+1,"months"),$=(s-a)/(_-a)),-(o+$)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(i){if(!this.isValid())return null;var s=i!==!0,o=s?this.clone().utc():this;return o.year()<0||o.year()>9999?formatMoment(o,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(o,"Z")):formatMoment(o,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",s="",o,a,_,$;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),o="["+i+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",_="-MM-DD[T]HH:mm:ss.SSS",$=s+'[")]',this.format(o+a+_+$)}function format(i){i||(i=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var s=formatMoment(this,i);return this.localeData().postformat(s)}function from(i,s){return this.isValid()&&(isMoment(i)&&i.isValid()||createLocal(i).isValid())?createDuration({to:this,from:i}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function fromNow(i){return this.from(createLocal(),i)}function to(i,s){return this.isValid()&&(isMoment(i)&&i.isValid()||createLocal(i).isValid())?createDuration({from:this,to:i}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function toNow(i){return this.to(createLocal(),i)}function locale(i){var s;return i===void 0?this._locale._abbr:(s=getLocale(i),s!=null&&(this._locale=s),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(i,s){return(i%s+s)%s}function localStartOfDate(i,s,o){return i<100&&i>=0?new Date(i+400,s,o)-MS_PER_400_YEARS:new Date(i,s,o).valueOf()}function utcStartOfDate(i,s,o){return i<100&&i>=0?Date.UTC(i+400,s,o)-MS_PER_400_YEARS:Date.UTC(i,s,o)}function startOf(i){var s,o;if(i=normalizeUnits(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?utcStartOfDate:localStartOfDate,i){case"year":s=o(this.year(),0,1);break;case"quarter":s=o(this.year(),this.month()-this.month()%3,1);break;case"month":s=o(this.year(),this.month(),1);break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=o(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=mod$1(s+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":s=this._d.valueOf(),s-=mod$1(s,MS_PER_MINUTE);break;case"second":s=this._d.valueOf(),s-=mod$1(s,MS_PER_SECOND);break}return this._d.setTime(s),hooks.updateOffset(this,!0),this}function endOf(i){var s,o;if(i=normalizeUnits(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?utcStartOfDate:localStartOfDate,i){case"year":s=o(this.year()+1,0,1)-1;break;case"quarter":s=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=o(this.year(),this.month()+1,1)-1;break;case"week":s=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=MS_PER_HOUR-mod$1(s+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":s=this._d.valueOf(),s+=MS_PER_MINUTE-mod$1(s,MS_PER_MINUTE)-1;break;case"second":s=this._d.valueOf(),s+=MS_PER_SECOND-mod$1(s,MS_PER_SECOND)-1;break}return this._d.setTime(s),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function toObject(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr");addFormatToken("NN",0,0,"eraAbbr");addFormatToken("NNN",0,0,"eraAbbr");addFormatToken("NNNN",0,0,"eraName");addFormatToken("NNNNN",0,0,"eraNarrow");addFormatToken("y",["y",1],"yo","eraYear");addFormatToken("y",["yy",2],0,"eraYear");addFormatToken("y",["yyy",3],0,"eraYear");addFormatToken("y",["yyyy",4],0,"eraYear");addRegexToken("N",matchEraAbbr);addRegexToken("NN",matchEraAbbr);addRegexToken("NNN",matchEraAbbr);addRegexToken("NNNN",matchEraName);addRegexToken("NNNNN",matchEraNarrow);addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(i,s,o,a){var _=o._locale.erasParse(i,a,o._strict);_?getParsingFlags(o).era=_:getParsingFlags(o).invalidEra=i});addRegexToken("y",matchUnsigned);addRegexToken("yy",matchUnsigned);addRegexToken("yyy",matchUnsigned);addRegexToken("yyyy",matchUnsigned);addRegexToken("yo",matchEraYearOrdinal);addParseToken(["y","yy","yyy","yyyy"],YEAR);addParseToken(["yo"],function(i,s,o,a){var _;o._locale._eraYearOrdinalRegex&&(_=i.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?s[YEAR]=o._locale.eraYearOrdinalParse(i,_):s[YEAR]=parseInt(i,10)});function localeEras(i,s){var o,a,_,$=this._eras||getLocale("en")._eras;for(o=0,a=$.length;o<a;++o){switch(typeof $[o].since){case"string":_=hooks($[o].since).startOf("day"),$[o].since=_.valueOf();break}switch(typeof $[o].until){case"undefined":$[o].until=1/0;break;case"string":_=hooks($[o].until).startOf("day").valueOf(),$[o].until=_.valueOf();break}}return $}function localeErasParse(i,s,o){var a,_,$=this.eras(),j,_e,et;for(i=i.toUpperCase(),a=0,_=$.length;a<_;++a)if(j=$[a].name.toUpperCase(),_e=$[a].abbr.toUpperCase(),et=$[a].narrow.toUpperCase(),o)switch(s){case"N":case"NN":case"NNN":if(_e===i)return $[a];break;case"NNNN":if(j===i)return $[a];break;case"NNNNN":if(et===i)return $[a];break}else if([j,_e,et].indexOf(i)>=0)return $[a]}function localeErasConvertYear(i,s){var o=i.since<=i.until?1:-1;return s===void 0?hooks(i.since).year():hooks(i.since).year()+(s-i.offset)*o}function getEraName(){var i,s,o,a=this.localeData().eras();for(i=0,s=a.length;i<s;++i)if(o=this.clone().startOf("day").valueOf(),a[i].since<=o&&o<=a[i].until||a[i].until<=o&&o<=a[i].since)return a[i].name;return""}function getEraNarrow(){var i,s,o,a=this.localeData().eras();for(i=0,s=a.length;i<s;++i)if(o=this.clone().startOf("day").valueOf(),a[i].since<=o&&o<=a[i].until||a[i].until<=o&&o<=a[i].since)return a[i].narrow;return""}function getEraAbbr(){var i,s,o,a=this.localeData().eras();for(i=0,s=a.length;i<s;++i)if(o=this.clone().startOf("day").valueOf(),a[i].since<=o&&o<=a[i].until||a[i].until<=o&&o<=a[i].since)return a[i].abbr;return""}function getEraYear(){var i,s,o,a,_=this.localeData().eras();for(i=0,s=_.length;i<s;++i)if(o=_[i].since<=_[i].until?1:-1,a=this.clone().startOf("day").valueOf(),_[i].since<=a&&a<=_[i].until||_[i].until<=a&&a<=_[i].since)return(this.year()-hooks(_[i].since).year())*o+_[i].offset;return this.year()}function erasNameRegex(i){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),i?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(i){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),i?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(i){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),i?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(i,s){return s.erasAbbrRegex(i)}function matchEraName(i,s){return s.erasNameRegex(i)}function matchEraNarrow(i,s){return s.erasNarrowRegex(i)}function matchEraYearOrdinal(i,s){return s._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var i=[],s=[],o=[],a=[],_,$,j,_e,et,tt=this.eras();for(_=0,$=tt.length;_<$;++_)j=regexEscape(tt[_].name),_e=regexEscape(tt[_].abbr),et=regexEscape(tt[_].narrow),s.push(j),i.push(_e),o.push(et),a.push(j),a.push(_e),a.push(et);this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100});addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(i,s){addFormatToken(0,[i,i.length],0,s)}addWeekYearFormatToken("gggg","weekYear");addWeekYearFormatToken("ggggg","weekYear");addWeekYearFormatToken("GGGG","isoWeekYear");addWeekYearFormatToken("GGGGG","isoWeekYear");addRegexToken("G",matchSigned);addRegexToken("g",matchSigned);addRegexToken("GG",match1to2,match2);addRegexToken("gg",match1to2,match2);addRegexToken("GGGG",match1to4,match4);addRegexToken("gggg",match1to4,match4);addRegexToken("GGGGG",match1to6,match6);addRegexToken("ggggg",match1to6,match6);addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(i,s,o,a){s[a.substr(0,2)]=toInt(i)});addWeekParseToken(["gg","GG"],function(i,s,o,a){s[a]=hooks.parseTwoDigitYear(i)});function getSetWeekYear(i){return getSetWeekYearHelper.call(this,i,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(i){return getSetWeekYearHelper.call(this,i,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var i=this.localeData()._week;return weeksInYear(this.year(),i.dow,i.doy)}function getWeeksInWeekYear(){var i=this.localeData()._week;return weeksInYear(this.weekYear(),i.dow,i.doy)}function getSetWeekYearHelper(i,s,o,a,_){var $;return i==null?weekOfYear(this,a,_).year:($=weeksInYear(i,a,_),s>$&&(s=$),setWeekAll.call(this,i,s,o,a,_))}function setWeekAll(i,s,o,a,_){var $=dayOfYearFromWeeks(i,s,o,a,_),j=createUTCDate($.year,0,$.dayOfYear);return this.year(j.getUTCFullYear()),this.month(j.getUTCMonth()),this.date(j.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter");addRegexToken("Q",match1);addParseToken("Q",function(i,s){s[MONTH]=(toInt(i)-1)*3});function getSetQuarter(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date");addRegexToken("D",match1to2,match1to2NoLeadingZero);addRegexToken("DD",match1to2,match2);addRegexToken("Do",function(i,s){return i?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient});addParseToken(["D","DD"],DATE);addParseToken("Do",function(i,s){s[DATE]=toInt(i.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear");addRegexToken("DDD",match1to3);addRegexToken("DDDD",match3);addParseToken(["DDD","DDDD"],function(i,s,o){o._dayOfYear=toInt(i)});function getSetDayOfYear(i){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?s:this.add(i-s,"d")}addFormatToken("m",["mm",2],0,"minute");addRegexToken("m",match1to2,match1to2HasZero);addRegexToken("mm",match1to2,match2);addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second");addRegexToken("s",match1to2,match1to2HasZero);addRegexToken("ss",match1to2,match2);addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)});addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)});addFormatToken(0,["SSS",3],0,"millisecond");addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10});addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100});addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});addRegexToken("S",match1to3,match1);addRegexToken("SS",match1to3,match2);addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(i,s){s[MILLISECOND]=toInt(("0."+i)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr");addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment.prototype;proto.add=add;proto.calendar=calendar$1;proto.clone=clone;proto.diff=diff;proto.endOf=endOf;proto.format=format;proto.from=from;proto.fromNow=fromNow;proto.to=to;proto.toNow=toNow;proto.get=stringGet;proto.invalidAt=invalidAt;proto.isAfter=isAfter;proto.isBefore=isBefore;proto.isBetween=isBetween;proto.isSame=isSame;proto.isSameOrAfter=isSameOrAfter;proto.isSameOrBefore=isSameOrBefore;proto.isValid=isValid$2;proto.lang=lang;proto.locale=locale;proto.localeData=localeData;proto.max=prototypeMax;proto.min=prototypeMin;proto.parsingFlags=parsingFlags;proto.set=stringSet;proto.startOf=startOf;proto.subtract=subtract;proto.toArray=toArray;proto.toObject=toObject;proto.toDate=toDate;proto.toISOString=toISOString;proto.inspect=inspect;typeof Symbol<"u"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});proto.toJSON=toJSON;proto.toString=toString;proto.unix=unix;proto.valueOf=valueOf;proto.creationData=creationData;proto.eraName=getEraName;proto.eraNarrow=getEraNarrow;proto.eraAbbr=getEraAbbr;proto.eraYear=getEraYear;proto.year=getSetYear;proto.isLeapYear=getIsLeapYear;proto.weekYear=getSetWeekYear;proto.isoWeekYear=getSetISOWeekYear;proto.quarter=proto.quarters=getSetQuarter;proto.month=getSetMonth;proto.daysInMonth=getDaysInMonth;proto.week=proto.weeks=getSetWeek;proto.isoWeek=proto.isoWeeks=getSetISOWeek;proto.weeksInYear=getWeeksInYear;proto.weeksInWeekYear=getWeeksInWeekYear;proto.isoWeeksInYear=getISOWeeksInYear;proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear;proto.date=getSetDayOfMonth;proto.day=proto.days=getSetDayOfWeek;proto.weekday=getSetLocaleDayOfWeek;proto.isoWeekday=getSetISODayOfWeek;proto.dayOfYear=getSetDayOfYear;proto.hour=proto.hours=getSetHour;proto.minute=proto.minutes=getSetMinute;proto.second=proto.seconds=getSetSecond;proto.millisecond=proto.milliseconds=getSetMillisecond;proto.utcOffset=getSetOffset;proto.utc=setOffsetToUTC;proto.local=setOffsetToLocal;proto.parseZone=setOffsetToParsedOffset;proto.hasAlignedHourOffset=hasAlignedHourOffset;proto.isDST=isDaylightSavingTime;proto.isLocal=isLocal;proto.isUtcOffset=isUtcOffset;proto.isUtc=isUtc;proto.isUTC=isUtc;proto.zoneAbbr=getZoneAbbr;proto.zoneName=getZoneName;proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth);proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth);proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear);proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone);proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(i){return createLocal(i*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(i){return i}var proto$1=Locale.prototype;proto$1.calendar=calendar;proto$1.longDateFormat=longDateFormat;proto$1.invalidDate=invalidDate;proto$1.ordinal=ordinal;proto$1.preparse=preParsePostFormat;proto$1.postformat=preParsePostFormat;proto$1.relativeTime=relativeTime;proto$1.pastFuture=pastFuture;proto$1.set=set;proto$1.eras=localeEras;proto$1.erasParse=localeErasParse;proto$1.erasConvertYear=localeErasConvertYear;proto$1.erasAbbrRegex=erasAbbrRegex;proto$1.erasNameRegex=erasNameRegex;proto$1.erasNarrowRegex=erasNarrowRegex;proto$1.months=localeMonths;proto$1.monthsShort=localeMonthsShort;proto$1.monthsParse=localeMonthsParse;proto$1.monthsRegex=monthsRegex;proto$1.monthsShortRegex=monthsShortRegex;proto$1.week=localeWeek;proto$1.firstDayOfYear=localeFirstDayOfYear;proto$1.firstDayOfWeek=localeFirstDayOfWeek;proto$1.weekdays=localeWeekdays;proto$1.weekdaysMin=localeWeekdaysMin;proto$1.weekdaysShort=localeWeekdaysShort;proto$1.weekdaysParse=localeWeekdaysParse;proto$1.weekdaysRegex=weekdaysRegex;proto$1.weekdaysShortRegex=weekdaysShortRegex;proto$1.weekdaysMinRegex=weekdaysMinRegex;proto$1.isPM=localeIsPM;proto$1.meridiem=localeMeridiem;function get$1(i,s,o,a){var _=getLocale(),$=createUTC().set(a,s);return _[o]($,i)}function listMonthsImpl(i,s,o){if(isNumber(i)&&(s=i,i=void 0),i=i||"",s!=null)return get$1(i,s,o,"month");var a,_=[];for(a=0;a<12;a++)_[a]=get$1(i,a,o,"month");return _}function listWeekdaysImpl(i,s,o,a){typeof i=="boolean"?(isNumber(s)&&(o=s,s=void 0),s=s||""):(s=i,o=s,i=!1,isNumber(s)&&(o=s,s=void 0),s=s||"");var _=getLocale(),$=i?_._week.dow:0,j,_e=[];if(o!=null)return get$1(s,(o+$)%7,a,"day");for(j=0;j<7;j++)_e[j]=get$1(s,(j+$)%7,a,"day");return _e}function listMonths(i,s){return listMonthsImpl(i,s,"months")}function listMonthsShort(i,s){return listMonthsImpl(i,s,"monthsShort")}function listWeekdays(i,s,o){return listWeekdaysImpl(i,s,o,"weekdays")}function listWeekdaysShort(i,s,o){return listWeekdaysImpl(i,s,o,"weekdaysShort")}function listWeekdaysMin(i,s,o){return listWeekdaysImpl(i,s,o,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(i){var s=i%10,o=toInt(i%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return i+o}});hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale);hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var i=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),i.milliseconds=mathAbs(i.milliseconds),i.seconds=mathAbs(i.seconds),i.minutes=mathAbs(i.minutes),i.hours=mathAbs(i.hours),i.months=mathAbs(i.months),i.years=mathAbs(i.years),this}function addSubtract$1(i,s,o,a){var _=createDuration(s,o);return i._milliseconds+=a*_._milliseconds,i._days+=a*_._days,i._months+=a*_._months,i._bubble()}function add$1(i,s){return addSubtract$1(this,i,s,1)}function subtract$1(i,s){return addSubtract$1(this,i,s,-1)}function absCeil(i){return i<0?Math.floor(i):Math.ceil(i)}function bubble(){var i=this._milliseconds,s=this._days,o=this._months,a=this._data,_,$,j,_e,et;return i>=0&&s>=0&&o>=0||i<=0&&s<=0&&o<=0||(i+=absCeil(monthsToDays(o)+s)*864e5,s=0,o=0),a.milliseconds=i%1e3,_=absFloor(i/1e3),a.seconds=_%60,$=absFloor(_/60),a.minutes=$%60,j=absFloor($/60),a.hours=j%24,s+=absFloor(j/24),et=absFloor(daysToMonths(s)),o+=et,s-=absCeil(monthsToDays(et)),_e=absFloor(o/12),o%=12,a.days=s,a.months=o,a.years=_e,this}function daysToMonths(i){return i*4800/146097}function monthsToDays(i){return i*146097/4800}function as(i){if(!this.isValid())return NaN;var s,o,a=this._milliseconds;if(i=normalizeUnits(i),i==="month"||i==="quarter"||i==="year")switch(s=this._days+a/864e5,o=this._months+daysToMonths(s),i){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(s=this._days+Math.round(monthsToDays(this._months)),i){case"week":return s/7+a/6048e5;case"day":return s+a/864e5;case"hour":return s*24+a/36e5;case"minute":return s*1440+a/6e4;case"second":return s*86400+a/1e3;case"millisecond":return Math.floor(s*864e5)+a;default:throw new Error("Unknown unit "+i)}}function makeAs(i){return function(){return this.as(i)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1(){return createDuration(this)}function get$2(i){return i=normalizeUnits(i),this.isValid()?this[i+"s"]():NaN}function makeGetter(i){return function(){return this.isValid()?this._data[i]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(i,s,o,a,_){return _.relativeTime(s||1,!!o,i,a)}function relativeTime$1(i,s,o,a){var _=createDuration(i).abs(),$=round(_.as("s")),j=round(_.as("m")),_e=round(_.as("h")),et=round(_.as("d")),tt=round(_.as("M")),rt=round(_.as("w")),it=round(_.as("y")),nt=$<=o.ss&&["s",$]||$<o.s&&["ss",$]||j<=1&&["m"]||j<o.m&&["mm",j]||_e<=1&&["h"]||_e<o.h&&["hh",_e]||et<=1&&["d"]||et<o.d&&["dd",et];return o.w!=null&&(nt=nt||rt<=1&&["w"]||rt<o.w&&["ww",rt]),nt=nt||tt<=1&&["M"]||tt<o.M&&["MM",tt]||it<=1&&["y"]||["yy",it],nt[2]=s,nt[3]=+i>0,nt[4]=a,substituteTimeAgo.apply(null,nt)}function getSetRelativeTimeRounding(i){return i===void 0?round:typeof i=="function"?(round=i,!0):!1}function getSetRelativeTimeThreshold(i,s){return thresholds[i]===void 0?!1:s===void 0?thresholds[i]:(thresholds[i]=s,i==="s"&&(thresholds.ss=s-1),!0)}function humanize(i,s){if(!this.isValid())return this.localeData().invalidDate();var o=!1,a=thresholds,_,$;return typeof i=="object"&&(s=i,i=!1),typeof i=="boolean"&&(o=i),typeof s=="object"&&(a=Object.assign({},thresholds,s),s.s!=null&&s.ss==null&&(a.ss=s.s-1)),_=this.localeData(),$=relativeTime$1(this,!o,a,_),o&&($=_.pastFuture(+this,$)),_.postformat($)}var abs$1=Math.abs;function sign(i){return(i>0)-(i<0)||+i}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var i=abs$1(this._milliseconds)/1e3,s=abs$1(this._days),o=abs$1(this._months),a,_,$,j,_e=this.asSeconds(),et,tt,rt,it;return _e?(a=absFloor(i/60),_=absFloor(a/60),i%=60,a%=60,$=absFloor(o/12),o%=12,j=i?i.toFixed(3).replace(/\.?0+$/,""):"",et=_e<0?"-":"",tt=sign(this._months)!==sign(_e)?"-":"",rt=sign(this._days)!==sign(_e)?"-":"",it=sign(this._milliseconds)!==sign(_e)?"-":"",et+"P"+($?tt+$+"Y":"")+(o?tt+o+"M":"")+(s?rt+s+"D":"")+(_||a||i?"T":"")+(_?it+_+"H":"")+(a?it+a+"M":"")+(i?it+j+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1;proto$2.abs=abs;proto$2.add=add$1;proto$2.subtract=subtract$1;proto$2.as=as;proto$2.asMilliseconds=asMilliseconds;proto$2.asSeconds=asSeconds;proto$2.asMinutes=asMinutes;proto$2.asHours=asHours;proto$2.asDays=asDays;proto$2.asWeeks=asWeeks;proto$2.asMonths=asMonths;proto$2.asQuarters=asQuarters;proto$2.asYears=asYears;proto$2.valueOf=valueOf$1;proto$2._bubble=bubble;proto$2.clone=clone$1;proto$2.get=get$2;proto$2.milliseconds=milliseconds;proto$2.seconds=seconds;proto$2.minutes=minutes;proto$2.hours=hours;proto$2.days=days;proto$2.weeks=weeks;proto$2.months=months;proto$2.years=years;proto$2.humanize=humanize;proto$2.toISOString=toISOString$1;proto$2.toString=toISOString$1;proto$2.toJSON=toISOString$1;proto$2.locale=locale;proto$2.localeData=localeData;proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1);proto$2.lang=lang;addFormatToken("X",0,0,"unix");addFormatToken("x",0,0,"valueOf");addRegexToken("x",matchSigned);addRegexToken("X",matchTimestamp);addParseToken("X",function(i,s,o){o._d=new Date(parseFloat(i)*1e3)});addParseToken("x",function(i,s,o){o._d=new Date(toInt(i))});//! moment.js
hooks.version="2.30.1";setHookCallback(createLocal);hooks.fn=proto;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=proto;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const currency="₹",showToast=(i,s,o)=>{i({title:o,status:s,duration:2e3,isClosable:!0,position:"top"})};var V3_URL="https://js.stripe.com/v3",V3_URL_REGEX=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,EXISTING_SCRIPT_MESSAGE="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",findScript=function(){for(var s=document.querySelectorAll('script[src^="'.concat(V3_URL,'"]')),o=0;o<s.length;o++){var a=s[o];if(V3_URL_REGEX.test(a.src))return a}return null},injectScript=function(s){var o="",a=document.createElement("script");a.src="".concat(V3_URL).concat(o);var _=document.head||document.body;if(!_)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return _.appendChild(a),a},registerWrapper=function(s,o){!s||!s._registerWrapper||s._registerWrapper({name:"stripe-js",version:"4.6.0",startTime:o})},stripePromise=null,onErrorListener=null,onLoadListener=null,onError=function(s){return function(){s(new Error("Failed to load Stripe.js"))}},onLoad=function(s,o){return function(){window.Stripe?s(window.Stripe):o(new Error("Stripe.js not available"))}},loadScript=function(s){return stripePromise!==null?stripePromise:(stripePromise=new Promise(function(o,a){if(typeof window>"u"||typeof document>"u"){o(null);return}if(window.Stripe){o(window.Stripe);return}try{var _=findScript();if(!(_&&s)){if(!_)_=injectScript(s);else if(_&&onLoadListener!==null&&onErrorListener!==null){var $;_.removeEventListener("load",onLoadListener),_.removeEventListener("error",onErrorListener),($=_.parentNode)===null||$===void 0||$.removeChild(_),_=injectScript(s)}}onLoadListener=onLoad(o,a),onErrorListener=onError(a),_.addEventListener("load",onLoadListener),_.addEventListener("error",onErrorListener)}catch(j){a(j);return}}),stripePromise.catch(function(o){return stripePromise=null,Promise.reject(o)}))},initStripe=function(s,o,a){if(s===null)return null;var _=s.apply(void 0,o);return registerWrapper(_,a),_},stripePromise$1,loadCalled=!1,getStripePromise$1=function(){return stripePromise$1||(stripePromise$1=loadScript(null).catch(function(s){return stripePromise$1=null,Promise.reject(s)}),stripePromise$1)};Promise.resolve().then(function(){return getStripePromise$1()}).catch(function(i){loadCalled||console.warn(i)});var loadStripe=function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];loadCalled=!0;var _=Date.now();return getStripePromise$1().then(function($){return initStripe($,o,_)})};function ownKeys$1(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);s&&(a=a.filter(function(_){return Object.getOwnPropertyDescriptor(i,_).enumerable})),o.push.apply(o,a)}return o}function _objectSpread2$1(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?ownKeys$1(Object(o),!0).forEach(function(a){_defineProperty$1(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys$1(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}function _typeof(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(s){return typeof s}:_typeof=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(i)}function _defineProperty$1(i,s,o){return s in i?Object.defineProperty(i,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[s]=o,i}function _slicedToArray$1(i,s){return _arrayWithHoles$1(i)||_iterableToArrayLimit$1(i,s)||_unsupportedIterableToArray$1(i,s)||_nonIterableRest$1()}function _arrayWithHoles$1(i){if(Array.isArray(i))return i}function _iterableToArrayLimit$1(i,s){var o=i&&(typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"]);if(o!=null){var a=[],_=!0,$=!1,j,_e;try{for(o=o.call(i);!(_=(j=o.next()).done)&&(a.push(j.value),!(s&&a.length===s));_=!0);}catch(et){$=!0,_e=et}finally{try{!_&&o.return!=null&&o.return()}finally{if($)throw _e}}return a}}function _unsupportedIterableToArray$1(i,s){if(i){if(typeof i=="string")return _arrayLikeToArray$1(i,s);var o=Object.prototype.toString.call(i).slice(8,-1);if(o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set")return Array.from(i);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray$1(i,s)}}function _arrayLikeToArray$1(i,s){(s==null||s>i.length)&&(s=i.length);for(var o=0,a=new Array(s);o<s;o++)a[o]=i[o];return a}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var useAttachEvent=function(s,o,a){var _=!!a,$=React$1.useRef(a);React$1.useEffect(function(){$.current=a},[a]),React$1.useEffect(function(){if(!_||!s)return function(){};var j=function(){$.current&&$.current.apply($,arguments)};return s.on(o,j),function(){s.off(o,j)}},[_,o,s,$])},usePrevious=function(s){var o=React$1.useRef(s);return React$1.useEffect(function(){o.current=s},[s]),o.current},isUnknownObject=function(s){return s!==null&&_typeof(s)==="object"},isPromise=function(s){return isUnknownObject(s)&&typeof s.then=="function"},isStripe=function(s){return isUnknownObject(s)&&typeof s.elements=="function"&&typeof s.createToken=="function"&&typeof s.createPaymentMethod=="function"&&typeof s.confirmCardPayment=="function"},PLAIN_OBJECT_STR="[object Object]",isEqual=function i(s,o){if(!isUnknownObject(s)||!isUnknownObject(o))return s===o;var a=Array.isArray(s),_=Array.isArray(o);if(a!==_)return!1;var $=Object.prototype.toString.call(s)===PLAIN_OBJECT_STR,j=Object.prototype.toString.call(o)===PLAIN_OBJECT_STR;if($!==j)return!1;if(!$&&!a)return s===o;var _e=Object.keys(s),et=Object.keys(o);if(_e.length!==et.length)return!1;for(var tt={},rt=0;rt<_e.length;rt+=1)tt[_e[rt]]=!0;for(var it=0;it<et.length;it+=1)tt[et[it]]=!0;var nt=Object.keys(tt);if(nt.length!==_e.length)return!1;var ut=s,ct=o,st=function(ot){return i(ut[ot],ct[ot])};return nt.every(st)},extractAllowedOptionsUpdates=function(s,o,a){return isUnknownObject(s)?Object.keys(s).reduce(function(_,$){var j=!isUnknownObject(o)||!isEqual(s[$],o[$]);return a.includes($)?(j&&console.warn("Unsupported prop change: options.".concat($," is not a mutable property.")),_):j?_objectSpread2$1(_objectSpread2$1({},_||{}),{},_defineProperty$1({},$,s[$])):_},null):null},INVALID_STRIPE_ERROR$2="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",validateStripe=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:INVALID_STRIPE_ERROR$2;if(s===null||isStripe(s))return s;throw new Error(o)},parseStripeProp=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:INVALID_STRIPE_ERROR$2;if(isPromise(s))return{tag:"async",stripePromise:Promise.resolve(s).then(function(_){return validateStripe(_,o)})};var a=validateStripe(s,o);return a===null?{tag:"empty"}:{tag:"sync",stripe:a}},registerWithStripeJs=function(s){!s||!s._registerWrapper||!s.registerAppInfo||(s._registerWrapper({name:"react-stripe-js",version:"2.8.1"}),s.registerAppInfo({name:"react-stripe-js",version:"2.8.1",url:"https://stripe.com/docs/stripe-js/react"}))},ElementsContext=React$1.createContext(null);ElementsContext.displayName="ElementsContext";var parseElementsContext=function(s,o){if(!s)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(o," in an <Elements> provider."));return s},Elements=function(s){var o=s.stripe,a=s.options,_=s.children,$=React$1.useMemo(function(){return parseStripeProp(o)},[o]),j=React$1.useState(function(){return{stripe:$.tag==="sync"?$.stripe:null,elements:$.tag==="sync"?$.stripe.elements(a):null}}),_e=_slicedToArray$1(j,2),et=_e[0],tt=_e[1];React$1.useEffect(function(){var nt=!0,ut=function(st){tt(function(dt){return dt.stripe?dt:{stripe:st,elements:st.elements(a)}})};return $.tag==="async"&&!et.stripe?$.stripePromise.then(function(ct){ct&&nt&&ut(ct)}):$.tag==="sync"&&!et.stripe&&ut($.stripe),function(){nt=!1}},[$,et,a]);var rt=usePrevious(o);React$1.useEffect(function(){rt!==null&&rt!==o&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[rt,o]);var it=usePrevious(a);return React$1.useEffect(function(){if(et.elements){var nt=extractAllowedOptionsUpdates(a,it,["clientSecret","fonts"]);nt&&et.elements.update(nt)}},[a,it,et.elements]),React$1.useEffect(function(){registerWithStripeJs(et.stripe)},[et.stripe]),React$1.createElement(ElementsContext.Provider,{value:et},_)};Elements.propTypes={stripe:PropTypes$1.any,options:PropTypes$1.object};var useElementsContextWithUseCase=function(s){var o=React$1.useContext(ElementsContext);return parseElementsContext(o,s)},useElements=function(){var s=useElementsContextWithUseCase("calls useElements()"),o=s.elements;return o};PropTypes$1.func.isRequired;var CustomCheckoutSdkContext=React$1.createContext(null);CustomCheckoutSdkContext.displayName="CustomCheckoutSdkContext";var parseCustomCheckoutSdkContext=function(s,o){if(!s)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(o," in an <CustomCheckoutProvider> provider."));return s},CustomCheckoutContext=React$1.createContext(null);CustomCheckoutContext.displayName="CustomCheckoutContext";PropTypes$1.any,PropTypes$1.shape({clientSecret:PropTypes$1.string.isRequired,elementsOptions:PropTypes$1.object}).isRequired;var useElementsOrCustomCheckoutSdkContextWithUseCase=function(s){var o=React$1.useContext(CustomCheckoutSdkContext),a=React$1.useContext(ElementsContext);if(o&&a)throw new Error("You cannot wrap the part of your app that ".concat(s," in both <CustomCheckoutProvider> and <Elements> providers."));return o?parseCustomCheckoutSdkContext(o,s):parseElementsContext(a,s)},capitalized=function(s){return s.charAt(0).toUpperCase()+s.slice(1)},createElementComponent=function(s,o){var a="".concat(capitalized(s),"Element"),_=function(et){var tt=et.id,rt=et.className,it=et.options,nt=it===void 0?{}:it,ut=et.onBlur,ct=et.onFocus,st=et.onReady,dt=et.onChange,ot=et.onEscape,lt=et.onClick,at=et.onLoadError,ft=et.onLoaderStart,ht=et.onNetworksChange,mt=et.onConfirm,gt=et.onCancel,vt=et.onShippingAddressChange,St=et.onShippingRateChange,wt=useElementsOrCustomCheckoutSdkContextWithUseCase("mounts <".concat(a,">")),Pt="elements"in wt?wt.elements:null,Rt="customCheckoutSdk"in wt?wt.customCheckoutSdk:null,It=React$1.useState(null),jt=_slicedToArray$1(It,2),Mt=jt[0],xt=jt[1],bt=React$1.useRef(null),pt=React$1.useRef(null);useAttachEvent(Mt,"blur",ut),useAttachEvent(Mt,"focus",ct),useAttachEvent(Mt,"escape",ot),useAttachEvent(Mt,"click",lt),useAttachEvent(Mt,"loaderror",at),useAttachEvent(Mt,"loaderstart",ft),useAttachEvent(Mt,"networkschange",ht),useAttachEvent(Mt,"confirm",mt),useAttachEvent(Mt,"cancel",gt),useAttachEvent(Mt,"shippingaddresschange",vt),useAttachEvent(Mt,"shippingratechange",St),useAttachEvent(Mt,"change",dt);var yt;st&&(s==="expressCheckout"?yt=st:yt=function(){st(Mt)}),useAttachEvent(Mt,"ready",yt),React$1.useLayoutEffect(function(){if(bt.current===null&&pt.current!==null&&(Pt||Rt)){var Et=null;Rt?Et=Rt.createElement(s,nt):Pt&&(Et=Pt.create(s,nt)),bt.current=Et,xt(Et),Et&&Et.mount(pt.current)}},[Pt,Rt,nt]);var kt=usePrevious(nt);return React$1.useEffect(function(){if(bt.current){var Et=extractAllowedOptionsUpdates(nt,kt,["paymentRequest"]);Et&&"update"in bt.current&&bt.current.update(Et)}},[nt,kt]),React$1.useLayoutEffect(function(){return function(){if(bt.current&&typeof bt.current.destroy=="function")try{bt.current.destroy(),bt.current=null}catch{}}},[]),React$1.createElement("div",{id:tt,className:rt,ref:pt})},$=function(et){useElementsOrCustomCheckoutSdkContextWithUseCase("mounts <".concat(a,">"));var tt=et.id,rt=et.className;return React$1.createElement("div",{id:tt,className:rt})},j=o?$:_;return j.propTypes={id:PropTypes$1.string,className:PropTypes$1.string,onChange:PropTypes$1.func,onBlur:PropTypes$1.func,onFocus:PropTypes$1.func,onReady:PropTypes$1.func,onEscape:PropTypes$1.func,onClick:PropTypes$1.func,onLoadError:PropTypes$1.func,onLoaderStart:PropTypes$1.func,onNetworksChange:PropTypes$1.func,onConfirm:PropTypes$1.func,onCancel:PropTypes$1.func,onShippingAddressChange:PropTypes$1.func,onShippingRateChange:PropTypes$1.func,options:PropTypes$1.object},j.displayName=a,j.__elementType=s,j},isServer=typeof window>"u",EmbeddedCheckoutContext=React$1.createContext(null);EmbeddedCheckoutContext.displayName="EmbeddedCheckoutProviderContext";var useStripe=function(){var s=useElementsOrCustomCheckoutSdkContextWithUseCase("calls useStripe()"),o=s.stripe;return o};createElementComponent("auBankAccount",isServer);createElementComponent("card",isServer);createElementComponent("cardNumber",isServer);createElementComponent("cardExpiry",isServer);createElementComponent("cardCvc",isServer);createElementComponent("fpxBank",isServer);createElementComponent("iban",isServer);createElementComponent("idealBank",isServer);createElementComponent("p24Bank",isServer);createElementComponent("epsBank",isServer);var PaymentElement=createElementComponent("payment",isServer);createElementComponent("expressCheckout",isServer);createElementComponent("currencySelector",isServer);createElementComponent("paymentRequestButton",isServer);createElementComponent("linkAuthentication",isServer);createElementComponent("address",isServer);createElementComponent("shippingAddress",isServer);createElementComponent("paymentMethodMessaging",isServer);createElementComponent("affirmMessage",isServer);createElementComponent("afterpayClearpayMessage",isServer);const getData=async()=>(await GET("get_payment_gateway_active")).data,PaymentGetwayData=()=>{const{isLoading:i,data:s,error:o}=useQuery({queryKey:["payment-getway-active"],queryFn:getData,staleTime:0,cacheTime:0,refetchOnWindowFocus:!0,refetchInterval:!1});return{paymentGetwaysLoading:i,paymentGetwaysData:s,paymentGetwaysError:o}},ISD_CODES=[{name:"Afghanistan",dial_code:"+93",code:"AF"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL"},{name:"Algeria",dial_code:"+213",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",code:"AS"},{name:"Andorra",dial_code:"+376",code:"AD"},{name:"Angola",dial_code:"+244",code:"AO"},{name:"Anguilla",dial_code:"+1264",code:"AI"},{name:"Antarctica",dial_code:"+672",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG"},{name:"Argentina",dial_code:"+54",code:"AR"},{name:"Armenia",dial_code:"+374",code:"AM"},{name:"Aruba",dial_code:"+297",code:"AW"},{name:"Australia",dial_code:"+61",code:"AU"},{name:"Austria",dial_code:"+43",code:"AT"},{name:"Azerbaijan",dial_code:"+994",code:"AZ"},{name:"Bahamas",dial_code:"+1242",code:"BS"},{name:"Bahrain",dial_code:"+973",code:"BH"},{name:"Bangladesh",dial_code:"+880",code:"BD"},{name:"Barbados",dial_code:"+1246",code:"BB"},{name:"Belarus",dial_code:"+375",code:"BY"},{name:"Belgium",dial_code:"+32",code:"BE"},{name:"Belize",dial_code:"+501",code:"BZ"},{name:"Benin",dial_code:"+229",code:"BJ"},{name:"Bermuda",dial_code:"+1441",code:"BM"},{name:"Bhutan",dial_code:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA"},{name:"Botswana",dial_code:"+267",code:"BW"},{name:"Brazil",dial_code:"+55",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG"},{name:"Burkina Faso",dial_code:"+226",code:"BF"},{name:"Burundi",dial_code:"+257",code:"BI"},{name:"Cambodia",dial_code:"+855",code:"KH"},{name:"Cameroon",dial_code:"+237",code:"CM"},{name:"Canada",dial_code:"+1",code:"CA"},{name:"Cape Verde",dial_code:"+238",code:"CV"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY"},{name:"Central African Republic",dial_code:"+236",code:"CF"},{name:"Chad",dial_code:"+235",code:"TD"},{name:"Chile",dial_code:"+56",code:"CL"},{name:"China",dial_code:"+86",code:"CN"},{name:"Christmas Island",dial_code:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC"},{name:"Colombia",dial_code:"+57",code:"CO"},{name:"Comoros",dial_code:"+269",code:"KM"},{name:"Congo",dial_code:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK"},{name:"Costa Rica",dial_code:"+506",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR"},{name:"Cuba",dial_code:"+53",code:"CU"},{name:"Cyprus",dial_code:"+357",code:"CY"},{name:"Czech Republic",dial_code:"+420",code:"CZ"},{name:"Denmark",dial_code:"+45",code:"DK"},{name:"Djibouti",dial_code:"+253",code:"DJ"},{name:"Dominica",dial_code:"+1767",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",code:"DO"},{name:"Ecuador",dial_code:"+593",code:"EC"},{name:"Egypt",dial_code:"+20",code:"EG"},{name:"El Salvador",dial_code:"+503",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ"},{name:"Eritrea",dial_code:"+291",code:"ER"},{name:"Estonia",dial_code:"+372",code:"EE"},{name:"Ethiopia",dial_code:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO"},{name:"Fiji",dial_code:"+679",code:"FJ"},{name:"Finland",dial_code:"+358",code:"FI"},{name:"France",dial_code:"+33",code:"FR"},{name:"French Guiana",dial_code:"+594",code:"GF"},{name:"French Polynesia",dial_code:"+689",code:"PF"},{name:"Gabon",dial_code:"+241",code:"GA"},{name:"Gambia",dial_code:"+220",code:"GM"},{name:"Georgia",dial_code:"+995",code:"GE"},{name:"Germany",dial_code:"+49",code:"DE"},{name:"Ghana",dial_code:"+233",code:"GH"},{name:"Gibraltar",dial_code:"+350",code:"GI"},{name:"Greece",dial_code:"+30",code:"GR"},{name:"Greenland",dial_code:"+299",code:"GL"},{name:"Grenada",dial_code:"+1473",code:"GD"},{name:"Guadeloupe",dial_code:"+590",code:"GP"},{name:"Guam",dial_code:"+1671",code:"GU"},{name:"Guatemala",dial_code:"+502",code:"GT"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW"},{name:"Guyana",dial_code:"+595",code:"GY"},{name:"Haiti",dial_code:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA"},{name:"Honduras",dial_code:"+504",code:"HN"},{name:"Hong Kong",dial_code:"+852",code:"HK"},{name:"Hungary",dial_code:"+36",code:"HU"},{name:"Iceland",dial_code:"+354",code:"IS"},{name:"India",dial_code:"+91",code:"IN"},{name:"Indonesia",dial_code:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR"},{name:"Iraq",dial_code:"+964",code:"IQ"},{name:"Ireland",dial_code:"+353",code:"IE"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL"},{name:"Italy",dial_code:"+39",code:"IT"},{name:"Jamaica",dial_code:"+1876",code:"JM"},{name:"Japan",dial_code:"+81",code:"JP"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO"},{name:"Kazakhstan",dial_code:"+77",code:"KZ"},{name:"Kenya",dial_code:"+254",code:"KE"},{name:"Kiribati",dial_code:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR"},{name:"Kuwait",dial_code:"+965",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG"},{name:"Laos",dial_code:"+856",code:"LA"},{name:"Latvia",dial_code:"+371",code:"LV"},{name:"Lebanon",dial_code:"+961",code:"LB"},{name:"Lesotho",dial_code:"+266",code:"LS"},{name:"Liberia",dial_code:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY"},{name:"Liechtenstein",dial_code:"+423",code:"LI"},{name:"Lithuania",dial_code:"+370",code:"LT"},{name:"Luxembourg",dial_code:"+352",code:"LU"},{name:"Macao",dial_code:"+853",code:"MO"},{name:"Macedonia",dial_code:"+389",code:"MK"},{name:"Madagascar",dial_code:"+261",code:"MG"},{name:"Malawi",dial_code:"+265",code:"MW"},{name:"Malaysia",dial_code:"+60",code:"MY"},{name:"Maldives",dial_code:"+960",code:"MV"},{name:"Mali",dial_code:"+223",code:"ML"},{name:"Malta",dial_code:"+356",code:"MT"},{name:"Marshall Islands",dial_code:"+692",code:"MH"},{name:"Martinique",dial_code:"+596",code:"MQ"},{name:"Mauritania",dial_code:"+222",code:"MR"},{name:"Mauritius",dial_code:"+230",code:"MU"},{name:"Mayotte",dial_code:"+262",code:"YT"},{name:"Mexico",dial_code:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM"},{name:"Moldova",dial_code:"+373",code:"MD"},{name:"Monaco",dial_code:"+377",code:"MC"},{name:"Mongolia",dial_code:"+976",code:"MN"},{name:"Montenegro",dial_code:"+382",code:"ME"},{name:"Montserrat",dial_code:"+1664",code:"MS"},{name:"Morocco",dial_code:"+212",code:"MA"},{name:"Mozambique",dial_code:"+258",code:"MZ"},{name:"Myanmar",dial_code:"+95",code:"MM"},{name:"Namibia",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",code:"NR"},{name:"Nepal",dial_code:"+977",code:"NP"},{name:"Netherlands",dial_code:"+31",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",code:"AN"},{name:"New Caledonia",dial_code:"+687",code:"NC"},{name:"New Zealand",dial_code:"+64",code:"NZ"},{name:"Nicaragua",dial_code:"+505",code:"NI"},{name:"Niger",dial_code:"+227",code:"NE"},{name:"Nigeria",dial_code:"+234",code:"NG"},{name:"Niue",dial_code:"+683",code:"NU"},{name:"Norfolk Island",dial_code:"+672",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP"},{name:"Norway",dial_code:"+47",code:"NO"},{name:"Oman",dial_code:"+968",code:"OM"},{name:"Pakistan",dial_code:"+92",code:"PK"},{name:"Palau",dial_code:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG"},{name:"Paraguay",dial_code:"+595",code:"PY"},{name:"Peru",dial_code:"+51",code:"PE"},{name:"Philippines",dial_code:"+63",code:"PH"},{name:"Pitcairn",dial_code:"+872",code:"PN"},{name:"Poland",dial_code:"+48",code:"PL"},{name:"Portugal",dial_code:"+351",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",code:"PR"},{name:"Qatar",dial_code:"+974",code:"QA"},{name:"Romania",dial_code:"+40",code:"RO"},{name:"Russia",dial_code:"+7",code:"RU"},{name:"Rwanda",dial_code:"+250",code:"RW"},{name:"Reunion",dial_code:"+262",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",code:"LC"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC"},{name:"Samoa",dial_code:"+685",code:"WS"},{name:"San Marino",dial_code:"+378",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",code:"SA"},{name:"Senegal",dial_code:"+221",code:"SN"},{name:"Serbia",dial_code:"+381",code:"RS"},{name:"Seychelles",dial_code:"+248",code:"SC"},{name:"Sierra Leone",dial_code:"+232",code:"SL"},{name:"Singapore",dial_code:"+65",code:"SG"},{name:"Slovakia",dial_code:"+421",code:"SK"},{name:"Slovenia",dial_code:"+386",code:"SI"},{name:"Solomon Islands",dial_code:"+677",code:"SB"},{name:"Somalia",dial_code:"+252",code:"SO"},{name:"South Africa",dial_code:"+27",code:"ZA"},{name:"South Sudan",dial_code:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS"},{name:"Spain",dial_code:"+34",code:"ES"},{name:"Sri Lanka",dial_code:"+94",code:"LK"},{name:"Sudan",dial_code:"+249",code:"SD"},{name:"Suriname",dial_code:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ"},{name:"Swaziland",dial_code:"+268",code:"SZ"},{name:"Sweden",dial_code:"+46",code:"SE"},{name:"Switzerland",dial_code:"+41",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG"},{name:"Tokelau",dial_code:"+690",code:"TK"},{name:"Tonga",dial_code:"+676",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT"},{name:"Tunisia",dial_code:"+216",code:"TN"},{name:"Turkey",dial_code:"+90",code:"TR"},{name:"Turkmenistan",dial_code:"+993",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC"},{name:"Tuvalu",dial_code:"+688",code:"TV"},{name:"Uganda",dial_code:"+256",code:"UG"},{name:"Ukraine",dial_code:"+380",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",code:"AE"},{name:"United Kingdom",dial_code:"+44",code:"GB"},{name:"United States",dial_code:"+1",code:"US"},{name:"Uruguay",dial_code:"+598",code:"UY"},{name:"Uzbekistan",dial_code:"+998",code:"UZ"},{name:"Vanuatu",dial_code:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF"},{name:"Yemen",dial_code:"+967",code:"YE"},{name:"Zambia",dial_code:"+260",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",code:"ZW"}],getStripePromise=i=>loadStripe(i),formattedData=i=>({family_member_id:i.family_member_id,status:i.status,date:i.date,time_slots:i.time_slots,doct_id:i.doct_id,dept_id:i.dept_id,type:i.type,payment_status:i.payment_status,fee:parseFloat(i.fee).toFixed(1),service_charge:parseFloat(i.service_charge).toFixed(1),tax:parseFloat(i.tax).toFixed(1),unit_tax_amount:parseFloat(i.unit_tax_amount).toFixed(1),total_amount:parseFloat(i.total_amount).toFixed(1),unit_total_amount:parseFloat(i.unit_total_amount).toFixed(1),invoice_description:i.invoice_description,payment_method:i.payment_method,user_id:i.user_id,is_wallet_txn:i.is_wallet_txn,coupon_id:i.coupon_id,coupon_title:i.coupon_title,coupon_value:i.coupon_value,coupon_off_amount:parseFloat(i.coupon_off_amount).toFixed(1),source:i.source}),CheckoutForm=({onSuccess:i,onCancel:s})=>{const o=useStripe(),a=useElements(),_=useToast(),[$,j]=reactExports.useState(!1),[_e,et]=reactExports.useState(null),[tt,rt]=reactExports.useState(!1);reactExports.useEffect(()=>{if(!a)return;const nt=a.getElement("payment");if(nt){const ut=ct=>rt(ct.complete);return nt.on("change",ut),()=>nt.off("change",ut)}},[a]);const it=async nt=>{if(nt.preventDefault(),!o||!a||!tt){showToast(_,"error","Please complete the payment details.");return}j(!0);try{const{error:ut,paymentIntent:ct}=await o.confirmPayment({elements:a,confirmParams:{return_url:`${window.location.origin}/stripe-payment`}});ut?(et(ut.message),showToast(_,"error",ut.message),s()):(ct==null?void 0:ct.status)==="succeeded"&&i(ct.id)}catch(ut){et(ut.message),showToast(_,"error",ut.message),s()}finally{j(!1)}};return jsxRuntimeExports.jsx(Flex,{flexDir:"column",w:"100%",children:jsxRuntimeExports.jsxs(Box,{as:"form",onSubmit:it,children:[jsxRuntimeExports.jsx(PaymentElement,{}),jsxRuntimeExports.jsx(Center,{mt:4,children:jsxRuntimeExports.jsx(Button,{size:"sm",type:"submit",colorScheme:"blue",w:"100%",isLoading:$,disabled:!o,children:"Pay Now"})}),_e&&jsxRuntimeExports.jsx(Text,{color:"red.500",children:_e})]})})},StripePaymentController=({isOpen:i,onClose:s,data:o,nextFn:a,cancelFn:_,type:$})=>{const{paymentGetwaysLoading:j,paymentGetwaysData:_e}=PaymentGetwayData(),et=useToast(),[tt,rt]=reactExports.useState(null),[it,nt]=reactExports.useState({name:o.name||"",address:"",city:"",state:"",country:""}),ut=ot=>{const{name:lt,value:at}=ot.target;nt(ft=>({...ft,[lt]:at}))},ct=async ot=>{ot.preventDefault();try{const lt={name:it.name,address_line1:it.address,city:it.city,state:it.state,country:it.country,STRIPE_SECRET_KEY:_e.secret,amount:$==="Wallet"?o.amount:o.total_amount,currency:"USD",payload:JSON.stringify($==="Wallet"?o:formattedData(o)),description:o.desc,type:$},at=await ADD(user.token,"create_intent",lt);if(at.response!==200)throw new Error(at.message);rt(at)}catch(lt){showToast(et,"error",lt.message)}},st=ot=>{rt(null),a(ot),s()},dt=()=>{rt(null),_==null||_(),s()};return j?jsxRuntimeExports.jsx(Loading,{}):jsxRuntimeExports.jsxs(Modal,{isOpen:i,onClose:s,isCentered:!0,size:{base:"full",md:"md"},closeOnOverlayClick:!1,scrollBehavior:"inside",children:[jsxRuntimeExports.jsx(ModalOverlay,{}),jsxRuntimeExports.jsxs(ModalContent,{children:[jsxRuntimeExports.jsx(ModalHeader,{children:"Stripe Secure Payment"}),jsxRuntimeExports.jsx(ModalCloseButton,{}),jsxRuntimeExports.jsx(Divider,{}),jsxRuntimeExports.jsx(ModalBody,{children:jsxRuntimeExports.jsx(Center,{children:tt?jsxRuntimeExports.jsx(Elements,{stripe:getStripePromise(_e.key),options:{clientSecret:tt.client_secret},children:jsxRuntimeExports.jsx(CheckoutForm,{onSuccess:st,onCancel:dt})}):jsxRuntimeExports.jsx(Box,{as:"form",onSubmit:ct,p:4,borderWidth:"1px",borderRadius:"md",children:jsxRuntimeExports.jsxs(VStack,{spacing:4,children:[jsxRuntimeExports.jsx(Text,{fontWeight:"600",bg:"blue.100",p:2,borderRadius:"md",textAlign:"center",children:"Please Fill the Details"}),jsxRuntimeExports.jsxs(FormControl,{isRequired:!0,children:[jsxRuntimeExports.jsx(FormLabel,{children:"Name"}),jsxRuntimeExports.jsx(Input,{name:"name",value:it.name,onChange:ut})]}),jsxRuntimeExports.jsxs(FormControl,{isRequired:!0,children:[jsxRuntimeExports.jsx(FormLabel,{children:"Address"}),jsxRuntimeExports.jsx(Input,{name:"address",value:it.address,onChange:ut})]}),jsxRuntimeExports.jsxs(FormControl,{isRequired:!0,children:[jsxRuntimeExports.jsx(FormLabel,{children:"City"}),jsxRuntimeExports.jsx(Input,{name:"city",value:it.city,onChange:ut})]}),jsxRuntimeExports.jsxs(FormControl,{isRequired:!0,children:[jsxRuntimeExports.jsx(FormLabel,{children:"State"}),jsxRuntimeExports.jsx(Input,{name:"state",value:it.state,onChange:ut})]}),jsxRuntimeExports.jsxs(FormControl,{isRequired:!0,children:[jsxRuntimeExports.jsx(FormLabel,{children:"Country"}),jsxRuntimeExports.jsx(Select,{name:"country",value:it.country,onChange:ut,placeholder:"Select country",children:ISD_CODES.map(ot=>jsxRuntimeExports.jsx("option",{value:ot.name,children:ot.name},ot.dial_code))})]}),jsxRuntimeExports.jsx(Button,{type:"submit",colorScheme:"blue",w:"full",children:"Submit"})]})})})})]})]})},currency_name="INR",RazorpayPaymentController=({isOpen:i,onClose:s,data:o,nextFn:a,cancelFn:_,type:$})=>{const{paymentGetwaysData:j}=PaymentGetwayData(),[_e,et]=reactExports.useState(!1),tt=useToast(),rt=reactExports.useRef(null),{settingsData:it}=useSettingsData();return reactExports.useEffect(()=>{const nt=it==null?void 0:it.find(st=>st.id_name==="clinic_name"),ut=async st=>{if(rt.current)return;const dt={key:j==null?void 0:j.key,amount:o.amount*100,currency:currency_name,name:nt==null?void 0:nt.value,description:o.desc||"Test Transaction",order_id:st,handler:function(ot){a(ot.razorpay_payment_id),s(),rt.current=null,rt.current.close(),rt.current=null},modal:{ondismiss:function(){s(),et(!1),rt.current=null,_&&_(),rt.current.close(),rt.current=null}},prefill:{name:(user==null?void 0:user.name)||"John Doe",email:(user==null?void 0:user.email)||"johndoe@example.com",contact:(user==null?void 0:user.phone)||"9876543210",phone:(user==null?void 0:user.phone)||"9876543210"},notes:{address:"Razorpay Corporate Office"},theme:{color:"#20409A"}};rt.current=new window.Razorpay(dt),rt.current.on("payment.failed",function(ot){alert(ot.error.description),s(),et(!1),rt.current=null,_&&_()}),rt.current.on("payment.closed",function(){s(),et(!1),rt.current=null,_&&_()}),rt.current.open()};return i&&(async()=>{let st={amount:$==="Wallet"?o.amount:o.total_amount,key:j==null?void 0:j.key,secret:j==null?void 0:j.secret,type:$,payload:JSON.stringify(o)};try{et(!0);const dt=await ADD(user.token,"create_rz_order",st);s(),et(!1),ut(dt.id)}catch(dt){et(!1),showToast(tt,"error",JSON.stringify(dt)),s(),rt.current=null}})(),()=>{rt.current&&(rt.current.close(),rt.current=null)}},[_,o,o.amount,o.desc,i,a,s,j==null?void 0:j.key,j==null?void 0:j.secret,tt,$]),jsxRuntimeExports.jsxs(Modal,{isOpen:i,onClose:s,isCentered:!0,children:[jsxRuntimeExports.jsx(ModalOverlay,{bg:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(8px)"}),jsxRuntimeExports.jsx(ModalContent,{bg:"transparent",boxShadow:"none",children:jsxRuntimeExports.jsx(ModalBody,{children:jsxRuntimeExports.jsx(Center,{children:_e?jsxRuntimeExports.jsx(Spinner,{size:"xl",thickness:"4px",color:"#FFF"}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Text,{fontSize:"md",children:"Processing Payment....."}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:"Please Wait!"})]})})})})]})};let minAmount=100;const AddMoney=({isOpen:i,onClose:s,cancelRef:o,closeModal:a,openModal:_})=>{const{paymentGetwaysLoading:$,paymentGetwaysData:j}=PaymentGetwayData(),[_e,et]=reactExports.useState(""),[tt,rt]=reactExports.useState(null),[it,nt]=reactExports.useState(!1),ut=useToast(),ct=useQueryClient(),{isOpen:st,onOpen:dt,onClose:ot}=useDisclosure();reactExports.useEffect(()=>{j&&rt(j.title.toLowerCase())},[j]);const lt={amount:parseFloat(_e).toFixed(2),user_id:user.id,desc:`Wallet Recharge Transaction for userid -  ${user.id}`,method:tt,payment_method:"Online",transaction_type:"Credited",description:"Amount credited to user wallet",name:`${user.f_name} ${user.l_name}`},at=async()=>{let St={phone:user==null?void 0:user.phone},wt=user.token;const Pt=await ADD(wt,"re_login_phone",St);if(Pt.response===200)return localStorage.setItem("user",JSON.stringify({...Pt.data,token:user.token})),Pt.data;ut({title:Pt.message||"Something went wrong",status:"error",duration:3e3,isClosable:!0,position:"top"})},ft=async()=>{let St={phone:user==null?void 0:user.phone},wt=user.token;nt(!0);const Pt=await ADD(wt,"re_login_phone",St);nt(!1),Pt.response===200?(localStorage.setItem("user",JSON.stringify({...Pt.data,token:user.token})),ut({title:"Success",status:"success",duration:3e3,isClosable:!0,position:"top"}),_()):ut({title:Pt.message||"Something went wrong",status:"error",duration:3e3,isClosable:!0,position:"top"})},{isLoading:ht}=useQuery({queryKey:["user"],queryFn:at,refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0});if(ht||$)return jsxRuntimeExports.jsx(Loading,{});const mt=St=>{const wt=St.target.value.replace(/[^0-9]/g,"");et(wt.slice(0,5))},gt=async St=>{let wt={user_id:user.id,amount:_e,payment_transaction_id:St||"Test",payment_method:tt,transaction_type:"Credited",description:"Amount credited to user wallet"};try{nt(!0);let Pt=await ADD(user.token,"add_wallet_money",wt);nt(!1),Pt.response===200?(s(),showToast(ut,"success","Success!"),ct.invalidateQueries("user"),_()):showToast(ut,"error",Pt.message)}catch{nt(!1),showToast(ut,"error","Something went wrong!")}},vt=()=>{if(!tt)return ut({title:"No active payment methods!",status:"error",duration:3e3,isClosable:!0,position:"top"});_e<100?ut({title:`Make sure the amount is ${currency} 100  or above`,status:"error",duration:3e3,isClosable:!0,position:"top"}):(nt(!0),s(),a(),dt())};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(AlertDialog,{isOpen:i,leastDestructiveRef:o,onClose:s,isCentered:!0,children:jsxRuntimeExports.jsx(ModalOverlay,{children:jsxRuntimeExports.jsxs(AlertDialogContent,{p:0,children:[jsxRuntimeExports.jsx(ModalHeader,{fontSize:"lg",fontWeight:"bold",children:"Add Money To Your Wallet"}),jsxRuntimeExports.jsxs(ModalBody,{children:[jsxRuntimeExports.jsxs(FormControl,{children:[jsxRuntimeExports.jsx(FormLabel,{children:"Enter Amount"}),jsxRuntimeExports.jsxs(InputGroup,{children:[jsxRuntimeExports.jsx(InputLeftAddon,{children:currency}),jsxRuntimeExports.jsx(Input,{type:"tel",value:_e,onChange:mt,placeholder:"Enter amount in rupees",pr:"2.5rem",maxLength:5})]}),jsxRuntimeExports.jsx(FormHelperText,{children:`Minimum ${minAmount} ${currency} required to place this order`})]}),jsxRuntimeExports.jsx(Flex,{w:"100%",gap:5,mt:5,children:[250,500,1e3,1500,2e3].map(St=>jsxRuntimeExports.jsx(Button,{colorScheme:"gray",variant:"outline",size:"sm",onClick:()=>et(St),mr:2,children:St},St))})]}),jsxRuntimeExports.jsxs(ModalFooter,{children:[jsxRuntimeExports.jsx(Button,{ref:o,onClick:s,children:"Cancel"}),jsxRuntimeExports.jsx(Button,{colorScheme:"green",onClick:vt,ml:3,w:"120px",isLoading:ht||$||tt==="razorpay"&&it,children:"Add"})]})]})})}),st&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[tt==="stripe"&&jsxRuntimeExports.jsx(StripePaymentController,{isOpen:st,onClose:ot,nextFn:gt,data:lt,cancelFn:()=>nt(!1),type:"Wallet"}),tt==="razorpay"&&jsxRuntimeExports.jsx(RazorpayPaymentController,{isOpen:st,onClose:ot,nextFn:ft,data:lt,cancelFn:()=>nt(!1),type:"Wallet"})]})]})},getTransaction=async()=>{let i=`get_wallet_txn/user/${user==null?void 0:user.id}`;const s=await GET(i);if(s.response!=200)throw Error(s.messege);return s.data};function WalletModel({isModalOpen:i,closeModal:s,openModal:o}){const a=useToast(),_=user==null?void 0:user.token,{isOpen:$,onOpen:j,onClose:_e}=useDisclosure(),et=reactExports.useRef(),[tt]=useMediaQuery("(max-width: 600px)"),rt=async()=>{let ut={phone:user==null?void 0:user.phone};const ct=await ADD(user.token,"re_login_phone",ut);if(ct.response===200)return localStorage.setItem("user",JSON.stringify({...ct.data,token:user.token})),ct.data;ct.response===201?a({title:ct.messege,status:"error",duration:3e3,isClosable:!0,position:"top"}):a({title:"Something Went Wrong",status:"error",duration:3e3,isClosable:!0,position:"top"})},{isLoading:it,data:nt}=useQuery({queryKey:["user"],queryFn:rt,refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0});return it?jsxRuntimeExports.jsx(Loading,{}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsxs(Modal,{isOpen:i,onClose:s,isCentered:!0,scrollBehavior:"inside",closeOnOverlayClick:!1,size:tt?"full":"xl",children:[jsxRuntimeExports.jsx(ModalOverlay,{}),jsxRuntimeExports.jsxs(ModalContent,{p:2,m:0,children:[jsxRuntimeExports.jsxs(ModalBody,{p:0,children:[jsxRuntimeExports.jsx(ModalCloseButton,{zIndex:999,color:"#fff"}),jsxRuntimeExports.jsxs(Box,{py:0,width:"100%",children:[it?jsxRuntimeExports.jsx(Box,{width:"100%",p:2,borderRadius:5,height:"200px",position:"relative",overflow:"hidden",children:jsxRuntimeExports.jsx(Skeleton,{width:"100%",height:"100%"})}):jsxRuntimeExports.jsxs(Box,{width:"100%",p:2,bg:"primary.main",borderRadius:5,height:"200px",position:"relative",overflow:"hidden",children:[jsxRuntimeExports.jsx(Box,{bg:"green",w:150,h:150,borderRadius:"50%",position:"absolute",left:"-40px",bottom:"-40px"}),jsxRuntimeExports.jsx(Box,{bg:"green",w:150,h:150,borderRadius:"50%",position:"absolute",right:"-40px",top:"-40px"}),jsxRuntimeExports.jsxs(Box,{display:"flex",alignItems:"center",justifyContent:"center",h:"100%",color:"#fff",flexDirection:"column",children:[jsxRuntimeExports.jsx(Text,{fontWeight:500,mb:0,p:0,fontSize:18,children:"Current Balance"}),jsxRuntimeExports.jsxs(Text,{fontWeight:500,mt:1,p:0,fontSize:16,children:[currency," ",(nt==null?void 0:nt.wallet_amount)!==null?nt==null?void 0:nt.wallet_amount:0]}),jsxRuntimeExports.jsx(Button,{size:"sm",bg:"#54B435",fontSize:12,color:"#fff",width:"200px",borderRadius:"10",_hover:{transform:"translateY(-2px)",boxShadow:"lg",background:"#54B435",fontSize:"12px",color:"#fff"},onClick:j,mt:5,children:"Add Money"})]})]}),jsxRuntimeExports.jsx(Transection,{user,token:_})]})]}),jsxRuntimeExports.jsx(ModalFooter,{px:0,children:jsxRuntimeExports.jsx(Button,{w:"100%",mt:3,bg:useColorModeValue("gray.800","gray.500"),color:"white",rounded:"md",_hover:{transform:"translateY(-2px)",boxShadow:"lg"},onClick:s,size:"sm",children:"Close"})})]})]}),jsxRuntimeExports.jsx(AddMoney,{isOpen:$,onClose:_e,cancelRef:et,user,token:_,closeModal:s,openModal:o})]})}const Transection=()=>{const{isLoading:i,data:s}=useQuery({queryKey:["transactions"],queryFn:getTransaction,refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:0});return i?jsxRuntimeExports.jsxs(Box,{py:5,px:1,children:[jsxRuntimeExports.jsx(Skeleton,{h:5}),jsxRuntimeExports.jsxs(Box,{mt:5,children:[jsxRuntimeExports.jsx(Skeleton,{h:2}),jsxRuntimeExports.jsx(Skeleton,{h:2}),jsxRuntimeExports.jsx(Skeleton,{h:2}),jsxRuntimeExports.jsx(Skeleton,{h:2}),jsxRuntimeExports.jsx(Skeleton,{h:2})]})]}):jsxRuntimeExports.jsxs(Box,{px:1,maxH:{base:"90vh",md:"40vh"},overflow:"scroll",mt:5,children:[jsxRuntimeExports.jsx(Heading,{fontSize:16,children:"Transaction History"}),jsxRuntimeExports.jsx(Box,{mt:5,maxH:"40%",overflow:"hidden",children:jsxRuntimeExports.jsx(List,{children:s!=null&&s.length?s==null?void 0:s.map(o=>jsxRuntimeExports.jsx(Accordion,{allowToggle:!0,children:jsxRuntimeExports.jsxs(AccordionItem,{children:[jsxRuntimeExports.jsx("h2",{children:jsxRuntimeExports.jsx(AccordionButton,{py:3,children:jsxRuntimeExports.jsxs(Flex,{w:"100%",textAlign:"left",gap:4,alignItems:"start",justifyContent:"space-between",children:[o.transaction_type==="Credited"?jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(AddIcon,{}),size:"xs",borderRadius:"full",colorScheme:"green"}):jsxRuntimeExports.jsx(IconButton,{icon:jsxRuntimeExports.jsx(MinusIcon,{}),size:"xs",borderRadius:"full",colorScheme:"red"})," ",jsxRuntimeExports.jsxs(Text,{fontSize:"sm",textAlign:"start",mb:0,w:"100%",fontWeight:600,color:o.transaction_type==="Credited"?"green.500":"red.500",children:[currency," ",o==null?void 0:o.amount," ",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx(Text,{fontSize:"13",textAlign:"start",mb:0,w:"100%",fontWeight:500,color:"#000",children:o!=null&&o.notes||o.transaction_type==="Credited"?"Amount Creadited To Your Wallet":"Amount Debited From Your Wallet"})]}),jsxRuntimeExports.jsx(Text,{fontSize:12,maxW:"70%",textAlign:"left",mb:0,color:o.transaction_type==="Credited"?"green.500":"red.500",fontWeight:600,children:o==null?void 0:o.transaction_type})]})})}),jsxRuntimeExports.jsxs(AccordionPanel,{pb:4,children:[jsxRuntimeExports.jsxs(Text,{mb:0,fontSize:14,children:["Transaction ID : ",o.id]}),jsxRuntimeExports.jsxs(Text,{mb:0,fontSize:14,children:["Payment ID : ",o.payment_transaction_id||"N/A"]}),jsxRuntimeExports.jsx(Text,{mb:0,fontSize:14,children:hooks(o.created_at).format("DD MMM YY HH:MM a")})]})]})},o.id)):jsxRuntimeExports.jsxs(Alert,{status:"warning",children:[jsxRuntimeExports.jsx(AlertIcon,{}),"No Transaction found"]})})})]})},LinksPublic=["Home","Doctors"],LinksAuth=["Appointments"],LinksPublic2=["About-us","Contact-us"],SideBarLinks=[{name:"Home",icon:jsxRuntimeExports.jsx(AiFillHome,{}),auth:!0},{name:"Doctors",icon:jsxRuntimeExports.jsx(FaUserMd,{}),auth:!0},{name:"Family-Members",icon:jsxRuntimeExports.jsx(HiUsers,{}),auth:!!user},{name:"Appointments",icon:jsxRuntimeExports.jsx(AiOutlineHistory,{}),auth:!!user},{name:"Vitals",icon:jsxRuntimeExports.jsx(MdHealthAndSafety,{}),auth:!!user},{name:"Prescriptions",icon:jsxRuntimeExports.jsx(BsPrescription,{}),auth:!!user},{name:"Files",icon:jsxRuntimeExports.jsx(CgFileDocument,{}),auth:!!user},{name:"About-Us",icon:jsxRuntimeExports.jsx(AiFillInfoCircle,{}),auth:!0},{name:"Contact-Us",icon:jsxRuntimeExports.jsx(BsFillTelephoneFill,{}),auth:!0}];function TopbarNew(){const{settingsData:i}=useSettingsData(),s=reactExports.useRef(),o=useNavigate(),[a,_]=reactExports.useState("Home"),{isOpen:$,onOpen:j,onClose:_e}=useDisclosure(),{isOpen:et,onOpen:tt,onClose:rt}=useDisclosure(),it=i==null?void 0:i.find(st=>st.id_name==="logo"),nt=i==null?void 0:i.find(st=>st.id_name==="clinic_name"),ut=i==null?void 0:i.find(st=>st.id_name==="play_store_link"),ct=i==null?void 0:i.find(st=>st.id_name==="app_store_link");return jsxRuntimeExports.jsxs(Box,{bg:"primary.main",borderBottom:"0.5px solid",borderColor:"gray.400",position:"sticky",top:"0",left:"0",zIndex:999,children:[jsxRuntimeExports.jsxs(Box,{className:"container",children:[" ",jsxRuntimeExports.jsxs(Flex,{width:"100%",bg:"primary.main",color:useColorModeValue("#fff","white"),zIndex:99,minH:"60px",py:{base:2},borderStyle:"solid",align:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsx(Flex,{display:{base:"flex",md:"none"},children:jsxRuntimeExports.jsx(IconButton,{size:"lg",icon:jsxRuntimeExports.jsx(HamburgerIcon,{color:"#fff"}),"aria-label":"Open Menu",display:{md:"none"},onClick:$?_e:j,variant:"ghost",_hover:{background:"none"},ref:s})}),jsxRuntimeExports.jsxs(Flex,{justify:{base:"center",md:"start"},mr:{base:-7,md:0},children:[jsxRuntimeExports.jsxs(Flex,{gap:2,align:"center",as:Link,to:"/",children:[jsxRuntimeExports.jsx(Image$1,{w:10,src:`${imageBaseURL}/${it==null?void 0:it.value}`,fallbackSrc:"/vite.svg"}),jsxRuntimeExports.jsx(Text,{fontFamily:"Quicksand, sans-serif",fontWeight:800,fontSize:[16,18,20],display:{base:" ",md:"block"},children:nt.value})]}),jsxRuntimeExports.jsx(Flex,{display:{base:"none",md:"flex"},ml:10,children:jsxRuntimeExports.jsx(DesktopNav,{})})]}),jsxRuntimeExports.jsxs(Flex,{alignItems:"center",gap:1,children:[jsxRuntimeExports.jsx(NotificationIcon,{}),user?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[" ",jsxRuntimeExports.jsxs(Box,{display:{base:"block",md:"block"},children:[" ",jsxRuntimeExports.jsxs(Menu,{children:[jsxRuntimeExports.jsx(MenuButton,{as:Button,rounded:"full",variant:"link",cursor:"pointer",minW:0,children:jsxRuntimeExports.jsx(Avatar,{size:"sm",src:`${imageBaseURL}/${user.image}`,name:`${user==null?void 0:user.f_name} ${user==null?void 0:user.l_name} `,color:"#fff"})}),jsxRuntimeExports.jsxs(MenuList,{color:"#000",children:[jsxRuntimeExports.jsx(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(FaUserAlt,{fontSize:16}),onClick:()=>{_e(),o("/profile")},children:"Profile"}),jsxRuntimeExports.jsxs(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(MdFamilyRestroom,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{_e(),o("/family-members")},children:["Family Members"," "]}),jsxRuntimeExports.jsxs(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(AiOutlineHistory,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{_e(),o("/appointments")},children:["My Appointments"," "]}),jsxRuntimeExports.jsxs(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(MdHealthAndSafety,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{_e(),o("/vitals")},children:["Vitals"," "]}),jsxRuntimeExports.jsx(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(CgFileDocument,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{_e(),o("/files")},children:"Files"}),jsxRuntimeExports.jsx(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(BsPrescription,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{_e(),o("/prescriptions")},children:"Prescriptions"}),jsxRuntimeExports.jsxs(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(IoMdWallet,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:tt,children:["Wallet"," "]}),jsxRuntimeExports.jsx(MenuDivider,{}),jsxRuntimeExports.jsx(MenuItem,{fontWeight:500,color:"gray.800",icon:jsxRuntimeExports.jsx(BiLogOut,{fontSize:16,fontWeight:600,color:"gray.500"}),onClick:()=>{localStorage.removeItem("user"),o("/",{replace:!0}),window.location.reload()},children:"Logout"})]})]})]})," "]}):jsxRuntimeExports.jsxs(Box,{display:{base:"none",md:"Flex"},gap:5,children:[jsxRuntimeExports.jsx(Button,{fontSize:"sm",fontWeight:500,variant:"link",href:"#",color:"#fff",as:Link,to:"/login",children:"Sign In"}),jsxRuntimeExports.jsx(Button,{fontSize:"sm",fontWeight:600,color:"white",variant:"ghost",bg:"pink.400",href:"#",_hover:{bg:"pink.300"},w:"100px",h:"30px",onClick:()=>{o("/signup")},children:"Sign Up"})]})]})]})]}),$?jsxRuntimeExports.jsxs(Drawer,{isOpen:$,placement:"left",onClose:_e,finalFocusRef:s,children:[jsxRuntimeExports.jsx(ModalOverlay,{}),jsxRuntimeExports.jsxs(DrawerContent,{children:[jsxRuntimeExports.jsx(ModalHeader,{p:0,children:jsxRuntimeExports.jsx(Box,{children:user?jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsxs(Box,{px:4,py:2,children:[" ",jsxRuntimeExports.jsxs(Flex,{alignItems:"center",justifyContent:"space-between",children:[" ",jsxRuntimeExports.jsxs(Text,{fontSize:"16px",mb:0,children:[user==null?void 0:user.f_name," ",user==null?void 0:user.l_name]}),jsxRuntimeExports.jsxs(Flex,{gap:0,children:[" ",jsxRuntimeExports.jsx(Button,{variant:"ghost",px:0,onClick:()=>{_e(),tt()},children:jsxRuntimeExports.jsx(BiWallet,{fontSize:22})}),jsxRuntimeExports.jsxs(Menu,{children:[jsxRuntimeExports.jsx(MenuButton,{as:IconButton,variant:"ghost",colorScheme:"gray",icon:jsxRuntimeExports.jsx(BiUser,{fontSize:20})}),jsxRuntimeExports.jsxs(MenuList,{children:[jsxRuntimeExports.jsx(MenuItem,{onClick:()=>{_e(),o("/profile")},fontSize:16,children:"Profile"}),jsxRuntimeExports.jsx(MenuItem,{fontSize:16,onClick:()=>{localStorage.removeItem("user"),o("/",{replace:!0}),window.location.reload()},children:"Logout"})]})]})]})]}),jsxRuntimeExports.jsxs(Text,{fontSize:12,mt:"-8px",fontWeight:400,children:["Member Since"," ",hooks(user==null?void 0:user.created_at).format("MMM DD YYYY")]})]})," ",jsxRuntimeExports.jsx(Divider,{})]}):jsxRuntimeExports.jsxs(Flex,{justify:"space-around",borderBottom:"1px solid",borderColor:useColorModeValue("gray.100","gray.500"),pb:2,children:[" ",jsxRuntimeExports.jsx(Button,{fontSize:"sm",fontWeight:500,href:"#",colorScheme:"green",as:Link,to:"/login",onClick:()=>{o("/login"),_e()},w:"100px",h:"30px",children:"Sign In"}),jsxRuntimeExports.jsx(Button,{fontSize:"sm",fontWeight:600,color:"white",variant:"ghost",bg:"pink.400",href:"#",_hover:{bg:"pink.300"},w:"100px",h:"30px",onClick:()=>{o("/signup"),_e()},children:"Sign Up"})]})})}),jsxRuntimeExports.jsx(ModalBody,{pr:0,children:jsxRuntimeExports.jsx(Box,{children:SideBarLinks==null?void 0:SideBarLinks.map(st=>{if(st.auth===!0)return jsxRuntimeExports.jsx(Box,{as:Link,href:"#",style:{textDecoration:"none"},_focus:{boxShadow:"none"},onClick:()=>{_(st.name),_e()},to:`/${st.name.toLocaleLowerCase()}`,children:jsxRuntimeExports.jsxs(Flex,{align:"center",p:"2",mx:"4",mt:3,borderRadius:"lg",role:"group",cursor:"pointer",bg:a===st.name?"primary.bg":"transperent",color:a===st.name&&"white",_hover:{bg:"primary.bg",color:"white"},gap:5,children:[st.icon,jsxRuntimeExports.jsx(Text,{mb:0,children:st.name})]})},st)})})}),jsxRuntimeExports.jsxs(ModalFooter,{flexDir:"column",alignItems:"start",borderTop:"1px solid",borderColor:useColorModeValue("gray.100","gray.600"),p:3,children:[jsxRuntimeExports.jsxs(Text,{textAlign:"left",fontSize:14,mb:2,fontWeight:500,children:["Download the ",nt.value," App form -"]}),jsxRuntimeExports.jsxs(Flex,{gap:5,justifyContent:"left",w:"100%",children:[jsxRuntimeExports.jsxs(Link,{href:ut,isExternal:!0,children:[" ",jsxRuntimeExports.jsx(Image$1,{src:"/play store.png",w:"120px"})]}),jsxRuntimeExports.jsx(Link,{href:ct,isExternal:!0,children:jsxRuntimeExports.jsx(Image$1,{src:"/app store.png",w:"120px"})})]})]})]})]}):null,user&&jsxRuntimeExports.jsx(WalletModel,{isModalOpen:et,closeModal:rt,openModal:rt})]})}const DesktopNav=()=>jsxRuntimeExports.jsxs(HStack,{as:"nav",spacing:2,display:{base:"none",md:"flex"},children:[LinksPublic.map(i=>jsxRuntimeExports.jsx(NavLink,{children:i},i)),user&&LinksAuth.map(i=>jsxRuntimeExports.jsx(NavLink,{children:i},i)),LinksPublic2.map(i=>jsxRuntimeExports.jsx(NavLink,{children:i},i))]}),NavLink=i=>{const{children:s}=i;return jsxRuntimeExports.jsx(Box,{as:Link,px:2,py:1,rounded:"md",_hover:{textDecoration:"none",bg:"none"},to:s.toLowerCase(),children:s})};var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(i,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(i){return document.createElement(i)}function extendPrototype(i,s){var o,a=i.length,_;for(o=0;o<a;o+=1){_=i[o].prototype;for(var $ in _)Object.prototype.hasOwnProperty.call(_,$)&&(s.prototype[$]=_[$])}}function getDescriptor(i,s){return Object.getOwnPropertyDescriptor(i,s)}function createProxyFunction(i){function s(){}return s.prototype=i,s}var audioControllerFactory=function(){function i(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return i.prototype={addAudio:function(o){this.audios.push(o)},pause:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].pause()},resume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].resume()},setRate:function(o){var a,_=this.audios.length;for(a=0;a<_;a+=1)this.audios[a].setRate(o)},createAudio:function(o){return this.audioFactory?this.audioFactory(o):window.Howl?new window.Howl({src:[o]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(o){this.audioFactory=o},setVolume:function(o){this._volume=o,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].volume(this._volume*(this._isMuted?0:1))}},function(){return new i}}(),createTypedArray=function(){function i(o,a){var _=0,$=[],j;switch(o){case"int16":case"uint8c":j=1;break;default:j=1.1;break}for(_=0;_<a;_+=1)$.push(j);return $}function s(o,a){return o==="float32"?new Float32Array(a):o==="int16"?new Int16Array(a):o==="uint8c"?new Uint8ClampedArray(a):i(o,a)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s:i}();function createSizedArray(i){return Array.apply(null,{length:i})}function _typeof$6(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(o){return typeof o}:_typeof$6=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$6(i)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var i=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],s,o=i.length;for(s=0;s<o;s+=1)BMMath[i[s]]=Math[i[s]]})(),BMMath.random=Math.random,BMMath.abs=function(i){var s=_typeof$6(i);if(s==="object"&&i.length){var o=createSizedArray(i.length),a,_=i.length;for(a=0;a<_;a+=1)o[a]=Math.abs(i[a]);return o}return Math.abs(i)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(i){i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.display="block",i.style.transformOrigin="0 0",i.style.webkitTransformOrigin="0 0",i.style.backfaceVisibility="visible",i.style.webkitBackfaceVisibility="visible",i.style.transformStyle="preserve-3d",i.style.webkitTransformStyle="preserve-3d",i.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(i,s,o,a){this.type=i,this.currentTime=s,this.totalTime=o,this.direction=a<0?-1:1}function BMCompleteEvent(i,s){this.type=i,this.direction=s<0?-1:1}function BMCompleteLoopEvent(i,s,o,a){this.type=i,this.currentLoop=o,this.totalLoops=s,this.direction=a<0?-1:1}function BMSegmentStartEvent(i,s,o){this.type=i,this.firstFrame=s,this.totalFrames=o}function BMDestroyEvent(i,s){this.type=i,this.target=s}function BMRenderFrameErrorEvent(i,s){this.type="renderFrameError",this.nativeError=i,this.currentTime=s}function BMConfigErrorEvent(i){this.type="configError",this.nativeError=i}var createElementID=function(){var i=0;return function(){return i+=1,idPrefix$1+"__lottie_element_"+i}}();function HSVtoRGB(i,s,o){var a,_,$,j,_e,et,tt,rt;switch(j=Math.floor(i*6),_e=i*6-j,et=o*(1-s),tt=o*(1-_e*s),rt=o*(1-(1-_e)*s),j%6){case 0:a=o,_=rt,$=et;break;case 1:a=tt,_=o,$=et;break;case 2:a=et,_=o,$=rt;break;case 3:a=et,_=tt,$=o;break;case 4:a=rt,_=et,$=o;break;case 5:a=o,_=et,$=tt;break}return[a,_,$]}function RGBtoHSV(i,s,o){var a=Math.max(i,s,o),_=Math.min(i,s,o),$=a-_,j,_e=a===0?0:$/a,et=a/255;switch(a){case _:j=0;break;case i:j=s-o+$*(s<o?6:0),j/=6*$;break;case s:j=o-i+$*2,j/=6*$;break;case o:j=i-s+$*4,j/=6*$;break}return[j,_e,et]}function addSaturationToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[1]+=s,o[1]>1?o[1]=1:o[1]<=0&&(o[1]=0),HSVtoRGB(o[0],o[1],o[2])}function addBrightnessToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[2]+=s,o[2]>1?o[2]=1:o[2]<0&&(o[2]=0),HSVtoRGB(o[0],o[1],o[2])}function addHueToRGB(i,s){var o=RGBtoHSV(i[0]*255,i[1]*255,i[2]*255);return o[0]+=s/360,o[0]>1?o[0]-=1:o[0]<0&&(o[0]+=1),HSVtoRGB(o[0],o[1],o[2])}var rgbToHex=function(){var i=[],s,o;for(s=0;s<256;s+=1)o=s.toString(16),i[s]=o.length===1?"0"+o:o;return function(a,_,$){return a<0&&(a=0),_<0&&(_=0),$<0&&($=0),"#"+i[a]+i[_]+i[$]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};function createNS(i){return document.createElementNS(svgNS,i)}function _typeof$5(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(o){return typeof o}:_typeof$5=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$5(i)}var dataManager=function(){var i=1,s=[],o,a,_={onmessage:function(){},postMessage:function(ut){o({data:ut})}},$={postMessage:function(ut){_.onmessage({data:ut})}};function j(nt){if(window.Worker&&window.Blob&&getWebWorker()){var ut=new Blob(["var _workerSelf = self; self.onmessage = ",nt.toString()],{type:"text/javascript"}),ct=URL.createObjectURL(ut);return new Worker(ct)}return o=nt,_}function _e(){a||(a=j(function(ut){function ct(){function dt(Mt,xt){var bt,pt,yt=Mt.length,kt,Et,$t,At;for(pt=0;pt<yt;pt+=1)if(bt=Mt[pt],"ks"in bt&&!bt.completed){if(bt.completed=!0,bt.hasMask){var Ot=bt.masksProperties;for(Et=Ot.length,kt=0;kt<Et;kt+=1)if(Ot[kt].pt.k.i)ht(Ot[kt].pt.k);else for(At=Ot[kt].pt.k.length,$t=0;$t<At;$t+=1)Ot[kt].pt.k[$t].s&&ht(Ot[kt].pt.k[$t].s[0]),Ot[kt].pt.k[$t].e&&ht(Ot[kt].pt.k[$t].e[0])}bt.ty===0?(bt.layers=at(bt.refId,xt),dt(bt.layers,xt)):bt.ty===4?ft(bt.shapes):bt.ty===5&&It(bt)}}function ot(Mt,xt){if(Mt){var bt=0,pt=Mt.length;for(bt=0;bt<pt;bt+=1)Mt[bt].t===1&&(Mt[bt].data.layers=at(Mt[bt].data.refId,xt),dt(Mt[bt].data.layers,xt))}}function lt(Mt,xt){for(var bt=0,pt=xt.length;bt<pt;){if(xt[bt].id===Mt)return xt[bt];bt+=1}return null}function at(Mt,xt){var bt=lt(Mt,xt);return bt?bt.layers.__used?JSON.parse(JSON.stringify(bt.layers)):(bt.layers.__used=!0,bt.layers):null}function ft(Mt){var xt,bt=Mt.length,pt,yt;for(xt=bt-1;xt>=0;xt-=1)if(Mt[xt].ty==="sh")if(Mt[xt].ks.k.i)ht(Mt[xt].ks.k);else for(yt=Mt[xt].ks.k.length,pt=0;pt<yt;pt+=1)Mt[xt].ks.k[pt].s&&ht(Mt[xt].ks.k[pt].s[0]),Mt[xt].ks.k[pt].e&&ht(Mt[xt].ks.k[pt].e[0]);else Mt[xt].ty==="gr"&&ft(Mt[xt].it)}function ht(Mt){var xt,bt=Mt.i.length;for(xt=0;xt<bt;xt+=1)Mt.i[xt][0]+=Mt.v[xt][0],Mt.i[xt][1]+=Mt.v[xt][1],Mt.o[xt][0]+=Mt.v[xt][0],Mt.o[xt][1]+=Mt.v[xt][1]}function mt(Mt,xt){var bt=xt?xt.split("."):[100,100,100];return Mt[0]>bt[0]?!0:bt[0]>Mt[0]?!1:Mt[1]>bt[1]?!0:bt[1]>Mt[1]?!1:Mt[2]>bt[2]?!0:bt[2]>Mt[2]?!1:null}var gt=function(){var Mt=[4,4,14];function xt(pt){var yt=pt.t.d;pt.t.d={k:[{s:yt,t:0}]}}function bt(pt){var yt,kt=pt.length;for(yt=0;yt<kt;yt+=1)pt[yt].ty===5&&xt(pt[yt])}return function(pt){if(mt(Mt,pt.v)&&(bt(pt.layers),pt.assets)){var yt,kt=pt.assets.length;for(yt=0;yt<kt;yt+=1)pt.assets[yt].layers&&bt(pt.assets[yt].layers)}}}(),vt=function(){var Mt=[4,7,99];return function(xt){if(xt.chars&&!mt(Mt,xt.v)){var bt,pt=xt.chars.length;for(bt=0;bt<pt;bt+=1){var yt=xt.chars[bt];yt.data&&yt.data.shapes&&(ft(yt.data.shapes),yt.data.ip=0,yt.data.op=99999,yt.data.st=0,yt.data.sr=1,yt.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xt.chars[bt].t||(yt.data.shapes.push({ty:"no"}),yt.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),St=function(){var Mt=[5,7,15];function xt(pt){var yt=pt.t.p;typeof yt.a=="number"&&(yt.a={a:0,k:yt.a}),typeof yt.p=="number"&&(yt.p={a:0,k:yt.p}),typeof yt.r=="number"&&(yt.r={a:0,k:yt.r})}function bt(pt){var yt,kt=pt.length;for(yt=0;yt<kt;yt+=1)pt[yt].ty===5&&xt(pt[yt])}return function(pt){if(mt(Mt,pt.v)&&(bt(pt.layers),pt.assets)){var yt,kt=pt.assets.length;for(yt=0;yt<kt;yt+=1)pt.assets[yt].layers&&bt(pt.assets[yt].layers)}}}(),wt=function(){var Mt=[4,1,9];function xt(pt){var yt,kt=pt.length,Et,$t;for(yt=0;yt<kt;yt+=1)if(pt[yt].ty==="gr")xt(pt[yt].it);else if(pt[yt].ty==="fl"||pt[yt].ty==="st")if(pt[yt].c.k&&pt[yt].c.k[0].i)for($t=pt[yt].c.k.length,Et=0;Et<$t;Et+=1)pt[yt].c.k[Et].s&&(pt[yt].c.k[Et].s[0]/=255,pt[yt].c.k[Et].s[1]/=255,pt[yt].c.k[Et].s[2]/=255,pt[yt].c.k[Et].s[3]/=255),pt[yt].c.k[Et].e&&(pt[yt].c.k[Et].e[0]/=255,pt[yt].c.k[Et].e[1]/=255,pt[yt].c.k[Et].e[2]/=255,pt[yt].c.k[Et].e[3]/=255);else pt[yt].c.k[0]/=255,pt[yt].c.k[1]/=255,pt[yt].c.k[2]/=255,pt[yt].c.k[3]/=255}function bt(pt){var yt,kt=pt.length;for(yt=0;yt<kt;yt+=1)pt[yt].ty===4&&xt(pt[yt].shapes)}return function(pt){if(mt(Mt,pt.v)&&(bt(pt.layers),pt.assets)){var yt,kt=pt.assets.length;for(yt=0;yt<kt;yt+=1)pt.assets[yt].layers&&bt(pt.assets[yt].layers)}}}(),Pt=function(){var Mt=[4,4,18];function xt(pt){var yt,kt=pt.length,Et,$t;for(yt=kt-1;yt>=0;yt-=1)if(pt[yt].ty==="sh")if(pt[yt].ks.k.i)pt[yt].ks.k.c=pt[yt].closed;else for($t=pt[yt].ks.k.length,Et=0;Et<$t;Et+=1)pt[yt].ks.k[Et].s&&(pt[yt].ks.k[Et].s[0].c=pt[yt].closed),pt[yt].ks.k[Et].e&&(pt[yt].ks.k[Et].e[0].c=pt[yt].closed);else pt[yt].ty==="gr"&&xt(pt[yt].it)}function bt(pt){var yt,kt,Et=pt.length,$t,At,Ot,Vt;for(kt=0;kt<Et;kt+=1){if(yt=pt[kt],yt.hasMask){var Lt=yt.masksProperties;for(At=Lt.length,$t=0;$t<At;$t+=1)if(Lt[$t].pt.k.i)Lt[$t].pt.k.c=Lt[$t].cl;else for(Vt=Lt[$t].pt.k.length,Ot=0;Ot<Vt;Ot+=1)Lt[$t].pt.k[Ot].s&&(Lt[$t].pt.k[Ot].s[0].c=Lt[$t].cl),Lt[$t].pt.k[Ot].e&&(Lt[$t].pt.k[Ot].e[0].c=Lt[$t].cl)}yt.ty===4&&xt(yt.shapes)}}return function(pt){if(mt(Mt,pt.v)&&(bt(pt.layers),pt.assets)){var yt,kt=pt.assets.length;for(yt=0;yt<kt;yt+=1)pt.assets[yt].layers&&bt(pt.assets[yt].layers)}}}();function Rt(Mt){Mt.__complete||(wt(Mt),gt(Mt),vt(Mt),St(Mt),Pt(Mt),dt(Mt.layers,Mt.assets),ot(Mt.chars,Mt.assets),Mt.__complete=!0)}function It(Mt){Mt.t.a.length===0&&"m"in Mt.t.p}var jt={};return jt.completeData=Rt,jt.checkColors=wt,jt.checkChars=vt,jt.checkPathProperties=St,jt.checkShapes=Pt,jt.completeLayers=dt,jt}if($.dataManager||($.dataManager=ct()),$.assetLoader||($.assetLoader=function(){function dt(lt){var at=lt.getResponseHeader("content-type");return at&&lt.responseType==="json"&&at.indexOf("json")!==-1||lt.response&&_typeof$5(lt.response)==="object"?lt.response:lt.response&&typeof lt.response=="string"?JSON.parse(lt.response):lt.responseText?JSON.parse(lt.responseText):null}function ot(lt,at,ft,ht){var mt,gt=new XMLHttpRequest;try{gt.responseType="json"}catch{}gt.onreadystatechange=function(){if(gt.readyState===4)if(gt.status===200)mt=dt(gt),ft(mt);else try{mt=dt(gt),ft(mt)}catch(vt){ht&&ht(vt)}};try{gt.open(["G","E","T"].join(""),lt,!0)}catch{gt.open(["G","E","T"].join(""),at+"/"+lt,!0)}gt.send()}return{load:ot}}()),ut.data.type==="loadAnimation")$.assetLoader.load(ut.data.path,ut.data.fullPath,function(dt){$.dataManager.completeData(dt),$.postMessage({id:ut.data.id,payload:dt,status:"success"})},function(){$.postMessage({id:ut.data.id,status:"error"})});else if(ut.data.type==="complete"){var st=ut.data.animation;$.dataManager.completeData(st),$.postMessage({id:ut.data.id,payload:st,status:"success"})}else ut.data.type==="loadData"&&$.assetLoader.load(ut.data.path,ut.data.fullPath,function(dt){$.postMessage({id:ut.data.id,payload:dt,status:"success"})},function(){$.postMessage({id:ut.data.id,status:"error"})})}),a.onmessage=function(nt){var ut=nt.data,ct=ut.id,st=s[ct];s[ct]=null,ut.status==="success"?st.onComplete(ut.payload):st.onError&&st.onError()})}function et(nt,ut){i+=1;var ct="processId_"+i;return s[ct]={onComplete:nt,onError:ut},ct}function tt(nt,ut,ct){_e();var st=et(ut,ct);a.postMessage({type:"loadAnimation",path:nt,fullPath:window.location.origin+window.location.pathname,id:st})}function rt(nt,ut,ct){_e();var st=et(ut,ct);a.postMessage({type:"loadData",path:nt,fullPath:window.location.origin+window.location.pathname,id:st})}function it(nt,ut,ct){_e();var st=et(ut,ct);a.postMessage({type:"complete",animation:nt,id:st})}return{loadAnimation:tt,loadData:rt,completeAnimation:it}}(),ImagePreloader=function(){var i=function(){var ot=createTag("canvas");ot.width=1,ot.height=1;var lt=ot.getContext("2d");return lt.fillStyle="rgba(0,0,0,0)",lt.fillRect(0,0,1,1),ot}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(ot,lt,at){var ft="";if(ot.e)ft=ot.p;else if(lt){var ht=ot.p;ht.indexOf("images/")!==-1&&(ht=ht.split("/")[1]),ft=lt+ht}else ft=at,ft+=ot.u?ot.u:"",ft+=ot.p;return ft}function _(ot){var lt=0,at=setInterval((function(){var ft=ot.getBBox();(ft.width||lt>500)&&(this._imageLoaded(),clearInterval(at)),lt+=1}).bind(this),50)}function $(ot){var lt=a(ot,this.assetsPath,this.path),at=createNS("image");isSafari?this.testImageLoaded(at):at.addEventListener("load",this._imageLoaded,!1),at.addEventListener("error",(function(){ft.img=i,this._imageLoaded()}).bind(this),!1),at.setAttributeNS("http://www.w3.org/1999/xlink","href",lt),this._elementHelper.append?this._elementHelper.append(at):this._elementHelper.appendChild(at);var ft={img:at,assetData:ot};return ft}function j(ot){var lt=a(ot,this.assetsPath,this.path),at=createTag("img");at.crossOrigin="anonymous",at.addEventListener("load",this._imageLoaded,!1),at.addEventListener("error",(function(){ft.img=i,this._imageLoaded()}).bind(this),!1),at.src=lt;var ft={img:at,assetData:ot};return ft}function _e(ot){var lt={assetData:ot},at=a(ot,this.assetsPath,this.path);return dataManager.loadData(at,(function(ft){lt.img=ft,this._footageLoaded()}).bind(this),(function(){lt.img={},this._footageLoaded()}).bind(this)),lt}function et(ot,lt){this.imagesLoadedCb=lt;var at,ft=ot.length;for(at=0;at<ft;at+=1)ot[at].layers||(!ot[at].t||ot[at].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(ot[at]))):ot[at].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(ot[at]))))}function tt(ot){this.path=ot||""}function rt(ot){this.assetsPath=ot||""}function it(ot){for(var lt=0,at=this.images.length;lt<at;){if(this.images[lt].assetData===ot)return this.images[lt].img;lt+=1}return null}function nt(){this.imagesLoadedCb=null,this.images.length=0}function ut(){return this.totalImages===this.loadedAssets}function ct(){return this.totalFootages===this.loadedFootagesCount}function st(ot,lt){ot==="svg"?(this._elementHelper=lt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function dt(){this._imageLoaded=s.bind(this),this._footageLoaded=o.bind(this),this.testImageLoaded=_.bind(this),this.createFootageData=_e.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return dt.prototype={loadAssets:et,setAssetsPath:rt,setPath:tt,loadedImages:ut,loadedFootages:ct,destroy:nt,getAsset:it,createImgData:j,createImageData:$,imageLoaded:s,footageLoaded:o,setCacheType:st},dt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,o){if(this._cbs[s])for(var a=this._cbs[s],_=0;_<a.length;_+=1)a[_](o)},addEventListener:function(s,o){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(o),(function(){this.removeEventListener(s,o)}).bind(this)},removeEventListener:function(s,o){if(!o)this._cbs[s]=null;else if(this._cbs[s]){for(var a=0,_=this._cbs[s].length;a<_;)this._cbs[s][a]===o&&(this._cbs[s].splice(a,1),a-=1,_-=1),a+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function i(s){for(var o=s.split(`\r
`),a={},_,$=0,j=0;j<o.length;j+=1)_=o[j].split(":"),_.length===2&&(a[_[0]]=_[1].trim(),$+=1);if($===0)throw new Error;return a}return function(s){for(var o=[],a=0;a<s.length;a+=1){var _=s[a],$={time:_.tm,duration:_.dr};try{$.payload=JSON.parse(s[a].cm)}catch{try{$.payload=i(s[a].cm)}catch{$.payload={name:s[a].cm}}}o.push($)}return o}}(),ProjectInterface=function(){function i(s){this.compositions.push(s)}return function(){function s(o){for(var a=0,_=this.compositions.length;a<_;){if(this.compositions[a].data&&this.compositions[a].data.nm===o)return this.compositions[a].prepareFrame&&this.compositions[a].data.xt&&this.compositions[a].prepareFrame(this.currentFrame),this.compositions[a].compInterface;a+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=i,s}}(),renderers={},registerRenderer=function(s,o){renderers[s]=o};function getRenderer(i){return renderers[i]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var i in renderers)if(renderers[i])return i;return""}function _typeof$4(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(o){return typeof o}:_typeof$4=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$4(i)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(i){(i.wrapper||i.container)&&(this.wrapper=i.wrapper||i.container);var s="svg";i.animType?s=i.animType:i.renderer&&(s=i.renderer);var o=getRenderer(s);this.renderer=new o(this,i.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,i.loop===""||i.loop===null||i.loop===void 0||i.loop===!0?this.loop=!0:i.loop===!1?this.loop=!1:this.loop=parseInt(i.loop,10),this.autoplay="autoplay"in i?i.autoplay:!0,this.name=i.name?i.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(i,"autoloadSegments")?i.autoloadSegments:!0,this.assetsPath=i.assetsPath,this.initialSegment=i.initialSegment,i.audioFactory&&this.audioController.setAudioFactory(i.audioFactory),i.animationData?this.setupAnimation(i.animationData):i.path&&(i.path.lastIndexOf("\\")!==-1?this.path=i.path.substr(0,i.path.lastIndexOf("\\")+1):this.path=i.path.substr(0,i.path.lastIndexOf("/")+1),this.fileName=i.path.substr(i.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(i.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(i){dataManager.completeAnimation(i,this.configAnimation)},AnimationItem.prototype.setData=function(i,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var o={wrapper:i,animationData:s},a=i.attributes;o.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",o.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var _=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";_==="false"?o.loop=!1:_==="true"?o.loop=!0:_!==""&&(o.loop=parseInt(_,10));var $=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:a.getNamedItem("bm-autoplay")?a.getNamedItem("bm-autoplay").value:!0;o.autoplay=$!=="false",o.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"";var j=a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"";j==="false"&&(o.prerender=!1),o.path?this.setParams(o):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(i){i.op>this.animationData.op&&(this.animationData.op=i.op,this.totalFrames=Math.floor(i.op-this.animationData.ip));var s=this.animationData.layers,o,a=s.length,_=i.layers,$,j=_.length;for($=0;$<j;$+=1)for(o=0;o<a;){if(s[o].id===_[$].id){s[o]=_[$];break}o+=1}if((i.chars||i.fonts)&&(this.renderer.globalData.fontManager.addChars(i.chars),this.renderer.globalData.fontManager.addFonts(i.fonts,this.renderer.globalData.defs)),i.assets)for(a=i.assets.length,o=0;o<a;o+=1)this.animationData.assets.push(i.assets[o]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(i){this.animationData=i;var s=getExpressionsPlugin();s&&s.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var i=this.animationData.segments;if(!i||i.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var s=i.shift();this.timeCompleted=s.time*this.frameRate;var o=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(o,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var i=this.animationData.segments;i||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(i){if(this.renderer)try{this.animationData=i,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(i),i.assets||(i.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(i.assets),this.markers=markerParser(i.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(s){this.triggerConfigError(s)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var i=getExpressionsPlugin();i&&i.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(i,s){var o=typeof i=="number"?i:void 0,a=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(o,a)},AnimationItem.prototype.setSubframe=function(i){this.isSubframeEnabled=!!i},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(i){this.triggerRenderFrameError(i)}},AnimationItem.prototype.play=function(i){i&&this.name!==i||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(i){i&&this.name!==i||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(i){i&&this.name!==i||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(i){i&&this.name!==i||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(i){for(var s,o=0;o<this.markers.length;o+=1)if(s=this.markers[o],s.payload&&s.payload.name===i)return s;return null},AnimationItem.prototype.goToAndStop=function(i,s,o){if(!(o&&this.name!==o)){var a=Number(i);if(isNaN(a)){var _=this.getMarkerData(i);_&&this.goToAndStop(_.time,!0)}else s?this.setCurrentRawFrameValue(i):this.setCurrentRawFrameValue(i*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(i,s,o){if(!(o&&this.name!==o)){var a=Number(i);if(isNaN(a)){var _=this.getMarkerData(i);_&&(_.duration?this.playSegments([_.time,_.time+_.duration],!0):this.goToAndStop(_.time,!0))}else this.goToAndStop(a,s,o);this.play()}},AnimationItem.prototype.advanceTime=function(i){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+i*this.frameModifier,o=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(o=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(o=!0,s=0)):this.setCurrentRawFrameValue(s),o&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(i,s){this.playCount=0,i[1]<i[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=i[0]-i[1],this.timeCompleted=this.totalFrames,this.firstFrame=i[1],this.setCurrentRawFrameValue(this.totalFrames-.001-s)):i[1]>i[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=i[1]-i[0],this.timeCompleted=this.totalFrames,this.firstFrame=i[0],this.setCurrentRawFrameValue(.001+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(i,s){var o=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<i?o=i:this.currentRawFrame+this.firstFrame>s&&(o=s-i)),this.firstFrame=i,this.totalFrames=s-i,this.timeCompleted=this.totalFrames,o!==-1&&this.goToAndStop(o,!0)},AnimationItem.prototype.playSegments=function(i,s){if(s&&(this.segments.length=0),_typeof$4(i[0])==="object"){var o,a=i.length;for(o=0;o<a;o+=1)this.segments.push(i[o])}else this.segments.push(i);this.segments.length&&s&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(i){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),i&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(i){return this.segments.length?(this.adjustSegment(this.segments.shift(),i),!0):!1},AnimationItem.prototype.destroy=function(i){i&&this.name!==i||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(i){this.currentRawFrame=i,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(i){this.playSpeed=i,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(i){this.playDirection=i<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(i){this.loop=i},AnimationItem.prototype.setVolume=function(i,s){s&&this.name!==s||this.audioController.setVolume(i)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(i){i&&this.name!==i||this.audioController.mute()},AnimationItem.prototype.unmute=function(i){i&&this.name!==i||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(i){var s="";if(i.e)s=i.p;else if(this.assetsPath){var o=i.p;o.indexOf("images/")!==-1&&(o=o.split("/")[1]),s=this.assetsPath+o}else s=this.path,s+=i.u?i.u:"",s+=i.p;return s},AnimationItem.prototype.getAssetData=function(i){for(var s=0,o=this.assets.length;s<o;){if(i===this.assets[s].id)return this.assets[s];s+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(i){return i?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(i,s,o){try{var a=this.renderer.getElementByPath(i);a.updateDocumentData(s,o)}catch{}},AnimationItem.prototype.trigger=function(i){if(this._cbs&&this._cbs[i])switch(i){case"enterFrame":this.triggerEvent(i,new BMEnterFrameEvent(i,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(i,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(i,new BMCompleteLoopEvent(i,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(i,new BMCompleteEvent(i,this.frameMult));break;case"segmentStart":this.triggerEvent(i,new BMSegmentStartEvent(i,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(i,new BMDestroyEvent(i,this));break;default:this.triggerEvent(i)}i==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(i,this.currentFrame,this.totalFrames,this.frameMult)),i==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(i,this.loop,this.playCount,this.frameMult)),i==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(i,this.frameMult)),i==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(i,this.firstFrame,this.totalFrames)),i==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(i,this))},AnimationItem.prototype.triggerRenderFrameError=function(i){var s=new BMRenderFrameErrorEvent(i,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(i){var s=new BMConfigErrorEvent(i,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var i={},s=[],o=0,a=0,_=0,$=!0,j=!1;function _e(xt){for(var bt=0,pt=xt.target;bt<a;)s[bt].animation===pt&&(s.splice(bt,1),bt-=1,a-=1,pt.isPaused||it()),bt+=1}function et(xt,bt){if(!xt)return null;for(var pt=0;pt<a;){if(s[pt].elem===xt&&s[pt].elem!==null)return s[pt].animation;pt+=1}var yt=new AnimationItem;return nt(yt,xt),yt.setData(xt,bt),yt}function tt(){var xt,bt=s.length,pt=[];for(xt=0;xt<bt;xt+=1)pt.push(s[xt].animation);return pt}function rt(){_+=1,wt()}function it(){_-=1}function nt(xt,bt){xt.addEventListener("destroy",_e),xt.addEventListener("_active",rt),xt.addEventListener("_idle",it),s.push({elem:bt,animation:xt}),a+=1}function ut(xt){var bt=new AnimationItem;return nt(bt,null),bt.setParams(xt),bt}function ct(xt,bt){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.setSpeed(xt,bt)}function st(xt,bt){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.setDirection(xt,bt)}function dt(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.play(xt)}function ot(xt){var bt=xt-o,pt;for(pt=0;pt<a;pt+=1)s[pt].animation.advanceTime(bt);o=xt,_&&!j?window.requestAnimationFrame(ot):$=!0}function lt(xt){o=xt,window.requestAnimationFrame(ot)}function at(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.pause(xt)}function ft(xt,bt,pt){var yt;for(yt=0;yt<a;yt+=1)s[yt].animation.goToAndStop(xt,bt,pt)}function ht(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.stop(xt)}function mt(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.togglePause(xt)}function gt(xt){var bt;for(bt=a-1;bt>=0;bt-=1)s[bt].animation.destroy(xt)}function vt(xt,bt,pt){var yt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),kt,Et=yt.length;for(kt=0;kt<Et;kt+=1)pt&&yt[kt].setAttribute("data-bm-type",pt),et(yt[kt],xt);if(bt&&Et===0){pt||(pt="svg");var $t=document.getElementsByTagName("body")[0];$t.innerText="";var At=createTag("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",pt),$t.appendChild(At),et(At,xt)}}function St(){var xt;for(xt=0;xt<a;xt+=1)s[xt].animation.resize()}function wt(){!j&&_&&$&&(window.requestAnimationFrame(lt),$=!1)}function Pt(){j=!0}function Rt(){j=!1,wt()}function It(xt,bt){var pt;for(pt=0;pt<a;pt+=1)s[pt].animation.setVolume(xt,bt)}function jt(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.mute(xt)}function Mt(xt){var bt;for(bt=0;bt<a;bt+=1)s[bt].animation.unmute(xt)}return i.registerAnimation=et,i.loadAnimation=ut,i.setSpeed=ct,i.setDirection=st,i.play=dt,i.pause=at,i.stop=ht,i.togglePause=mt,i.searchAnimations=vt,i.resize=St,i.goToAndStop=ft,i.destroy=gt,i.freeze=Pt,i.unfreeze=Rt,i.setVolume=It,i.mute=jt,i.unmute=Mt,i.getRegisteredAnimations=tt,i}(),BezierFactory=function(){var i={};i.getBezierEasing=o;var s={};function o(lt,at,ft,ht,mt){var gt=mt||("bez_"+lt+"_"+at+"_"+ft+"_"+ht).replace(/\./g,"p");if(s[gt])return s[gt];var vt=new ot([lt,at,ft,ht]);return s[gt]=vt,vt}var a=4,_=.001,$=1e-7,j=10,_e=11,et=1/(_e-1),tt=typeof Float32Array=="function";function rt(lt,at){return 1-3*at+3*lt}function it(lt,at){return 3*at-6*lt}function nt(lt){return 3*lt}function ut(lt,at,ft){return((rt(at,ft)*lt+it(at,ft))*lt+nt(at))*lt}function ct(lt,at,ft){return 3*rt(at,ft)*lt*lt+2*it(at,ft)*lt+nt(at)}function st(lt,at,ft,ht,mt){var gt,vt,St=0;do vt=at+(ft-at)/2,gt=ut(vt,ht,mt)-lt,gt>0?ft=vt:at=vt;while(Math.abs(gt)>$&&++St<j);return vt}function dt(lt,at,ft,ht){for(var mt=0;mt<a;++mt){var gt=ct(at,ft,ht);if(gt===0)return at;var vt=ut(at,ft,ht)-lt;at-=vt/gt}return at}function ot(lt){this._p=lt,this._mSampleValues=tt?new Float32Array(_e):new Array(_e),this._precomputed=!1,this.get=this.get.bind(this)}return ot.prototype={get:function(at){var ft=this._p[0],ht=this._p[1],mt=this._p[2],gt=this._p[3];return this._precomputed||this._precompute(),ft===ht&&mt===gt?at:at===0?0:at===1?1:ut(this._getTForX(at),ht,gt)},_precompute:function(){var at=this._p[0],ft=this._p[1],ht=this._p[2],mt=this._p[3];this._precomputed=!0,(at!==ft||ht!==mt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var at=this._p[0],ft=this._p[2],ht=0;ht<_e;++ht)this._mSampleValues[ht]=ut(ht*et,at,ft)},_getTForX:function(at){for(var ft=this._p[0],ht=this._p[2],mt=this._mSampleValues,gt=0,vt=1,St=_e-1;vt!==St&&mt[vt]<=at;++vt)gt+=et;--vt;var wt=(at-mt[vt])/(mt[vt+1]-mt[vt]),Pt=gt+wt*et,Rt=ct(Pt,ft,ht);return Rt>=_?dt(at,Pt,ft,ht):Rt===0?Pt:st(at,gt,gt+et,ft,ht)}},i}(),pooling=function(){function i(s){return s.concat(createSizedArray(s.length))}return{double:i}}(),poolFactory=function(){return function(i,s,o){var a=0,_=i,$=createSizedArray(_),j={newElement:_e,release:et};function _e(){var tt;return a?(a-=1,tt=$[a]):tt=s(),tt}function et(tt){a===_&&($=pooling.double($),_*=2),o&&o(tt),$[a]=tt,a+=1}return j}}(),bezierLengthPool=function(){function i(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,i)}(),segmentsLengthPool=function(){function i(){return{lengths:[],totalLength:0}}function s(o){var a,_=o.lengths.length;for(a=0;a<_;a+=1)bezierLengthPool.release(o.lengths[a]);o.lengths.length=0}return poolFactory(8,i,s)}();function bezFunction(){var i=Math;function s(nt,ut,ct,st,dt,ot){var lt=nt*st+ut*dt+ct*ot-dt*st-ot*nt-ct*ut;return lt>-.001&&lt<.001}function o(nt,ut,ct,st,dt,ot,lt,at,ft){if(ct===0&&ot===0&&ft===0)return s(nt,ut,st,dt,lt,at);var ht=i.sqrt(i.pow(st-nt,2)+i.pow(dt-ut,2)+i.pow(ot-ct,2)),mt=i.sqrt(i.pow(lt-nt,2)+i.pow(at-ut,2)+i.pow(ft-ct,2)),gt=i.sqrt(i.pow(lt-st,2)+i.pow(at-dt,2)+i.pow(ft-ot,2)),vt;return ht>mt?ht>gt?vt=ht-mt-gt:vt=gt-mt-ht:gt>mt?vt=gt-mt-ht:vt=mt-ht-gt,vt>-1e-4&&vt<1e-4}var a=function(){return function(nt,ut,ct,st){var dt=getDefaultCurveSegments(),ot,lt,at,ft,ht,mt=0,gt,vt=[],St=[],wt=bezierLengthPool.newElement();for(at=ct.length,ot=0;ot<dt;ot+=1){for(ht=ot/(dt-1),gt=0,lt=0;lt<at;lt+=1)ft=bmPow(1-ht,3)*nt[lt]+3*bmPow(1-ht,2)*ht*ct[lt]+3*(1-ht)*bmPow(ht,2)*st[lt]+bmPow(ht,3)*ut[lt],vt[lt]=ft,St[lt]!==null&&(gt+=bmPow(vt[lt]-St[lt],2)),St[lt]=vt[lt];gt&&(gt=bmSqrt(gt),mt+=gt),wt.percents[ot]=ht,wt.lengths[ot]=mt}return wt.addedLength=mt,wt}}();function _(nt){var ut=segmentsLengthPool.newElement(),ct=nt.c,st=nt.v,dt=nt.o,ot=nt.i,lt,at=nt._length,ft=ut.lengths,ht=0;for(lt=0;lt<at-1;lt+=1)ft[lt]=a(st[lt],st[lt+1],dt[lt],ot[lt+1]),ht+=ft[lt].addedLength;return ct&&at&&(ft[lt]=a(st[lt],st[0],dt[lt],ot[0]),ht+=ft[lt].addedLength),ut.totalLength=ht,ut}function $(nt){this.segmentLength=0,this.points=new Array(nt)}function j(nt,ut){this.partialLength=nt,this.point=ut}var _e=function(){var nt={};return function(ut,ct,st,dt){var ot=(ut[0]+"_"+ut[1]+"_"+ct[0]+"_"+ct[1]+"_"+st[0]+"_"+st[1]+"_"+dt[0]+"_"+dt[1]).replace(/\./g,"p");if(!nt[ot]){var lt=getDefaultCurveSegments(),at,ft,ht,mt,gt,vt=0,St,wt,Pt=null;ut.length===2&&(ut[0]!==ct[0]||ut[1]!==ct[1])&&s(ut[0],ut[1],ct[0],ct[1],ut[0]+st[0],ut[1]+st[1])&&s(ut[0],ut[1],ct[0],ct[1],ct[0]+dt[0],ct[1]+dt[1])&&(lt=2);var Rt=new $(lt);for(ht=st.length,at=0;at<lt;at+=1){for(wt=createSizedArray(ht),gt=at/(lt-1),St=0,ft=0;ft<ht;ft+=1)mt=bmPow(1-gt,3)*ut[ft]+3*bmPow(1-gt,2)*gt*(ut[ft]+st[ft])+3*(1-gt)*bmPow(gt,2)*(ct[ft]+dt[ft])+bmPow(gt,3)*ct[ft],wt[ft]=mt,Pt!==null&&(St+=bmPow(wt[ft]-Pt[ft],2));St=bmSqrt(St),vt+=St,Rt.points[at]=new j(St,wt),Pt=wt}Rt.segmentLength=vt,nt[ot]=Rt}return nt[ot]}}();function et(nt,ut){var ct=ut.percents,st=ut.lengths,dt=ct.length,ot=bmFloor((dt-1)*nt),lt=nt*ut.addedLength,at=0;if(ot===dt-1||ot===0||lt===st[ot])return ct[ot];for(var ft=st[ot]>lt?-1:1,ht=!0;ht;)if(st[ot]<=lt&&st[ot+1]>lt?(at=(lt-st[ot])/(st[ot+1]-st[ot]),ht=!1):ot+=ft,ot<0||ot>=dt-1){if(ot===dt-1)return ct[ot];ht=!1}return ct[ot]+(ct[ot+1]-ct[ot])*at}function tt(nt,ut,ct,st,dt,ot){var lt=et(dt,ot),at=1-lt,ft=i.round((at*at*at*nt[0]+(lt*at*at+at*lt*at+at*at*lt)*ct[0]+(lt*lt*at+at*lt*lt+lt*at*lt)*st[0]+lt*lt*lt*ut[0])*1e3)/1e3,ht=i.round((at*at*at*nt[1]+(lt*at*at+at*lt*at+at*at*lt)*ct[1]+(lt*lt*at+at*lt*lt+lt*at*lt)*st[1]+lt*lt*lt*ut[1])*1e3)/1e3;return[ft,ht]}var rt=createTypedArray("float32",8);function it(nt,ut,ct,st,dt,ot,lt){dt<0?dt=0:dt>1&&(dt=1);var at=et(dt,lt);ot=ot>1?1:ot;var ft=et(ot,lt),ht,mt=nt.length,gt=1-at,vt=1-ft,St=gt*gt*gt,wt=at*gt*gt*3,Pt=at*at*gt*3,Rt=at*at*at,It=gt*gt*vt,jt=at*gt*vt+gt*at*vt+gt*gt*ft,Mt=at*at*vt+gt*at*ft+at*gt*ft,xt=at*at*ft,bt=gt*vt*vt,pt=at*vt*vt+gt*ft*vt+gt*vt*ft,yt=at*ft*vt+gt*ft*ft+at*vt*ft,kt=at*ft*ft,Et=vt*vt*vt,$t=ft*vt*vt+vt*ft*vt+vt*vt*ft,At=ft*ft*vt+vt*ft*ft+ft*vt*ft,Ot=ft*ft*ft;for(ht=0;ht<mt;ht+=1)rt[ht*4]=i.round((St*nt[ht]+wt*ct[ht]+Pt*st[ht]+Rt*ut[ht])*1e3)/1e3,rt[ht*4+1]=i.round((It*nt[ht]+jt*ct[ht]+Mt*st[ht]+xt*ut[ht])*1e3)/1e3,rt[ht*4+2]=i.round((bt*nt[ht]+pt*ct[ht]+yt*st[ht]+kt*ut[ht])*1e3)/1e3,rt[ht*4+3]=i.round((Et*nt[ht]+$t*ct[ht]+At*st[ht]+Ot*ut[ht])*1e3)/1e3;return rt}return{getSegmentsLength:_,getNewSegment:it,getPointInSegment:tt,buildBezierData:_e,pointOnLine2D:s,pointOnLine3D:o}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(i,s){var o=this.offsetTime,a;this.propType==="multidimensional"&&(a=createTypedArray("float32",this.pv.length));for(var _=s.lastIndex,$=_,j=this.keyframes.length-1,_e=!0,et,tt,rt;_e;){if(et=this.keyframes[$],tt=this.keyframes[$+1],$===j-1&&i>=tt.t-o){et.h&&(et=tt),_=0;break}if(tt.t-o>i){_=$;break}$<j-1?$+=1:(_=0,_e=!1)}rt=this.keyframesMetadata[$]||{};var it,nt,ut,ct,st,dt,ot=tt.t-o,lt=et.t-o,at;if(et.to){rt.bezierData||(rt.bezierData=bez.buildBezierData(et.s,tt.s||et.e,et.to,et.ti));var ft=rt.bezierData;if(i>=ot||i<lt){var ht=i>=ot?ft.points.length-1:0;for(nt=ft.points[ht].point.length,it=0;it<nt;it+=1)a[it]=ft.points[ht].point[it]}else{rt.__fnct?dt=rt.__fnct:(dt=BezierFactory.getBezierEasing(et.o.x,et.o.y,et.i.x,et.i.y,et.n).get,rt.__fnct=dt),ut=dt((i-lt)/(ot-lt));var mt=ft.segmentLength*ut,gt,vt=s.lastFrame<i&&s._lastKeyframeIndex===$?s._lastAddedLength:0;for(st=s.lastFrame<i&&s._lastKeyframeIndex===$?s._lastPoint:0,_e=!0,ct=ft.points.length;_e;){if(vt+=ft.points[st].partialLength,mt===0||ut===0||st===ft.points.length-1){for(nt=ft.points[st].point.length,it=0;it<nt;it+=1)a[it]=ft.points[st].point[it];break}else if(mt>=vt&&mt<vt+ft.points[st+1].partialLength){for(gt=(mt-vt)/ft.points[st+1].partialLength,nt=ft.points[st].point.length,it=0;it<nt;it+=1)a[it]=ft.points[st].point[it]+(ft.points[st+1].point[it]-ft.points[st].point[it])*gt;break}st<ct-1?st+=1:_e=!1}s._lastPoint=st,s._lastAddedLength=vt-ft.points[st].partialLength,s._lastKeyframeIndex=$}}else{var St,wt,Pt,Rt,It;if(j=et.s.length,at=tt.s||et.e,this.sh&&et.h!==1)if(i>=ot)a[0]=at[0],a[1]=at[1],a[2]=at[2];else if(i<=lt)a[0]=et.s[0],a[1]=et.s[1],a[2]=et.s[2];else{var jt=createQuaternion(et.s),Mt=createQuaternion(at),xt=(i-lt)/(ot-lt);quaternionToEuler(a,slerp(jt,Mt,xt))}else for($=0;$<j;$+=1)et.h!==1&&(i>=ot?ut=1:i<lt?ut=0:(et.o.x.constructor===Array?(rt.__fnct||(rt.__fnct=[]),rt.__fnct[$]?dt=rt.__fnct[$]:(St=et.o.x[$]===void 0?et.o.x[0]:et.o.x[$],wt=et.o.y[$]===void 0?et.o.y[0]:et.o.y[$],Pt=et.i.x[$]===void 0?et.i.x[0]:et.i.x[$],Rt=et.i.y[$]===void 0?et.i.y[0]:et.i.y[$],dt=BezierFactory.getBezierEasing(St,wt,Pt,Rt).get,rt.__fnct[$]=dt)):rt.__fnct?dt=rt.__fnct:(St=et.o.x,wt=et.o.y,Pt=et.i.x,Rt=et.i.y,dt=BezierFactory.getBezierEasing(St,wt,Pt,Rt).get,et.keyframeMetadata=dt),ut=dt((i-lt)/(ot-lt)))),at=tt.s||et.e,It=et.h===1?et.s[$]:et.s[$]+(at[$]-et.s[$])*ut,this.propType==="multidimensional"?a[$]=It:a=It}return s.lastIndex=_,a}function slerp(i,s,o){var a=[],_=i[0],$=i[1],j=i[2],_e=i[3],et=s[0],tt=s[1],rt=s[2],it=s[3],nt,ut,ct,st,dt;return ut=_*et+$*tt+j*rt+_e*it,ut<0&&(ut=-ut,et=-et,tt=-tt,rt=-rt,it=-it),1-ut>1e-6?(nt=Math.acos(ut),ct=Math.sin(nt),st=Math.sin((1-o)*nt)/ct,dt=Math.sin(o*nt)/ct):(st=1-o,dt=o),a[0]=st*_+dt*et,a[1]=st*$+dt*tt,a[2]=st*j+dt*rt,a[3]=st*_e+dt*it,a}function quaternionToEuler(i,s){var o=s[0],a=s[1],_=s[2],$=s[3],j=Math.atan2(2*a*$-2*o*_,1-2*a*a-2*_*_),_e=Math.asin(2*o*a+2*_*$),et=Math.atan2(2*o*$-2*a*_,1-2*o*o-2*_*_);i[0]=j/degToRads,i[1]=_e/degToRads,i[2]=et/degToRads}function createQuaternion(i){var s=i[0]*degToRads,o=i[1]*degToRads,a=i[2]*degToRads,_=Math.cos(s/2),$=Math.cos(o/2),j=Math.cos(a/2),_e=Math.sin(s/2),et=Math.sin(o/2),tt=Math.sin(a/2),rt=_*$*j-_e*et*tt,it=_e*et*j+_*$*tt,nt=_e*$*j+_*et*tt,ut=_*et*j-_e*$*tt;return[it,nt,ut,rt]}function getValueAtCurrentTime(){var i=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,o=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(i===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=o&&i>=o||this._caching.lastFrame<s&&i<s))){this._caching.lastFrame>=i&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var a=this.interpolateValue(i,this._caching);this.pv=a}return this._caching.lastFrame=i,this.pv}function setVValue(i){var s;if(this.propType==="unidimensional")s=i*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var o=0,a=this.v.length;o<a;)s=i[o]*this.mult,mathAbs(this.v[o]-s)>1e-5&&(this.v[o]=s,this._mdf=!0),o+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var i,s=this.effectsSequence.length,o=this.kf?this.pv:this.data.k;for(i=0;i<s;i+=1)o=this.effectsSequence[i](o);this.setVValue(o),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(i){this.effectsSequence.push(i),this.container.addDynamicProperty(this)}function ValueProperty(i,s,o,a){this.propType="unidimensional",this.mult=o||1,this.data=s,this.v=o?s.k*o:s.k,this.pv=s.k,this._mdf=!1,this.elem=i,this.container=a,this.comp=i.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(i,s,o,a){this.propType="multidimensional",this.mult=o||1,this.data=s,this._mdf=!1,this.elem=i,this.container=a,this.comp=i.comp,this.k=!1,this.kf=!1,this.frameId=-1;var _,$=s.k.length;for(this.v=createTypedArray("float32",$),this.pv=createTypedArray("float32",$),this.vel=createTypedArray("float32",$),_=0;_<$;_+=1)this.v[_]=s.k[_]*this.mult,this.pv[_]=s.k[_];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(i,s,o,a){this.propType="unidimensional",this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=i.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=s,this.mult=o||1,this.elem=i,this.container=a,this.comp=i.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(i,s,o,a){this.propType="multidimensional";var _,$=s.k.length,j,_e,et,tt;for(_=0;_<$-1;_+=1)s.k[_].to&&s.k[_].s&&s.k[_+1]&&s.k[_+1].s&&(j=s.k[_].s,_e=s.k[_+1].s,et=s.k[_].to,tt=s.k[_].ti,(j.length===2&&!(j[0]===_e[0]&&j[1]===_e[1])&&bez.pointOnLine2D(j[0],j[1],_e[0],_e[1],j[0]+et[0],j[1]+et[1])&&bez.pointOnLine2D(j[0],j[1],_e[0],_e[1],_e[0]+tt[0],_e[1]+tt[1])||j.length===3&&!(j[0]===_e[0]&&j[1]===_e[1]&&j[2]===_e[2])&&bez.pointOnLine3D(j[0],j[1],j[2],_e[0],_e[1],_e[2],j[0]+et[0],j[1]+et[1],j[2]+et[2])&&bez.pointOnLine3D(j[0],j[1],j[2],_e[0],_e[1],_e[2],_e[0]+tt[0],_e[1]+tt[1],_e[2]+tt[2]))&&(s.k[_].to=null,s.k[_].ti=null),j[0]===_e[0]&&j[1]===_e[1]&&et[0]===0&&et[1]===0&&tt[0]===0&&tt[1]===0&&(j.length===2||j[2]===_e[2]&&et[2]===0&&tt[2]===0)&&(s.k[_].to=null,s.k[_].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=i.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=o||1,this.elem=i,this.container=a,this.comp=i.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var rt=s.k[0].s.length;for(this.v=createTypedArray("float32",rt),this.pv=createTypedArray("float32",rt),_=0;_<rt;_+=1)this.v[_]=initFrame,this.pv[_]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",rt)},this.addEffect=addEffect}var PropertyFactory=function(){function i(o,a,_,$,j){a.sid&&(a=o.globalData.slotManager.getProp(a));var _e;if(!a.k.length)_e=new ValueProperty(o,a,$,j);else if(typeof a.k[0]=="number")_e=new MultiDimensionalProperty(o,a,$,j);else switch(_){case 0:_e=new KeyframedValueProperty(o,a,$,j);break;case 1:_e=new KeyframedMultidimensionalProperty(o,a,$,j);break}return _e.effectsSequence.length&&j.addDynamicProperty(_e),_e}var s={getProp:i};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,o=this.dynamicProperties.length;for(s=0;s<o;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function i(){return createTypedArray("float32",2)}return poolFactory(8,i)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(i,s){this.c=i,this.setLength(s);for(var o=0;o<s;)this.v[o]=pointPool.newElement(),this.o[o]=pointPool.newElement(),this.i[o]=pointPool.newElement(),o+=1},ShapePath.prototype.setLength=function(i){for(;this._maxLength<i;)this.doubleArrayLength();this._length=i},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(i,s,o,a,_){var $;switch(this._length=Math.max(this._length,a+1),this._length>=this._maxLength&&this.doubleArrayLength(),o){case"v":$=this.v;break;case"i":$=this.i;break;case"o":$=this.o;break;default:$=[];break}(!$[a]||$[a]&&!_)&&($[a]=pointPool.newElement()),$[a][0]=i,$[a][1]=s},ShapePath.prototype.setTripleAt=function(i,s,o,a,_,$,j,_e){this.setXYAt(i,s,"v",j,_e),this.setXYAt(o,a,"o",j,_e),this.setXYAt(_,$,"i",j,_e)},ShapePath.prototype.reverse=function(){var i=new ShapePath;i.setPathData(this.c,this._length);var s=this.v,o=this.o,a=this.i,_=0;this.c&&(i.setTripleAt(s[0][0],s[0][1],a[0][0],a[0][1],o[0][0],o[0][1],0,!1),_=1);var $=this._length-1,j=this._length,_e;for(_e=_;_e<j;_e+=1)i.setTripleAt(s[$][0],s[$][1],a[$][0],a[$][1],o[$][0],o[$][1],_e,!1),$-=1;return i},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function i(){return new ShapePath}function s(_){var $=_._length,j;for(j=0;j<$;j+=1)pointPool.release(_.v[j]),pointPool.release(_.i[j]),pointPool.release(_.o[j]),_.v[j]=null,_.i[j]=null,_.o[j]=null;_._length=0,_.c=!1}function o(_){var $=a.newElement(),j,_e=_._length===void 0?_.v.length:_._length;for($.setLength(_e),$.c=_.c,j=0;j<_e;j+=1)$.setTripleAt(_.v[j][0],_.v[j][1],_.o[j][0],_.o[j][1],_.i[j][0],_.i[j][1],j);return $}var a=poolFactory(4,i,s);return a.clone=o,a}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(i){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=i,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var i;for(i=0;i<this._length;i+=1)shapePool.release(this.shapes[i]);this._length=0};var shapeCollectionPool=function(){var i={newShapeCollection:_,release:$},s=0,o=4,a=createSizedArray(o);function _(){var j;return s?(s-=1,j=a[s]):j=new ShapeCollection,j}function $(j){var _e,et=j._length;for(_e=0;_e<et;_e+=1)shapePool.release(j.shapes[_e]);j._length=0,s===o&&(a=pooling.double(a),o*=2),a[s]=j,s+=1}return i}(),ShapePropertyFactory=function(){var i=-999999;function s(ot,lt,at){var ft=at.lastIndex,ht,mt,gt,vt,St,wt,Pt,Rt,It,jt=this.keyframes;if(ot<jt[0].t-this.offsetTime)ht=jt[0].s[0],gt=!0,ft=0;else if(ot>=jt[jt.length-1].t-this.offsetTime)ht=jt[jt.length-1].s?jt[jt.length-1].s[0]:jt[jt.length-2].e[0],gt=!0;else{for(var Mt=ft,xt=jt.length-1,bt=!0,pt,yt,kt;bt&&(pt=jt[Mt],yt=jt[Mt+1],!(yt.t-this.offsetTime>ot));)Mt<xt-1?Mt+=1:bt=!1;if(kt=this.keyframesMetadata[Mt]||{},gt=pt.h===1,ft=Mt,!gt){if(ot>=yt.t-this.offsetTime)Rt=1;else if(ot<pt.t-this.offsetTime)Rt=0;else{var Et;kt.__fnct?Et=kt.__fnct:(Et=BezierFactory.getBezierEasing(pt.o.x,pt.o.y,pt.i.x,pt.i.y).get,kt.__fnct=Et),Rt=Et((ot-(pt.t-this.offsetTime))/(yt.t-this.offsetTime-(pt.t-this.offsetTime)))}mt=yt.s?yt.s[0]:pt.e[0]}ht=pt.s[0]}for(wt=lt._length,Pt=ht.i[0].length,at.lastIndex=ft,vt=0;vt<wt;vt+=1)for(St=0;St<Pt;St+=1)It=gt?ht.i[vt][St]:ht.i[vt][St]+(mt.i[vt][St]-ht.i[vt][St])*Rt,lt.i[vt][St]=It,It=gt?ht.o[vt][St]:ht.o[vt][St]+(mt.o[vt][St]-ht.o[vt][St])*Rt,lt.o[vt][St]=It,It=gt?ht.v[vt][St]:ht.v[vt][St]+(mt.v[vt][St]-ht.v[vt][St])*Rt,lt.v[vt][St]=It}function o(){var ot=this.comp.renderedFrame-this.offsetTime,lt=this.keyframes[0].t-this.offsetTime,at=this.keyframes[this.keyframes.length-1].t-this.offsetTime,ft=this._caching.lastFrame;return ft!==i&&(ft<lt&&ot<lt||ft>at&&ot>at)||(this._caching.lastIndex=ft<ot?this._caching.lastIndex:0,this.interpolateShape(ot,this.pv,this._caching)),this._caching.lastFrame=ot,this.pv}function a(){this.paths=this.localShapeCollection}function _(ot,lt){if(ot._length!==lt._length||ot.c!==lt.c)return!1;var at,ft=ot._length;for(at=0;at<ft;at+=1)if(ot.v[at][0]!==lt.v[at][0]||ot.v[at][1]!==lt.v[at][1]||ot.o[at][0]!==lt.o[at][0]||ot.o[at][1]!==lt.o[at][1]||ot.i[at][0]!==lt.i[at][0]||ot.i[at][1]!==lt.i[at][1])return!1;return!0}function $(ot){_(this.v,ot)||(this.v=shapePool.clone(ot),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function j(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var ot;this.kf?ot=this.pv:this.data.ks?ot=this.data.ks.k:ot=this.data.pt.k;var lt,at=this.effectsSequence.length;for(lt=0;lt<at;lt+=1)ot=this.effectsSequence[lt](ot);this.setVValue(ot),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _e(ot,lt,at){this.propType="shape",this.comp=ot.comp,this.container=ot,this.elem=ot,this.data=lt,this.k=!1,this.kf=!1,this._mdf=!1;var ft=at===3?lt.pt.k:lt.ks.k;this.v=shapePool.clone(ft),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function et(ot){this.effectsSequence.push(ot),this.container.addDynamicProperty(this)}_e.prototype.interpolateShape=s,_e.prototype.getValue=j,_e.prototype.setVValue=$,_e.prototype.addEffect=et;function tt(ot,lt,at){this.propType="shape",this.comp=ot.comp,this.elem=ot,this.container=ot,this.offsetTime=ot.data.st,this.keyframes=at===3?lt.pt.k:lt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var ft=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,ft),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=i,this.reset=a,this._caching={lastFrame:i,lastIndex:0},this.effectsSequence=[o.bind(this)]}tt.prototype.getValue=j,tt.prototype.interpolateShape=s,tt.prototype.setVValue=$,tt.prototype.addEffect=et;var rt=function(){var ot=roundCorner;function lt(at,ft){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=ft.d,this.elem=at,this.comp=at.comp,this.frameId=-1,this.initDynamicPropertyContainer(at),this.p=PropertyFactory.getProp(at,ft.p,1,0,this),this.s=PropertyFactory.getProp(at,ft.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return lt.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var ft=this.p.v[0],ht=this.p.v[1],mt=this.s.v[0]/2,gt=this.s.v[1]/2,vt=this.d!==3,St=this.v;St.v[0][0]=ft,St.v[0][1]=ht-gt,St.v[1][0]=vt?ft+mt:ft-mt,St.v[1][1]=ht,St.v[2][0]=ft,St.v[2][1]=ht+gt,St.v[3][0]=vt?ft-mt:ft+mt,St.v[3][1]=ht,St.i[0][0]=vt?ft-mt*ot:ft+mt*ot,St.i[0][1]=ht-gt,St.i[1][0]=vt?ft+mt:ft-mt,St.i[1][1]=ht-gt*ot,St.i[2][0]=vt?ft+mt*ot:ft-mt*ot,St.i[2][1]=ht+gt,St.i[3][0]=vt?ft-mt:ft+mt,St.i[3][1]=ht+gt*ot,St.o[0][0]=vt?ft+mt*ot:ft-mt*ot,St.o[0][1]=ht-gt,St.o[1][0]=vt?ft+mt:ft-mt,St.o[1][1]=ht+gt*ot,St.o[2][0]=vt?ft-mt*ot:ft+mt*ot,St.o[2][1]=ht+gt,St.o[3][0]=vt?ft-mt:ft+mt,St.o[3][1]=ht-gt*ot}},extendPrototype([DynamicPropertyContainer],lt),lt}(),it=function(){function ot(lt,at){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=lt,this.comp=lt.comp,this.data=at,this.frameId=-1,this.d=at.d,this.initDynamicPropertyContainer(lt),at.sy===1?(this.ir=PropertyFactory.getProp(lt,at.ir,0,0,this),this.is=PropertyFactory.getProp(lt,at.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(lt,at.pt,0,0,this),this.p=PropertyFactory.getProp(lt,at.p,1,0,this),this.r=PropertyFactory.getProp(lt,at.r,0,degToRads,this),this.or=PropertyFactory.getProp(lt,at.or,0,0,this),this.os=PropertyFactory.getProp(lt,at.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return ot.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var at=Math.floor(this.pt.v)*2,ft=Math.PI*2/at,ht=!0,mt=this.or.v,gt=this.ir.v,vt=this.os.v,St=this.is.v,wt=2*Math.PI*mt/(at*2),Pt=2*Math.PI*gt/(at*2),Rt,It,jt,Mt,xt=-Math.PI/2;xt+=this.r.v;var bt=this.data.d===3?-1:1;for(this.v._length=0,Rt=0;Rt<at;Rt+=1){It=ht?mt:gt,jt=ht?vt:St,Mt=ht?wt:Pt;var pt=It*Math.cos(xt),yt=It*Math.sin(xt),kt=pt===0&&yt===0?0:yt/Math.sqrt(pt*pt+yt*yt),Et=pt===0&&yt===0?0:-pt/Math.sqrt(pt*pt+yt*yt);pt+=+this.p.v[0],yt+=+this.p.v[1],this.v.setTripleAt(pt,yt,pt-kt*Mt*jt*bt,yt-Et*Mt*jt*bt,pt+kt*Mt*jt*bt,yt+Et*Mt*jt*bt,Rt,!0),ht=!ht,xt+=ft*bt}},convertPolygonToPath:function(){var at=Math.floor(this.pt.v),ft=Math.PI*2/at,ht=this.or.v,mt=this.os.v,gt=2*Math.PI*ht/(at*4),vt,St=-Math.PI*.5,wt=this.data.d===3?-1:1;for(St+=this.r.v,this.v._length=0,vt=0;vt<at;vt+=1){var Pt=ht*Math.cos(St),Rt=ht*Math.sin(St),It=Pt===0&&Rt===0?0:Rt/Math.sqrt(Pt*Pt+Rt*Rt),jt=Pt===0&&Rt===0?0:-Pt/Math.sqrt(Pt*Pt+Rt*Rt);Pt+=+this.p.v[0],Rt+=+this.p.v[1],this.v.setTripleAt(Pt,Rt,Pt-It*gt*mt*wt,Rt-jt*gt*mt*wt,Pt+It*gt*mt*wt,Rt+jt*gt*mt*wt,vt,!0),St+=ft*wt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],ot),ot}(),nt=function(){function ot(lt,at){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=lt,this.comp=lt.comp,this.frameId=-1,this.d=at.d,this.initDynamicPropertyContainer(lt),this.p=PropertyFactory.getProp(lt,at.p,1,0,this),this.s=PropertyFactory.getProp(lt,at.s,1,0,this),this.r=PropertyFactory.getProp(lt,at.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return ot.prototype={convertRectToPath:function(){var at=this.p.v[0],ft=this.p.v[1],ht=this.s.v[0]/2,mt=this.s.v[1]/2,gt=bmMin(ht,mt,this.r.v),vt=gt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(at+ht,ft-mt+gt,at+ht,ft-mt+gt,at+ht,ft-mt+vt,0,!0),this.v.setTripleAt(at+ht,ft+mt-gt,at+ht,ft+mt-vt,at+ht,ft+mt-gt,1,!0),gt!==0?(this.v.setTripleAt(at+ht-gt,ft+mt,at+ht-gt,ft+mt,at+ht-vt,ft+mt,2,!0),this.v.setTripleAt(at-ht+gt,ft+mt,at-ht+vt,ft+mt,at-ht+gt,ft+mt,3,!0),this.v.setTripleAt(at-ht,ft+mt-gt,at-ht,ft+mt-gt,at-ht,ft+mt-vt,4,!0),this.v.setTripleAt(at-ht,ft-mt+gt,at-ht,ft-mt+vt,at-ht,ft-mt+gt,5,!0),this.v.setTripleAt(at-ht+gt,ft-mt,at-ht+gt,ft-mt,at-ht+vt,ft-mt,6,!0),this.v.setTripleAt(at+ht-gt,ft-mt,at+ht-vt,ft-mt,at+ht-gt,ft-mt,7,!0)):(this.v.setTripleAt(at-ht,ft+mt,at-ht+vt,ft+mt,at-ht,ft+mt,2),this.v.setTripleAt(at-ht,ft-mt,at-ht,ft-mt+vt,at-ht,ft-mt,3))):(this.v.setTripleAt(at+ht,ft-mt+gt,at+ht,ft-mt+vt,at+ht,ft-mt+gt,0,!0),gt!==0?(this.v.setTripleAt(at+ht-gt,ft-mt,at+ht-gt,ft-mt,at+ht-vt,ft-mt,1,!0),this.v.setTripleAt(at-ht+gt,ft-mt,at-ht+vt,ft-mt,at-ht+gt,ft-mt,2,!0),this.v.setTripleAt(at-ht,ft-mt+gt,at-ht,ft-mt+gt,at-ht,ft-mt+vt,3,!0),this.v.setTripleAt(at-ht,ft+mt-gt,at-ht,ft+mt-vt,at-ht,ft+mt-gt,4,!0),this.v.setTripleAt(at-ht+gt,ft+mt,at-ht+gt,ft+mt,at-ht+vt,ft+mt,5,!0),this.v.setTripleAt(at+ht-gt,ft+mt,at+ht-vt,ft+mt,at+ht-gt,ft+mt,6,!0),this.v.setTripleAt(at+ht,ft+mt-gt,at+ht,ft+mt-gt,at+ht,ft+mt-vt,7,!0)):(this.v.setTripleAt(at-ht,ft-mt,at-ht+vt,ft-mt,at-ht,ft-mt,1,!0),this.v.setTripleAt(at-ht,ft+mt,at-ht,ft+mt-vt,at-ht,ft+mt,2,!0),this.v.setTripleAt(at+ht,ft+mt,at+ht-vt,ft+mt,at+ht,ft+mt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],ot),ot}();function ut(ot,lt,at){var ft;if(at===3||at===4){var ht=at===3?lt.pt:lt.ks,mt=ht.k;mt.length?ft=new tt(ot,lt,at):ft=new _e(ot,lt,at)}else at===5?ft=new nt(ot,lt):at===6?ft=new rt(ot,lt):at===7&&(ft=new it(ot,lt));return ft.k&&ot.addDynamicProperty(ft),ft}function ct(){return _e}function st(){return tt}var dt={};return dt.getShapeProp=ut,dt.getConstructorFunction=ct,dt.getKeyframedConstructorFunction=st,dt}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var i=Math.cos,s=Math.sin,o=Math.tan,a=Math.round;function _(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function $(pt){if(pt===0)return this;var yt=i(pt),kt=s(pt);return this._t(yt,-kt,0,0,kt,yt,0,0,0,0,1,0,0,0,0,1)}function j(pt){if(pt===0)return this;var yt=i(pt),kt=s(pt);return this._t(1,0,0,0,0,yt,-kt,0,0,kt,yt,0,0,0,0,1)}function _e(pt){if(pt===0)return this;var yt=i(pt),kt=s(pt);return this._t(yt,0,kt,0,0,1,0,0,-kt,0,yt,0,0,0,0,1)}function et(pt){if(pt===0)return this;var yt=i(pt),kt=s(pt);return this._t(yt,-kt,0,0,kt,yt,0,0,0,0,1,0,0,0,0,1)}function tt(pt,yt){return this._t(1,yt,pt,1,0,0)}function rt(pt,yt){return this.shear(o(pt),o(yt))}function it(pt,yt){var kt=i(yt),Et=s(yt);return this._t(kt,Et,0,0,-Et,kt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,o(pt),1,0,0,0,0,1,0,0,0,0,1)._t(kt,-Et,0,0,Et,kt,0,0,0,0,1,0,0,0,0,1)}function nt(pt,yt,kt){return!kt&&kt!==0&&(kt=1),pt===1&&yt===1&&kt===1?this:this._t(pt,0,0,0,0,yt,0,0,0,0,kt,0,0,0,0,1)}function ut(pt,yt,kt,Et,$t,At,Ot,Vt,Lt,Wt,qt,dr,ir,Zt,or,Ut){return this.props[0]=pt,this.props[1]=yt,this.props[2]=kt,this.props[3]=Et,this.props[4]=$t,this.props[5]=At,this.props[6]=Ot,this.props[7]=Vt,this.props[8]=Lt,this.props[9]=Wt,this.props[10]=qt,this.props[11]=dr,this.props[12]=ir,this.props[13]=Zt,this.props[14]=or,this.props[15]=Ut,this}function ct(pt,yt,kt){return kt=kt||0,pt!==0||yt!==0||kt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,pt,yt,kt,1):this}function st(pt,yt,kt,Et,$t,At,Ot,Vt,Lt,Wt,qt,dr,ir,Zt,or,Ut){var Bt=this.props;if(pt===1&&yt===0&&kt===0&&Et===0&&$t===0&&At===1&&Ot===0&&Vt===0&&Lt===0&&Wt===0&&qt===1&&dr===0)return Bt[12]=Bt[12]*pt+Bt[15]*ir,Bt[13]=Bt[13]*At+Bt[15]*Zt,Bt[14]=Bt[14]*qt+Bt[15]*or,Bt[15]*=Ut,this._identityCalculated=!1,this;var yr=Bt[0],rr=Bt[1],ar=Bt[2],lr=Bt[3],cr=Bt[4],Jt=Bt[5],nr=Bt[6],pr=Bt[7],ur=Bt[8],hr=Bt[9],br=Bt[10],mr=Bt[11],wr=Bt[12],kr=Bt[13],Kr=Bt[14],Xr=Bt[15];return Bt[0]=yr*pt+rr*$t+ar*Lt+lr*ir,Bt[1]=yr*yt+rr*At+ar*Wt+lr*Zt,Bt[2]=yr*kt+rr*Ot+ar*qt+lr*or,Bt[3]=yr*Et+rr*Vt+ar*dr+lr*Ut,Bt[4]=cr*pt+Jt*$t+nr*Lt+pr*ir,Bt[5]=cr*yt+Jt*At+nr*Wt+pr*Zt,Bt[6]=cr*kt+Jt*Ot+nr*qt+pr*or,Bt[7]=cr*Et+Jt*Vt+nr*dr+pr*Ut,Bt[8]=ur*pt+hr*$t+br*Lt+mr*ir,Bt[9]=ur*yt+hr*At+br*Wt+mr*Zt,Bt[10]=ur*kt+hr*Ot+br*qt+mr*or,Bt[11]=ur*Et+hr*Vt+br*dr+mr*Ut,Bt[12]=wr*pt+kr*$t+Kr*Lt+Xr*ir,Bt[13]=wr*yt+kr*At+Kr*Wt+Xr*Zt,Bt[14]=wr*kt+kr*Ot+Kr*qt+Xr*or,Bt[15]=wr*Et+kr*Vt+Kr*dr+Xr*Ut,this._identityCalculated=!1,this}function dt(pt){var yt=pt.props;return this.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15])}function ot(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function lt(pt){for(var yt=0;yt<16;){if(pt.props[yt]!==this.props[yt])return!1;yt+=1}return!0}function at(pt){var yt;for(yt=0;yt<16;yt+=1)pt.props[yt]=this.props[yt];return pt}function ft(pt){var yt;for(yt=0;yt<16;yt+=1)this.props[yt]=pt[yt]}function ht(pt,yt,kt){return{x:pt*this.props[0]+yt*this.props[4]+kt*this.props[8]+this.props[12],y:pt*this.props[1]+yt*this.props[5]+kt*this.props[9]+this.props[13],z:pt*this.props[2]+yt*this.props[6]+kt*this.props[10]+this.props[14]}}function mt(pt,yt,kt){return pt*this.props[0]+yt*this.props[4]+kt*this.props[8]+this.props[12]}function gt(pt,yt,kt){return pt*this.props[1]+yt*this.props[5]+kt*this.props[9]+this.props[13]}function vt(pt,yt,kt){return pt*this.props[2]+yt*this.props[6]+kt*this.props[10]+this.props[14]}function St(){var pt=this.props[0]*this.props[5]-this.props[1]*this.props[4],yt=this.props[5]/pt,kt=-this.props[1]/pt,Et=-this.props[4]/pt,$t=this.props[0]/pt,At=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/pt,Ot=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/pt,Vt=new Matrix;return Vt.props[0]=yt,Vt.props[1]=kt,Vt.props[4]=Et,Vt.props[5]=$t,Vt.props[12]=At,Vt.props[13]=Ot,Vt}function wt(pt){var yt=this.getInverseMatrix();return yt.applyToPointArray(pt[0],pt[1],pt[2]||0)}function Pt(pt){var yt,kt=pt.length,Et=[];for(yt=0;yt<kt;yt+=1)Et[yt]=wt(pt[yt]);return Et}function Rt(pt,yt,kt){var Et=createTypedArray("float32",6);if(this.isIdentity())Et[0]=pt[0],Et[1]=pt[1],Et[2]=yt[0],Et[3]=yt[1],Et[4]=kt[0],Et[5]=kt[1];else{var $t=this.props[0],At=this.props[1],Ot=this.props[4],Vt=this.props[5],Lt=this.props[12],Wt=this.props[13];Et[0]=pt[0]*$t+pt[1]*Ot+Lt,Et[1]=pt[0]*At+pt[1]*Vt+Wt,Et[2]=yt[0]*$t+yt[1]*Ot+Lt,Et[3]=yt[0]*At+yt[1]*Vt+Wt,Et[4]=kt[0]*$t+kt[1]*Ot+Lt,Et[5]=kt[0]*At+kt[1]*Vt+Wt}return Et}function It(pt,yt,kt){var Et;return this.isIdentity()?Et=[pt,yt,kt]:Et=[pt*this.props[0]+yt*this.props[4]+kt*this.props[8]+this.props[12],pt*this.props[1]+yt*this.props[5]+kt*this.props[9]+this.props[13],pt*this.props[2]+yt*this.props[6]+kt*this.props[10]+this.props[14]],Et}function jt(pt,yt){if(this.isIdentity())return pt+","+yt;var kt=this.props;return Math.round((pt*kt[0]+yt*kt[4]+kt[12])*100)/100+","+Math.round((pt*kt[1]+yt*kt[5]+kt[13])*100)/100}function Mt(){for(var pt=0,yt=this.props,kt="matrix3d(",Et=1e4;pt<16;)kt+=a(yt[pt]*Et)/Et,kt+=pt===15?")":",",pt+=1;return kt}function xt(pt){var yt=1e4;return pt<1e-6&&pt>0||pt>-1e-6&&pt<0?a(pt*yt)/yt:pt}function bt(){var pt=this.props,yt=xt(pt[0]),kt=xt(pt[1]),Et=xt(pt[4]),$t=xt(pt[5]),At=xt(pt[12]),Ot=xt(pt[13]);return"matrix("+yt+","+kt+","+Et+","+$t+","+At+","+Ot+")"}return function(){this.reset=_,this.rotate=$,this.rotateX=j,this.rotateY=_e,this.rotateZ=et,this.skew=rt,this.skewFromAxis=it,this.shear=tt,this.scale=nt,this.setTransform=ut,this.translate=ct,this.transform=st,this.multiply=dt,this.applyToPoint=ht,this.applyToX=mt,this.applyToY=gt,this.applyToZ=vt,this.applyToPointArray=It,this.applyToTriplePoints=Rt,this.applyToPointStringified=jt,this.toCSS=Mt,this.to2dCSS=bt,this.clone=at,this.cloneFromProps=ft,this.equals=lt,this.inversePoints=Pt,this.inversePoint=wt,this.getInverseMatrix=St,this._t=this.transform,this.isIdentity=ot,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(o){return typeof o}:_typeof$3=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$3(i)}var lottie={};function setLocation(i){setLocationHref(i)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(i){setSubframeEnabled(i)}function setPrefix(i){setIdPrefix(i)}function loadAnimation(i){return animationManager.loadAnimation(i)}function setQuality(i){if(typeof i=="string")switch(i){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(i)&&i>1&&setDefaultCurveSegments(i)}function inBrowser(){return typeof navigator<"u"}function installPlugin(i,s){i==="expressions"&&setExpressionsPlugin(s)}function getFactory(i){switch(i){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(i){for(var s=queryString.split("&"),o=0;o<s.length;o+=1){var a=s[o].split("=");if(decodeURIComponent(a[0])==i)return decodeURIComponent(a[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(i){}var ShapeModifiers=function(){var i={},s={};i.registerModifier=o,i.getModifier=a;function o(_,$){s[_]||(s[_]=$)}function a(_,$,j){return new s[_]($,j)}return i}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(i){if(!this.closed){i.sh.container.addDynamicProperty(i.sh);var s={shape:i.sh,data:i,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&i.setAsAnimated()}},ShapeModifier.prototype.init=function(i,s){this.shapes=[],this.elem=i,this.initDynamicPropertyContainer(i),this.initModifierProperties(i,s),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(i,s){this.s=PropertyFactory.getProp(i,s.s,0,.01,this),this.e=PropertyFactory.getProp(i,s.e,0,.01,this),this.o=PropertyFactory.getProp(i,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(i){i.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(i,s,o,a,_){var $=[];s<=1?$.push({s:i,e:s}):i>=1?$.push({s:i-1,e:s-1}):($.push({s:i,e:1}),$.push({s:0,e:s-1}));var j=[],_e,et=$.length,tt;for(_e=0;_e<et;_e+=1)if(tt=$[_e],!(tt.e*_<a||tt.s*_>a+o)){var rt,it;tt.s*_<=a?rt=0:rt=(tt.s*_-a)/o,tt.e*_>=a+o?it=1:it=(tt.e*_-a)/o,j.push([rt,it])}return j.length||j.push([0,0]),j},TrimModifier.prototype.releasePathsData=function(i){var s,o=i.length;for(s=0;s<o;s+=1)segmentsLengthPool.release(i[s]);return i.length=0,i},TrimModifier.prototype.processShapes=function(i){var s,o;if(this._mdf||i){var a=this.o.v%360/360;if(a<0&&(a+=1),this.s.v>1?s=1+a:this.s.v<0?s=0+a:s=this.s.v+a,this.e.v>1?o=1+a:this.e.v<0?o=0+a:o=this.e.v+a,s>o){var _=s;s=o,o=_}s=Math.round(s*1e4)*1e-4,o=Math.round(o*1e4)*1e-4,this.sValue=s,this.eValue=o}else s=this.sValue,o=this.eValue;var $,j,_e=this.shapes.length,et,tt,rt,it,nt,ut=0;if(o===s)for(j=0;j<_e;j+=1)this.shapes[j].localShapeCollection.releaseShapes(),this.shapes[j].shape._mdf=!0,this.shapes[j].shape.paths=this.shapes[j].localShapeCollection,this._mdf&&(this.shapes[j].pathsData.length=0);else if(o===1&&s===0||o===0&&s===1){if(this._mdf)for(j=0;j<_e;j+=1)this.shapes[j].pathsData.length=0,this.shapes[j].shape._mdf=!0}else{var ct=[],st,dt;for(j=0;j<_e;j+=1)if(st=this.shapes[j],!st.shape._mdf&&!this._mdf&&!i&&this.m!==2)st.shape.paths=st.localShapeCollection;else{if($=st.shape.paths,tt=$._length,nt=0,!st.shape._mdf&&st.pathsData.length)nt=st.totalShapeLength;else{for(rt=this.releasePathsData(st.pathsData),et=0;et<tt;et+=1)it=bez.getSegmentsLength($.shapes[et]),rt.push(it),nt+=it.totalLength;st.totalShapeLength=nt,st.pathsData=rt}ut+=nt,st.shape._mdf=!0}var ot=s,lt=o,at=0,ft;for(j=_e-1;j>=0;j-=1)if(st=this.shapes[j],st.shape._mdf){for(dt=st.localShapeCollection,dt.releaseShapes(),this.m===2&&_e>1?(ft=this.calculateShapeEdges(s,o,st.totalShapeLength,at,ut),at+=st.totalShapeLength):ft=[[ot,lt]],tt=ft.length,et=0;et<tt;et+=1){ot=ft[et][0],lt=ft[et][1],ct.length=0,lt<=1?ct.push({s:st.totalShapeLength*ot,e:st.totalShapeLength*lt}):ot>=1?ct.push({s:st.totalShapeLength*(ot-1),e:st.totalShapeLength*(lt-1)}):(ct.push({s:st.totalShapeLength*ot,e:st.totalShapeLength}),ct.push({s:0,e:st.totalShapeLength*(lt-1)}));var ht=this.addShapes(st,ct[0]);if(ct[0].s!==ct[0].e){if(ct.length>1){var mt=st.shape.paths.shapes[st.shape.paths._length-1];if(mt.c){var gt=ht.pop();this.addPaths(ht,dt),ht=this.addShapes(st,ct[1],gt)}else this.addPaths(ht,dt),ht=this.addShapes(st,ct[1])}this.addPaths(ht,dt)}}st.shape.paths=dt}}},TrimModifier.prototype.addPaths=function(i,s){var o,a=i.length;for(o=0;o<a;o+=1)s.addShape(i[o])},TrimModifier.prototype.addSegment=function(i,s,o,a,_,$,j){_.setXYAt(s[0],s[1],"o",$),_.setXYAt(o[0],o[1],"i",$+1),j&&_.setXYAt(i[0],i[1],"v",$),_.setXYAt(a[0],a[1],"v",$+1)},TrimModifier.prototype.addSegmentFromArray=function(i,s,o,a){s.setXYAt(i[1],i[5],"o",o),s.setXYAt(i[2],i[6],"i",o+1),a&&s.setXYAt(i[0],i[4],"v",o),s.setXYAt(i[3],i[7],"v",o+1)},TrimModifier.prototype.addShapes=function(i,s,o){var a=i.pathsData,_=i.shape.paths.shapes,$,j=i.shape.paths._length,_e,et,tt=0,rt,it,nt,ut,ct=[],st,dt=!0;for(o?(it=o._length,st=o._length):(o=shapePool.newElement(),it=0,st=0),ct.push(o),$=0;$<j;$+=1){for(nt=a[$].lengths,o.c=_[$].c,et=_[$].c?nt.length:nt.length+1,_e=1;_e<et;_e+=1)if(rt=nt[_e-1],tt+rt.addedLength<s.s)tt+=rt.addedLength,o.c=!1;else if(tt>s.e){o.c=!1;break}else s.s<=tt&&s.e>=tt+rt.addedLength?(this.addSegment(_[$].v[_e-1],_[$].o[_e-1],_[$].i[_e],_[$].v[_e],o,it,dt),dt=!1):(ut=bez.getNewSegment(_[$].v[_e-1],_[$].v[_e],_[$].o[_e-1],_[$].i[_e],(s.s-tt)/rt.addedLength,(s.e-tt)/rt.addedLength,nt[_e-1]),this.addSegmentFromArray(ut,o,it,dt),dt=!1,o.c=!1),tt+=rt.addedLength,it+=1;if(_[$].c&&nt.length){if(rt=nt[_e-1],tt<=s.e){var ot=nt[_e-1].addedLength;s.s<=tt&&s.e>=tt+ot?(this.addSegment(_[$].v[_e-1],_[$].o[_e-1],_[$].i[0],_[$].v[0],o,it,dt),dt=!1):(ut=bez.getNewSegment(_[$].v[_e-1],_[$].v[0],_[$].o[_e-1],_[$].i[0],(s.s-tt)/ot,(s.e-tt)/ot,nt[_e-1]),this.addSegmentFromArray(ut,o,it,dt),dt=!1,o.c=!1)}else o.c=!1;tt+=rt.addedLength,it+=1}if(o._length&&(o.setXYAt(o.v[st][0],o.v[st][1],"i",st),o.setXYAt(o.v[o._length-1][0],o.v[o._length-1][1],"o",o._length-1)),tt>s.e)break;$<j-1&&(o=shapePool.newElement(),dt=!0,ct.push(o),it=0)}return ct};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(i,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(i,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(i,s){var o=s/100,a=[0,0],_=i._length,$=0;for($=0;$<_;$+=1)a[0]+=i.v[$][0],a[1]+=i.v[$][1];a[0]/=_,a[1]/=_;var j=shapePool.newElement();j.c=i.c;var _e,et,tt,rt,it,nt;for($=0;$<_;$+=1)_e=i.v[$][0]+(a[0]-i.v[$][0])*o,et=i.v[$][1]+(a[1]-i.v[$][1])*o,tt=i.o[$][0]+(a[0]-i.o[$][0])*-o,rt=i.o[$][1]+(a[1]-i.o[$][1])*-o,it=i.i[$][0]+(a[0]-i.i[$][0])*-o,nt=i.i[$][1]+(a[1]-i.i[$][1])*-o,j.setTripleAt(_e,et,tt,rt,it,nt,$);return j},PuckerAndBloatModifier.prototype.processShapes=function(i){var s,o,a=this.shapes.length,_,$,j=this.amount.v;if(j!==0){var _e,et;for(o=0;o<a;o+=1){if(_e=this.shapes[o],et=_e.localShapeCollection,!(!_e.shape._mdf&&!this._mdf&&!i))for(et.releaseShapes(),_e.shape._mdf=!0,s=_e.shape.paths.shapes,$=_e.shape.paths._length,_=0;_<$;_+=1)et.addShape(this.processPath(s[_],j));_e.shape.paths=_e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var i=[0,0];function s(et){var tt=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||tt,this.a&&et.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&et.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&et.skewFromAxis(-this.sk.v,this.sa.v),this.r?et.rotate(-this.r.v):et.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?et.translate(this.px.v,this.py.v,-this.pz.v):et.translate(this.px.v,this.py.v,0):et.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function o(et){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||et){var tt;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var rt,it;if(tt=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(rt=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/tt,0),it=this.p.getValueAtTime(this.p.keyframes[0].t/tt,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(rt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/tt,0),it=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/tt,0)):(rt=this.p.pv,it=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/tt,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){rt=[],it=[];var nt=this.px,ut=this.py;nt._caching.lastFrame+nt.offsetTime<=nt.keyframes[0].t?(rt[0]=nt.getValueAtTime((nt.keyframes[0].t+.01)/tt,0),rt[1]=ut.getValueAtTime((ut.keyframes[0].t+.01)/tt,0),it[0]=nt.getValueAtTime(nt.keyframes[0].t/tt,0),it[1]=ut.getValueAtTime(ut.keyframes[0].t/tt,0)):nt._caching.lastFrame+nt.offsetTime>=nt.keyframes[nt.keyframes.length-1].t?(rt[0]=nt.getValueAtTime(nt.keyframes[nt.keyframes.length-1].t/tt,0),rt[1]=ut.getValueAtTime(ut.keyframes[ut.keyframes.length-1].t/tt,0),it[0]=nt.getValueAtTime((nt.keyframes[nt.keyframes.length-1].t-.01)/tt,0),it[1]=ut.getValueAtTime((ut.keyframes[ut.keyframes.length-1].t-.01)/tt,0)):(rt=[nt.pv,ut.pv],it[0]=nt.getValueAtTime((nt._caching.lastFrame+nt.offsetTime-.01)/tt,nt.offsetTime),it[1]=ut.getValueAtTime((ut._caching.lastFrame+ut.offsetTime-.01)/tt,ut.offsetTime))}else it=i,rt=it;this.v.rotate(-Math.atan2(rt[1]-it[1],rt[0]-it[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function a(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function _(){}function $(et){this._addDynamicProperty(et),this.elem.addDynamicProperty(et),this._isDirty=!0}function j(et,tt,rt){if(this.elem=et,this.frameId=-1,this.propType="transform",this.data=tt,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(rt||et),tt.p&&tt.p.s?(this.px=PropertyFactory.getProp(et,tt.p.x,0,0,this),this.py=PropertyFactory.getProp(et,tt.p.y,0,0,this),tt.p.z&&(this.pz=PropertyFactory.getProp(et,tt.p.z,0,0,this))):this.p=PropertyFactory.getProp(et,tt.p||{k:[0,0,0]},1,0,this),tt.rx){if(this.rx=PropertyFactory.getProp(et,tt.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(et,tt.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(et,tt.rz,0,degToRads,this),tt.or.k[0].ti){var it,nt=tt.or.k.length;for(it=0;it<nt;it+=1)tt.or.k[it].to=null,tt.or.k[it].ti=null}this.or=PropertyFactory.getProp(et,tt.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(et,tt.r||{k:0},0,degToRads,this);tt.sk&&(this.sk=PropertyFactory.getProp(et,tt.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(et,tt.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(et,tt.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(et,tt.s||{k:[100,100,100]},1,.01,this),tt.o?this.o=PropertyFactory.getProp(et,tt.o,0,.01,et):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}j.prototype={applyToMatrix:s,getValue:o,precalculateMatrix:a,autoOrient:_},extendPrototype([DynamicPropertyContainer],j),j.prototype.addDynamicProperty=$,j.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function _e(et,tt,rt){return new j(et,tt,rt)}return{getTransformProperty:_e}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(i,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(i,s.c,0,null,this),this.o=PropertyFactory.getProp(i,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(i,s.tr,this),this.so=PropertyFactory.getProp(i,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(i,s.tr.eo,0,.01,this),this.data=s,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(i,s,o,a,_,$){var j=$?-1:1,_e=a.s.v[0]+(1-a.s.v[0])*(1-_),et=a.s.v[1]+(1-a.s.v[1])*(1-_);i.translate(a.p.v[0]*j*_,a.p.v[1]*j*_,a.p.v[2]),s.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),s.rotate(-a.r.v*j*_),s.translate(a.a.v[0],a.a.v[1],a.a.v[2]),o.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),o.scale($?1/_e:_e,$?1/et:et),o.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(i,s,o,a){for(this.elem=i,this.arr=s,this.pos=o,this.elemsData=a,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(i),this.initModifierProperties(i,s[o]);o>0;)o-=1,this._elements.unshift(s[o]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(i){var s,o=i.length;for(s=0;s<o;s+=1)i[s]._processed=!1,i[s].ty==="gr"&&this.resetElements(i[s].it)},RepeaterModifier.prototype.cloneElements=function(i){var s=JSON.parse(JSON.stringify(i));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(i,s){var o,a=i.length;for(o=0;o<a;o+=1)i[o]._render=s,i[o].ty==="gr"&&this.changeGroupRender(i[o].it,s)},RepeaterModifier.prototype.processShapes=function(i){var s,o,a,_,$,j=!1;if(this._mdf||i){var _e=Math.ceil(this.c.v);if(this._groups.length<_e){for(;this._groups.length<_e;){var et={it:this.cloneElements(this._elements),ty:"gr"};et.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,et),this._groups.splice(0,0,et),this._currentCopies+=1}this.elem.reloadShapes(),j=!0}$=0;var tt;for(a=0;a<=this._groups.length-1;a+=1){if(tt=$<_e,this._groups[a]._render=tt,this.changeGroupRender(this._groups[a].it,tt),!tt){var rt=this.elemsData[a].it,it=rt[rt.length-1];it.transform.op.v!==0?(it.transform.op._mdf=!0,it.transform.op.v=0):it.transform.op._mdf=!1}$+=1}this._currentCopies=_e;var nt=this.o.v,ut=nt%1,ct=nt>0?Math.floor(nt):Math.ceil(nt),st=this.pMatrix.props,dt=this.rMatrix.props,ot=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var lt=0;if(nt>0){for(;lt<ct;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),lt+=1;ut&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,ut,!1),lt+=ut)}else if(nt<0){for(;lt>ct;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),lt-=1;ut&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-ut,!0),lt-=ut)}a=this.data.m===1?0:this._currentCopies-1,_=this.data.m===1?1:-1,$=this._currentCopies;for(var at,ft;$;){if(s=this.elemsData[a].it,o=s[s.length-1].transform.mProps.v.props,ft=o.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),lt!==0){for((a!==0&&_===1||a!==this._currentCopies-1&&_===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(dt[0],dt[1],dt[2],dt[3],dt[4],dt[5],dt[6],dt[7],dt[8],dt[9],dt[10],dt[11],dt[12],dt[13],dt[14],dt[15]),this.matrix.transform(ot[0],ot[1],ot[2],ot[3],ot[4],ot[5],ot[6],ot[7],ot[8],ot[9],ot[10],ot[11],ot[12],ot[13],ot[14],ot[15]),this.matrix.transform(st[0],st[1],st[2],st[3],st[4],st[5],st[6],st[7],st[8],st[9],st[10],st[11],st[12],st[13],st[14],st[15]),at=0;at<ft;at+=1)o[at]=this.matrix.props[at];this.matrix.reset()}else for(this.matrix.reset(),at=0;at<ft;at+=1)o[at]=this.matrix.props[at];lt+=1,$-=1,a+=_}}else for($=this._currentCopies,a=0,_=1;$;)s=this.elemsData[a].it,o=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,$-=1,a+=_;return j},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(i,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(i,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(i,s){var o=shapePool.newElement();o.c=i.c;var a,_=i._length,$,j,_e,et,tt,rt,it=0,nt,ut,ct,st,dt,ot;for(a=0;a<_;a+=1)$=i.v[a],_e=i.o[a],j=i.i[a],$[0]===_e[0]&&$[1]===_e[1]&&$[0]===j[0]&&$[1]===j[1]?(a===0||a===_-1)&&!i.c?(o.setTripleAt($[0],$[1],_e[0],_e[1],j[0],j[1],it),it+=1):(a===0?et=i.v[_-1]:et=i.v[a-1],tt=Math.sqrt(Math.pow($[0]-et[0],2)+Math.pow($[1]-et[1],2)),rt=tt?Math.min(tt/2,s)/tt:0,dt=$[0]+(et[0]-$[0])*rt,nt=dt,ot=$[1]-($[1]-et[1])*rt,ut=ot,ct=nt-(nt-$[0])*roundCorner,st=ut-(ut-$[1])*roundCorner,o.setTripleAt(nt,ut,ct,st,dt,ot,it),it+=1,a===_-1?et=i.v[0]:et=i.v[a+1],tt=Math.sqrt(Math.pow($[0]-et[0],2)+Math.pow($[1]-et[1],2)),rt=tt?Math.min(tt/2,s)/tt:0,ct=$[0]+(et[0]-$[0])*rt,nt=ct,st=$[1]+(et[1]-$[1])*rt,ut=st,dt=nt-(nt-$[0])*roundCorner,ot=ut-(ut-$[1])*roundCorner,o.setTripleAt(nt,ut,ct,st,dt,ot,it),it+=1):(o.setTripleAt(i.v[a][0],i.v[a][1],i.o[a][0],i.o[a][1],i.i[a][0],i.i[a][1],it),it+=1);return o},RoundCornersModifier.prototype.processShapes=function(i){var s,o,a=this.shapes.length,_,$,j=this.rd.v;if(j!==0){var _e,et;for(o=0;o<a;o+=1){if(_e=this.shapes[o],et=_e.localShapeCollection,!(!_e.shape._mdf&&!this._mdf&&!i))for(et.releaseShapes(),_e.shape._mdf=!0,s=_e.shape.paths.shapes,$=_e.shape.paths._length,_=0;_<$;_+=1)et.addShape(this.processPath(s[_],j));_e.shape.paths=_e.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(i,s){return Math.abs(i-s)*1e5<=Math.min(Math.abs(i),Math.abs(s))}function floatZero(i){return Math.abs(i)<=1e-5}function lerp(i,s,o){return i*(1-o)+s*o}function lerpPoint(i,s,o){return[lerp(i[0],s[0],o),lerp(i[1],s[1],o)]}function quadRoots(i,s,o){if(i===0)return[];var a=s*s-4*i*o;if(a<0)return[];var _=-s/(2*i);if(a===0)return[_];var $=Math.sqrt(a)/(2*i);return[_-$,_+$]}function polynomialCoefficients(i,s,o,a){return[-i+3*s-3*o+a,3*i-6*s+3*o,-3*i+3*s,i]}function singlePoint(i){return new PolynomialBezier(i,i,i,i,!1)}function PolynomialBezier(i,s,o,a,_){_&&pointEqual(i,s)&&(s=lerpPoint(i,a,1/3)),_&&pointEqual(o,a)&&(o=lerpPoint(i,a,2/3));var $=polynomialCoefficients(i[0],s[0],o[0],a[0]),j=polynomialCoefficients(i[1],s[1],o[1],a[1]);this.a=[$[0],j[0]],this.b=[$[1],j[1]],this.c=[$[2],j[2]],this.d=[$[3],j[3]],this.points=[i,s,o,a]}PolynomialBezier.prototype.point=function(i){return[((this.a[0]*i+this.b[0])*i+this.c[0])*i+this.d[0],((this.a[1]*i+this.b[1])*i+this.c[1])*i+this.d[1]]},PolynomialBezier.prototype.derivative=function(i){return[(3*i*this.a[0]+2*this.b[0])*i+this.c[0],(3*i*this.a[1]+2*this.b[1])*i+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(i){var s=this.derivative(i);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(i){var s=this.derivative(i);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var i=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(i))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/i,o=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/i;if(o<0)return[];var a=Math.sqrt(o);return floatZero(a)?a>0&&a<1?[s]:[]:[s-a,s+a].filter(function(_){return _>0&&_<1})},PolynomialBezier.prototype.split=function(i){if(i<=0)return[singlePoint(this.points[0]),this];if(i>=1)return[this,singlePoint(this.points[this.points.length-1])];var s=lerpPoint(this.points[0],this.points[1],i),o=lerpPoint(this.points[1],this.points[2],i),a=lerpPoint(this.points[2],this.points[3],i),_=lerpPoint(s,o,i),$=lerpPoint(o,a,i),j=lerpPoint(_,$,i);return[new PolynomialBezier(this.points[0],s,_,j,!0),new PolynomialBezier(j,$,a,this.points[3],!0)]};function extrema(i,s){var o=i.points[0][s],a=i.points[i.points.length-1][s];if(o>a){var _=a;a=o,o=_}for(var $=quadRoots(3*i.a[s],2*i.b[s],i.c[s]),j=0;j<$.length;j+=1)if($[j]>0&&$[j]<1){var _e=i.point($[j])[s];_e<o?o=_e:_e>a&&(a=_e)}return{min:o,max:a}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var i=this.bounds();return{left:i.x.min,right:i.x.max,top:i.y.min,bottom:i.y.max,width:i.x.max-i.x.min,height:i.y.max-i.y.min,cx:(i.x.max+i.x.min)/2,cy:(i.y.max+i.y.min)/2}};function intersectData(i,s,o){var a=i.boundingBox();return{cx:a.cx,cy:a.cy,width:a.width,height:a.height,bez:i,t:(s+o)/2,t1:s,t2:o}}function splitData(i){var s=i.bez.split(.5);return[intersectData(s[0],i.t1,i.t),intersectData(s[1],i.t,i.t2)]}function boxIntersect(i,s){return Math.abs(i.cx-s.cx)*2<i.width+s.width&&Math.abs(i.cy-s.cy)*2<i.height+s.height}function intersectsImpl(i,s,o,a,_,$){if(boxIntersect(i,s)){if(o>=$||i.width<=a&&i.height<=a&&s.width<=a&&s.height<=a){_.push([i.t,s.t]);return}var j=splitData(i),_e=splitData(s);intersectsImpl(j[0],_e[0],o+1,a,_,$),intersectsImpl(j[0],_e[1],o+1,a,_,$),intersectsImpl(j[1],_e[0],o+1,a,_,$),intersectsImpl(j[1],_e[1],o+1,a,_,$)}}PolynomialBezier.prototype.intersections=function(i,s,o){s===void 0&&(s=2),o===void 0&&(o=7);var a=[];return intersectsImpl(intersectData(this,0,1),intersectData(i,0,1),0,s,a,o),a},PolynomialBezier.shapeSegment=function(i,s){var o=(s+1)%i.length();return new PolynomialBezier(i.v[s],i.o[s],i.i[o],i.v[o],!0)},PolynomialBezier.shapeSegmentInverted=function(i,s){var o=(s+1)%i.length();return new PolynomialBezier(i.v[o],i.i[o],i.o[s],i.v[s],!0)};function crossProduct(i,s){return[i[1]*s[2]-i[2]*s[1],i[2]*s[0]-i[0]*s[2],i[0]*s[1]-i[1]*s[0]]}function lineIntersection(i,s,o,a){var _=[i[0],i[1],1],$=[s[0],s[1],1],j=[o[0],o[1],1],_e=[a[0],a[1],1],et=crossProduct(crossProduct(_,$),crossProduct(j,_e));return floatZero(et[2])?null:[et[0]/et[2],et[1]/et[2]]}function polarOffset(i,s,o){return[i[0]+Math.cos(s)*o,i[1]-Math.sin(s)*o]}function pointDistance(i,s){return Math.hypot(i[0]-s[0],i[1]-s[1])}function pointEqual(i,s){return floatEqual(i[0],s[0])&&floatEqual(i[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(i,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(i,s.s,0,null,this),this.frequency=PropertyFactory.getProp(i,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(i,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(i,s,o,a,_,$,j){var _e=o-Math.PI/2,et=o+Math.PI/2,tt=s[0]+Math.cos(o)*a*_,rt=s[1]-Math.sin(o)*a*_;i.setTripleAt(tt,rt,tt+Math.cos(_e)*$,rt-Math.sin(_e)*$,tt+Math.cos(et)*j,rt-Math.sin(et)*j,i.length())}function getPerpendicularVector(i,s){var o=[s[0]-i[0],s[1]-i[1]],a=-Math.PI*.5,_=[Math.cos(a)*o[0]-Math.sin(a)*o[1],Math.sin(a)*o[0]+Math.cos(a)*o[1]];return _}function getProjectingAngle(i,s){var o=s===0?i.length()-1:s-1,a=(s+1)%i.length(),_=i.v[o],$=i.v[a],j=getPerpendicularVector(_,$);return Math.atan2(0,1)-Math.atan2(j[1],j[0])}function zigZagCorner(i,s,o,a,_,$,j){var _e=getProjectingAngle(s,o),et=s.v[o%s._length],tt=s.v[o===0?s._length-1:o-1],rt=s.v[(o+1)%s._length],it=$===2?Math.sqrt(Math.pow(et[0]-tt[0],2)+Math.pow(et[1]-tt[1],2)):0,nt=$===2?Math.sqrt(Math.pow(et[0]-rt[0],2)+Math.pow(et[1]-rt[1],2)):0;setPoint(i,s.v[o%s._length],_e,j,a,nt/((_+1)*2),it/((_+1)*2))}function zigZagSegment(i,s,o,a,_,$){for(var j=0;j<a;j+=1){var _e=(j+1)/(a+1),et=_===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,tt=s.normalAngle(_e),rt=s.point(_e);setPoint(i,rt,tt,$,o,et/((a+1)*2),et/((a+1)*2)),$=-$}return $}ZigZagModifier.prototype.processPath=function(i,s,o,a){var _=i._length,$=shapePool.newElement();if($.c=i.c,i.c||(_-=1),_===0)return $;var j=-1,_e=PolynomialBezier.shapeSegment(i,0);zigZagCorner($,i,0,s,o,a,j);for(var et=0;et<_;et+=1)j=zigZagSegment($,_e,s,o,a,-j),et===_-1&&!i.c?_e=null:_e=PolynomialBezier.shapeSegment(i,(et+1)%_),zigZagCorner($,i,et+1,s,o,a,j);return $},ZigZagModifier.prototype.processShapes=function(i){var s,o,a=this.shapes.length,_,$,j=this.amplitude.v,_e=Math.max(0,Math.round(this.frequency.v)),et=this.pointsType.v;if(j!==0){var tt,rt;for(o=0;o<a;o+=1){if(tt=this.shapes[o],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!i))for(rt.releaseShapes(),tt.shape._mdf=!0,s=tt.shape.paths.shapes,$=tt.shape.paths._length,_=0;_<$;_+=1)rt.addShape(this.processPath(s[_],j,_e,et));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(i,s,o){var a=Math.atan2(s[0]-i[0],s[1]-i[1]);return[polarOffset(i,a,o),polarOffset(s,a,o)]}function offsetSegment(i,s){var o,a,_,$,j,_e,et;et=linearOffset(i.points[0],i.points[1],s),o=et[0],a=et[1],et=linearOffset(i.points[1],i.points[2],s),_=et[0],$=et[1],et=linearOffset(i.points[2],i.points[3],s),j=et[0],_e=et[1];var tt=lineIntersection(o,a,_,$);tt===null&&(tt=a);var rt=lineIntersection(j,_e,_,$);return rt===null&&(rt=j),new PolynomialBezier(o,tt,rt,_e)}function joinLines(i,s,o,a,_){var $=s.points[3],j=o.points[0];if(a===3||pointEqual($,j))return $;if(a===2){var _e=-s.tangentAngle(1),et=-o.tangentAngle(0)+Math.PI,tt=lineIntersection($,polarOffset($,_e+Math.PI/2,100),j,polarOffset(j,_e+Math.PI/2,100)),rt=tt?pointDistance(tt,$):pointDistance($,j)/2,it=polarOffset($,_e,2*rt*roundCorner);return i.setXYAt(it[0],it[1],"o",i.length()-1),it=polarOffset(j,et,2*rt*roundCorner),i.setTripleAt(j[0],j[1],j[0],j[1],it[0],it[1],i.length()),j}var nt=pointEqual($,s.points[2])?s.points[0]:s.points[2],ut=pointEqual(j,o.points[1])?o.points[3]:o.points[1],ct=lineIntersection(nt,$,j,ut);return ct&&pointDistance(ct,$)<_?(i.setTripleAt(ct[0],ct[1],ct[0],ct[1],ct[0],ct[1],i.length()),ct):$}function getIntersection(i,s){var o=i.intersections(s);return o.length&&floatEqual(o[0][0],1)&&o.shift(),o.length?o[0]:null}function pruneSegmentIntersection(i,s){var o=i.slice(),a=s.slice(),_=getIntersection(i[i.length-1],s[0]);return _&&(o[i.length-1]=i[i.length-1].split(_[0])[0],a[0]=s[0].split(_[1])[1]),i.length>1&&s.length>1&&(_=getIntersection(i[0],s[s.length-1]),_)?[[i[0].split(_[0])[0]],[s[s.length-1].split(_[1])[1]]]:[o,a]}function pruneIntersections(i){for(var s,o=1;o<i.length;o+=1)s=pruneSegmentIntersection(i[o-1],i[o]),i[o-1]=s[0],i[o]=s[1];return i.length>1&&(s=pruneSegmentIntersection(i[i.length-1],i[0]),i[i.length-1]=s[0],i[0]=s[1]),i}function offsetSegmentSplit(i,s){var o=i.inflectionPoints(),a,_,$,j;if(o.length===0)return[offsetSegment(i,s)];if(o.length===1||floatEqual(o[1],1))return $=i.split(o[0]),a=$[0],_=$[1],[offsetSegment(a,s),offsetSegment(_,s)];$=i.split(o[0]),a=$[0];var _e=(o[1]-o[0])/(1-o[0]);return $=$[1].split(_e),j=$[0],_=$[1],[offsetSegment(a,s),offsetSegment(j,s),offsetSegment(_,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(i,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(i,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(i,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(i,s,o,a){var _=shapePool.newElement();_.c=i.c;var $=i.length();i.c||($-=1);var j,_e,et,tt=[];for(j=0;j<$;j+=1)et=PolynomialBezier.shapeSegment(i,j),tt.push(offsetSegmentSplit(et,s));if(!i.c)for(j=$-1;j>=0;j-=1)et=PolynomialBezier.shapeSegmentInverted(i,j),tt.push(offsetSegmentSplit(et,s));tt=pruneIntersections(tt);var rt=null,it=null;for(j=0;j<tt.length;j+=1){var nt=tt[j];for(it&&(rt=joinLines(_,it,nt[0],o,a)),it=nt[nt.length-1],_e=0;_e<nt.length;_e+=1)et=nt[_e],rt&&pointEqual(et.points[0],rt)?_.setXYAt(et.points[1][0],et.points[1][1],"o",_.length()-1):_.setTripleAt(et.points[0][0],et.points[0][1],et.points[1][0],et.points[1][1],et.points[0][0],et.points[0][1],_.length()),_.setTripleAt(et.points[3][0],et.points[3][1],et.points[3][0],et.points[3][1],et.points[2][0],et.points[2][1],_.length()),rt=et.points[3]}return tt.length&&joinLines(_,it,tt[0][0],o,a),_},OffsetPathModifier.prototype.processShapes=function(i){var s,o,a=this.shapes.length,_,$,j=this.amount.v,_e=this.miterLimit.v,et=this.lineJoin;if(j!==0){var tt,rt;for(o=0;o<a;o+=1){if(tt=this.shapes[o],rt=tt.localShapeCollection,!(!tt.shape._mdf&&!this._mdf&&!i))for(rt.releaseShapes(),tt.shape._mdf=!0,s=tt.shape.paths.shapes,$=tt.shape.paths._length,_=0;_<$;_+=1)rt.addShape(this.processPath(s[_],j,et,_e));tt.shape.paths=tt.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(i){for(var s=i.fStyle?i.fStyle.split(" "):[],o="normal",a="normal",_=s.length,$,j=0;j<_;j+=1)switch($=s[j].toLowerCase(),$){case"italic":a="italic";break;case"bold":o="700";break;case"black":o="900";break;case"medium":o="500";break;case"regular":case"normal":o="400";break;case"light":case"thin":o="200";break}return{style:a,weight:i.fWeight||o}}var FontManager=function(){var i=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},o=[];o=o.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var a=127988,_=917631,$=917601,j=917626,_e=65039,et=8205,tt=127462,rt=127487,it=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function nt(xt){var bt=xt.split(","),pt,yt=bt.length,kt=[];for(pt=0;pt<yt;pt+=1)bt[pt]!=="sans-serif"&&bt[pt]!=="monospace"&&kt.push(bt[pt]);return kt.join(",")}function ut(xt,bt){var pt=createTag("span");pt.setAttribute("aria-hidden",!0),pt.style.fontFamily=bt;var yt=createTag("span");yt.innerText="giItT1WQy@!-/#",pt.style.position="absolute",pt.style.left="-10000px",pt.style.top="-10000px",pt.style.fontSize="300px",pt.style.fontVariant="normal",pt.style.fontStyle="normal",pt.style.fontWeight="normal",pt.style.letterSpacing="0",pt.appendChild(yt),document.body.appendChild(pt);var kt=yt.offsetWidth;return yt.style.fontFamily=nt(xt)+", "+bt,{node:yt,w:kt,parent:pt}}function ct(){var xt,bt=this.fonts.length,pt,yt,kt=bt;for(xt=0;xt<bt;xt+=1)this.fonts[xt].loaded?kt-=1:this.fonts[xt].fOrigin==="n"||this.fonts[xt].origin===0?this.fonts[xt].loaded=!0:(pt=this.fonts[xt].monoCase.node,yt=this.fonts[xt].monoCase.w,pt.offsetWidth!==yt?(kt-=1,this.fonts[xt].loaded=!0):(pt=this.fonts[xt].sansCase.node,yt=this.fonts[xt].sansCase.w,pt.offsetWidth!==yt&&(kt-=1,this.fonts[xt].loaded=!0)),this.fonts[xt].loaded&&(this.fonts[xt].sansCase.parent.parentNode.removeChild(this.fonts[xt].sansCase.parent),this.fonts[xt].monoCase.parent.parentNode.removeChild(this.fonts[xt].monoCase.parent)));kt!==0&&Date.now()-this.initTime<i?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function st(xt,bt){var pt=document.body&&bt?"svg":"canvas",yt,kt=getFontProperties(xt);if(pt==="svg"){var Et=createNS("text");Et.style.fontSize="100px",Et.setAttribute("font-family",xt.fFamily),Et.setAttribute("font-style",kt.style),Et.setAttribute("font-weight",kt.weight),Et.textContent="1",xt.fClass?(Et.style.fontFamily="inherit",Et.setAttribute("class",xt.fClass)):Et.style.fontFamily=xt.fFamily,bt.appendChild(Et),yt=Et}else{var $t=new OffscreenCanvas(500,500).getContext("2d");$t.font=kt.style+" "+kt.weight+" 100px "+xt.fFamily,yt=$t}function At(Ot){return pt==="svg"?(yt.textContent=Ot,yt.getComputedTextLength()):yt.measureText(Ot).width}return{measureText:At}}function dt(xt,bt){if(!xt){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=xt.list;return}if(!document.body){this.isLoaded=!0,xt.list.forEach(function(qt){qt.helper=st(qt),qt.cache={}}),this.fonts=xt.list;return}var pt=xt.list,yt,kt=pt.length,Et=kt;for(yt=0;yt<kt;yt+=1){var $t=!0,At,Ot;if(pt[yt].loaded=!1,pt[yt].monoCase=ut(pt[yt].fFamily,"monospace"),pt[yt].sansCase=ut(pt[yt].fFamily,"sans-serif"),!pt[yt].fPath)pt[yt].loaded=!0,Et-=1;else if(pt[yt].fOrigin==="p"||pt[yt].origin===3){if(At=document.querySelectorAll('style[f-forigin="p"][f-family="'+pt[yt].fFamily+'"], style[f-origin="3"][f-family="'+pt[yt].fFamily+'"]'),At.length>0&&($t=!1),$t){var Vt=createTag("style");Vt.setAttribute("f-forigin",pt[yt].fOrigin),Vt.setAttribute("f-origin",pt[yt].origin),Vt.setAttribute("f-family",pt[yt].fFamily),Vt.type="text/css",Vt.innerText="@font-face {font-family: "+pt[yt].fFamily+"; font-style: normal; src: url('"+pt[yt].fPath+"');}",bt.appendChild(Vt)}}else if(pt[yt].fOrigin==="g"||pt[yt].origin===1){for(At=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ot=0;Ot<At.length;Ot+=1)At[Ot].href.indexOf(pt[yt].fPath)!==-1&&($t=!1);if($t){var Lt=createTag("link");Lt.setAttribute("f-forigin",pt[yt].fOrigin),Lt.setAttribute("f-origin",pt[yt].origin),Lt.type="text/css",Lt.rel="stylesheet",Lt.href=pt[yt].fPath,document.body.appendChild(Lt)}}else if(pt[yt].fOrigin==="t"||pt[yt].origin===2){for(At=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ot=0;Ot<At.length;Ot+=1)pt[yt].fPath===At[Ot].src&&($t=!1);if($t){var Wt=createTag("link");Wt.setAttribute("f-forigin",pt[yt].fOrigin),Wt.setAttribute("f-origin",pt[yt].origin),Wt.setAttribute("rel","stylesheet"),Wt.setAttribute("href",pt[yt].fPath),bt.appendChild(Wt)}}pt[yt].helper=st(pt[yt],bt),pt[yt].cache={},this.fonts.push(pt[yt])}Et===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function ot(xt){if(xt){this.chars||(this.chars=[]);var bt,pt=xt.length,yt,kt=this.chars.length,Et;for(bt=0;bt<pt;bt+=1){for(yt=0,Et=!1;yt<kt;)this.chars[yt].style===xt[bt].style&&this.chars[yt].fFamily===xt[bt].fFamily&&this.chars[yt].ch===xt[bt].ch&&(Et=!0),yt+=1;Et||(this.chars.push(xt[bt]),kt+=1)}}}function lt(xt,bt,pt){for(var yt=0,kt=this.chars.length;yt<kt;){if(this.chars[yt].ch===xt&&this.chars[yt].style===bt&&this.chars[yt].fFamily===pt)return this.chars[yt];yt+=1}return(typeof xt=="string"&&xt.charCodeAt(0)!==13||!xt)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",xt,bt,pt)),s}function at(xt,bt,pt){var yt=this.getFontByName(bt),kt=xt;if(!yt.cache[kt]){var Et=yt.helper;if(xt===" "){var $t=Et.measureText("|"+xt+"|"),At=Et.measureText("||");yt.cache[kt]=($t-At)/100}else yt.cache[kt]=Et.measureText(xt)/100}return yt.cache[kt]*pt}function ft(xt){for(var bt=0,pt=this.fonts.length;bt<pt;){if(this.fonts[bt].fName===xt)return this.fonts[bt];bt+=1}return this.fonts[0]}function ht(xt){var bt=0,pt=xt.charCodeAt(0);if(pt>=55296&&pt<=56319){var yt=xt.charCodeAt(1);yt>=56320&&yt<=57343&&(bt=(pt-55296)*1024+yt-56320+65536)}return bt}function mt(xt,bt){var pt=xt.toString(16)+bt.toString(16);return it.indexOf(pt)!==-1}function gt(xt){return xt===et}function vt(xt){return xt===_e}function St(xt){var bt=ht(xt);return bt>=tt&&bt<=rt}function wt(xt){return St(xt.substr(0,2))&&St(xt.substr(2,2))}function Pt(xt){return o.indexOf(xt)!==-1}function Rt(xt,bt){var pt=ht(xt.substr(bt,2));if(pt!==a)return!1;var yt=0;for(bt+=2;yt<5;){if(pt=ht(xt.substr(bt,2)),pt<$||pt>j)return!1;yt+=1,bt+=2}return ht(xt.substr(bt,2))===_}function It(){this.isLoaded=!0}var jt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};jt.isModifier=mt,jt.isZeroWidthJoiner=gt,jt.isFlagEmoji=wt,jt.isRegionalCode=St,jt.isCombinedCharacter=Pt,jt.isRegionalFlag=Rt,jt.isVariationSelector=vt,jt.BLACK_FLAG_CODE_POINT=a;var Mt={addChars:ot,addFonts:dt,getCharData:lt,getFontByName:ft,measureText:at,checkLoadedFonts:ct,setIsLoaded:It};return jt.prototype=Mt,jt}();function SlotManager(i){this.animationData=i}SlotManager.prototype.getProp=function(i){return this.animationData.slots&&this.animationData.slots[i.sid]?Object.assign(i,this.animationData.slots[i.sid].p):i};function slotFactory(i){return new SlotManager(i)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var s,o=this.renderableComponents.length;for(s=0;s<o;s+=1)this.renderableComponents[s].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var i={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(s){return i[s]||""}}();function SliderEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,0,0,o)}function AngleEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,0,0,o)}function ColorEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,1,0,o)}function PointEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,1,0,o)}function LayerIndexEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,0,0,o)}function MaskIndexEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,0,0,o)}function CheckboxEffect(i,s,o){this.p=PropertyFactory.getProp(s,i.v,0,0,o)}function NoValueEffect(){this.p={}}function EffectsManager(i,s){var o=i.ef||[];this.effectElements=[];var a,_=o.length,$;for(a=0;a<_;a+=1)$=new GroupEffect(o[a],s),this.effectElements.push($)}function GroupEffect(i,s){this.init(i,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(i,s){this.data=i,this.effectElements=[],this.initDynamicPropertyContainer(s);var o,a=this.data.ef.length,_,$=this.data.ef;for(o=0;o<a;o+=1){switch(_=null,$[o].ty){case 0:_=new SliderEffect($[o],s,this);break;case 1:_=new AngleEffect($[o],s,this);break;case 2:_=new ColorEffect($[o],s,this);break;case 3:_=new PointEffect($[o],s,this);break;case 4:case 7:_=new CheckboxEffect($[o],s,this);break;case 10:_=new LayerIndexEffect($[o],s,this);break;case 11:_=new MaskIndexEffect($[o],s,this);break;case 5:_=new EffectsManager($[o],s);break;default:_=new NoValueEffect($[o]);break}_&&this.effectElements.push(_)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,o=this.data.masksProperties.length;s<o;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var o=s("layer"),a=s("effects"),_=s("shape"),$=s("text"),j=s("comp");this.layerInterface=o(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var _e=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(_e),this.data.ty===0||this.data.xt?this.compInterface=j(this):this.data.ty===4?(this.layerInterface.shapeInterface=_(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=$(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),o=this.baseElement||this.layerElement;o.style["mix-blend-mode"]=s},initBaseData:function(s,o,a){this.globalData=o,this.comp=a,this.data=s,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(s,o){var a,_=this.dynamicProperties.length;for(a=0;a<_;a+=1)(o||this._isParent&&this.dynamicProperties[a].propType==="transform")&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(i,s,o){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(i.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(i,s,o)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var i=getExpressionInterfaces();if(i){var s=i("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(i,s,o){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(i.refId),this.initBaseData(i,s,o),this._isPlaying=!1,this._canPlay=!1;var a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=i.tm?PropertyFactory.getProp(this,i.tm,0,s.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,i.au&&i.au.lv?i.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(i){if(this.prepareRenderableFrame(i,!0),this.prepareProperties(i,!0),this.tm._placeholder)this._currentTime=i/this.data.sr;else{var s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var o=this._volume*this._volumeMultiplier;this._previousVolume!==o&&(this._previousVolume=o,this.audio.volume(o))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(i){this.audio.rate(i)},AudioElement.prototype.volume=function(i){this._volumeMultiplier=i,this._previousVolume=i*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(i){var s,o=this.layers.length,a;for(this.completeLayers=!0,s=o-1;s>=0;s-=1)this.elements[s]||(a=this.layers[s],a.ip-a.st<=i-this.layers[s].st&&a.op-a.st>i-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(i){switch(i.ty){case 2:return this.createImage(i);case 0:return this.createComp(i);case 1:return this.createSolid(i);case 3:return this.createNull(i);case 4:return this.createShape(i);case 5:return this.createText(i);case 6:return this.createAudio(i);case 13:return this.createCamera(i);case 15:return this.createFootage(i);default:return this.createNull(i)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(i){return new AudioElement(i,this.globalData,this)},BaseRenderer.prototype.createFootage=function(i){return new FootageElement(i,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var i,s=this.layers.length;for(i=0;i<s;i+=1)this.buildItem(i);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(i){this.completeLayers=!1;var s,o=i.length,a,_=this.layers.length;for(s=0;s<o;s+=1)for(a=0;a<_;){if(this.layers[a].id===i[s].id){this.layers[a]=i[s];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(i){this.globalData.projectInterface=i},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(i,s,o){for(var a=this.elements,_=this.layers,$=0,j=_.length;$<j;)_[$].ind==s&&(!a[$]||a[$]===!0?(this.buildItem($),this.addPendingElement(i)):(o.push(a[$]),a[$].setAsParent(),_[$].parent!==void 0?this.buildElementParenting(i,_[$].parent,o):i.setHierarchy(o))),$+=1},BaseRenderer.prototype.addPendingElement=function(i){this.pendingElements.push(i)},BaseRenderer.prototype.searchExtraCompositions=function(i){var s,o=i.length;for(s=0;s<o;s+=1)if(i[s].xt){var a=this.createComp(i[s]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementById=function(i){var s,o=this.elements.length;for(s=0;s<o;s+=1)if(this.elements[s].data.ind===i)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(i){var s=i.shift(),o;if(typeof s=="number")o=this.elements[s];else{var a,_=this.elements.length;for(a=0;a<_;a+=1)if(this.elements[a].data.nm===s){o=this.elements[a];break}}return i.length===0?o:o.getElementByPath(i)},BaseRenderer.prototype.setupGlobalData=function(i,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(i),this.globalData.fontManager.addChars(i.chars),this.globalData.fontManager.addFonts(i.fonts,s),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=i.fr,this.globalData.nm=i.nm,this.globalData.compSize={w:i.w,h:i.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var s,o=this.finalTransform.mat,a=0,_=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<_;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,o.cloneFromProps(s),a=0;a<_;a+=1)o.multiply(this.hierarchy[a].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var s=0,o=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<o;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),s=1;s<o;s+=1){var _=this.localTransforms[s].matrix;a.multiply(_)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var $=this.finalTransform.localOpacity;for(s=0;s<o;s+=1)$*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=$}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var o=0,a=s.length;for(o=0;o<a;o+=1)this.localTransforms.push(s[o])}}},globalToLocal:function(s){var o=[];o.push(this.finalTransform);for(var a=!0,_=this.comp;a;)_.finalTransform?(_.data.hasMask&&o.splice(0,0,_.finalTransform),_=_.comp):a=!1;var $,j=o.length,_e;for($=0;$<j;$+=1)_e=o[$].mat.applyToPointArray(0,0,0),s=[s[0]-_e[0],s[1]-_e[1],0];return s},mHelper:new Matrix};function MaskElement(i,s,o){this.data=i,this.element=s,this.globalData=o,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var a=this.globalData.defs,_,$=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray($),this.solidPath="";var j,_e=this.masksProperties,et=0,tt=[],rt,it,nt=createElementID(),ut,ct,st,dt,ot="clipPath",lt="clip-path";for(_=0;_<$;_+=1)if((_e[_].mode!=="a"&&_e[_].mode!=="n"||_e[_].inv||_e[_].o.k!==100||_e[_].o.x)&&(ot="mask",lt="mask"),(_e[_].mode==="s"||_e[_].mode==="i")&&et===0?(ut=createNS("rect"),ut.setAttribute("fill","#ffffff"),ut.setAttribute("width",this.element.comp.data.w||0),ut.setAttribute("height",this.element.comp.data.h||0),tt.push(ut)):ut=null,j=createNS("path"),_e[_].mode==="n")this.viewData[_]={op:PropertyFactory.getProp(this.element,_e[_].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_e[_],3),elem:j,lastPath:""},a.appendChild(j);else{et+=1,j.setAttribute("fill",_e[_].mode==="s"?"#000000":"#ffffff"),j.setAttribute("clip-rule","nonzero");var at;if(_e[_].x.k!==0?(ot="mask",lt="mask",dt=PropertyFactory.getProp(this.element,_e[_].x,0,null,this.element),at=createElementID(),ct=createNS("filter"),ct.setAttribute("id",at),st=createNS("feMorphology"),st.setAttribute("operator","erode"),st.setAttribute("in","SourceGraphic"),st.setAttribute("radius","0"),ct.appendChild(st),a.appendChild(ct),j.setAttribute("stroke",_e[_].mode==="s"?"#000000":"#ffffff")):(st=null,dt=null),this.storedData[_]={elem:j,x:dt,expan:st,lastPath:"",lastOperator:"",filterId:at,lastRadius:0},_e[_].mode==="i"){it=tt.length;var ft=createNS("g");for(rt=0;rt<it;rt+=1)ft.appendChild(tt[rt]);var ht=createNS("mask");ht.setAttribute("mask-type","alpha"),ht.setAttribute("id",nt+"_"+et),ht.appendChild(j),a.appendChild(ht),ft.setAttribute("mask","url("+getLocationHref()+"#"+nt+"_"+et+")"),tt.length=0,tt.push(ft)}else tt.push(j);_e[_].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[_]={elem:j,lastPath:"",op:PropertyFactory.getProp(this.element,_e[_].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,_e[_],3),invRect:ut},this.viewData[_].prop.k||this.drawPath(_e[_],this.viewData[_].prop.v,this.viewData[_])}for(this.maskElement=createNS(ot),$=tt.length,_=0;_<$;_+=1)this.maskElement.appendChild(tt[_]);et>0&&(this.maskElement.setAttribute("id",nt),this.element.maskedElement.setAttribute(lt,"url("+getLocationHref()+"#"+nt+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(i){return this.viewData[i].prop},MaskElement.prototype.renderFrame=function(i){var s=this.element.finalTransform.mat,o,a=this.masksProperties.length;for(o=0;o<a;o+=1)if((this.viewData[o].prop._mdf||i)&&this.drawPath(this.masksProperties[o],this.viewData[o].prop.v,this.viewData[o]),(this.viewData[o].op._mdf||i)&&this.viewData[o].elem.setAttribute("fill-opacity",this.viewData[o].op.v),this.masksProperties[o].mode!=="n"&&(this.viewData[o].invRect&&(this.element.finalTransform.mProp._mdf||i)&&this.viewData[o].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[o].x&&(this.storedData[o].x._mdf||i))){var _=this.storedData[o].expan;this.storedData[o].x.v<0?(this.storedData[o].lastOperator!=="erode"&&(this.storedData[o].lastOperator="erode",this.storedData[o].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[o].filterId+")")),_.setAttribute("radius",-this.storedData[o].x.v)):(this.storedData[o].lastOperator!=="dilate"&&(this.storedData[o].lastOperator="dilate",this.storedData[o].elem.setAttribute("filter",null)),this.storedData[o].elem.setAttribute("stroke-width",this.storedData[o].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var i="M0,0 ";return i+=" h"+this.globalData.compSize.w,i+=" v"+this.globalData.compSize.h,i+=" h-"+this.globalData.compSize.w,i+=" v-"+this.globalData.compSize.h+" ",i},MaskElement.prototype.drawPath=function(i,s,o){var a=" M"+s.v[0][0]+","+s.v[0][1],_,$;for($=s._length,_=1;_<$;_+=1)a+=" C"+s.o[_-1][0]+","+s.o[_-1][1]+" "+s.i[_][0]+","+s.i[_][1]+" "+s.v[_][0]+","+s.v[_][1];if(s.c&&$>1&&(a+=" C"+s.o[_-1][0]+","+s.o[_-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),o.lastPath!==a){var j="";o.elem&&(s.c&&(j=i.inv?this.solidPath+a:a),o.elem.setAttribute("d",j)),o.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var i={};i.createFilter=s,i.createAlphaToLuminanceFilter=o;function s(a,_){var $=createNS("filter");return $.setAttribute("id",a),_!==!0&&($.setAttribute("filterUnits","objectBoundingBox"),$.setAttribute("x","0%"),$.setAttribute("y","0%"),$.setAttribute("width","100%"),$.setAttribute("height","100%")),$}function o(){var a=createNS("feColorMatrix");return a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),a}return i}(),featureSupport=function(){var i={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(i.maskType=!1),/firefox/i.test(navigator.userAgent)&&(i.svgLumaHidden=!1),i}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(i){var s,o="SourceGraphic",a=i.data.ef?i.data.ef.length:0,_=createElementID(),$=filtersFactory.createFilter(_,!0),j=0;this.filters=[];var _e;for(s=0;s<a;s+=1){_e=null;var et=i.data.ef[s].ty;if(registeredEffects$1[et]){var tt=registeredEffects$1[et].effect;_e=new tt($,i.effectsManager.effectElements[s],i,idPrefix+j,o),o=idPrefix+j,registeredEffects$1[et].countsAsEffect&&(j+=1)}_e&&this.filters.push(_e)}j&&(i.globalData.defs.appendChild($),i.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+_+")")),this.filters.length&&i.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(i){var s,o=this.filters.length;for(s=0;s<o;s+=1)this.filters[s].renderFrame(i)},SVGEffects.prototype.getEffects=function(i){var s,o=this.filters.length,a=[];for(s=0;s<o;s+=1)this.filters[s].type===i&&a.push(this.filters[s]);return a};function registerEffect$1(i,s,o){registeredEffects$1[i]={effect:s,countsAsEffect:o}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var s=null;if(this.data.td){this.matteMasks={};var o=createNS("g");o.setAttribute("id",this.layerId),o.appendChild(this.layerElement),s=o,this.globalData.defs.appendChild(o)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var a=createNS("clipPath"),_=createNS("path");_.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var $=createElementID();if(a.setAttribute("id",$),a.appendChild(_),this.globalData.defs.appendChild(a),this.checkMasks()){var j=createNS("g");j.setAttribute("clip-path","url("+getLocationHref()+"#"+$+")"),j.appendChild(this.layerElement),this.transformedElement=j,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+$+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var o=this.layerId+"_"+s,a,_,$,j;if(s===1||s===3){var _e=createNS("mask");_e.setAttribute("id",o),_e.setAttribute("mask-type",s===3?"luminance":"alpha"),$=createNS("use"),$.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),_e.appendChild($),this.globalData.defs.appendChild(_e),!featureSupport.maskType&&s===1&&(_e.setAttribute("mask-type","luminance"),a=createElementID(),_=filtersFactory.createFilter(a),this.globalData.defs.appendChild(_),_.appendChild(filtersFactory.createAlphaToLuminanceFilter()),j=createNS("g"),j.appendChild($),_e.appendChild(j),j.setAttribute("filter","url("+getLocationHref()+"#"+a+")"))}else if(s===2){var et=createNS("mask");et.setAttribute("id",o),et.setAttribute("mask-type","alpha");var tt=createNS("g");et.appendChild(tt),a=createElementID(),_=filtersFactory.createFilter(a);var rt=createNS("feComponentTransfer");rt.setAttribute("in","SourceGraphic"),_.appendChild(rt);var it=createNS("feFuncA");it.setAttribute("type","table"),it.setAttribute("tableValues","1.0 0.0"),rt.appendChild(it),this.globalData.defs.appendChild(_);var nt=createNS("rect");nt.setAttribute("width",this.comp.data.w),nt.setAttribute("height",this.comp.data.h),nt.setAttribute("x","0"),nt.setAttribute("y","0"),nt.setAttribute("fill","#ffffff"),nt.setAttribute("opacity","0"),tt.setAttribute("filter","url("+getLocationHref()+"#"+a+")"),tt.appendChild(nt),$=createNS("use"),$.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),tt.appendChild($),featureSupport.maskType||(et.setAttribute("mask-type","luminance"),_.appendChild(filtersFactory.createAlphaToLuminanceFilter()),j=createNS("g"),tt.appendChild(nt),j.appendChild(this.layerElement),tt.appendChild(j)),this.globalData.defs.appendChild(et)}this.matteMasks[s]=o}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var i={initElement:function(o,a,_){this.initFrame(),this.initBaseData(o,a,_),this.initTransform(o,a,_),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var o=this.baseElement||this.layerElement;o.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var o=this.baseElement||this.layerElement;o.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(i)],RenderableDOMElement)})();function IImageElement(i,s,o){this.assetData=s.getAssetData(i.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(i,s,o),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var i=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(i,s){this.elem=i,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var o,a=this.shapeModifiers.length;for(o=0;o<a;o+=1)this.shapeModifiers[o].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var o=0,a=this.shapeModifiers.length;o<a;)if(this.shapeModifiers[o].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,o=this.shapes.length;for(s=0;s<o;s+=1)this.shapes[s].sh.reset();o=this.shapeModifiers.length;var a;for(s=o-1;s>=0&&(a=this.shapeModifiers[s].processShapes(this._isFirstFrame),!a);s-=1);}},searchProcessedElement:function(s){for(var o=this.processedElements,a=0,_=o.length;a<_;){if(o[a].elem===s)return o[a].pos;a+=1}return 0},addProcessedElement:function(s,o){for(var a=this.processedElements,_=a.length;_;)if(_-=1,a[_].elem===s){a[_].pos=o;return}a.push(new ProcessedElement(s,o))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(i,s,o){this.caches=[],this.styles=[],this.transformers=i,this.lStr="",this.sh=o,this.lvl=s,this._isAnimated=!!o.k;for(var a=0,_=i.length;a<_;){if(i[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(i,s){this.data=i,this.type=i.ty,this.d="",this.lvl=s,this._mdf=!1,this.closed=i.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(i,s,o,a){this.elem=i,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=o,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(a);var _,$=s.length||0,j;for(_=0;_<$;_+=1)j=PropertyFactory.getProp(i,s[_].v,0,0,this),this.k=j.k||this.k,this.dataProps[_]={n:s[_].n,p:j};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(i){if(!(this.elem.globalData.frameId===this.frameId&&!i)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||i,this._mdf)){var s=0,o=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<o;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(i,s,o){this.initDynamicPropertyContainer(i),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(i,s.o,0,.01,this),this.w=PropertyFactory.getProp(i,s.w,0,null,this),this.d=new DashProperty(i,s.d||{},"svg",this),this.c=PropertyFactory.getProp(i,s.c,1,255,this),this.style=o,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(i,s,o){this.initDynamicPropertyContainer(i),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(i,s.o,0,.01,this),this.c=PropertyFactory.getProp(i,s.c,1,255,this),this.style=o}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(i,s,o){this.initDynamicPropertyContainer(i),this.getValue=this.iterateDynamicProperties,this.style=o}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(i,s,o){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var a=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(o),this.prop=PropertyFactory.getProp(i,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(i,s){for(var o=0,a=this.o.length/2,_;o<a;){if(_=Math.abs(i[o*4]-i[s*4+o*2]),_>.01)return!1;o+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var i=0,s=this.data.k.k.length;i<s;){if(!this.comparePoints(this.data.k.k[i].s,this.data.p))return!1;i+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(i){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||i){var s,o=this.data.p*4,a,_;for(s=0;s<o;s+=1)a=s%4===0?100:255,_=Math.round(this.prop.v[s]*a),this.c[s]!==_&&(this.c[s]=_,this._cmdf=!i);if(this.o.length)for(o=this.prop.v.length,s=this.data.p*4;s<o;s+=1)a=s%2===0?100:1,_=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==_&&(this.o[s-this.data.p*4]=_,this._omdf=!i);this._mdf=!i}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(i,s,o){this.initDynamicPropertyContainer(i),this.getValue=this.iterateDynamicProperties,this.initGradientData(i,s,o)}SVGGradientFillStyleData.prototype.initGradientData=function(i,s,o){this.o=PropertyFactory.getProp(i,s.o,0,.01,this),this.s=PropertyFactory.getProp(i,s.s,1,null,this),this.e=PropertyFactory.getProp(i,s.e,1,null,this),this.h=PropertyFactory.getProp(i,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(i,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(i,s.g,this),this.style=o,this.stops=[],this.setGradientData(o.pElem,s),this.setGradientOpacity(s,o),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(i,s){var o=createElementID(),a=createNS(s.t===1?"linearGradient":"radialGradient");a.setAttribute("id",o),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var _=[],$,j,_e;for(_e=s.g.p*4,j=0;j<_e;j+=4)$=createNS("stop"),a.appendChild($),_.push($);i.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),this.gf=a,this.cst=_},SVGGradientFillStyleData.prototype.setGradientOpacity=function(i,s){if(this.g._hasOpacity&&!this.g._collapsable){var o,a,_,$=createNS("mask"),j=createNS("path");$.appendChild(j);var _e=createElementID(),et=createElementID();$.setAttribute("id",et);var tt=createNS(i.t===1?"linearGradient":"radialGradient");tt.setAttribute("id",_e),tt.setAttribute("spreadMethod","pad"),tt.setAttribute("gradientUnits","userSpaceOnUse"),_=i.g.k.k[0].s?i.g.k.k[0].s.length:i.g.k.k.length;var rt=this.stops;for(a=i.g.p*4;a<_;a+=2)o=createNS("stop"),o.setAttribute("stop-color","rgb(255,255,255)"),tt.appendChild(o),rt.push(o);j.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+_e+")"),i.ty==="gs"&&(j.setAttribute("stroke-linecap",lineCapEnum[i.lc||2]),j.setAttribute("stroke-linejoin",lineJoinEnum[i.lj||2]),i.lj===1&&j.setAttribute("stroke-miterlimit",i.ml)),this.of=tt,this.ms=$,this.ost=rt,this.maskId=et,s.msElem=j}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(i,s,o){this.initDynamicPropertyContainer(i),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(i,s.w,0,null,this),this.d=new DashProperty(i,s.d||{},"svg",this),this.initGradientData(i,s,o),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(i,s,o){this.transform={mProps:i,op:s,container:o},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,o,a,_){if(o===0)return"";var $=s.o,j=s.i,_e=s.v,et,tt=" M"+_.applyToPointStringified(_e[0][0],_e[0][1]);for(et=1;et<o;et+=1)tt+=" C"+_.applyToPointStringified($[et-1][0],$[et-1][1])+" "+_.applyToPointStringified(j[et][0],j[et][1])+" "+_.applyToPointStringified(_e[et][0],_e[et][1]);return a&&o&&(tt+=" C"+_.applyToPointStringified($[et-1][0],$[et-1][1])+" "+_.applyToPointStringified(j[0][0],j[0][1])+" "+_.applyToPointStringified(_e[0][0],_e[0][1]),tt+="z"),tt},SVGElementsRenderer=function(){var i=new Matrix,s=new Matrix,o={createRenderFunction:a};function a(it){switch(it.ty){case"fl":return _e;case"gf":return tt;case"gs":return et;case"st":return rt;case"sh":case"el":case"rc":case"sr":return j;case"tr":return _;case"no":return $;default:return null}}function _(it,nt,ut){(ut||nt.transform.op._mdf)&&nt.transform.container.setAttribute("opacity",nt.transform.op.v),(ut||nt.transform.mProps._mdf)&&nt.transform.container.setAttribute("transform",nt.transform.mProps.v.to2dCSS())}function $(){}function j(it,nt,ut){var ct,st,dt,ot,lt,at,ft=nt.styles.length,ht=nt.lvl,mt,gt,vt,St;for(at=0;at<ft;at+=1){if(ot=nt.sh._mdf||ut,nt.styles[at].lvl<ht){for(gt=s.reset(),vt=ht-nt.styles[at].lvl,St=nt.transformers.length-1;!ot&&vt>0;)ot=nt.transformers[St].mProps._mdf||ot,vt-=1,St-=1;if(ot)for(vt=ht-nt.styles[at].lvl,St=nt.transformers.length-1;vt>0;)gt.multiply(nt.transformers[St].mProps.v),vt-=1,St-=1}else gt=i;if(mt=nt.sh.paths,st=mt._length,ot){for(dt="",ct=0;ct<st;ct+=1)lt=mt.shapes[ct],lt&&lt._length&&(dt+=buildShapeString(lt,lt._length,lt.c,gt));nt.caches[at]=dt}else dt=nt.caches[at];nt.styles[at].d+=it.hd===!0?"":dt,nt.styles[at]._mdf=ot||nt.styles[at]._mdf}}function _e(it,nt,ut){var ct=nt.style;(nt.c._mdf||ut)&&ct.pElem.setAttribute("fill","rgb("+bmFloor(nt.c.v[0])+","+bmFloor(nt.c.v[1])+","+bmFloor(nt.c.v[2])+")"),(nt.o._mdf||ut)&&ct.pElem.setAttribute("fill-opacity",nt.o.v)}function et(it,nt,ut){tt(it,nt,ut),rt(it,nt,ut)}function tt(it,nt,ut){var ct=nt.gf,st=nt.g._hasOpacity,dt=nt.s.v,ot=nt.e.v;if(nt.o._mdf||ut){var lt=it.ty==="gf"?"fill-opacity":"stroke-opacity";nt.style.pElem.setAttribute(lt,nt.o.v)}if(nt.s._mdf||ut){var at=it.t===1?"x1":"cx",ft=at==="x1"?"y1":"cy";ct.setAttribute(at,dt[0]),ct.setAttribute(ft,dt[1]),st&&!nt.g._collapsable&&(nt.of.setAttribute(at,dt[0]),nt.of.setAttribute(ft,dt[1]))}var ht,mt,gt,vt;if(nt.g._cmdf||ut){ht=nt.cst;var St=nt.g.c;for(gt=ht.length,mt=0;mt<gt;mt+=1)vt=ht[mt],vt.setAttribute("offset",St[mt*4]+"%"),vt.setAttribute("stop-color","rgb("+St[mt*4+1]+","+St[mt*4+2]+","+St[mt*4+3]+")")}if(st&&(nt.g._omdf||ut)){var wt=nt.g.o;for(nt.g._collapsable?ht=nt.cst:ht=nt.ost,gt=ht.length,mt=0;mt<gt;mt+=1)vt=ht[mt],nt.g._collapsable||vt.setAttribute("offset",wt[mt*2]+"%"),vt.setAttribute("stop-opacity",wt[mt*2+1])}if(it.t===1)(nt.e._mdf||ut)&&(ct.setAttribute("x2",ot[0]),ct.setAttribute("y2",ot[1]),st&&!nt.g._collapsable&&(nt.of.setAttribute("x2",ot[0]),nt.of.setAttribute("y2",ot[1])));else{var Pt;if((nt.s._mdf||nt.e._mdf||ut)&&(Pt=Math.sqrt(Math.pow(dt[0]-ot[0],2)+Math.pow(dt[1]-ot[1],2)),ct.setAttribute("r",Pt),st&&!nt.g._collapsable&&nt.of.setAttribute("r",Pt)),nt.e._mdf||nt.h._mdf||nt.a._mdf||ut){Pt||(Pt=Math.sqrt(Math.pow(dt[0]-ot[0],2)+Math.pow(dt[1]-ot[1],2)));var Rt=Math.atan2(ot[1]-dt[1],ot[0]-dt[0]),It=nt.h.v;It>=1?It=.99:It<=-1&&(It=-.99);var jt=Pt*It,Mt=Math.cos(Rt+nt.a.v)*jt+dt[0],xt=Math.sin(Rt+nt.a.v)*jt+dt[1];ct.setAttribute("fx",Mt),ct.setAttribute("fy",xt),st&&!nt.g._collapsable&&(nt.of.setAttribute("fx",Mt),nt.of.setAttribute("fy",xt))}}}function rt(it,nt,ut){var ct=nt.style,st=nt.d;st&&(st._mdf||ut)&&st.dashStr&&(ct.pElem.setAttribute("stroke-dasharray",st.dashStr),ct.pElem.setAttribute("stroke-dashoffset",st.dashoffset[0])),nt.c&&(nt.c._mdf||ut)&&ct.pElem.setAttribute("stroke","rgb("+bmFloor(nt.c.v[0])+","+bmFloor(nt.c.v[1])+","+bmFloor(nt.c.v[2])+")"),(nt.o._mdf||ut)&&ct.pElem.setAttribute("stroke-opacity",nt.o.v),(nt.w._mdf||ut)&&(ct.pElem.setAttribute("stroke-width",nt.w.v),ct.msElem&&ct.msElem.setAttribute("stroke-width",nt.w.v))}return o}();function SVGShapeElement(i,s,o){this.shapes=[],this.shapesData=i.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(i,s,o),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var i,s=this.shapes.length,o,a,_=this.stylesList.length,$,j=[],_e=!1;for(a=0;a<_;a+=1){for($=this.stylesList[a],_e=!1,j.length=0,i=0;i<s;i+=1)o=this.shapes[i],o.styles.indexOf($)!==-1&&(j.push(o),_e=o._isAnimated||_e);j.length>1&&_e&&this.setShapesAsAnimated(j)}},SVGShapeElement.prototype.setShapesAsAnimated=function(i){var s,o=i.length;for(s=0;s<o;s+=1)i[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(i,s){var o,a=new SVGStyleData(i,s),_=a.pElem;if(i.ty==="st")o=new SVGStrokeStyleData(this,i,a);else if(i.ty==="fl")o=new SVGFillStyleData(this,i,a);else if(i.ty==="gf"||i.ty==="gs"){var $=i.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;o=new $(this,i,a),this.globalData.defs.appendChild(o.gf),o.maskId&&(this.globalData.defs.appendChild(o.ms),this.globalData.defs.appendChild(o.of),_.setAttribute("mask","url("+getLocationHref()+"#"+o.maskId+")"))}else i.ty==="no"&&(o=new SVGNoStyleData(this,i,a));return(i.ty==="st"||i.ty==="gs")&&(_.setAttribute("stroke-linecap",lineCapEnum[i.lc||2]),_.setAttribute("stroke-linejoin",lineJoinEnum[i.lj||2]),_.setAttribute("fill-opacity","0"),i.lj===1&&_.setAttribute("stroke-miterlimit",i.ml)),i.r===2&&_.setAttribute("fill-rule","evenodd"),i.ln&&_.setAttribute("id",i.ln),i.cl&&_.setAttribute("class",i.cl),i.bm&&(_.style["mix-blend-mode"]=getBlendMode(i.bm)),this.stylesList.push(a),this.addToAnimatedContents(i,o),o},SVGShapeElement.prototype.createGroupElement=function(i){var s=new ShapeGroupData;return i.ln&&s.gr.setAttribute("id",i.ln),i.cl&&s.gr.setAttribute("class",i.cl),i.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(i.bm)),s},SVGShapeElement.prototype.createTransformElement=function(i,s){var o=TransformPropertyFactory.getTransformProperty(this,i,this),a=new SVGTransformData(o,o.o,s);return this.addToAnimatedContents(i,a),a},SVGShapeElement.prototype.createShapeElement=function(i,s,o){var a=4;i.ty==="rc"?a=5:i.ty==="el"?a=6:i.ty==="sr"&&(a=7);var _=ShapePropertyFactory.getShapeProp(this,i,a,this),$=new SVGShapeData(s,o,_);return this.shapes.push($),this.addShapeToModifiers($),this.addToAnimatedContents(i,$),$},SVGShapeElement.prototype.addToAnimatedContents=function(i,s){for(var o=0,a=this.animatedContents.length;o<a;){if(this.animatedContents[o].element===s)return;o+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(i),element:s,data:i})},SVGShapeElement.prototype.setElementStyles=function(i){var s=i.styles,o,a=this.stylesList.length;for(o=0;o<a;o+=1)this.stylesList[o].closed||s.push(this.stylesList[o])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var i,s=this.itemsData.length;for(i=0;i<s;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,i=0;i<s;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(i,s,o,a,_,$,j){var _e=[].concat($),et,tt=i.length-1,rt,it,nt=[],ut=[],ct,st,dt;for(et=tt;et>=0;et-=1){if(dt=this.searchProcessedElement(i[et]),dt?s[et]=o[dt-1]:i[et]._render=j,i[et].ty==="fl"||i[et].ty==="st"||i[et].ty==="gf"||i[et].ty==="gs"||i[et].ty==="no")dt?s[et].style.closed=!1:s[et]=this.createStyleElement(i[et],_),i[et]._render&&s[et].style.pElem.parentNode!==a&&a.appendChild(s[et].style.pElem),nt.push(s[et].style);else if(i[et].ty==="gr"){if(!dt)s[et]=this.createGroupElement(i[et]);else for(it=s[et].it.length,rt=0;rt<it;rt+=1)s[et].prevViewData[rt]=s[et].it[rt];this.searchShapes(i[et].it,s[et].it,s[et].prevViewData,s[et].gr,_+1,_e,j),i[et]._render&&s[et].gr.parentNode!==a&&a.appendChild(s[et].gr)}else i[et].ty==="tr"?(dt||(s[et]=this.createTransformElement(i[et],a)),ct=s[et].transform,_e.push(ct)):i[et].ty==="sh"||i[et].ty==="rc"||i[et].ty==="el"||i[et].ty==="sr"?(dt||(s[et]=this.createShapeElement(i[et],_e,_)),this.setElementStyles(s[et])):i[et].ty==="tm"||i[et].ty==="rd"||i[et].ty==="ms"||i[et].ty==="pb"||i[et].ty==="zz"||i[et].ty==="op"?(dt?(st=s[et],st.closed=!1):(st=ShapeModifiers.getModifier(i[et].ty),st.init(this,i[et]),s[et]=st,this.shapeModifiers.push(st)),ut.push(st)):i[et].ty==="rp"&&(dt?(st=s[et],st.closed=!0):(st=ShapeModifiers.getModifier(i[et].ty),s[et]=st,st.init(this,i,et,s),this.shapeModifiers.push(st),j=!1),ut.push(st));this.addProcessedElement(i[et],et+1)}for(tt=nt.length,et=0;et<tt;et+=1)nt[et].closed=!0;for(tt=ut.length,et=0;et<tt;et+=1)ut[et].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var i,s=this.stylesList.length;for(i=0;i<s;i+=1)this.stylesList[i].reset();for(this.renderShape(),i=0;i<s;i+=1)(this.stylesList[i]._mdf||this._isFirstFrame)&&(this.stylesList[i].msElem&&(this.stylesList[i].msElem.setAttribute("d",this.stylesList[i].d),this.stylesList[i].d="M0 0"+this.stylesList[i].d),this.stylesList[i].pElem.setAttribute("d",this.stylesList[i].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var i,s=this.animatedContents.length,o;for(i=0;i<s;i+=1)o=this.animatedContents[i],(this._isFirstFrame||o.element._isAnimated)&&o.data!==!0&&o.fn(o.data,o.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(i,s,o,a,_,$){this.o=i,this.sw=s,this.sc=o,this.fc=a,this.m=_,this.p=$,this._mdf={o:!0,sw:!!s,sc:!!o,fc:!!a,m:!0,p:!0}}LetterProps.prototype.update=function(i,s,o,a,_,$){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var j=!1;return this.o!==i&&(this.o=i,this._mdf.o=!0,j=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,j=!0),this.sc!==o&&(this.sc=o,this._mdf.sc=!0,j=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,j=!0),this.m!==_&&(this.m=_,this._mdf.m=!0,j=!0),$.length&&(this.p[0]!==$[0]||this.p[1]!==$[1]||this.p[4]!==$[4]||this.p[5]!==$[5]||this.p[12]!==$[12]||this.p[13]!==$[13])&&(this.p=$,this._mdf.p=!0,j=!0),j};function TextProperty(i,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=i.globalData.slotManager.getProp(s.d)),this.data=s,this.elem=i,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(i,s){for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[o]=s[o]);return i},TextProperty.prototype.setCurrentData=function(i){i.__complete||this.completeTextData(i),this.currentData=i,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(i){this.effectsSequence.push(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(i){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!i)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var s=this.currentData,o=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var a,_=this.effectsSequence.length,$=i||this.data.d.k[this.keysIndex].s;for(a=0;a<_;a+=1)o!==this.keysIndex?$=this.effectsSequence[a]($,$.t):$=this.effectsSequence[a](this.currentData,$.t);s!==$&&this.setCurrentData($),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var i=this.data.d.k,s=this.elem.comp.renderedFrame,o=0,a=i.length;o<=a-1&&!(o===a-1||i[o+1].t>s);)o+=1;return this.keysIndex!==o&&(this.keysIndex=o),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(i){for(var s=[],o=0,a=i.length,_,$,j=!1,_e=!1,et="";o<a;)j=_e,_e=!1,_=i.charCodeAt(o),et=i.charAt(o),FontManager.isCombinedCharacter(_)?j=!0:_>=55296&&_<=56319?FontManager.isRegionalFlag(i,o)?et=i.substr(o,14):($=i.charCodeAt(o+1),$>=56320&&$<=57343&&(FontManager.isModifier(_,$)?(et=i.substr(o,2),j=!0):FontManager.isFlagEmoji(i.substr(o,4))?et=i.substr(o,4):et=i.substr(o,2))):_>56319?($=i.charCodeAt(o+1),FontManager.isVariationSelector(_)&&(j=!0)):FontManager.isZeroWidthJoiner(_)&&(j=!0,_e=!0),j?(s[s.length-1]+=et,j=!1):s.push(et),o+=et.length;return s},TextProperty.prototype.completeTextData=function(i){i.__complete=!0;var s=this.elem.globalData.fontManager,o=this.data,a=[],_,$,j,_e=0,et,tt=o.m.g,rt=0,it=0,nt=0,ut=[],ct=0,st=0,dt,ot,lt=s.getFontByName(i.f),at,ft=0,ht=getFontProperties(lt);i.fWeight=ht.weight,i.fStyle=ht.style,i.finalSize=i.s,i.finalText=this.buildFinalText(i.t),$=i.finalText.length,i.finalLineHeight=i.lh;var mt=i.tr/1e3*i.finalSize,gt;if(i.sz)for(var vt=!0,St=i.sz[0],wt=i.sz[1],Pt,Rt;vt;){Rt=this.buildFinalText(i.t),Pt=0,ct=0,$=Rt.length,mt=i.tr/1e3*i.finalSize;var It=-1;for(_=0;_<$;_+=1)gt=Rt[_].charCodeAt(0),j=!1,Rt[_]===" "?It=_:(gt===13||gt===3)&&(ct=0,j=!0,Pt+=i.finalLineHeight||i.finalSize*1.2),s.chars?(at=s.getCharData(Rt[_],lt.fStyle,lt.fFamily),ft=j?0:at.w*i.finalSize/100):ft=s.measureText(Rt[_],i.f,i.finalSize),ct+ft>St&&Rt[_]!==" "?(It===-1?$+=1:_=It,Pt+=i.finalLineHeight||i.finalSize*1.2,Rt.splice(_,It===_?1:0,"\r"),It=-1,ct=0):(ct+=ft,ct+=mt);Pt+=lt.ascent*i.finalSize/100,this.canResize&&i.finalSize>this.minimumFontSize&&wt<Pt?(i.finalSize-=1,i.finalLineHeight=i.finalSize*i.lh/i.s):(i.finalText=Rt,$=i.finalText.length,vt=!1)}ct=-mt,ft=0;var jt=0,Mt;for(_=0;_<$;_+=1)if(j=!1,Mt=i.finalText[_],gt=Mt.charCodeAt(0),gt===13||gt===3?(jt=0,ut.push(ct),st=ct>st?ct:st,ct=-2*mt,et="",j=!0,nt+=1):et=Mt,s.chars?(at=s.getCharData(Mt,lt.fStyle,s.getFontByName(i.f).fFamily),ft=j?0:at.w*i.finalSize/100):ft=s.measureText(et,i.f,i.finalSize),Mt===" "?jt+=ft+mt:(ct+=ft+mt+jt,jt=0),a.push({l:ft,an:ft,add:rt,n:j,anIndexes:[],val:et,line:nt,animatorJustifyOffset:0}),tt==2){if(rt+=ft,et===""||et===" "||_===$-1){for((et===""||et===" ")&&(rt-=ft);it<=_;)a[it].an=rt,a[it].ind=_e,a[it].extra=ft,it+=1;_e+=1,rt=0}}else if(tt==3){if(rt+=ft,et===""||_===$-1){for(et===""&&(rt-=ft);it<=_;)a[it].an=rt,a[it].ind=_e,a[it].extra=ft,it+=1;rt=0,_e+=1}}else a[_e].ind=_e,a[_e].extra=0,_e+=1;if(i.l=a,st=ct>st?ct:st,ut.push(ct),i.sz)i.boxWidth=i.sz[0],i.justifyOffset=0;else switch(i.boxWidth=st,i.j){case 1:i.justifyOffset=-i.boxWidth;break;case 2:i.justifyOffset=-i.boxWidth/2;break;default:i.justifyOffset=0}i.lineWidths=ut;var xt=o.a,bt,pt;ot=xt.length;var yt,kt,Et=[];for(dt=0;dt<ot;dt+=1){for(bt=xt[dt],bt.a.sc&&(i.strokeColorAnim=!0),bt.a.sw&&(i.strokeWidthAnim=!0),(bt.a.fc||bt.a.fh||bt.a.fs||bt.a.fb)&&(i.fillColorAnim=!0),kt=0,yt=bt.s.b,_=0;_<$;_+=1)pt=a[_],pt.anIndexes[dt]=kt,(yt==1&&pt.val!==""||yt==2&&pt.val!==""&&pt.val!==" "||yt==3&&(pt.n||pt.val==" "||_==$-1)||yt==4&&(pt.n||_==$-1))&&(bt.s.rn===1&&Et.push(kt),kt+=1);o.a[dt].s.totalChars=kt;var $t=-1,At;if(bt.s.rn===1)for(_=0;_<$;_+=1)pt=a[_],$t!=pt.anIndexes[dt]&&($t=pt.anIndexes[dt],At=Et.splice(Math.floor(Math.random()*Et.length),1)[0]),pt.anIndexes[dt]=At}i.yOffset=i.finalLineHeight||i.finalSize*1.2,i.ls=i.ls||0,i.ascent=lt.ascent*i.finalSize/100},TextProperty.prototype.updateDocumentData=function(i,s){s=s===void 0?this.keysIndex:s;var o=this.copyData({},this.data.d.k[s].s);o=this.copyData(o,i),this.data.d.k[s].s=o,this.recalculate(s),this.setCurrentData(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(i){var s=this.data.d.k[i].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},TextProperty.prototype.canResizeFont=function(i){this.canResize=i,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(i){this.minimumFontSize=Math.floor(i)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var i=Math.max,s=Math.min,o=Math.floor;function a($,j){this._currentTextLength=-1,this.k=!1,this.data=j,this.elem=$,this.comp=$.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer($),this.s=PropertyFactory.getProp($,j.s||{k:0},0,0,this),"e"in j?this.e=PropertyFactory.getProp($,j.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp($,j.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp($,j.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp($,j.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp($,j.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp($,j.a,0,.01,this),this.dynamicProperties.length||this.getValue()}a.prototype={getMult:function(j){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var _e=0,et=0,tt=1,rt=1;this.ne.v>0?_e=this.ne.v/100:et=-this.ne.v/100,this.xe.v>0?tt=1-this.xe.v/100:rt=1+this.xe.v/100;var it=BezierFactory.getBezierEasing(_e,et,tt,rt).get,nt=0,ut=this.finalS,ct=this.finalE,st=this.data.sh;if(st===2)ct===ut?nt=j>=ct?1:0:nt=i(0,s(.5/(ct-ut)+(j-ut)/(ct-ut),1)),nt=it(nt);else if(st===3)ct===ut?nt=j>=ct?0:1:nt=1-i(0,s(.5/(ct-ut)+(j-ut)/(ct-ut),1)),nt=it(nt);else if(st===4)ct===ut?nt=0:(nt=i(0,s(.5/(ct-ut)+(j-ut)/(ct-ut),1)),nt<.5?nt*=2:nt=1-2*(nt-.5)),nt=it(nt);else if(st===5){if(ct===ut)nt=0;else{var dt=ct-ut;j=s(i(0,j+.5-ut),ct-ut);var ot=-dt/2+j,lt=dt/2;nt=Math.sqrt(1-ot*ot/(lt*lt))}nt=it(nt)}else st===6?(ct===ut?nt=0:(j=s(i(0,j+.5-ut),ct-ut),nt=(1+Math.cos(Math.PI+Math.PI*2*j/(ct-ut)))/2),nt=it(nt)):(j>=o(ut)&&(j-ut<0?nt=i(0,s(s(ct,1)-(ut-j),1)):nt=i(0,s(ct-j,1))),nt=it(nt));if(this.sm.v!==100){var at=this.sm.v*.01;at===0&&(at=1e-8);var ft=.5-at*.5;nt<ft?nt=0:(nt=(nt-ft)/at,nt>1&&(nt=1))}return nt*this.a.v},getValue:function(j){this.iterateDynamicProperties(),this._mdf=j||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,j&&this.data.r===2&&(this.e.v=this._currentTextLength);var _e=this.data.r===2?1:100/this.data.totalChars,et=this.o.v/_e,tt=this.s.v/_e+et,rt=this.e.v/_e+et;if(tt>rt){var it=tt;tt=rt,rt=it}this.finalS=tt,this.finalE=rt}},extendPrototype([DynamicPropertyContainer],a);function _($,j,_e){return new a($,j)}return{getTextSelectorProp:_}}();function TextAnimatorDataProperty(i,s,o){var a={propType:!1},_=PropertyFactory.getProp,$=s.a;this.a={r:$.r?_(i,$.r,0,degToRads,o):a,rx:$.rx?_(i,$.rx,0,degToRads,o):a,ry:$.ry?_(i,$.ry,0,degToRads,o):a,sk:$.sk?_(i,$.sk,0,degToRads,o):a,sa:$.sa?_(i,$.sa,0,degToRads,o):a,s:$.s?_(i,$.s,1,.01,o):a,a:$.a?_(i,$.a,1,0,o):a,o:$.o?_(i,$.o,0,.01,o):a,p:$.p?_(i,$.p,1,0,o):a,sw:$.sw?_(i,$.sw,0,0,o):a,sc:$.sc?_(i,$.sc,1,0,o):a,fc:$.fc?_(i,$.fc,1,0,o):a,fh:$.fh?_(i,$.fh,0,0,o):a,fs:$.fs?_(i,$.fs,0,.01,o):a,fb:$.fb?_(i,$.fb,0,.01,o):a,t:$.t?_(i,$.t,0,0,o):a},this.s=TextSelectorProp.getTextSelectorProp(i,s.s,o),this.s.t=s.s.t}function TextAnimatorProperty(i,s,o){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=i,this._renderType=s,this._elem=o,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(o)}TextAnimatorProperty.prototype.searchProperties=function(){var i,s=this._textData.a.length,o,a=PropertyFactory.getProp;for(i=0;i<s;i+=1)o=this._textData.a[i],this._animatorsData[i]=new TextAnimatorDataProperty(this._elem,o,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=a(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(i,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var o=this._moreOptions.alignment.v,a=this._animatorsData,_=this._textData,$=this.mHelper,j=this._renderType,_e=this.renderedLetters.length,et,tt,rt,it,nt=i.l,ut,ct,st,dt,ot,lt,at,ft,ht,mt,gt,vt,St,wt,Pt;if(this._hasMaskedPath){if(Pt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Rt=Pt.v;this._pathData.r.v&&(Rt=Rt.reverse()),ut={tLength:0,segments:[]},it=Rt._length-1;var It;for(vt=0,rt=0;rt<it;rt+=1)It=bez.buildBezierData(Rt.v[rt],Rt.v[rt+1],[Rt.o[rt][0]-Rt.v[rt][0],Rt.o[rt][1]-Rt.v[rt][1]],[Rt.i[rt+1][0]-Rt.v[rt+1][0],Rt.i[rt+1][1]-Rt.v[rt+1][1]]),ut.tLength+=It.segmentLength,ut.segments.push(It),vt+=It.segmentLength;rt=it,Pt.v.c&&(It=bez.buildBezierData(Rt.v[rt],Rt.v[0],[Rt.o[rt][0]-Rt.v[rt][0],Rt.o[rt][1]-Rt.v[rt][1]],[Rt.i[0][0]-Rt.v[0][0],Rt.i[0][1]-Rt.v[0][1]]),ut.tLength+=It.segmentLength,ut.segments.push(It),vt+=It.segmentLength),this._pathData.pi=ut}if(ut=this._pathData.pi,ct=this._pathData.f.v,at=0,lt=1,dt=0,ot=!0,mt=ut.segments,ct<0&&Pt.v.c)for(ut.tLength<Math.abs(ct)&&(ct=-Math.abs(ct)%ut.tLength),at=mt.length-1,ht=mt[at].points,lt=ht.length-1;ct<0;)ct+=ht[lt].partialLength,lt-=1,lt<0&&(at-=1,ht=mt[at].points,lt=ht.length-1);ht=mt[at].points,ft=ht[lt-1],st=ht[lt],gt=st.partialLength}it=nt.length,et=0,tt=0;var jt=i.finalSize*1.2*.714,Mt=!0,xt,bt,pt,yt,kt;yt=a.length;var Et,$t=-1,At,Ot,Vt,Lt=ct,Wt=at,qt=lt,dr=-1,ir,Zt,or,Ut,Bt,yr,rr,ar,lr="",cr=this.defaultPropsArray,Jt;if(i.j===2||i.j===1){var nr=0,pr=0,ur=i.j===2?-.5:-1,hr=0,br=!0;for(rt=0;rt<it;rt+=1)if(nt[rt].n){for(nr&&(nr+=pr);hr<rt;)nt[hr].animatorJustifyOffset=nr,hr+=1;nr=0,br=!0}else{for(pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.t.propType&&(br&&i.j===2&&(pr+=xt.t.v*ur),bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),Et.length?nr+=xt.t.v*Et[0]*ur:nr+=xt.t.v*Et*ur);br=!1}for(nr&&(nr+=pr);hr<rt;)nt[hr].animatorJustifyOffset=nr,hr+=1}for(rt=0;rt<it;rt+=1){if($.reset(),ir=1,nt[rt].n)et=0,tt+=i.yOffset,tt+=Mt?1:0,ct=Lt,Mt=!1,this._hasMaskedPath&&(at=Wt,lt=qt,ht=mt[at].points,ft=ht[lt-1],st=ht[lt],gt=st.partialLength,dt=0),lr="",ar="",yr="",Jt="",cr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(dr!==nt[rt].line){switch(i.j){case 1:ct+=vt-i.lineWidths[nt[rt].line];break;case 2:ct+=(vt-i.lineWidths[nt[rt].line])/2;break}dr=nt[rt].line}$t!==nt[rt].ind&&(nt[$t]&&(ct+=nt[$t].extra),ct+=nt[rt].an/2,$t=nt[rt].ind),ct+=o[0]*nt[rt].an*.005;var mr=0;for(pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.p.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),Et.length?mr+=xt.p.v[0]*Et[0]:mr+=xt.p.v[0]*Et),xt.a.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),Et.length?mr+=xt.a.v[0]*Et[0]:mr+=xt.a.v[0]*Et);for(ot=!0,this._pathData.a.v&&(ct=nt[0].an*.5+(vt-this._pathData.f.v-nt[0].an*.5-nt[nt.length-1].an*.5)*$t/(it-1),ct+=this._pathData.f.v);ot;)dt+gt>=ct+mr||!ht?(St=(ct+mr-dt)/st.partialLength,Ot=ft.point[0]+(st.point[0]-ft.point[0])*St,Vt=ft.point[1]+(st.point[1]-ft.point[1])*St,$.translate(-o[0]*nt[rt].an*.005,-(o[1]*jt)*.01),ot=!1):ht&&(dt+=st.partialLength,lt+=1,lt>=ht.length&&(lt=0,at+=1,mt[at]?ht=mt[at].points:Pt.v.c?(lt=0,at=0,ht=mt[at].points):(dt-=st.partialLength,ht=null)),ht&&(ft=st,st=ht[lt],gt=st.partialLength));At=nt[rt].an/2-nt[rt].add,$.translate(-At,0,0)}else At=nt[rt].an/2-nt[rt].add,$.translate(-At,0,0),$.translate(-o[0]*nt[rt].an*.005,-o[1]*jt*.01,0);for(pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.t.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),(et!==0||i.j!==0)&&(this._hasMaskedPath?Et.length?ct+=xt.t.v*Et[0]:ct+=xt.t.v*Et:Et.length?et+=xt.t.v*Et[0]:et+=xt.t.v*Et));for(i.strokeWidthAnim&&(or=i.sw||0),i.strokeColorAnim&&(i.sc?Zt=[i.sc[0],i.sc[1],i.sc[2]]:Zt=[0,0,0]),i.fillColorAnim&&i.fc&&(Ut=[i.fc[0],i.fc[1],i.fc[2]]),pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.a.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),Et.length?$.translate(-xt.a.v[0]*Et[0],-xt.a.v[1]*Et[1],xt.a.v[2]*Et[2]):$.translate(-xt.a.v[0]*Et,-xt.a.v[1]*Et,xt.a.v[2]*Et));for(pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.s.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),Et.length?$.scale(1+(xt.s.v[0]-1)*Et[0],1+(xt.s.v[1]-1)*Et[1],1):$.scale(1+(xt.s.v[0]-1)*Et,1+(xt.s.v[1]-1)*Et,1));for(pt=0;pt<yt;pt+=1){if(xt=a[pt].a,bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),xt.sk.propType&&(Et.length?$.skewFromAxis(-xt.sk.v*Et[0],xt.sa.v*Et[1]):$.skewFromAxis(-xt.sk.v*Et,xt.sa.v*Et)),xt.r.propType&&(Et.length?$.rotateZ(-xt.r.v*Et[2]):$.rotateZ(-xt.r.v*Et)),xt.ry.propType&&(Et.length?$.rotateY(xt.ry.v*Et[1]):$.rotateY(xt.ry.v*Et)),xt.rx.propType&&(Et.length?$.rotateX(xt.rx.v*Et[0]):$.rotateX(xt.rx.v*Et)),xt.o.propType&&(Et.length?ir+=(xt.o.v*Et[0]-ir)*Et[0]:ir+=(xt.o.v*Et-ir)*Et),i.strokeWidthAnim&&xt.sw.propType&&(Et.length?or+=xt.sw.v*Et[0]:or+=xt.sw.v*Et),i.strokeColorAnim&&xt.sc.propType)for(Bt=0;Bt<3;Bt+=1)Et.length?Zt[Bt]+=(xt.sc.v[Bt]-Zt[Bt])*Et[0]:Zt[Bt]+=(xt.sc.v[Bt]-Zt[Bt])*Et;if(i.fillColorAnim&&i.fc){if(xt.fc.propType)for(Bt=0;Bt<3;Bt+=1)Et.length?Ut[Bt]+=(xt.fc.v[Bt]-Ut[Bt])*Et[0]:Ut[Bt]+=(xt.fc.v[Bt]-Ut[Bt])*Et;xt.fh.propType&&(Et.length?Ut=addHueToRGB(Ut,xt.fh.v*Et[0]):Ut=addHueToRGB(Ut,xt.fh.v*Et)),xt.fs.propType&&(Et.length?Ut=addSaturationToRGB(Ut,xt.fs.v*Et[0]):Ut=addSaturationToRGB(Ut,xt.fs.v*Et)),xt.fb.propType&&(Et.length?Ut=addBrightnessToRGB(Ut,xt.fb.v*Et[0]):Ut=addBrightnessToRGB(Ut,xt.fb.v*Et))}}for(pt=0;pt<yt;pt+=1)xt=a[pt].a,xt.p.propType&&(bt=a[pt].s,Et=bt.getMult(nt[rt].anIndexes[pt],_.a[pt].s.totalChars),this._hasMaskedPath?Et.length?$.translate(0,xt.p.v[1]*Et[0],-xt.p.v[2]*Et[1]):$.translate(0,xt.p.v[1]*Et,-xt.p.v[2]*Et):Et.length?$.translate(xt.p.v[0]*Et[0],xt.p.v[1]*Et[1],-xt.p.v[2]*Et[2]):$.translate(xt.p.v[0]*Et,xt.p.v[1]*Et,-xt.p.v[2]*Et));if(i.strokeWidthAnim&&(yr=or<0?0:or),i.strokeColorAnim&&(rr="rgb("+Math.round(Zt[0]*255)+","+Math.round(Zt[1]*255)+","+Math.round(Zt[2]*255)+")"),i.fillColorAnim&&i.fc&&(ar="rgb("+Math.round(Ut[0]*255)+","+Math.round(Ut[1]*255)+","+Math.round(Ut[2]*255)+")"),this._hasMaskedPath){if($.translate(0,-i.ls),$.translate(0,o[1]*jt*.01+tt,0),this._pathData.p.v){wt=(st.point[1]-ft.point[1])/(st.point[0]-ft.point[0]);var wr=Math.atan(wt)*180/Math.PI;st.point[0]<ft.point[0]&&(wr+=180),$.rotate(-wr*Math.PI/180)}$.translate(Ot,Vt,0),ct-=o[0]*nt[rt].an*.005,nt[rt+1]&&$t!==nt[rt+1].ind&&(ct+=nt[rt].an/2,ct+=i.tr*.001*i.finalSize)}else{switch($.translate(et,tt,0),i.ps&&$.translate(i.ps[0],i.ps[1]+i.ascent,0),i.j){case 1:$.translate(nt[rt].animatorJustifyOffset+i.justifyOffset+(i.boxWidth-i.lineWidths[nt[rt].line]),0,0);break;case 2:$.translate(nt[rt].animatorJustifyOffset+i.justifyOffset+(i.boxWidth-i.lineWidths[nt[rt].line])/2,0,0);break}$.translate(0,-i.ls),$.translate(At,0,0),$.translate(o[0]*nt[rt].an*.005,o[1]*jt*.01,0),et+=nt[rt].l+i.tr*.001*i.finalSize}j==="html"?lr=$.toCSS():j==="svg"?lr=$.to2dCSS():cr=[$.props[0],$.props[1],$.props[2],$.props[3],$.props[4],$.props[5],$.props[6],$.props[7],$.props[8],$.props[9],$.props[10],$.props[11],$.props[12],$.props[13],$.props[14],$.props[15]],Jt=ir}_e<=rt?(kt=new LetterProps(Jt,yr,rr,ar,lr,cr),this.renderedLetters.push(kt),_e+=1,this.lettersChangedFlag=!0):(kt=this.renderedLetters[rt],this.lettersChangedFlag=kt.update(Jt,yr,rr,ar,lr,cr)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(i,s,o){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(i,s,o),this.textProperty=new TextProperty(this,i.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(i.t,this.renderType,this),this.initTransform(i,s,o),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)},ITextElement.prototype.createPathShape=function(i,s){var o,a=s.length,_,$="";for(o=0;o<a;o+=1)s[o].ty==="sh"&&(_=s[o].ks.k,$+=buildShapeString(_,_.i.length,!0,i));return $},ITextElement.prototype.updateDocumentData=function(i,s){this.textProperty.updateDocumentData(i,s)},ITextElement.prototype.canResizeFont=function(i){this.textProperty.canResizeFont(i)},ITextElement.prototype.setMinimumFontSize=function(i){this.textProperty.setMinimumFontSize(i)},ITextElement.prototype.applyTextPropertiesToMatrix=function(i,s,o,a,_){switch(i.ps&&s.translate(i.ps[0],i.ps[1]+i.ascent,0),s.translate(0,-i.ls,0),i.j){case 1:s.translate(i.justifyOffset+(i.boxWidth-i.lineWidths[o]),0,0);break;case 2:s.translate(i.justifyOffset+(i.boxWidth-i.lineWidths[o])/2,0,0);break}s.translate(a,_,0)},ITextElement.prototype.buildColor=function(i){return"rgb("+Math.round(i[0]*255)+","+Math.round(i[1]*255)+","+Math.round(i[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(i,s,o){this.textSpans=[],this.renderType="svg",this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(i){for(var s=0,o=i.length,a=[],_="";s<o;)i[s]==="\r"||i[s]===""?(a.push(_),_=""):_+=i[s],s+=1;return a.push(_),a},SVGTextLottieElement.prototype.buildShapeData=function(i,s){if(i.shapes&&i.shapes.length){var o=i.shapes[0];if(o.it){var a=o.it[o.it.length-1];a.s&&(a.s.k[0]=s,a.s.k[1]=s)}}return i},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var i,s,o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o?o.l.length:0),o.fc?this.layerElement.setAttribute("fill",this.buildColor(o.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),o.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(o.sc)),this.layerElement.setAttribute("stroke-width",o.sw)),this.layerElement.setAttribute("font-size",o.finalSize);var a=this.globalData.fontManager.getFontByName(o.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var _=o.fWeight,$=o.fStyle;this.layerElement.setAttribute("font-style",$),this.layerElement.setAttribute("font-weight",_)}this.layerElement.setAttribute("aria-label",o.t);var j=o.l||[],_e=!!this.globalData.fontManager.chars;s=j.length;var et,tt=this.mHelper,rt="",it=this.data.singleShape,nt=0,ut=0,ct=!0,st=o.tr*.001*o.finalSize;if(it&&!_e&&!o.sz){var dt=this.textContainer,ot="start";switch(o.j){case 1:ot="end";break;case 2:ot="middle";break;default:ot="start";break}dt.setAttribute("text-anchor",ot),dt.setAttribute("letter-spacing",st);var lt=this.buildTextContents(o.finalText);for(s=lt.length,ut=o.ps?o.ps[1]+o.ascent:0,i=0;i<s;i+=1)et=this.textSpans[i].span||createNS("tspan"),et.textContent=lt[i],et.setAttribute("x",0),et.setAttribute("y",ut),et.style.display="inherit",dt.appendChild(et),this.textSpans[i]||(this.textSpans[i]={span:null,glyph:null}),this.textSpans[i].span=et,ut+=o.finalLineHeight;this.layerElement.appendChild(dt)}else{var at=this.textSpans.length,ft;for(i=0;i<s;i+=1){if(this.textSpans[i]||(this.textSpans[i]={span:null,childSpan:null,glyph:null}),!_e||!it||i===0){if(et=at>i?this.textSpans[i].span:createNS(_e?"g":"text"),at<=i){if(et.setAttribute("stroke-linecap","butt"),et.setAttribute("stroke-linejoin","round"),et.setAttribute("stroke-miterlimit","4"),this.textSpans[i].span=et,_e){var ht=createNS("g");et.appendChild(ht),this.textSpans[i].childSpan=ht}this.textSpans[i].span=et,this.layerElement.appendChild(et)}et.style.display="inherit"}if(tt.reset(),it&&(j[i].n&&(nt=-st,ut+=o.yOffset,ut+=ct?1:0,ct=!1),this.applyTextPropertiesToMatrix(o,tt,j[i].line,nt,ut),nt+=j[i].l||0,nt+=st),_e){ft=this.globalData.fontManager.getCharData(o.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily);var mt;if(ft.t===1)mt=new SVGCompElement(ft.data,this.globalData,this);else{var gt=emptyShapeData;ft.data&&ft.data.shapes&&(gt=this.buildShapeData(ft.data,o.finalSize)),mt=new SVGShapeElement(gt,this.globalData,this)}if(this.textSpans[i].glyph){var vt=this.textSpans[i].glyph;this.textSpans[i].childSpan.removeChild(vt.layerElement),vt.destroy()}this.textSpans[i].glyph=mt,mt._debug=!0,mt.prepareFrame(0),mt.renderFrame(),this.textSpans[i].childSpan.appendChild(mt.layerElement),ft.t===1&&this.textSpans[i].childSpan.setAttribute("transform","scale("+o.finalSize/100+","+o.finalSize/100+")")}else it&&et.setAttribute("transform","translate("+tt.props[12]+","+tt.props[13]+")"),et.textContent=j[i].val,et.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}it&&et&&et.setAttribute("d",rt)}for(;i<this.textSpans.length;)this.textSpans[i].span.style.display="none",i+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var i=this.layerElement.getBBox();this.bbox={top:i.y,left:i.x,width:i.width,height:i.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var i,s=this.textSpans.length,o;for(this.renderedFrame=this.comp.renderedFrame,i=0;i<s;i+=1)o=this.textSpans[i].glyph,o&&(o.prepareFrame(this.comp.renderedFrame-this.data.st),o._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var i,s,o=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;s=a.length;var _,$,j;for(i=0;i<s;i+=1)a[i].n||(_=o[i],$=this.textSpans[i].span,j=this.textSpans[i].glyph,j&&j.renderFrame(),_._mdf.m&&$.setAttribute("transform",_.m),_._mdf.o&&$.setAttribute("opacity",_.o),_._mdf.sw&&$.setAttribute("stroke-width",_.sw),_._mdf.sc&&$.setAttribute("stroke",_.sc),_._mdf.fc&&$.setAttribute("fill",_.fc))}};function ISolidElement(i,s,o){this.initElement(i,s,o)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var i=createNS("rect");i.setAttribute("width",this.data.sw),i.setAttribute("height",this.data.sh),i.setAttribute("fill",this.data.sc),this.layerElement.appendChild(i)};function NullElement(i,s,o){this.initFrame(),this.initBaseData(i,s,o),this.initFrame(),this.initTransform(i,s,o),this.initHierarchy()}NullElement.prototype.prepareFrame=function(i){this.prepareProperties(i,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(i){return new NullElement(i,this.globalData,this)},SVGRendererBase.prototype.createShape=function(i){return new SVGShapeElement(i,this.globalData,this)},SVGRendererBase.prototype.createText=function(i){return new SVGTextLottieElement(i,this.globalData,this)},SVGRendererBase.prototype.createImage=function(i){return new IImageElement(i,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(i){return new ISolidElement(i,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(i){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+i.w+" "+i.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",i.w),this.svgElement.setAttribute("height",i.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var s=this.globalData.defs;this.setupGlobalData(i,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=i;var o=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",i.w),a.setAttribute("height",i.h),a.setAttribute("x",0),a.setAttribute("y",0);var _=createElementID();o.setAttribute("id",_),o.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+_+")"),s.appendChild(o),this.layers=i.layers,this.elements=createSizedArray(i.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var i,s=this.layers?this.layers.length:0;for(i=0;i<s;i+=1)this.elements[i]&&this.elements[i].destroy&&this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(i){var s=0,o=this.layers.length;for(s=0;s<o;s+=1)if(this.layers[s].ind===i)return s;return-1},SVGRendererBase.prototype.buildItem=function(i){var s=this.elements;if(!(s[i]||this.layers[i].ty===99)){s[i]=!0;var o=this.createItem(this.layers[i]);if(s[i]=o,getExpressionsPlugin()&&(this.layers[i].ty===0&&this.globalData.projectInterface.registerComposition(o),o.initExpressions()),this.appendElementInPos(o,i),this.layers[i].tt){var a="tp"in this.layers[i]?this.findIndexByInd(this.layers[i].tp):i-1;if(a===-1)return;if(!this.elements[a]||this.elements[a]===!0)this.buildItem(a),this.addPendingElement(o);else{var _=s[a],$=_.getMatte(this.layers[i].tt);o.setMatte($)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var i=this.pendingElements.pop();if(i.checkParenting(),i.data.tt)for(var s=0,o=this.elements.length;s<o;){if(this.elements[s]===i){var a="tp"in i.data?this.findIndexByInd(i.data.tp):s-1,_=this.elements[a],$=_.getMatte(this.layers[s].tt);i.setMatte($);break}s+=1}}},SVGRendererBase.prototype.renderFrame=function(i){if(!(this.renderedFrame===i||this.destroyed)){i===null?i=this.renderedFrame:this.renderedFrame=i,this.globalData.frameNum=i,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=i,this.globalData._mdf=!1;var s,o=this.layers.length;for(this.completeLayers||this.checkLayers(i),s=o-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(i-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<o;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(i,s){var o=i.getBaseElement();if(o){for(var a=0,_;a<s;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement()&&(_=this.elements[a].getBaseElement()),a+=1;_?this.layerElement.insertBefore(o,_):this.layerElement.appendChild(o)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(i,s,o){this.initFrame(),this.initBaseData(i,s,o),this.initTransform(i,s,o),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(i){if(this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=i/this.data.sr;else{var s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var o,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&(this.elements[o].prepareFrame(this.renderedFrame-this.layers[o].st),this.elements[o]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var i,s=this.layers.length;for(i=0;i<s;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame()},ICompElement.prototype.setElements=function(i){this.elements=i},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var i,s=this.layers.length;for(i=0;i<s;i+=1)this.elements[i]&&this.elements[i].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(i,s,o){this.layers=i.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(i,s,o),this.tm=i.tm?PropertyFactory.getProp(this,i.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(i){return new SVGCompElement(i,this.globalData,this)};function SVGRenderer(i,s){this.animationItem=i,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var o="";if(s&&s.title){var a=createNS("title"),_=createElementID();a.setAttribute("id",_),a.textContent=s.title,this.svgElement.appendChild(a),o+=_}if(s&&s.description){var $=createNS("desc"),j=createElementID();$.setAttribute("id",j),$.textContent=s.description,this.svgElement.appendChild($),o+=" "+j}o&&this.svgElement.setAttribute("aria-labelledby",o);var _e=createNS("defs");this.svgElement.appendChild(_e);var et=createNS("g");this.svgElement.appendChild(et),this.layerElement=et,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:_e,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(i){return new SVGCompElement(i,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var o,a=s.length,_="_";for(o=0;o<a;o+=1)_+=s[o].transform.key+"_";var $=this.sequences[_];return $||($={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[_]=$,this.sequenceList.push($)),$},processSequence:function(s,o){for(var a=0,_=s.transforms.length,$=o;a<_&&!o;){if(s.transforms[a].transform.mProps._mdf){$=!0;break}a+=1}if($)for(s.finalTransform.reset(),a=_-1;a>=0;a-=1)s.finalTransform.multiply(s.transforms[a].transform.mProps.v);s._mdf=$},processSequences:function(s){var o,a=this.sequenceList.length;for(o=0;o<a;o+=1)this.processSequence(this.sequenceList[o],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",o=null,a=null,_=null;function $(){var et=createNS("svg"),tt=createNS("filter"),rt=createNS("feColorMatrix");return tt.setAttribute("id",s),rt.setAttribute("type","matrix"),rt.setAttribute("color-interpolation-filters","sRGB"),rt.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),tt.appendChild(rt),et.appendChild(tt),et.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(et.style.display="none"),et}function j(){o||(_=$(),document.body.appendChild(_),o=createTag("canvas"),a=o.getContext("2d"),a.filter="url(#"+s+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}function _e(et){return o||j(),o.width=et.width,o.height=et.height,a.filter="url(#"+s+")",o}return{load:j,get:_e}};function createCanvas(i,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(i,s);var o=createTag("canvas");return o.width=i,o.height=s,o}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(i){var s,o=i.data.ef?i.data.ef.length:0;this.filters=[];var a;for(s=0;s<o;s+=1){a=null;var _=i.data.ef[s].ty;if(registeredEffects[_]){var $=registeredEffects[_].effect;a=new $(i.effectsManager.effectElements[s],i)}a&&this.filters.push(a)}this.filters.length&&i.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(i){var s,o=this.filters.length;for(s=0;s<o;s+=1)this.filters[s].renderFrame(i)},CVEffects.prototype.getEffects=function(i){var s,o=this.filters.length,a=[];for(s=0;s<o;s+=1)this.filters[s].type===i&&a.push(this.filters[s]);return a};function registerEffect(i,s){registeredEffects[i]={effect:s}}function CVMaskElement(i,s){this.data=i,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var o,a=this.masksProperties.length,_=!1;for(o=0;o<a;o+=1)this.masksProperties[o].mode!=="n"&&(_=!0),this.viewData[o]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[o],3);this.hasMasks=_,_&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var i=this.element.finalTransform.mat,s=this.element.canvasContext,o,a=this.masksProperties.length,_,$,j;for(s.beginPath(),o=0;o<a;o+=1)if(this.masksProperties[o].mode!=="n"){this.masksProperties[o].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),j=this.viewData[o].v,_=i.applyToPointArray(j.v[0][0],j.v[0][1],0),s.moveTo(_[0],_[1]);var _e,et=j._length;for(_e=1;_e<et;_e+=1)$=i.applyToTriplePoints(j.o[_e-1],j.i[_e],j.v[_e]),s.bezierCurveTo($[0],$[1],$[2],$[3],$[4],$[5]);$=i.applyToTriplePoints(j.o[_e-1],j.i[0],j.v[0]),s.bezierCurveTo($[0],$[1],$[2],$[3],$[4],$[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var s=this.globalData.canvasContext,o=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(o);var a=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var o=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=o}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(s){s.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var s=this.buffers[0],o=s.getContext("2d");this.clearCanvas(o),o.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var s=this.buffers[1],o=s.getContext("2d");this.clearCanvas(o),o.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var a=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(a.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var _=assetLoader.getLumaCanvas(this.canvasContext.canvas),$=_.getContext("2d");$.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(_,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var o=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(o),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(o),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(i,s,o,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var _=4;s.ty==="rc"?_=5:s.ty==="el"?_=6:s.ty==="sr"&&(_=7),this.sh=ShapePropertyFactory.getShapeProp(i,s,_,i);var $,j=o.length,_e;for($=0;$<j;$+=1)o[$].closed||(_e={transforms:a.addTransformSequence(o[$].transforms),trNodes:[]},this.styledShapes.push(_e),o[$].elements.push(_e))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(i,s,o){this.shapes=[],this.shapesData=i.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(i,s){var o={data:i,type:i.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:i.hd===!0},a={};if(i.ty==="fl"||i.ty==="st"?(a.c=PropertyFactory.getProp(this,i.c,1,255,this),a.c.k||(o.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):(i.ty==="gf"||i.ty==="gs")&&(a.s=PropertyFactory.getProp(this,i.s,1,null,this),a.e=PropertyFactory.getProp(this,i.e,1,null,this),a.h=PropertyFactory.getProp(this,i.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,i.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,i.g,this)),a.o=PropertyFactory.getProp(this,i.o,0,.01,this),i.ty==="st"||i.ty==="gs"){if(o.lc=lineCapEnum[i.lc||2],o.lj=lineJoinEnum[i.lj||2],i.lj==1&&(o.ml=i.ml),a.w=PropertyFactory.getProp(this,i.w,0,null,this),a.w.k||(o.wi=a.w.v),i.d){var _=new DashProperty(this,i.d,"canvas",this);a.d=_,a.d.k||(o.da=a.d.dashArray,o.do=a.d.dashoffset[0])}}else o.r=i.r===2?"evenodd":"nonzero";return this.stylesList.push(o),a.style=o,a},CVShapeElement.prototype.createGroupElement=function(){var i={it:[],prevViewData:[]};return i},CVShapeElement.prototype.createTransformElement=function(i){var s={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,i.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,i,this)}};return s},CVShapeElement.prototype.createShapeElement=function(i){var s=new CVShapeData(this,i,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var i,s=this.itemsData.length;for(i=0;i<s;i+=1)this.prevViewData[i]=this.itemsData[i];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,i=0;i<s;i+=1)this.dynamicProperties[i].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(i){var s,o=this.stylesList.length;for(s=0;s<o;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(i)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var i,s=this.stylesList.length;for(i=0;i<s;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.pop()},CVShapeElement.prototype.closeStyles=function(i){var s,o=i.length;for(s=0;s<o;s+=1)i[s].closed=!0},CVShapeElement.prototype.searchShapes=function(i,s,o,a,_){var $,j=i.length-1,_e,et,tt=[],rt=[],it,nt,ut,ct=[].concat(_);for($=j;$>=0;$-=1){if(it=this.searchProcessedElement(i[$]),it?s[$]=o[it-1]:i[$]._shouldRender=a,i[$].ty==="fl"||i[$].ty==="st"||i[$].ty==="gf"||i[$].ty==="gs")it?s[$].style.closed=!1:s[$]=this.createStyleElement(i[$],ct),tt.push(s[$].style);else if(i[$].ty==="gr"){if(!it)s[$]=this.createGroupElement(i[$]);else for(et=s[$].it.length,_e=0;_e<et;_e+=1)s[$].prevViewData[_e]=s[$].it[_e];this.searchShapes(i[$].it,s[$].it,s[$].prevViewData,a,ct)}else i[$].ty==="tr"?(it||(ut=this.createTransformElement(i[$]),s[$]=ut),ct.push(s[$]),this.addTransformToStyleList(s[$])):i[$].ty==="sh"||i[$].ty==="rc"||i[$].ty==="el"||i[$].ty==="sr"?it||(s[$]=this.createShapeElement(i[$])):i[$].ty==="tm"||i[$].ty==="rd"||i[$].ty==="pb"||i[$].ty==="zz"||i[$].ty==="op"?(it?(nt=s[$],nt.closed=!1):(nt=ShapeModifiers.getModifier(i[$].ty),nt.init(this,i[$]),s[$]=nt,this.shapeModifiers.push(nt)),rt.push(nt)):i[$].ty==="rp"&&(it?(nt=s[$],nt.closed=!0):(nt=ShapeModifiers.getModifier(i[$].ty),s[$]=nt,nt.init(this,i,$,s),this.shapeModifiers.push(nt),a=!1),rt.push(nt));this.addProcessedElement(i[$],$+1)}for(this.removeTransformFromStyleList(),this.closeStyles(tt),j=rt.length,$=0;$<j;$+=1)rt[$].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(i,s){(i._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=i.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var i,s=this.stylesList.length,o,a,_,$,j,_e,et=this.globalData.renderer,tt=this.globalData.canvasContext,rt,it;for(i=0;i<s;i+=1)if(it=this.stylesList[i],rt=it.type,!((rt==="st"||rt==="gs")&&it.wi===0||!it.data._shouldRender||it.coOp===0||this.globalData.currentGlobalAlpha===0)){for(et.save(),j=it.elements,rt==="st"||rt==="gs"?(et.ctxStrokeStyle(rt==="st"?it.co:it.grd),et.ctxLineWidth(it.wi),et.ctxLineCap(it.lc),et.ctxLineJoin(it.lj),et.ctxMiterLimit(it.ml||0)):et.ctxFillStyle(rt==="fl"?it.co:it.grd),et.ctxOpacity(it.coOp),rt!=="st"&&rt!=="gs"&&tt.beginPath(),et.ctxTransform(it.preTransforms.finalTransform.props),a=j.length,o=0;o<a;o+=1){for((rt==="st"||rt==="gs")&&(tt.beginPath(),it.da&&(tt.setLineDash(it.da),tt.lineDashOffset=it.do)),_e=j[o].trNodes,$=_e.length,_=0;_<$;_+=1)_e[_].t==="m"?tt.moveTo(_e[_].p[0],_e[_].p[1]):_e[_].t==="c"?tt.bezierCurveTo(_e[_].pts[0],_e[_].pts[1],_e[_].pts[2],_e[_].pts[3],_e[_].pts[4],_e[_].pts[5]):tt.closePath();(rt==="st"||rt==="gs")&&(et.ctxStroke(),it.da&&tt.setLineDash(this.dashResetter))}rt!=="st"&&rt!=="gs"&&this.globalData.renderer.ctxFill(it.r),et.restore()}},CVShapeElement.prototype.renderShape=function(i,s,o,a){var _,$=s.length-1,j;for(j=i,_=$;_>=0;_-=1)s[_].ty==="tr"?(j=o[_].transform,this.renderShapeTransform(i,j)):s[_].ty==="sh"||s[_].ty==="el"||s[_].ty==="rc"||s[_].ty==="sr"?this.renderPath(s[_],o[_]):s[_].ty==="fl"?this.renderFill(s[_],o[_],j):s[_].ty==="st"?this.renderStroke(s[_],o[_],j):s[_].ty==="gf"||s[_].ty==="gs"?this.renderGradientFill(s[_],o[_],j):s[_].ty==="gr"?this.renderShape(j,s[_].it,o[_].it):s[_].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(i,s){if(this._isFirstFrame||s._mdf||i.transforms._mdf){var o=i.trNodes,a=s.paths,_,$,j,_e=a._length;o.length=0;var et=i.transforms.finalTransform;for(j=0;j<_e;j+=1){var tt=a.shapes[j];if(tt&&tt.v){for($=tt._length,_=1;_<$;_+=1)_===1&&o.push({t:"m",p:et.applyToPointArray(tt.v[0][0],tt.v[0][1],0)}),o.push({t:"c",pts:et.applyToTriplePoints(tt.o[_-1],tt.i[_],tt.v[_])});$===1&&o.push({t:"m",p:et.applyToPointArray(tt.v[0][0],tt.v[0][1],0)}),tt.c&&$&&(o.push({t:"c",pts:et.applyToTriplePoints(tt.o[_-1],tt.i[0],tt.v[0])}),o.push({t:"z"}))}}i.trNodes=o}},CVShapeElement.prototype.renderPath=function(i,s){if(i.hd!==!0&&i._shouldRender){var o,a=s.styledShapes.length;for(o=0;o<a;o+=1)this.renderStyledShape(s.styledShapes[o],s.sh)}},CVShapeElement.prototype.renderFill=function(i,s,o){var a=s.style;(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||o._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*o.opacity)},CVShapeElement.prototype.renderGradientFill=function(i,s,o){var a=s.style,_;if(!a.grd||s.g._mdf||s.s._mdf||s.e._mdf||i.t!==1&&(s.h._mdf||s.a._mdf)){var $=this.globalData.canvasContext,j=s.s.v,_e=s.e.v;if(i.t===1)_=$.createLinearGradient(j[0],j[1],_e[0],_e[1]);else{var et=Math.sqrt(Math.pow(j[0]-_e[0],2)+Math.pow(j[1]-_e[1],2)),tt=Math.atan2(_e[1]-j[1],_e[0]-j[0]),rt=s.h.v;rt>=1?rt=.99:rt<=-1&&(rt=-.99);var it=et*rt,nt=Math.cos(tt+s.a.v)*it+j[0],ut=Math.sin(tt+s.a.v)*it+j[1];_=$.createRadialGradient(nt,ut,0,j[0],j[1],et)}var ct,st=i.g.p,dt=s.g.c,ot=1;for(ct=0;ct<st;ct+=1)s.g._hasOpacity&&s.g._collapsable&&(ot=s.g.o[ct*2+1]),_.addColorStop(dt[ct*4]/100,"rgba("+dt[ct*4+1]+","+dt[ct*4+2]+","+dt[ct*4+3]+","+ot+")");a.grd=_}a.coOp=s.o.v*o.opacity},CVShapeElement.prototype.renderStroke=function(i,s,o){var a=s.style,_=s.d;_&&(_._mdf||this._isFirstFrame)&&(a.da=_.dashArray,a.do=_.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||o._opMdf||this._isFirstFrame)&&(a.coOp=s.o.v*o.opacity),(s.w._mdf||this._isFirstFrame)&&(a.wi=s.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(i,s,o){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i.l?i.l.length:0);var s=!1;i.fc?(s=!0,this.values.fill=this.buildColor(i.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var o=!1;i.sc&&(o=!0,this.values.stroke=this.buildColor(i.sc),this.values.sWidth=i.sw);var a=this.globalData.fontManager.getFontByName(i.f),_,$,j=i.l,_e=this.mHelper;this.stroke=o,this.values.fValue=i.finalSize+"px "+this.globalData.fontManager.getFontByName(i.f).fFamily,$=i.finalText.length;var et,tt,rt,it,nt,ut,ct,st,dt,ot,lt=this.data.singleShape,at=i.tr*.001*i.finalSize,ft=0,ht=0,mt=!0,gt=0;for(_=0;_<$;_+=1){et=this.globalData.fontManager.getCharData(i.finalText[_],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),tt=et&&et.data||{},_e.reset(),lt&&j[_].n&&(ft=-at,ht+=i.yOffset,ht+=mt?1:0,mt=!1),nt=tt.shapes?tt.shapes[0].it:[],ct=nt.length,_e.scale(i.finalSize/100,i.finalSize/100),lt&&this.applyTextPropertiesToMatrix(i,_e,j[_].line,ft,ht),dt=createSizedArray(ct-1);var vt=0;for(ut=0;ut<ct;ut+=1)if(nt[ut].ty==="sh"){for(it=nt[ut].ks.k.i.length,st=nt[ut].ks.k,ot=[],rt=1;rt<it;rt+=1)rt===1&&ot.push(_e.applyToX(st.v[0][0],st.v[0][1],0),_e.applyToY(st.v[0][0],st.v[0][1],0)),ot.push(_e.applyToX(st.o[rt-1][0],st.o[rt-1][1],0),_e.applyToY(st.o[rt-1][0],st.o[rt-1][1],0),_e.applyToX(st.i[rt][0],st.i[rt][1],0),_e.applyToY(st.i[rt][0],st.i[rt][1],0),_e.applyToX(st.v[rt][0],st.v[rt][1],0),_e.applyToY(st.v[rt][0],st.v[rt][1],0));ot.push(_e.applyToX(st.o[rt-1][0],st.o[rt-1][1],0),_e.applyToY(st.o[rt-1][0],st.o[rt-1][1],0),_e.applyToX(st.i[0][0],st.i[0][1],0),_e.applyToY(st.i[0][0],st.i[0][1],0),_e.applyToX(st.v[0][0],st.v[0][1],0),_e.applyToY(st.v[0][0],st.v[0][1],0)),dt[vt]=ot,vt+=1}lt&&(ft+=j[_].l,ft+=at),this.textSpans[gt]?this.textSpans[gt].elem=dt:this.textSpans[gt]={elem:dt},gt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var i=this.canvasContext;i.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,o,a,_,$,j,_e=this.textAnimator.renderedLetters,et=this.textProperty.currentData.l;o=et.length;var tt,rt=null,it=null,nt=null,ut,ct,st=this.globalData.renderer;for(s=0;s<o;s+=1)if(!et[s].n){if(tt=_e[s],tt&&(st.save(),st.ctxTransform(tt.p),st.ctxOpacity(tt.o)),this.fill){for(tt&&tt.fc?rt!==tt.fc&&(st.ctxFillStyle(tt.fc),rt=tt.fc):rt!==this.values.fill&&(rt=this.values.fill,st.ctxFillStyle(this.values.fill)),ut=this.textSpans[s].elem,_=ut.length,this.globalData.canvasContext.beginPath(),a=0;a<_;a+=1)for(ct=ut[a],j=ct.length,this.globalData.canvasContext.moveTo(ct[0],ct[1]),$=2;$<j;$+=6)this.globalData.canvasContext.bezierCurveTo(ct[$],ct[$+1],ct[$+2],ct[$+3],ct[$+4],ct[$+5]);this.globalData.canvasContext.closePath(),st.ctxFill()}if(this.stroke){for(tt&&tt.sw?nt!==tt.sw&&(nt=tt.sw,st.ctxLineWidth(tt.sw)):nt!==this.values.sWidth&&(nt=this.values.sWidth,st.ctxLineWidth(this.values.sWidth)),tt&&tt.sc?it!==tt.sc&&(it=tt.sc,st.ctxStrokeStyle(tt.sc)):it!==this.values.stroke&&(it=this.values.stroke,st.ctxStrokeStyle(this.values.stroke)),ut=this.textSpans[s].elem,_=ut.length,this.globalData.canvasContext.beginPath(),a=0;a<_;a+=1)for(ct=ut[a],j=ct.length,this.globalData.canvasContext.moveTo(ct[0],ct[1]),$=2;$<j;$+=6)this.globalData.canvasContext.bezierCurveTo(ct[$],ct[$+1],ct[$+2],ct[$+3],ct[$+4],ct[$+5]);this.globalData.canvasContext.closePath(),st.ctxStroke()}tt&&this.globalData.renderer.restore()}};function CVImageElement(i,s,o){this.assetData=s.getAssetData(i.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var i=createTag("canvas");i.width=this.assetData.w,i.height=this.assetData.h;var s=i.getContext("2d"),o=this.img.width,a=this.img.height,_=o/a,$=this.assetData.w/this.assetData.h,j,_e,et=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;_>$&&et==="xMidYMid slice"||_<$&&et!=="xMidYMid slice"?(_e=a,j=_e*$):(j=o,_e=j/$),s.drawImage(this.img,(o-j)/2,(a-_e)/2,j,_e,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(i,s,o){this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(i){return new CVShapeElement(i,this.globalData,this)},CanvasRendererBase.prototype.createText=function(i){return new CVTextElement(i,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(i){return new CVImageElement(i,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(i){return new CVSolidElement(i,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(i){i[0]===1&&i[1]===0&&i[4]===0&&i[5]===1&&i[12]===0&&i[13]===0||this.canvasContext.transform(i[0],i[1],i[4],i[5],i[12],i[13])},CanvasRendererBase.prototype.ctxOpacity=function(i){this.canvasContext.globalAlpha*=i<0?0:i},CanvasRendererBase.prototype.ctxFillStyle=function(i){this.canvasContext.fillStyle=i},CanvasRendererBase.prototype.ctxStrokeStyle=function(i){this.canvasContext.strokeStyle=i},CanvasRendererBase.prototype.ctxLineWidth=function(i){this.canvasContext.lineWidth=i},CanvasRendererBase.prototype.ctxLineCap=function(i){this.canvasContext.lineCap=i},CanvasRendererBase.prototype.ctxLineJoin=function(i){this.canvasContext.lineJoin=i},CanvasRendererBase.prototype.ctxMiterLimit=function(i){this.canvasContext.miterLimit=i},CanvasRendererBase.prototype.ctxFill=function(i){this.canvasContext.fill(i)},CanvasRendererBase.prototype.ctxFillRect=function(i,s,o,a){this.canvasContext.fillRect(i,s,o,a)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(i){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}i&&(this.globalData.blendMode="source-over"),this.contextData.restore(i)},CanvasRendererBase.prototype.configAnimation=function(i){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var s=this.animationItem.container.style;s.width="100%",s.height="100%";var o="0px 0px 0px";s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,s["-webkit-transform"]=o,s.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=i,this.layers=i.layers,this.transformCanvas={w:i.w,h:i.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(i,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(i.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(i,s){this.reset();var o,a;i?(o=i,a=s,this.canvasContext.canvas.width=o,this.canvasContext.canvas.height=a):(this.animationItem.wrapper&&this.animationItem.container?(o=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight):(o=this.canvasContext.canvas.width,a=this.canvasContext.canvas.height),this.canvasContext.canvas.width=o*this.renderConfig.dpr,this.canvasContext.canvas.height=a*this.renderConfig.dpr);var _,$;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var j=this.renderConfig.preserveAspectRatio.split(" "),_e=j[1]||"meet",et=j[0]||"xMidYMid",tt=et.substr(0,4),rt=et.substr(4);_=o/a,$=this.transformCanvas.w/this.transformCanvas.h,$>_&&_e==="meet"||$<_&&_e==="slice"?(this.transformCanvas.sx=o/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=o/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr)),tt==="xMid"&&($<_&&_e==="meet"||$>_&&_e==="slice")?this.transformCanvas.tx=(o-this.transformCanvas.w*(a/this.transformCanvas.h))/2*this.renderConfig.dpr:tt==="xMax"&&($<_&&_e==="meet"||$>_&&_e==="slice")?this.transformCanvas.tx=(o-this.transformCanvas.w*(a/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,rt==="YMid"&&($>_&&_e==="meet"||$<_&&_e==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(o/this.transformCanvas.w))/2*this.renderConfig.dpr:rt==="YMax"&&($>_&&_e==="meet"||$<_&&_e==="slice")?this.transformCanvas.ty=(a-this.transformCanvas.h*(o/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=o/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var i,s=this.layers?this.layers.length:0;for(i=s-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy&&this.elements[i].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(i,s){if(!(this.renderedFrame===i&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||i===-1)){this.renderedFrame=i,this.globalData.frameNum=i-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=i;var o,a=this.layers.length;for(this.completeLayers||this.checkLayers(i),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].prepareFrame(i-this.layers[o].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),o=a-1;o>=0;o-=1)(this.completeLayers||this.elements[o])&&this.elements[o].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(i){var s=this.elements;if(!(s[i]||this.layers[i].ty===99)){var o=this.createItem(this.layers[i],this,this.globalData);s[i]=o,o.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var i=this.pendingElements.pop();i.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var i,s=15;for(i=0;i<s;i+=1){var o=new CanvasContext;this.stack[i]=o}this._length=s,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var i=this._length*2,s=0;for(s=this._length;s<i;s+=1)this.stack[s]=new CanvasContext;this._length=i},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(i){this.cArrPos-=1;var s=this.stack[this.cArrPos],o=s.transform,a,_=this.cTr.props;for(a=0;a<16;a+=1)_[a]=o[a];if(i){this.nativeContext.restore();var $=this.stack[this.cArrPos+1];this.appliedFillStyle=$.fillStyle,this.appliedStrokeStyle=$.strokeStyle,this.appliedLineWidth=$.lineWidth,this.appliedLineCap=$.lineCap,this.appliedLineJoin=$.lineJoin,this.appliedMiterLimit=$.miterLimit}this.nativeContext.setTransform(o[0],o[1],o[4],o[5],o[12],o[13]),(i||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(i){i&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var o=this.stack[this.cArrPos],a;for(a=0;a<16;a+=1)o.transform[a]=s[a];this.cArrPos+=1;var _=this.stack[this.cArrPos];_.opacity=o.opacity,_.fillStyle=o.fillStyle,_.strokeStyle=o.strokeStyle,_.lineWidth=o.lineWidth,_.lineCap=o.lineCap,_.lineJoin=o.lineJoin,_.miterLimit=o.miterLimit},CVContextData.prototype.setOpacity=function(i){this.stack[this.cArrPos].opacity=i},CVContextData.prototype.setContext=function(i){this.nativeContext=i},CVContextData.prototype.fillStyle=function(i){this.stack[this.cArrPos].fillStyle!==i&&(this.currentFillStyle=i,this.stack[this.cArrPos].fillStyle=i)},CVContextData.prototype.strokeStyle=function(i){this.stack[this.cArrPos].strokeStyle!==i&&(this.currentStrokeStyle=i,this.stack[this.cArrPos].strokeStyle=i)},CVContextData.prototype.lineWidth=function(i){this.stack[this.cArrPos].lineWidth!==i&&(this.currentLineWidth=i,this.stack[this.cArrPos].lineWidth=i)},CVContextData.prototype.lineCap=function(i){this.stack[this.cArrPos].lineCap!==i&&(this.currentLineCap=i,this.stack[this.cArrPos].lineCap=i)},CVContextData.prototype.lineJoin=function(i){this.stack[this.cArrPos].lineJoin!==i&&(this.currentLineJoin=i,this.stack[this.cArrPos].lineJoin=i)},CVContextData.prototype.miterLimit=function(i){this.stack[this.cArrPos].miterLimit!==i&&(this.currentMiterLimit=i,this.stack[this.cArrPos].miterLimit=i)},CVContextData.prototype.transform=function(i){this.transformMat.cloneFromProps(i);var s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var o=s.props;this.nativeContext.setTransform(o[0],o[1],o[4],o[5],o[12],o[13])},CVContextData.prototype.opacity=function(i){var s=this.stack[this.cArrPos].opacity;s*=i<0?0:i,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==i&&(this.nativeContext.globalAlpha=i,this.currentOpacity=i),this.stack[this.cArrPos].opacity=s)},CVContextData.prototype.fill=function(i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(i)},CVContextData.prototype.fillRect=function(i,s,o,a){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(i,s,o,a)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(i,s,o){this.completeLayers=!1,this.layers=i.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(i,s,o),this.tm=i.tm?PropertyFactory.getProp(this,i.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var i=this.canvasContext;i.beginPath(),i.moveTo(0,0),i.lineTo(this.data.w,0),i.lineTo(this.data.w,this.data.h),i.lineTo(0,this.data.h),i.lineTo(0,0),i.clip();var s,o=this.layers.length;for(s=o-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var i,s=this.layers.length;for(i=s-1;i>=0;i-=1)this.elements[i]&&this.elements[i].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(i){return new CVCompElement(i,this.globalData,this)};function CanvasRenderer(i,s){this.animationItem=i,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(i){return new CVCompElement(i,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var o=this.finalTransform.mat.toCSS();s.transform=o,s.webkitTransform=o}this.finalTransform._opMdf&&(s.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(i,s,o){this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var i;this.data.hasMask?(i=createNS("rect"),i.setAttribute("width",this.data.sw),i.setAttribute("height",this.data.sh),i.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(i=createTag("div"),i.style.width=this.data.sw+"px",i.style.height=this.data.sh+"px",i.style.backgroundColor=this.data.sc),this.layerElement.appendChild(i)};function HShapeElement(i,s,o){this.shapes=[],this.shapesData=i.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(i,s,o),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var i;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),i=this.svgElement;else{i=createNS("svg");var s=this.comp.data?this.comp.data:this.globalData.compSize;i.setAttribute("width",s.w),i.setAttribute("height",s.h),i.appendChild(this.shapesContainer),this.layerElement.appendChild(i)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=i},HShapeElement.prototype.getTransformedPoint=function(i,s){var o,a=i.length;for(o=0;o<a;o+=1)s=i[o].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(i,s){var o=i.sh.v,a=i.transformers,_,$=o._length,j,_e,et,tt;if(!($<=1)){for(_=0;_<$-1;_+=1)j=this.getTransformedPoint(a,o.v[_]),_e=this.getTransformedPoint(a,o.o[_]),et=this.getTransformedPoint(a,o.i[_+1]),tt=this.getTransformedPoint(a,o.v[_+1]),this.checkBounds(j,_e,et,tt,s);o.c&&(j=this.getTransformedPoint(a,o.v[_]),_e=this.getTransformedPoint(a,o.o[_]),et=this.getTransformedPoint(a,o.i[0]),tt=this.getTransformedPoint(a,o.v[0]),this.checkBounds(j,_e,et,tt,s))}},HShapeElement.prototype.checkBounds=function(i,s,o,a,_){this.getBoundsOfCurve(i,s,o,a);var $=this.shapeBoundingBox;_.x=bmMin($.left,_.x),_.xMax=bmMax($.right,_.xMax),_.y=bmMin($.top,_.y),_.yMax=bmMax($.bottom,_.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(i,s,o,a){for(var _=[[i[0],a[0]],[i[1],a[1]]],$,j,_e,et,tt,rt,it,nt=0;nt<2;++nt)j=6*i[nt]-12*s[nt]+6*o[nt],$=-3*i[nt]+9*s[nt]-9*o[nt]+3*a[nt],_e=3*s[nt]-3*i[nt],j|=0,$|=0,_e|=0,$===0&&j===0||($===0?(et=-_e/j,et>0&&et<1&&_[nt].push(this.calculateF(et,i,s,o,a,nt))):(tt=j*j-4*_e*$,tt>=0&&(rt=(-j+bmSqrt(tt))/(2*$),rt>0&&rt<1&&_[nt].push(this.calculateF(rt,i,s,o,a,nt)),it=(-j-bmSqrt(tt))/(2*$),it>0&&it<1&&_[nt].push(this.calculateF(it,i,s,o,a,nt)))));this.shapeBoundingBox.left=bmMin.apply(null,_[0]),this.shapeBoundingBox.top=bmMin.apply(null,_[1]),this.shapeBoundingBox.right=bmMax.apply(null,_[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,_[1])},HShapeElement.prototype.calculateF=function(i,s,o,a,_,$){return bmPow(1-i,3)*s[$]+3*bmPow(1-i,2)*i*o[$]+3*(1-i)*bmPow(i,2)*a[$]+bmPow(i,3)*_[$]},HShapeElement.prototype.calculateBoundingBox=function(i,s){var o,a=i.length;for(o=0;o<a;o+=1)i[o]&&i[o].sh?this.calculateShapeBoundingBox(i[o],s):i[o]&&i[o].it?this.calculateBoundingBox(i[o].it,s):i[o]&&i[o].style&&i[o].w&&this.expandStrokeBoundingBox(i[o].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(i,s){var o=0;if(i.keyframes){for(var a=0;a<i.keyframes.length;a+=1){var _=i.keyframes[a].s;_>o&&(o=_)}o*=i.mult}else o=i.v*i.mult;s.x-=o,s.xMax+=o,s.y-=o,s.yMax+=o},HShapeElement.prototype.currentBoxContains=function(i){return this.currentBBox.x<=i.x&&this.currentBBox.y<=i.y&&this.currentBBox.width+this.currentBBox.x>=i.x+i.width&&this.currentBBox.height+this.currentBBox.y>=i.y+i.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var i=this.tempBoundingBox,s=999999;if(i.x=s,i.xMax=-s,i.y=s,i.yMax=-s,this.calculateBoundingBox(this.itemsData,i),i.width=i.xMax<i.x?0:i.xMax-i.x,i.height=i.yMax<i.y?0:i.yMax-i.y,this.currentBoxContains(i))return;var o=!1;if(this.currentBBox.w!==i.width&&(this.currentBBox.w=i.width,this.shapeCont.setAttribute("width",i.width),o=!0),this.currentBBox.h!==i.height&&(this.currentBBox.h=i.height,this.shapeCont.setAttribute("height",i.height),o=!0),o||this.currentBBox.x!==i.x||this.currentBBox.y!==i.y){this.currentBBox.w=i.width,this.currentBBox.h=i.height,this.currentBBox.x=i.x,this.currentBBox.y=i.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var a=this.shapeCont.style,_="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=_,a.webkitTransform=_}}};function HTextElement(i,s,o){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var i=createNS("g");this.maskedElement.appendChild(i),this.innerElem=i}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i.l?i.l.length:0);var s=this.innerElem.style,o=i.fc?this.buildColor(i.fc):"rgba(0,0,0,0)";s.fill=o,s.color=o,i.sc&&(s.stroke=this.buildColor(i.sc),s.strokeWidth=i.sw+"px");var a=this.globalData.fontManager.getFontByName(i.f);if(!this.globalData.fontManager.chars)if(s.fontSize=i.finalSize+"px",s.lineHeight=i.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{s.fontFamily=a.fFamily;var _=i.fWeight,$=i.fStyle;s.fontStyle=$,s.fontWeight=_}var j,_e,et=i.l;_e=et.length;var tt,rt,it,nt=this.mHelper,ut,ct="",st=0;for(j=0;j<_e;j+=1){if(this.globalData.fontManager.chars?(this.textPaths[st]?tt=this.textPaths[st]:(tt=createNS("path"),tt.setAttribute("stroke-linecap",lineCapEnum[1]),tt.setAttribute("stroke-linejoin",lineJoinEnum[2]),tt.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[st]?(rt=this.textSpans[st],it=rt.children[0]):(rt=createTag("div"),rt.style.lineHeight=0,it=createNS("svg"),it.appendChild(tt),styleDiv(rt)))):this.isMasked?tt=this.textPaths[st]?this.textPaths[st]:createNS("text"):this.textSpans[st]?(rt=this.textSpans[st],tt=this.textPaths[st]):(rt=createTag("span"),styleDiv(rt),tt=createTag("span"),styleDiv(tt),rt.appendChild(tt)),this.globalData.fontManager.chars){var dt=this.globalData.fontManager.getCharData(i.finalText[j],a.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily),ot;if(dt?ot=dt.data:ot=null,nt.reset(),ot&&ot.shapes&&ot.shapes.length&&(ut=ot.shapes[0].it,nt.scale(i.finalSize/100,i.finalSize/100),ct=this.createPathShape(nt,ut),tt.setAttribute("d",ct)),this.isMasked)this.innerElem.appendChild(tt);else{if(this.innerElem.appendChild(rt),ot&&ot.shapes){document.body.appendChild(it);var lt=it.getBBox();it.setAttribute("width",lt.width+2),it.setAttribute("height",lt.height+2),it.setAttribute("viewBox",lt.x-1+" "+(lt.y-1)+" "+(lt.width+2)+" "+(lt.height+2));var at=it.style,ft="translate("+(lt.x-1)+"px,"+(lt.y-1)+"px)";at.transform=ft,at.webkitTransform=ft,et[j].yOffset=lt.y-1}else it.setAttribute("width",1),it.setAttribute("height",1);rt.appendChild(it)}}else if(tt.textContent=et[j].val,tt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(tt);else{this.innerElem.appendChild(rt);var ht=tt.style,mt="translate3d(0,"+-i.finalSize/1.2+"px,0)";ht.transform=mt,ht.webkitTransform=mt}this.isMasked?this.textSpans[st]=tt:this.textSpans[st]=rt,this.textSpans[st].style.display="block",this.textPaths[st]=tt,st+=1}for(;st<this.textSpans.length;)this.textSpans[st].style.display="none",st+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var i;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),i=this.svgElement.style;var s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";i.transform=s,i.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var o,a,_=0,$=this.textAnimator.renderedLetters,j=this.textProperty.currentData.l;a=j.length;var _e,et,tt;for(o=0;o<a;o+=1)j[o].n?_+=1:(et=this.textSpans[o],tt=this.textPaths[o],_e=$[_],_+=1,_e._mdf.m&&(this.isMasked?et.setAttribute("transform",_e.m):(et.style.webkitTransform=_e.m,et.style.transform=_e.m)),et.style.opacity=_e.o,_e.sw&&_e._mdf.sw&&tt.setAttribute("stroke-width",_e.sw),_e.sc&&_e._mdf.sc&&tt.setAttribute("stroke",_e.sc),_e.fc&&_e._mdf.fc&&(tt.setAttribute("fill",_e.fc),tt.style.color=_e.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var rt=this.innerElem.getBBox();this.currentBBox.w!==rt.width&&(this.currentBBox.w=rt.width,this.svgElement.setAttribute("width",rt.width)),this.currentBBox.h!==rt.height&&(this.currentBBox.h=rt.height,this.svgElement.setAttribute("height",rt.height));var it=1;if(this.currentBBox.w!==rt.width+it*2||this.currentBBox.h!==rt.height+it*2||this.currentBBox.x!==rt.x-it||this.currentBBox.y!==rt.y-it){this.currentBBox.w=rt.width+it*2,this.currentBBox.h=rt.height+it*2,this.currentBBox.x=rt.x-it,this.currentBBox.y=rt.y-it,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),i=this.svgElement.style;var nt="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=nt,i.webkitTransform=nt}}}};function HCameraElement(i,s,o){this.initFrame(),this.initBaseData(i,s,o),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,i.pe,0,0,this),i.ks.p.s?(this.px=a(this,i.ks.p.x,1,0,this),this.py=a(this,i.ks.p.y,1,0,this),this.pz=a(this,i.ks.p.z,1,0,this)):this.p=a(this,i.ks.p,1,0,this),i.ks.a&&(this.a=a(this,i.ks.a,1,0,this)),i.ks.or.k.length&&i.ks.or.k[0].to){var _,$=i.ks.or.k.length;for(_=0;_<$;_+=1)i.ks.or.k[_].to=null,i.ks.or.k[_].ti=null}this.or=a(this,i.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,i.ks.rx,0,degToRads,this),this.ry=a(this,i.ks.ry,0,degToRads,this),this.rz=a(this,i.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var i,s=this.comp.threeDElements.length,o,a,_;for(i=0;i<s;i+=1)if(o=this.comp.threeDElements[i],o.type==="3d"){a=o.perspectiveElem.style,_=o.container.style;var $=this.pe.v+"px",j="0px 0px 0px",_e="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=$,a.webkitPerspective=$,_.transformOrigin=j,_.mozTransformOrigin=j,_.webkitTransformOrigin=j,a.transform=_e,a.webkitTransform=_e}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var i=this._isFirstFrame,s,o;if(this.hierarchy)for(o=this.hierarchy.length,s=0;s<o;s+=1)i=this.hierarchy[s].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(o=this.hierarchy.length-1,s=o;s>=0;s-=1){var a=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var _;this.p?_=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:_=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var $=Math.sqrt(Math.pow(_[0],2)+Math.pow(_[1],2)+Math.pow(_[2],2)),j=[_[0]/$,_[1]/$,_[2]/$],_e=Math.sqrt(j[2]*j[2]+j[0]*j[0]),et=Math.atan2(j[1],_e),tt=Math.atan2(j[0],-j[2]);this.mat.rotateY(tt).rotateX(-et)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var rt=!this._prevMat.equals(this.mat);if((rt||this.pe._mdf)&&this.comp.threeDElements){o=this.comp.threeDElements.length;var it,nt,ut;for(s=0;s<o;s+=1)if(it=this.comp.threeDElements[s],it.type==="3d"){if(rt){var ct=this.mat.toCSS();ut=it.container.style,ut.transform=ct,ut.webkitTransform=ct}this.pe._mdf&&(nt=it.perspectiveElem.style,nt.perspective=this.pe.v+"px",nt.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(i){this.prepareProperties(i,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(i,s,o){this.assetData=s.getAssetData(i.refId),this.initElement(i,s,o)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var i=this.globalData.getAssetsPath(this.assetData),s=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(s),s.crossOrigin="anonymous",s.src=i,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(i,s){this.animationItem=i,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var i=this.pendingElements.pop();i.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(i,s){var o=i.getBaseElement();if(o){var a=this.layers[s];if(!a.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(o,s);else{for(var _=0,$,j,_e;_<s;)this.elements[_]&&this.elements[_]!==!0&&this.elements[_].getBaseElement&&(j=this.elements[_],_e=this.layers[_].ddd?this.getThreeDContainerByPos(_):j.getBaseElement(),$=_e||$),_+=1;$?(!a.ddd||!this.supports3d)&&this.layerElement.insertBefore(o,$):(!a.ddd||!this.supports3d)&&this.layerElement.appendChild(o)}else this.addTo3dContainer(o,s)}},HybridRendererBase.prototype.createShape=function(i){return this.supports3d?new HShapeElement(i,this.globalData,this):new SVGShapeElement(i,this.globalData,this)},HybridRendererBase.prototype.createText=function(i){return this.supports3d?new HTextElement(i,this.globalData,this):new SVGTextLottieElement(i,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(i){return this.camera=new HCameraElement(i,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(i){return this.supports3d?new HImageElement(i,this.globalData,this):new IImageElement(i,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(i){return this.supports3d?new HSolidElement(i,this.globalData,this):new ISolidElement(i,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(i){for(var s=0,o=this.threeDElements.length;s<o;){if(this.threeDElements[s].startPos<=i&&this.threeDElements[s].endPos>=i)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(i,s){var o=createTag("div"),a,_;styleDiv(o);var $=createTag("div");if(styleDiv($),s==="3d"){a=o.style,a.width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var j="50% 50%";a.webkitTransformOrigin=j,a.mozTransformOrigin=j,a.transformOrigin=j,_=$.style;var _e="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";_.transform=_e,_.webkitTransform=_e}o.appendChild($);var et={container:$,perspectiveElem:o,startPos:i,endPos:i,type:s};return this.threeDElements.push(et),et},HybridRendererBase.prototype.build3dContainers=function(){var i,s=this.layers.length,o,a="";for(i=0;i<s;i+=1)this.layers[i].ddd&&this.layers[i].ty!==3?(a!=="3d"&&(a="3d",o=this.createThreeDContainer(i,"3d")),o.endPos=Math.max(o.endPos,i)):(a!=="2d"&&(a="2d",o=this.createThreeDContainer(i,"2d")),o.endPos=Math.max(o.endPos,i));for(s=this.threeDElements.length,i=s-1;i>=0;i-=1)this.resizerElem.appendChild(this.threeDElements[i].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(i,s){for(var o=0,a=this.threeDElements.length;o<a;){if(s<=this.threeDElements[o].endPos){for(var _=this.threeDElements[o].startPos,$;_<s;)this.elements[_]&&this.elements[_].getBaseElement&&($=this.elements[_].getBaseElement()),_+=1;$?this.threeDElements[o].container.insertBefore(i,$):this.threeDElements[o].container.appendChild(i);break}o+=1}},HybridRendererBase.prototype.configAnimation=function(i){var s=createTag("div"),o=this.animationItem.wrapper,a=s.style;a.width=i.w+"px",a.height=i.h+"px",this.resizerElem=s,styleDiv(s),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),o.appendChild(s),a.overflow="hidden";var _=createNS("svg");_.setAttribute("width","1"),_.setAttribute("height","1"),styleDiv(_),this.resizerElem.appendChild(_);var $=createNS("defs");_.appendChild($),this.data=i,this.setupGlobalData(i,_),this.globalData.defs=$,this.layers=i.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var i,s=this.layers?this.layers.length:0;for(i=0;i<s;i+=1)this.elements[i]&&this.elements[i].destroy&&this.elements[i].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=i/s,a=this.globalData.compSize.w/this.globalData.compSize.h,_,$,j,_e;a>o?(_=i/this.globalData.compSize.w,$=i/this.globalData.compSize.w,j=0,_e=(s-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(_=s/this.globalData.compSize.h,$=s/this.globalData.compSize.h,j=(i-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,_e=0);var et=this.resizerElem.style;et.webkitTransform="matrix3d("+_+",0,0,0,0,"+$+",0,0,0,0,1,0,"+j+","+_e+",0,1)",et.transform=et.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var i=this.globalData.compSize.w,s=this.globalData.compSize.h,o,a=this.threeDElements.length;for(o=0;o<a;o+=1){var _=this.threeDElements[o].perspectiveElem.style;_.webkitPerspective=Math.sqrt(Math.pow(i,2)+Math.pow(s,2))+"px",_.perspective=_.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(i){var s,o=i.length,a=createTag("div");for(s=0;s<o;s+=1)if(i[s].xt){var _=this.createComp(i[s],a,this.globalData.comp,null);_.initExpressions(),this.globalData.projectInterface.registerComposition(_)}};function HCompElement(i,s,o){this.layers=i.layers,this.supports3d=!i.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(i,s,o),this.tm=i.tm?PropertyFactory.getProp(this,i.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(i,s){for(var o=0,a;o<s;)this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o].getBaseElement()),o+=1;a?this.layerElement.insertBefore(i,a):this.layerElement.appendChild(i)},HCompElement.prototype.createComp=function(i){return this.supports3d?new HCompElement(i,this.globalData,this):new SVGCompElement(i,this.globalData,this)};function HybridRenderer(i,s){this.animationItem=i,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(i){return this.supports3d?new HCompElement(i,this.globalData,this):new SVGCompElement(i,this.globalData,this)};var CompExpressionInterface=function(){return function(i){function s(o){for(var a=0,_=i.layers.length;a<_;){if(i.layers[a].nm===o||i.layers[a].ind===o)return i.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(s,"_name",{value:i.data.nm}),s.layer=s,s.pixelAspect=1,s.height=i.data.h||i.globalData.compSize.h,s.width=i.data.w||i.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/i.globalData.frameRate,s.displayStartTime=0,s.numLayers=i.layers.length,s}}();function _typeof$2(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(o){return typeof o}:_typeof$2=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$2(i)}function seedRandom(i,s){var o=this,a=256,_=6,$=52,j="random",_e=s.pow(a,_),et=s.pow(2,$),tt=et*2,rt=a-1,it;function nt(at,ft,ht){var mt=[];ft=ft===!0?{entropy:!0}:ft||{};var gt=dt(st(ft.entropy?[at,lt(i)]:at===null?ot():at,3),mt),vt=new ut(mt),St=function(){for(var Pt=vt.g(_),Rt=_e,It=0;Pt<et;)Pt=(Pt+It)*a,Rt*=a,It=vt.g(1);for(;Pt>=tt;)Pt/=2,Rt/=2,It>>>=1;return(Pt+It)/Rt};return St.int32=function(){return vt.g(4)|0},St.quick=function(){return vt.g(4)/4294967296},St.double=St,dt(lt(vt.S),i),(ft.pass||ht||function(wt,Pt,Rt,It){return It&&(It.S&&ct(It,vt),wt.state=function(){return ct(vt,{})}),Rt?(s[j]=wt,Pt):wt})(St,gt,"global"in ft?ft.global:this==s,ft.state)}s["seed"+j]=nt;function ut(at){var ft,ht=at.length,mt=this,gt=0,vt=mt.i=mt.j=0,St=mt.S=[];for(ht||(at=[ht++]);gt<a;)St[gt]=gt++;for(gt=0;gt<a;gt++)St[gt]=St[vt=rt&vt+at[gt%ht]+(ft=St[gt])],St[vt]=ft;mt.g=function(wt){for(var Pt,Rt=0,It=mt.i,jt=mt.j,Mt=mt.S;wt--;)Pt=Mt[It=rt&It+1],Rt=Rt*a+Mt[rt&(Mt[It]=Mt[jt=rt&jt+Pt])+(Mt[jt]=Pt)];return mt.i=It,mt.j=jt,Rt}}function ct(at,ft){return ft.i=at.i,ft.j=at.j,ft.S=at.S.slice(),ft}function st(at,ft){var ht=[],mt=_typeof$2(at),gt;if(ft&&mt=="object")for(gt in at)try{ht.push(st(at[gt],ft-1))}catch{}return ht.length?ht:mt=="string"?at:at+"\0"}function dt(at,ft){for(var ht=at+"",mt,gt=0;gt<ht.length;)ft[rt&gt]=rt&(mt^=ft[rt&gt]*19)+ht.charCodeAt(gt++);return lt(ft)}function ot(){try{var at=new Uint8Array(a);return(o.crypto||o.msCrypto).getRandomValues(at),lt(at)}catch{var ft=o.navigator,ht=ft&&ft.plugins;return[+new Date,o,ht,o.screen,lt(i)]}}function lt(at){return String.fromCharCode.apply(0,at)}dt(s.random(),i)}function initialize$2(i){seedRandom([],i)}var propTypes={SHAPE:"shape"};function _typeof$1(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(o){return typeof o}:_typeof$1=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof$1(i)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(i){return i.constructor===Array||i.constructor===Float32Array}function isNumerable(i,s){return i==="number"||s instanceof Number||i==="boolean"||i==="string"}function $bm_neg(i){var s=_typeof$1(i);if(s==="number"||i instanceof Number||s==="boolean")return-i;if($bm_isInstanceOfArray(i)){var o,a=i.length,_=[];for(o=0;o<a;o+=1)_[o]=-i[o];return _}return i.propType?i.v:-i}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(i,s){var o=_typeof$1(i),a=_typeof$1(s);if(isNumerable(o,i)&&isNumerable(a,s)||o==="string"||a==="string")return i+s;if($bm_isInstanceOfArray(i)&&isNumerable(a,s))return i=i.slice(0),i[0]+=s,i;if(isNumerable(o,i)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=i+s[0],s;if($bm_isInstanceOfArray(i)&&$bm_isInstanceOfArray(s)){for(var _=0,$=i.length,j=s.length,_e=[];_<$||_<j;)(typeof i[_]=="number"||i[_]instanceof Number)&&(typeof s[_]=="number"||s[_]instanceof Number)?_e[_]=i[_]+s[_]:_e[_]=s[_]===void 0?i[_]:i[_]||s[_],_+=1;return _e}return 0}var add=sum;function sub(i,s){var o=_typeof$1(i),a=_typeof$1(s);if(isNumerable(o,i)&&isNumerable(a,s))return o==="string"&&(i=parseInt(i,10)),a==="string"&&(s=parseInt(s,10)),i-s;if($bm_isInstanceOfArray(i)&&isNumerable(a,s))return i=i.slice(0),i[0]-=s,i;if(isNumerable(o,i)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=i-s[0],s;if($bm_isInstanceOfArray(i)&&$bm_isInstanceOfArray(s)){for(var _=0,$=i.length,j=s.length,_e=[];_<$||_<j;)(typeof i[_]=="number"||i[_]instanceof Number)&&(typeof s[_]=="number"||s[_]instanceof Number)?_e[_]=i[_]-s[_]:_e[_]=s[_]===void 0?i[_]:i[_]||s[_],_+=1;return _e}return 0}function mul(i,s){var o=_typeof$1(i),a=_typeof$1(s),_;if(isNumerable(o,i)&&isNumerable(a,s))return i*s;var $,j;if($bm_isInstanceOfArray(i)&&isNumerable(a,s)){for(j=i.length,_=createTypedArray("float32",j),$=0;$<j;$+=1)_[$]=i[$]*s;return _}if(isNumerable(o,i)&&$bm_isInstanceOfArray(s)){for(j=s.length,_=createTypedArray("float32",j),$=0;$<j;$+=1)_[$]=i*s[$];return _}return 0}function div(i,s){var o=_typeof$1(i),a=_typeof$1(s),_;if(isNumerable(o,i)&&isNumerable(a,s))return i/s;var $,j;if($bm_isInstanceOfArray(i)&&isNumerable(a,s)){for(j=i.length,_=createTypedArray("float32",j),$=0;$<j;$+=1)_[$]=i[$]/s;return _}if(isNumerable(o,i)&&$bm_isInstanceOfArray(s)){for(j=s.length,_=createTypedArray("float32",j),$=0;$<j;$+=1)_[$]=i/s[$];return _}return 0}function mod(i,s){return typeof i=="string"&&(i=parseInt(i,10)),typeof s=="string"&&(s=parseInt(s,10)),i%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(i,s,o){if(s>o){var a=o;o=s,s=a}return Math.min(Math.max(i,s),o)}function radiansToDegrees(i){return i/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(i){return i*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(i,s){if(typeof i=="number"||i instanceof Number)return s=s||0,Math.abs(i-s);s||(s=helperLengthArray);var o,a=Math.min(i.length,s.length),_=0;for(o=0;o<a;o+=1)_+=Math.pow(s[o]-i[o],2);return Math.sqrt(_)}function normalize(i){return div(i,length(i))}function rgbToHsl(i){var s=i[0],o=i[1],a=i[2],_=Math.max(s,o,a),$=Math.min(s,o,a),j,_e,et=(_+$)/2;if(_===$)j=0,_e=0;else{var tt=_-$;switch(_e=et>.5?tt/(2-_-$):tt/(_+$),_){case s:j=(o-a)/tt+(o<a?6:0);break;case o:j=(a-s)/tt+2;break;case a:j=(s-o)/tt+4;break}j/=6}return[j,_e,et,i[3]]}function hue2rgb(i,s,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?i+(s-i)*6*o:o<1/2?s:o<2/3?i+(s-i)*(2/3-o)*6:i}function hslToRgb(i){var s=i[0],o=i[1],a=i[2],_,$,j;if(o===0)_=a,j=a,$=a;else{var _e=a<.5?a*(1+o):a+o-a*o,et=2*a-_e;_=hue2rgb(et,_e,s+1/3),$=hue2rgb(et,_e,s),j=hue2rgb(et,_e,s-1/3)}return[_,$,j,i[3]]}function linear(i,s,o,a,_){if((a===void 0||_===void 0)&&(a=s,_=o,s=0,o=1),o<s){var $=o;o=s,s=$}if(i<=s)return a;if(i>=o)return _;var j=o===s?0:(i-s)/(o-s);if(!a.length)return a+(_-a)*j;var _e,et=a.length,tt=createTypedArray("float32",et);for(_e=0;_e<et;_e+=1)tt[_e]=a[_e]+(_[_e]-a[_e])*j;return tt}function random(i,s){if(s===void 0&&(i===void 0?(i=0,s=1):(s=i,i=void 0)),s.length){var o,a=s.length;i||(i=createTypedArray("float32",a));var _=createTypedArray("float32",a),$=BMMath.random();for(o=0;o<a;o+=1)_[o]=i[o]+$*(s[o]-i[o]);return _}i===void 0&&(i=0);var j=BMMath.random();return i+j*(s-i)}function createPath(i,s,o,a){var _,$=i.length,j=shapePool.newElement();j.setPathData(!!a,$);var _e=[0,0],et,tt;for(_=0;_<$;_+=1)et=s&&s[_]?s[_]:_e,tt=o&&o[_]?o[_]:_e,j.setTripleAt(i[_][0],i[_][1],tt[0]+i[_][0],tt[1]+i[_][1],et[0]+i[_][0],et[1]+i[_][1],_,!0);return j}function initiateExpression(elem,data,property){function noOp(i){return i}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function i(s,o){var a,_,$=this.pv.length?this.pv.length:1,j=createTypedArray("float32",$);s=5;var _e=Math.floor(time*s);for(a=0,_=0;a<_e;){for(_=0;_<$;_+=1)j[_]+=-o+o*2*BMMath.random();a+=1}var et=time*s,tt=et-Math.floor(et),rt=createTypedArray("float32",$);if($>1){for(_=0;_<$;_+=1)rt[_]=this.pv[_]+j[_]+(-o+o*2*BMMath.random())*tt;return rt}return this.pv+j[0]+(-o+o*2*BMMath.random())*tt}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(i,s){return loopIn(i,s,!0)}function loopOutDuration(i,s){return loopOut(i,s,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(i,s){var o=[s[0]-i[0],s[1]-i[1],s[2]-i[2]],a=Math.atan2(o[0],Math.sqrt(o[1]*o[1]+o[2]*o[2]))/degToRads,_=-Math.atan2(o[1],o[2])/degToRads;return[_,a,0]}function easeOut(i,s,o,a,_){return applyEase(easeOutBez,i,s,o,a,_)}function easeIn(i,s,o,a,_){return applyEase(easeInBez,i,s,o,a,_)}function ease(i,s,o,a,_){return applyEase(easeInOutBez,i,s,o,a,_)}function applyEase(i,s,o,a,_,$){_===void 0?(_=o,$=a):s=(s-o)/(a-o),s>1?s=1:s<0&&(s=0);var j=i(s);if($bm_isInstanceOfArray(_)){var _e,et=_.length,tt=createTypedArray("float32",et);for(_e=0;_e<et;_e+=1)tt[_e]=($[_e]-_[_e])*j+_[_e];return tt}return($-_)*j+_}function nearestKey(i){var s,o=data.k.length,a,_;if(!data.k.length||typeof data.k[0]=="number")a=0,_=0;else if(a=-1,i*=elem.comp.globalData.frameRate,i<data.k[0].t)a=1,_=data.k[0].t;else{for(s=0;s<o-1;s+=1)if(i===data.k[s].t){a=s+1,_=data.k[s].t;break}else if(i>data.k[s].t&&i<data.k[s+1].t){i-data.k[s].t>data.k[s+1].t-i?(a=s+2,_=data.k[s+1].t):(a=s+1,_=data.k[s].t);break}a===-1&&(a=s+1,_=data.k[s].t)}var $={};return $.index=a,$.time=_/elem.comp.globalData.frameRate,$}function key(i){var s,o,a;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+i);i-=1,s={time:data.k[i].t/elem.comp.globalData.frameRate,value:[]};var _=Object.prototype.hasOwnProperty.call(data.k[i],"s")?data.k[i].s:data.k[i-1].e;for(a=_.length,o=0;o<a;o+=1)s[o]=_[o],s.value[o]=_[o];return s}function framesToTime(i,s){return s||(s=elem.comp.globalData.frameRate),i/s}function timeToFrames(i,s){return!i&&i!==0&&(i=time),s||(s=elem.comp.globalData.frameRate),i*s}function seedRandom(i){BMMath.seedrandom(randSeed+i)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(i,s){return typeof value=="string"?s===void 0?value.substring(i):value.substring(i,s):""}function substr(i,s){return typeof value=="string"?s===void 0?value.substr(i):value.substr(i,s):""}function posterizeTime(i){time=i===0?0:Math.floor(time*i)/i,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(i){return value=i,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var i={};i.initExpressions=s,i.resetFrame=ExpressionManager.resetFrame;function s(o){var a=0,_=[];function $(){a+=1}function j(){a-=1,a===0&&et()}function _e(tt){_.indexOf(tt)===-1&&_.push(tt)}function et(){var tt,rt=_.length;for(tt=0;tt<rt;tt+=1)_[tt].release();_.length=0}o.renderer.compInterface=CompExpressionInterface(o.renderer),o.renderer.globalData.projectInterface.registerComposition(o.renderer),o.renderer.globalData.pushExpression=$,o.renderer.globalData.popExpression=j,o.renderer.globalData.registerExpressionProperty=_e}return i}(),MaskManagerInterface=function(){function i(o,a){this._mask=o,this._data=a}Object.defineProperty(i.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(i.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var s=function(a){var _=createSizedArray(a.viewData.length),$,j=a.viewData.length;for($=0;$<j;$+=1)_[$]=new i(a.viewData[$],a.masksProperties[$]);var _e=function(tt){for($=0;$<j;){if(a.masksProperties[$].nm===tt)return _[$];$+=1}return null};return _e};return s}(),ExpressionPropertyInterface=function(){var i={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function o(j,_e,et){Object.defineProperty(j,"velocity",{get:function(){return _e.getVelocityAtTime(_e.comp.currentFrame)}}),j.numKeys=_e.keyframes?_e.keyframes.length:0,j.key=function(tt){if(!j.numKeys)return 0;var rt="";"s"in _e.keyframes[tt-1]?rt=_e.keyframes[tt-1].s:"e"in _e.keyframes[tt-2]?rt=_e.keyframes[tt-2].e:rt=_e.keyframes[tt-2].s;var it=et==="unidimensional"?new Number(rt):Object.assign({},rt);return it.time=_e.keyframes[tt-1].t/_e.elem.comp.globalData.frameRate,it.value=et==="unidimensional"?rt[0]:rt,it},j.valueAtTime=_e.getValueAtTime,j.speedAtTime=_e.getSpeedAtTime,j.velocityAtTime=_e.getVelocityAtTime,j.propertyGroup=_e.propertyGroup}function a(j){(!j||!("pv"in j))&&(j=i);var _e=1/j.mult,et=j.pv*_e,tt=new Number(et);return tt.value=et,o(tt,j,"unidimensional"),function(){return j.k&&j.getValue(),et=j.v*_e,tt.value!==et&&(tt=new Number(et),tt.value=et,o(tt,j,"unidimensional")),tt}}function _(j){(!j||!("pv"in j))&&(j=s);var _e=1/j.mult,et=j.data&&j.data.l||j.pv.length,tt=createTypedArray("float32",et),rt=createTypedArray("float32",et);return tt.value=rt,o(tt,j,"multidimensional"),function(){j.k&&j.getValue();for(var it=0;it<et;it+=1)rt[it]=j.v[it]*_e,tt[it]=rt[it];return tt}}function $(){return i}return function(j){return j?j.propType==="unidimensional"?a(j):_(j):$}}(),TransformExpressionInterface=function(){return function(i){function s(j){switch(j){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(i.r||i.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(i.rz||i.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(i.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(i.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(i.s)});var o,a,_,$;return i.p?$=ExpressionPropertyInterface(i.p):(o=ExpressionPropertyInterface(i.px),a=ExpressionPropertyInterface(i.py),i.pz&&(_=ExpressionPropertyInterface(i.pz))),Object.defineProperty(s,"position",{get:function(){return i.p?$():[o(),a(),_?_():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(i.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(i.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(i.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(i.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(i.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(i.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(i.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(i.or)}),s}}(),LayerExpressionInterface=function(){function i(tt){var rt=new Matrix;if(tt!==void 0){var it=this._elem.finalTransform.mProp.getValueAtTime(tt);it.clone(rt)}else{var nt=this._elem.finalTransform.mProp;nt.applyToMatrix(rt)}return rt}function s(tt,rt){var it=this.getMatrix(rt);return it.props[12]=0,it.props[13]=0,it.props[14]=0,this.applyPoint(it,tt)}function o(tt,rt){var it=this.getMatrix(rt);return this.applyPoint(it,tt)}function a(tt,rt){var it=this.getMatrix(rt);return it.props[12]=0,it.props[13]=0,it.props[14]=0,this.invertPoint(it,tt)}function _(tt,rt){var it=this.getMatrix(rt);return this.invertPoint(it,tt)}function $(tt,rt){if(this._elem.hierarchy&&this._elem.hierarchy.length){var it,nt=this._elem.hierarchy.length;for(it=0;it<nt;it+=1)this._elem.hierarchy[it].finalTransform.mProp.applyToMatrix(tt)}return tt.applyToPointArray(rt[0],rt[1],rt[2]||0)}function j(tt,rt){if(this._elem.hierarchy&&this._elem.hierarchy.length){var it,nt=this._elem.hierarchy.length;for(it=0;it<nt;it+=1)this._elem.hierarchy[it].finalTransform.mProp.applyToMatrix(tt)}return tt.inversePoint(rt)}function _e(tt){var rt=new Matrix;if(rt.reset(),this._elem.finalTransform.mProp.applyToMatrix(rt),this._elem.hierarchy&&this._elem.hierarchy.length){var it,nt=this._elem.hierarchy.length;for(it=0;it<nt;it+=1)this._elem.hierarchy[it].finalTransform.mProp.applyToMatrix(rt);return rt.inversePoint(tt)}return rt.inversePoint(tt)}function et(){return[1,1,1,1]}return function(tt){var rt;function it(st){ut.mask=new MaskManagerInterface(st,tt)}function nt(st){ut.effect=st}function ut(st){switch(st){case"ADBE Root Vectors Group":case"Contents":case 2:return ut.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return rt;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return ut.effect;case"ADBE Text Properties":return ut.textInterface;default:return null}}ut.getMatrix=i,ut.invertPoint=j,ut.applyPoint=$,ut.toWorld=o,ut.toWorldVec=s,ut.fromWorld=_,ut.fromWorldVec=a,ut.toComp=o,ut.fromComp=_e,ut.sampleImage=et,ut.sourceRectAtTime=tt.sourceRectAtTime.bind(tt),ut._elem=tt,rt=TransformExpressionInterface(tt.finalTransform.mProp);var ct=getDescriptor(rt,"anchorPoint");return Object.defineProperties(ut,{hasParent:{get:function(){return tt.hierarchy.length}},parent:{get:function(){return tt.hierarchy[0].layerInterface}},rotation:getDescriptor(rt,"rotation"),scale:getDescriptor(rt,"scale"),position:getDescriptor(rt,"position"),opacity:getDescriptor(rt,"opacity"),anchorPoint:ct,anchor_point:ct,transform:{get:function(){return rt}},active:{get:function(){return tt.isInRange}}}),ut.startTime=tt.data.st,ut.index=tt.data.ind,ut.source=tt.data.refId,ut.height=tt.data.ty===0?tt.data.h:100,ut.width=tt.data.ty===0?tt.data.w:100,ut.inPoint=tt.data.ip/tt.comp.globalData.frameRate,ut.outPoint=tt.data.op/tt.comp.globalData.frameRate,ut._name=tt.data.nm,ut.registerMaskInterface=it,ut.registerEffectsInterface=nt,ut}}(),propertyGroupFactory=function(){return function(i,s){return function(o){return o=o===void 0?1:o,o<=0?i:s(o-1)}}}(),PropertyInterface=function(){return function(i,s){var o={_name:i};function a(_){return _=_===void 0?1:_,_<=0?o:s(_-1)}return a}}(),EffectsExpressionInterface=function(){var i={createEffectsInterface:s};function s(_,$){if(_.effectsManager){var j=[],_e=_.data.ef,et,tt=_.effectsManager.effectElements.length;for(et=0;et<tt;et+=1)j.push(o(_e[et],_.effectsManager.effectElements[et],$,_));var rt=_.data.ef||[],it=function(ut){for(et=0,tt=rt.length;et<tt;){if(ut===rt[et].nm||ut===rt[et].mn||ut===rt[et].ix)return j[et];et+=1}return null};return Object.defineProperty(it,"numProperties",{get:function(){return rt.length}}),it}return null}function o(_,$,j,_e){function et(ut){for(var ct=_.ef,st=0,dt=ct.length;st<dt;){if(ut===ct[st].nm||ut===ct[st].mn||ut===ct[st].ix)return ct[st].ty===5?rt[st]:rt[st]();st+=1}throw new Error}var tt=propertyGroupFactory(et,j),rt=[],it,nt=_.ef.length;for(it=0;it<nt;it+=1)_.ef[it].ty===5?rt.push(o(_.ef[it],$.effectElements[it],$.effectElements[it].propertyGroup,_e)):rt.push(a($.effectElements[it],_.ef[it].ty,_e,tt));return _.mn==="ADBE Color Control"&&Object.defineProperty(et,"color",{get:function(){return rt[0]()}}),Object.defineProperties(et,{numProperties:{get:function(){return _.np}},_name:{value:_.nm},propertyGroup:{value:tt}}),et.enabled=_.en!==0,et.active=et.enabled,et}function a(_,$,j,_e){var et=ExpressionPropertyInterface(_.p);function tt(){return $===10?j.comp.compInterface(_.p.v):et()}return _.p.setGroupProperty&&_.p.setGroupProperty(PropertyInterface("",_e)),tt}return i}(),ShapePathInterface=function(){return function(s,o,a){var _=o.sh;function $(_e){return _e==="Shape"||_e==="shape"||_e==="Path"||_e==="path"||_e==="ADBE Vector Shape"||_e===2?$.path:null}var j=propertyGroupFactory($,a);return _.setGroupProperty(PropertyInterface("Path",j)),Object.defineProperties($,{path:{get:function(){return _.k&&_.getValue(),_}},shape:{get:function(){return _.k&&_.getValue(),_}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:a}}),$}}(),ShapeExpressionInterface=function(){function i(ct,st,dt){var ot=[],lt,at=ct?ct.length:0;for(lt=0;lt<at;lt+=1)ct[lt].ty==="gr"?ot.push(o(ct[lt],st[lt],dt)):ct[lt].ty==="fl"?ot.push(a(ct[lt],st[lt],dt)):ct[lt].ty==="st"?ot.push(j(ct[lt],st[lt],dt)):ct[lt].ty==="tm"?ot.push(_e(ct[lt],st[lt],dt)):ct[lt].ty==="tr"||(ct[lt].ty==="el"?ot.push(tt(ct[lt],st[lt],dt)):ct[lt].ty==="sr"?ot.push(rt(ct[lt],st[lt],dt)):ct[lt].ty==="sh"?ot.push(ShapePathInterface(ct[lt],st[lt],dt)):ct[lt].ty==="rc"?ot.push(it(ct[lt],st[lt],dt)):ct[lt].ty==="rd"?ot.push(nt(ct[lt],st[lt],dt)):ct[lt].ty==="rp"?ot.push(ut(ct[lt],st[lt],dt)):ct[lt].ty==="gf"?ot.push(_(ct[lt],st[lt],dt)):ot.push($(ct[lt],st[lt])));return ot}function s(ct,st,dt){var ot,lt=function(ht){for(var mt=0,gt=ot.length;mt<gt;){if(ot[mt]._name===ht||ot[mt].mn===ht||ot[mt].propertyIndex===ht||ot[mt].ix===ht||ot[mt].ind===ht)return ot[mt];mt+=1}return typeof ht=="number"?ot[ht-1]:null};lt.propertyGroup=propertyGroupFactory(lt,dt),ot=i(ct.it,st.it,lt.propertyGroup),lt.numProperties=ot.length;var at=et(ct.it[ct.it.length-1],st.it[st.it.length-1],lt.propertyGroup);return lt.transform=at,lt.propertyIndex=ct.cix,lt._name=ct.nm,lt}function o(ct,st,dt){var ot=function(ht){switch(ht){case"ADBE Vectors Group":case"Contents":case 2:return ot.content;default:return ot.transform}};ot.propertyGroup=propertyGroupFactory(ot,dt);var lt=s(ct,st,ot.propertyGroup),at=et(ct.it[ct.it.length-1],st.it[st.it.length-1],ot.propertyGroup);return ot.content=lt,ot.transform=at,Object.defineProperty(ot,"_name",{get:function(){return ct.nm}}),ot.numProperties=ct.np,ot.propertyIndex=ct.ix,ot.nm=ct.nm,ot.mn=ct.mn,ot}function a(ct,st,dt){function ot(lt){return lt==="Color"||lt==="color"?ot.color:lt==="Opacity"||lt==="opacity"?ot.opacity:null}return Object.defineProperties(ot,{color:{get:ExpressionPropertyInterface(st.c)},opacity:{get:ExpressionPropertyInterface(st.o)},_name:{value:ct.nm},mn:{value:ct.mn}}),st.c.setGroupProperty(PropertyInterface("Color",dt)),st.o.setGroupProperty(PropertyInterface("Opacity",dt)),ot}function _(ct,st,dt){function ot(lt){return lt==="Start Point"||lt==="start point"?ot.startPoint:lt==="End Point"||lt==="end point"?ot.endPoint:lt==="Opacity"||lt==="opacity"?ot.opacity:null}return Object.defineProperties(ot,{startPoint:{get:ExpressionPropertyInterface(st.s)},endPoint:{get:ExpressionPropertyInterface(st.e)},opacity:{get:ExpressionPropertyInterface(st.o)},type:{get:function(){return"a"}},_name:{value:ct.nm},mn:{value:ct.mn}}),st.s.setGroupProperty(PropertyInterface("Start Point",dt)),st.e.setGroupProperty(PropertyInterface("End Point",dt)),st.o.setGroupProperty(PropertyInterface("Opacity",dt)),ot}function $(){function ct(){return null}return ct}function j(ct,st,dt){var ot=propertyGroupFactory(gt,dt),lt=propertyGroupFactory(mt,ot);function at(vt){Object.defineProperty(mt,ct.d[vt].nm,{get:ExpressionPropertyInterface(st.d.dataProps[vt].p)})}var ft,ht=ct.d?ct.d.length:0,mt={};for(ft=0;ft<ht;ft+=1)at(ft),st.d.dataProps[ft].p.setGroupProperty(lt);function gt(vt){return vt==="Color"||vt==="color"?gt.color:vt==="Opacity"||vt==="opacity"?gt.opacity:vt==="Stroke Width"||vt==="stroke width"?gt.strokeWidth:null}return Object.defineProperties(gt,{color:{get:ExpressionPropertyInterface(st.c)},opacity:{get:ExpressionPropertyInterface(st.o)},strokeWidth:{get:ExpressionPropertyInterface(st.w)},dash:{get:function(){return mt}},_name:{value:ct.nm},mn:{value:ct.mn}}),st.c.setGroupProperty(PropertyInterface("Color",ot)),st.o.setGroupProperty(PropertyInterface("Opacity",ot)),st.w.setGroupProperty(PropertyInterface("Stroke Width",ot)),gt}function _e(ct,st,dt){function ot(at){return at===ct.e.ix||at==="End"||at==="end"?ot.end:at===ct.s.ix?ot.start:at===ct.o.ix?ot.offset:null}var lt=propertyGroupFactory(ot,dt);return ot.propertyIndex=ct.ix,st.s.setGroupProperty(PropertyInterface("Start",lt)),st.e.setGroupProperty(PropertyInterface("End",lt)),st.o.setGroupProperty(PropertyInterface("Offset",lt)),ot.propertyIndex=ct.ix,ot.propertyGroup=dt,Object.defineProperties(ot,{start:{get:ExpressionPropertyInterface(st.s)},end:{get:ExpressionPropertyInterface(st.e)},offset:{get:ExpressionPropertyInterface(st.o)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}function et(ct,st,dt){function ot(at){return ct.a.ix===at||at==="Anchor Point"?ot.anchorPoint:ct.o.ix===at||at==="Opacity"?ot.opacity:ct.p.ix===at||at==="Position"?ot.position:ct.r.ix===at||at==="Rotation"||at==="ADBE Vector Rotation"?ot.rotation:ct.s.ix===at||at==="Scale"?ot.scale:ct.sk&&ct.sk.ix===at||at==="Skew"?ot.skew:ct.sa&&ct.sa.ix===at||at==="Skew Axis"?ot.skewAxis:null}var lt=propertyGroupFactory(ot,dt);return st.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",lt)),st.transform.mProps.p.setGroupProperty(PropertyInterface("Position",lt)),st.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",lt)),st.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",lt)),st.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",lt)),st.transform.mProps.sk&&(st.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",lt)),st.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",lt))),st.transform.op.setGroupProperty(PropertyInterface("Opacity",lt)),Object.defineProperties(ot,{opacity:{get:ExpressionPropertyInterface(st.transform.mProps.o)},position:{get:ExpressionPropertyInterface(st.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(st.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(st.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(st.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(st.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(st.transform.mProps.sa)},_name:{value:ct.nm}}),ot.ty="tr",ot.mn=ct.mn,ot.propertyGroup=dt,ot}function tt(ct,st,dt){function ot(ft){return ct.p.ix===ft?ot.position:ct.s.ix===ft?ot.size:null}var lt=propertyGroupFactory(ot,dt);ot.propertyIndex=ct.ix;var at=st.sh.ty==="tm"?st.sh.prop:st.sh;return at.s.setGroupProperty(PropertyInterface("Size",lt)),at.p.setGroupProperty(PropertyInterface("Position",lt)),Object.defineProperties(ot,{size:{get:ExpressionPropertyInterface(at.s)},position:{get:ExpressionPropertyInterface(at.p)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}function rt(ct,st,dt){function ot(ft){return ct.p.ix===ft?ot.position:ct.r.ix===ft?ot.rotation:ct.pt.ix===ft?ot.points:ct.or.ix===ft||ft==="ADBE Vector Star Outer Radius"?ot.outerRadius:ct.os.ix===ft?ot.outerRoundness:ct.ir&&(ct.ir.ix===ft||ft==="ADBE Vector Star Inner Radius")?ot.innerRadius:ct.is&&ct.is.ix===ft?ot.innerRoundness:null}var lt=propertyGroupFactory(ot,dt),at=st.sh.ty==="tm"?st.sh.prop:st.sh;return ot.propertyIndex=ct.ix,at.or.setGroupProperty(PropertyInterface("Outer Radius",lt)),at.os.setGroupProperty(PropertyInterface("Outer Roundness",lt)),at.pt.setGroupProperty(PropertyInterface("Points",lt)),at.p.setGroupProperty(PropertyInterface("Position",lt)),at.r.setGroupProperty(PropertyInterface("Rotation",lt)),ct.ir&&(at.ir.setGroupProperty(PropertyInterface("Inner Radius",lt)),at.is.setGroupProperty(PropertyInterface("Inner Roundness",lt))),Object.defineProperties(ot,{position:{get:ExpressionPropertyInterface(at.p)},rotation:{get:ExpressionPropertyInterface(at.r)},points:{get:ExpressionPropertyInterface(at.pt)},outerRadius:{get:ExpressionPropertyInterface(at.or)},outerRoundness:{get:ExpressionPropertyInterface(at.os)},innerRadius:{get:ExpressionPropertyInterface(at.ir)},innerRoundness:{get:ExpressionPropertyInterface(at.is)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}function it(ct,st,dt){function ot(ft){return ct.p.ix===ft?ot.position:ct.r.ix===ft?ot.roundness:ct.s.ix===ft||ft==="Size"||ft==="ADBE Vector Rect Size"?ot.size:null}var lt=propertyGroupFactory(ot,dt),at=st.sh.ty==="tm"?st.sh.prop:st.sh;return ot.propertyIndex=ct.ix,at.p.setGroupProperty(PropertyInterface("Position",lt)),at.s.setGroupProperty(PropertyInterface("Size",lt)),at.r.setGroupProperty(PropertyInterface("Rotation",lt)),Object.defineProperties(ot,{position:{get:ExpressionPropertyInterface(at.p)},roundness:{get:ExpressionPropertyInterface(at.r)},size:{get:ExpressionPropertyInterface(at.s)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}function nt(ct,st,dt){function ot(ft){return ct.r.ix===ft||ft==="Round Corners 1"?ot.radius:null}var lt=propertyGroupFactory(ot,dt),at=st;return ot.propertyIndex=ct.ix,at.rd.setGroupProperty(PropertyInterface("Radius",lt)),Object.defineProperties(ot,{radius:{get:ExpressionPropertyInterface(at.rd)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}function ut(ct,st,dt){function ot(ft){return ct.c.ix===ft||ft==="Copies"?ot.copies:ct.o.ix===ft||ft==="Offset"?ot.offset:null}var lt=propertyGroupFactory(ot,dt),at=st;return ot.propertyIndex=ct.ix,at.c.setGroupProperty(PropertyInterface("Copies",lt)),at.o.setGroupProperty(PropertyInterface("Offset",lt)),Object.defineProperties(ot,{copies:{get:ExpressionPropertyInterface(at.c)},offset:{get:ExpressionPropertyInterface(at.o)},_name:{value:ct.nm}}),ot.mn=ct.mn,ot}return function(ct,st,dt){var ot;function lt(ft){if(typeof ft=="number")return ft=ft===void 0?1:ft,ft===0?dt:ot[ft-1];for(var ht=0,mt=ot.length;ht<mt;){if(ot[ht]._name===ft)return ot[ht];ht+=1}return null}function at(){return dt}return lt.propertyGroup=propertyGroupFactory(lt,at),ot=i(ct,st,lt.propertyGroup),lt.numProperties=ot.length,lt._name="Contents",lt}}(),TextExpressionInterface=function(){return function(i){var s;function o(a){switch(a){case"ADBE Text Document":return o.sourceText;default:return null}}return Object.defineProperty(o,"sourceText",{get:function(){i.textProperty.getValue();var _=i.textProperty.currentData.t;return(!s||_!==s.value)&&(s=new String(_),s.value=_||new String(_),Object.defineProperty(s,"style",{get:function(){return{fillColor:i.textProperty.currentData.fc}}})),s}}),o}}();function _typeof(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(o){return typeof o}:_typeof=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(i)}var FootageInterface=function(){var i=function(a){var _="",$=a.getFootageData();function j(){return _="",$=a.getFootageData(),_e}function _e(et){if($[et])return _=et,$=$[et],_typeof($)==="object"?_e:$;var tt=et.indexOf(_);if(tt!==-1){var rt=parseInt(et.substr(tt+_.length),10);return $=$[rt],_typeof($)==="object"?_e:$}return""}return j},s=function(a){function _($){return $==="Outline"?_.outlineInterface():null}return _._name="Outline",_.outlineInterface=i(a),_};return function(o){function a(_){return _==="Data"?a.dataInterface:null}return a._name="Data",a.dataInterface=s(o),a}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(i){return interfaces[i]||null}var expressionHelpers=function(){function i(j,_e,et){_e.x&&(et.k=!0,et.x=!0,et.initiateExpression=ExpressionManager.initiateExpression,et.effectsSequence.push(et.initiateExpression(j,_e,et).bind(et)))}function s(j){return j*=this.elem.globalData.frameRate,j-=this.offsetTime,j!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<j?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(j,this._cachingAtTime),this._cachingAtTime.lastFrame=j),this._cachingAtTime.value}function o(j){var _e=-.01,et=this.getValueAtTime(j),tt=this.getValueAtTime(j+_e),rt=0;if(et.length){var it;for(it=0;it<et.length;it+=1)rt+=Math.pow(tt[it]-et[it],2);rt=Math.sqrt(rt)*100}else rt=0;return rt}function a(j){if(this.vel!==void 0)return this.vel;var _e=-.001,et=this.getValueAtTime(j),tt=this.getValueAtTime(j+_e),rt;if(et.length){rt=createTypedArray("float32",et.length);var it;for(it=0;it<et.length;it+=1)rt[it]=(tt[it]-et[it])/_e}else rt=(tt-et)/_e;return rt}function _(){return this.pv}function $(j){this.propertyGroup=j}return{searchExpressions:i,getSpeedAtTime:o,getVelocityAtTime:a,getValueAtTime:s,getStaticValueAtTime:_,setGroupProperty:$}}();function addPropertyDecorator(){function i(nt,ut,ct){if(!this.k||!this.keyframes)return this.pv;nt=nt?nt.toLowerCase():"";var st=this.comp.renderedFrame,dt=this.keyframes,ot=dt[dt.length-1].t;if(st<=ot)return this.pv;var lt,at;ct?(ut?lt=Math.abs(ot-this.elem.comp.globalData.frameRate*ut):lt=Math.max(0,ot-this.elem.data.ip),at=ot-lt):((!ut||ut>dt.length-1)&&(ut=dt.length-1),at=dt[dt.length-1-ut].t,lt=ot-at);var ft,ht,mt;if(nt==="pingpong"){var gt=Math.floor((st-at)/lt);if(gt%2!==0)return this.getValueAtTime((lt-(st-at)%lt+at)/this.comp.globalData.frameRate,0)}else if(nt==="offset"){var vt=this.getValueAtTime(at/this.comp.globalData.frameRate,0),St=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),wt=this.getValueAtTime(((st-at)%lt+at)/this.comp.globalData.frameRate,0),Pt=Math.floor((st-at)/lt);if(this.pv.length){for(mt=new Array(vt.length),ht=mt.length,ft=0;ft<ht;ft+=1)mt[ft]=(St[ft]-vt[ft])*Pt+wt[ft];return mt}return(St-vt)*Pt+wt}else if(nt==="continue"){var Rt=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),It=this.getValueAtTime((ot-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(mt=new Array(Rt.length),ht=mt.length,ft=0;ft<ht;ft+=1)mt[ft]=Rt[ft]+(Rt[ft]-It[ft])*((st-ot)/this.comp.globalData.frameRate)/5e-4;return mt}return Rt+(Rt-It)*((st-ot)/.001)}return this.getValueAtTime(((st-at)%lt+at)/this.comp.globalData.frameRate,0)}function s(nt,ut,ct){if(!this.k)return this.pv;nt=nt?nt.toLowerCase():"";var st=this.comp.renderedFrame,dt=this.keyframes,ot=dt[0].t;if(st>=ot)return this.pv;var lt,at;ct?(ut?lt=Math.abs(this.elem.comp.globalData.frameRate*ut):lt=Math.max(0,this.elem.data.op-ot),at=ot+lt):((!ut||ut>dt.length-1)&&(ut=dt.length-1),at=dt[ut].t,lt=at-ot);var ft,ht,mt;if(nt==="pingpong"){var gt=Math.floor((ot-st)/lt);if(gt%2===0)return this.getValueAtTime(((ot-st)%lt+ot)/this.comp.globalData.frameRate,0)}else if(nt==="offset"){var vt=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),St=this.getValueAtTime(at/this.comp.globalData.frameRate,0),wt=this.getValueAtTime((lt-(ot-st)%lt+ot)/this.comp.globalData.frameRate,0),Pt=Math.floor((ot-st)/lt)+1;if(this.pv.length){for(mt=new Array(vt.length),ht=mt.length,ft=0;ft<ht;ft+=1)mt[ft]=wt[ft]-(St[ft]-vt[ft])*Pt;return mt}return wt-(St-vt)*Pt}else if(nt==="continue"){var Rt=this.getValueAtTime(ot/this.comp.globalData.frameRate,0),It=this.getValueAtTime((ot+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(mt=new Array(Rt.length),ht=mt.length,ft=0;ft<ht;ft+=1)mt[ft]=Rt[ft]+(Rt[ft]-It[ft])*(ot-st)/.001;return mt}return Rt+(Rt-It)*(ot-st)/.001}return this.getValueAtTime((lt-((ot-st)%lt+ot))/this.comp.globalData.frameRate,0)}function o(nt,ut){if(!this.k)return this.pv;if(nt=(nt||.4)*.5,ut=Math.floor(ut||5),ut<=1)return this.pv;var ct=this.comp.renderedFrame/this.comp.globalData.frameRate,st=ct-nt,dt=ct+nt,ot=ut>1?(dt-st)/(ut-1):1,lt=0,at=0,ft;this.pv.length?ft=createTypedArray("float32",this.pv.length):ft=0;for(var ht;lt<ut;){if(ht=this.getValueAtTime(st+lt*ot),this.pv.length)for(at=0;at<this.pv.length;at+=1)ft[at]+=ht[at];else ft+=ht;lt+=1}if(this.pv.length)for(at=0;at<this.pv.length;at+=1)ft[at]/=ut;else ft/=ut;return ft}function a(nt){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var ut=this._transformCachingAtTime.v;if(ut.cloneFromProps(this.pre.props),this.appliedTransformations<1){var ct=this.a.getValueAtTime(nt);ut.translate(-ct[0]*this.a.mult,-ct[1]*this.a.mult,ct[2]*this.a.mult)}if(this.appliedTransformations<2){var st=this.s.getValueAtTime(nt);ut.scale(st[0]*this.s.mult,st[1]*this.s.mult,st[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var dt=this.sk.getValueAtTime(nt),ot=this.sa.getValueAtTime(nt);ut.skewFromAxis(-dt*this.sk.mult,ot*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var lt=this.r.getValueAtTime(nt);ut.rotate(-lt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var at=this.rz.getValueAtTime(nt),ft=this.ry.getValueAtTime(nt),ht=this.rx.getValueAtTime(nt),mt=this.or.getValueAtTime(nt);ut.rotateZ(-at*this.rz.mult).rotateY(ft*this.ry.mult).rotateX(ht*this.rx.mult).rotateZ(-mt[2]*this.or.mult).rotateY(mt[1]*this.or.mult).rotateX(mt[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var gt=this.px.getValueAtTime(nt),vt=this.py.getValueAtTime(nt);if(this.data.p.z){var St=this.pz.getValueAtTime(nt);ut.translate(gt*this.px.mult,vt*this.py.mult,-St*this.pz.mult)}else ut.translate(gt*this.px.mult,vt*this.py.mult,0)}else{var wt=this.p.getValueAtTime(nt);ut.translate(wt[0]*this.p.mult,wt[1]*this.p.mult,-wt[2]*this.p.mult)}return ut}function _(){return this.v.clone(new Matrix)}var $=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(nt,ut,ct){var st=$(nt,ut,ct);return st.dynamicProperties.length?st.getValueAtTime=a.bind(st):st.getValueAtTime=_.bind(st),st.setGroupProperty=expressionHelpers.setGroupProperty,st};var j=PropertyFactory.getProp;PropertyFactory.getProp=function(nt,ut,ct,st,dt){var ot=j(nt,ut,ct,st,dt);ot.kf?ot.getValueAtTime=expressionHelpers.getValueAtTime.bind(ot):ot.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(ot),ot.setGroupProperty=expressionHelpers.setGroupProperty,ot.loopOut=i,ot.loopIn=s,ot.smooth=o,ot.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(ot),ot.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(ot),ot.numKeys=ut.a===1?ut.k.length:0,ot.propertyIndex=ut.ix;var lt=0;return ct!==0&&(lt=createTypedArray("float32",ut.a===1?ut.k[0].s.length:ut.k.length)),ot._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:lt},expressionHelpers.searchExpressions(nt,ut,ot),ot.k&&dt.addDynamicProperty(ot),ot};function _e(nt){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),nt*=this.elem.globalData.frameRate,nt-=this.offsetTime,nt!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<nt?this._caching.lastIndex:0,this._cachingAtTime.lastTime=nt,this.interpolateShape(nt,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var et=ShapePropertyFactory.getConstructorFunction(),tt=ShapePropertyFactory.getKeyframedConstructorFunction();function rt(){}rt.prototype={vertices:function(ut,ct){this.k&&this.getValue();var st=this.v;ct!==void 0&&(st=this.getValueAtTime(ct,0));var dt,ot=st._length,lt=st[ut],at=st.v,ft=createSizedArray(ot);for(dt=0;dt<ot;dt+=1)ut==="i"||ut==="o"?ft[dt]=[lt[dt][0]-at[dt][0],lt[dt][1]-at[dt][1]]:ft[dt]=[lt[dt][0],lt[dt][1]];return ft},points:function(ut){return this.vertices("v",ut)},inTangents:function(ut){return this.vertices("i",ut)},outTangents:function(ut){return this.vertices("o",ut)},isClosed:function(){return this.v.c},pointOnPath:function(ut,ct){var st=this.v;ct!==void 0&&(st=this.getValueAtTime(ct,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(st));for(var dt=this._segmentsLength,ot=dt.lengths,lt=dt.totalLength*ut,at=0,ft=ot.length,ht=0,mt;at<ft;){if(ht+ot[at].addedLength>lt){var gt=at,vt=st.c&&at===ft-1?0:at+1,St=(lt-ht)/ot[at].addedLength;mt=bez.getPointInSegment(st.v[gt],st.v[vt],st.o[gt],st.i[vt],St,ot[at]);break}else ht+=ot[at].addedLength;at+=1}return mt||(mt=st.c?[st.v[0][0],st.v[0][1]]:[st.v[st._length-1][0],st.v[st._length-1][1]]),mt},vectorOnPath:function(ut,ct,st){ut==1?ut=this.v.c:ut==0&&(ut=.999);var dt=this.pointOnPath(ut,ct),ot=this.pointOnPath(ut+.001,ct),lt=ot[0]-dt[0],at=ot[1]-dt[1],ft=Math.sqrt(Math.pow(lt,2)+Math.pow(at,2));if(ft===0)return[0,0];var ht=st==="tangent"?[lt/ft,at/ft]:[-at/ft,lt/ft];return ht},tangentOnPath:function(ut,ct){return this.vectorOnPath(ut,ct,"tangent")},normalOnPath:function(ut,ct){return this.vectorOnPath(ut,ct,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([rt],et),extendPrototype([rt],tt),tt.prototype.getValueAtTime=_e,tt.prototype.initiateExpression=ExpressionManager.initiateExpression;var it=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(nt,ut,ct,st,dt){var ot=it(nt,ut,ct,st,dt);return ot.propertyIndex=ut.ix,ot.lock=!1,ct===3?expressionHelpers.searchExpressions(nt,ut.pt,ot):ct===4&&expressionHelpers.searchExpressions(nt,ut.ks,ot),ot.k&&nt.addDynamicProperty(ot),ot}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function i(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(s,o){var a=this.calculateExpression(o);if(s.t!==a){var _={};return this.copyData(_,s),_.t=a.toString(),_.__complete=!1,_}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),o=this.searchExpressions();return this.kf=s||o,this.kf},TextProperty.prototype.searchExpressions=i}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function i(s,o){var a=createNS("feMerge");a.setAttribute("result",s);var _,$;for($=0;$<o.length;$+=1)_=createNS("feMergeNode"),_.setAttribute("in",o[$]),a.appendChild(_),a.appendChild(_);return a}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(i,s,o,a,_){this.filterManager=s;var $=createNS("feColorMatrix");$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","linearRGB"),$.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=$,$.setAttribute("result",a+"_tint_1"),i.appendChild($),$=createNS("feColorMatrix"),$.setAttribute("type","matrix"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),$.setAttribute("result",a+"_tint_2"),i.appendChild($),this.matrixFilter=$;var j=this.createMergeNode(a,[_,a+"_tint_1",a+"_tint_2"]);i.appendChild(j)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,o=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+a+" 0"),this.matrixFilter.setAttribute("values",o[0]-s[0]+" 0 0 0 "+s[0]+" "+(o[1]-s[1])+" 0 0 0 "+s[1]+" "+(o[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(i,s,o,a){this.filterManager=s;var _=createNS("feColorMatrix");_.setAttribute("type","matrix"),_.setAttribute("color-interpolation-filters","sRGB"),_.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),_.setAttribute("result",a),i.appendChild(_),this.matrixFilter=_}SVGFillFilter.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,o=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+o+" 0")}};function SVGStrokeEffect(i,s,o){this.initialized=!1,this.filterManager=s,this.elem=o,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var i=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,o,a,_;for(this.filterManager.effectElements[1].p.v===1?(_=this.elem.maskManager.masksProperties.length,a=0):(a=this.filterManager.effectElements[0].p.v-1,_=a+1),o=createNS("g"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),o.setAttribute("stroke-dashoffset",1),a;a<_;a+=1)s=createNS("path"),o.appendChild(s),this.paths.push({p:s,m:a});if(this.filterManager.effectElements[10].p.v===3){var $=createNS("mask"),j=createElementID();$.setAttribute("id",j),$.setAttribute("mask-type","alpha"),$.appendChild(o),this.elem.globalData.defs.appendChild($);var _e=createNS("g");for(_e.setAttribute("mask","url("+getLocationHref()+"#"+j+")");i[0];)_e.appendChild(i[0]);this.elem.layerElement.appendChild(_e),this.masker=$,o.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(o),this.elem.layerElement.removeAttribute("mask"),o.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=o},SVGStrokeEffect.prototype.renderFrame=function(i){this.initialized||this.initialize();var s,o=this.paths.length,a,_;for(s=0;s<o;s+=1)if(this.paths[s].m!==-1&&(a=this.elem.maskManager.viewData[this.paths[s].m],_=this.paths[s].p,(i||this.filterManager._mdf||a.prop._mdf)&&_.setAttribute("d",a.lastPath),i||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){var $;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var j=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,_e=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,et=_.getTotalLength();$="0 0 0 "+et*j+" ";var tt=et*(_e-j),rt=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,it=Math.floor(tt/rt),nt;for(nt=0;nt<it;nt+=1)$+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";$+="0 "+et*10+" 0 0"}else $="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;_.setAttribute("stroke-dasharray",$)}if((i||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(i||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(i||this.filterManager.effectElements[3].p._mdf)){var ut=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(ut[0]*255)+","+bmFloor(ut[1]*255)+","+bmFloor(ut[2]*255)+")")}};function SVGTritoneFilter(i,s,o,a){this.filterManager=s;var _=createNS("feColorMatrix");_.setAttribute("type","matrix"),_.setAttribute("color-interpolation-filters","linearRGB"),_.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),i.appendChild(_);var $=createNS("feComponentTransfer");$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("result",a),this.matrixFilter=$;var j=createNS("feFuncR");j.setAttribute("type","table"),$.appendChild(j),this.feFuncR=j;var _e=createNS("feFuncG");_e.setAttribute("type","table"),$.appendChild(_e),this.feFuncG=_e;var et=createNS("feFuncB");et.setAttribute("type","table"),$.appendChild(et),this.feFuncB=et,i.appendChild($)}SVGTritoneFilter.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,o=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,_=a[0]+" "+o[0]+" "+s[0],$=a[1]+" "+o[1]+" "+s[1],j=a[2]+" "+o[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",_),this.feFuncG.setAttribute("tableValues",$),this.feFuncB.setAttribute("tableValues",j)}};function SVGProLevelsFilter(i,s,o,a){this.filterManager=s;var _=this.filterManager.effectElements,$=createNS("feComponentTransfer");(_[10].p.k||_[10].p.v!==0||_[11].p.k||_[11].p.v!==1||_[12].p.k||_[12].p.v!==1||_[13].p.k||_[13].p.v!==0||_[14].p.k||_[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",$)),(_[17].p.k||_[17].p.v!==0||_[18].p.k||_[18].p.v!==1||_[19].p.k||_[19].p.v!==1||_[20].p.k||_[20].p.v!==0||_[21].p.k||_[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",$)),(_[24].p.k||_[24].p.v!==0||_[25].p.k||_[25].p.v!==1||_[26].p.k||_[26].p.v!==1||_[27].p.k||_[27].p.v!==0||_[28].p.k||_[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",$)),(_[31].p.k||_[31].p.v!==0||_[32].p.k||_[32].p.v!==1||_[33].p.k||_[33].p.v!==1||_[34].p.k||_[34].p.v!==0||_[35].p.k||_[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",$)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&($.setAttribute("color-interpolation-filters","sRGB"),i.appendChild($)),(_[3].p.k||_[3].p.v!==0||_[4].p.k||_[4].p.v!==1||_[5].p.k||_[5].p.v!==1||_[6].p.k||_[6].p.v!==0||_[7].p.k||_[7].p.v!==1)&&($=createNS("feComponentTransfer"),$.setAttribute("color-interpolation-filters","sRGB"),$.setAttribute("result",a),i.appendChild($),this.feFuncRComposed=this.createFeFunc("feFuncR",$),this.feFuncGComposed=this.createFeFunc("feFuncG",$),this.feFuncBComposed=this.createFeFunc("feFuncB",$))}SVGProLevelsFilter.prototype.createFeFunc=function(i,s){var o=createNS(i);return o.setAttribute("type","table"),s.appendChild(o),o},SVGProLevelsFilter.prototype.getTableValue=function(i,s,o,a,_){for(var $=0,j=256,_e,et=Math.min(i,s),tt=Math.max(i,s),rt=Array.call(null,{length:j}),it,nt=0,ut=_-a,ct=s-i;$<=256;)_e=$/256,_e<=et?it=ct<0?_:a:_e>=tt?it=ct<0?a:_:it=a+ut*Math.pow((_e-i)/ct,1/o),rt[nt]=it,nt+=1,$+=256/(j-1);return rt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var s,o=this.filterManager.effectElements;this.feFuncRComposed&&(i||o[3].p._mdf||o[4].p._mdf||o[5].p._mdf||o[6].p._mdf||o[7].p._mdf)&&(s=this.getTableValue(o[3].p.v,o[4].p.v,o[5].p.v,o[6].p.v,o[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(i||o[10].p._mdf||o[11].p._mdf||o[12].p._mdf||o[13].p._mdf||o[14].p._mdf)&&(s=this.getTableValue(o[10].p.v,o[11].p.v,o[12].p.v,o[13].p.v,o[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(i||o[17].p._mdf||o[18].p._mdf||o[19].p._mdf||o[20].p._mdf||o[21].p._mdf)&&(s=this.getTableValue(o[17].p.v,o[18].p.v,o[19].p.v,o[20].p.v,o[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(i||o[24].p._mdf||o[25].p._mdf||o[26].p._mdf||o[27].p._mdf||o[28].p._mdf)&&(s=this.getTableValue(o[24].p.v,o[25].p.v,o[26].p.v,o[27].p.v,o[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(i||o[31].p._mdf||o[32].p._mdf||o[33].p._mdf||o[34].p._mdf||o[35].p._mdf)&&(s=this.getTableValue(o[31].p.v,o[32].p.v,o[33].p.v,o[34].p.v,o[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(i,s,o,a,_){var $=s.container.globalData.renderConfig.filterSize,j=s.data.fs||$;i.setAttribute("x",j.x||$.x),i.setAttribute("y",j.y||$.y),i.setAttribute("width",j.width||$.width),i.setAttribute("height",j.height||$.height),this.filterManager=s;var _e=createNS("feGaussianBlur");_e.setAttribute("in","SourceAlpha"),_e.setAttribute("result",a+"_drop_shadow_1"),_e.setAttribute("stdDeviation","0"),this.feGaussianBlur=_e,i.appendChild(_e);var et=createNS("feOffset");et.setAttribute("dx","25"),et.setAttribute("dy","0"),et.setAttribute("in",a+"_drop_shadow_1"),et.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=et,i.appendChild(et);var tt=createNS("feFlood");tt.setAttribute("flood-color","#00ff00"),tt.setAttribute("flood-opacity","1"),tt.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=tt,i.appendChild(tt);var rt=createNS("feComposite");rt.setAttribute("in",a+"_drop_shadow_3"),rt.setAttribute("in2",a+"_drop_shadow_2"),rt.setAttribute("operator","in"),rt.setAttribute("result",a+"_drop_shadow_4"),i.appendChild(rt);var it=this.createMergeNode(a,[a+"_drop_shadow_4",_]);i.appendChild(it)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){if((i||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),i||this.filterManager.effectElements[0].p._mdf){var s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)))}if((i||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),i||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var o=this.filterManager.effectElements[3].p.v,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,_=o*Math.cos(a),$=o*Math.sin(a);this.feOffset.setAttribute("dx",_),this.feOffset.setAttribute("dy",$)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(i,s,o){this.initialized=!1,this.filterManager=s,this.filterElem=i,this.elem=o,o.matteElement=createNS("g"),o.matteElement.appendChild(o.layerElement),o.matteElement.appendChild(o.transformedElement),o.baseElement=o.matteElement}SVGMatte3Effect.prototype.findSymbol=function(i){for(var s=0,o=_svgMatteSymbols.length;s<o;){if(_svgMatteSymbols[s]===i)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(i,s){var o=i.layerElement.parentNode;if(o){for(var a=o.children,_=0,$=a.length;_<$&&a[_]!==i.layerElement;)_+=1;var j;_<=$-2&&(j=a[_+1]);var _e=createNS("use");_e.setAttribute("href","#"+s),j?o.insertBefore(_e,j):o.appendChild(_e)}},SVGMatte3Effect.prototype.setElementAsMask=function(i,s){if(!this.findSymbol(s)){var o=createElementID(),a=createNS("mask");a.setAttribute("id",s.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var _=i.globalData.defs;_.appendChild(a);var $=createNS("symbol");$.setAttribute("id",o),this.replaceInParent(s,o),$.appendChild(s.layerElement),_.appendChild($);var j=createNS("use");j.setAttribute("href","#"+o),a.appendChild(j),s.data.hd=!1,s.show()}i.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var i=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,o=0,a=s.length;o<a;)s[o]&&s[o].data.ind===i&&this.setElementAsMask(this.elem,s[o]),o+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(i,s,o,a){i.setAttribute("x","-100%"),i.setAttribute("y","-100%"),i.setAttribute("width","300%"),i.setAttribute("height","300%"),this.filterManager=s;var _=createNS("feGaussianBlur");_.setAttribute("result",a),i.appendChild(_),this.feGaussianBlur=_}SVGGaussianBlurEffect.prototype.renderFrame=function(i){if(i||this.filterManager._mdf){var s=.3,o=this.filterManager.effectElements[0].p.v*s,a=this.filterManager.effectElements[1].p.v,_=a==3?0:o,$=a==2?0:o;this.feGaussianBlur.setAttribute("stdDeviation",_+" "+$);var j=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",j)}};function TransformEffect(){}TransformEffect.prototype.init=function(i){this.effectsManager=i,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(i){if(this._opMdf=!1,this._mdf=!1,i||this.effectsManager._mdf){var s=this.effectsManager.effectElements,o=s[0].p.v,a=s[1].p.v,_=s[2].p.v===1,$=s[3].p.v,j=_?$:s[4].p.v,_e=s[5].p.v,et=s[6].p.v,tt=s[7].p.v;this.matrix.reset(),this.matrix.translate(-o[0],-o[1],o[2]),this.matrix.scale(j*.01,$*.01,1),this.matrix.rotate(-tt*degToRads),this.matrix.skewFromAxis(-_e*degToRads,(et+90)*degToRads),this.matrix.translate(a[0],a[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(i,s){this.init(s)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(i){this.init(i)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(i,s){(s==null||s>i.length)&&(s=i.length);for(var o=0,a=Array(s);o<s;o++)a[o]=i[o];return a}function _arrayWithHoles(i){if(Array.isArray(i))return i}function _defineProperty(i,s,o){return(s=_toPropertyKey(s))in i?Object.defineProperty(i,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[s]=o,i}function _iterableToArrayLimit(i,s){var o=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(o!=null){var a,_,$,j,_e=[],et=!0,tt=!1;try{if($=(o=o.call(i)).next,s!==0)for(;!(et=(a=$.call(o)).done)&&(_e.push(a.value),_e.length!==s);et=!0);}catch(rt){tt=!0,_=rt}finally{try{if(!et&&o.return!=null&&(j=o.return(),Object(j)!==j))return}finally{if(tt)throw _}}return _e}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(i,s){var o=Object.keys(i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);s&&(a=a.filter(function(_){return Object.getOwnPropertyDescriptor(i,_).enumerable})),o.push.apply(o,a)}return o}function _objectSpread2(i){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(o),!0).forEach(function(a){_defineProperty(i,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(a){Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(o,a))})}return i}function _objectWithoutProperties(i,s){if(i==null)return{};var o,a,_=_objectWithoutPropertiesLoose(i,s);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(i);for(a=0;a<$.length;a++)o=$[a],s.includes(o)||{}.propertyIsEnumerable.call(i,o)&&(_[o]=i[o])}return _}function _objectWithoutPropertiesLoose(i,s){if(i==null)return{};var o={};for(var a in i)if({}.hasOwnProperty.call(i,a)){if(s.includes(a))continue;o[a]=i[a]}return o}function _slicedToArray(i,s){return _arrayWithHoles(i)||_iterableToArrayLimit(i,s)||_unsupportedIterableToArray(i,s)||_nonIterableRest()}function _toPrimitive(i,s){if(typeof i!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)}function _toPropertyKey(i){var s=_toPrimitive(i,"string");return typeof s=="symbol"?s:s+""}function _unsupportedIterableToArray(i,s){if(i){if(typeof i=="string")return _arrayLikeToArray(i,s);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(i,s):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function i(s,o){var a=s.animationData,_=s.loop,$=s.autoplay,j=s.initialSegment,_e=s.onComplete,et=s.onLoopComplete,tt=s.onEnterFrame,rt=s.onSegmentStart,it=s.onConfigReady,nt=s.onDataReady,ut=s.onDataFailed,ct=s.onLoadedImages,st=s.onDOMLoaded,dt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var ot=_objectWithoutProperties(s,_excluded$1),lt=reactExports.useState(!1),at=_slicedToArray(lt,2),ft=at[0],ht=at[1],mt=reactExports.useRef(),gt=reactExports.useRef(null),vt=function(){var $t;($t=mt.current)===null||$t===void 0||$t.play()},St=function(){var $t;($t=mt.current)===null||$t===void 0||$t.stop()},wt=function(){var $t;($t=mt.current)===null||$t===void 0||$t.pause()},Pt=function($t){var At;(At=mt.current)===null||At===void 0||At.setSpeed($t)},Rt=function($t,At){var Ot;(Ot=mt.current)===null||Ot===void 0||Ot.goToAndPlay($t,At)},It=function($t,At){var Ot;(Ot=mt.current)===null||Ot===void 0||Ot.goToAndStop($t,At)},jt=function($t){var At;(At=mt.current)===null||At===void 0||At.setDirection($t)},Mt=function($t,At){var Ot;(Ot=mt.current)===null||Ot===void 0||Ot.playSegments($t,At)},xt=function($t){var At;(At=mt.current)===null||At===void 0||At.setSubframe($t)},bt=function($t){var At;return(At=mt.current)===null||At===void 0?void 0:At.getDuration($t)},pt=function(){var $t;($t=mt.current)===null||$t===void 0||$t.destroy(),mt.current=void 0},yt=function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},At;if(gt.current){(At=mt.current)===null||At===void 0||At.destroy();var Ot=_objectSpread2(_objectSpread2(_objectSpread2({},s),$t),{},{container:gt.current});return mt.current=lottie.loadAnimation(Ot),ht(!!mt.current),function(){var Vt;(Vt=mt.current)===null||Vt===void 0||Vt.destroy(),mt.current=void 0}}};reactExports.useEffect(function(){var Et=yt();return function(){return Et==null?void 0:Et()}},[a,_]),reactExports.useEffect(function(){mt.current&&(mt.current.autoplay=!!$)},[$]),reactExports.useEffect(function(){if(mt.current){if(!j){mt.current.resetSegments(!0);return}!Array.isArray(j)||!j.length||((mt.current.currentRawFrame<j[0]||mt.current.currentRawFrame>j[1])&&(mt.current.currentRawFrame=j[0]),mt.current.setSegment(j[0],j[1]))}},[j]),reactExports.useEffect(function(){var Et=[{name:"complete",handler:_e},{name:"loopComplete",handler:et},{name:"enterFrame",handler:tt},{name:"segmentStart",handler:rt},{name:"config_ready",handler:it},{name:"data_ready",handler:nt},{name:"data_failed",handler:ut},{name:"loaded_images",handler:ct},{name:"DOMLoaded",handler:st},{name:"destroy",handler:dt}],$t=Et.filter(function(Ot){return Ot.handler!=null});if($t.length){var At=$t.map(function(Ot){var Vt;return(Vt=mt.current)===null||Vt===void 0||Vt.addEventListener(Ot.name,Ot.handler),function(){var Lt;(Lt=mt.current)===null||Lt===void 0||Lt.removeEventListener(Ot.name,Ot.handler)}});return function(){At.forEach(function(Ot){return Ot()})}}},[_e,et,tt,rt,it,nt,ut,ct,st,dt]);var kt=React$1.createElement("div",_objectSpread2({style:o,ref:gt},ot));return{View:kt,play:vt,stop:St,pause:wt,setSpeed:Pt,goToAndStop:It,goToAndPlay:Rt,setDirection:jt,playSegments:Mt,setSubframe:xt,getDuration:bt,destroy:pt,animationContainerRef:gt,animationLoaded:ft,animationItem:mt.current}};function getContainerVisibility(i){var s=i.getBoundingClientRect(),o=s.top,a=s.height,_=window.innerHeight-o,$=window.innerHeight+a;return _/$}function getContainerCursorPosition(i,s,o){var a=i.getBoundingClientRect(),_=a.top,$=a.left,j=a.width,_e=a.height,et=(s-$)/j,tt=(o-_)/_e;return{x:et,y:tt}}var useInitInteractivity=function i(s){var o=s.wrapperRef,a=s.animationItem,_=s.mode,$=s.actions;reactExports.useEffect(function(){var j=o.current;if(!(!j||!a||!$.length)){a.stop();var _e=function(){var rt=null,it=function(){var ut=getContainerVisibility(j),ct=$.find(function(dt){var ot=dt.visibility;return ot&&ut>=ot[0]&&ut<=ot[1]});if(ct){if(ct.type==="seek"&&ct.visibility&&ct.frames.length===2){var st=ct.frames[0]+Math.ceil((ut-ct.visibility[0])/(ct.visibility[1]-ct.visibility[0])*ct.frames[1]);//! goToAndStop must be relative to the start of the current segment
a.goToAndStop(st-a.firstFrame-1,!0)}ct.type==="loop"&&(rt===null||rt!==ct.frames||a.isPaused)&&(a.playSegments(ct.frames,!0),rt=ct.frames),ct.type==="play"&&a.isPaused&&(a.resetSegments(!0),a.play()),ct.type==="stop"&&a.goToAndStop(ct.frames[0]-a.firstFrame-1,!0)}};return document.addEventListener("scroll",it),function(){document.removeEventListener("scroll",it)}},et=function(){var rt=function(ct,st){var dt=ct,ot=st;if(dt!==-1&&ot!==-1){var lt=getContainerCursorPosition(j,dt,ot);dt=lt.x,ot=lt.y}var at=$.find(function(mt){var gt=mt.position;return gt&&Array.isArray(gt.x)&&Array.isArray(gt.y)?dt>=gt.x[0]&&dt<=gt.x[1]&&ot>=gt.y[0]&&ot<=gt.y[1]:gt&&!Number.isNaN(gt.x)&&!Number.isNaN(gt.y)?dt===gt.x&&ot===gt.y:!1});if(at){if(at.type==="seek"&&at.position&&Array.isArray(at.position.x)&&Array.isArray(at.position.y)&&at.frames.length===2){var ft=(dt-at.position.x[0])/(at.position.x[1]-at.position.x[0]),ht=(ot-at.position.y[0])/(at.position.y[1]-at.position.y[0]);a.playSegments(at.frames,!0),a.goToAndStop(Math.ceil((ft+ht)/2*(at.frames[1]-at.frames[0])),!0)}at.type==="loop"&&a.playSegments(at.frames,!0),at.type==="play"&&(a.isPaused&&a.resetSegments(!1),a.playSegments(at.frames)),at.type==="stop"&&a.goToAndStop(at.frames[0],!0)}},it=function(ct){rt(ct.clientX,ct.clientY)},nt=function(){rt(-1,-1)};return j.addEventListener("mousemove",it),j.addEventListener("mouseout",nt),function(){j.removeEventListener("mousemove",it),j.removeEventListener("mouseout",nt)}};switch(_){case"scroll":return _e();case"cursor":return et()}}},[_,a])},useLottieInteractivity=function i(s){var o=s.actions,a=s.mode,_=s.lottieObj,$=_.animationItem,j=_.View,_e=_.animationContainerRef;return useInitInteractivity({actions:o,animationItem:$,mode:a,wrapperRef:_e}),j},_excluded=["style","interactivity"],Lottie=function i(s){var o,a,_,$=s.style,j=s.interactivity,_e=_objectWithoutProperties(s,_excluded),et=useLottie(_e,$),tt=et.View,rt=et.play,it=et.stop,nt=et.pause,ut=et.setSpeed,ct=et.goToAndStop,st=et.goToAndPlay,dt=et.setDirection,ot=et.playSegments,lt=et.setSubframe,at=et.getDuration,ft=et.destroy,ht=et.animationContainerRef,mt=et.animationLoaded,gt=et.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:rt,stop:it,pause:nt,setSpeed:ut,goToAndPlay:st,goToAndStop:ct,setDirection:dt,playSegments:ot,setSubframe:lt,getDuration:at,destroy:ft,animationContainerRef:ht,animationLoaded:mt,animationItem:gt})},[(o=s.lottieRef)===null||o===void 0?void 0:o.current]),useLottieInteractivity({lottieObj:{View:tt,play:rt,stop:it,pause:nt,setSpeed:ut,goToAndStop:ct,goToAndPlay:st,setDirection:dt,playSegments:ot,setSubframe:lt,getDuration:at,destroy:ft,animationContainerRef:ht,animationLoaded:mt,animationItem:gt},actions:(a=j==null?void 0:j.actions)!==null&&a!==void 0?a:[],mode:(_=j==null?void 0:j.mode)!==null&&_!==void 0?_:"scroll"})};const v="5.6.5",fr=60,ip=0,op=180,w=512,h=512,nm="payment",ddd=0,assets=[],layers=[{ddd:0,ind:1,ty:4,nm:"Livello 2 contorni",parent:4,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[220.513,68.241,0],ix:2},a:{a:0,k:[219.876,24.878,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[219.626,24.628],[-219.626,24.628],[-219.625,-24.628],[219.626,-24.628]],o:[[219.626,24.628],[-219.626,24.628],[-219.625,-24.628],[219.626,-24.628]],v:[[219.626,24.628],[-219.626,24.628],[-219.625,-24.628],[219.626,-24.628]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[.1255,.1529,.1725,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[219.876,24.879],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0},{ddd:0,ind:2,ty:4,nm:"Livello 3 contorni",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[415.10800000000006,376.663,0],to:[-9.468,-.094,0],ti:[.001,-.006,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:90,s:[358.3,376.1,0],to:[-.001,.006,0],ti:[-9.467,-.1,0]},{t:179,s:[415.09999999999997,376.7,0]}],ix:2},a:{a:0,k:[38.327,38.327,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-37.655,-21.296],[-21.294999999999998,37.654],[37.655,21.295],[21.294999999999998,-37.655]],o:[[-38.077,20.53],[20.53,38.077000000000005],[38.077000000000005,-20.529999999999998],[-20.531000000000002,-38.077]],v:[[-37.866,-.383],[-.383,37.865],[37.865,.382],[.383,-37.866]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[.851,.8784,.902,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[38.327,38.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0},{ddd:0,ind:3,ty:4,nm:"Livello 4 contorni",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:0,s:[358.309,376.089,0],to:[9.465,.102,0],ti:[.002,-.002,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:90,s:[415.09999999999997,376.7,0],to:[-.002,.002,0],ti:[9.467,.1,0]},{t:179,s:[358.3,376.1,0]}],ix:2},a:{a:0,k:[38.327,38.327,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[38.077,-20.53],[20.53,38.077],[-38.077,20.529999999999998],[-20.53,-38.077000000000005]],o:[[37.655,21.296],[-21.294999999999998,37.655],[-37.655,-21.295],[21.294999999999998,-37.654]],v:[[37.866,.383],[-.383,37.866],[-37.866,-.382],[.383,-37.865]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[.2068,.5139,.7332,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[38.327,38.327],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0},{ddd:0,ind:4,ty:4,nm:"Livello 5 contorni",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[278.53,327.076,0],ix:2},a:{a:0,k:[220.854,129.174,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[201.1,128.924],[-177.039,128.923],[-220.604,109.418],[-220.604,-85.359],[-201.09900000000002,-128.924],[177.039,-128.924],[220.604,-109.41900000000001],[220.604,85.359]],o:[[177.039,128.924],[-201.099,128.923],[-220.604,85.358],[-220.604,-109.419],[-177.038,-128.924],[201.1,-128.924],[220.604,-85.358],[220.604,109.419]],v:[[177.039,128.924],[-177.039,128.923],[-220.604,85.358],[-220.604,-85.359],[-177.038,-128.924],[177.039,-128.924],[220.604,-85.358],[220.604,85.359]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[0,.2567,.44,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[220.854,129.174],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0},{ddd:0,ind:5,ty:4,nm:"Livello 6 contorni",parent:6,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[92.496,51.396,0],ix:2},a:{a:0,k:[61.165,25.029,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[54.823,24.779],[-47.308,24.779],[-60.915,18.687],[-60.915,-11.172],[-54.822,-24.779],[47.308,-24.779],[60.915,-18.687],[60.915,11.172]],o:[[47.308,24.779],[-54.822,24.779],[-60.915,11.172],[-60.915,-18.687],[-47.308,-24.779],[54.823,-24.779],[60.915,-11.172],[60.915,18.687]],v:[[47.308,24.779],[-47.308,24.779],[-60.915,11.172],[-60.915,-11.172],[-47.308,-24.779],[47.308,-24.779],[60.915,-11.172],[60.915,11.172]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[61.165,25.029],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0},{ddd:0,ind:6,ty:4,nm:"Livello 7 contorni",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.454],y:[1]},o:{x:[.62],y:[0]},t:0,s:[0]},{i:{x:[.414],y:[1]},o:{x:[.534],y:[0]},t:90,s:[25]},{t:179,s:[0]}],ix:10},p:{a:0,k:[451.282,212.208,0],ix:2},a:{a:0,k:[396.52,47.769,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[201.1,128.925],[-177.038,128.925],[-220.604,109.42],[-220.604,-85.359],[-201.09900000000002,-128.924],[177.039,-128.924],[220.605,-109.419],[220.604,85.36]],o:[[177.039,128.925],[-201.09900000000002,128.925],[-220.604,85.36],[-220.604,-109.419],[-177.038,-128.924],[201.1,-128.924],[220.605,-85.359],[220.604,109.42]],v:[[177.039,128.925],[-177.038,128.925],[-220.604,85.36],[-220.604,-85.359],[-177.038,-128.924],[177.039,-128.924],[220.605,-85.359],[220.604,85.36]],c:!0},ix:2},nm:"Tracciato 1",mn:"ADBE Vector Shape - Group",hd:!1,_render:!0},{ty:"fl",c:{a:0,k:[.851,.8784,.902,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Riempimento 1",mn:"ADBE Vector Graphic - Fill",hd:!1,_render:!0},{ty:"tr",p:{a:0,k:[220.854,129.174],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Trasformazione",_render:!0}],nm:"Gruppo 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1,_render:!0}],ip:0,op:180,st:0,bm:0,completed:!0}],markers=[],__complete=!0,paymentProccesing={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers,__complete};function StripePaymentProcess(){const i=useNavigate(),s=useLocation(),o=useToast(),_=new URLSearchParams(s.search).get("payment_intent");return reactExports.useEffect(()=>{const $=setTimeout(()=>{showToast(o,"success","Payment Success"),i("/",{replace:!0})},8e3);return()=>clearTimeout($)},[i,o]),jsxRuntimeExports.jsxs(Box,{children:[jsxRuntimeExports.jsx(Flex,{justifyContent:"center",mt:10,children:jsxRuntimeExports.jsx(Lottie,{animationData:paymentProccesing,loop:!0,style:{width:"300px",maxWidth:"80vw"}})}),jsxRuntimeExports.jsx(Text,{textAlign:"center",fontSize:20,fontWeight:600,children:"Processing Your Payment"}),jsxRuntimeExports.jsx(Text,{textAlign:"center",fontSize:20,children:"Please wait!"}),_&&jsxRuntimeExports.jsxs(Text,{textAlign:"center",fontSize:16,mt:4,color:"gray.600",children:["Payment ID: ",_]})]})}function ImLocation(i){return GenIcon({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0c-2.761 0-5 2.239-5 5 0 5 5 11 5 11s5-6 5-11c0-2.761-2.239-5-5-5zM8 8c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"},child:[]}]})(i)}function FiMail(i){return GenIcon({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"},child:[]},{tag:"polyline",attr:{points:"22,6 12,13 2,6"},child:[]}]})(i)}var dist={};function ___$insertStyle(i){if(typeof window>"u")return;const s=document.createElement("style");return s.setAttribute("type","text/css"),s.innerHTML=i,document.head.appendChild(s),i}Object.defineProperty(dist,"__esModule",{value:!0});var React=reactExports;function _interopDefaultLegacy(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var React__default=_interopDefaultLegacy(React);___$insertStyle(`.rfm-marquee-container {
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  width: var(--width);
  transform: var(--transform);
}
.rfm-marquee-container:hover div {
  animation-play-state: var(--pause-on-hover);
}
.rfm-marquee-container:active div {
  animation-play-state: var(--pause-on-click);
}

.rfm-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}
.rfm-overlay::before, .rfm-overlay::after {
  background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));
  content: "";
  height: 100%;
  position: absolute;
  width: var(--gradient-width);
  z-index: 2;
  pointer-events: none;
  touch-action: none;
}
.rfm-overlay::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.rfm-overlay::before {
  left: 0;
  top: 0;
}

.rfm-marquee {
  flex: 0 0 auto;
  min-width: var(--min-width);
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  animation: scroll var(--duration) linear var(--delay) var(--iteration-count);
  animation-play-state: var(--play);
  animation-delay: var(--delay);
  animation-direction: var(--direction);
}
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.rfm-initial-child-container {
  flex: 0 0 auto;
  display: flex;
  min-width: auto;
  flex-direction: row;
  align-items: center;
}

.rfm-child {
  transform: var(--transform);
}`);const Marquee=React.forwardRef(function i({style:s={},className:o="",autoFill:a=!1,play:_=!0,pauseOnHover:$=!1,pauseOnClick:j=!1,direction:_e="left",speed:et=50,delay:tt=0,loop:rt=0,gradient:it=!1,gradientColor:nt="white",gradientWidth:ut=200,onFinish:ct,onCycleComplete:st,onMount:dt,children:ot},lt){const[at,ft]=React.useState(0),[ht,mt]=React.useState(0),[gt,vt]=React.useState(1),[St,wt]=React.useState(!1),Pt=React.useRef(null),Rt=lt||Pt,It=React.useRef(null),jt=React.useCallback(()=>{if(It.current&&Rt.current){const Et=Rt.current.getBoundingClientRect(),$t=It.current.getBoundingClientRect();let At=Et.width,Ot=$t.width;(_e==="up"||_e==="down")&&(At=Et.height,Ot=$t.height),vt(a&&At&&Ot&&Ot<At?Math.ceil(At/Ot):1),ft(At),mt(Ot)}},[a,Rt,_e]);React.useEffect(()=>{if(St&&(jt(),It.current&&Rt.current)){const Et=new ResizeObserver(()=>jt());return Et.observe(Rt.current),Et.observe(It.current),()=>{Et&&Et.disconnect()}}},[jt,Rt,St]),React.useEffect(()=>{jt()},[jt,ot]),React.useEffect(()=>{wt(!0)},[]),React.useEffect(()=>{typeof dt=="function"&&dt()},[]);const Mt=React.useMemo(()=>a?ht*gt/et:ht<at?at/et:ht/et,[a,at,ht,gt,et]),xt=React.useMemo(()=>Object.assign(Object.assign({},s),{"--pause-on-hover":!_||$?"paused":"running","--pause-on-click":!_||$&&!j||j?"paused":"running","--width":_e==="up"||_e==="down"?"100vh":"100%","--transform":_e==="up"?"rotate(-90deg)":_e==="down"?"rotate(90deg)":"none"}),[s,_,$,j,_e]),bt=React.useMemo(()=>({"--gradient-color":nt,"--gradient-width":typeof ut=="number"?`${ut}px`:ut}),[nt,ut]),pt=React.useMemo(()=>({"--play":_?"running":"paused","--direction":_e==="left"?"normal":"reverse","--duration":`${Mt}s`,"--delay":`${tt}s`,"--iteration-count":rt?`${rt}`:"infinite","--min-width":a?"auto":"100%"}),[_,_e,Mt,tt,rt,a]),yt=React.useMemo(()=>({"--transform":_e==="up"?"rotate(90deg)":_e==="down"?"rotate(-90deg)":"none"}),[_e]),kt=React.useCallback(Et=>[...Array(Number.isFinite(Et)&&Et>=0?Et:0)].map(($t,At)=>React__default.default.createElement(React.Fragment,{key:At},React.Children.map(ot,Ot=>React__default.default.createElement("div",{style:yt,className:"rfm-child"},Ot)))),[yt,ot]);return St?React__default.default.createElement("div",{ref:Rt,style:xt,className:"rfm-marquee-container "+o},it&&React__default.default.createElement("div",{style:bt,className:"rfm-overlay"}),React__default.default.createElement("div",{className:"rfm-marquee",style:pt,onAnimationIteration:st,onAnimationEnd:ct},React__default.default.createElement("div",{className:"rfm-initial-child-container",ref:It},React.Children.map(ot,Et=>React__default.default.createElement("div",{style:yt,className:"rfm-child"},Et))),kt(gt-1)),React__default.default.createElement("div",{className:"rfm-marquee",style:pt},kt(gt))):null});var _default=dist.default=Marquee;function ContactMarqee(){const{settingsData:i}=useSettingsData(),s=i==null?void 0:i.find(tt=>tt.id_name==="ambulance_btn_enable"),o=i==null?void 0:i.find(tt=>tt.id_name==="phone"),a=i==null?void 0:i.find(tt=>tt.id_name==="phone_second"),_=i==null?void 0:i.find(tt=>tt.id_name==="email"),$=i==null?void 0:i.find(tt=>tt.id_name==="address"),j=i==null?void 0:i.find(tt=>tt.id_name==="ambulance_number"),_e=i==null?void 0:i.find(tt=>tt.id_name==="clinic_location_latitude"),et=i==null?void 0:i.find(tt=>tt.id_name==="clinic_location_longitude");return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:i?jsxRuntimeExports.jsxs(Box,{py:2,bg:"blue.900",color:"#fff",borderBottom:"0.5px solid",borderColor:"gray.400",px:2,children:[" ",jsxRuntimeExports.jsxs(Flex,{gap:2,align:"center",justifyContent:"space-between",children:[jsxRuntimeExports.jsxs(Box,{display:{sm:"block",lg:"none"},maxW:"60%",children:[" ",jsxRuntimeExports.jsxs(_default,{pauseOnHover:!0,speed:40,children:[" ",jsxRuntimeExports.jsxs(Flex,{gap:7,minW:"100vw",mr:5,children:[" ",jsxRuntimeExports.jsx("a",{href:`tel:${o.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:1,children:[jsxRuntimeExports.jsx(PhoneIcon,{boxSize:3}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:o.value})]})}),jsxRuntimeExports.jsx("a",{href:`tel:${a.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(PhoneIcon,{boxSize:3}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:o.value})]})}),jsxRuntimeExports.jsx("a",{href:`mailto:${_.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(FiMail,{}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:_.value})]})}),jsxRuntimeExports.jsx("a",{href:`https://maps.google.com/?q=${$.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(ImLocation,{}),jsxRuntimeExports.jsxs(Text,{fontSize:"sm",children:["Address: ",$.value]})]})})]})]})]})," ",jsxRuntimeExports.jsxs(Box,{display:{base:"none",lg:"block"},w:"100%",children:[jsxRuntimeExports.jsxs("div",{className:"container",children:[" ",jsxRuntimeExports.jsxs(Flex,{gap:7,justifyContent:"flex-end",children:[" ",jsxRuntimeExports.jsx("a",{href:`tel:${o.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:1,children:[jsxRuntimeExports.jsx(PhoneIcon,{boxSize:3}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:o.value})]})}),jsxRuntimeExports.jsx("a",{href:`tel:${a.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(PhoneIcon,{boxSize:3}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:o.value})]})}),jsxRuntimeExports.jsx("a",{href:`mailto:${_.value}`,display:"flex",color:"blue.500",fontWeight:"bold",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(FiMail,{}),jsxRuntimeExports.jsx(Text,{fontSize:"sm",children:_.value})]})}),jsxRuntimeExports.jsx(Link$1,{href:`https://www.google.com/maps?q=${_e.value},${et.value}`,display:"flex",color:"#fff",fontWeight:"semi-bold",isExternal:!0,textTransform:"none",children:jsxRuntimeExports.jsxs(HStack,{spacing:2,children:[jsxRuntimeExports.jsx(ImLocation,{}),jsxRuntimeExports.jsxs(Text,{fontSize:"sm",children:["Address: ",$.value]})]})})]})]})," "]}),s.value==="true"&&jsxRuntimeExports.jsx(Button,{size:{base:"xs",md:"sm"},colorScheme:"red",rightIcon:jsxRuntimeExports.jsx(FaAmbulance,{fontSize:20}),w:"180px",as:"a",href:`tel:${j.value}`,children:"Call Ambulance"})]})]}):null})}const HomePage=reactExports.lazy(()=>__vitePreload(()=>import("./HomePage-BhFu0V9O.js"),__vite__mapDeps([0,1,2,3,4,5]))),Doctors=reactExports.lazy(()=>__vitePreload(()=>import("./Doctors-C-g8NhI4.js"),__vite__mapDeps([6,2,7,8,1,5,9]))),Doctor=reactExports.lazy(()=>__vitePreload(()=>import("./Doctor-DqJ_VBtV.js"),__vite__mapDeps([10,11,12,13,2,3,4,5]))),NewAppointment=reactExports.lazy(()=>__vitePreload(()=>import("./NewAppoinment-YMFgHmhH.js"),__vite__mapDeps([14,11,12,13,15,3,16,17]))),Department=reactExports.lazy(()=>__vitePreload(()=>import("./Department-K07iNNVe.js"),__vite__mapDeps([18,2,1,5,9]))),AppointmentSuccess=reactExports.lazy(()=>__vitePreload(()=>import("./AppoinmentSuccess-Ch8k19j7.js"),__vite__mapDeps([19,20]))),LabTests=reactExports.lazy(()=>__vitePreload(()=>import("./LabTests-D3s6j9H9.js"),__vite__mapDeps([21,22,1,5,9]))),NewAppoinmentsByDoctor=reactExports.lazy(()=>__vitePreload(()=>import("./NewAppoinmentsByDoctor-564T38V5.js"),__vite__mapDeps([23,15,12,3,16,17]))),LabTestDetails=reactExports.lazy(()=>__vitePreload(()=>import("./LabTestDetails-CC2a3Bh_.js"),__vite__mapDeps([24,22,20]))),Appointments=reactExports.lazy(()=>__vitePreload(()=>import("./Appoinments-CAwk6Q6W.js"),__vite__mapDeps([25,26,20]))),AppointmentDetails=reactExports.lazy(()=>__vitePreload(()=>import("./AppointmentDetails-DwyOVIYA.js"),__vite__mapDeps([27,26,20,2,28,29,7,17]))),Cart=reactExports.lazy(()=>__vitePreload(()=>import("./Cart-1vKYoXjM.js"),__vite__mapDeps([30,22,15,12,7,16]))),Products=reactExports.lazy(()=>__vitePreload(()=>import("./Products-DKNy10AK.js"),__vite__mapDeps([31,22,1]))),ProductDetails=reactExports.lazy(()=>__vitePreload(()=>import("./ProductDetails-x5UXZ9sh.js"),__vite__mapDeps([32,3,4,22,33,5,9]))),Orders=reactExports.lazy(()=>__vitePreload(()=>import("./Orders-MBRZxdIh.js"),[])),OrderDetails=reactExports.lazy(()=>__vitePreload(()=>import("./OrderDetails-BtGMwEyy.js"),__vite__mapDeps([34,20]))),Profile=reactExports.lazy(()=>__vitePreload(()=>import("./Profile-Bzg05Lgl.js"),__vite__mapDeps([35,15,7,28]))),Login=reactExports.lazy(()=>__vitePreload(()=>import("./Login-DkaLjszk.js"),__vite__mapDeps([36,12,13]))),Vitals=reactExports.lazy(()=>__vitePreload(()=>import("./Vitals-BuW64z6S.js"),__vite__mapDeps([37,38,39,15,40,17]))),Files=reactExports.lazy(()=>__vitePreload(()=>import("./Files-Ds6F8Vo3.js"),__vite__mapDeps([41,29,42,7,8,17]))),Prescriptions=reactExports.lazy(()=>__vitePreload(()=>import("./Prescriptions-BA8g4JNS.js"),__vite__mapDeps([43,29,42,7,8,17]))),Webpage=reactExports.lazy(()=>__vitePreload(()=>import("./Webpage-CJR_Pj8U.js"),[])),FamilyMember=reactExports.lazy(()=>__vitePreload(()=>import("./FamilyMember-BbVKNFdE.js"),__vite__mapDeps([44,15,12,39,38,40,7,17]))),Signup=reactExports.lazy(()=>__vitePreload(()=>import("./Signup-CY8uWC6D.js"),__vite__mapDeps([45,15,12,13]))),FamilyMembers=reactExports.lazy(()=>__vitePreload(()=>import("./FamilyMembers-BkAeHXCt.js"),__vite__mapDeps([46,15,12,17]))),BloodPressure=reactExports.lazy(()=>__vitePreload(()=>import("./BloodPressure-ZI1H-yVP.js").then(i=>i.j),__vite__mapDeps([39,15]))),ContactUs=reactExports.lazy(()=>__vitePreload(()=>import("./ContactUs-DGKXPXUF.js"),__vite__mapDeps([47,15,1,28]))),ErrorPage$2=reactExports.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>ErrorPage$1),void 0)),TechnicalError=reactExports.lazy(()=>__vitePreload(()=>import("./TechnicalIssue-Cf9Nwyrf.js"),[]));function Main(){const i=useLocation(),{settingsData:s,settingsLoading:o,settingsError:a}=useSettingsData();reactExports.useEffect(()=>{window.scrollTo(0,0)},[i]),reactExports.useEffect(()=>{const $=s==null?void 0:s.find(_e=>_e.id_name==="fav_icon"),j=s==null?void 0:s.find(_e=>_e.id_name==="clinic_name");reactExports.startTransition(()=>{document.title=(j==null?void 0:j.value)||"document";const _e=document.querySelector('link[rel="icon"]')||document.createElement("link");_e.type="image/x-icon",_e.rel="icon",_e.href=`${imageBaseURL}/${$==null?void 0:$.value}`,document.getElementsByTagName("head")[0].appendChild(_e)})},[s]);const _=s==null?void 0:s.find($=>$.id_name==="web_technical_issue_enable");return o?jsxRuntimeExports.jsx(Loading,{}):!s||a?jsxRuntimeExports.jsx(ErrorPage$2,{}):jsxRuntimeExports.jsx("div",{children:(_==null?void 0:_.value)==="true"?jsxRuntimeExports.jsxs(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Loading,{}),children:[" ",jsxRuntimeExports.jsx(TechnicalError,{})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ContactMarqee,{}),jsxRuntimeExports.jsx(TopbarNew,{}),jsxRuntimeExports.jsxs(Box,{pb:20,children:[" ",jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(HomePage,{})}),jsxRuntimeExports.jsx(Route,{path:"/home",element:jsxRuntimeExports.jsx(HomePage,{})}),jsxRuntimeExports.jsx(Route,{path:"/doctors",element:jsxRuntimeExports.jsx(Doctors,{})}),jsxRuntimeExports.jsx(Route,{path:"/doctor/:id",element:jsxRuntimeExports.jsx(Doctor,{})}),jsxRuntimeExports.jsx(Route,{path:"/book-appointment",element:jsxRuntimeExports.jsx(NewAppointment,{})}),jsxRuntimeExports.jsx(Route,{path:"/book-appointment/:doctor/:appoinType",element:jsxRuntimeExports.jsx(NewAppoinmentsByDoctor,{})}),jsxRuntimeExports.jsx(Route,{path:"/appointment-success/:id",element:jsxRuntimeExports.jsx(AppointmentSuccess,{})}),jsxRuntimeExports.jsx(Route,{path:"/department/:name/:id",element:jsxRuntimeExports.jsx(Department,{})}),jsxRuntimeExports.jsx(Route,{path:"/lab-tests",element:jsxRuntimeExports.jsx(LabTests,{})})," ",jsxRuntimeExports.jsx(Route,{path:"/lab-test/:id",element:jsxRuntimeExports.jsx(LabTestDetails,{})}),jsxRuntimeExports.jsx(Route,{path:"/appointments",element:jsxRuntimeExports.jsx(Appointments,{})}),jsxRuntimeExports.jsx(Route,{path:"/appointment/:id",element:jsxRuntimeExports.jsx(AppointmentDetails,{})}),jsxRuntimeExports.jsx(Route,{path:"/cart",element:jsxRuntimeExports.jsx(Cart,{})}),jsxRuntimeExports.jsx(Route,{path:"/products",element:jsxRuntimeExports.jsx(Products,{})}),jsxRuntimeExports.jsx(Route,{path:"/product/:name/:id",element:jsxRuntimeExports.jsx(ProductDetails,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals",element:jsxRuntimeExports.jsx(Vitals,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals/blood-pressure",element:jsxRuntimeExports.jsx(BloodPressure,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals/blood-sugar",element:jsxRuntimeExports.jsx(Vitals,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals/weight",element:jsxRuntimeExports.jsx(Vitals,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals/temperature",element:jsxRuntimeExports.jsx(Vitals,{})}),jsxRuntimeExports.jsx(Route,{path:"/vitals/spo2",element:jsxRuntimeExports.jsx(Vitals,{})}),jsxRuntimeExports.jsx(Route,{path:"/orders",element:jsxRuntimeExports.jsx(Orders,{})}),jsxRuntimeExports.jsx(Route,{path:"/order/:id",element:jsxRuntimeExports.jsx(OrderDetails,{})}),jsxRuntimeExports.jsx(Route,{path:"/profile",element:jsxRuntimeExports.jsx(Profile,{})}),jsxRuntimeExports.jsx(Route,{path:"/family-members",element:jsxRuntimeExports.jsx(FamilyMembers,{})}),jsxRuntimeExports.jsx(Route,{path:"/family-member/:id",element:jsxRuntimeExports.jsx(FamilyMember,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/Login",element:jsxRuntimeExports.jsx(Login,{relode:!0})}),jsxRuntimeExports.jsx(Route,{path:"/signup",element:jsxRuntimeExports.jsx(Signup,{relode:!0})}),jsxRuntimeExports.jsx(Route,{path:"/contact-us",element:jsxRuntimeExports.jsx(ContactUs,{})}),jsxRuntimeExports.jsx(Route,{path:"/files",element:jsxRuntimeExports.jsx(Files,{})}),jsxRuntimeExports.jsx(Route,{path:"/prescriptions",element:jsxRuntimeExports.jsx(Prescriptions,{})}),jsxRuntimeExports.jsx(Route,{path:"/stripe-payment",element:jsxRuntimeExports.jsx(StripePaymentProcess,{})}),jsxRuntimeExports.jsx(Route,{path:"/about-us",element:jsxRuntimeExports.jsx(Webpage,{id:1})}),jsxRuntimeExports.jsx(Route,{path:"/privacy-policy",element:jsxRuntimeExports.jsx(Webpage,{id:2})}),jsxRuntimeExports.jsx(Route,{path:"/terms-and-conditions",element:jsxRuntimeExports.jsx(Webpage,{id:3})}),jsxRuntimeExports.jsx(Route,{path:"/payment-policy",element:jsxRuntimeExports.jsx(Webpage,{id:4})}),jsxRuntimeExports.jsx(Route,{path:"/legal",element:jsxRuntimeExports.jsx(Webpage,{id:5})})]})})]}),jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Footer,{})})]})})}var propTypes={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function i(a,_,$,j,_e,et){if(et!==ReactPropTypesSecret){var tt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw tt.name="Invariant Violation",tt}}i.isRequired=i;function s(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return o.PropTypes=o,o};propTypes.exports=factoryWithThrowingShims();var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports),ErrorPage=()=>{const i=useColorModeValue("gray.700","gray.300");return reactExports.useEffect(()=>{document.title="500 Internal Server Error"},[]),jsxRuntimeExports.jsxs(Box,{textAlign:"center",py:10,px:6,bg:useColorModeValue("gray.50","gray.800"),minH:"100vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[jsxRuntimeExports.jsx(Image$1,{src:"/broken.gif",alt:"Error Illustration",boxSize:"200px",mb:6}),jsxRuntimeExports.jsxs(Heading,{as:"h1",size:"2xl",color:i,children:[jsxRuntimeExports.jsx(Text,{fontSize:"6xl",fontWeight:"bold",color:"red.500",children:"500"}),"Internal Server Error"]}),jsxRuntimeExports.jsx(Text,{fontSize:"lg",mt:4,color:i,children:"Oops! Something went wrong on our end. We are currently working on fixing the issue."}),jsxRuntimeExports.jsx(Text,{fontSize:"md",mt:2,color:i,children:"Please try refreshing the page, or you can return to the homepage."}),jsxRuntimeExports.jsx(Button,{colorScheme:"blue",mt:6,onClick:()=>window.location.reload("/aaa"),children:"Try Again"})]})},ErrorPage$1=Object.freeze(Object.defineProperty({__proto__:null,default:ErrorPage},Symbol.toStringTag,{value:"Module"}));class ErrorBoundary extends React$1.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(s){return console.log(s),{hasError:!0}}componentDidCatch(s,o){console.error("Error caught in ErrorBoundary:",s,o)}render(){return this.state.hasError?jsxRuntimeExports.jsx(ErrorPage,{}):this.props.children}}ErrorBoundary.propTypes={children:PropTypes.node.isRequired};const WhatsAppButton=()=>{const{settingsData:i}=useSettingsData(),s=i==null?void 0:i.find(a=>a.id_name==="whatsapp"),o=()=>{const $=`https://wa.me/${s.value}?text=${encodeURIComponent("Hello! I would like to book an appointment at your hospital. Could you please guide me through the process?")}`;window.open($,"_blank")};return jsxRuntimeExports.jsx(Box,{position:"fixed",bottom:"20px",right:"20px",zIndex:"1000",onClick:o,cursor:"pointer",children:jsxRuntimeExports.jsx(Image$1,{src:"/whatsapp.png",alt:"WhatsApp",boxSize:"40px"})})};function App(){const i=new QueryClient({defaultOptions:{queries:{staleTime:8e4,refetchOnWindowFocus:!0}}});return jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsxs(QueryClientProvider,{client:i,children:[" ",jsxRuntimeExports.jsx(Main,{}),jsxRuntimeExports.jsx(WhatsAppButton,{})]})})}localStorage.getItem("chakra-ui-color-mode")==="dark"&&localStorage.setItem("chakra-ui-color-mode","light");client.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(React$1.StrictMode,{children:jsxRuntimeExports.jsx(ChakraProvider,{theme,children:jsxRuntimeExports.jsxs(BrowserRouter,{children:[" ",jsxRuntimeExports.jsx(App,{})]})})}));export{FaTwitter as $,AiOutlineArrowLeft as A,Box as B,FaRegHospital as C,Accordion as D,ErrorPage as E,Flex as F,Grid as G,Heading as H,Icon as I,AccordionItem as J,AccordionButton as K,Link as L,MdHealthAndSafety as M,AccordionPanel as N,Loading as O,InputGroup as P,Input as Q,Divider as R,Skeleton as S,Text as T,FaUserAlt as U,Alert as V,AlertIcon as W,AlertTitle as X,IconButton as Y,FaInstagram as Z,FaFacebook as _,useAccordionContext as a,AlertDialogContent as a$,FaYoutube as a0,createIcon as a1,Avatar as a2,VStack as a3,useParams as a4,useNavigate as a5,useDisclosure as a6,user as a7,AnimatePresence as a8,motion as a9,ModalCloseButton as aA,ModalBody as aB,Link$1 as aC,propTypesExports$1 as aD,Center as aE,useMutation as aF,BiCheckCircle as aG,BiRightArrowCircle as aH,chakra as aI,FaListAlt as aJ,FaClock as aK,FaHourglassHalf as aL,FaCheck as aM,FaTimes as aN,FaCalendarAlt as aO,FaTimesCircle as aP,FaUserCheck as aQ,ModalHeader as aR,ModalFooter as aS,IoMdRefresh as aT,MdOutlineLogin as aU,api as aV,AiOutlineDownload as aW,FaFileDownload as aX,FaDirections as aY,AiOutlineRight as aZ,AlertDialog as a_,MdHandshake as aa,BsFillCameraVideoFill as ab,currency as ac,useToast as ad,BsFillMenuButtonWideFill as ae,CgFileDocument as af,BsFillClipboardCheckFill as ag,showToast as ah,useQueryClient as ai,PaymentGetwayData as aj,hooks as ak,Stack as al,StripePaymentController as am,RazorpayPaymentController as an,FormControl as ao,FormLabel as ap,InputLeftAddon as aq,Select as ar,BsPersonAdd as as,FaUser as at,SimpleGrid as au,ADD as av,GenIcon as aw,Modal as ax,ModalOverlay as ay,ModalContent as az,useAccordionStyles as b,PropTypes$1 as b$,BsStarFill as b0,BsStarHalf as b1,BsStar as b2,PropTypes as b3,createContext as b4,useFormControlProps as b5,omit as b6,useCallbackRef$1 as b7,useSafeLayoutEffect$2 as b8,useUpdateEffect as b9,useStyleConfig as bA,BiEdit as bB,useColorModeValue as bC,BsPerson as bD,BsPhone as bE,BsEnvelope as bF,useTheme$1 as bG,BiDonateHeart as bH,MdBloodtype as bI,FaWeight as bJ,FaThermometer as bK,FaUsers as bL,AiFillCaretDown as bM,AiFillCaretRight as bN,NotFoundPage as bO,ChakraProvider as bP,theme$1 as bQ,UPDATE as bR,AiFillEdit as bS,BiTrash as bT,useInputGroupStyles as bU,__rest as bV,FaUserFriends as bW,Spinner as bX,FaTrash as bY,createStylesContext as bZ,ISD_CODES as b_,callAllHandlers as ba,dataAttr as bb,mergeRefs as bc,visuallyHiddenStyle as bd,forwardRef as be,useMultiStyleConfig as bf,omitThemingProps as bg,callAll as bh,compact as bi,keyframes$1 as bj,createDescendantContext as bk,useControllableState as bl,useClickable as bm,getValidChildren as bn,lazyDisclosure as bo,defineStyle as bp,reactDomExports as bq,BiSearch as br,BsFillTelephoneFill as bs,IoMdWallet as bt,isObject$2 as bu,useFormControlContext as bv,ariaAttr as bw,split as bx,layoutPropNames as by,React$1 as bz,cx as c,BiLocationPlus as c0,IoMdCall as c1,FaEnvelope as c2,AlertDescription as c3,mapResponsive as c4,useFormControl as c5,useQuery as d,Image$1 as e,GET as f,commonjsGlobal as g,getAugmentedNamespace as h,imageBaseURL as i,jsxRuntimeExports as j,getDefaultExportFromCjs as k,Button as l,AiOutlineArrowRight as m,HStack as n,useTheme as o,useSettingsData as p,BiCalendar as q,reactExports as r,FaHospitalAlt as s,FaHandHoldingMedical as t,useAccordionItemContext as u,List as v,ListItem as w,ListIcon as x,FaCheckCircle as y,IoMdPeople as z};