lawgic-dev-kit 0.14.5 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/LoadingProgress/LoadingProgress.d.ts +12 -0
- package/dist/components/atoms/LoadingProgress/LoadingProgress.js +71 -0
- package/dist/components/atoms/LoadingProgress/index.d.ts +1 -0
- package/dist/components/atoms/UploadContainer/UploadContainer.js +79 -51
- package/dist/components/atoms/UploadContainer/UploadContainer.types.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/index.js +65 -63
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +40 -40
- package/dist/src/components/atoms/LoadingProgress/LoadingProgress.d.ts +12 -0
- package/dist/src/components/atoms/LoadingProgress/index.d.ts +1 -0
- package/dist/src/components/atoms/UploadContainer/UploadContainer.types.d.ts +34 -0
- package/dist/src/components/atoms/index.d.ts +35 -0
- package/package.json +1 -1
- package/dist/src/components/atoms/CenterModal/CenterModal.types.d.ts +0 -6
- package/dist/src/lab/LaboratoryLayout.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(oe,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-hook-form"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","react-dom"],I):(oe=typeof globalThis<"u"?globalThis:oe||self,I(oe.lawgicDevKit={},oe.React,oe.reactHookForm,oe.ReactDOM))})(this,function(oe,I,hr,fT){"use strict";function Mm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Z=Mm(I),dT=Mm(fT);var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ea={exports:{}},Rs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Im;function
|
|
9
|
+
*/var Im;function hT(){if(Im)return Rs;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Rs.Fragment=t,Rs.jsx=n,Rs.jsxs=n,Rs}var Ls={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dm;function
|
|
17
|
+
*/var Dm;function mT(){return Dm||(Dm=1,process.env.NODE_ENV!=="production"&&function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===Q?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case v:return"Fragment";case w:return"Profiler";case E:return"StrictMode";case A:return"Suspense";case R:return"SuspenseList";case Y:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case S:return"Portal";case O:return(M.displayName||"Context")+".Provider";case P:return(M._context.displayName||"Context")+".Consumer";case $:var N=M.render;return M=M.displayName,M||(M=N.displayName||N.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return N=M.displayName||null,N!==null?N:e(M.type)||"Memo";case F:N=M._payload,M=M._init;try{return e(M(N))}catch{}}return null}function t(M){return""+M}function n(M){try{t(M);var N=!1}catch{N=!0}if(N){N=console;var K=N.error,ee=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return K.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ee),t(M)}}function r(M){if(M===v)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===F)return"<...>";try{var N=e(M);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var M=te.A;return M===null?null:M.getOwner()}function o(){return Error("react-stack-top-frame")}function a(M){if(me.call(M,"key")){var N=Object.getOwnPropertyDescriptor(M,"key").get;if(N&&N.isReactWarning)return!1}return M.key!==void 0}function c(M,N){function K(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}K.isReactWarning=!0,Object.defineProperty(M,"key",{get:K,configurable:!0})}function u(){var M=e(this.type);return ie[M]||(ie[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function d(M,N,K,ee,ue,X,ce,he){return K=X.ref,M={$$typeof:y,type:M,key:N,props:X,_owner:ue},(K!==void 0?K:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:u}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function h(M,N,K,ee,ue,X,ce,he){var ae=N.children;if(ae!==void 0)if(ee)if(de(ae)){for(ee=0;ee<ae.length;ee++)m(ae[ee]);Object.freeze&&Object.freeze(ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m(ae);if(me.call(N,"key")){ae=e(M);var ge=Object.keys(N).filter(function(Ue){return Ue!=="key"});ee=0<ge.length?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}",H[ae+ee]||(ge=0<ge.length?"{"+ge.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,ee,ae,ge,ae),H[ae+ee]=!0)}if(ae=null,K!==void 0&&(n(K),ae=""+K),a(N)&&(n(N.key),ae=""+N.key),"key"in N){K={};for(var Ce in N)Ce!=="key"&&(K[Ce]=N[Ce])}else K=N;return ae&&c(K,typeof M=="function"?M.displayName||M.name||"Unknown":M),d(M,ae,X,ue,i(),K,ce,he)}function m(M){typeof M=="object"&&M!==null&&M.$$typeof===y&&M._store&&(M._store.validated=1)}var g=I,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),O=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),Q=Symbol.for("react.client.reference"),te=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=Object.prototype.hasOwnProperty,de=Array.isArray,le=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(M){return M()}};var re,ie={},B=g["react-stack-bottom-frame"].bind(g,o)(),U=le(r(o)),H={};Ls.Fragment=v,Ls.jsx=function(M,N,K,ee,ue){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(M,N,K,!1,ee,ue,X?Error("react-stack-top-frame"):B,X?le(r(M)):U)},Ls.jsxs=function(M,N,K,ee,ue){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(M,N,K,!0,ee,ue,X?Error("react-stack-top-frame"):B,X?le(r(M)):U)}}()),Ls}var $m;function pT(){return $m||($m=1,process.env.NODE_ENV==="production"?ea.exports=hT():ea.exports=mT()),ea.exports}var b=pT();/*!
|
|
23
23
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
24
24
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
25
25
|
* Copyright 2024 Fonticons, Inc.
|
|
26
|
-
*/function pT(e,t,n){return(t=yT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){pT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yT(e){var t=gT(e,"string");return typeof t=="symbol"?t:t+""}const Lm=()=>{};let uc={},Nm={},km=null,Fm={mark:Lm,measure:Lm};try{typeof window<"u"&&(uc=window),typeof document<"u"&&(Nm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(Fm=performance)}catch{}const{userAgent:jm=""}=uc.navigator||{},mr=uc,Xe=Nm,Vm=km,ta=Fm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~jm.indexOf("MSIE")||~jm.indexOf("Trident/");var vT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,bT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Um={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},xT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Wm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",na="duotone",wT="sharp",ST="sharp-duotone",zm=[wt,na,wT,ST],TT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},ET={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},CT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),PT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},AT=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},OT=["kit"],MT={kit:{"fa-kit":"fak"}},_T=["fak","fakd"],IT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ra={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},DT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],$T=["fak","fa-kit","fakd","fa-kit-duotone"],RT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},LT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},NT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},fc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},kT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],dc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...DT,...kT],FT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],jT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),VT=[...Object.keys(NT),...FT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ra.GROUP,ra.SWAP_OPACITY,ra.PRIMARY,ra.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(jT.map(e=>"w-".concat(e))),BT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",hc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",mc="data-fa-pseudo-element",UT="data-fa-pseudo-element-pending",pc="data-prefix",gc="data-icon",Xm="fontawesome-i2svg",WT="async",zT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ns(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=J({},Um);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Um[wt]),Gm.kit),Gm["kit-duotone"]);const GT=Ns(Jm),yc=J({},PT);yc[wt]=J(J(J(J({},{duotone:"fad"}),yc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=Ns(yc),vc=J({},fc);vc[wt]=J(J({},vc[wt]),IT.kit);const bc=Ns(vc),xc=J({},LT);xc[wt]=J(J({},xc[wt]),MT.kit),Ns(xc);const YT=vT,ep="fa-layers-text",HT=bT,qT=J({},TT);Ns(qT);const KT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],wc=xT,XT=[...OT,...VT],ks=mr.FontAwesomeConfig||{};function ZT(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function JT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=JT(ZT(n));i!=null&&(ks[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ks.familyPrefix&&(ks.cssPrefix=ks.familyPrefix);const Pi=J(J({},tp),ks);Pi.autoReplaceSvg||(Pi.observeMutations=!1);const ve={};Object.keys(tp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Pi[e]=t,Fs.forEach(n=>n(ve))},get:function(){return Pi[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Pi.cssPrefix=e,Fs.forEach(t=>t(ve))},get:function(){return Pi.cssPrefix}}),mr.FontAwesomeConfig=ve;const Fs=[];function QT(e){return Fs.push(e),()=>{Fs.splice(Fs.indexOf(e),1)}}const pr=hc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function eE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function js(){let e=12,t="";for(;e-- >0;)t+=tE[Math.random()*62|0];return t}function Ai(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Sc(e){return e.classList?Ai(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function nE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function ia(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Tc(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function rE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function iE(e){let{transform:t,width:n=hc,height:r=hc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var sE=`:root, :host {
|
|
26
|
+
*/function gT(e,t,n){return(t=vT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){gT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vT(e){var t=yT(e,"string");return typeof t=="symbol"?t:t+""}const Lm=()=>{};let uc={},Nm={},km=null,Fm={mark:Lm,measure:Lm};try{typeof window<"u"&&(uc=window),typeof document<"u"&&(Nm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(Fm=performance)}catch{}const{userAgent:jm=""}=uc.navigator||{},mr=uc,Xe=Nm,Vm=km,ta=Fm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~jm.indexOf("MSIE")||~jm.indexOf("Trident/");var bT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,xT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Um={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},wT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Wm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",na="duotone",ST="sharp",TT="sharp-duotone",zm=[wt,na,ST,TT],ET={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},CT={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},PT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),AT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},OT=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},MT=["kit"],_T={kit:{"fa-kit":"fak"}},IT=["fak","fakd"],DT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ra={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},$T=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],RT=["fak","fa-kit","fakd","fa-kit-duotone"],LT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},NT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},kT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},fc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},FT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],dc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...$T,...FT],jT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],VT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),BT=[...Object.keys(kT),...jT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ra.GROUP,ra.SWAP_OPACITY,ra.PRIMARY,ra.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(VT.map(e=>"w-".concat(e))),UT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",hc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",mc="data-fa-pseudo-element",WT="data-fa-pseudo-element-pending",pc="data-prefix",gc="data-icon",Xm="fontawesome-i2svg",zT="async",GT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ns(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=J({},Um);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Um[wt]),Gm.kit),Gm["kit-duotone"]);const YT=Ns(Jm),yc=J({},AT);yc[wt]=J(J(J(J({},{duotone:"fad"}),yc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=Ns(yc),vc=J({},fc);vc[wt]=J(J({},vc[wt]),DT.kit);const bc=Ns(vc),xc=J({},NT);xc[wt]=J(J({},xc[wt]),_T.kit),Ns(xc);const HT=bT,ep="fa-layers-text",qT=xT,KT=J({},ET);Ns(KT);const XT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],wc=wT,ZT=[...MT,...BT],ks=mr.FontAwesomeConfig||{};function JT(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function QT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=QT(JT(n));i!=null&&(ks[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ks.familyPrefix&&(ks.cssPrefix=ks.familyPrefix);const Pi=J(J({},tp),ks);Pi.autoReplaceSvg||(Pi.observeMutations=!1);const ve={};Object.keys(tp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Pi[e]=t,Fs.forEach(n=>n(ve))},get:function(){return Pi[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Pi.cssPrefix=e,Fs.forEach(t=>t(ve))},get:function(){return Pi.cssPrefix}}),mr.FontAwesomeConfig=ve;const Fs=[];function eE(e){return Fs.push(e),()=>{Fs.splice(Fs.indexOf(e),1)}}const pr=hc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function tE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const nE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function js(){let e=12,t="";for(;e-- >0;)t+=nE[Math.random()*62|0];return t}function Ai(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Sc(e){return e.classList?Ai(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function rE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function ia(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Tc(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function iE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function sE(e){let{transform:t,width:n=hc,height:r=hc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var oE=`:root, :host {
|
|
27
27
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
28
28
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
29
29
|
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
@@ -576,41 +576,41 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
576
576
|
.svg-inline--fa mask .fa-primary,
|
|
577
577
|
.svg-inline--fa mask .fa-secondary {
|
|
578
578
|
fill: black;
|
|
579
|
-
}`;function rp(){const e=qm,t=Km,n=ve.cssPrefix,r=ve.replacementClass;let i=sE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Ec(){ve.autoAddCss&&!ip&&(eE(rp()),ip=!0)}var oE={mixout(){return{dom:{css:rp,insertCss:Ec}}},hooks(){return{beforeDOMElementCreation(){Ec()},beforeI2svg(){Ec()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),sa=1,sp.map(e=>e())};let sa=!1;zn&&(sa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),sa||Xe.addEventListener("DOMContentLoaded",op));function aE(e){zn&&(sa?setTimeout(e,0):sp.push(e))}function Vs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(nE(n),">").concat(r.map(Vs).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Cc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function lE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Pc(e){const t=lE(e);return t.length===1?t[0].toString(16):null}function cE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ac(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Ac("fa",t)}const{styles:Bs,shims:uE}=Pn,cp=Object.keys(bc),fE=cp.reduce((e,t)=>(e[t]=Object.keys(bc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function dE(e){return~XT.indexOf(e)}function hE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!dE(i)?i:null}const pp=()=>{const e=r=>Cc(Bs,(i,o,a)=>(i[a]=Cc(o,r,{}),i),{});up=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Bs||ve.autoFetchSvg,n=Cc(uE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Oc=oa(ve.styleDefault,{family:ve.familyDefault})};QT(e=>{Oc=oa(e.styleDefault,{family:ve.familyDefault})}),pp();function Mc(e,t){return(up[e]||{})[t]}function mE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function pE(e){const t=hp[e],n=Mc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function gE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>fE[r].includes(i)))&&(t=r)}),t}function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=GT[n][e];if(n===na&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function yE(e){let t=[],n=null;return e.forEach(r=>{const i=hE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=dc.concat($T),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!dc.includes(m))),c=o.filter(m=>(r=m,!Wm.includes(m))),[u=null]=c,d=gE(o),h=J(J({},yE(a)),{},{prefix:oa(u,{family:d})});return J(J(J({},h),wE({values:e,family:d,styles:Bs,config:ve,canonical:h,givenPrefix:r})),vE(n,r,h))}function vE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Yr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Bs.far&&Bs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const bE=zm.filter(e=>e!==wt||e!==na),xE=Object.keys(fc).filter(e=>e!==wt).map(e=>Object.keys(fc[e])).flat();function wE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===na,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&bE.includes(n)&&(Object.keys(o).find(g=>xE.includes(g))||a.autoFetchSvg)){const g=CT.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class SE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=J(J({},this.definitions[o]||{}),i[o]),Ac(o,i[o]);const a=bc[wt][o];a&&Ac(a,i[o]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let bp=[],Oi={};const Mi={},TE=Object.keys(Mi);function EE(e,t){let{mixoutsTo:n}=t;return bp=e,Oi={},Object.keys(Mi).forEach(r=>{TE.indexOf(r)===-1&&delete Mi[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Oi[a]||(Oi[a]=[]),Oi[a].push(o[a])})}r.provides&&r.provides(Mi)}),n}function _c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Oi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Oi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mi[e]?Mi[e].apply(null,t):void 0}function Ic(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new SE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,Hr("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,aE(()=>{CE({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=oa(e[0]);return{prefix:n,iconName:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(YT))){const t=aa(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:Ic,toHtml:Vs},CE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function la(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Vs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function PE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Tc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=ia(J(J({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function AE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:g,height:y}=n.found?n:t,S=_T.includes(r),v=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let E={children:[],attributes:J(J({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:v,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};m&&(E.attributes[Gr]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||js())},children:[c]}),delete E.attributes.title);const A=J(J({},E),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:J(J({},w),h.styles)}),{children:O,attributes:D}=n.found&&t.found?yr("generateAbstractMask",A)||{children:[],attributes:{}}:yr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=O,A.attributes=D,a?AE(A):PE(A)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=J(J(J({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Gr]="");const d=J({},a.styles);Tc(i)&&(d.transform=iE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=ia(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function OE(e){const{content:t,title:n,extra:r}=e,i=J(J(J({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ia(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:$c}=Pn;function Rc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const ME={found:!1,width:512,height:512};function _E(e,t){!Zm&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&$c[t]&&$c[t][e]){const o=$c[t][e];return r(Rc(o))}_E(e,t),r(J(J({},ME),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},Nc=ve.measurePerformance&&ta&&ta.mark&&ta.measure?ta:{mark:Sp,measure:Sp},Us='FA "6.7.2"',IE=e=>(Nc.mark("".concat(Us," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{Nc.mark("".concat(Us," ").concat(e," ends")),Nc.measure("".concat(Us," ").concat(e),"".concat(Us," ").concat(e," begins"),"".concat(Us," ").concat(e," ends"))};var kc={begin:IE,end:Tp};const ca=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function DE(e){const t=e.getAttribute?e.getAttribute(pc):null,n=e.getAttribute?e.getAttribute(gc):null;return t&&n}function $E(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function RE(){return ve.autoReplaceSvg===!0?ua.replace:ua[ve.autoReplaceSvg]||ua.replace}function LE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function NE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?LE:NE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Cp(o,{ceFn:n}))}),r}function kE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ua={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Gr)===null&&ve.keepOriginalSource){let n=Xe.createComment(kE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Sc(t).indexOf(ve.replacementClass))return ua.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Vs(o)).join(`
|
|
580
|
-
`);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ca;if(e.length===0)n();else{let r=Pp;ve.mutateApproach===
|
|
581
|
-
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function
|
|
579
|
+
}`;function rp(){const e=qm,t=Km,n=ve.cssPrefix,r=ve.replacementClass;let i=oE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Ec(){ve.autoAddCss&&!ip&&(tE(rp()),ip=!0)}var aE={mixout(){return{dom:{css:rp,insertCss:Ec}}},hooks(){return{beforeDOMElementCreation(){Ec()},beforeI2svg(){Ec()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),sa=1,sp.map(e=>e())};let sa=!1;zn&&(sa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),sa||Xe.addEventListener("DOMContentLoaded",op));function lE(e){zn&&(sa?setTimeout(e,0):sp.push(e))}function Vs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(rE(n),">").concat(r.map(Vs).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Cc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function cE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Pc(e){const t=cE(e);return t.length===1?t[0].toString(16):null}function uE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ac(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Ac("fa",t)}const{styles:Bs,shims:fE}=Pn,cp=Object.keys(bc),dE=cp.reduce((e,t)=>(e[t]=Object.keys(bc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function hE(e){return~ZT.indexOf(e)}function mE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!hE(i)?i:null}const pp=()=>{const e=r=>Cc(Bs,(i,o,a)=>(i[a]=Cc(o,r,{}),i),{});up=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Bs||ve.autoFetchSvg,n=Cc(fE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Oc=oa(ve.styleDefault,{family:ve.familyDefault})};eE(e=>{Oc=oa(e.styleDefault,{family:ve.familyDefault})}),pp();function Mc(e,t){return(up[e]||{})[t]}function pE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function gE(e){const t=hp[e],n=Mc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function yE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>dE[r].includes(i)))&&(t=r)}),t}function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=YT[n][e];if(n===na&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function vE(e){let t=[],n=null;return e.forEach(r=>{const i=mE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=dc.concat(RT),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!dc.includes(m))),c=o.filter(m=>(r=m,!Wm.includes(m))),[u=null]=c,d=yE(o),h=J(J({},vE(a)),{},{prefix:oa(u,{family:d})});return J(J(J({},h),SE({values:e,family:d,styles:Bs,config:ve,canonical:h,givenPrefix:r})),bE(n,r,h))}function bE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Yr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Bs.far&&Bs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const xE=zm.filter(e=>e!==wt||e!==na),wE=Object.keys(fc).filter(e=>e!==wt).map(e=>Object.keys(fc[e])).flat();function SE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===na,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&xE.includes(n)&&(Object.keys(o).find(g=>wE.includes(g))||a.autoFetchSvg)){const g=PT.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class TE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=J(J({},this.definitions[o]||{}),i[o]),Ac(o,i[o]);const a=bc[wt][o];a&&Ac(a,i[o]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let bp=[],Oi={};const Mi={},EE=Object.keys(Mi);function CE(e,t){let{mixoutsTo:n}=t;return bp=e,Oi={},Object.keys(Mi).forEach(r=>{EE.indexOf(r)===-1&&delete Mi[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Oi[a]||(Oi[a]=[]),Oi[a].push(o[a])})}r.provides&&r.provides(Mi)}),n}function _c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Oi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Oi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mi[e]?Mi[e].apply(null,t):void 0}function Ic(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new TE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,Hr("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,lE(()=>{PE({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=oa(e[0]);return{prefix:n,iconName:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(HT))){const t=aa(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:Ic,toHtml:Vs},PE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function la(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Vs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function AE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Tc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=ia(J(J({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function OE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:g,height:y}=n.found?n:t,S=IT.includes(r),v=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let E={children:[],attributes:J(J({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:v,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};m&&(E.attributes[Gr]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||js())},children:[c]}),delete E.attributes.title);const P=J(J({},E),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:J(J({},w),h.styles)}),{children:O,attributes:$}=n.found&&t.found?yr("generateAbstractMask",P)||{children:[],attributes:{}}:yr("generateAbstractIcon",P)||{children:[],attributes:{}};return P.children=O,P.attributes=$,a?OE(P):AE(P)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=J(J(J({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Gr]="");const d=J({},a.styles);Tc(i)&&(d.transform=sE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=ia(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function ME(e){const{content:t,title:n,extra:r}=e,i=J(J(J({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ia(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:$c}=Pn;function Rc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const _E={found:!1,width:512,height:512};function IE(e,t){!Zm&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&$c[t]&&$c[t][e]){const o=$c[t][e];return r(Rc(o))}IE(e,t),r(J(J({},_E),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},Nc=ve.measurePerformance&&ta&&ta.mark&&ta.measure?ta:{mark:Sp,measure:Sp},Us='FA "6.7.2"',DE=e=>(Nc.mark("".concat(Us," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{Nc.mark("".concat(Us," ").concat(e," ends")),Nc.measure("".concat(Us," ").concat(e),"".concat(Us," ").concat(e," begins"),"".concat(Us," ").concat(e," ends"))};var kc={begin:DE,end:Tp};const ca=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function $E(e){const t=e.getAttribute?e.getAttribute(pc):null,n=e.getAttribute?e.getAttribute(gc):null;return t&&n}function RE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function LE(){return ve.autoReplaceSvg===!0?ua.replace:ua[ve.autoReplaceSvg]||ua.replace}function NE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function kE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?NE:kE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Cp(o,{ceFn:n}))}),r}function FE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ua={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Gr)===null&&ve.keepOriginalSource){let n=Xe.createComment(FE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Sc(t).indexOf(ve.replacementClass))return ua.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Vs(o)).join(`
|
|
580
|
+
`);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ca;if(e.length===0)n();else{let r=Pp;ve.mutateApproach===zT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=LE(),o=kc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Op(){Fc=!0}function jc(){Fc=!1}let fa=null;function Mp(e){if(!Vm||!ve.observeMutations)return;const{treeCallback:t=ca,nodeCallback:n=ca,pseudoElementsCallback:r=ca,observeMutationsRoot:i=Xe}=e;fa=new Vm(o=>{if(Fc)return;const a=gr();Ai(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Ep(c.target)&&~XT.indexOf(c.attributeName))if(c.attributeName==="class"&&$E(c.target)){const{prefix:u,iconName:d}=aa(Sc(c.target));c.target.setAttribute(pc,u||a),d&&c.target.setAttribute(gc,d)}else RE(c.target)&&n(c.target)})}),zn&&fa.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jE(){fa&&fa.disconnect()}function VE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function BE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=aa(Sc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=pE(i.prefix,e.innerText)||Mc(i.prefix,Pc(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function UE(e){const t=Ai(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||js()):(t["aria-hidden"]="true",t.focusable="false")),t}function WE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=BE(e),o=UE(e),a=_c("parseNodeAttributes",{},e);let c=t.styleParser?VE(e):[];return J({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:zE}=Pn;function Ip(e){const t=ve.autoReplaceSvg==="nest"?_p(e,{styleParser:!1}):_p(e);return~t.extra.classes.indexOf(ep)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function GE(){return[...OT,...dc]}function Dp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Xe.documentElement.classList,r=h=>n.add("".concat(Xm,"-").concat(h)),i=h=>n.remove("".concat(Xm,"-").concat(h)),o=ve.autoFetchSvg?GE():Wm.concat(Object.keys(zE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Gr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ai(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=kc.begin("onTree"),d=c.reduce((h,m)=>{try{const g=Ip(m);g&&h.push(g)}catch(g){Zm||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(g=>{Ap(g,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(g=>{u(),m(g)})})}function YE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function HE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Ic(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Ic(i||{})),e(r,J(J({},n),{},{mask:i}))}}const qE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:g,icon:y}=e;return la(J({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||js()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Rc(y),mask:i?Rc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:g,transform:J(J({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var KE={mixout(){return{icon:HE(qE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Dp,e.nodeCallback=YE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return Dp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((g,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[v,E]=S;g([t,Dc({icons:{main:v,mask:E},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=ia(a);c.length>0&&(r.style=c);let u;return Tc(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},XE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return la({type:"layer"},()=>{Hr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},ZE={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return la({type:"counter",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),ME({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},JE={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return la({type:"text",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:J(J({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const QE=new RegExp('"',"ug"),$p=[1105920,1112319],Rp=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),CT),UT),LT),Vc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),eC=Object.keys(Vc).reduce((e,t)=>{const n=Vc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function tC(e){const t=e.replace(QE,""),n=uE(t,0),r=n>=$p[0]&&n<=$p[1],i=t.length===2?t[0]===t[1]:!1;return{value:Pc(i?t[0]:t),isSecondary:r||i}}function nC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Vc[n]||{})[i]||eC[n]}function Lp(e,t){const n="".concat(WT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Ai(e.children).filter(g=>g.getAttribute(mc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(qT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const g=c.getPropertyValue("content");let y=nC(u,h);const{value:S,isSecondary:v}=tC(g),E=d[0].startsWith("FontAwesome");let w=Mc(y,S),P=w;if(E){const O=gE(S);O.iconName&&O.prefix&&(w=O.iconName,y=O.prefix)}if(w&&!v&&(!a||a.getAttribute(pc)!==y||a.getAttribute(gc)!==P)){e.setAttribute(n,P),a&&e.removeChild(a);const O=WE(),{extra:$}=O;$.attributes[mc]=t,Lc(w,y).then(A=>{const R=Dc(J(J({},O),{},{icons:{main:A,mask:yp()},prefix:y,iconName:P,extra:$,watchable:!0})),j=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=R.map(F=>Vs(F)).join(`
|
|
581
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function rC(e){return Promise.all([Lp(e,"::before"),Lp(e,"::after")])}function iC(e){return e.parentNode!==document.head&&!~GT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(mc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Np(e){if(zn)return new Promise((t,n)=>{const r=Ai(e.querySelectorAll("*")).filter(iC).map(rC),i=kc.begin("searchPseudoElements");Op(),Promise.all(r).then(()=>{i(),jc(),t()}).catch(()=>{i(),jc(),n()})})}var sC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Np,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ve.searchPseudoElements&&Np(n)}}};let kp=!1;var oC={mixout(){return{dom:{unwatch(){Op(),kp=!0}}}},hooks(){return{bootstrap(){Mp(_c("mutationObserverCallbacks",{}))},noAuto(){jE()},watch(e){const{observeMutationsRoot:t}=e;kp?jc():Mp(_c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Fp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var aC={mixout(){return{parse:{transform:e=>Fp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Fp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},g={outer:a,inner:h,path:m};return{tag:"g",attributes:J({},g.outer),children:[{tag:"g",attributes:J({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},n.icon.attributes),g.path)}]}]}}}};const Bc={x:0,y:0,width:"100%",height:"100%"};function jp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function lC(e){return e.tag==="g"?e.children:[e]}var cC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?aa(n.split(" ").map(i=>i.trim())):yp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,g=iE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:J(J({},Bc),{},{fill:"white"})},S=d.children?{children:d.children.map(jp)}:{},v={tag:"g",attributes:J({},g.inner),children:[jp(J({tag:d.tag,attributes:J(J({},d.attributes),g.path)},S))]},E={tag:"g",attributes:J({},g.outer),children:[v]},w="mask-".concat(a||js()),P="clip-".concat(a||js()),O={tag:"mask",attributes:J(J({},Bc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,E]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:lC(m)},O]};return n.push($,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(w,")")},Bc)}),{children:n,attributes:r}}}},uC={provides(e){let t=!1;mr.matchMedia&&(t=mr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:J(J({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=J(J({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:J(J({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:J(J({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:J(J({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},fC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},dC=[aE,KE,XE,ZE,JE,sC,oC,aC,cC,uC,fC];CE(dC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const hC=zt.icon;zt.layer,zt.text,zt.counter;var da={exports:{}},ha={exports:{}},Fe={};/** @license React v16.13.1
|
|
582
582
|
* react-is.production.min.js
|
|
583
583
|
*
|
|
584
584
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
585
585
|
*
|
|
586
586
|
* This source code is licensed under the MIT license found in the
|
|
587
587
|
* LICENSE file in the root directory of this source tree.
|
|
588
|
-
*/var Vp;function
|
|
588
|
+
*/var Vp;function mC(){if(Vp)return Fe;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(A){if(typeof A=="object"&&A!==null){var R=A.$$typeof;switch(R){case t:switch(A=A.type,A){case u:case d:case r:case o:case i:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case S:case y:case a:return A;default:return R}}case n:return R}}}function $(A){return O(A)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=a,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=o,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(A){return $(A)||O(A)===u},Fe.isConcurrentMode=$,Fe.isContextConsumer=function(A){return O(A)===c},Fe.isContextProvider=function(A){return O(A)===a},Fe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},Fe.isForwardRef=function(A){return O(A)===h},Fe.isFragment=function(A){return O(A)===r},Fe.isLazy=function(A){return O(A)===S},Fe.isMemo=function(A){return O(A)===y},Fe.isPortal=function(A){return O(A)===n},Fe.isProfiler=function(A){return O(A)===o},Fe.isStrictMode=function(A){return O(A)===i},Fe.isSuspense=function(A){return O(A)===m},Fe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===o||A===i||A===m||A===g||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===y||A.$$typeof===a||A.$$typeof===c||A.$$typeof===h||A.$$typeof===E||A.$$typeof===w||A.$$typeof===P||A.$$typeof===v)},Fe.typeOf=O,Fe}var je={};/** @license React v16.13.1
|
|
589
589
|
* react-is.development.js
|
|
590
590
|
*
|
|
591
591
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
592
592
|
*
|
|
593
593
|
* This source code is licensed under the MIT license found in the
|
|
594
594
|
* LICENSE file in the root directory of this source tree.
|
|
595
|
-
*/var Bp;function
|
|
595
|
+
*/var Bp;function pC(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function O(ne){return typeof ne=="string"||typeof ne=="function"||ne===r||ne===d||ne===o||ne===i||ne===m||ne===g||typeof ne=="object"&&ne!==null&&(ne.$$typeof===S||ne.$$typeof===y||ne.$$typeof===a||ne.$$typeof===c||ne.$$typeof===h||ne.$$typeof===E||ne.$$typeof===w||ne.$$typeof===P||ne.$$typeof===v)}function $(ne){if(typeof ne=="object"&&ne!==null){var ye=ne.$$typeof;switch(ye){case t:var Ne=ne.type;switch(Ne){case u:case d:case r:case o:case i:case m:return Ne;default:var ft=Ne&&Ne.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return ye}}case n:return ye}}}var A=u,R=d,j=c,F=a,Y=t,Q=h,te=r,me=S,de=y,le=n,re=o,ie=i,B=m,U=!1;function H(ne){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(ne)||$(ne)===u}function M(ne){return $(ne)===d}function N(ne){return $(ne)===c}function K(ne){return $(ne)===a}function ee(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===t}function ue(ne){return $(ne)===h}function X(ne){return $(ne)===r}function ce(ne){return $(ne)===S}function he(ne){return $(ne)===y}function ae(ne){return $(ne)===n}function ge(ne){return $(ne)===o}function Ce(ne){return $(ne)===i}function Ue(ne){return $(ne)===m}je.AsyncMode=A,je.ConcurrentMode=R,je.ContextConsumer=j,je.ContextProvider=F,je.Element=Y,je.ForwardRef=Q,je.Fragment=te,je.Lazy=me,je.Memo=de,je.Portal=le,je.Profiler=re,je.StrictMode=ie,je.Suspense=B,je.isAsyncMode=H,je.isConcurrentMode=M,je.isContextConsumer=N,je.isContextProvider=K,je.isElement=ee,je.isForwardRef=ue,je.isFragment=X,je.isLazy=ce,je.isMemo=he,je.isPortal=ae,je.isProfiler=ge,je.isStrictMode=Ce,je.isSuspense=Ue,je.isValidElementType=O,je.typeOf=$}()),je}var Up;function Wp(){return Up||(Up=1,process.env.NODE_ENV==="production"?ha.exports=mC():ha.exports=pC()),ha.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var Wc,zp;function
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ne=Ue(he,Ce,ue,X,ce+"."+Ce,n);if(ne)return ne}return null}return E(N)}function le(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(le);if(M===null||c(M))return!0;var N=m(M);if(N){var K=N.call(M),
|
|
601
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
599
|
+
*/var Wc,zp;function gC(){if(zp)return Wc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var g=0;g<d.length;g++)n.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},Wc}var zc,Gp;function Gc(){if(Gp)return zc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var Yc,Yp;function Hp(){return Yp||(Yp=1,Yc=Function.call.bind(Object.prototype.hasOwnProperty)),Yc}var Hc,qp;function yC(){if(qp)return Hc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Gc(),n={},r=Hp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var g=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hc=i,Hc}var qc,Kp;function vC(){if(Kp)return qc;Kp=1;var e=Wp(),t=gC(),n=Gc(),r=Hp(),i=yC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return qc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var N=M&&(d&&M[d]||M[h]);if(typeof N=="function")return N}var g="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:P(),arrayOf:O,element:$(),elementType:A(),instanceOf:R,node:Q(),objectOf:F,oneOf:j,oneOfType:Y,shape:me,exact:de};function S(M,N){return M===N?M!==0||1/M===1/N:M!==M&&N!==N}function v(M,N){this.message=M,this.data=N&&typeof N=="object"?N:{},this.stack=""}v.prototype=Error.prototype;function E(M){if(process.env.NODE_ENV!=="production")var N={},K=0;function ee(X,ce,he,ae,ge,Ce,Ue){if(ae=ae||g,Ce=Ce||he,Ue!==n){if(u){var ne=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 ne.name="Invariant Violation",ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=ae+":"+he;!N[ye]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,K++)}}return ce[he]==null?X?ce[he]===null?new v("The "+ge+" `"+Ce+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new v("The "+ge+" `"+Ce+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:M(ce,he,ae,ge,Ce)}var ue=ee.bind(null,!1);return ue.isRequired=ee.bind(null,!0),ue}function w(M){function N(K,ee,ue,X,ce,he){var ae=K[ee],ge=ie(ae);if(ge!==M){var Ce=B(ae);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+Ce+"` supplied to `"+ue+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return E(N)}function P(){return E(a)}function O(M){function N(K,ee,ue,X,ce){if(typeof M!="function")return new v("Property `"+ce+"` of component `"+ue+"` has invalid PropType notation inside arrayOf.");var he=K[ee];if(!Array.isArray(he)){var ae=ie(he);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+ae+"` supplied to `"+ue+"`, expected an array."))}for(var ge=0;ge<he.length;ge++){var Ce=M(he,ge,ue,X,ce+"["+ge+"]",n);if(Ce instanceof Error)return Ce}return null}return E(N)}function $(){function M(N,K,ee,ue,X){var ce=N[K];if(!c(ce)){var he=ie(ce);return new v("Invalid "+ue+" `"+X+"` of type "+("`"+he+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return E(M)}function A(){function M(N,K,ee,ue,X){var ce=N[K];if(!e.isValidElementType(ce)){var he=ie(ce);return new v("Invalid "+ue+" `"+X+"` of type "+("`"+he+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return E(M)}function R(M){function N(K,ee,ue,X,ce){if(!(K[ee]instanceof M)){var he=M.name||g,ae=H(K[ee]);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+ae+"` supplied to `"+ue+"`, expected ")+("instance of `"+he+"`."))}return null}return E(N)}function j(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(K,ee,ue,X,ce){for(var he=K[ee],ae=0;ae<M.length;ae++)if(S(he,M[ae]))return null;var ge=JSON.stringify(M,function(Ue,ne){var ye=B(ne);return ye==="symbol"?String(ne):ne});return new v("Invalid "+X+" `"+ce+"` of value `"+String(he)+"` "+("supplied to `"+ue+"`, expected one of "+ge+"."))}return E(N)}function F(M){function N(K,ee,ue,X,ce){if(typeof M!="function")return new v("Property `"+ce+"` of component `"+ue+"` has invalid PropType notation inside objectOf.");var he=K[ee],ae=ie(he);if(ae!=="object")return new v("Invalid "+X+" `"+ce+"` of type "+("`"+ae+"` supplied to `"+ue+"`, expected an object."));for(var ge in he)if(r(he,ge)){var Ce=M(he,ge,ue,X,ce+"."+ge,n);if(Ce instanceof Error)return Ce}return null}return E(N)}function Y(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<M.length;N++){var K=M[N];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(K)+" at index "+N+"."),a}function ee(ue,X,ce,he,ae){for(var ge=[],Ce=0;Ce<M.length;Ce++){var Ue=M[Ce],ne=Ue(ue,X,ce,he,ae,n);if(ne==null)return null;ne.data&&r(ne.data,"expectedType")&&ge.push(ne.data.expectedType)}var ye=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new v("Invalid "+he+" `"+ae+"` supplied to "+("`"+ce+"`"+ye+"."))}return E(ee)}function Q(){function M(N,K,ee,ue,X){return le(N[K])?null:new v("Invalid "+ue+" `"+X+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return E(M)}function te(M,N,K,ee,ue){return new v((M||"React class")+": "+N+" type `"+K+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ue+"`.")}function me(M){function N(K,ee,ue,X,ce){var he=K[ee],ae=ie(he);if(ae!=="object")return new v("Invalid "+X+" `"+ce+"` of type `"+ae+"` "+("supplied to `"+ue+"`, expected `object`."));for(var ge in M){var Ce=M[ge];if(typeof Ce!="function")return te(ue,X,ce,ge,B(Ce));var Ue=Ce(he,ge,ue,X,ce+"."+ge,n);if(Ue)return Ue}return null}return E(N)}function de(M){function N(K,ee,ue,X,ce){var he=K[ee],ae=ie(he);if(ae!=="object")return new v("Invalid "+X+" `"+ce+"` of type `"+ae+"` "+("supplied to `"+ue+"`, expected `object`."));var ge=t({},K[ee],M);for(var Ce in ge){var Ue=M[Ce];if(r(M,Ce)&&typeof Ue!="function")return te(ue,X,ce,Ce,B(Ue));if(!Ue)return new v("Invalid "+X+" `"+ce+"` key `"+Ce+"` supplied to `"+ue+"`.\nBad object: "+JSON.stringify(K[ee],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ne=Ue(he,Ce,ue,X,ce+"."+Ce,n);if(ne)return ne}return null}return E(N)}function le(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(le);if(M===null||c(M))return!0;var N=m(M);if(N){var K=N.call(M),ee;if(N!==M.entries){for(;!(ee=K.next()).done;)if(!le(ee.value))return!1}else for(;!(ee=K.next()).done;){var ue=ee.value;if(ue&&!le(ue[1]))return!1}}else return!1;return!0;default:return!1}}function re(M,N){return M==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function ie(M){var N=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":re(N,M)?"symbol":N}function B(M){if(typeof M>"u"||M===null)return""+M;var N=ie(M);if(N==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return N}function U(M){var N=B(M);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},qc}var Kc,Xp;function bC(){if(Xp)return Kc;Xp=1;var e=Gc();function t(){}function n(){}return n.resetWarningCache=t,Kc=function(){function r(a,c,u,d,h,m){if(m!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Kc}var Zp;function xC(){if(Zp)return da.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Wp(),t=!0;da.exports=vC()(e.isElement,t)}else da.exports=bC()();return da.exports}var wC=xC();const De=_m(wC);function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(n),!0).forEach(function(r){_i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ma(e)}function _i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function TC(e,t){if(e==null)return{};var n=SC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xc(e){return EC(e)||CC(e)||PC(e)||AC()}function EC(e){if(Array.isArray(e))return Zc(e)}function CC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PC(e,t){if(e){if(typeof e=="string")return Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zc(e,t)}}function Zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
601
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,g=e.fixedWidth,y=e.inverse,S=e.border,v=e.listItem,E=e.flip,w=e.size,P=e.rotation,O=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":g,"fa-inverse":y,"fa-border":S,"fa-li":v,"fa-flip":E===!0,"fa-flip-horizontal":E==="horizontal"||E==="both","fa-flip-vertical":E==="vertical"||E==="both"},_i(t,"fa-".concat(w),typeof w<"u"&&w!==null),_i(t,"fa-rotate-".concat(P),typeof P<"u"&&P!==null&&P!==0),_i(t,"fa-pull-".concat(O),typeof O<"u"&&O!==null),_i(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function MC(e){return e=e-0,e===e}function Qp(e){return MC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var _C=["style"];function IC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function DC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[IC(i)]=o:t[i]=o,t},{})}function eg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return eg(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=DC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=TC(n,_C);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Xc(r)))}var tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function $C(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(e){if(e&&ma(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&ma(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Jc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?_i({},e,t):{}}var rg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ie=I.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Jc("classes",[].concat(Xc(OC(n)),Xc((a||"").split(" ")))),g=Jc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Jc("mask",ng(i)),S=hC(h,An(An(An(An({},m),g),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return $C("Could not find icon",h),null;var v=S.abstract,E={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(E[w]=n[w])}),RC(v[0],E)});Ie.displayName="FontAwesomeIcon",Ie.propTypes={beat:De.bool,border:De.bool,beatFade:De.bool,bounce:De.bool,className:De.string,fade:De.bool,flash:De.bool,mask:De.oneOfType([De.object,De.array,De.string]),maskId:De.string,fixedWidth:De.bool,inverse:De.bool,flip:De.oneOf([!0,!1,"horizontal","vertical","both"]),icon:De.oneOfType([De.object,De.array,De.string]),listItem:De.bool,pull:De.oneOf(["right","left"]),pulse:De.bool,rotation:De.oneOf([0,90,180,270]),shake:De.bool,size:De.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:De.bool,spinPulse:De.bool,spinReverse:De.bool,symbol:De.oneOfType([De.bool,De.string]),title:De.string,titleId:De.string,transform:De.oneOfType([De.string,De.object]),swapOpacity:De.bool};var RC=eg.bind(null,I.createElement);const LC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>b.jsxs("button",{onClick:r,className:`
|
|
602
602
|
flex flex-col items-center justify-center
|
|
603
603
|
w-[180px] h-[87px] p-4 rounded-xl
|
|
604
604
|
gap-2 transition-colors
|
|
605
605
|
${i?"bg-blue-100 border border-blue-800":"bg-light-gray-100 border border-gray-100 hover:border-blue-500 group"}
|
|
606
|
-
`,children:[t?
|
|
606
|
+
`,children:[t?b.jsx(Ie,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?b.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,b.jsx("span",{className:`
|
|
607
607
|
text-base font-medium transition-colors
|
|
608
608
|
${i?"text-gray-900":"text-gray-900 group-hover:text-blue-500"}
|
|
609
609
|
`,children:e})]});/*!
|
|
610
610
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
611
611
|
* License - https://fontawesome.com/license (Commercial License)
|
|
612
612
|
* Copyright 2024 Fonticons, Inc.
|
|
613
|
-
*/const
|
|
613
|
+
*/const NC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},kC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},FC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},jC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},VC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},BC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},ig={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},Qc={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},UC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},WC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},sg={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},zC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},eu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},tu=I.createContext({});function nu(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const ru=typeof window<"u",og=ru?I.useLayoutEffect:I.useEffect,pa=I.createContext(null),iu=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let GC=class extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function YC({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(iu);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
614
614
|
[data-motion-pop-id="${r}"] {
|
|
615
615
|
position: absolute !important;
|
|
616
616
|
width: ${c}px !important;
|
|
@@ -618,21 +618,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
618
618
|
${g}px !important;
|
|
619
619
|
top: ${d}px !important;
|
|
620
620
|
}
|
|
621
|
-
`),()=>{document.head.removeChild(y)}},[t]),x.jsx(zC,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const YC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=nu(HC),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=x.jsx(GC,{isPresent:n,anchorX:c,children:e})),x.jsx(pa.Provider,{value:m,children:e})};function HC(){return new Map}function ag(e=!0){const t=I.useContext(pa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ga=e=>e.key||"";function lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const qC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=I.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ga),g=I.useRef(!0),y=I.useRef(h),S=nu(()=>new Map),[v,E]=I.useState(h),[w,A]=I.useState(h);og(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ga(w[C]);m.includes(L)?S.delete(L):S.get(L)!==!0&&S.set(L,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let C=[...h];for(let L=0;L<w.length;L++){const j=w[L],F=ga(j);m.includes(F)||(C.splice(L,0,j),O.push(j))}return o==="wait"&&O.length&&(C=O),A(lg(C)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=I.useContext(tu);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ga(C),j=a&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(D==null||D(),A(y.current),a&&(d==null||d()),r&&r())};return x.jsx(YC,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},L)})})};function su(e,t){e.indexOf(t)===-1&&e.push(t)}function ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let Ii=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Ii=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const KC={useManualTiming:!1};function au(e){let t;return()=>(t===void 0&&(t=e()),t)}const Di=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let lu=class{constructor(){this.subscriptions=[]}add(t){return su(this.subscriptions,t),()=>ou(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const On=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function ya(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const XC=au(()=>window.ScrollTimeline!==void 0);let ZC=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(XC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},JC=class extends ZC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function cu(e,t){return e?e[t]||e.default||e:void 0}const uu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<uu;)t+=n,r=e.next(t);return t>=uu?1/0:t}function fu(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const du=e=>Array.isArray(e)&&typeof e[0]=="number",QC={linearEasing:void 0};function eP(e,t){const n=au(e);return()=>{var r;return(r=QC[t])!==null&&r!==void 0?r:n()}}const va=eP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Di(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&va()||!e||typeof e=="string"&&(e in hu||va())||du(e)||Array.isArray(e)&&e.every(mg))}const Ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ws([0,.65,.55,1]),circOut:Ws([.55,0,1,.45]),backIn:Ws([.31,.01,.66,-.59]),backOut:Ws([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&va()?hg(e,t):du(e)?Ws(e):Array.isArray(e)?e.map(n=>pg(n,t)||hu.easeOut):hu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function tP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const nP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((w,A)=>(w[A]=tP(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,nP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:ba.reduce((w,A)=>{const O=a[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<ba.length;A++)a[ba[A]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:mu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:pu}=yg(queueMicrotask,!1);let xa;function rP(){xa=void 0}const Mn={now:()=>(xa===void 0&&Mn.set(yt.isProcessing||KC.useManualTiming?yt.timestamp:performance.now()),xa),set:e=>{xa=e,queueMicrotask(rP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function iP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function sP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function bg(e,t){const n=sP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function oP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,gu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,aP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lP(e){return aP.has(e.tagName)||e.tabIndex!==-1}const zs=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function yu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(zs.has(n))return;yu(n,"down");const i=Sg(()=>{yu(n,"up")}),o=()=>yu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tg(e){return gu(e)&&!vg()}function uP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||zs.has(u))return;zs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!Tg(y)||!zs.has(u))&&(zs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>cP(d,i)),!lP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,fP=e=>!isNaN(parseFloat(e));let dP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Mn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ya(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Gs(e,t){return new dP(e,t)}const Cg=I.createContext({strict:!1}),Pg={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"]},$i={};for(const e in Pg)$i[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function hP(e){for(const t in e)$i[t]={...$i[t],...e[t]}}const mP=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 wa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mP.has(e)}let Ag=e=>!wa(e);function pP(e){e&&(Ag=t=>t.startsWith("on")?!wa(t):e(t))}try{pP(require("@emotion/is-prop-valid").default)}catch{}function gP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&wa(i)||!t&&!wa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ya(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Sa=I.createContext({});function Ta(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ys(e){return typeof e=="string"||Array.isArray(e)}const vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bu=["initial",...vu];function Ea(e){return Ta(e.animate)||bu.some(t=>Ys(e[t]))}function Og(e){return!!(Ea(e)||e.variants)}function vP(e,t){if(Ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ys(n)?n:void 0,animate:Ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function bP(e){const{initial:t,animate:n}=vP(e,I.useContext(Sa));return I.useMemo(()=>({initial:t,animate:n}),[Mg(t),Mg(n)])}function Mg(e){return Array.isArray(e)?e.join(" "):e}const xP=Symbol.for("motionComponentSymbol");function Ri(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wP(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ri(n)&&(n.current=r))},[t])}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+xu("framerAppearId"),Ig=I.createContext({});function SP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Sa),u=I.useContext(Cg),d=I.useContext(pa),h=I.useContext(iu).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Ig);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&TP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[_g],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return og(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),pu.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function TP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Ri(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function EP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&hP(e);function c(d,h){let m;const g={...I.useContext(iu),...d,layoutId:CP(d)},{isStatic:y}=g,S=bP(d),v=r(d,y);if(!y&&ru){PP(g,e);const E=AP(g);m=E.MeasureLayout,S.visualElement=SP(i,v,g,t,E.ProjectionNode)}return x.jsxs(Sa.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,wP(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[xP]=i,u}function CP({layoutId:e}){const t=I.useContext(tu).id;return t&&e!==void 0?t+"-"+e:e}function PP(e,t){const n=I.useContext(Cg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ii(!1,r):vr(!1,r)}}function AP(e){const{drag:t,layout:n}=$i;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $g=e=>t=>typeof t=="string"&&t.startsWith(e),wu=$g("--"),OP=$g("var(--"),Su=e=>OP(e)?MP.test(e.split("/*")[0].trim()):!1,MP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hs={};function _P(e){for(const t in e)Hs[t]=e[t],wu(t)&&(Hs[t].isCSSVariable=!0)}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Li);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Lg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ni={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qs={...Ni,transform:e=>qn(0,1,e)},Ca={...Ni,default:1},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ks("deg"),_n=Ks("%"),we=Ks("px"),IP=Ks("vh"),DP=Ks("vw"),Ng={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},$P={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},RP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Ca,scaleX:Ca,scaleY:Ca,scaleZ:Ca,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:qs,originX:Ng,originY:Ng,originZ:we},kg={...Ni,transform:Math.round},Tu={...$P,...RP,zIndex:kg,size:we,fillOpacity:qs,strokeOpacity:qs,numOctaves:kg},LP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NP=Li.length;function kP(e,t,n){let r="",i=!0;for(let o=0;o<NP;o++){const a=Li[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Lg(c,Tu[a]);if(!u){i=!1;const h=LP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Eu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(qr.has(u)){a=!0;continue}else if(wu(u)){i[u]=d;continue}else{const h=Lg(d,Tu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=kP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function FP({transformTemplate:e},t){return I.useMemo(()=>{const n=Cu();return Eu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jP(e,t){const n=e.style||{},r={};return Fg(r,n,e),Object.assign(r,FP(e,t)),r}function VP(e,t){const n={},r=jP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const BP=["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 Pu(e){return typeof e!="string"||e.includes("-")?!1:!!(BP.indexOf(e)>-1||/[A-Z]/u.test(e))}const UP={offset:"stroke-dashoffset",array:"stroke-dasharray"},WP={offset:"strokeDashoffset",array:"strokeDasharray"};function zP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?UP:WP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function jg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function GP(e,t,n){const r=jg(t,e.x,e.width),i=jg(n,e.y,e.height);return`${r} ${i}`}function Au(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Eu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=GP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&zP(g,a,c,u,!1)}const Vg=()=>({...Cu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YP(e,t,n,r){const i=I.useMemo(()=>{const o=Vg();return Au(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Fg(o,e.style,e),i.style={...o,...i.style}}return i}function HP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Pu(n)?YP:VP)(r,o,a,n),d=gP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mu(e,t,n,r){if(typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const _u=e=>Array.isArray(e),qP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KP=e=>_u(e)?e[e.length-1]||0:e;function Pa(e){const t=St(e)?e.get():e;return qP(t)?t.toValue():t}function XP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:ZP(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Ug=e=>(t,n)=>{const r=I.useContext(Sa),i=I.useContext(pa),o=()=>XP(e,t,r,i);return n?o():nu(o)};function ZP(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Pa(o[g]);let{initial:a,animate:c}=e;const u=Ea(e),d=Og(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ta(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Mu(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const A in w){let O=w[A];if(Array.isArray(O)){const D=h?O.length-1:0;O=O[D]}O!==null&&(i[A]=O)}for(const A in v)i[A]=v[A]}}}return i}function Iu(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Rg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const JP={useVisualState:Ug({scrapeMotionValuesFromProps:Iu,createRenderState:Cu})};function Wg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function zg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:xu(i),t.attrs[i])}function Hg(e,t,n){const r=Iu(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Li.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],QP={useVisualState:Ug({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(qr.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Wg(n,r),Ye.render(()=>{Au(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function eA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Pu(r)?QP:JP,preloadedFeatures:e,useRender:HP(i),createVisualElement:t,Component:r};return EP(a)}}function Xs(e,t,n){const r=e.getProps();return Mu(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Li]);function tA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gs(n))}function nA(e,t){const n=Xs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=KP(o[a]);tA(e,a,c)}}function rA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(rA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iA=1e-7,sA=12;function oA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>iA&&++c<sA);return a}function Zs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>oA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Zs(.33,1.53,.69,.99),$u=Qg(e0),t0=Jg($u),n0=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),r0=Qg(Ru),i0=Jg(Ru),s0=e=>/^0[^.\s]+$/u.test(e);function aA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const Js=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lA(e){return e==null}const cA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nu=(e,t)=>n=>!!(typeof n=="string"&&cA.test(n)&&n.startsWith(e)||t&&!lA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},uA=e=>qn(0,255,e),ku={...Ni,transform:e=>Math.round(uA(e))},Kr={test:Nu("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ku.transform(e)+", "+ku.transform(t)+", "+ku.transform(n)+", "+Js(qs.transform(r))+")"};function fA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fu={test:Nu("#"),parse:fA,transform:Kr.transform},ki={test:Nu("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(Js(t))+", "+_n.transform(Js(n))+", "+Js(qs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||ki.test(e),parse:e=>Kr.test(e)?Kr.parse(e):ki.test(e)?ki.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):ki.transform(e)},dA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",mA="var",pA="var(",c0="${}",gA=/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 Qs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(gA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(pA)?(r.var.push(o),i.push(mA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return Qs(e).values}function f0(e){const{split:t,types:n}=Qs(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===a0?o+=Js(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const yA=e=>typeof e=="number"?0:e;function vA(e){const t=u0(e);return f0(e)(t.map(yA))}const wr={test:hA,parse:u0,createTransformer:f0,getAnimatableNone:vA},bA=new Set(["brightness","contrast","saturate","opacity"]);function xA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=bA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const wA=/\b([a-z-]*)\(.*?\)/gu,ju={...wr,getAnimatableNone:e=>{const t=e.match(wA);return t?t.map(xA).join(" "):e}},SA={...Tu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},d0=e=>SA[e];function h0(e,t){let n=d0(e);return n!==ju&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TA=new Set(["auto","none","0"]);function EA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!TA.has(o)&&Qs(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const Xr=e=>e*180/Math.PI,Vu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Bu(t)},CA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vu,rotateZ:Vu,skewX:e=>Xr(Math.atan(e[1])),skewY:e=>Xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bu=e=>(e=e%360,e<0&&(e+=360),e),m0=Vu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Bu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Bu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=PA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(OA);return typeof o=="function"?o(a):a[o]}const AA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function OA(e){return parseFloat(e.trim())}const v0=e=>e===Ni||e===we,MA=new Set(["x","y","z"]),_A=Li.filter(e=>!MA.has(e));function IA(e){const t=[];return _A.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};Fi.translateX=Fi.x,Fi.translateY=Fi.y;const Zr=new Set;let Wu=!1,zu=!1;function b0(){if(zu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=IA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zu=!1,Wu=!1,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zu=!0)})}function DA(){x0(),b0()}let Gu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zr.add(this),Wu||(Wu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RA(e){const t=$A.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const LA=4;function S0(e,t,n=1){vr(n<=LA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=RA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Su(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ni,we,_n,xr,DP,IP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Gu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Su(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)aA(t[i])&&r.push(i);r.length&&EA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Fi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function NA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function kA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=A0(i,t),c=A0(o,t);return Ii(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:NA(e)||(n==="spring"||fu(n))&&r}const FA=e=>e!==null;function Aa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(FA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const jA=40;let O0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&DA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!kA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Aa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Yu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Yu(u,c,e+1/3),o=Yu(u,c,e),a=Yu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const Hu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},BA=[Fu,Kr,ki],UA=e=>BA.find(t=>t.test(e));function M0(e){const t=UA(e);if(Ii(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ki&&(n=VA(n)),n}const _0=(e,t)=>{const n=M0(e),r=M0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Hu(n.red,r.red,o),i.green=Hu(n.green,r.green,o),i.blue=Hu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),Kr.transform(i))},WA=(e,t)=>n=>t(e(n)),eo=(...e)=>e.reduce(WA),qu=new Set(["none","hidden"]);function zA(e,t){return qu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GA(e,t){return n=>tt(e,t,n)}function Ku(e){return typeof e=="number"?GA:typeof e=="string"?Su(e)?Oa:Tt.test(e)?_0:qA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:YA:Oa}function I0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Ku(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function YA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ku(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function HA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const qA=(e,t)=>{const n=wr.createTransformer(t),r=Qs(e),i=Qs(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qu.has(e)&&!i.values.length||qu.has(t)&&!r.values.length?zA(e,t):eo(I0(HA(r,i),i.values),n):(Ii(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function D0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Ku(e)(e,t)}const KA=5;function $0(e,t,n){const r=Math.max(t-KA,0);return cg(n-e(r),t-r)}const nt={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},R0=.001;function XA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Ii(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=Xu(d,a),S=Math.exp(-m);return R0-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=Xu(Math.pow(d,2),a);return(-i(d)+R0>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=JA(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ZA=12;function JA(e,t,n){let r=n;for(let i=1;i<ZA;i++)r=r-e(r)/t(r);return r}function Xu(e,t){return e*Math.sqrt(1-t*t)}const QA=["duration","bounce"],eO=["stiffness","damping","mass"];function L0(e,t){return t.some(n=>e[n]!==void 0)}function tO(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!L0(e,eO)&&L0(e,QA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=XA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function N0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=tO({...n,velocity:-Hn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Hn(Math.sqrt(u/h)),A=Math.abs(E)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),i||(i=A?nt.restDelta.granular:nt.restDelta.default);let O;if(v<1){const C=Xu(w,v);O=L=>{const j=Math.exp(-v*w*L);return a-j*((S+v*w*E)/C*Math.sin(C*L)+E*Math.cos(C*L))}}else if(v===1)O=C=>a-Math.exp(-w*C)*(E+(S+w*E)*C);else{const C=w*Math.sqrt(v*v-1);O=L=>{const j=Math.exp(-v*w*L),F=Math.min(C*L,300);return a-j*((S+v*w*E)*Math.sinh(F)+C*E*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let j=0;v<1&&(j=C===0?On(S):$0(O,C,L));const F=Math.abs(j)<=r,Y=Math.abs(a-L)<=i;c.done=F&&Y}return c.value=c.done?a:L,c},toString:()=>{const C=Math.min(fg(D),uu),L=hg(j=>D.next(C*j).value,C,30);return C+"ms "+L}};return D}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const A=F=>-v*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),ee=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:ee};let C,L;const j=F=>{y(g.value)&&(C=F,L=N0({keyframes:[g.value,S(g.value)],velocity:$0(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),j(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const nO=Zs(.42,0,1,1),rO=Zs(0,0,.58,1),F0=Zs(.42,0,.58,1),iO=e=>Array.isArray(e)&&typeof e[0]!="number",j0={linear:Rt,easeIn:nO,easeInOut:F0,easeOut:rO,circIn:Ru,circInOut:i0,circOut:r0,backIn:$u,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(du(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zs(t,n,r,i)}else if(typeof e=="string")return vr(j0[e]!==void 0,`Invalid easing type '${e}'`),j0[e];return e};function sO(e,t,n){const r=[],i=n||D0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=eo(u,c)}r.push(c)}return r}function oO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=sO(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Di(e[m],e[m+1],h);return c[m](g)};return n?h=>d(qn(e[0],e[o-1],h)):d}function aO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Di(0,t,r);e.push(tt(n,1,i))}}function lO(e){const t=[0];return aO(t,e.length-1),t}function cO(e,t){return e.map(n=>n*t)}function uO(e,t){return e.map(()=>t||F0).splice(0,e.length-1)}function to({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=iO(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=cO(n&&n.length===t.length?n:lO(t),e),c=oO(a,t,{ease:Array.isArray(i)?i:uO(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const fO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:Mn.now()}},dO={decay:k0,inertia:k0,tween:to,keyframes:to,spring:N0},hO=e=>e/100;let Zu=class extends O0{constructor(t){super(t),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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Gu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=fu(n)?n:dO[n]||to;let u,d;process.env.NODE_ENV!=="production"&&c!==to&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==to&&typeof t[0]!="number"&&(u=eo(hO,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,D=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,v&&(ee-=v/m)):S==="mirror"&&(D=a)),O=qn(0,1,ee)*m}const C=A?{done:!1,value:u[0]}:D.next(O);c&&(C.value=c(C.value));let{done:L}=C;!A&&d!==null&&(L=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return j&&i!==void 0&&(C.value=Aa(u,this.options,i)),E&&E(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=fO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}};const mO=new Set(["opacity","clipPath","filter","transform"]);function pO(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const gO=au(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ma=10,yO=2e4;function vO(e){return fu(e.type)||e.type==="spring"||!mg(e.ease)}function bO(e,t){const n=new Zu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<yO;)r=n.sample(o),i.push(r.value),o+=Ma;return{times:void 0,keyframes:i,duration:o-Ma,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function xO(e){return e in B0}let U0=class extends O0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&va()&&xO(o)&&(o=B0[o]),vO(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=bO(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=pO(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Aa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new Zu({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=On(this.time);d.setWithVelocity(S.sample(v-Ma).value,S.sample(v).value,Ma)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return gO()&&r&&mO.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const wO={type:"spring",stiffness:500,damping:25,restSpeed:10},SO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TO={type:"keyframes",duration:.8},EO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CO=(e,{keyframes:t})=>t.length>2?TO:qr.has(e)?e.startsWith("scale")?SO(t[1]):wO:EO;function PO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ju=(e,t,n,r={},i,o)=>a=>{const c=cu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};PO(c)||(h={...h,...CO(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=Aa(h.keyframes,c);if(g!==void 0)return Ye.update(()=>{h.onUpdate(g),h.onComplete()}),new JC([])}return!o&&U0.supports(h)?new U0(h):new Zu(h)};function AO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&AO(h,m))continue;const S={delay:n,...cu(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const A=window.MotionHandoffAnimation(w,m,Ye);A!==null&&(S.startTime=A,v=!0)}}Du(e,m),g.start(Ju(m,g,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&nA(e,c)})}),d}function Qu(e,t,n={}){var r;const i=Xs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(W0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return OO(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function OO(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(MO).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Qu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function MO(e,t){return e.sortNodePosition(t)}function _O(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Qu(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Qu(e,t,n);else{const i=typeof t=="function"?Xs(e,t,n.custom):t;r=Promise.all(W0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const IO=bu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<IO;n++){const r=bu[n],i=e.props[r];(Ys(i)||i===!1)&&(t[r]=i)}return t}const DO=[...vu].reverse(),$O=vu.length;function RO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_O(e,n,r)))}function LO(e){let t=RO(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const g=Xs(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=G0(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<$O;E++){const w=DO[E],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=Ys(O),C=w===u?A.isActive:null;C===!1&&(S=E);let L=O===h[w]&&O!==d[w]&&D;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),A.protectedKeys={...y},!A.isActive&&C===null||!O&&!A.prevProp||Ta(O)||typeof O=="boolean")continue;const j=NO(A.prevProp,O);let F=j||w===u&&A.isActive&&!L&&D||E>S&&D,Y=!1;const ee=Array.isArray(O)?O:[O];let te=ee.reduce(i(w),{});C===!1&&(te={});const{prevResolvedValues:me={}}=A,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),A.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;_u(U)&&_u(H)?M=!z0(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):A.protectedKeys[B]=!0}A.prevProp=O,A.prevResolvedValues=te,A.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&j)||Y)&&m.push(...ee.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=Xs(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=A??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function NO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},kO=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=LO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ta(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},FO=0;const jO={animation:{Feature:kO},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=FO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function no(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ro(e){return{point:{x:e.pageX,y:e.pageY}}}const VO=e=>t=>gu(t)&&e(t,ro(t));function io(e,t,n,r){return no(e,t,VO(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UO(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const q0=1e-4,WO=1-q0,zO=1+q0,K0=.01,GO=0-K0,YO=0+K0;function Mt(e){return e.max-e.min}function HO(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=WO&&e.scale<=zO||isNaN(e.scale))&&(e.scale=1),(e.translate>=GO&&e.translate<=YO||isNaN(e.translate))&&(e.translate=0)}function so(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function qO(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function oo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ji=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function ef(e){return e===void 0||e===1}function tf({scale:e,scaleX:t,scaleY:n}){return!ef(e)||!ef(t)||!ef(n)}function Qr(e){return tf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function _a(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=_a(e,i,r)),_a(e,n,r)+t}function nf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){nf(e.x,t.translate,t.scale,t.originPoint),nf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function KO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&Qr(o.latestValues)&&Bi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Vi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);nf(e,t,n,o,r)}function Bi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(UO(e.getBoundingClientRect(),t))}function XO(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Vi(r.x,i.offset.x),Vi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function ZO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 m=sf(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=ZO(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=yt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=rf(g,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=sf(m.type==="pointercancel"?this.lastMoveEventInfo:rf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!gu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ro(t),c=rf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,sf(c,this.history)),this.removeListeners=eo(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function rf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sf({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,JO(t)),velocity:QO(t,.1)}}function JO(e){return e[0]}function hy(e){return e[e.length-1]}function QO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function eM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tM(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nM(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function rM(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Di(t.min,t.max-r,e.min):r>i&&(n=Di(e.min,e.max-i,t.min)),qn(0,1,n)}function iM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const of=.35;function sM(e=of){return e===!1?e=0:e===!0&&(e=of),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const oM=new WeakMap;let aM=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ro(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iP(g),!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),tn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(_n.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[E];O&&(w=Mt(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&Ye.postRender(()=>S(h,m)),Du(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=lM(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ia(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=eM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ri(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tM(i.layoutBox,n):this.constraints=!1,this.elastic=sM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=iM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ri(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=XO(r,i.root,this.visualElement.getTransformPagePoint());let a=nM(i.layout.layoutBox,o);if(n){const c=n(BO(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Ia(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Du(this.visualElement,t),r.start(Ju(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Ia(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ri(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=rM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!Ia(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;oM.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ri(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=no(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=of,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let cM=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new aM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let uM=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ao={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},fM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let dM=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_P(hM),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=I.useContext(tu);return x.jsx(dM,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const hM={borderRadius:{...ao,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ao,borderTopRightRadius:ao,borderBottomLeftRadius:ao,borderBottomRightRadius:ao,boxShadow:fM};function mM(e,t,n){const r=St(e)?e:Gs(e);return r.start(Ju("",r,t,n)),r.animation}function pM(e){return e instanceof SVGElement&&e.tagName!=="svg"}const gM=(e,t)=>e.depth-t.depth;let yM=class{constructor(){this.children=[],this.isDirty=!1}add(t){su(this.children,t),this.isDirty=!0}remove(t){ou(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gM),this.isDirty=!1,this.children.forEach(t)}};function vM(e,t){const n=Mn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],bM=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function xM(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,wM(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,SM(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<bM;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wM=Cy(0,.5,r0),SM=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Di(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oy(e,t,n,r,i){return e-=t,e=_a(e,1/n,r),i!==void 0&&(e=_a(e,1/i,r)),e}function TM(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Oy(e.min,t,n,c,i),e.max=Oy(e.max,t,n,c,i)}function My(e,t,[n,r,i],o,a){TM(e,t[n],t[r],t[i],t.scale,o,a)}const EM=["x","scaleX","originX"],CM=["y","scaleY","originY"];function _y(e,t,n,r){My(e.x,t,EM,n?n.x:void 0,r?r.x:void 0),My(e.y,t,CM,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Dy(e){return Iy(e.x)&&Iy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function PM(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ly(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ny(e){return Mt(e.x)/Mt(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let AM=class{constructor(){this.members=[]}add(t){su(this.members,t),t.scheduleRender()}remove(t){if(ou(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function OM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const af=["","X","Y","Z"],MM={visibility:"hidden"},Fy=1e3;let _M=0;function lf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=_M++,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,this.nodes.forEach($M),this.nodes.forEach(FM),this.nodes.forEach(jM),this.nodes.forEach(RM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new yM)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pM(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=vM(g,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||zM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!Ly(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const D={...cu(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(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(VM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(NM),this.isUpdating=!1,this.nodes.forEach(kM),this.nodes.forEach(IM),this.nodes.forEach(DM),this.clearAllSnapshots();const c=Mn.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,mu.update.process(yt),mu.preRender.process(yt),mu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LM),this.sharedNodes.forEach(BM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||Qr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),GM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(YM))){const{scroll:h}=this.root;h&&(Vi(u.x,h.offset.x),Vi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&nn(u,a),Vi(u.x,m.offset.x),Vi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Bi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&Bi(u,h.latestValues)}return Qr(this.latestValues)&&Bi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Qr(d.latestValues))continue;tf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),_y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Qr(this.latestValues)&&_y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tf(this.parent.latestValues)||ty(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;KO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),so(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ji(),this.projectionDelta=ji(),this.projectionDeltaWithTransform=ji()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,A=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(WM));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;Wy(m.x,a.x,C),Wy(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UM(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&PM(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=at()),nn(O,this.relativeTarget)),v&&(this.animationValues=h,xM(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=mM(0,Fy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=Mt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}nn(c,u),Bi(c,h),so(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new AM),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&lf("z",a,d,this.animationValues);for(let h=0;h<af.length;h++)lf(`rotate${af[h]}`,a,d,this.animationValues),lf(`skew${af[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return MM;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=OM(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in Hs){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:A}=Hs[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const D=w.length;for(let C=0;C<D;C++)d[w[C]]=O}else A?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Pa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function IM(e){e.updateLayout()}function DM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(g);g.min=r[m].min,g.max=g.min+y}):qy(o,n.layoutBox,r)&&tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=ji();so(c,r,n.layoutBox);const u=ji();a?so(u,e.applyTransform(i,!0),n.measuredBox):so(u,r,n.layoutBox);const d=!Dy(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=at();oo(S,n.layoutBox,g.layoutBox);const v=at();oo(v,r,y.layoutBox),Ly(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $M(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LM(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function NM(e){e.isLayoutDirty=!1}function kM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FM(e){e.resolveTargetDelta()}function jM(e){e.calcProjection()}function VM(e){e.resetSkewAndRotation()}function BM(e){e.removeLeadSnapshot()}function Wy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function UM(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function WM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zM={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function GM(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!HO(Ny(t),Ny(n),.2)}function YM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const HM=Vy({attachResizeListener:(e,t)=>no(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cf.current){const e=new HM({});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qM={pan:{Feature:uM},drag:{Feature:cM,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let KM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=oP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},XM=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=eo(no(this.node.current,"focus",()=>this.onFocus()),no(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let ZM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=uP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const uf=new WeakMap,ff=new WeakMap,JM=e=>{const t=uf.get(e.target);t&&t(e)},QM=e=>{e.forEach(JM)};function e_({root:e,...t}){const n=e||document;ff.has(n)||ff.set(n,{});const r=ff.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QM,{root:e,...t})),r[i]}function t_(e,t,n){const r=e_(t);return uf.set(e,n),r.observe(e),()=>{uf.delete(e),r.unobserve(e)}}const n_={some:0,all:1};let r_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:n_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return t_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(i_(t,n))&&this.startObserver()}unmount(){}};function i_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const s_={inView:{Feature:r_},tap:{Feature:ZM},focus:{Feature:XM},hover:{Feature:KM}},o_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},df={current:null},Jy={current:!1};function a_(){if(Jy.current=!0,!!ru)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>df.current=e.matches;e.addListener(t),t()}else df.current=!1}const l_=[...E0,Tt,wr],c_=e=>l_.find(T0(e)),u_=new WeakMap;function f_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ya(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Gs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Gs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let d_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gu,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 y=Mn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ea(n),this.isVariantNode=Og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,u_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||a_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:df.current,process.env.NODE_ENV!=="production"&&ya(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $i){const n=$i[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qy.length;r++){const i=Qy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=f_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!c_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Mu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends d_{constructor(){super(...arguments),this.KeyframeResolver=P0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function h_(e){return window.getComputedStyle(e)}let m_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return AA(t,n);{const r=h_(t),i=(wu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Eu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Iu(t,n,r)}},p_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Wg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Au(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const g_=(e,t)=>Pu(e)?new p_(t):new m_(t,{allowProjection:e!==I.Fragment}),y_=eA({...jO,...s_,...qM,...o_},g_),hf=yP(y_),v_=500,mf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=I.useState(!0);let c=Qc,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=kC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=WC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=LC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=Qc;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=Qc}I.useEffect(()=>{if(r===0)return;const g=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(g)},[r]),I.useEffect(()=>{if(!o){const g=setTimeout(i,v_);return()=>clearTimeout(g)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return x.jsx(qC,{onExitComplete:i,children:o&&x.jsx(hf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:x.jsxs("div",{className:"flex justify-between items-center p-3",children:[x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(Ie,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),x.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),x.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:x.jsx(Ie,{icon:UC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[a,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),x.jsx(mf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(y)}},[t]),b.jsx(GC,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const HC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=nu(qC),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=b.jsx(YC,{isPresent:n,anchorX:c,children:e})),b.jsx(pa.Provider,{value:m,children:e})};function qC(){return new Map}function ag(e=!0){const t=I.useContext(pa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ga=e=>e.key||"";function lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const KC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=I.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ga),g=I.useRef(!0),y=I.useRef(h),S=nu(()=>new Map),[v,E]=I.useState(h),[w,P]=I.useState(h);og(()=>{g.current=!1,y.current=h;for(let A=0;A<w.length;A++){const R=ga(w[A]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let A=[...h];for(let R=0;R<w.length;R++){const j=w[R],F=ga(j);m.includes(F)||(A.splice(R,0,j),O.push(j))}return o==="wait"&&O.length&&(A=O),P(lg(A)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(tu);return b.jsx(b.Fragment,{children:w.map(A=>{const R=ga(A),j=a&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let Y=!0;S.forEach(Q=>{Q||(Y=!1)}),Y&&($==null||$(),P(y.current),a&&(d==null||d()),r&&r())};return b.jsx(HC,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:A},R)})})};function su(e,t){e.indexOf(t)===-1&&e.push(t)}function ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let Ii=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Ii=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const XC={useManualTiming:!1};function au(e){let t;return()=>(t===void 0&&(t=e()),t)}const Di=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let lu=class{constructor(){this.subscriptions=[]}add(t){return su(this.subscriptions,t),()=>ou(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const On=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function ya(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const ZC=au(()=>window.ScrollTimeline!==void 0);let JC=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(ZC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},QC=class extends JC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function cu(e,t){return e?e[t]||e.default||e:void 0}const uu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<uu;)t+=n,r=e.next(t);return t>=uu?1/0:t}function fu(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const du=e=>Array.isArray(e)&&typeof e[0]=="number",eP={linearEasing:void 0};function tP(e,t){const n=au(e);return()=>{var r;return(r=eP[t])!==null&&r!==void 0?r:n()}}const va=tP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Di(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&va()||!e||typeof e=="string"&&(e in hu||va())||du(e)||Array.isArray(e)&&e.every(mg))}const Ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ws([0,.65,.55,1]),circOut:Ws([.55,0,1,.45]),backIn:Ws([.31,.01,.66,-.59]),backOut:Ws([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&va()?hg(e,t):du(e)?Ws(e):Array.isArray(e)?e.map(n=>pg(n,t)||hu.easeOut):hu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function nP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const rP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((w,P)=>(w[P]=nP(o,t?P:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,rP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:ba.reduce((w,P)=>{const O=a[P];return w[P]=($,A=!1,R=!1)=>(n||S(),O.schedule($,A,R)),w},{}),cancel:w=>{for(let P=0;P<ba.length;P++)a[ba[P]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:mu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:pu}=yg(queueMicrotask,!1);let xa;function iP(){xa=void 0}const Mn={now:()=>(xa===void 0&&Mn.set(yt.isProcessing||XC.useManualTiming?yt.timestamp:performance.now()),xa),set:e=>{xa=e,queueMicrotask(iP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function sP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function oP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function bg(e,t){const n=oP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function aP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,gu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cP(e){return lP.has(e.tagName)||e.tabIndex!==-1}const zs=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function yu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const uP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(zs.has(n))return;yu(n,"down");const i=Sg(()=>{yu(n,"up")}),o=()=>yu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tg(e){return gu(e)&&!vg()}function fP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||zs.has(u))return;zs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!Tg(y)||!zs.has(u))&&(zs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>uP(d,i)),!cP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,dP=e=>!isNaN(parseFloat(e));let hP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Mn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=dP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ya(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Gs(e,t){return new hP(e,t)}const Cg=I.createContext({strict:!1}),Pg={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"]},$i={};for(const e in Pg)$i[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function mP(e){for(const t in e)$i[t]={...$i[t],...e[t]}}const pP=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 wa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pP.has(e)}let Ag=e=>!wa(e);function gP(e){e&&(Ag=t=>t.startsWith("on")?!wa(t):e(t))}try{gP(require("@emotion/is-prop-valid").default)}catch{}function yP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&wa(i)||!t&&!wa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function vP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ya(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Sa=I.createContext({});function Ta(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ys(e){return typeof e=="string"||Array.isArray(e)}const vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bu=["initial",...vu];function Ea(e){return Ta(e.animate)||bu.some(t=>Ys(e[t]))}function Og(e){return!!(Ea(e)||e.variants)}function bP(e,t){if(Ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ys(n)?n:void 0,animate:Ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function xP(e){const{initial:t,animate:n}=bP(e,I.useContext(Sa));return I.useMemo(()=>({initial:t,animate:n}),[Mg(t),Mg(n)])}function Mg(e){return Array.isArray(e)?e.join(" "):e}const wP=Symbol.for("motionComponentSymbol");function Ri(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function SP(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ri(n)&&(n.current=r))},[t])}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+xu("framerAppearId"),Ig=I.createContext({});function TP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Sa),u=I.useContext(Cg),d=I.useContext(pa),h=I.useContext(iu).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Ig);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&EP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[_g],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return og(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),pu.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function EP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Ri(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function CP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&mP(e);function c(d,h){let m;const g={...I.useContext(iu),...d,layoutId:PP(d)},{isStatic:y}=g,S=xP(d),v=r(d,y);if(!y&&ru){AP(g,e);const E=OP(g);m=E.MeasureLayout,S.visualElement=TP(i,v,g,t,E.ProjectionNode)}return b.jsxs(Sa.Provider,{value:S,children:[m&&S.visualElement?b.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,SP(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[wP]=i,u}function PP({layoutId:e}){const t=I.useContext(tu).id;return t&&e!==void 0?t+"-"+e:e}function AP(e,t){const n=I.useContext(Cg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ii(!1,r):vr(!1,r)}}function OP(e){const{drag:t,layout:n}=$i;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $g=e=>t=>typeof t=="string"&&t.startsWith(e),wu=$g("--"),MP=$g("var(--"),Su=e=>MP(e)?_P.test(e.split("/*")[0].trim()):!1,_P=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hs={};function IP(e){for(const t in e)Hs[t]=e[t],wu(t)&&(Hs[t].isCSSVariable=!0)}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Li);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Lg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ni={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qs={...Ni,transform:e=>qn(0,1,e)},Ca={...Ni,default:1},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ks("deg"),_n=Ks("%"),we=Ks("px"),DP=Ks("vh"),$P=Ks("vw"),Ng={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},RP={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},LP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Ca,scaleX:Ca,scaleY:Ca,scaleZ:Ca,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:qs,originX:Ng,originY:Ng,originZ:we},kg={...Ni,transform:Math.round},Tu={...RP,...LP,zIndex:kg,size:we,fillOpacity:qs,strokeOpacity:qs,numOctaves:kg},NP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kP=Li.length;function FP(e,t,n){let r="",i=!0;for(let o=0;o<kP;o++){const a=Li[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Lg(c,Tu[a]);if(!u){i=!1;const h=NP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Eu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(qr.has(u)){a=!0;continue}else if(wu(u)){i[u]=d;continue}else{const h=Lg(d,Tu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=FP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function jP({transformTemplate:e},t){return I.useMemo(()=>{const n=Cu();return Eu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VP(e,t){const n=e.style||{},r={};return Fg(r,n,e),Object.assign(r,jP(e,t)),r}function BP(e,t){const n={},r=VP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const UP=["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 Pu(e){return typeof e!="string"||e.includes("-")?!1:!!(UP.indexOf(e)>-1||/[A-Z]/u.test(e))}const WP={offset:"stroke-dashoffset",array:"stroke-dasharray"},zP={offset:"strokeDashoffset",array:"strokeDasharray"};function GP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?WP:zP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function jg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function YP(e,t,n){const r=jg(t,e.x,e.width),i=jg(n,e.y,e.height);return`${r} ${i}`}function Au(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Eu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=YP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&GP(g,a,c,u,!1)}const Vg=()=>({...Cu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HP(e,t,n,r){const i=I.useMemo(()=>{const o=Vg();return Au(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Fg(o,e.style,e),i.style={...o,...i.style}}return i}function qP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Pu(n)?HP:BP)(r,o,a,n),d=yP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mu(e,t,n,r){if(typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const _u=e=>Array.isArray(e),KP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),XP=e=>_u(e)?e[e.length-1]||0:e;function Pa(e){const t=St(e)?e.get():e;return KP(t)?t.toValue():t}function ZP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:JP(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Ug=e=>(t,n)=>{const r=I.useContext(Sa),i=I.useContext(pa),o=()=>ZP(e,t,r,i);return n?o():nu(o)};function JP(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Pa(o[g]);let{initial:a,animate:c}=e;const u=Ea(e),d=Og(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ta(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Mu(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const P in w){let O=w[P];if(Array.isArray(O)){const $=h?O.length-1:0;O=O[$]}O!==null&&(i[P]=O)}for(const P in v)i[P]=v[P]}}}return i}function Iu(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Rg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const QP={useVisualState:Ug({scrapeMotionValuesFromProps:Iu,createRenderState:Cu})};function Wg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function zg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Gg=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 Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:xu(i),t.attrs[i])}function Hg(e,t,n){const r=Iu(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Li.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],eA={useVisualState:Ug({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(qr.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Wg(n,r),Ye.render(()=>{Au(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function tA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Pu(r)?eA:QP,preloadedFeatures:e,useRender:qP(i),createVisualElement:t,Component:r};return CP(a)}}function Xs(e,t,n){const r=e.getProps();return Mu(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Li]);function nA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gs(n))}function rA(e,t){const n=Xs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=XP(o[a]);nA(e,a,c)}}function iA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(iA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,sA=1e-7,oA=12;function aA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>sA&&++c<oA);return a}function Zs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>aA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Zs(.33,1.53,.69,.99),$u=Qg(e0),t0=Jg($u),n0=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),r0=Qg(Ru),i0=Jg(Ru),s0=e=>/^0[^.\s]+$/u.test(e);function lA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const Js=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cA(e){return e==null}const uA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nu=(e,t)=>n=>!!(typeof n=="string"&&uA.test(n)&&n.startsWith(e)||t&&!cA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},fA=e=>qn(0,255,e),ku={...Ni,transform:e=>Math.round(fA(e))},Kr={test:Nu("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ku.transform(e)+", "+ku.transform(t)+", "+ku.transform(n)+", "+Js(qs.transform(r))+")"};function dA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fu={test:Nu("#"),parse:dA,transform:Kr.transform},ki={test:Nu("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(Js(t))+", "+_n.transform(Js(n))+", "+Js(qs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||ki.test(e),parse:e=>Kr.test(e)?Kr.parse(e):ki.test(e)?ki.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):ki.transform(e)},hA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(hA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",pA="var",gA="var(",c0="${}",yA=/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 Qs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(yA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(gA)?(r.var.push(o),i.push(pA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return Qs(e).values}function f0(e){const{split:t,types:n}=Qs(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===a0?o+=Js(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const vA=e=>typeof e=="number"?0:e;function bA(e){const t=u0(e);return f0(e)(t.map(vA))}const wr={test:mA,parse:u0,createTransformer:f0,getAnimatableNone:bA},xA=new Set(["brightness","contrast","saturate","opacity"]);function wA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=xA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const SA=/\b([a-z-]*)\(.*?\)/gu,ju={...wr,getAnimatableNone:e=>{const t=e.match(SA);return t?t.map(wA).join(" "):e}},TA={...Tu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},d0=e=>TA[e];function h0(e,t){let n=d0(e);return n!==ju&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EA=new Set(["auto","none","0"]);function CA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!EA.has(o)&&Qs(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const Xr=e=>e*180/Math.PI,Vu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Bu(t)},PA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vu,rotateZ:Vu,skewX:e=>Xr(Math.atan(e[1])),skewY:e=>Xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bu=e=>(e=e%360,e<0&&(e+=360),e),m0=Vu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),AA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Bu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Bu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=AA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=PA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(MA);return typeof o=="function"?o(a):a[o]}const OA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function MA(e){return parseFloat(e.trim())}const v0=e=>e===Ni||e===we,_A=new Set(["x","y","z"]),IA=Li.filter(e=>!_A.has(e));function DA(e){const t=[];return IA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};Fi.translateX=Fi.x,Fi.translateY=Fi.y;const Zr=new Set;let Wu=!1,zu=!1;function b0(){if(zu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=DA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zu=!1,Wu=!1,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zu=!0)})}function $A(){x0(),b0()}let Gu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zr.add(this),Wu||(Wu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),RA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LA(e){const t=RA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const NA=4;function S0(e,t,n=1){vr(n<=NA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=LA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Su(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ni,we,_n,xr,$P,DP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Gu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Su(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)lA(t[i])&&r.push(i);r.length&&CA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Fi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function kA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function FA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=A0(i,t),c=A0(o,t);return Ii(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:kA(e)||(n==="spring"||fu(n))&&r}const jA=e=>e!==null;function Aa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(jA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const VA=40;let O0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>VA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&$A(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!FA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Aa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Yu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function BA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Yu(u,c,e+1/3),o=Yu(u,c,e),a=Yu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const Hu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},UA=[Fu,Kr,ki],WA=e=>UA.find(t=>t.test(e));function M0(e){const t=WA(e);if(Ii(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ki&&(n=BA(n)),n}const _0=(e,t)=>{const n=M0(e),r=M0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Hu(n.red,r.red,o),i.green=Hu(n.green,r.green,o),i.blue=Hu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),Kr.transform(i))},zA=(e,t)=>n=>t(e(n)),eo=(...e)=>e.reduce(zA),qu=new Set(["none","hidden"]);function GA(e,t){return qu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function YA(e,t){return n=>tt(e,t,n)}function Ku(e){return typeof e=="number"?YA:typeof e=="string"?Su(e)?Oa:Tt.test(e)?_0:KA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:HA:Oa}function I0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Ku(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function HA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ku(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function qA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const KA=(e,t)=>{const n=wr.createTransformer(t),r=Qs(e),i=Qs(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qu.has(e)&&!i.values.length||qu.has(t)&&!r.values.length?GA(e,t):eo(I0(qA(r,i),i.values),n):(Ii(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function D0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Ku(e)(e,t)}const XA=5;function $0(e,t,n){const r=Math.max(t-XA,0);return cg(n-e(r),t-r)}const nt={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},R0=.001;function ZA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Ii(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=Xu(d,a),S=Math.exp(-m);return R0-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=Xu(Math.pow(d,2),a);return(-i(d)+R0>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=QA(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const JA=12;function QA(e,t,n){let r=n;for(let i=1;i<JA;i++)r=r-e(r)/t(r);return r}function Xu(e,t){return e*Math.sqrt(1-t*t)}const eO=["duration","bounce"],tO=["stiffness","damping","mass"];function L0(e,t){return t.some(n=>e[n]!==void 0)}function nO(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!L0(e,tO)&&L0(e,eO))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=ZA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function N0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=nO({...n,velocity:-Hn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Hn(Math.sqrt(u/h)),P=Math.abs(E)<5;r||(r=P?nt.restSpeed.granular:nt.restSpeed.default),i||(i=P?nt.restDelta.granular:nt.restDelta.default);let O;if(v<1){const A=Xu(w,v);O=R=>{const j=Math.exp(-v*w*R);return a-j*((S+v*w*E)/A*Math.sin(A*R)+E*Math.cos(A*R))}}else if(v===1)O=A=>a-Math.exp(-w*A)*(E+(S+w*E)*A);else{const A=w*Math.sqrt(v*v-1);O=R=>{const j=Math.exp(-v*w*R),F=Math.min(A*R,300);return a-j*((S+v*w*E)*Math.sinh(F)+A*E*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const R=O(A);if(y)c.done=A>=m;else{let j=0;v<1&&(j=A===0?On(S):$0(O,A,R));const F=Math.abs(j)<=r,Y=Math.abs(a-R)<=i;c.done=F&&Y}return c.value=c.done?a:R,c},toString:()=>{const A=Math.min(fg($),uu),R=hg(j=>$.next(A*j).value,A,30);return A+"ms "+R}};return $}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const P=F=>-v*Math.exp(-F/r),O=F=>w+P(F),$=F=>{const Y=P(F),Q=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:Q};let A,R;const j=F=>{y(g.value)&&(A=F,R=N0({keyframes:[g.value,S(g.value)],velocity:$0(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!R&&A===void 0&&(Y=!0,$(F),j(F)),A!==void 0&&F>=A?R.next(F-A):(!Y&&$(F),g)}}}const rO=Zs(.42,0,1,1),iO=Zs(0,0,.58,1),F0=Zs(.42,0,.58,1),sO=e=>Array.isArray(e)&&typeof e[0]!="number",j0={linear:Rt,easeIn:rO,easeInOut:F0,easeOut:iO,circIn:Ru,circInOut:i0,circOut:r0,backIn:$u,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(du(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zs(t,n,r,i)}else if(typeof e=="string")return vr(j0[e]!==void 0,`Invalid easing type '${e}'`),j0[e];return e};function oO(e,t,n){const r=[],i=n||D0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=eo(u,c)}r.push(c)}return r}function aO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=oO(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Di(e[m],e[m+1],h);return c[m](g)};return n?h=>d(qn(e[0],e[o-1],h)):d}function lO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Di(0,t,r);e.push(tt(n,1,i))}}function cO(e){const t=[0];return lO(t,e.length-1),t}function uO(e,t){return e.map(n=>n*t)}function fO(e,t){return e.map(()=>t||F0).splice(0,e.length-1)}function to({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=sO(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=uO(n&&n.length===t.length?n:cO(t),e),c=aO(a,t,{ease:Array.isArray(i)?i:fO(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const dO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:Mn.now()}},hO={decay:k0,inertia:k0,tween:to,keyframes:to,spring:N0},mO=e=>e/100;let Zu=class extends O0{constructor(t){super(t),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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Gu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=fu(n)?n:hO[n]||to;let u,d;process.env.NODE_ENV!=="production"&&c!==to&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==to&&typeof t[0]!="number"&&(u=eo(mO,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),P=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(Q=1-Q,v&&(Q-=v/m)):S==="mirror"&&($=a)),O=qn(0,1,Q)*m}const A=P?{done:!1,value:u[0]}:$.next(O);c&&(A.value=c(A.value));let{done:R}=A;!P&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return j&&i!==void 0&&(A.value=Aa(u,this.options,i)),E&&E(A.value),j&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=dO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}};const pO=new Set(["opacity","clipPath","filter","transform"]);function gO(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const yO=au(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ma=10,vO=2e4;function bO(e){return fu(e.type)||e.type==="spring"||!mg(e.ease)}function xO(e,t){const n=new Zu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<vO;)r=n.sample(o),i.push(r.value),o+=Ma;return{times:void 0,keyframes:i,duration:o-Ma,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function wO(e){return e in B0}let U0=class extends O0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&va()&&wO(o)&&(o=B0[o]),bO(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=xO(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=gO(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Aa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new Zu({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=On(this.time);d.setWithVelocity(S.sample(v-Ma).value,S.sample(v).value,Ma)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return yO()&&r&&pO.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const SO={type:"spring",stiffness:500,damping:25,restSpeed:10},TO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EO={type:"keyframes",duration:.8},CO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PO=(e,{keyframes:t})=>t.length>2?EO:qr.has(e)?e.startsWith("scale")?TO(t[1]):SO:CO;function AO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ju=(e,t,n,r={},i,o)=>a=>{const c=cu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};AO(c)||(h={...h,...PO(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=Aa(h.keyframes,c);if(g!==void 0)return Ye.update(()=>{h.onUpdate(g),h.onComplete()}),new QC([])}return!o&&U0.supports(h)?new U0(h):new Zu(h)};function OO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&OO(h,m))continue;const S={delay:n,...cu(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const P=window.MotionHandoffAnimation(w,m,Ye);P!==null&&(S.startTime=P,v=!0)}}Du(e,m),g.start(Ju(m,g,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&rA(e,c)})}),d}function Qu(e,t,n={}){var r;const i=Xs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(W0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return MO(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function MO(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(_O).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Qu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function _O(e,t){return e.sortNodePosition(t)}function IO(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Qu(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Qu(e,t,n);else{const i=typeof t=="function"?Xs(e,t,n.custom):t;r=Promise.all(W0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const DO=bu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<DO;n++){const r=bu[n],i=e.props[r];(Ys(i)||i===!1)&&(t[r]=i)}return t}const $O=[...vu].reverse(),RO=vu.length;function LO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>IO(e,n,r)))}function NO(e){let t=LO(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const g=Xs(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=G0(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<RO;E++){const w=$O[E],P=n[w],O=d[w]!==void 0?d[w]:h[w],$=Ys(O),A=w===u?P.isActive:null;A===!1&&(S=E);let R=O===h[w]&&O!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),P.protectedKeys={...y},!P.isActive&&A===null||!O&&!P.prevProp||Ta(O)||typeof O=="boolean")continue;const j=kO(P.prevProp,O);let F=j||w===u&&P.isActive&&!R&&$||E>S&&$,Y=!1;const Q=Array.isArray(O)?O:[O];let te=Q.reduce(i(w),{});A===!1&&(te={});const{prevResolvedValues:me={}}=P,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),P.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;_u(U)&&_u(H)?M=!z0(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):P.protectedKeys[B]=!0}P.prevProp=O,P.prevResolvedValues=te,P.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&j)||Y)&&m.push(...Q.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=Xs(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const P=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=P??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function kO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},FO=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=NO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ta(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},jO=0;const VO={animation:{Feature:FO},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=jO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function no(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ro(e){return{point:{x:e.pageX,y:e.pageY}}}const BO=e=>t=>gu(t)&&e(t,ro(t));function io(e,t,n,r){return no(e,t,BO(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function UO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function WO(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const q0=1e-4,zO=1-q0,GO=1+q0,K0=.01,YO=0-K0,HO=0+K0;function Mt(e){return e.max-e.min}function qO(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zO&&e.scale<=GO||isNaN(e.scale))&&(e.scale=1),(e.translate>=YO&&e.translate<=HO||isNaN(e.translate))&&(e.translate=0)}function so(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function KO(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function oo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ji=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function ef(e){return e===void 0||e===1}function tf({scale:e,scaleX:t,scaleY:n}){return!ef(e)||!ef(t)||!ef(n)}function Qr(e){return tf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function _a(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=_a(e,i,r)),_a(e,n,r)+t}function nf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){nf(e.x,t.translate,t.scale,t.originPoint),nf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function XO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&Qr(o.latestValues)&&Bi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Vi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);nf(e,t,n,o,r)}function Bi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(WO(e.getBoundingClientRect(),t))}function ZO(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Vi(r.x,i.offset.x),Vi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function JO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 m=sf(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=JO(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=yt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=rf(g,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=sf(m.type==="pointercancel"?this.lastMoveEventInfo:rf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!gu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ro(t),c=rf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,sf(c,this.history)),this.removeListeners=eo(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function rf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sf({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,QO(t)),velocity:eM(t,.1)}}function QO(e){return e[0]}function hy(e){return e[e.length-1]}function eM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function tM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function nM(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function rM(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function iM(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Di(t.min,t.max-r,e.min):r>i&&(n=Di(e.min,e.max-i,t.min)),qn(0,1,n)}function sM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const of=.35;function oM(e=of){return e===!1?e=0:e===!0&&(e=of),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const aM=new WeakMap;let lM=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ro(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sP(g),!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),tn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(_n.test(w)){const{projection:P}=this.visualElement;if(P&&P.layout){const O=P.layout.layoutBox[E];O&&(w=Mt(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&Ye.postRender(()=>S(h,m)),Du(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=cM(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ia(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=tM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ri(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=nM(i.layoutBox,n):this.constraints=!1,this.elastic=oM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=sM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ri(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ZO(r,i.root,this.visualElement.getTransformPagePoint());let a=rM(i.layout.layoutBox,o);if(n){const c=n(UO(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Ia(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Du(this.visualElement,t),r.start(Ju(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Ia(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ri(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=iM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!Ia(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;aM.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ri(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=no(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=of,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let uM=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new lM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let fM=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ao={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},dM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let hM=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;IP(mM),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=I.useContext(tu);return b.jsx(hM,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const mM={borderRadius:{...ao,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ao,borderTopRightRadius:ao,borderBottomLeftRadius:ao,borderBottomRightRadius:ao,boxShadow:dM};function pM(e,t,n){const r=St(e)?e:Gs(e);return r.start(Ju("",r,t,n)),r.animation}function gM(e){return e instanceof SVGElement&&e.tagName!=="svg"}const yM=(e,t)=>e.depth-t.depth;let vM=class{constructor(){this.children=[],this.isDirty=!1}add(t){su(this.children,t),this.isDirty=!0}remove(t){ou(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(yM),this.isDirty=!1,this.children.forEach(t)}};function bM(e,t){const n=Mn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],xM=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function wM(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,SM(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,TM(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<xM;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SM=Cy(0,.5,r0),TM=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Di(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oy(e,t,n,r,i){return e-=t,e=_a(e,1/n,r),i!==void 0&&(e=_a(e,1/i,r)),e}function EM(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Oy(e.min,t,n,c,i),e.max=Oy(e.max,t,n,c,i)}function My(e,t,[n,r,i],o,a){EM(e,t[n],t[r],t[i],t.scale,o,a)}const CM=["x","scaleX","originX"],PM=["y","scaleY","originY"];function _y(e,t,n,r){My(e.x,t,CM,n?n.x:void 0,r?r.x:void 0),My(e.y,t,PM,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Dy(e){return Iy(e.x)&&Iy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function AM(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ly(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ny(e){return Mt(e.x)/Mt(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let OM=class{constructor(){this.members=[]}add(t){su(this.members,t),t.scheduleRender()}remove(t){if(ou(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function MM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const af=["","X","Y","Z"],_M={visibility:"hidden"},Fy=1e3;let IM=0;function lf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=IM++,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,this.nodes.forEach(RM),this.nodes.forEach(jM),this.nodes.forEach(VM),this.nodes.forEach(LM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new vM)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=gM(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=bM(g,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||GM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),P=!this.targetLayout||!Ly(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const $={...cu(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else g||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(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(BM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(kM),this.isUpdating=!1,this.nodes.forEach(FM),this.nodes.forEach(DM),this.nodes.forEach($M),this.clearAllSnapshots();const c=Mn.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,mu.update.process(yt),mu.preRender.process(yt),mu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NM),this.sharedNodes.forEach(UM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||Qr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),YM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(HM))){const{scroll:h}=this.root;h&&(Vi(u.x,h.offset.x),Vi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&nn(u,a),Vi(u.x,m.offset.x),Vi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Bi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&Bi(u,h.latestValues)}return Qr(this.latestValues)&&Bi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Qr(d.latestValues))continue;tf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),_y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Qr(this.latestValues)&&_y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tf(this.parent.latestValues)||ty(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;XO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),so(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ji(),this.projectionDelta=ji(),this.projectionDeltaWithTransform=ji()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,P=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(zM));this.animationProgress=0;let O;this.mixTargetDelta=$=>{const A=$/1e3;Wy(m.x,a.x,A),Wy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WM(this.relativeTarget,this.relativeTargetOrigin,g,A),O&&AM(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=at()),nn(O,this.relativeTarget)),v&&(this.animationValues=h,wM(h,d,this.latestValues,A,P,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=pM(0,Fy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=Mt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}nn(c,u),Bi(c,h),so(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new OM),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&lf("z",a,d,this.animationValues);for(let h=0;h<af.length;h++)lf(`rotate${af[h]}`,a,d,this.animationValues),lf(`skew${af[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return _M;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=MM(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in Hs){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:P}=Hs[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=O}else P?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Pa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function DM(e){e.updateLayout()}function $M(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(g);g.min=r[m].min,g.max=g.min+y}):qy(o,n.layoutBox,r)&&tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=ji();so(c,r,n.layoutBox);const u=ji();a?so(u,e.applyTransform(i,!0),n.measuredBox):so(u,r,n.layoutBox);const d=!Dy(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=at();oo(S,n.layoutBox,g.layoutBox);const v=at();oo(v,r,y.layoutBox),Ly(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function RM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function LM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function NM(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function kM(e){e.isLayoutDirty=!1}function FM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jM(e){e.resolveTargetDelta()}function VM(e){e.calcProjection()}function BM(e){e.resetSkewAndRotation()}function UM(e){e.removeLeadSnapshot()}function Wy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function WM(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function zM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const GM={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function YM(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!qO(Ny(t),Ny(n),.2)}function HM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const qM=Vy({attachResizeListener:(e,t)=>no(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cf.current){const e=new qM({});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),KM={pan:{Feature:fM},drag:{Feature:uM,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let XM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=aP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},ZM=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=eo(no(this.node.current,"focus",()=>this.onFocus()),no(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let JM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=fP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const uf=new WeakMap,ff=new WeakMap,QM=e=>{const t=uf.get(e.target);t&&t(e)},e_=e=>{e.forEach(QM)};function t_({root:e,...t}){const n=e||document;ff.has(n)||ff.set(n,{});const r=ff.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(e_,{root:e,...t})),r[i]}function n_(e,t,n){const r=t_(t);return uf.set(e,n),r.observe(e),()=>{uf.delete(e),r.unobserve(e)}}const r_={some:0,all:1};let i_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:r_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return n_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(s_(t,n))&&this.startObserver()}unmount(){}};function s_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const o_={inView:{Feature:i_},tap:{Feature:JM},focus:{Feature:ZM},hover:{Feature:XM}},a_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},df={current:null},Jy={current:!1};function l_(){if(Jy.current=!0,!!ru)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>df.current=e.matches;e.addListener(t),t()}else df.current=!1}const c_=[...E0,Tt,wr],u_=e=>c_.find(T0(e)),f_=new WeakMap;function d_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ya(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Gs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Gs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let h_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gu,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 y=Mn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ea(n),this.isVariantNode=Og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,f_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||l_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:df.current,process.env.NODE_ENV!=="production"&&ya(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $i){const n=$i[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qy.length;r++){const i=Qy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=d_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!u_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Mu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends h_{constructor(){super(...arguments),this.KeyframeResolver=P0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function m_(e){return window.getComputedStyle(e)}let p_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return OA(t,n);{const r=m_(t),i=(wu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Eu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Iu(t,n,r)}},g_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Wg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Au(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const y_=(e,t)=>Pu(e)?new g_(t):new p_(t,{allowProjection:e!==I.Fragment}),v_=tA({...VO,...o_,...KM,...a_},y_),hf=vP(v_),b_=500,mf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=I.useState(!0);let c=Qc,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=FC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=zC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=NC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=Qc;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=Qc}I.useEffect(()=>{if(r===0)return;const g=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(g)},[r]),I.useEffect(()=>{if(!o){const g=setTimeout(i,b_);return()=>clearTimeout(g)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return b.jsx(KC,{onExitComplete:i,children:o&&b.jsx(hf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:b.jsxs("div",{className:"flex justify-between items-center p-3",children:[b.jsxs("div",{className:"flex items-center gap-6",children:[b.jsx(Ie,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),b.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),b.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:b.jsx(Ie,{icon:WC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[a,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),b.jsx(mf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
|
|
622
622
|
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
623
623
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
624
624
|
* Copyright 2024 Fonticons, Inc.
|
|
625
|
-
*/const b_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},x_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,w_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let S_={};function lo(){return S_}function Ui(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function $a(e,t){return Ui(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=$a(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=$a(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ra(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function T_(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/w_)}function E_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$a(r)}function C_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function P_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function A_(e){return!(!P_(e)&&typeof e!="number"||isNaN(+pt(e)))}function O_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function M_(e,t){const[n,r]=Ra(e,t.start,t.end);return{start:n,end:r}}function __(e,t){const{start:n,end:r}=M_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function I_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function D_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $_(e,t){var c,u;const n=lo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const R_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L_=(e,t,n)=>{let r;const i=R_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const N_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},j_={date:Wi({formats:N_,defaultWidth:"full"}),time:Wi({formats:k_,defaultWidth:"full"}),dateTime:Wi({formats:F_,defaultWidth:"full"})},V_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B_=(e,t,n,r)=>V_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const U_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},W_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},z_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Y_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},H_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},q_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:U_,defaultWidth:"wide"}),quarter:In({values:W_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:z_,defaultWidth:"wide"}),day:In({values:G_,defaultWidth:"wide"}),dayPeriod:In({values:Y_,defaultWidth:"wide",formattingValues:H_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?X_(c,m=>m.test(a)):K_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function K_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function X_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const Z_=/^(\d+)(th|st|nd|rd)?/i,J_=/\d+/i,Q_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eI={any:[/^b/i,/^(a|c)/i]},tI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nI={any:[/1/i,/2/i,/3/i,/4/i]},rI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cI={ordinalNumber:cv({matchPattern:Z_,parsePattern:J_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:Q_,defaultMatchWidth:"wide",parsePatterns:eI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:tI,defaultMatchWidth:"wide",parsePatterns:nI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any"}),day:Dn({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:aI,defaultMatchWidth:"any",parsePatterns:lI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:L_,formatLong:j_,formatRelative:B_,localize:q_,match:cI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uI(e,t){const n=pt(e,t==null?void 0:t.in);return T_(n,D_(n))+1}function fI(e,t){const n=pt(e,t==null?void 0:t.in),r=+$a(n)-+E_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,g,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=lo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(g=i.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ui(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ui(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function dI(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ui(o,t)}function hI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ui(n,t)-+dI(n,t);return Math.round(r/rv)+1}function Be(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Be(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Be(i,t.length)}},zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Be(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Be(o,t.length)},R:function(e,t){const n=ov(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=hI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Be(i,t.length)},I:function(e,t,n){const r=fI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=uI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Be(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Be(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Be(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Be(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=zi.noon:r===0?i=zi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=zi.evening:r>=12?i=zi.afternoon:r>=4?i=zi.morning:i=zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Be(r,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Be(o,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Be(Math.trunc(r/60),2),o=Be(r%60,2);return n+i+t+o}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},pI=/^D+$/,gI=/^Y+$/,yI=["D","DD","YY","YYYY"];function vI(e){return pI.test(e)}function bI(e){return gI.test(e)}function xI(e,t,n){const r=wI(e,t,n);if(console.warn(r),yI.includes(e))throw new RangeError(r)}function wI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const SI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EI=/^'([^]*?)'?$/,CI=/''/g,PI=/[a-zA-Z]/;function $n(e,t,n){var h,m,g,y,S,v,E,w;const r=lo(),i=(n==null?void 0:n.locale)??r.locale??uv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((v=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((w=(E=r.locale)==null?void 0:E.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!A_(c))throw new RangeError("Invalid time value");let u=t.match(TI).map(A=>{const O=A[0];if(O==="p"||O==="P"){const D=mI[O];return D(A,i.formatLong)}return A}).join("").match(SI).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const O=A[0];if(O==="'")return{isToken:!1,value:AI(A)};if(dv[O])return{isToken:!0,value:A};if(O.match(PI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const O=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&bI(O)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&vI(O))&&xI(O,t,String(e));const D=dv[O[0]];return D(c,O,i.localize,d)}).join("")}function AI(e){const t=e.match(EI);return t?t[1].replace(CI,"'"):e}function OI(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function MI(e,t){return lv(Gt(e,e),C_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function _I(e,t,n){return sv(e,-1,n)}const II={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},DI=(e,t,n)=>{let r;const i=II[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},$I={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},RI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NI={date:Wi({formats:$I,defaultWidth:"full"}),time:Wi({formats:RI,defaultWidth:"full"}),dateTime:Wi({formats:LI,defaultWidth:"full"})},kI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},FI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},jI=(e,t,n,r)=>t.getHours()!==1?FI[e]:kI[e],VI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},BI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},UI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},WI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},zI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},GI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},YI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:VI,defaultWidth:"wide"}),quarter:In({values:BI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:UI,defaultWidth:"wide"}),day:In({values:WI,defaultWidth:"wide"}),dayPeriod:In({values:zI,defaultWidth:"wide",formattingValues:GI,defaultFormattingWidth:"wide"})},HI=/^(\d+)(º)?/i,qI=/\d+/i,KI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},XI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ZI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},JI={any:[/1/i,/2/i,/3/i,/4/i]},QI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},eD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},tD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},nD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},rD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},iD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},sD={ordinalNumber:cv({matchPattern:HI,parsePattern:qI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:KI,defaultMatchWidth:"wide",parsePatterns:XI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:ZI,defaultMatchWidth:"wide",parsePatterns:JI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:QI,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),day:Dn({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:rD,defaultMatchWidth:"any",parsePatterns:iD,defaultParseWidth:"any"})},Gi={code:"es",formatDistance:DI,formatLong:NI,formatRelative:jI,localize:YI,match:sD,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),pf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},oD=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv($n(r,t,{locale:{en:uv,es:Gi}[n]}))},aD=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sv=e=>e;var co={exports:{}};/**
|
|
625
|
+
*/const x_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},w_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,S_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let T_={};function lo(){return T_}function Ui(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function $a(e,t){return Ui(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=$a(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=$a(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ra(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function E_(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/S_)}function C_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$a(r)}function P_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function A_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function O_(e){return!(!A_(e)&&typeof e!="number"||isNaN(+pt(e)))}function M_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function __(e,t){const[n,r]=Ra(e,t.start,t.end);return{start:n,end:r}}function I_(e,t){const{start:n,end:r}=__(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function D_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function R_(e,t){var c,u;const n=lo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const L_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},N_=(e,t,n)=>{let r;const i=L_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const k_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},F_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},j_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},V_={date:Wi({formats:k_,defaultWidth:"full"}),time:Wi({formats:F_,defaultWidth:"full"}),dateTime:Wi({formats:j_,defaultWidth:"full"})},B_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},U_=(e,t,n,r)=>B_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const W_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},z_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},G_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Y_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},H_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},q_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},K_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:W_,defaultWidth:"wide"}),quarter:In({values:z_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:G_,defaultWidth:"wide"}),day:In({values:Y_,defaultWidth:"wide"}),dayPeriod:In({values:H_,defaultWidth:"wide",formattingValues:q_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Z_(c,m=>m.test(a)):X_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function X_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Z_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const J_=/^(\d+)(th|st|nd|rd)?/i,Q_=/\d+/i,eI={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tI={any:[/^b/i,/^(a|c)/i]},nI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rI={any:[/1/i,/2/i,/3/i,/4/i]},iI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},aI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uI={ordinalNumber:cv({matchPattern:J_,parsePattern:Q_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:eI,defaultMatchWidth:"wide",parsePatterns:tI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:nI,defaultMatchWidth:"wide",parsePatterns:rI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:iI,defaultMatchWidth:"wide",parsePatterns:sI,defaultParseWidth:"any"}),day:Dn({matchPatterns:oI,defaultMatchWidth:"wide",parsePatterns:aI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:lI,defaultMatchWidth:"any",parsePatterns:cI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:N_,formatLong:V_,formatRelative:U_,localize:K_,match:uI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function fI(e,t){const n=pt(e,t==null?void 0:t.in);return E_(n,$_(n))+1}function dI(e,t){const n=pt(e,t==null?void 0:t.in),r=+$a(n)-+C_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,g,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=lo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(g=i.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ui(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ui(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function hI(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ui(o,t)}function mI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ui(n,t)-+hI(n,t);return Math.round(r/rv)+1}function Be(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Be(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Be(i,t.length)}},zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Be(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Be(o,t.length)},R:function(e,t){const n=ov(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=mI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Be(i,t.length)},I:function(e,t,n){const r=dI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=fI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Be(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Be(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Be(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Be(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=zi.noon:r===0?i=zi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=zi.evening:r>=12?i=zi.afternoon:r>=4?i=zi.morning:i=zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Be(r,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Be(o,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Be(Math.trunc(r/60),2),o=Be(r%60,2);return n+i+t+o}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},pI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},gI=/^D+$/,yI=/^Y+$/,vI=["D","DD","YY","YYYY"];function bI(e){return gI.test(e)}function xI(e){return yI.test(e)}function wI(e,t,n){const r=SI(e,t,n);if(console.warn(r),vI.includes(e))throw new RangeError(r)}function SI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const TI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,EI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CI=/^'([^]*?)'?$/,PI=/''/g,AI=/[a-zA-Z]/;function $n(e,t,n){var h,m,g,y,S,v,E,w;const r=lo(),i=(n==null?void 0:n.locale)??r.locale??uv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((v=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((w=(E=r.locale)==null?void 0:E.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!O_(c))throw new RangeError("Invalid time value");let u=t.match(EI).map(P=>{const O=P[0];if(O==="p"||O==="P"){const $=pI[O];return $(P,i.formatLong)}return P}).join("").match(TI).map(P=>{if(P==="''")return{isToken:!1,value:"'"};const O=P[0];if(O==="'")return{isToken:!1,value:OI(P)};if(dv[O])return{isToken:!0,value:P};if(O.match(AI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:P}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(P=>{if(!P.isToken)return P.value;const O=P.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&xI(O)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&bI(O))&&wI(O,t,String(e));const $=dv[O[0]];return $(c,O,i.localize,d)}).join("")}function OI(e){const t=e.match(CI);return t?t[1].replace(PI,"'"):e}function MI(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function _I(e,t){return lv(Gt(e,e),P_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function II(e,t,n){return sv(e,-1,n)}const DI={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},$I=(e,t,n)=>{let r;const i=DI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},RI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},LI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},NI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kI={date:Wi({formats:RI,defaultWidth:"full"}),time:Wi({formats:LI,defaultWidth:"full"}),dateTime:Wi({formats:NI,defaultWidth:"full"})},FI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},jI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},VI=(e,t,n,r)=>t.getHours()!==1?jI[e]:FI[e],BI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},UI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},WI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},zI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},GI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},YI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},HI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:BI,defaultWidth:"wide"}),quarter:In({values:UI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:WI,defaultWidth:"wide"}),day:In({values:zI,defaultWidth:"wide"}),dayPeriod:In({values:GI,defaultWidth:"wide",formattingValues:YI,defaultFormattingWidth:"wide"})},qI=/^(\d+)(º)?/i,KI=/\d+/i,XI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},ZI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},JI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},QI={any:[/1/i,/2/i,/3/i,/4/i]},eD={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},tD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},nD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},rD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},iD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},sD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},oD={ordinalNumber:cv({matchPattern:qI,parsePattern:KI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:XI,defaultMatchWidth:"wide",parsePatterns:ZI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:JI,defaultMatchWidth:"wide",parsePatterns:QI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:eD,defaultMatchWidth:"wide",parsePatterns:tD,defaultParseWidth:"any"}),day:Dn({matchPatterns:nD,defaultMatchWidth:"wide",parsePatterns:rD,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:iD,defaultMatchWidth:"any",parsePatterns:sD,defaultParseWidth:"any"})},Gi={code:"es",formatDistance:$I,formatLong:kI,formatRelative:VI,localize:HI,match:oD,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),pf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},aD=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv($n(r,t,{locale:{en:uv,es:Gi}[n]}))},lD=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sv=e=>e;var co={exports:{}};/**
|
|
626
626
|
* @license
|
|
627
627
|
* Lodash <https://lodash.com/>
|
|
628
628
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
629
629
|
* Released under MIT license <https://lodash.com/license>
|
|
630
630
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
631
631
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
632
|
-
*/var lD=co.exports,Tv;function cD(){return Tv||(Tv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,y=4,S=1,v=2,E=1,w=2,A=4,O=8,D=16,C=32,L=64,j=128,F=256,Y=512,ee=30,te="...",me=800,de=16,le=1,re=2,ie=3,B=1/0,U=9007199254740991,H=17976931348623157e292,M=NaN,N=4294967295,K=N-1,Q=N>>>1,ue=[["ary",j],["bind",E],["bindKey",w],["curry",O],["curryRight",D],["flip",Y],["partial",C],["partialRight",L],["rearg",F]],X="[object Arguments]",ce="[object Array]",he="[object AsyncFunction]",oe="[object Boolean]",ge="[object Date]",Ce="[object DOMException]",Ue="[object Error]",ne="[object Function]",ye="[object GeneratorFunction]",Ne="[object Map]",ft="[object Number]",mi="[object Null]",dt="[object Object]",vl="[object Promise]",bl="[object Proxy]",pi="[object RegExp]",qt="[object Set]",bn="[object String]",gi="[object Symbol]",xl="[object Undefined]",Lr="[object WeakMap]",wl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",dk=/\b__p \+= '';/g,hk=/\b(__p \+=) '' \+/g,mk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lw=/&(?:amp|lt|gt|quot|#39);/g,Nw=/[&<>"']/g,pk=RegExp(Lw.source),gk=RegExp(Nw.source),yk=/<%-([\s\S]+?)%>/g,vk=/<%([\s\S]+?)%>/g,kw=/<%=([\s\S]+?)%>/g,bk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xk=/^\w*$/,wk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Sk=RegExp(yh.source),vh=/^\s+/,Tk=/\s/,Ek=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ck=/\{\n\/\* \[wrapped with (.+)\] \*/,Pk=/,? & /,Ak=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ok=/[()=,{}\[\]\/\s]/,Mk=/\\(\\)?/g,_k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fw=/\w*$/,Ik=/^[-+]0x[0-9a-f]+$/i,Dk=/^0b[01]+$/i,$k=/^\[object .+?Constructor\]$/,Rk=/^0o[0-7]+$/i,Lk=/^(?:0|[1-9]\d*)$/,Nk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sl=/($^)/,kk=/['\n\r\u2028\u2029\\]/g,Tl="\\ud800-\\udfff",Fk="\\u0300-\\u036f",jk="\\ufe20-\\ufe2f",Vk="\\u20d0-\\u20ff",jw=Fk+jk+Vk,Vw="\\u2700-\\u27bf",Bw="a-z\\xdf-\\xf6\\xf8-\\xff",Bk="\\xac\\xb1\\xd7\\xf7",Uk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wk="\\u2000-\\u206f",zk=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Uw="A-Z\\xc0-\\xd6\\xd8-\\xde",Ww="\\ufe0e\\ufe0f",zw=Bk+Uk+Wk+zk,bh="['’]",Gk="["+Tl+"]",Gw="["+zw+"]",El="["+jw+"]",Yw="\\d+",Yk="["+Vw+"]",Hw="["+Bw+"]",qw="[^"+Tl+zw+Yw+Vw+Bw+Uw+"]",xh="\\ud83c[\\udffb-\\udfff]",Hk="(?:"+El+"|"+xh+")",Kw="[^"+Tl+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",xs="["+Uw+"]",Xw="\\u200d",Zw="(?:"+Hw+"|"+qw+")",qk="(?:"+xs+"|"+qw+")",Jw="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",Qw="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",eS=Hk+"?",tS="["+Ww+"]?",Kk="(?:"+Xw+"(?:"+[Kw,wh,Sh].join("|")+")"+tS+eS+")*",Xk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nS=tS+eS+Kk,Jk="(?:"+[Yk,wh,Sh].join("|")+")"+nS,Qk="(?:"+[Kw+El+"?",El,wh,Sh,Gk].join("|")+")",e3=RegExp(bh,"g"),t3=RegExp(El,"g"),Th=RegExp(xh+"(?="+xh+")|"+Qk+nS,"g"),n3=RegExp([xs+"?"+Hw+"+"+Jw+"(?="+[Gw,xs,"$"].join("|")+")",qk+"+"+Qw+"(?="+[Gw,xs+Zw,"$"].join("|")+")",xs+"?"+Zw+"+"+Jw,xs+"+"+Qw,Zk,Xk,Yw,Jk].join("|"),"g"),r3=RegExp("["+Xw+Tl+jw+Ww+"]"),i3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,s3=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],o3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[X]=Je[ce]=Je[be]=Je[oe]=Je[Qe]=Je[ge]=Je[Ue]=Je[ne]=Je[Ne]=Je[ft]=Je[dt]=Je[pi]=Je[qt]=Je[bn]=Je[Lr]=!1;var Ke={};Ke[X]=Ke[ce]=Ke[be]=Ke[Qe]=Ke[oe]=Ke[ge]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[Ne]=Ke[ft]=Ke[dt]=Ke[pi]=Ke[qt]=Ke[bn]=Ke[gi]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ue]=Ke[ne]=Ke[Lr]=!1;var a3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},l3={"&":"&","<":"<",">":">",'"':""","'":"'"},c3={"&":"&","<":"<",">":">",""":'"',"'":"'"},u3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f3=parseFloat,d3=parseInt,rS=typeof Qo=="object"&&Qo&&Qo.Object===Object&&Qo,h3=typeof self=="object"&&self&&self.Object===Object&&self,bt=rS||h3||Function("return this")(),Eh=t&&!t.nodeType&&t,yi=Eh&&!0&&e&&!e.nodeType&&e,iS=yi&&yi.exports===Eh,Ch=iS&&rS.process,cn=function(){try{var R=yi&&yi.require&&yi.require("util").types;return R||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),sS=cn&&cn.isArrayBuffer,oS=cn&&cn.isDate,aS=cn&&cn.isMap,lS=cn&&cn.isRegExp,cS=cn&&cn.isSet,uS=cn&&cn.isTypedArray;function Kt(R,W,V){switch(V.length){case 0:return R.call(W);case 1:return R.call(W,V[0]);case 2:return R.call(W,V[0],V[1]);case 3:return R.call(W,V[0],V[1],V[2])}return R.apply(W,V)}function m3(R,W,V,fe){for(var Pe=-1,ke=R==null?0:R.length;++Pe<ke;){var ht=R[Pe];W(fe,ht,V(ht),R)}return fe}function un(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe&&W(R[V],V,R)!==!1;);return R}function p3(R,W){for(var V=R==null?0:R.length;V--&&W(R[V],V,R)!==!1;);return R}function fS(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe;)if(!W(R[V],V,R))return!1;return!0}function Nr(R,W){for(var V=-1,fe=R==null?0:R.length,Pe=0,ke=[];++V<fe;){var ht=R[V];W(ht,V,R)&&(ke[Pe++]=ht)}return ke}function Cl(R,W){var V=R==null?0:R.length;return!!V&&ws(R,W,0)>-1}function Ph(R,W,V){for(var fe=-1,Pe=R==null?0:R.length;++fe<Pe;)if(V(W,R[fe]))return!0;return!1}function et(R,W){for(var V=-1,fe=R==null?0:R.length,Pe=Array(fe);++V<fe;)Pe[V]=W(R[V],V,R);return Pe}function kr(R,W){for(var V=-1,fe=W.length,Pe=R.length;++V<fe;)R[Pe+V]=W[V];return R}function Ah(R,W,V,fe){var Pe=-1,ke=R==null?0:R.length;for(fe&&ke&&(V=R[++Pe]);++Pe<ke;)V=W(V,R[Pe],Pe,R);return V}function g3(R,W,V,fe){var Pe=R==null?0:R.length;for(fe&&Pe&&(V=R[--Pe]);Pe--;)V=W(V,R[Pe],Pe,R);return V}function Oh(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe;)if(W(R[V],V,R))return!0;return!1}var y3=Mh("length");function v3(R){return R.split("")}function b3(R){return R.match(Ak)||[]}function dS(R,W,V){var fe;return V(R,function(Pe,ke,ht){if(W(Pe,ke,ht))return fe=ke,!1}),fe}function Pl(R,W,V,fe){for(var Pe=R.length,ke=V+(fe?1:-1);fe?ke--:++ke<Pe;)if(W(R[ke],ke,R))return ke;return-1}function ws(R,W,V){return W===W?I3(R,W,V):Pl(R,hS,V)}function x3(R,W,V,fe){for(var Pe=V-1,ke=R.length;++Pe<ke;)if(fe(R[Pe],W))return Pe;return-1}function hS(R){return R!==R}function mS(R,W){var V=R==null?0:R.length;return V?Ih(R,W)/V:M}function Mh(R){return function(W){return W==null?n:W[R]}}function _h(R){return function(W){return R==null?n:R[W]}}function pS(R,W,V,fe,Pe){return Pe(R,function(ke,ht,Ge){V=fe?(fe=!1,ke):W(V,ke,ht,Ge)}),V}function w3(R,W){var V=R.length;for(R.sort(W);V--;)R[V]=R[V].value;return R}function Ih(R,W){for(var V,fe=-1,Pe=R.length;++fe<Pe;){var ke=W(R[fe]);ke!==n&&(V=V===n?ke:V+ke)}return V}function Dh(R,W){for(var V=-1,fe=Array(R);++V<R;)fe[V]=W(V);return fe}function S3(R,W){return et(W,function(V){return[V,R[V]]})}function gS(R){return R&&R.slice(0,xS(R)+1).replace(vh,"")}function Xt(R){return function(W){return R(W)}}function $h(R,W){return et(W,function(V){return R[V]})}function Fo(R,W){return R.has(W)}function yS(R,W){for(var V=-1,fe=R.length;++V<fe&&ws(W,R[V],0)>-1;);return V}function vS(R,W){for(var V=R.length;V--&&ws(W,R[V],0)>-1;);return V}function T3(R,W){for(var V=R.length,fe=0;V--;)R[V]===W&&++fe;return fe}var E3=_h(a3),C3=_h(l3);function P3(R){return"\\"+u3[R]}function A3(R,W){return R==null?n:R[W]}function Ss(R){return r3.test(R)}function O3(R){return i3.test(R)}function M3(R){for(var W,V=[];!(W=R.next()).done;)V.push(W.value);return V}function Rh(R){var W=-1,V=Array(R.size);return R.forEach(function(fe,Pe){V[++W]=[Pe,fe]}),V}function bS(R,W){return function(V){return R(W(V))}}function Fr(R,W){for(var V=-1,fe=R.length,Pe=0,ke=[];++V<fe;){var ht=R[V];(ht===W||ht===h)&&(R[V]=h,ke[Pe++]=V)}return ke}function Al(R){var W=-1,V=Array(R.size);return R.forEach(function(fe){V[++W]=fe}),V}function _3(R){var W=-1,V=Array(R.size);return R.forEach(function(fe){V[++W]=[fe,fe]}),V}function I3(R,W,V){for(var fe=V-1,Pe=R.length;++fe<Pe;)if(R[fe]===W)return fe;return-1}function D3(R,W,V){for(var fe=V+1;fe--;)if(R[fe]===W)return fe;return fe}function Ts(R){return Ss(R)?R3(R):y3(R)}function wn(R){return Ss(R)?L3(R):v3(R)}function xS(R){for(var W=R.length;W--&&Tk.test(R.charAt(W)););return W}var $3=_h(c3);function R3(R){for(var W=Th.lastIndex=0;Th.test(R);)++W;return W}function L3(R){return R.match(Th)||[]}function N3(R){return R.match(n3)||[]}var k3=function R(W){W=W==null?bt:Es.defaults(bt.Object(),W,Es.pick(bt,s3));var V=W.Array,fe=W.Date,Pe=W.Error,ke=W.Function,ht=W.Math,Ge=W.Object,Lh=W.RegExp,F3=W.String,fn=W.TypeError,Ol=V.prototype,j3=ke.prototype,Cs=Ge.prototype,Ml=W["__core-js_shared__"],_l=j3.toString,We=Cs.hasOwnProperty,V3=0,wS=function(){var s=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Il=Cs.toString,B3=_l.call(Ge),U3=bt._,W3=Lh("^"+_l.call(We).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=iS?W.Buffer:n,jr=W.Symbol,$l=W.Uint8Array,SS=Dl?Dl.allocUnsafe:n,Rl=bS(Ge.getPrototypeOf,Ge),TS=Ge.create,ES=Cs.propertyIsEnumerable,Ll=Ol.splice,CS=jr?jr.isConcatSpreadable:n,jo=jr?jr.iterator:n,vi=jr?jr.toStringTag:n,Nl=function(){try{var s=Ti(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),z3=W.clearTimeout!==bt.clearTimeout&&W.clearTimeout,G3=fe&&fe.now!==bt.Date.now&&fe.now,Y3=W.setTimeout!==bt.setTimeout&&W.setTimeout,kl=ht.ceil,Fl=ht.floor,Nh=Ge.getOwnPropertySymbols,H3=Dl?Dl.isBuffer:n,PS=W.isFinite,q3=Ol.join,K3=bS(Ge.keys,Ge),mt=ht.max,At=ht.min,X3=fe.now,Z3=W.parseInt,AS=ht.random,J3=Ol.reverse,kh=Ti(W,"DataView"),Vo=Ti(W,"Map"),Fh=Ti(W,"Promise"),Ps=Ti(W,"Set"),Bo=Ti(W,"WeakMap"),Uo=Ti(Ge,"create"),jl=Bo&&new Bo,As={},Q3=Ei(kh),eF=Ei(Vo),tF=Ei(Fh),nF=Ei(Ps),rF=Ei(Bo),Vl=jr?jr.prototype:n,Wo=Vl?Vl.valueOf:n,OS=Vl?Vl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(We.call(s,"__wrapped__"))return M2(s)}return new dn(s)}var Os=function(){function s(){}return function(l){if(!st(l))return{};if(TS)return TS(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Bl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}T.templateSettings={escape:yk,evaluate:vk,interpolate:kw,variable:"",imports:{_:T}},T.prototype=Bl.prototype,T.prototype.constructor=T,dn.prototype=Os(Bl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function iF(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function sF(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function oF(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),p=l<0,b=f?s.length:0,P=vj(0,b,this.__views__),_=P.start,$=P.end,k=$-_,z=p?$:_-1,G=this.__iteratees__,q=G.length,se=0,pe=At(k,this.__takeCount__);if(!f||!p&&b==k&&pe==k)return JS(s,this.__actions__);var Te=[];e:for(;k--&&se<pe;){z+=l;for(var Me=-1,Ee=s[z];++Me<q;){var $e=G[Me],Le=$e.iteratee,Qt=$e.type,$t=Le(Ee);if(Qt==re)Ee=$t;else if(!$t){if(Qt==le)continue e;break e}}Te[se++]=Ee}return Te}Re.prototype=Os(Bl.prototype),Re.prototype.constructor=Re;function bi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function aF(){this.__data__=Uo?Uo(null):{},this.size=0}function lF(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function cF(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return We.call(l,s)?l[s]:n}function uF(s){var l=this.__data__;return Uo?l[s]!==n:We.call(l,s)}function fF(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}bi.prototype.clear=aF,bi.prototype.delete=lF,bi.prototype.get=cF,bi.prototype.has=uF,bi.prototype.set=fF;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function dF(){this.__data__=[],this.size=0}function hF(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var p=l.length-1;return f==p?l.pop():Ll.call(l,f,1),--this.size,!0}function mF(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function pF(s){return Ul(this.__data__,s)>-1}function gF(s,l){var f=this.__data__,p=Ul(f,s);return p<0?(++this.size,f.push([s,l])):f[p][1]=l,this}ir.prototype.clear=dF,ir.prototype.delete=hF,ir.prototype.get=mF,ir.prototype.has=pF,ir.prototype.set=gF;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function yF(){this.size=0,this.__data__={hash:new bi,map:new(Vo||ir),string:new bi}}function vF(s){var l=ec(this,s).delete(s);return this.size-=l?1:0,l}function bF(s){return ec(this,s).get(s)}function xF(s){return ec(this,s).has(s)}function wF(s,l){var f=ec(this,s),p=f.size;return f.set(s,l),this.size+=f.size==p?0:1,this}sr.prototype.clear=yF,sr.prototype.delete=vF,sr.prototype.get=bF,sr.prototype.has=xF,sr.prototype.set=wF;function xi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function SF(s){return this.__data__.set(s,u),this}function TF(s){return this.__data__.has(s)}xi.prototype.add=xi.prototype.push=SF,xi.prototype.has=TF;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function EF(){this.__data__=new ir,this.size=0}function CF(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function PF(s){return this.__data__.get(s)}function AF(s){return this.__data__.has(s)}function OF(s,l){var f=this.__data__;if(f instanceof ir){var p=f.__data__;if(!Vo||p.length<i-1)return p.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(p)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=EF,Sn.prototype.delete=CF,Sn.prototype.get=PF,Sn.prototype.has=AF,Sn.prototype.set=OF;function MS(s,l){var f=Ae(s),p=!f&&Ci(s),b=!f&&!p&&zr(s),P=!f&&!p&&!b&&Ds(s),_=f||p||b||P,$=_?Dh(s.length,F3):[],k=$.length;for(var z in s)(l||We.call(s,z))&&!(_&&(z=="length"||b&&(z=="offset"||z=="parent")||P&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||cr(z,k)))&&$.push(z);return $}function _S(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function MF(s,l){return tc(Vt(s),wi(l,0,s.length))}function _F(s){return tc(Vt(s))}function jh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function zo(s,l,f){var p=s[l];(!(We.call(s,l)&&Tn(p,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function IF(s,l,f,p){return Vr(s,function(b,P,_){l(p,b,f(b),_)}),p}function IS(s,l){return s&&Un(l,gt(l),s)}function DF(s,l){return s&&Un(l,Ut(l),s)}function or(s,l,f){l=="__proto__"&&Nl?Nl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Vh(s,l){for(var f=-1,p=l.length,b=V(p),P=s==null;++f<p;)b[f]=P?n:xm(s,l[f]);return b}function wi(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,p,b,P){var _,$=l&m,k=l&g,z=l&y;if(f&&(_=b?f(s,p,b,P):f(s)),_!==n)return _;if(!st(s))return s;var G=Ae(s);if(G){if(_=xj(s),!$)return Vt(s,_)}else{var q=Ot(s),se=q==ne||q==ye;if(zr(s))return t2(s,$);if(q==dt||q==X||se&&!b){if(_=k||se?{}:x2(s),!$)return k?cj(s,DF(_,s)):lj(s,IS(_,s))}else{if(!Ke[q])return b?s:{};_=wj(s,q,$)}}P||(P=new Sn);var pe=P.get(s);if(pe)return pe;P.set(s,_),K2(s)?s.forEach(function(Ee){_.add(hn(Ee,l,f,Ee,s,P))}):H2(s)&&s.forEach(function(Ee,$e){_.set($e,hn(Ee,l,f,$e,s,P))});var Te=z?k?om:sm:k?Ut:gt,Me=G?n:Te(s);return un(Me||s,function(Ee,$e){Me&&($e=Ee,Ee=s[$e]),zo(_,$e,hn(Ee,l,f,$e,s,P))}),_}function $F(s){var l=gt(s);return function(f){return DS(f,s,l)}}function DS(s,l,f){var p=f.length;if(s==null)return!p;for(s=Ge(s);p--;){var b=f[p],P=l[b],_=s[b];if(_===n&&!(b in s)||!P(_))return!1}return!0}function $S(s,l,f){if(typeof s!="function")throw new fn(a);return Zo(function(){s.apply(n,f)},l)}function Go(s,l,f,p){var b=-1,P=Cl,_=!0,$=s.length,k=[],z=l.length;if(!$)return k;f&&(l=et(l,Xt(f))),p?(P=Ph,_=!1):l.length>=i&&(P=Fo,_=!1,l=new xi(l));e:for(;++b<$;){var G=s[b],q=f==null?G:f(G);if(G=p||G!==0?G:0,_&&q===q){for(var se=z;se--;)if(l[se]===q)continue e;k.push(G)}else P(l,q,p)||k.push(G)}return k}var Vr=o2(Bn),RS=o2(Uh,!0);function RF(s,l){var f=!0;return Vr(s,function(p,b,P){return f=!!l(p,b,P),f}),f}function Wl(s,l,f){for(var p=-1,b=s.length;++p<b;){var P=s[p],_=l(P);if(_!=null&&($===n?_===_&&!Jt(_):f(_,$)))var $=_,k=P}return k}function LF(s,l,f,p){var b=s.length;for(f=Oe(f),f<0&&(f=-f>b?0:b+f),p=p===n||p>b?b:Oe(p),p<0&&(p+=b),p=f>p?0:Z2(p);f<p;)s[f++]=l;return s}function LS(s,l){var f=[];return Vr(s,function(p,b,P){l(p,b,P)&&f.push(p)}),f}function xt(s,l,f,p,b){var P=-1,_=s.length;for(f||(f=Tj),b||(b=[]);++P<_;){var $=s[P];l>0&&f($)?l>1?xt($,l-1,f,p,b):kr(b,$):p||(b[b.length]=$)}return b}var Bh=a2(),NS=a2(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Uh(s,l){return s&&NS(s,l,gt)}function zl(s,l){return Nr(l,function(f){return ur(s[f])})}function Si(s,l){l=Ur(l,s);for(var f=0,p=l.length;s!=null&&f<p;)s=s[Wn(l[f++])];return f&&f==p?s:n}function kS(s,l,f){var p=l(s);return Ae(s)?p:kr(p,f(s))}function It(s){return s==null?s===n?xl:mi:vi&&vi in Ge(s)?yj(s):_j(s)}function Wh(s,l){return s>l}function NF(s,l){return s!=null&&We.call(s,l)}function kF(s,l){return s!=null&&l in Ge(s)}function FF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var p=f?Ph:Cl,b=s[0].length,P=s.length,_=P,$=V(P),k=1/0,z=[];_--;){var G=s[_];_&&l&&(G=et(G,Xt(l))),k=At(G.length,k),$[_]=!f&&(l||b>=120&&G.length>=120)?new xi(_&&G):n}G=s[0];var q=-1,se=$[0];e:for(;++q<b&&z.length<k;){var pe=G[q],Te=l?l(pe):pe;if(pe=f||pe!==0?pe:0,!(se?Fo(se,Te):p(z,Te,f))){for(_=P;--_;){var Me=$[_];if(!(Me?Fo(Me,Te):p(s[_],Te,f)))continue e}se&&se.push(Te),z.push(pe)}}return z}function jF(s,l,f,p){return Bn(s,function(b,P,_){l(p,f(b),P,_)}),p}function Yo(s,l,f){l=Ur(l,s),s=E2(s,l);var p=s==null?s:s[Wn(pn(l))];return p==null?n:Kt(p,s,f)}function FS(s){return ot(s)&&It(s)==X}function VF(s){return ot(s)&&It(s)==be}function BF(s){return ot(s)&&It(s)==ge}function Ho(s,l,f,p,b){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:UF(s,l,f,p,Ho,b)}function UF(s,l,f,p,b,P){var _=Ae(s),$=Ae(l),k=_?ce:Ot(s),z=$?ce:Ot(l);k=k==X?dt:k,z=z==X?dt:z;var G=k==dt,q=z==dt,se=k==z;if(se&&zr(s)){if(!zr(l))return!1;_=!0,G=!1}if(se&&!G)return P||(P=new Sn),_||Ds(s)?y2(s,l,f,p,b,P):pj(s,l,k,f,p,b,P);if(!(f&S)){var pe=G&&We.call(s,"__wrapped__"),Te=q&&We.call(l,"__wrapped__");if(pe||Te){var Me=pe?s.value():s,Ee=Te?l.value():l;return P||(P=new Sn),b(Me,Ee,f,p,P)}}return se?(P||(P=new Sn),gj(s,l,f,p,b,P)):!1}function WF(s){return ot(s)&&Ot(s)==Ne}function Gh(s,l,f,p){var b=f.length,P=b,_=!p;if(s==null)return!P;for(s=Ge(s);b--;){var $=f[b];if(_&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++b<P;){$=f[b];var k=$[0],z=s[k],G=$[1];if(_&&$[2]){if(z===n&&!(k in s))return!1}else{var q=new Sn;if(p)var se=p(z,G,k,s,l,q);if(!(se===n?Ho(G,z,S|v,p,q):se))return!1}}return!0}function jS(s){if(!st(s)||Cj(s))return!1;var l=ur(s)?W3:$k;return l.test(Ei(s))}function zF(s){return ot(s)&&It(s)==pi}function GF(s){return ot(s)&&Ot(s)==qt}function YF(s){return ot(s)&&ac(s.length)&&!!Je[It(s)]}function VS(s){return typeof s=="function"?s:s==null?Wt:typeof s=="object"?Ae(s)?WS(s[0],s[1]):US(s):lT(s)}function Yh(s){if(!Xo(s))return K3(s);var l=[];for(var f in Ge(s))We.call(s,f)&&f!="constructor"&&l.push(f);return l}function HF(s){if(!st(s))return Mj(s);var l=Xo(s),f=[];for(var p in s)p=="constructor"&&(l||!We.call(s,p))||f.push(p);return f}function Hh(s,l){return s<l}function BS(s,l){var f=-1,p=Bt(s)?V(s.length):[];return Vr(s,function(b,P,_){p[++f]=l(b,P,_)}),p}function US(s){var l=lm(s);return l.length==1&&l[0][2]?S2(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function WS(s,l){return um(s)&&w2(l)?S2(Wn(s),l):function(f){var p=xm(f,s);return p===n&&p===l?wm(f,s):Ho(l,p,S|v)}}function Gl(s,l,f,p,b){s!==l&&Bh(l,function(P,_){if(b||(b=new Sn),st(P))qF(s,l,_,f,Gl,p,b);else{var $=p?p(dm(s,_),P,_+"",s,l,b):n;$===n&&($=P),jh(s,_,$)}},Ut)}function qF(s,l,f,p,b,P,_){var $=dm(s,f),k=dm(l,f),z=_.get(k);if(z){jh(s,f,z);return}var G=P?P($,k,f+"",s,l,_):n,q=G===n;if(q){var se=Ae(k),pe=!se&&zr(k),Te=!se&&!pe&&Ds(k);G=k,se||pe||Te?Ae($)?G=$:ct($)?G=Vt($):pe?(q=!1,G=t2(k,!0)):Te?(q=!1,G=n2(k,!0)):G=[]:Jo(k)||Ci(k)?(G=$,Ci($)?G=J2($):(!st($)||ur($))&&(G=x2(k))):q=!1}q&&(_.set(k,G),b(G,k,p,P,_),_.delete(k)),jh(s,f,G)}function zS(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function GS(s,l,f){l.length?l=et(l,function(P){return Ae(P)?function(_){return Si(_,P.length===1?P[0]:P)}:P}):l=[Wt];var p=-1;l=et(l,Xt(xe()));var b=BS(s,function(P,_,$){var k=et(l,function(z){return z(P)});return{criteria:k,index:++p,value:P}});return w3(b,function(P,_){return aj(P,_,f)})}function KF(s,l){return YS(s,l,function(f,p){return wm(s,p)})}function YS(s,l,f){for(var p=-1,b=l.length,P={};++p<b;){var _=l[p],$=Si(s,_);f($,_)&&qo(P,Ur(_,s),$)}return P}function XF(s){return function(l){return Si(l,s)}}function qh(s,l,f,p){var b=p?x3:ws,P=-1,_=l.length,$=s;for(s===l&&(l=Vt(l)),f&&($=et(s,Xt(f)));++P<_;)for(var k=0,z=l[P],G=f?f(z):z;(k=b($,G,k,p))>-1;)$!==s&&Ll.call($,k,1),Ll.call(s,k,1);return s}function HS(s,l){for(var f=s?l.length:0,p=f-1;f--;){var b=l[f];if(f==p||b!==P){var P=b;cr(b)?Ll.call(s,b,1):Jh(s,b)}}return s}function Kh(s,l){return s+Fl(AS()*(l-s+1))}function ZF(s,l,f,p){for(var b=-1,P=mt(kl((l-s)/(f||1)),0),_=V(P);P--;)_[p?P:++b]=s,s+=f;return _}function Xh(s,l){var f="";if(!s||l<1||l>U)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function _e(s,l){return hm(T2(s,l,Wt),s+"")}function JF(s){return _S($s(s))}function QF(s,l){var f=$s(s);return tc(f,wi(l,0,f.length))}function qo(s,l,f,p){if(!st(s))return s;l=Ur(l,s);for(var b=-1,P=l.length,_=P-1,$=s;$!=null&&++b<P;){var k=Wn(l[b]),z=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(b!=_){var G=$[k];z=p?p(G,k,$):n,z===n&&(z=st(G)?G:cr(l[b+1])?[]:{})}zo($,k,z),$=$[k]}return s}var qS=jl?function(s,l){return jl.set(s,l),s}:Wt,ej=Nl?function(s,l){return Nl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Wt;function tj(s){return tc($s(s))}function mn(s,l,f){var p=-1,b=s.length;l<0&&(l=-l>b?0:b+l),f=f>b?b:f,f<0&&(f+=b),b=l>f?0:f-l>>>0,l>>>=0;for(var P=V(b);++p<b;)P[p]=s[p+l];return P}function nj(s,l){var f;return Vr(s,function(p,b,P){return f=l(p,b,P),!f}),!!f}function Yl(s,l,f){var p=0,b=s==null?p:s.length;if(typeof l=="number"&&l===l&&b<=Q){for(;p<b;){var P=p+b>>>1,_=s[P];_!==null&&!Jt(_)&&(f?_<=l:_<l)?p=P+1:b=P}return b}return Zh(s,l,Wt,f)}function Zh(s,l,f,p){var b=0,P=s==null?0:s.length;if(P===0)return 0;l=f(l);for(var _=l!==l,$=l===null,k=Jt(l),z=l===n;b<P;){var G=Fl((b+P)/2),q=f(s[G]),se=q!==n,pe=q===null,Te=q===q,Me=Jt(q);if(_)var Ee=p||Te;else z?Ee=Te&&(p||se):$?Ee=Te&&se&&(p||!pe):k?Ee=Te&&se&&!pe&&(p||!Me):pe||Me?Ee=!1:Ee=p?q<=l:q<l;Ee?b=G+1:P=G}return At(P,K)}function KS(s,l){for(var f=-1,p=s.length,b=0,P=[];++f<p;){var _=s[f],$=l?l(_):_;if(!f||!Tn($,k)){var k=$;P[b++]=_===0?0:_}}return P}function XS(s){return typeof s=="number"?s:Jt(s)?M:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return OS?OS.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var p=-1,b=Cl,P=s.length,_=!0,$=[],k=$;if(f)_=!1,b=Ph;else if(P>=i){var z=l?null:hj(s);if(z)return Al(z);_=!1,b=Fo,k=new xi}else k=l?[]:$;e:for(;++p<P;){var G=s[p],q=l?l(G):G;if(G=f||G!==0?G:0,_&&q===q){for(var se=k.length;se--;)if(k[se]===q)continue e;l&&k.push(q),$.push(G)}else b(k,q,f)||(k!==$&&k.push(q),$.push(G))}return $}function Jh(s,l){return l=Ur(l,s),s=E2(s,l),s==null||delete s[Wn(pn(l))]}function ZS(s,l,f,p){return qo(s,l,f(Si(s,l)),p)}function Hl(s,l,f,p){for(var b=s.length,P=p?b:-1;(p?P--:++P<b)&&l(s[P],P,s););return f?mn(s,p?0:P,p?P+1:b):mn(s,p?P+1:0,p?b:P)}function JS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Ah(l,function(p,b){return b.func.apply(b.thisArg,kr([p],b.args))},f)}function Qh(s,l,f){var p=s.length;if(p<2)return p?Br(s[0]):[];for(var b=-1,P=V(p);++b<p;)for(var _=s[b],$=-1;++$<p;)$!=b&&(P[b]=Go(P[b]||_,s[$],l,f));return Br(xt(P,1),l,f)}function QS(s,l,f){for(var p=-1,b=s.length,P=l.length,_={};++p<b;){var $=p<P?l[p]:n;f(_,s[p],$)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Wt}function Ur(s,l){return Ae(s)?s:um(s,l)?[s]:O2(Ve(s))}var rj=_e;function Wr(s,l,f){var p=s.length;return f=f===n?p:f,!l&&f>=p?s:mn(s,l,f)}var e2=z3||function(s){return bt.clearTimeout(s)};function t2(s,l){if(l)return s.slice();var f=s.length,p=SS?SS(f):new s.constructor(f);return s.copy(p),p}function nm(s){var l=new s.constructor(s.byteLength);return new $l(l).set(new $l(s)),l}function ij(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function sj(s){var l=new s.constructor(s.source,Fw.exec(s));return l.lastIndex=s.lastIndex,l}function oj(s){return Wo?Ge(Wo.call(s)):{}}function n2(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function r2(s,l){if(s!==l){var f=s!==n,p=s===null,b=s===s,P=Jt(s),_=l!==n,$=l===null,k=l===l,z=Jt(l);if(!$&&!z&&!P&&s>l||P&&_&&k&&!$&&!z||p&&_&&k||!f&&k||!b)return 1;if(!p&&!P&&!z&&s<l||z&&f&&b&&!p&&!P||$&&f&&b||!_&&b||!k)return-1}return 0}function aj(s,l,f){for(var p=-1,b=s.criteria,P=l.criteria,_=b.length,$=f.length;++p<_;){var k=r2(b[p],P[p]);if(k){if(p>=$)return k;var z=f[p];return k*(z=="desc"?-1:1)}}return s.index-l.index}function i2(s,l,f,p){for(var b=-1,P=s.length,_=f.length,$=-1,k=l.length,z=mt(P-_,0),G=V(k+z),q=!p;++$<k;)G[$]=l[$];for(;++b<_;)(q||b<P)&&(G[f[b]]=s[b]);for(;z--;)G[$++]=s[b++];return G}function s2(s,l,f,p){for(var b=-1,P=s.length,_=-1,$=f.length,k=-1,z=l.length,G=mt(P-$,0),q=V(G+z),se=!p;++b<G;)q[b]=s[b];for(var pe=b;++k<z;)q[pe+k]=l[k];for(;++_<$;)(se||b<P)&&(q[pe+f[_]]=s[b++]);return q}function Vt(s,l){var f=-1,p=s.length;for(l||(l=V(p));++f<p;)l[f]=s[f];return l}function Un(s,l,f,p){var b=!f;f||(f={});for(var P=-1,_=l.length;++P<_;){var $=l[P],k=p?p(f[$],s[$],$,f,s):n;k===n&&(k=s[$]),b?or(f,$,k):zo(f,$,k)}return f}function lj(s,l){return Un(s,cm(s),l)}function cj(s,l){return Un(s,v2(s),l)}function ql(s,l){return function(f,p){var b=Ae(f)?m3:IF,P=l?l():{};return b(f,s,xe(p,2),P)}}function Ms(s){return _e(function(l,f){var p=-1,b=f.length,P=b>1?f[b-1]:n,_=b>2?f[2]:n;for(P=s.length>3&&typeof P=="function"?(b--,P):n,_&&Dt(f[0],f[1],_)&&(P=b<3?n:P,b=1),l=Ge(l);++p<b;){var $=f[p];$&&s(l,$,p,P)}return l})}function o2(s,l){return function(f,p){if(f==null)return f;if(!Bt(f))return s(f,p);for(var b=f.length,P=l?b:-1,_=Ge(f);(l?P--:++P<b)&&p(_[P],P,_)!==!1;);return f}}function a2(s){return function(l,f,p){for(var b=-1,P=Ge(l),_=p(l),$=_.length;$--;){var k=_[s?$:++b];if(f(P[k],k,P)===!1)break}return l}}function uj(s,l,f){var p=l&E,b=Ko(s);function P(){var _=this&&this!==bt&&this instanceof P?b:s;return _.apply(p?f:this,arguments)}return P}function l2(s){return function(l){l=Ve(l);var f=Ss(l)?wn(l):n,p=f?f[0]:l.charAt(0),b=f?Wr(f,1).join(""):l.slice(1);return p[s]()+b}}function _s(s){return function(l){return Ah(oT(sT(l).replace(e3,"")),s,"")}}function Ko(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Os(s.prototype),p=s.apply(f,l);return st(p)?p:f}}function fj(s,l,f){var p=Ko(s);function b(){for(var P=arguments.length,_=V(P),$=P,k=Is(b);$--;)_[$]=arguments[$];var z=P<3&&_[0]!==k&&_[P-1]!==k?[]:Fr(_,k);if(P-=z.length,P<f)return h2(s,l,Kl,b.placeholder,n,_,z,n,n,f-P);var G=this&&this!==bt&&this instanceof b?p:s;return Kt(G,this,_)}return b}function c2(s){return function(l,f,p){var b=Ge(l);if(!Bt(l)){var P=xe(f,3);l=gt(l),f=function($){return P(b[$],$,b)}}var _=s(l,f,p);return _>-1?b[P?l[_]:_]:n}}function u2(s){return lr(function(l){var f=l.length,p=f,b=dn.prototype.thru;for(s&&l.reverse();p--;){var P=l[p];if(typeof P!="function")throw new fn(a);if(b&&!_&&Ql(P)=="wrapper")var _=new dn([],!0)}for(p=_?p:f;++p<f;){P=l[p];var $=Ql(P),k=$=="wrapper"?am(P):n;k&&fm(k[0])&&k[1]==(j|O|C|F)&&!k[4].length&&k[9]==1?_=_[Ql(k[0])].apply(_,k[3]):_=P.length==1&&fm(P)?_[$]():_.thru(P)}return function(){var z=arguments,G=z[0];if(_&&z.length==1&&Ae(G))return _.plant(G).value();for(var q=0,se=f?l[q].apply(this,z):G;++q<f;)se=l[q].call(this,se);return se}})}function Kl(s,l,f,p,b,P,_,$,k,z){var G=l&j,q=l&E,se=l&w,pe=l&(O|D),Te=l&Y,Me=se?n:Ko(s);function Ee(){for(var $e=arguments.length,Le=V($e),Qt=$e;Qt--;)Le[Qt]=arguments[Qt];if(pe)var $t=Is(Ee),en=T3(Le,$t);if(p&&(Le=i2(Le,p,b,pe)),P&&(Le=s2(Le,P,_,pe)),$e-=en,pe&&$e<z){var ut=Fr(Le,$t);return h2(s,l,Kl,Ee.placeholder,f,Le,ut,$,k,z-$e)}var En=q?f:this,dr=se?En[s]:s;return $e=Le.length,$?Le=Ij(Le,$):Te&&$e>1&&Le.reverse(),G&&k<$e&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=Me||Ko(dr)),dr.apply(En,Le)}return Ee}function f2(s,l){return function(f,p){return jF(f,s,l(p),{})}}function Xl(s,l){return function(f,p){var b;if(f===n&&p===n)return l;if(f!==n&&(b=f),p!==n){if(b===n)return p;typeof f=="string"||typeof p=="string"?(f=Zt(f),p=Zt(p)):(f=XS(f),p=XS(p)),b=s(f,p)}return b}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_e(function(f){var p=this;return s(l,function(b){return Kt(b,p,f)})})})}function Zl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Xh(l,s):l;var p=Xh(l,kl(s/Ts(l)));return Ss(l)?Wr(wn(p),0,s).join(""):p.slice(0,s)}function dj(s,l,f,p){var b=l&E,P=Ko(s);function _(){for(var $=-1,k=arguments.length,z=-1,G=p.length,q=V(G+k),se=this&&this!==bt&&this instanceof _?P:s;++z<G;)q[z]=p[z];for(;k--;)q[z++]=arguments[++$];return Kt(se,b?f:this,q)}return _}function d2(s){return function(l,f,p){return p&&typeof p!="number"&&Dt(l,f,p)&&(f=p=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),p=p===n?l<f?1:-1:fr(p),ZF(l,f,p,s)}}function Jl(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function h2(s,l,f,p,b,P,_,$,k,z){var G=l&O,q=G?_:n,se=G?n:_,pe=G?P:n,Te=G?n:P;l|=G?C:L,l&=~(G?L:C),l&A||(l&=-4);var Me=[s,l,b,pe,q,Te,se,$,k,z],Ee=f.apply(n,Me);return fm(s)&&C2(Ee,Me),Ee.placeholder=p,P2(Ee,s,l)}function im(s){var l=ht[s];return function(f,p){if(f=gn(f),p=p==null?0:At(Oe(p),292),p&&PS(f)){var b=(Ve(f)+"e").split("e"),P=l(b[0]+"e"+(+b[1]+p));return b=(Ve(P)+"e").split("e"),+(b[0]+"e"+(+b[1]-p))}return l(f)}}var hj=Ps&&1/Al(new Ps([,-0]))[1]==B?function(s){return new Ps(s)}:Pm;function m2(s){return function(l){var f=Ot(l);return f==Ne?Rh(l):f==qt?_3(l):S3(l,s(l))}}function ar(s,l,f,p,b,P,_,$){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var z=p?p.length:0;if(z||(l&=-97,p=b=n),_=_===n?_:mt(Oe(_),0),$=$===n?$:Oe($),z-=b?b.length:0,l&L){var G=p,q=b;p=b=n}var se=k?n:am(s),pe=[s,l,f,p,b,G,q,P,_,$];if(se&&Oj(pe,se),s=pe[0],l=pe[1],f=pe[2],p=pe[3],b=pe[4],$=pe[9]=pe[9]===n?k?0:s.length:mt(pe[9]-z,0),!$&&l&(O|D)&&(l&=-25),!l||l==E)var Te=uj(s,l,f);else l==O||l==D?Te=fj(s,l,$):(l==C||l==(E|C))&&!b.length?Te=dj(s,l,f,p):Te=Kl.apply(n,pe);var Me=se?qS:C2;return P2(Me(Te,pe),s,l)}function p2(s,l,f,p){return s===n||Tn(s,Cs[f])&&!We.call(p,f)?l:s}function g2(s,l,f,p,b,P){return st(s)&&st(l)&&(P.set(l,s),Gl(s,l,n,g2,P),P.delete(l)),s}function mj(s){return Jo(s)?n:s}function y2(s,l,f,p,b,P){var _=f&S,$=s.length,k=l.length;if($!=k&&!(_&&k>$))return!1;var z=P.get(s),G=P.get(l);if(z&&G)return z==l&&G==s;var q=-1,se=!0,pe=f&v?new xi:n;for(P.set(s,l),P.set(l,s);++q<$;){var Te=s[q],Me=l[q];if(p)var Ee=_?p(Me,Te,q,l,s,P):p(Te,Me,q,s,l,P);if(Ee!==n){if(Ee)continue;se=!1;break}if(pe){if(!Oh(l,function($e,Le){if(!Fo(pe,Le)&&(Te===$e||b(Te,$e,f,p,P)))return pe.push(Le)})){se=!1;break}}else if(!(Te===Me||b(Te,Me,f,p,P))){se=!1;break}}return P.delete(s),P.delete(l),se}function pj(s,l,f,p,b,P,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!P(new $l(s),new $l(l)));case oe:case ge:case ft:return Tn(+s,+l);case Ue:return s.name==l.name&&s.message==l.message;case pi:case bn:return s==l+"";case Ne:var $=Rh;case qt:var k=p&S;if($||($=Al),s.size!=l.size&&!k)return!1;var z=_.get(s);if(z)return z==l;p|=v,_.set(s,l);var G=y2($(s),$(l),p,b,P,_);return _.delete(s),G;case gi:if(Wo)return Wo.call(s)==Wo.call(l)}return!1}function gj(s,l,f,p,b,P){var _=f&S,$=sm(s),k=$.length,z=sm(l),G=z.length;if(k!=G&&!_)return!1;for(var q=k;q--;){var se=$[q];if(!(_?se in l:We.call(l,se)))return!1}var pe=P.get(s),Te=P.get(l);if(pe&&Te)return pe==l&&Te==s;var Me=!0;P.set(s,l),P.set(l,s);for(var Ee=_;++q<k;){se=$[q];var $e=s[se],Le=l[se];if(p)var Qt=_?p(Le,$e,se,l,s,P):p($e,Le,se,s,l,P);if(!(Qt===n?$e===Le||b($e,Le,f,p,P):Qt)){Me=!1;break}Ee||(Ee=se=="constructor")}if(Me&&!Ee){var $t=s.constructor,en=l.constructor;$t!=en&&"constructor"in s&&"constructor"in l&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return P.delete(s),P.delete(l),Me}function lr(s){return hm(T2(s,n,D2),s+"")}function sm(s){return kS(s,gt,cm)}function om(s){return kS(s,Ut,v2)}var am=jl?function(s){return jl.get(s)}:Pm;function Ql(s){for(var l=s.name+"",f=As[l],p=We.call(As,l)?f.length:0;p--;){var b=f[p],P=b.func;if(P==null||P==s)return b.name}return l}function Is(s){var l=We.call(T,"placeholder")?T:s;return l.placeholder}function xe(){var s=T.iteratee||Em;return s=s===Em?VS:s,arguments.length?s(arguments[0],arguments[1]):s}function ec(s,l){var f=s.__data__;return Ej(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var p=l[f],b=s[p];l[f]=[p,b,w2(b)]}return l}function Ti(s,l){var f=A3(s,l);return jS(f)?f:n}function yj(s){var l=We.call(s,vi),f=s[vi];try{s[vi]=n;var p=!0}catch{}var b=Il.call(s);return p&&(l?s[vi]=f:delete s[vi]),b}var cm=Nh?function(s){return s==null?[]:(s=Ge(s),Nr(Nh(s),function(l){return ES.call(s,l)}))}:Am,v2=Nh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Rl(s);return l}:Am,Ot=It;(kh&&Ot(new kh(new ArrayBuffer(1)))!=Qe||Vo&&Ot(new Vo)!=Ne||Fh&&Ot(Fh.resolve())!=vl||Ps&&Ot(new Ps)!=qt||Bo&&Ot(new Bo)!=Lr)&&(Ot=function(s){var l=It(s),f=l==dt?s.constructor:n,p=f?Ei(f):"";if(p)switch(p){case Q3:return Qe;case eF:return Ne;case tF:return vl;case nF:return qt;case rF:return Lr}return l});function vj(s,l,f){for(var p=-1,b=f.length;++p<b;){var P=f[p],_=P.size;switch(P.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function bj(s){var l=s.match(Ck);return l?l[1].split(Pk):[]}function b2(s,l,f){l=Ur(l,s);for(var p=-1,b=l.length,P=!1;++p<b;){var _=Wn(l[p]);if(!(P=s!=null&&f(s,_)))break;s=s[_]}return P||++p!=b?P:(b=s==null?0:s.length,!!b&&ac(b)&&cr(_,b)&&(Ae(s)||Ci(s)))}function xj(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&We.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function x2(s){return typeof s.constructor=="function"&&!Xo(s)?Os(Rl(s)):{}}function wj(s,l,f){var p=s.constructor;switch(l){case be:return nm(s);case oe:case ge:return new p(+s);case Qe:return ij(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return n2(s,f);case Ne:return new p;case ft:case bn:return new p(s);case pi:return sj(s);case qt:return new p;case gi:return oj(s)}}function Sj(s,l){var f=l.length;if(!f)return s;var p=f-1;return l[p]=(f>1?"& ":"")+l[p],l=l.join(f>2?", ":" "),s.replace(Ek,`{
|
|
632
|
+
*/var cD=co.exports,Tv;function uD(){return Tv||(Tv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,y=4,S=1,v=2,E=1,w=2,P=4,O=8,$=16,A=32,R=64,j=128,F=256,Y=512,Q=30,te="...",me=800,de=16,le=1,re=2,ie=3,B=1/0,U=9007199254740991,H=17976931348623157e292,M=NaN,N=4294967295,K=N-1,ee=N>>>1,ue=[["ary",j],["bind",E],["bindKey",w],["curry",O],["curryRight",$],["flip",Y],["partial",A],["partialRight",R],["rearg",F]],X="[object Arguments]",ce="[object Array]",he="[object AsyncFunction]",ae="[object Boolean]",ge="[object Date]",Ce="[object DOMException]",Ue="[object Error]",ne="[object Function]",ye="[object GeneratorFunction]",Ne="[object Map]",ft="[object Number]",mi="[object Null]",dt="[object Object]",vl="[object Promise]",bl="[object Proxy]",pi="[object RegExp]",qt="[object Set]",bn="[object String]",gi="[object Symbol]",xl="[object Undefined]",Lr="[object WeakMap]",wl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",hk=/\b__p \+= '';/g,mk=/\b(__p \+=) '' \+/g,pk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nw=/&(?:amp|lt|gt|quot|#39);/g,kw=/[&<>"']/g,gk=RegExp(Nw.source),yk=RegExp(kw.source),vk=/<%-([\s\S]+?)%>/g,bk=/<%([\s\S]+?)%>/g,Fw=/<%=([\s\S]+?)%>/g,xk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wk=/^\w*$/,Sk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Tk=RegExp(yh.source),vh=/^\s+/,Ek=/\s/,Ck=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pk=/\{\n\/\* \[wrapped with (.+)\] \*/,Ak=/,? & /,Ok=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mk=/[()=,{}\[\]\/\s]/,_k=/\\(\\)?/g,Ik=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jw=/\w*$/,Dk=/^[-+]0x[0-9a-f]+$/i,$k=/^0b[01]+$/i,Rk=/^\[object .+?Constructor\]$/,Lk=/^0o[0-7]+$/i,Nk=/^(?:0|[1-9]\d*)$/,kk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sl=/($^)/,Fk=/['\n\r\u2028\u2029\\]/g,Tl="\\ud800-\\udfff",jk="\\u0300-\\u036f",Vk="\\ufe20-\\ufe2f",Bk="\\u20d0-\\u20ff",Vw=jk+Vk+Bk,Bw="\\u2700-\\u27bf",Uw="a-z\\xdf-\\xf6\\xf8-\\xff",Uk="\\xac\\xb1\\xd7\\xf7",Wk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zk="\\u2000-\\u206f",Gk=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ww="A-Z\\xc0-\\xd6\\xd8-\\xde",zw="\\ufe0e\\ufe0f",Gw=Uk+Wk+zk+Gk,bh="['’]",Yk="["+Tl+"]",Yw="["+Gw+"]",El="["+Vw+"]",Hw="\\d+",Hk="["+Bw+"]",qw="["+Uw+"]",Kw="[^"+Tl+Gw+Hw+Bw+Uw+Ww+"]",xh="\\ud83c[\\udffb-\\udfff]",qk="(?:"+El+"|"+xh+")",Xw="[^"+Tl+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",xs="["+Ww+"]",Zw="\\u200d",Jw="(?:"+qw+"|"+Kw+")",Kk="(?:"+xs+"|"+Kw+")",Qw="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",eS="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",tS=qk+"?",nS="["+zw+"]?",Xk="(?:"+Zw+"(?:"+[Xw,wh,Sh].join("|")+")"+nS+tS+")*",Zk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Jk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rS=nS+tS+Xk,Qk="(?:"+[Hk,wh,Sh].join("|")+")"+rS,e3="(?:"+[Xw+El+"?",El,wh,Sh,Yk].join("|")+")",t3=RegExp(bh,"g"),n3=RegExp(El,"g"),Th=RegExp(xh+"(?="+xh+")|"+e3+rS,"g"),r3=RegExp([xs+"?"+qw+"+"+Qw+"(?="+[Yw,xs,"$"].join("|")+")",Kk+"+"+eS+"(?="+[Yw,xs+Jw,"$"].join("|")+")",xs+"?"+Jw+"+"+Qw,xs+"+"+eS,Jk,Zk,Hw,Qk].join("|"),"g"),i3=RegExp("["+Zw+Tl+Vw+zw+"]"),s3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,o3=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],a3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[X]=Je[ce]=Je[be]=Je[ae]=Je[Qe]=Je[ge]=Je[Ue]=Je[ne]=Je[Ne]=Je[ft]=Je[dt]=Je[pi]=Je[qt]=Je[bn]=Je[Lr]=!1;var Ke={};Ke[X]=Ke[ce]=Ke[be]=Ke[Qe]=Ke[ae]=Ke[ge]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[Ne]=Ke[ft]=Ke[dt]=Ke[pi]=Ke[qt]=Ke[bn]=Ke[gi]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ue]=Ke[ne]=Ke[Lr]=!1;var l3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},c3={"&":"&","<":"<",">":">",'"':""","'":"'"},u3={"&":"&","<":"<",">":">",""":'"',"'":"'"},f3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},d3=parseFloat,h3=parseInt,iS=typeof Qo=="object"&&Qo&&Qo.Object===Object&&Qo,m3=typeof self=="object"&&self&&self.Object===Object&&self,bt=iS||m3||Function("return this")(),Eh=t&&!t.nodeType&&t,yi=Eh&&!0&&e&&!e.nodeType&&e,sS=yi&&yi.exports===Eh,Ch=sS&&iS.process,cn=function(){try{var L=yi&&yi.require&&yi.require("util").types;return L||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),oS=cn&&cn.isArrayBuffer,aS=cn&&cn.isDate,lS=cn&&cn.isMap,cS=cn&&cn.isRegExp,uS=cn&&cn.isSet,fS=cn&&cn.isTypedArray;function Kt(L,W,V){switch(V.length){case 0:return L.call(W);case 1:return L.call(W,V[0]);case 2:return L.call(W,V[0],V[1]);case 3:return L.call(W,V[0],V[1],V[2])}return L.apply(W,V)}function p3(L,W,V,fe){for(var Pe=-1,ke=L==null?0:L.length;++Pe<ke;){var ht=L[Pe];W(fe,ht,V(ht),L)}return fe}function un(L,W){for(var V=-1,fe=L==null?0:L.length;++V<fe&&W(L[V],V,L)!==!1;);return L}function g3(L,W){for(var V=L==null?0:L.length;V--&&W(L[V],V,L)!==!1;);return L}function dS(L,W){for(var V=-1,fe=L==null?0:L.length;++V<fe;)if(!W(L[V],V,L))return!1;return!0}function Nr(L,W){for(var V=-1,fe=L==null?0:L.length,Pe=0,ke=[];++V<fe;){var ht=L[V];W(ht,V,L)&&(ke[Pe++]=ht)}return ke}function Cl(L,W){var V=L==null?0:L.length;return!!V&&ws(L,W,0)>-1}function Ph(L,W,V){for(var fe=-1,Pe=L==null?0:L.length;++fe<Pe;)if(V(W,L[fe]))return!0;return!1}function et(L,W){for(var V=-1,fe=L==null?0:L.length,Pe=Array(fe);++V<fe;)Pe[V]=W(L[V],V,L);return Pe}function kr(L,W){for(var V=-1,fe=W.length,Pe=L.length;++V<fe;)L[Pe+V]=W[V];return L}function Ah(L,W,V,fe){var Pe=-1,ke=L==null?0:L.length;for(fe&&ke&&(V=L[++Pe]);++Pe<ke;)V=W(V,L[Pe],Pe,L);return V}function y3(L,W,V,fe){var Pe=L==null?0:L.length;for(fe&&Pe&&(V=L[--Pe]);Pe--;)V=W(V,L[Pe],Pe,L);return V}function Oh(L,W){for(var V=-1,fe=L==null?0:L.length;++V<fe;)if(W(L[V],V,L))return!0;return!1}var v3=Mh("length");function b3(L){return L.split("")}function x3(L){return L.match(Ok)||[]}function hS(L,W,V){var fe;return V(L,function(Pe,ke,ht){if(W(Pe,ke,ht))return fe=ke,!1}),fe}function Pl(L,W,V,fe){for(var Pe=L.length,ke=V+(fe?1:-1);fe?ke--:++ke<Pe;)if(W(L[ke],ke,L))return ke;return-1}function ws(L,W,V){return W===W?D3(L,W,V):Pl(L,mS,V)}function w3(L,W,V,fe){for(var Pe=V-1,ke=L.length;++Pe<ke;)if(fe(L[Pe],W))return Pe;return-1}function mS(L){return L!==L}function pS(L,W){var V=L==null?0:L.length;return V?Ih(L,W)/V:M}function Mh(L){return function(W){return W==null?n:W[L]}}function _h(L){return function(W){return L==null?n:L[W]}}function gS(L,W,V,fe,Pe){return Pe(L,function(ke,ht,Ge){V=fe?(fe=!1,ke):W(V,ke,ht,Ge)}),V}function S3(L,W){var V=L.length;for(L.sort(W);V--;)L[V]=L[V].value;return L}function Ih(L,W){for(var V,fe=-1,Pe=L.length;++fe<Pe;){var ke=W(L[fe]);ke!==n&&(V=V===n?ke:V+ke)}return V}function Dh(L,W){for(var V=-1,fe=Array(L);++V<L;)fe[V]=W(V);return fe}function T3(L,W){return et(W,function(V){return[V,L[V]]})}function yS(L){return L&&L.slice(0,wS(L)+1).replace(vh,"")}function Xt(L){return function(W){return L(W)}}function $h(L,W){return et(W,function(V){return L[V]})}function Fo(L,W){return L.has(W)}function vS(L,W){for(var V=-1,fe=L.length;++V<fe&&ws(W,L[V],0)>-1;);return V}function bS(L,W){for(var V=L.length;V--&&ws(W,L[V],0)>-1;);return V}function E3(L,W){for(var V=L.length,fe=0;V--;)L[V]===W&&++fe;return fe}var C3=_h(l3),P3=_h(c3);function A3(L){return"\\"+f3[L]}function O3(L,W){return L==null?n:L[W]}function Ss(L){return i3.test(L)}function M3(L){return s3.test(L)}function _3(L){for(var W,V=[];!(W=L.next()).done;)V.push(W.value);return V}function Rh(L){var W=-1,V=Array(L.size);return L.forEach(function(fe,Pe){V[++W]=[Pe,fe]}),V}function xS(L,W){return function(V){return L(W(V))}}function Fr(L,W){for(var V=-1,fe=L.length,Pe=0,ke=[];++V<fe;){var ht=L[V];(ht===W||ht===h)&&(L[V]=h,ke[Pe++]=V)}return ke}function Al(L){var W=-1,V=Array(L.size);return L.forEach(function(fe){V[++W]=fe}),V}function I3(L){var W=-1,V=Array(L.size);return L.forEach(function(fe){V[++W]=[fe,fe]}),V}function D3(L,W,V){for(var fe=V-1,Pe=L.length;++fe<Pe;)if(L[fe]===W)return fe;return-1}function $3(L,W,V){for(var fe=V+1;fe--;)if(L[fe]===W)return fe;return fe}function Ts(L){return Ss(L)?L3(L):v3(L)}function wn(L){return Ss(L)?N3(L):b3(L)}function wS(L){for(var W=L.length;W--&&Ek.test(L.charAt(W)););return W}var R3=_h(u3);function L3(L){for(var W=Th.lastIndex=0;Th.test(L);)++W;return W}function N3(L){return L.match(Th)||[]}function k3(L){return L.match(r3)||[]}var F3=function L(W){W=W==null?bt:Es.defaults(bt.Object(),W,Es.pick(bt,o3));var V=W.Array,fe=W.Date,Pe=W.Error,ke=W.Function,ht=W.Math,Ge=W.Object,Lh=W.RegExp,j3=W.String,fn=W.TypeError,Ol=V.prototype,V3=ke.prototype,Cs=Ge.prototype,Ml=W["__core-js_shared__"],_l=V3.toString,We=Cs.hasOwnProperty,B3=0,SS=function(){var s=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Il=Cs.toString,U3=_l.call(Ge),W3=bt._,z3=Lh("^"+_l.call(We).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=sS?W.Buffer:n,jr=W.Symbol,$l=W.Uint8Array,TS=Dl?Dl.allocUnsafe:n,Rl=xS(Ge.getPrototypeOf,Ge),ES=Ge.create,CS=Cs.propertyIsEnumerable,Ll=Ol.splice,PS=jr?jr.isConcatSpreadable:n,jo=jr?jr.iterator:n,vi=jr?jr.toStringTag:n,Nl=function(){try{var s=Ti(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),G3=W.clearTimeout!==bt.clearTimeout&&W.clearTimeout,Y3=fe&&fe.now!==bt.Date.now&&fe.now,H3=W.setTimeout!==bt.setTimeout&&W.setTimeout,kl=ht.ceil,Fl=ht.floor,Nh=Ge.getOwnPropertySymbols,q3=Dl?Dl.isBuffer:n,AS=W.isFinite,K3=Ol.join,X3=xS(Ge.keys,Ge),mt=ht.max,At=ht.min,Z3=fe.now,J3=W.parseInt,OS=ht.random,Q3=Ol.reverse,kh=Ti(W,"DataView"),Vo=Ti(W,"Map"),Fh=Ti(W,"Promise"),Ps=Ti(W,"Set"),Bo=Ti(W,"WeakMap"),Uo=Ti(Ge,"create"),jl=Bo&&new Bo,As={},eF=Ei(kh),tF=Ei(Vo),nF=Ei(Fh),rF=Ei(Ps),iF=Ei(Bo),Vl=jr?jr.prototype:n,Wo=Vl?Vl.valueOf:n,MS=Vl?Vl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(We.call(s,"__wrapped__"))return _2(s)}return new dn(s)}var Os=function(){function s(){}return function(l){if(!st(l))return{};if(ES)return ES(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Bl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}T.templateSettings={escape:vk,evaluate:bk,interpolate:Fw,variable:"",imports:{_:T}},T.prototype=Bl.prototype,T.prototype.constructor=T,dn.prototype=Os(Bl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function sF(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function oF(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function aF(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),p=l<0,x=f?s.length:0,C=bj(0,x,this.__views__),_=C.start,D=C.end,k=D-_,z=p?D:_-1,G=this.__iteratees__,q=G.length,se=0,pe=At(k,this.__takeCount__);if(!f||!p&&x==k&&pe==k)return QS(s,this.__actions__);var Te=[];e:for(;k--&&se<pe;){z+=l;for(var Me=-1,Ee=s[z];++Me<q;){var $e=G[Me],Le=$e.iteratee,Qt=$e.type,$t=Le(Ee);if(Qt==re)Ee=$t;else if(!$t){if(Qt==le)continue e;break e}}Te[se++]=Ee}return Te}Re.prototype=Os(Bl.prototype),Re.prototype.constructor=Re;function bi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function lF(){this.__data__=Uo?Uo(null):{},this.size=0}function cF(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function uF(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return We.call(l,s)?l[s]:n}function fF(s){var l=this.__data__;return Uo?l[s]!==n:We.call(l,s)}function dF(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}bi.prototype.clear=lF,bi.prototype.delete=cF,bi.prototype.get=uF,bi.prototype.has=fF,bi.prototype.set=dF;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function hF(){this.__data__=[],this.size=0}function mF(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var p=l.length-1;return f==p?l.pop():Ll.call(l,f,1),--this.size,!0}function pF(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function gF(s){return Ul(this.__data__,s)>-1}function yF(s,l){var f=this.__data__,p=Ul(f,s);return p<0?(++this.size,f.push([s,l])):f[p][1]=l,this}ir.prototype.clear=hF,ir.prototype.delete=mF,ir.prototype.get=pF,ir.prototype.has=gF,ir.prototype.set=yF;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function vF(){this.size=0,this.__data__={hash:new bi,map:new(Vo||ir),string:new bi}}function bF(s){var l=ec(this,s).delete(s);return this.size-=l?1:0,l}function xF(s){return ec(this,s).get(s)}function wF(s){return ec(this,s).has(s)}function SF(s,l){var f=ec(this,s),p=f.size;return f.set(s,l),this.size+=f.size==p?0:1,this}sr.prototype.clear=vF,sr.prototype.delete=bF,sr.prototype.get=xF,sr.prototype.has=wF,sr.prototype.set=SF;function xi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function TF(s){return this.__data__.set(s,u),this}function EF(s){return this.__data__.has(s)}xi.prototype.add=xi.prototype.push=TF,xi.prototype.has=EF;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function CF(){this.__data__=new ir,this.size=0}function PF(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function AF(s){return this.__data__.get(s)}function OF(s){return this.__data__.has(s)}function MF(s,l){var f=this.__data__;if(f instanceof ir){var p=f.__data__;if(!Vo||p.length<i-1)return p.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(p)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=CF,Sn.prototype.delete=PF,Sn.prototype.get=AF,Sn.prototype.has=OF,Sn.prototype.set=MF;function _S(s,l){var f=Ae(s),p=!f&&Ci(s),x=!f&&!p&&zr(s),C=!f&&!p&&!x&&Ds(s),_=f||p||x||C,D=_?Dh(s.length,j3):[],k=D.length;for(var z in s)(l||We.call(s,z))&&!(_&&(z=="length"||x&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||cr(z,k)))&&D.push(z);return D}function IS(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function _F(s,l){return tc(Vt(s),wi(l,0,s.length))}function IF(s){return tc(Vt(s))}function jh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function zo(s,l,f){var p=s[l];(!(We.call(s,l)&&Tn(p,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function DF(s,l,f,p){return Vr(s,function(x,C,_){l(p,x,f(x),_)}),p}function DS(s,l){return s&&Un(l,gt(l),s)}function $F(s,l){return s&&Un(l,Ut(l),s)}function or(s,l,f){l=="__proto__"&&Nl?Nl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Vh(s,l){for(var f=-1,p=l.length,x=V(p),C=s==null;++f<p;)x[f]=C?n:xm(s,l[f]);return x}function wi(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,p,x,C){var _,D=l&m,k=l&g,z=l&y;if(f&&(_=x?f(s,p,x,C):f(s)),_!==n)return _;if(!st(s))return s;var G=Ae(s);if(G){if(_=wj(s),!D)return Vt(s,_)}else{var q=Ot(s),se=q==ne||q==ye;if(zr(s))return n2(s,D);if(q==dt||q==X||se&&!x){if(_=k||se?{}:w2(s),!D)return k?uj(s,$F(_,s)):cj(s,DS(_,s))}else{if(!Ke[q])return x?s:{};_=Sj(s,q,D)}}C||(C=new Sn);var pe=C.get(s);if(pe)return pe;C.set(s,_),X2(s)?s.forEach(function(Ee){_.add(hn(Ee,l,f,Ee,s,C))}):q2(s)&&s.forEach(function(Ee,$e){_.set($e,hn(Ee,l,f,$e,s,C))});var Te=z?k?om:sm:k?Ut:gt,Me=G?n:Te(s);return un(Me||s,function(Ee,$e){Me&&($e=Ee,Ee=s[$e]),zo(_,$e,hn(Ee,l,f,$e,s,C))}),_}function RF(s){var l=gt(s);return function(f){return $S(f,s,l)}}function $S(s,l,f){var p=f.length;if(s==null)return!p;for(s=Ge(s);p--;){var x=f[p],C=l[x],_=s[x];if(_===n&&!(x in s)||!C(_))return!1}return!0}function RS(s,l,f){if(typeof s!="function")throw new fn(a);return Zo(function(){s.apply(n,f)},l)}function Go(s,l,f,p){var x=-1,C=Cl,_=!0,D=s.length,k=[],z=l.length;if(!D)return k;f&&(l=et(l,Xt(f))),p?(C=Ph,_=!1):l.length>=i&&(C=Fo,_=!1,l=new xi(l));e:for(;++x<D;){var G=s[x],q=f==null?G:f(G);if(G=p||G!==0?G:0,_&&q===q){for(var se=z;se--;)if(l[se]===q)continue e;k.push(G)}else C(l,q,p)||k.push(G)}return k}var Vr=a2(Bn),LS=a2(Uh,!0);function LF(s,l){var f=!0;return Vr(s,function(p,x,C){return f=!!l(p,x,C),f}),f}function Wl(s,l,f){for(var p=-1,x=s.length;++p<x;){var C=s[p],_=l(C);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,k=C}return k}function NF(s,l,f,p){var x=s.length;for(f=Oe(f),f<0&&(f=-f>x?0:x+f),p=p===n||p>x?x:Oe(p),p<0&&(p+=x),p=f>p?0:J2(p);f<p;)s[f++]=l;return s}function NS(s,l){var f=[];return Vr(s,function(p,x,C){l(p,x,C)&&f.push(p)}),f}function xt(s,l,f,p,x){var C=-1,_=s.length;for(f||(f=Ej),x||(x=[]);++C<_;){var D=s[C];l>0&&f(D)?l>1?xt(D,l-1,f,p,x):kr(x,D):p||(x[x.length]=D)}return x}var Bh=l2(),kS=l2(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Uh(s,l){return s&&kS(s,l,gt)}function zl(s,l){return Nr(l,function(f){return ur(s[f])})}function Si(s,l){l=Ur(l,s);for(var f=0,p=l.length;s!=null&&f<p;)s=s[Wn(l[f++])];return f&&f==p?s:n}function FS(s,l,f){var p=l(s);return Ae(s)?p:kr(p,f(s))}function It(s){return s==null?s===n?xl:mi:vi&&vi in Ge(s)?vj(s):Ij(s)}function Wh(s,l){return s>l}function kF(s,l){return s!=null&&We.call(s,l)}function FF(s,l){return s!=null&&l in Ge(s)}function jF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var p=f?Ph:Cl,x=s[0].length,C=s.length,_=C,D=V(C),k=1/0,z=[];_--;){var G=s[_];_&&l&&(G=et(G,Xt(l))),k=At(G.length,k),D[_]=!f&&(l||x>=120&&G.length>=120)?new xi(_&&G):n}G=s[0];var q=-1,se=D[0];e:for(;++q<x&&z.length<k;){var pe=G[q],Te=l?l(pe):pe;if(pe=f||pe!==0?pe:0,!(se?Fo(se,Te):p(z,Te,f))){for(_=C;--_;){var Me=D[_];if(!(Me?Fo(Me,Te):p(s[_],Te,f)))continue e}se&&se.push(Te),z.push(pe)}}return z}function VF(s,l,f,p){return Bn(s,function(x,C,_){l(p,f(x),C,_)}),p}function Yo(s,l,f){l=Ur(l,s),s=C2(s,l);var p=s==null?s:s[Wn(pn(l))];return p==null?n:Kt(p,s,f)}function jS(s){return ot(s)&&It(s)==X}function BF(s){return ot(s)&&It(s)==be}function UF(s){return ot(s)&&It(s)==ge}function Ho(s,l,f,p,x){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:WF(s,l,f,p,Ho,x)}function WF(s,l,f,p,x,C){var _=Ae(s),D=Ae(l),k=_?ce:Ot(s),z=D?ce:Ot(l);k=k==X?dt:k,z=z==X?dt:z;var G=k==dt,q=z==dt,se=k==z;if(se&&zr(s)){if(!zr(l))return!1;_=!0,G=!1}if(se&&!G)return C||(C=new Sn),_||Ds(s)?v2(s,l,f,p,x,C):gj(s,l,k,f,p,x,C);if(!(f&S)){var pe=G&&We.call(s,"__wrapped__"),Te=q&&We.call(l,"__wrapped__");if(pe||Te){var Me=pe?s.value():s,Ee=Te?l.value():l;return C||(C=new Sn),x(Me,Ee,f,p,C)}}return se?(C||(C=new Sn),yj(s,l,f,p,x,C)):!1}function zF(s){return ot(s)&&Ot(s)==Ne}function Gh(s,l,f,p){var x=f.length,C=x,_=!p;if(s==null)return!C;for(s=Ge(s);x--;){var D=f[x];if(_&&D[2]?D[1]!==s[D[0]]:!(D[0]in s))return!1}for(;++x<C;){D=f[x];var k=D[0],z=s[k],G=D[1];if(_&&D[2]){if(z===n&&!(k in s))return!1}else{var q=new Sn;if(p)var se=p(z,G,k,s,l,q);if(!(se===n?Ho(G,z,S|v,p,q):se))return!1}}return!0}function VS(s){if(!st(s)||Pj(s))return!1;var l=ur(s)?z3:Rk;return l.test(Ei(s))}function GF(s){return ot(s)&&It(s)==pi}function YF(s){return ot(s)&&Ot(s)==qt}function HF(s){return ot(s)&&ac(s.length)&&!!Je[It(s)]}function BS(s){return typeof s=="function"?s:s==null?Wt:typeof s=="object"?Ae(s)?zS(s[0],s[1]):WS(s):cT(s)}function Yh(s){if(!Xo(s))return X3(s);var l=[];for(var f in Ge(s))We.call(s,f)&&f!="constructor"&&l.push(f);return l}function qF(s){if(!st(s))return _j(s);var l=Xo(s),f=[];for(var p in s)p=="constructor"&&(l||!We.call(s,p))||f.push(p);return f}function Hh(s,l){return s<l}function US(s,l){var f=-1,p=Bt(s)?V(s.length):[];return Vr(s,function(x,C,_){p[++f]=l(x,C,_)}),p}function WS(s){var l=lm(s);return l.length==1&&l[0][2]?T2(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function zS(s,l){return um(s)&&S2(l)?T2(Wn(s),l):function(f){var p=xm(f,s);return p===n&&p===l?wm(f,s):Ho(l,p,S|v)}}function Gl(s,l,f,p,x){s!==l&&Bh(l,function(C,_){if(x||(x=new Sn),st(C))KF(s,l,_,f,Gl,p,x);else{var D=p?p(dm(s,_),C,_+"",s,l,x):n;D===n&&(D=C),jh(s,_,D)}},Ut)}function KF(s,l,f,p,x,C,_){var D=dm(s,f),k=dm(l,f),z=_.get(k);if(z){jh(s,f,z);return}var G=C?C(D,k,f+"",s,l,_):n,q=G===n;if(q){var se=Ae(k),pe=!se&&zr(k),Te=!se&&!pe&&Ds(k);G=k,se||pe||Te?Ae(D)?G=D:ct(D)?G=Vt(D):pe?(q=!1,G=n2(k,!0)):Te?(q=!1,G=r2(k,!0)):G=[]:Jo(k)||Ci(k)?(G=D,Ci(D)?G=Q2(D):(!st(D)||ur(D))&&(G=w2(k))):q=!1}q&&(_.set(k,G),x(G,k,p,C,_),_.delete(k)),jh(s,f,G)}function GS(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function YS(s,l,f){l.length?l=et(l,function(C){return Ae(C)?function(_){return Si(_,C.length===1?C[0]:C)}:C}):l=[Wt];var p=-1;l=et(l,Xt(xe()));var x=US(s,function(C,_,D){var k=et(l,function(z){return z(C)});return{criteria:k,index:++p,value:C}});return S3(x,function(C,_){return lj(C,_,f)})}function XF(s,l){return HS(s,l,function(f,p){return wm(s,p)})}function HS(s,l,f){for(var p=-1,x=l.length,C={};++p<x;){var _=l[p],D=Si(s,_);f(D,_)&&qo(C,Ur(_,s),D)}return C}function ZF(s){return function(l){return Si(l,s)}}function qh(s,l,f,p){var x=p?w3:ws,C=-1,_=l.length,D=s;for(s===l&&(l=Vt(l)),f&&(D=et(s,Xt(f)));++C<_;)for(var k=0,z=l[C],G=f?f(z):z;(k=x(D,G,k,p))>-1;)D!==s&&Ll.call(D,k,1),Ll.call(s,k,1);return s}function qS(s,l){for(var f=s?l.length:0,p=f-1;f--;){var x=l[f];if(f==p||x!==C){var C=x;cr(x)?Ll.call(s,x,1):Jh(s,x)}}return s}function Kh(s,l){return s+Fl(OS()*(l-s+1))}function JF(s,l,f,p){for(var x=-1,C=mt(kl((l-s)/(f||1)),0),_=V(C);C--;)_[p?C:++x]=s,s+=f;return _}function Xh(s,l){var f="";if(!s||l<1||l>U)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function _e(s,l){return hm(E2(s,l,Wt),s+"")}function QF(s){return IS($s(s))}function ej(s,l){var f=$s(s);return tc(f,wi(l,0,f.length))}function qo(s,l,f,p){if(!st(s))return s;l=Ur(l,s);for(var x=-1,C=l.length,_=C-1,D=s;D!=null&&++x<C;){var k=Wn(l[x]),z=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(x!=_){var G=D[k];z=p?p(G,k,D):n,z===n&&(z=st(G)?G:cr(l[x+1])?[]:{})}zo(D,k,z),D=D[k]}return s}var KS=jl?function(s,l){return jl.set(s,l),s}:Wt,tj=Nl?function(s,l){return Nl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Wt;function nj(s){return tc($s(s))}function mn(s,l,f){var p=-1,x=s.length;l<0&&(l=-l>x?0:x+l),f=f>x?x:f,f<0&&(f+=x),x=l>f?0:f-l>>>0,l>>>=0;for(var C=V(x);++p<x;)C[p]=s[p+l];return C}function rj(s,l){var f;return Vr(s,function(p,x,C){return f=l(p,x,C),!f}),!!f}function Yl(s,l,f){var p=0,x=s==null?p:s.length;if(typeof l=="number"&&l===l&&x<=ee){for(;p<x;){var C=p+x>>>1,_=s[C];_!==null&&!Jt(_)&&(f?_<=l:_<l)?p=C+1:x=C}return x}return Zh(s,l,Wt,f)}function Zh(s,l,f,p){var x=0,C=s==null?0:s.length;if(C===0)return 0;l=f(l);for(var _=l!==l,D=l===null,k=Jt(l),z=l===n;x<C;){var G=Fl((x+C)/2),q=f(s[G]),se=q!==n,pe=q===null,Te=q===q,Me=Jt(q);if(_)var Ee=p||Te;else z?Ee=Te&&(p||se):D?Ee=Te&&se&&(p||!pe):k?Ee=Te&&se&&!pe&&(p||!Me):pe||Me?Ee=!1:Ee=p?q<=l:q<l;Ee?x=G+1:C=G}return At(C,K)}function XS(s,l){for(var f=-1,p=s.length,x=0,C=[];++f<p;){var _=s[f],D=l?l(_):_;if(!f||!Tn(D,k)){var k=D;C[x++]=_===0?0:_}}return C}function ZS(s){return typeof s=="number"?s:Jt(s)?M:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return MS?MS.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var p=-1,x=Cl,C=s.length,_=!0,D=[],k=D;if(f)_=!1,x=Ph;else if(C>=i){var z=l?null:mj(s);if(z)return Al(z);_=!1,x=Fo,k=new xi}else k=l?[]:D;e:for(;++p<C;){var G=s[p],q=l?l(G):G;if(G=f||G!==0?G:0,_&&q===q){for(var se=k.length;se--;)if(k[se]===q)continue e;l&&k.push(q),D.push(G)}else x(k,q,f)||(k!==D&&k.push(q),D.push(G))}return D}function Jh(s,l){return l=Ur(l,s),s=C2(s,l),s==null||delete s[Wn(pn(l))]}function JS(s,l,f,p){return qo(s,l,f(Si(s,l)),p)}function Hl(s,l,f,p){for(var x=s.length,C=p?x:-1;(p?C--:++C<x)&&l(s[C],C,s););return f?mn(s,p?0:C,p?C+1:x):mn(s,p?C+1:0,p?x:C)}function QS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Ah(l,function(p,x){return x.func.apply(x.thisArg,kr([p],x.args))},f)}function Qh(s,l,f){var p=s.length;if(p<2)return p?Br(s[0]):[];for(var x=-1,C=V(p);++x<p;)for(var _=s[x],D=-1;++D<p;)D!=x&&(C[x]=Go(C[x]||_,s[D],l,f));return Br(xt(C,1),l,f)}function e2(s,l,f){for(var p=-1,x=s.length,C=l.length,_={};++p<x;){var D=p<C?l[p]:n;f(_,s[p],D)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Wt}function Ur(s,l){return Ae(s)?s:um(s,l)?[s]:M2(Ve(s))}var ij=_e;function Wr(s,l,f){var p=s.length;return f=f===n?p:f,!l&&f>=p?s:mn(s,l,f)}var t2=G3||function(s){return bt.clearTimeout(s)};function n2(s,l){if(l)return s.slice();var f=s.length,p=TS?TS(f):new s.constructor(f);return s.copy(p),p}function nm(s){var l=new s.constructor(s.byteLength);return new $l(l).set(new $l(s)),l}function sj(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function oj(s){var l=new s.constructor(s.source,jw.exec(s));return l.lastIndex=s.lastIndex,l}function aj(s){return Wo?Ge(Wo.call(s)):{}}function r2(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function i2(s,l){if(s!==l){var f=s!==n,p=s===null,x=s===s,C=Jt(s),_=l!==n,D=l===null,k=l===l,z=Jt(l);if(!D&&!z&&!C&&s>l||C&&_&&k&&!D&&!z||p&&_&&k||!f&&k||!x)return 1;if(!p&&!C&&!z&&s<l||z&&f&&x&&!p&&!C||D&&f&&x||!_&&x||!k)return-1}return 0}function lj(s,l,f){for(var p=-1,x=s.criteria,C=l.criteria,_=x.length,D=f.length;++p<_;){var k=i2(x[p],C[p]);if(k){if(p>=D)return k;var z=f[p];return k*(z=="desc"?-1:1)}}return s.index-l.index}function s2(s,l,f,p){for(var x=-1,C=s.length,_=f.length,D=-1,k=l.length,z=mt(C-_,0),G=V(k+z),q=!p;++D<k;)G[D]=l[D];for(;++x<_;)(q||x<C)&&(G[f[x]]=s[x]);for(;z--;)G[D++]=s[x++];return G}function o2(s,l,f,p){for(var x=-1,C=s.length,_=-1,D=f.length,k=-1,z=l.length,G=mt(C-D,0),q=V(G+z),se=!p;++x<G;)q[x]=s[x];for(var pe=x;++k<z;)q[pe+k]=l[k];for(;++_<D;)(se||x<C)&&(q[pe+f[_]]=s[x++]);return q}function Vt(s,l){var f=-1,p=s.length;for(l||(l=V(p));++f<p;)l[f]=s[f];return l}function Un(s,l,f,p){var x=!f;f||(f={});for(var C=-1,_=l.length;++C<_;){var D=l[C],k=p?p(f[D],s[D],D,f,s):n;k===n&&(k=s[D]),x?or(f,D,k):zo(f,D,k)}return f}function cj(s,l){return Un(s,cm(s),l)}function uj(s,l){return Un(s,b2(s),l)}function ql(s,l){return function(f,p){var x=Ae(f)?p3:DF,C=l?l():{};return x(f,s,xe(p,2),C)}}function Ms(s){return _e(function(l,f){var p=-1,x=f.length,C=x>1?f[x-1]:n,_=x>2?f[2]:n;for(C=s.length>3&&typeof C=="function"?(x--,C):n,_&&Dt(f[0],f[1],_)&&(C=x<3?n:C,x=1),l=Ge(l);++p<x;){var D=f[p];D&&s(l,D,p,C)}return l})}function a2(s,l){return function(f,p){if(f==null)return f;if(!Bt(f))return s(f,p);for(var x=f.length,C=l?x:-1,_=Ge(f);(l?C--:++C<x)&&p(_[C],C,_)!==!1;);return f}}function l2(s){return function(l,f,p){for(var x=-1,C=Ge(l),_=p(l),D=_.length;D--;){var k=_[s?D:++x];if(f(C[k],k,C)===!1)break}return l}}function fj(s,l,f){var p=l&E,x=Ko(s);function C(){var _=this&&this!==bt&&this instanceof C?x:s;return _.apply(p?f:this,arguments)}return C}function c2(s){return function(l){l=Ve(l);var f=Ss(l)?wn(l):n,p=f?f[0]:l.charAt(0),x=f?Wr(f,1).join(""):l.slice(1);return p[s]()+x}}function _s(s){return function(l){return Ah(aT(oT(l).replace(t3,"")),s,"")}}function Ko(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Os(s.prototype),p=s.apply(f,l);return st(p)?p:f}}function dj(s,l,f){var p=Ko(s);function x(){for(var C=arguments.length,_=V(C),D=C,k=Is(x);D--;)_[D]=arguments[D];var z=C<3&&_[0]!==k&&_[C-1]!==k?[]:Fr(_,k);if(C-=z.length,C<f)return m2(s,l,Kl,x.placeholder,n,_,z,n,n,f-C);var G=this&&this!==bt&&this instanceof x?p:s;return Kt(G,this,_)}return x}function u2(s){return function(l,f,p){var x=Ge(l);if(!Bt(l)){var C=xe(f,3);l=gt(l),f=function(D){return C(x[D],D,x)}}var _=s(l,f,p);return _>-1?x[C?l[_]:_]:n}}function f2(s){return lr(function(l){var f=l.length,p=f,x=dn.prototype.thru;for(s&&l.reverse();p--;){var C=l[p];if(typeof C!="function")throw new fn(a);if(x&&!_&&Ql(C)=="wrapper")var _=new dn([],!0)}for(p=_?p:f;++p<f;){C=l[p];var D=Ql(C),k=D=="wrapper"?am(C):n;k&&fm(k[0])&&k[1]==(j|O|A|F)&&!k[4].length&&k[9]==1?_=_[Ql(k[0])].apply(_,k[3]):_=C.length==1&&fm(C)?_[D]():_.thru(C)}return function(){var z=arguments,G=z[0];if(_&&z.length==1&&Ae(G))return _.plant(G).value();for(var q=0,se=f?l[q].apply(this,z):G;++q<f;)se=l[q].call(this,se);return se}})}function Kl(s,l,f,p,x,C,_,D,k,z){var G=l&j,q=l&E,se=l&w,pe=l&(O|$),Te=l&Y,Me=se?n:Ko(s);function Ee(){for(var $e=arguments.length,Le=V($e),Qt=$e;Qt--;)Le[Qt]=arguments[Qt];if(pe)var $t=Is(Ee),en=E3(Le,$t);if(p&&(Le=s2(Le,p,x,pe)),C&&(Le=o2(Le,C,_,pe)),$e-=en,pe&&$e<z){var ut=Fr(Le,$t);return m2(s,l,Kl,Ee.placeholder,f,Le,ut,D,k,z-$e)}var En=q?f:this,dr=se?En[s]:s;return $e=Le.length,D?Le=Dj(Le,D):Te&&$e>1&&Le.reverse(),G&&k<$e&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=Me||Ko(dr)),dr.apply(En,Le)}return Ee}function d2(s,l){return function(f,p){return VF(f,s,l(p),{})}}function Xl(s,l){return function(f,p){var x;if(f===n&&p===n)return l;if(f!==n&&(x=f),p!==n){if(x===n)return p;typeof f=="string"||typeof p=="string"?(f=Zt(f),p=Zt(p)):(f=ZS(f),p=ZS(p)),x=s(f,p)}return x}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_e(function(f){var p=this;return s(l,function(x){return Kt(x,p,f)})})})}function Zl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Xh(l,s):l;var p=Xh(l,kl(s/Ts(l)));return Ss(l)?Wr(wn(p),0,s).join(""):p.slice(0,s)}function hj(s,l,f,p){var x=l&E,C=Ko(s);function _(){for(var D=-1,k=arguments.length,z=-1,G=p.length,q=V(G+k),se=this&&this!==bt&&this instanceof _?C:s;++z<G;)q[z]=p[z];for(;k--;)q[z++]=arguments[++D];return Kt(se,x?f:this,q)}return _}function h2(s){return function(l,f,p){return p&&typeof p!="number"&&Dt(l,f,p)&&(f=p=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),p=p===n?l<f?1:-1:fr(p),JF(l,f,p,s)}}function Jl(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function m2(s,l,f,p,x,C,_,D,k,z){var G=l&O,q=G?_:n,se=G?n:_,pe=G?C:n,Te=G?n:C;l|=G?A:R,l&=~(G?R:A),l&P||(l&=-4);var Me=[s,l,x,pe,q,Te,se,D,k,z],Ee=f.apply(n,Me);return fm(s)&&P2(Ee,Me),Ee.placeholder=p,A2(Ee,s,l)}function im(s){var l=ht[s];return function(f,p){if(f=gn(f),p=p==null?0:At(Oe(p),292),p&&AS(f)){var x=(Ve(f)+"e").split("e"),C=l(x[0]+"e"+(+x[1]+p));return x=(Ve(C)+"e").split("e"),+(x[0]+"e"+(+x[1]-p))}return l(f)}}var mj=Ps&&1/Al(new Ps([,-0]))[1]==B?function(s){return new Ps(s)}:Pm;function p2(s){return function(l){var f=Ot(l);return f==Ne?Rh(l):f==qt?I3(l):T3(l,s(l))}}function ar(s,l,f,p,x,C,_,D){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var z=p?p.length:0;if(z||(l&=-97,p=x=n),_=_===n?_:mt(Oe(_),0),D=D===n?D:Oe(D),z-=x?x.length:0,l&R){var G=p,q=x;p=x=n}var se=k?n:am(s),pe=[s,l,f,p,x,G,q,C,_,D];if(se&&Mj(pe,se),s=pe[0],l=pe[1],f=pe[2],p=pe[3],x=pe[4],D=pe[9]=pe[9]===n?k?0:s.length:mt(pe[9]-z,0),!D&&l&(O|$)&&(l&=-25),!l||l==E)var Te=fj(s,l,f);else l==O||l==$?Te=dj(s,l,D):(l==A||l==(E|A))&&!x.length?Te=hj(s,l,f,p):Te=Kl.apply(n,pe);var Me=se?KS:P2;return A2(Me(Te,pe),s,l)}function g2(s,l,f,p){return s===n||Tn(s,Cs[f])&&!We.call(p,f)?l:s}function y2(s,l,f,p,x,C){return st(s)&&st(l)&&(C.set(l,s),Gl(s,l,n,y2,C),C.delete(l)),s}function pj(s){return Jo(s)?n:s}function v2(s,l,f,p,x,C){var _=f&S,D=s.length,k=l.length;if(D!=k&&!(_&&k>D))return!1;var z=C.get(s),G=C.get(l);if(z&&G)return z==l&&G==s;var q=-1,se=!0,pe=f&v?new xi:n;for(C.set(s,l),C.set(l,s);++q<D;){var Te=s[q],Me=l[q];if(p)var Ee=_?p(Me,Te,q,l,s,C):p(Te,Me,q,s,l,C);if(Ee!==n){if(Ee)continue;se=!1;break}if(pe){if(!Oh(l,function($e,Le){if(!Fo(pe,Le)&&(Te===$e||x(Te,$e,f,p,C)))return pe.push(Le)})){se=!1;break}}else if(!(Te===Me||x(Te,Me,f,p,C))){se=!1;break}}return C.delete(s),C.delete(l),se}function gj(s,l,f,p,x,C,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!C(new $l(s),new $l(l)));case ae:case ge:case ft:return Tn(+s,+l);case Ue:return s.name==l.name&&s.message==l.message;case pi:case bn:return s==l+"";case Ne:var D=Rh;case qt:var k=p&S;if(D||(D=Al),s.size!=l.size&&!k)return!1;var z=_.get(s);if(z)return z==l;p|=v,_.set(s,l);var G=v2(D(s),D(l),p,x,C,_);return _.delete(s),G;case gi:if(Wo)return Wo.call(s)==Wo.call(l)}return!1}function yj(s,l,f,p,x,C){var _=f&S,D=sm(s),k=D.length,z=sm(l),G=z.length;if(k!=G&&!_)return!1;for(var q=k;q--;){var se=D[q];if(!(_?se in l:We.call(l,se)))return!1}var pe=C.get(s),Te=C.get(l);if(pe&&Te)return pe==l&&Te==s;var Me=!0;C.set(s,l),C.set(l,s);for(var Ee=_;++q<k;){se=D[q];var $e=s[se],Le=l[se];if(p)var Qt=_?p(Le,$e,se,l,s,C):p($e,Le,se,s,l,C);if(!(Qt===n?$e===Le||x($e,Le,f,p,C):Qt)){Me=!1;break}Ee||(Ee=se=="constructor")}if(Me&&!Ee){var $t=s.constructor,en=l.constructor;$t!=en&&"constructor"in s&&"constructor"in l&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return C.delete(s),C.delete(l),Me}function lr(s){return hm(E2(s,n,$2),s+"")}function sm(s){return FS(s,gt,cm)}function om(s){return FS(s,Ut,b2)}var am=jl?function(s){return jl.get(s)}:Pm;function Ql(s){for(var l=s.name+"",f=As[l],p=We.call(As,l)?f.length:0;p--;){var x=f[p],C=x.func;if(C==null||C==s)return x.name}return l}function Is(s){var l=We.call(T,"placeholder")?T:s;return l.placeholder}function xe(){var s=T.iteratee||Em;return s=s===Em?BS:s,arguments.length?s(arguments[0],arguments[1]):s}function ec(s,l){var f=s.__data__;return Cj(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var p=l[f],x=s[p];l[f]=[p,x,S2(x)]}return l}function Ti(s,l){var f=O3(s,l);return VS(f)?f:n}function vj(s){var l=We.call(s,vi),f=s[vi];try{s[vi]=n;var p=!0}catch{}var x=Il.call(s);return p&&(l?s[vi]=f:delete s[vi]),x}var cm=Nh?function(s){return s==null?[]:(s=Ge(s),Nr(Nh(s),function(l){return CS.call(s,l)}))}:Am,b2=Nh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Rl(s);return l}:Am,Ot=It;(kh&&Ot(new kh(new ArrayBuffer(1)))!=Qe||Vo&&Ot(new Vo)!=Ne||Fh&&Ot(Fh.resolve())!=vl||Ps&&Ot(new Ps)!=qt||Bo&&Ot(new Bo)!=Lr)&&(Ot=function(s){var l=It(s),f=l==dt?s.constructor:n,p=f?Ei(f):"";if(p)switch(p){case eF:return Qe;case tF:return Ne;case nF:return vl;case rF:return qt;case iF:return Lr}return l});function bj(s,l,f){for(var p=-1,x=f.length;++p<x;){var C=f[p],_=C.size;switch(C.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function xj(s){var l=s.match(Pk);return l?l[1].split(Ak):[]}function x2(s,l,f){l=Ur(l,s);for(var p=-1,x=l.length,C=!1;++p<x;){var _=Wn(l[p]);if(!(C=s!=null&&f(s,_)))break;s=s[_]}return C||++p!=x?C:(x=s==null?0:s.length,!!x&&ac(x)&&cr(_,x)&&(Ae(s)||Ci(s)))}function wj(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&We.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function w2(s){return typeof s.constructor=="function"&&!Xo(s)?Os(Rl(s)):{}}function Sj(s,l,f){var p=s.constructor;switch(l){case be:return nm(s);case ae:case ge:return new p(+s);case Qe:return sj(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return r2(s,f);case Ne:return new p;case ft:case bn:return new p(s);case pi:return oj(s);case qt:return new p;case gi:return aj(s)}}function Tj(s,l){var f=l.length;if(!f)return s;var p=f-1;return l[p]=(f>1?"& ":"")+l[p],l=l.join(f>2?", ":" "),s.replace(Ck,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
|
-
`)}function Tj(s){return Ae(s)||Ci(s)||!!(CS&&s&&s[CS])}function cr(s,l){var f=typeof s;return l=l??U,!!l&&(f=="number"||f!="symbol"&&Lk.test(s))&&s>-1&&s%1==0&&s<l}function Dt(s,l,f){if(!st(f))return!1;var p=typeof l;return(p=="number"?Bt(f)&&cr(l,f.length):p=="string"&&l in f)?Tn(f[l],s):!1}function um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:xk.test(s)||!bk.test(s)||l!=null&&s in Ge(l)}function Ej(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=Ql(s),f=T[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var p=am(f);return!!p&&s===p[0]}function Cj(s){return!!wS&&wS in s}var Pj=Ml?ur:Om;function Xo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Cs;return s===f}function w2(s){return s===s&&!st(s)}function S2(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function Aj(s){var l=sc(s,function(p){return f.size===d&&f.clear(),p}),f=l.cache;return l}function Oj(s,l){var f=s[1],p=l[1],b=f|p,P=b<(E|w|j),_=p==j&&f==O||p==j&&f==F&&s[7].length<=l[8]||p==(j|F)&&l[7].length<=l[8]&&f==O;if(!(P||_))return s;p&E&&(s[2]=l[2],b|=f&E?0:A);var $=l[3];if($){var k=s[3];s[3]=k?i2(k,$,l[4]):$,s[4]=k?Fr(s[3],h):l[4]}return $=l[5],$&&(k=s[5],s[5]=k?s2(k,$,l[6]):$,s[6]=k?Fr(s[5],h):l[6]),$=l[7],$&&(s[7]=$),p&j&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=b,s}function Mj(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function _j(s){return Il.call(s)}function T2(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var p=arguments,b=-1,P=mt(p.length-l,0),_=V(P);++b<P;)_[b]=p[l+b];b=-1;for(var $=V(l+1);++b<l;)$[b]=p[b];return $[l]=f(_),Kt(s,this,$)}}function E2(s,l){return l.length<2?s:Si(s,mn(l,0,-1))}function Ij(s,l){for(var f=s.length,p=At(l.length,f),b=Vt(s);p--;){var P=l[p];s[p]=cr(P,f)?b[P]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var C2=A2(qS),Zo=Y3||function(s,l){return bt.setTimeout(s,l)},hm=A2(ej);function P2(s,l,f){var p=l+"";return hm(s,Sj(p,Dj(bj(p),f)))}function A2(s){var l=0,f=0;return function(){var p=X3(),b=de-(p-f);if(f=p,b>0){if(++l>=me)return arguments[0]}else l=0;return s.apply(n,arguments)}}function tc(s,l){var f=-1,p=s.length,b=p-1;for(l=l===n?p:l;++f<l;){var P=Kh(f,b),_=s[P];s[P]=s[f],s[f]=_}return s.length=l,s}var O2=Aj(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(wk,function(f,p,b,P){l.push(b?P.replace(Mk,"$1"):p||f)}),l});function Wn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ei(s){if(s!=null){try{return _l.call(s)}catch{}try{return s+""}catch{}}return""}function Dj(s,l){return un(ue,function(f){var p="_."+f[0];l&f[1]&&!Cl(s,p)&&s.push(p)}),s.sort()}function M2(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function $j(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var p=s==null?0:s.length;if(!p||l<1)return[];for(var b=0,P=0,_=V(kl(p/l));b<p;)_[P++]=mn(s,b,b+=l);return _}function Rj(s){for(var l=-1,f=s==null?0:s.length,p=0,b=[];++l<f;){var P=s[l];P&&(b[p++]=P)}return b}function Lj(){var s=arguments.length;if(!s)return[];for(var l=V(s-1),f=arguments[0],p=s;p--;)l[p-1]=arguments[p];return kr(Ae(f)?Vt(f):[f],xt(l,1))}var Nj=_e(function(s,l){return ct(s)?Go(s,xt(l,1,ct,!0)):[]}),kj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),xe(f,2)):[]}),Fj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),n,f):[]});function jj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,p)):[]}function Vj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,0,l<0?0:l)):[]}function Bj(s,l){return s&&s.length?Hl(s,xe(l,3),!0,!0):[]}function Uj(s,l){return s&&s.length?Hl(s,xe(l,3),!0):[]}function Wj(s,l,f,p){var b=s==null?0:s.length;return b?(f&&typeof f!="number"&&Dt(s,l,f)&&(f=0,p=b),LF(s,l,f,p)):[]}function _2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=f==null?0:Oe(f);return b<0&&(b=mt(p+b,0)),Pl(s,xe(l,3),b)}function I2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=p-1;return f!==n&&(b=Oe(f),b=f<0?mt(p+b,0):At(b,p-1)),Pl(s,xe(l,3),b,!0)}function D2(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function zj(s){var l=s==null?0:s.length;return l?xt(s,B):[]}function Gj(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function Yj(s){for(var l=-1,f=s==null?0:s.length,p={};++l<f;){var b=s[l];p[b[0]]=b[1]}return p}function $2(s){return s&&s.length?s[0]:n}function Hj(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=f==null?0:Oe(f);return b<0&&(b=mt(p+b,0)),ws(s,l,b)}function qj(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var Kj=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),Xj=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,xe(l,2)):[]}),Zj=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function Jj(s,l){return s==null?"":q3.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function Qj(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=p;return f!==n&&(b=Oe(f),b=b<0?mt(p+b,0):At(b,p-1)),l===l?D3(s,l,b):Pl(s,hS,b,!0)}function eV(s,l){return s&&s.length?zS(s,Oe(l)):n}var tV=_e(R2);function R2(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function nV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function rV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var iV=lr(function(s,l){var f=s==null?0:s.length,p=Vh(s,l);return HS(s,et(l,function(b){return cr(b,f)?+b:b}).sort(r2)),p});function sV(s,l){var f=[];if(!(s&&s.length))return f;var p=-1,b=[],P=s.length;for(l=xe(l,3);++p<P;){var _=s[p];l(_,p,s)&&(f.push(_),b.push(p))}return HS(s,b),f}function mm(s){return s==null?s:J3.call(s)}function oV(s,l,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Dt(s,l,f)?(l=0,f=p):(l=l==null?0:Oe(l),f=f===n?p:Oe(f)),mn(s,l,f)):[]}function aV(s,l){return Yl(s,l)}function lV(s,l,f){return Zh(s,l,xe(f,2))}function cV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l);if(p<f&&Tn(s[p],l))return p}return-1}function uV(s,l){return Yl(s,l,!0)}function fV(s,l,f){return Zh(s,l,xe(f,2),!0)}function dV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l,!0)-1;if(Tn(s[p],l))return p}return-1}function hV(s){return s&&s.length?KS(s):[]}function mV(s,l){return s&&s.length?KS(s,xe(l,2)):[]}function pV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function gV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function yV(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,l<0?0:l,p)):[]}function vV(s,l){return s&&s.length?Hl(s,xe(l,3),!1,!0):[]}function bV(s,l){return s&&s.length?Hl(s,xe(l,3)):[]}var xV=_e(function(s){return Br(xt(s,1,ct,!0))}),wV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),xe(l,2))}),SV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function TV(s){return s&&s.length?Br(s):[]}function EV(s,l){return s&&s.length?Br(s,xe(l,2)):[]}function CV(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Nr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,Mh(f))})}function L2(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(p){return Kt(l,n,p)})}var PV=_e(function(s,l){return ct(s)?Go(s,l):[]}),AV=_e(function(s){return Qh(Nr(s,ct))}),OV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Nr(s,ct),xe(l,2))}),MV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Nr(s,ct),n,l)}),_V=_e(pm);function IV(s,l){return QS(s||[],l||[],zo)}function DV(s,l){return QS(s||[],l||[],qo)}var $V=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,L2(s,f)});function N2(s){var l=T(s);return l.__chain__=!0,l}function RV(s,l){return l(s),s}function nc(s,l){return l(s)}var LV=lr(function(s){var l=s.length,f=l?s[0]:0,p=this.__wrapped__,b=function(P){return Vh(P,s)};return l>1||this.__actions__.length||!(p instanceof Re)||!cr(f)?this.thru(b):(p=p.slice(f,+f+(l?1:0)),p.__actions__.push({func:nc,args:[b],thisArg:n}),new dn(p,this.__chain__).thru(function(P){return l&&!P.length&&P.push(n),P}))});function NV(){return N2(this)}function kV(){return new dn(this.value(),this.__chain__)}function FV(){this.__values__===n&&(this.__values__=X2(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function jV(){return this}function VV(s){for(var l,f=this;f instanceof Bl;){var p=M2(f);p.__index__=0,p.__values__=n,l?b.__wrapped__=p:l=p;var b=p;f=f.__wrapped__}return b.__wrapped__=s,l}function BV(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:nc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function UV(){return JS(this.__wrapped__,this.__actions__)}var WV=ql(function(s,l,f){We.call(s,f)?++s[f]:or(s,f,1)});function zV(s,l,f){var p=Ae(s)?fS:RF;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}function GV(s,l){var f=Ae(s)?Nr:LS;return f(s,xe(l,3))}var YV=c2(_2),HV=c2(I2);function qV(s,l){return xt(rc(s,l),1)}function KV(s,l){return xt(rc(s,l),B)}function XV(s,l,f){return f=f===n?1:Oe(f),xt(rc(s,l),f)}function k2(s,l){var f=Ae(s)?un:Vr;return f(s,xe(l,3))}function F2(s,l){var f=Ae(s)?p3:RS;return f(s,xe(l,3))}var ZV=ql(function(s,l,f){We.call(s,f)?s[f].push(l):or(s,f,[l])});function JV(s,l,f,p){s=Bt(s)?s:$s(s),f=f&&!p?Oe(f):0;var b=s.length;return f<0&&(f=mt(b+f,0)),lc(s)?f<=b&&s.indexOf(l,f)>-1:!!b&&ws(s,l,f)>-1}var QV=_e(function(s,l,f){var p=-1,b=typeof l=="function",P=Bt(s)?V(s.length):[];return Vr(s,function(_){P[++p]=b?Kt(l,_,f):Yo(_,l,f)}),P}),eB=ql(function(s,l,f){or(s,f,l)});function rc(s,l){var f=Ae(s)?et:BS;return f(s,xe(l,3))}function tB(s,l,f,p){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=p?n:f,Ae(f)||(f=f==null?[]:[f]),GS(s,l,f))}var nB=ql(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function rB(s,l,f){var p=Ae(s)?Ah:pS,b=arguments.length<3;return p(s,xe(l,4),f,b,Vr)}function iB(s,l,f){var p=Ae(s)?g3:pS,b=arguments.length<3;return p(s,xe(l,4),f,b,RS)}function sB(s,l){var f=Ae(s)?Nr:LS;return f(s,oc(xe(l,3)))}function oB(s){var l=Ae(s)?_S:JF;return l(s)}function aB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Oe(l);var p=Ae(s)?MF:QF;return p(s,l)}function lB(s){var l=Ae(s)?_F:tj;return l(s)}function cB(s){if(s==null)return 0;if(Bt(s))return lc(s)?Ts(s):s.length;var l=Ot(s);return l==Ne||l==qt?s.size:Yh(s).length}function uB(s,l,f){var p=Ae(s)?Oh:nj;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}var fB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&Dt(s,l[0],l[1])?l=[]:f>2&&Dt(l[0],l[1],l[2])&&(l=[l[0]]),GS(s,xt(l,1),[])}),ic=G3||function(){return bt.Date.now()};function dB(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function j2(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function V2(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var p=E;if(f.length){var b=Fr(f,Is(gm));p|=C}return ar(s,p,l,f,b)}),B2=_e(function(s,l,f){var p=E|w;if(f.length){var b=Fr(f,Is(B2));p|=C}return ar(l,p,s,f,b)});function U2(s,l,f){l=f?n:l;var p=ar(s,O,n,n,n,n,n,l);return p.placeholder=U2.placeholder,p}function W2(s,l,f){l=f?n:l;var p=ar(s,D,n,n,n,n,n,l);return p.placeholder=W2.placeholder,p}function z2(s,l,f){var p,b,P,_,$,k,z=0,G=!1,q=!1,se=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(G=!!f.leading,q="maxWait"in f,P=q?mt(gn(f.maxWait)||0,l):P,se="trailing"in f?!!f.trailing:se);function pe(ut){var En=p,dr=b;return p=b=n,z=ut,_=s.apply(dr,En),_}function Te(ut){return z=ut,$=Zo($e,l),G?pe(ut):_}function Me(ut){var En=ut-k,dr=ut-z,cT=l-En;return q?At(cT,P-dr):cT}function Ee(ut){var En=ut-k,dr=ut-z;return k===n||En>=l||En<0||q&&dr>=P}function $e(){var ut=ic();if(Ee(ut))return Le(ut);$=Zo($e,Me(ut))}function Le(ut){return $=n,se&&p?pe(ut):(p=b=n,_)}function Qt(){$!==n&&e2($),z=0,p=k=b=$=n}function $t(){return $===n?_:Le(ic())}function en(){var ut=ic(),En=Ee(ut);if(p=arguments,b=this,k=ut,En){if($===n)return Te(k);if(q)return e2($),$=Zo($e,l),pe(k)}return $===n&&($=Zo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var hB=_e(function(s,l){return $S(s,1,l)}),mB=_e(function(s,l,f){return $S(s,gn(l)||0,f)});function pB(s){return ar(s,Y)}function sc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var p=arguments,b=l?l.apply(this,p):p[0],P=f.cache;if(P.has(b))return P.get(b);var _=s.apply(this,p);return f.cache=P.set(b,_)||P,_};return f.cache=new(sc.Cache||sr),f}sc.Cache=sr;function oc(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function gB(s){return V2(2,s)}var yB=rj(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return _e(function(p){for(var b=-1,P=At(p.length,f);++b<P;)p[b]=l[b].call(this,p[b]);return Kt(s,this,p)})}),ym=_e(function(s,l){var f=Fr(l,Is(ym));return ar(s,C,n,l,f)}),G2=_e(function(s,l){var f=Fr(l,Is(G2));return ar(s,L,n,l,f)}),vB=lr(function(s,l){return ar(s,F,n,n,n,l)});function bB(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),_e(s,l)}function xB(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var p=f[l],b=Wr(f,0,l);return p&&kr(b,p),Kt(s,this,b)})}function wB(s,l,f){var p=!0,b=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(p="leading"in f?!!f.leading:p,b="trailing"in f?!!f.trailing:b),z2(s,l,{leading:p,maxWait:l,trailing:b})}function SB(s){return j2(s,1)}function TB(s,l){return ym(tm(l),s)}function EB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function CB(s){return hn(s,y)}function PB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function AB(s){return hn(s,m|y)}function OB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function MB(s,l){return l==null||DS(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var _B=Jl(Wh),IB=Jl(function(s,l){return s>=l}),Ci=FS(function(){return arguments}())?FS:function(s){return ot(s)&&We.call(s,"callee")&&!ES.call(s,"callee")},Ae=V.isArray,DB=sS?Xt(sS):VF;function Bt(s){return s!=null&&ac(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function $B(s){return s===!0||s===!1||ot(s)&&It(s)==oe}var zr=H3||Om,RB=oS?Xt(oS):BF;function LB(s){return ot(s)&&s.nodeType===1&&!Jo(s)}function NB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Ds(s)||Ci(s)))return!s.length;var l=Ot(s);if(l==Ne||l==qt)return!s.size;if(Xo(s))return!Yh(s).length;for(var f in s)if(We.call(s,f))return!1;return!0}function kB(s,l){return Ho(s,l)}function FB(s,l,f){f=typeof f=="function"?f:n;var p=f?f(s,l):n;return p===n?Ho(s,l,n,f):!!p}function vm(s){if(!ot(s))return!1;var l=It(s);return l==Ue||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Jo(s)}function jB(s){return typeof s=="number"&&PS(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ne||l==ye||l==he||l==bl}function Y2(s){return typeof s=="number"&&s==Oe(s)}function ac(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=U}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var H2=aS?Xt(aS):WF;function VB(s,l){return s===l||Gh(s,l,lm(l))}function BB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function UB(s){return q2(s)&&s!=+s}function WB(s){if(Pj(s))throw new Pe(o);return jS(s)}function zB(s){return s===null}function GB(s){return s==null}function q2(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Jo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Rl(s);if(l===null)return!0;var f=We.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&_l.call(f)==B3}var bm=lS?Xt(lS):zF;function YB(s){return Y2(s)&&s>=-9007199254740991&&s<=U}var K2=cS?Xt(cS):GF;function lc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==gi}var Ds=uS?Xt(uS):YF;function HB(s){return s===n}function qB(s){return ot(s)&&Ot(s)==Lr}function KB(s){return ot(s)&&It(s)==wl}var XB=Jl(Hh),ZB=Jl(function(s,l){return s<=l});function X2(s){if(!s)return[];if(Bt(s))return lc(s)?wn(s):Vt(s);if(jo&&s[jo])return M3(s[jo]());var l=Ot(s),f=l==Ne?Rh:l==qt?Al:$s;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===B||s===-1/0){var l=s<0?-1:1;return l*H}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function Z2(s){return s?wi(Oe(s),0,N):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return M;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=gS(s);var f=Dk.test(s);return f||Rk.test(s)?d3(s.slice(2),f?2:8):Ik.test(s)?M:+s}function J2(s){return Un(s,Ut(s))}function JB(s){return s?wi(Oe(s),-9007199254740991,U):s===0?s:0}function Ve(s){return s==null?"":Zt(s)}var QB=Ms(function(s,l){if(Xo(l)||Bt(l)){Un(l,gt(l),s);return}for(var f in l)We.call(l,f)&&zo(s,f,l[f])}),Q2=Ms(function(s,l){Un(l,Ut(l),s)}),cc=Ms(function(s,l,f,p){Un(l,Ut(l),s,p)}),e8=Ms(function(s,l,f,p){Un(l,gt(l),s,p)}),t8=lr(Vh);function n8(s,l){var f=Os(s);return l==null?f:IS(f,l)}var r8=_e(function(s,l){s=Ge(s);var f=-1,p=l.length,b=p>2?l[2]:n;for(b&&Dt(l[0],l[1],b)&&(p=1);++f<p;)for(var P=l[f],_=Ut(P),$=-1,k=_.length;++$<k;){var z=_[$],G=s[z];(G===n||Tn(G,Cs[z])&&!We.call(s,z))&&(s[z]=P[z])}return s}),i8=_e(function(s){return s.push(n,g2),Kt(eT,n,s)});function s8(s,l){return dS(s,xe(l,3),Bn)}function o8(s,l){return dS(s,xe(l,3),Uh)}function a8(s,l){return s==null?s:Bh(s,xe(l,3),Ut)}function l8(s,l){return s==null?s:NS(s,xe(l,3),Ut)}function c8(s,l){return s&&Bn(s,xe(l,3))}function u8(s,l){return s&&Uh(s,xe(l,3))}function f8(s){return s==null?[]:zl(s,gt(s))}function d8(s){return s==null?[]:zl(s,Ut(s))}function xm(s,l,f){var p=s==null?n:Si(s,l);return p===n?f:p}function h8(s,l){return s!=null&&b2(s,l,NF)}function wm(s,l){return s!=null&&b2(s,l,kF)}var m8=f2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),s[l]=f},Tm(Wt)),p8=f2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),We.call(s,l)?s[l].push(f):s[l]=[f]},xe),g8=_e(Yo);function gt(s){return Bt(s)?MS(s):Yh(s)}function Ut(s){return Bt(s)?MS(s,!0):HF(s)}function y8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,b,P){or(f,l(p,b,P),p)}),f}function v8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,b,P){or(f,b,l(p,b,P))}),f}var b8=Ms(function(s,l,f){Gl(s,l,f)}),eT=Ms(function(s,l,f,p){Gl(s,l,f,p)}),x8=lr(function(s,l){var f={};if(s==null)return f;var p=!1;l=et(l,function(P){return P=Ur(P,s),p||(p=P.length>1),P}),Un(s,om(s),f),p&&(f=hn(f,m|g|y,mj));for(var b=l.length;b--;)Jh(f,l[b]);return f});function w8(s,l){return tT(s,oc(xe(l)))}var S8=lr(function(s,l){return s==null?{}:KF(s,l)});function tT(s,l){if(s==null)return{};var f=et(om(s),function(p){return[p]});return l=xe(l),YS(s,f,function(p,b){return l(p,b[0])})}function T8(s,l,f){l=Ur(l,s);var p=-1,b=l.length;for(b||(b=1,s=n);++p<b;){var P=s==null?n:s[Wn(l[p])];P===n&&(p=b,P=f),s=ur(P)?P.call(s):P}return s}function E8(s,l,f){return s==null?s:qo(s,l,f)}function C8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:qo(s,l,f,p)}var nT=m2(gt),rT=m2(Ut);function P8(s,l,f){var p=Ae(s),b=p||zr(s)||Ds(s);if(l=xe(l,4),f==null){var P=s&&s.constructor;b?f=p?new P:[]:st(s)?f=ur(P)?Os(Rl(s)):{}:f={}}return(b?un:Bn)(s,function(_,$,k){return l(f,_,$,k)}),f}function A8(s,l){return s==null?!0:Jh(s,l)}function O8(s,l,f){return s==null?s:ZS(s,l,tm(f))}function M8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:ZS(s,l,tm(f),p)}function $s(s){return s==null?[]:$h(s,gt(s))}function _8(s){return s==null?[]:$h(s,Ut(s))}function I8(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),wi(gn(s),l,f)}function D8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),FF(s,l,f)}function $8(s,l,f){if(f&&typeof f!="boolean"&&Dt(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var p=s;s=l,l=p}if(f||s%1||l%1){var b=AS();return At(s+b*(l-s+f3("1e-"+((b+"").length-1))),l)}return Kh(s,l)}var R8=_s(function(s,l,f){return l=l.toLowerCase(),s+(f?iT(l):l)});function iT(s){return Sm(Ve(s).toLowerCase())}function sT(s){return s=Ve(s),s&&s.replace(Nk,E3).replace(t3,"")}function L8(s,l,f){s=Ve(s),l=Zt(l);var p=s.length;f=f===n?p:wi(Oe(f),0,p);var b=f;return f-=l.length,f>=0&&s.slice(f,b)==l}function N8(s){return s=Ve(s),s&&gk.test(s)?s.replace(Nw,C3):s}function k8(s){return s=Ve(s),s&&Sk.test(s)?s.replace(yh,"\\$&"):s}var F8=_s(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),j8=_s(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),V8=l2("toLowerCase");function B8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;if(!l||p>=l)return s;var b=(l-p)/2;return Zl(Fl(b),f)+s+Zl(kl(b),f)}function U8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?s+Zl(l-p,f):s}function W8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?Zl(l-p,f)+s:s}function z8(s,l,f){return f||l==null?l=0:l&&(l=+l),Z3(Ve(s).replace(vh,""),l||0)}function G8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Oe(l),Xh(Ve(s),l)}function Y8(){var s=arguments,l=Ve(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var H8=_s(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function q8(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?N:f>>>0,f?(s=Ve(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Ss(s))?Wr(wn(s),0,f):s.split(l,f)):[]}var K8=_s(function(s,l,f){return s+(f?" ":"")+Sm(l)});function X8(s,l,f){return s=Ve(s),f=f==null?0:wi(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function Z8(s,l,f){var p=T.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Ve(s),l=cc({},l,p,p2);var b=cc({},l.imports,p.imports,p2),P=gt(b),_=$h(b,P),$,k,z=0,G=l.interpolate||Sl,q="__p += '",se=Lh((l.escape||Sl).source+"|"+G.source+"|"+(G===kw?_k:Sl).source+"|"+(l.evaluate||Sl).source+"|$","g"),pe="//# sourceURL="+(We.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++o3+"]")+`
|
|
635
|
-
`;s.replace(se,function(Ee,$e,Le,Qt,$t,en){return Le||(Le=Qt),q+=s.slice(z,en).replace(
|
|
634
|
+
`)}function Ej(s){return Ae(s)||Ci(s)||!!(PS&&s&&s[PS])}function cr(s,l){var f=typeof s;return l=l??U,!!l&&(f=="number"||f!="symbol"&&Nk.test(s))&&s>-1&&s%1==0&&s<l}function Dt(s,l,f){if(!st(f))return!1;var p=typeof l;return(p=="number"?Bt(f)&&cr(l,f.length):p=="string"&&l in f)?Tn(f[l],s):!1}function um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:wk.test(s)||!xk.test(s)||l!=null&&s in Ge(l)}function Cj(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=Ql(s),f=T[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var p=am(f);return!!p&&s===p[0]}function Pj(s){return!!SS&&SS in s}var Aj=Ml?ur:Om;function Xo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Cs;return s===f}function S2(s){return s===s&&!st(s)}function T2(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function Oj(s){var l=sc(s,function(p){return f.size===d&&f.clear(),p}),f=l.cache;return l}function Mj(s,l){var f=s[1],p=l[1],x=f|p,C=x<(E|w|j),_=p==j&&f==O||p==j&&f==F&&s[7].length<=l[8]||p==(j|F)&&l[7].length<=l[8]&&f==O;if(!(C||_))return s;p&E&&(s[2]=l[2],x|=f&E?0:P);var D=l[3];if(D){var k=s[3];s[3]=k?s2(k,D,l[4]):D,s[4]=k?Fr(s[3],h):l[4]}return D=l[5],D&&(k=s[5],s[5]=k?o2(k,D,l[6]):D,s[6]=k?Fr(s[5],h):l[6]),D=l[7],D&&(s[7]=D),p&j&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=x,s}function _j(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function Ij(s){return Il.call(s)}function E2(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var p=arguments,x=-1,C=mt(p.length-l,0),_=V(C);++x<C;)_[x]=p[l+x];x=-1;for(var D=V(l+1);++x<l;)D[x]=p[x];return D[l]=f(_),Kt(s,this,D)}}function C2(s,l){return l.length<2?s:Si(s,mn(l,0,-1))}function Dj(s,l){for(var f=s.length,p=At(l.length,f),x=Vt(s);p--;){var C=l[p];s[p]=cr(C,f)?x[C]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var P2=O2(KS),Zo=H3||function(s,l){return bt.setTimeout(s,l)},hm=O2(tj);function A2(s,l,f){var p=l+"";return hm(s,Tj(p,$j(xj(p),f)))}function O2(s){var l=0,f=0;return function(){var p=Z3(),x=de-(p-f);if(f=p,x>0){if(++l>=me)return arguments[0]}else l=0;return s.apply(n,arguments)}}function tc(s,l){var f=-1,p=s.length,x=p-1;for(l=l===n?p:l;++f<l;){var C=Kh(f,x),_=s[C];s[C]=s[f],s[f]=_}return s.length=l,s}var M2=Oj(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Sk,function(f,p,x,C){l.push(x?C.replace(_k,"$1"):p||f)}),l});function Wn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ei(s){if(s!=null){try{return _l.call(s)}catch{}try{return s+""}catch{}}return""}function $j(s,l){return un(ue,function(f){var p="_."+f[0];l&f[1]&&!Cl(s,p)&&s.push(p)}),s.sort()}function _2(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function Rj(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var p=s==null?0:s.length;if(!p||l<1)return[];for(var x=0,C=0,_=V(kl(p/l));x<p;)_[C++]=mn(s,x,x+=l);return _}function Lj(s){for(var l=-1,f=s==null?0:s.length,p=0,x=[];++l<f;){var C=s[l];C&&(x[p++]=C)}return x}function Nj(){var s=arguments.length;if(!s)return[];for(var l=V(s-1),f=arguments[0],p=s;p--;)l[p-1]=arguments[p];return kr(Ae(f)?Vt(f):[f],xt(l,1))}var kj=_e(function(s,l){return ct(s)?Go(s,xt(l,1,ct,!0)):[]}),Fj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),xe(f,2)):[]}),jj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),n,f):[]});function Vj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,p)):[]}function Bj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,0,l<0?0:l)):[]}function Uj(s,l){return s&&s.length?Hl(s,xe(l,3),!0,!0):[]}function Wj(s,l){return s&&s.length?Hl(s,xe(l,3),!0):[]}function zj(s,l,f,p){var x=s==null?0:s.length;return x?(f&&typeof f!="number"&&Dt(s,l,f)&&(f=0,p=x),NF(s,l,f,p)):[]}function I2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(p+x,0)),Pl(s,xe(l,3),x)}function D2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var x=p-1;return f!==n&&(x=Oe(f),x=f<0?mt(p+x,0):At(x,p-1)),Pl(s,xe(l,3),x,!0)}function $2(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function Gj(s){var l=s==null?0:s.length;return l?xt(s,B):[]}function Yj(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function Hj(s){for(var l=-1,f=s==null?0:s.length,p={};++l<f;){var x=s[l];p[x[0]]=x[1]}return p}function R2(s){return s&&s.length?s[0]:n}function qj(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var x=f==null?0:Oe(f);return x<0&&(x=mt(p+x,0)),ws(s,l,x)}function Kj(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var Xj=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),Zj=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,xe(l,2)):[]}),Jj=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function Qj(s,l){return s==null?"":K3.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function eV(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var x=p;return f!==n&&(x=Oe(f),x=x<0?mt(p+x,0):At(x,p-1)),l===l?$3(s,l,x):Pl(s,mS,x,!0)}function tV(s,l){return s&&s.length?GS(s,Oe(l)):n}var nV=_e(L2);function L2(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function rV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function iV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var sV=lr(function(s,l){var f=s==null?0:s.length,p=Vh(s,l);return qS(s,et(l,function(x){return cr(x,f)?+x:x}).sort(i2)),p});function oV(s,l){var f=[];if(!(s&&s.length))return f;var p=-1,x=[],C=s.length;for(l=xe(l,3);++p<C;){var _=s[p];l(_,p,s)&&(f.push(_),x.push(p))}return qS(s,x),f}function mm(s){return s==null?s:Q3.call(s)}function aV(s,l,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Dt(s,l,f)?(l=0,f=p):(l=l==null?0:Oe(l),f=f===n?p:Oe(f)),mn(s,l,f)):[]}function lV(s,l){return Yl(s,l)}function cV(s,l,f){return Zh(s,l,xe(f,2))}function uV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l);if(p<f&&Tn(s[p],l))return p}return-1}function fV(s,l){return Yl(s,l,!0)}function dV(s,l,f){return Zh(s,l,xe(f,2),!0)}function hV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l,!0)-1;if(Tn(s[p],l))return p}return-1}function mV(s){return s&&s.length?XS(s):[]}function pV(s,l){return s&&s.length?XS(s,xe(l,2)):[]}function gV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function yV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function vV(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,l<0?0:l,p)):[]}function bV(s,l){return s&&s.length?Hl(s,xe(l,3),!1,!0):[]}function xV(s,l){return s&&s.length?Hl(s,xe(l,3)):[]}var wV=_e(function(s){return Br(xt(s,1,ct,!0))}),SV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),xe(l,2))}),TV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function EV(s){return s&&s.length?Br(s):[]}function CV(s,l){return s&&s.length?Br(s,xe(l,2)):[]}function PV(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Nr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,Mh(f))})}function N2(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(p){return Kt(l,n,p)})}var AV=_e(function(s,l){return ct(s)?Go(s,l):[]}),OV=_e(function(s){return Qh(Nr(s,ct))}),MV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Nr(s,ct),xe(l,2))}),_V=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Nr(s,ct),n,l)}),IV=_e(pm);function DV(s,l){return e2(s||[],l||[],zo)}function $V(s,l){return e2(s||[],l||[],qo)}var RV=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,N2(s,f)});function k2(s){var l=T(s);return l.__chain__=!0,l}function LV(s,l){return l(s),s}function nc(s,l){return l(s)}var NV=lr(function(s){var l=s.length,f=l?s[0]:0,p=this.__wrapped__,x=function(C){return Vh(C,s)};return l>1||this.__actions__.length||!(p instanceof Re)||!cr(f)?this.thru(x):(p=p.slice(f,+f+(l?1:0)),p.__actions__.push({func:nc,args:[x],thisArg:n}),new dn(p,this.__chain__).thru(function(C){return l&&!C.length&&C.push(n),C}))});function kV(){return k2(this)}function FV(){return new dn(this.value(),this.__chain__)}function jV(){this.__values__===n&&(this.__values__=Z2(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function VV(){return this}function BV(s){for(var l,f=this;f instanceof Bl;){var p=_2(f);p.__index__=0,p.__values__=n,l?x.__wrapped__=p:l=p;var x=p;f=f.__wrapped__}return x.__wrapped__=s,l}function UV(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:nc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function WV(){return QS(this.__wrapped__,this.__actions__)}var zV=ql(function(s,l,f){We.call(s,f)?++s[f]:or(s,f,1)});function GV(s,l,f){var p=Ae(s)?dS:LF;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}function YV(s,l){var f=Ae(s)?Nr:NS;return f(s,xe(l,3))}var HV=u2(I2),qV=u2(D2);function KV(s,l){return xt(rc(s,l),1)}function XV(s,l){return xt(rc(s,l),B)}function ZV(s,l,f){return f=f===n?1:Oe(f),xt(rc(s,l),f)}function F2(s,l){var f=Ae(s)?un:Vr;return f(s,xe(l,3))}function j2(s,l){var f=Ae(s)?g3:LS;return f(s,xe(l,3))}var JV=ql(function(s,l,f){We.call(s,f)?s[f].push(l):or(s,f,[l])});function QV(s,l,f,p){s=Bt(s)?s:$s(s),f=f&&!p?Oe(f):0;var x=s.length;return f<0&&(f=mt(x+f,0)),lc(s)?f<=x&&s.indexOf(l,f)>-1:!!x&&ws(s,l,f)>-1}var eB=_e(function(s,l,f){var p=-1,x=typeof l=="function",C=Bt(s)?V(s.length):[];return Vr(s,function(_){C[++p]=x?Kt(l,_,f):Yo(_,l,f)}),C}),tB=ql(function(s,l,f){or(s,f,l)});function rc(s,l){var f=Ae(s)?et:US;return f(s,xe(l,3))}function nB(s,l,f,p){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=p?n:f,Ae(f)||(f=f==null?[]:[f]),YS(s,l,f))}var rB=ql(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function iB(s,l,f){var p=Ae(s)?Ah:gS,x=arguments.length<3;return p(s,xe(l,4),f,x,Vr)}function sB(s,l,f){var p=Ae(s)?y3:gS,x=arguments.length<3;return p(s,xe(l,4),f,x,LS)}function oB(s,l){var f=Ae(s)?Nr:NS;return f(s,oc(xe(l,3)))}function aB(s){var l=Ae(s)?IS:QF;return l(s)}function lB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Oe(l);var p=Ae(s)?_F:ej;return p(s,l)}function cB(s){var l=Ae(s)?IF:nj;return l(s)}function uB(s){if(s==null)return 0;if(Bt(s))return lc(s)?Ts(s):s.length;var l=Ot(s);return l==Ne||l==qt?s.size:Yh(s).length}function fB(s,l,f){var p=Ae(s)?Oh:rj;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}var dB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&Dt(s,l[0],l[1])?l=[]:f>2&&Dt(l[0],l[1],l[2])&&(l=[l[0]]),YS(s,xt(l,1),[])}),ic=Y3||function(){return bt.Date.now()};function hB(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function V2(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function B2(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var p=E;if(f.length){var x=Fr(f,Is(gm));p|=A}return ar(s,p,l,f,x)}),U2=_e(function(s,l,f){var p=E|w;if(f.length){var x=Fr(f,Is(U2));p|=A}return ar(l,p,s,f,x)});function W2(s,l,f){l=f?n:l;var p=ar(s,O,n,n,n,n,n,l);return p.placeholder=W2.placeholder,p}function z2(s,l,f){l=f?n:l;var p=ar(s,$,n,n,n,n,n,l);return p.placeholder=z2.placeholder,p}function G2(s,l,f){var p,x,C,_,D,k,z=0,G=!1,q=!1,se=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(G=!!f.leading,q="maxWait"in f,C=q?mt(gn(f.maxWait)||0,l):C,se="trailing"in f?!!f.trailing:se);function pe(ut){var En=p,dr=x;return p=x=n,z=ut,_=s.apply(dr,En),_}function Te(ut){return z=ut,D=Zo($e,l),G?pe(ut):_}function Me(ut){var En=ut-k,dr=ut-z,uT=l-En;return q?At(uT,C-dr):uT}function Ee(ut){var En=ut-k,dr=ut-z;return k===n||En>=l||En<0||q&&dr>=C}function $e(){var ut=ic();if(Ee(ut))return Le(ut);D=Zo($e,Me(ut))}function Le(ut){return D=n,se&&p?pe(ut):(p=x=n,_)}function Qt(){D!==n&&t2(D),z=0,p=k=x=D=n}function $t(){return D===n?_:Le(ic())}function en(){var ut=ic(),En=Ee(ut);if(p=arguments,x=this,k=ut,En){if(D===n)return Te(k);if(q)return t2(D),D=Zo($e,l),pe(k)}return D===n&&(D=Zo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var mB=_e(function(s,l){return RS(s,1,l)}),pB=_e(function(s,l,f){return RS(s,gn(l)||0,f)});function gB(s){return ar(s,Y)}function sc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var p=arguments,x=l?l.apply(this,p):p[0],C=f.cache;if(C.has(x))return C.get(x);var _=s.apply(this,p);return f.cache=C.set(x,_)||C,_};return f.cache=new(sc.Cache||sr),f}sc.Cache=sr;function oc(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function yB(s){return B2(2,s)}var vB=ij(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return _e(function(p){for(var x=-1,C=At(p.length,f);++x<C;)p[x]=l[x].call(this,p[x]);return Kt(s,this,p)})}),ym=_e(function(s,l){var f=Fr(l,Is(ym));return ar(s,A,n,l,f)}),Y2=_e(function(s,l){var f=Fr(l,Is(Y2));return ar(s,R,n,l,f)}),bB=lr(function(s,l){return ar(s,F,n,n,n,l)});function xB(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),_e(s,l)}function wB(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var p=f[l],x=Wr(f,0,l);return p&&kr(x,p),Kt(s,this,x)})}function SB(s,l,f){var p=!0,x=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(p="leading"in f?!!f.leading:p,x="trailing"in f?!!f.trailing:x),G2(s,l,{leading:p,maxWait:l,trailing:x})}function TB(s){return V2(s,1)}function EB(s,l){return ym(tm(l),s)}function CB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function PB(s){return hn(s,y)}function AB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function OB(s){return hn(s,m|y)}function MB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function _B(s,l){return l==null||$S(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var IB=Jl(Wh),DB=Jl(function(s,l){return s>=l}),Ci=jS(function(){return arguments}())?jS:function(s){return ot(s)&&We.call(s,"callee")&&!CS.call(s,"callee")},Ae=V.isArray,$B=oS?Xt(oS):BF;function Bt(s){return s!=null&&ac(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function RB(s){return s===!0||s===!1||ot(s)&&It(s)==ae}var zr=q3||Om,LB=aS?Xt(aS):UF;function NB(s){return ot(s)&&s.nodeType===1&&!Jo(s)}function kB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Ds(s)||Ci(s)))return!s.length;var l=Ot(s);if(l==Ne||l==qt)return!s.size;if(Xo(s))return!Yh(s).length;for(var f in s)if(We.call(s,f))return!1;return!0}function FB(s,l){return Ho(s,l)}function jB(s,l,f){f=typeof f=="function"?f:n;var p=f?f(s,l):n;return p===n?Ho(s,l,n,f):!!p}function vm(s){if(!ot(s))return!1;var l=It(s);return l==Ue||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Jo(s)}function VB(s){return typeof s=="number"&&AS(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ne||l==ye||l==he||l==bl}function H2(s){return typeof s=="number"&&s==Oe(s)}function ac(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=U}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var q2=lS?Xt(lS):zF;function BB(s,l){return s===l||Gh(s,l,lm(l))}function UB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function WB(s){return K2(s)&&s!=+s}function zB(s){if(Aj(s))throw new Pe(o);return VS(s)}function GB(s){return s===null}function YB(s){return s==null}function K2(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Jo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Rl(s);if(l===null)return!0;var f=We.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&_l.call(f)==U3}var bm=cS?Xt(cS):GF;function HB(s){return H2(s)&&s>=-9007199254740991&&s<=U}var X2=uS?Xt(uS):YF;function lc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==gi}var Ds=fS?Xt(fS):HF;function qB(s){return s===n}function KB(s){return ot(s)&&Ot(s)==Lr}function XB(s){return ot(s)&&It(s)==wl}var ZB=Jl(Hh),JB=Jl(function(s,l){return s<=l});function Z2(s){if(!s)return[];if(Bt(s))return lc(s)?wn(s):Vt(s);if(jo&&s[jo])return _3(s[jo]());var l=Ot(s),f=l==Ne?Rh:l==qt?Al:$s;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===B||s===-1/0){var l=s<0?-1:1;return l*H}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function J2(s){return s?wi(Oe(s),0,N):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return M;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=yS(s);var f=$k.test(s);return f||Lk.test(s)?h3(s.slice(2),f?2:8):Dk.test(s)?M:+s}function Q2(s){return Un(s,Ut(s))}function QB(s){return s?wi(Oe(s),-9007199254740991,U):s===0?s:0}function Ve(s){return s==null?"":Zt(s)}var e8=Ms(function(s,l){if(Xo(l)||Bt(l)){Un(l,gt(l),s);return}for(var f in l)We.call(l,f)&&zo(s,f,l[f])}),eT=Ms(function(s,l){Un(l,Ut(l),s)}),cc=Ms(function(s,l,f,p){Un(l,Ut(l),s,p)}),t8=Ms(function(s,l,f,p){Un(l,gt(l),s,p)}),n8=lr(Vh);function r8(s,l){var f=Os(s);return l==null?f:DS(f,l)}var i8=_e(function(s,l){s=Ge(s);var f=-1,p=l.length,x=p>2?l[2]:n;for(x&&Dt(l[0],l[1],x)&&(p=1);++f<p;)for(var C=l[f],_=Ut(C),D=-1,k=_.length;++D<k;){var z=_[D],G=s[z];(G===n||Tn(G,Cs[z])&&!We.call(s,z))&&(s[z]=C[z])}return s}),s8=_e(function(s){return s.push(n,y2),Kt(tT,n,s)});function o8(s,l){return hS(s,xe(l,3),Bn)}function a8(s,l){return hS(s,xe(l,3),Uh)}function l8(s,l){return s==null?s:Bh(s,xe(l,3),Ut)}function c8(s,l){return s==null?s:kS(s,xe(l,3),Ut)}function u8(s,l){return s&&Bn(s,xe(l,3))}function f8(s,l){return s&&Uh(s,xe(l,3))}function d8(s){return s==null?[]:zl(s,gt(s))}function h8(s){return s==null?[]:zl(s,Ut(s))}function xm(s,l,f){var p=s==null?n:Si(s,l);return p===n?f:p}function m8(s,l){return s!=null&&x2(s,l,kF)}function wm(s,l){return s!=null&&x2(s,l,FF)}var p8=d2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),s[l]=f},Tm(Wt)),g8=d2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),We.call(s,l)?s[l].push(f):s[l]=[f]},xe),y8=_e(Yo);function gt(s){return Bt(s)?_S(s):Yh(s)}function Ut(s){return Bt(s)?_S(s,!0):qF(s)}function v8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,x,C){or(f,l(p,x,C),p)}),f}function b8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,x,C){or(f,x,l(p,x,C))}),f}var x8=Ms(function(s,l,f){Gl(s,l,f)}),tT=Ms(function(s,l,f,p){Gl(s,l,f,p)}),w8=lr(function(s,l){var f={};if(s==null)return f;var p=!1;l=et(l,function(C){return C=Ur(C,s),p||(p=C.length>1),C}),Un(s,om(s),f),p&&(f=hn(f,m|g|y,pj));for(var x=l.length;x--;)Jh(f,l[x]);return f});function S8(s,l){return nT(s,oc(xe(l)))}var T8=lr(function(s,l){return s==null?{}:XF(s,l)});function nT(s,l){if(s==null)return{};var f=et(om(s),function(p){return[p]});return l=xe(l),HS(s,f,function(p,x){return l(p,x[0])})}function E8(s,l,f){l=Ur(l,s);var p=-1,x=l.length;for(x||(x=1,s=n);++p<x;){var C=s==null?n:s[Wn(l[p])];C===n&&(p=x,C=f),s=ur(C)?C.call(s):C}return s}function C8(s,l,f){return s==null?s:qo(s,l,f)}function P8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:qo(s,l,f,p)}var rT=p2(gt),iT=p2(Ut);function A8(s,l,f){var p=Ae(s),x=p||zr(s)||Ds(s);if(l=xe(l,4),f==null){var C=s&&s.constructor;x?f=p?new C:[]:st(s)?f=ur(C)?Os(Rl(s)):{}:f={}}return(x?un:Bn)(s,function(_,D,k){return l(f,_,D,k)}),f}function O8(s,l){return s==null?!0:Jh(s,l)}function M8(s,l,f){return s==null?s:JS(s,l,tm(f))}function _8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:JS(s,l,tm(f),p)}function $s(s){return s==null?[]:$h(s,gt(s))}function I8(s){return s==null?[]:$h(s,Ut(s))}function D8(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),wi(gn(s),l,f)}function $8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),jF(s,l,f)}function R8(s,l,f){if(f&&typeof f!="boolean"&&Dt(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var p=s;s=l,l=p}if(f||s%1||l%1){var x=OS();return At(s+x*(l-s+d3("1e-"+((x+"").length-1))),l)}return Kh(s,l)}var L8=_s(function(s,l,f){return l=l.toLowerCase(),s+(f?sT(l):l)});function sT(s){return Sm(Ve(s).toLowerCase())}function oT(s){return s=Ve(s),s&&s.replace(kk,C3).replace(n3,"")}function N8(s,l,f){s=Ve(s),l=Zt(l);var p=s.length;f=f===n?p:wi(Oe(f),0,p);var x=f;return f-=l.length,f>=0&&s.slice(f,x)==l}function k8(s){return s=Ve(s),s&&yk.test(s)?s.replace(kw,P3):s}function F8(s){return s=Ve(s),s&&Tk.test(s)?s.replace(yh,"\\$&"):s}var j8=_s(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),V8=_s(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),B8=c2("toLowerCase");function U8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;if(!l||p>=l)return s;var x=(l-p)/2;return Zl(Fl(x),f)+s+Zl(kl(x),f)}function W8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?s+Zl(l-p,f):s}function z8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?Zl(l-p,f)+s:s}function G8(s,l,f){return f||l==null?l=0:l&&(l=+l),J3(Ve(s).replace(vh,""),l||0)}function Y8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Oe(l),Xh(Ve(s),l)}function H8(){var s=arguments,l=Ve(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var q8=_s(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function K8(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?N:f>>>0,f?(s=Ve(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Ss(s))?Wr(wn(s),0,f):s.split(l,f)):[]}var X8=_s(function(s,l,f){return s+(f?" ":"")+Sm(l)});function Z8(s,l,f){return s=Ve(s),f=f==null?0:wi(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function J8(s,l,f){var p=T.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Ve(s),l=cc({},l,p,g2);var x=cc({},l.imports,p.imports,g2),C=gt(x),_=$h(x,C),D,k,z=0,G=l.interpolate||Sl,q="__p += '",se=Lh((l.escape||Sl).source+"|"+G.source+"|"+(G===Fw?Ik:Sl).source+"|"+(l.evaluate||Sl).source+"|$","g"),pe="//# sourceURL="+(We.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++a3+"]")+`
|
|
635
|
+
`;s.replace(se,function(Ee,$e,Le,Qt,$t,en){return Le||(Le=Qt),q+=s.slice(z,en).replace(Fk,A3),$e&&(D=!0,q+=`' +
|
|
636
636
|
__e(`+$e+`) +
|
|
637
637
|
'`),$t&&(k=!0,q+=`';
|
|
638
638
|
`+$t+`;
|
|
@@ -642,13 +642,13 @@ __p += '`),Le&&(q+=`' +
|
|
|
642
642
|
`;var Te=We.call(l,"variable")&&l.variable;if(!Te)q=`with (obj) {
|
|
643
643
|
`+q+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(
|
|
645
|
+
`;else if(Mk.test(Te))throw new Pe(c);q=(k?q.replace(hk,""):q).replace(mk,"$1").replace(pk,"$1;"),q="function("+(Te||"obj")+`) {
|
|
646
646
|
`+(Te?"":`obj || (obj = {});
|
|
647
|
-
`)+"var __t, __p = ''"+(
|
|
647
|
+
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
650
|
`)+q+`return __p
|
|
651
|
-
}`;var Me=aT(function(){return ke(P,pe+"return "+q).apply(n,_)});if(Me.source=q,vm(Me))throw Me;return Me}function J8(s){return Ve(s).toLowerCase()}function Q8(s){return Ve(s).toUpperCase()}function e9(s,l,f){if(s=Ve(s),s&&(f||l===n))return gS(s);if(!s||!(l=Zt(l)))return s;var p=wn(s),b=wn(l),P=yS(p,b),_=vS(p,b)+1;return Wr(p,P,_).join("")}function t9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.slice(0,xS(s)+1);if(!s||!(l=Zt(l)))return s;var p=wn(s),b=vS(p,wn(l))+1;return Wr(p,0,b).join("")}function n9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var p=wn(s),b=yS(p,wn(l));return Wr(p,b).join("")}function r9(s,l){var f=ee,p=te;if(st(l)){var b="separator"in l?l.separator:b;f="length"in l?Oe(l.length):f,p="omission"in l?Zt(l.omission):p}s=Ve(s);var P=s.length;if(Ss(s)){var _=wn(s);P=_.length}if(f>=P)return s;var $=f-Ts(p);if($<1)return p;var k=_?Wr(_,0,$).join(""):s.slice(0,$);if(b===n)return k+p;if(_&&($+=k.length-$),bm(b)){if(s.slice($).search(b)){var z,G=k;for(b.global||(b=Lh(b.source,Ve(Fw.exec(b))+"g")),b.lastIndex=0;z=b.exec(G);)var q=z.index;k=k.slice(0,q===n?$:q)}}else if(s.indexOf(Zt(b),$)!=$){var se=k.lastIndexOf(b);se>-1&&(k=k.slice(0,se))}return k+p}function i9(s){return s=Ve(s),s&&pk.test(s)?s.replace(Lw,$3):s}var s9=_s(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=l2("toUpperCase");function oT(s,l,f){return s=Ve(s),l=f?n:l,l===n?O3(s)?N3(s):b3(s):s.match(l)||[]}var aT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),o9=lr(function(s,l){return un(l,function(f){f=Wn(f),or(s,f,gm(s[f],s))}),s});function a9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(p){if(typeof p[1]!="function")throw new fn(a);return[f(p[0]),p[1]]}):[],_e(function(p){for(var b=-1;++b<l;){var P=s[b];if(Kt(P[0],this,p))return Kt(P[1],this,p)}})}function l9(s){return $F(hn(s,m))}function Tm(s){return function(){return s}}function c9(s,l){return s==null||s!==s?l:s}var u9=u2(),f9=u2(!0);function Wt(s){return s}function Em(s){return VS(typeof s=="function"?s:hn(s,m))}function d9(s){return US(hn(s,m))}function h9(s,l){return WS(s,hn(l,m))}var m9=_e(function(s,l){return function(f){return Yo(f,s,l)}}),p9=_e(function(s,l){return function(f){return Yo(s,f,l)}});function Cm(s,l,f){var p=gt(l),b=zl(l,p);f==null&&!(st(l)&&(b.length||!p.length))&&(f=l,l=s,s=this,b=zl(l,gt(l)));var P=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(b,function($){var k=l[$];s[$]=k,_&&(s.prototype[$]=function(){var z=this.__chain__;if(P||z){var G=s(this.__wrapped__),q=G.__actions__=Vt(this.__actions__);return q.push({func:k,args:arguments,thisArg:s}),G.__chain__=z,G}return k.apply(s,kr([this.value()],arguments))})}),s}function g9(){return bt._===this&&(bt._=U3),this}function Pm(){}function y9(s){return s=Oe(s),_e(function(l){return zS(l,s)})}var v9=rm(et),b9=rm(fS),x9=rm(Oh);function lT(s){return um(s)?Mh(Wn(s)):XF(s)}function w9(s){return function(l){return s==null?n:Si(s,l)}}var S9=d2(),T9=d2(!0);function Am(){return[]}function Om(){return!1}function E9(){return{}}function C9(){return""}function P9(){return!0}function A9(s,l){if(s=Oe(s),s<1||s>U)return[];var f=N,p=At(s,N);l=xe(l),s-=N;for(var b=Dh(p,l);++f<s;)l(f);return b}function O9(s){return Ae(s)?et(s,Wn):Jt(s)?[s]:Vt(O2(Ve(s)))}function M9(s){var l=++V3;return Ve(s)+l}var _9=Xl(function(s,l){return s+l},0),I9=im("ceil"),D9=Xl(function(s,l){return s/l},1),$9=im("floor");function R9(s){return s&&s.length?Wl(s,Wt,Wh):n}function L9(s,l){return s&&s.length?Wl(s,xe(l,2),Wh):n}function N9(s){return mS(s,Wt)}function k9(s,l){return mS(s,xe(l,2))}function F9(s){return s&&s.length?Wl(s,Wt,Hh):n}function j9(s,l){return s&&s.length?Wl(s,xe(l,2),Hh):n}var V9=Xl(function(s,l){return s*l},1),B9=im("round"),U9=Xl(function(s,l){return s-l},0);function W9(s){return s&&s.length?Ih(s,Wt):0}function z9(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return T.after=dB,T.ary=j2,T.assign=QB,T.assignIn=Q2,T.assignInWith=cc,T.assignWith=e8,T.at=t8,T.before=V2,T.bind=gm,T.bindAll=o9,T.bindKey=B2,T.castArray=EB,T.chain=N2,T.chunk=$j,T.compact=Rj,T.concat=Lj,T.cond=a9,T.conforms=l9,T.constant=Tm,T.countBy=WV,T.create=n8,T.curry=U2,T.curryRight=W2,T.debounce=z2,T.defaults=r8,T.defaultsDeep=i8,T.defer=hB,T.delay=mB,T.difference=Nj,T.differenceBy=kj,T.differenceWith=Fj,T.drop=jj,T.dropRight=Vj,T.dropRightWhile=Bj,T.dropWhile=Uj,T.fill=Wj,T.filter=GV,T.flatMap=qV,T.flatMapDeep=KV,T.flatMapDepth=XV,T.flatten=D2,T.flattenDeep=zj,T.flattenDepth=Gj,T.flip=pB,T.flow=u9,T.flowRight=f9,T.fromPairs=Yj,T.functions=f8,T.functionsIn=d8,T.groupBy=ZV,T.initial=qj,T.intersection=Kj,T.intersectionBy=Xj,T.intersectionWith=Zj,T.invert=m8,T.invertBy=p8,T.invokeMap=QV,T.iteratee=Em,T.keyBy=eB,T.keys=gt,T.keysIn=Ut,T.map=rc,T.mapKeys=y8,T.mapValues=v8,T.matches=d9,T.matchesProperty=h9,T.memoize=sc,T.merge=b8,T.mergeWith=eT,T.method=m9,T.methodOf=p9,T.mixin=Cm,T.negate=oc,T.nthArg=y9,T.omit=x8,T.omitBy=w8,T.once=gB,T.orderBy=tB,T.over=v9,T.overArgs=yB,T.overEvery=b9,T.overSome=x9,T.partial=ym,T.partialRight=G2,T.partition=nB,T.pick=S8,T.pickBy=tT,T.property=lT,T.propertyOf=w9,T.pull=tV,T.pullAll=R2,T.pullAllBy=nV,T.pullAllWith=rV,T.pullAt=iV,T.range=S9,T.rangeRight=T9,T.rearg=vB,T.reject=sB,T.remove=sV,T.rest=bB,T.reverse=mm,T.sampleSize=aB,T.set=E8,T.setWith=C8,T.shuffle=lB,T.slice=oV,T.sortBy=fB,T.sortedUniq=hV,T.sortedUniqBy=mV,T.split=q8,T.spread=xB,T.tail=pV,T.take=gV,T.takeRight=yV,T.takeRightWhile=vV,T.takeWhile=bV,T.tap=RV,T.throttle=wB,T.thru=nc,T.toArray=X2,T.toPairs=nT,T.toPairsIn=rT,T.toPath=O9,T.toPlainObject=J2,T.transform=P8,T.unary=SB,T.union=xV,T.unionBy=wV,T.unionWith=SV,T.uniq=TV,T.uniqBy=EV,T.uniqWith=CV,T.unset=A8,T.unzip=pm,T.unzipWith=L2,T.update=O8,T.updateWith=M8,T.values=$s,T.valuesIn=_8,T.without=PV,T.words=oT,T.wrap=TB,T.xor=AV,T.xorBy=OV,T.xorWith=MV,T.zip=_V,T.zipObject=IV,T.zipObjectDeep=DV,T.zipWith=$V,T.entries=nT,T.entriesIn=rT,T.extend=Q2,T.extendWith=cc,Cm(T,T),T.add=_9,T.attempt=aT,T.camelCase=R8,T.capitalize=iT,T.ceil=I9,T.clamp=I8,T.clone=CB,T.cloneDeep=AB,T.cloneDeepWith=OB,T.cloneWith=PB,T.conformsTo=MB,T.deburr=sT,T.defaultTo=c9,T.divide=D9,T.endsWith=L8,T.eq=Tn,T.escape=N8,T.escapeRegExp=k8,T.every=zV,T.find=YV,T.findIndex=_2,T.findKey=s8,T.findLast=HV,T.findLastIndex=I2,T.findLastKey=o8,T.floor=$9,T.forEach=k2,T.forEachRight=F2,T.forIn=a8,T.forInRight=l8,T.forOwn=c8,T.forOwnRight=u8,T.get=xm,T.gt=_B,T.gte=IB,T.has=h8,T.hasIn=wm,T.head=$2,T.identity=Wt,T.includes=JV,T.indexOf=Hj,T.inRange=D8,T.invoke=g8,T.isArguments=Ci,T.isArray=Ae,T.isArrayBuffer=DB,T.isArrayLike=Bt,T.isArrayLikeObject=ct,T.isBoolean=$B,T.isBuffer=zr,T.isDate=RB,T.isElement=LB,T.isEmpty=NB,T.isEqual=kB,T.isEqualWith=FB,T.isError=vm,T.isFinite=jB,T.isFunction=ur,T.isInteger=Y2,T.isLength=ac,T.isMap=H2,T.isMatch=VB,T.isMatchWith=BB,T.isNaN=UB,T.isNative=WB,T.isNil=GB,T.isNull=zB,T.isNumber=q2,T.isObject=st,T.isObjectLike=ot,T.isPlainObject=Jo,T.isRegExp=bm,T.isSafeInteger=YB,T.isSet=K2,T.isString=lc,T.isSymbol=Jt,T.isTypedArray=Ds,T.isUndefined=HB,T.isWeakMap=qB,T.isWeakSet=KB,T.join=Jj,T.kebabCase=F8,T.last=pn,T.lastIndexOf=Qj,T.lowerCase=j8,T.lowerFirst=V8,T.lt=XB,T.lte=ZB,T.max=R9,T.maxBy=L9,T.mean=N9,T.meanBy=k9,T.min=F9,T.minBy=j9,T.stubArray=Am,T.stubFalse=Om,T.stubObject=E9,T.stubString=C9,T.stubTrue=P9,T.multiply=V9,T.nth=eV,T.noConflict=g9,T.noop=Pm,T.now=ic,T.pad=B8,T.padEnd=U8,T.padStart=W8,T.parseInt=z8,T.random=$8,T.reduce=rB,T.reduceRight=iB,T.repeat=G8,T.replace=Y8,T.result=T8,T.round=B9,T.runInContext=R,T.sample=oB,T.size=cB,T.snakeCase=H8,T.some=uB,T.sortedIndex=aV,T.sortedIndexBy=lV,T.sortedIndexOf=cV,T.sortedLastIndex=uV,T.sortedLastIndexBy=fV,T.sortedLastIndexOf=dV,T.startCase=K8,T.startsWith=X8,T.subtract=U9,T.sum=W9,T.sumBy=z9,T.template=Z8,T.times=A9,T.toFinite=fr,T.toInteger=Oe,T.toLength=Z2,T.toLower=J8,T.toNumber=gn,T.toSafeInteger=JB,T.toString=Ve,T.toUpper=Q8,T.trim=e9,T.trimEnd=t9,T.trimStart=n9,T.truncate=r9,T.unescape=i9,T.uniqueId=M9,T.upperCase=s9,T.upperFirst=Sm,T.each=k2,T.eachRight=F2,T.first=$2,Cm(T,function(){var s={};return Bn(T,function(l,f){We.call(T.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),T.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var p=this.__filtered__&&!l?new Re(this):this.clone();return p.__filtered__?p.__takeCount__=At(f,p.__takeCount__):p.__views__.push({size:At(f,N),type:s+(p.__dir__<0?"Right":"")}),p},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,p=f==le||f==ie;Re.prototype[s]=function(b){var P=this.clone();return P.__iteratees__.push({iteratee:xe(b,3),type:f}),P.__filtered__=P.__filtered__||p,P}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Wt)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Yo(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(oc(xe(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(N)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),b=T[p?"take"+(l=="last"?"Right":""):l],P=p||/^find/.test(l);b&&(T.prototype[l]=function(){var _=this.__wrapped__,$=p?[1]:arguments,k=_ instanceof Re,z=$[0],G=k||Ae(_),q=function($e){var Le=b.apply(T,kr([$e],$));return p&&se?Le[0]:Le};G&&f&&typeof z=="function"&&z.length!=1&&(k=G=!1);var se=this.__chain__,pe=!!this.__actions__.length,Te=P&&!se,Me=k&&!pe;if(!P&&G){_=Me?_:new Re(this);var Ee=s.apply(_,$);return Ee.__actions__.push({func:nc,args:[q],thisArg:n}),new dn(Ee,se)}return Te&&Me?s.apply(this,$):(Ee=this.thru(q),Te?p?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var b=arguments;if(p&&!this.__chain__){var P=this.value();return l.apply(Ae(P)?P:[],b)}return this[f](function(_){return l.apply(Ae(_)?_:[],b)})}}),Bn(Re.prototype,function(s,l){var f=T[l];if(f){var p=f.name+"";We.call(As,p)||(As[p]=[]),As[p].push({name:l,func:f})}}),As[Kl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=iF,Re.prototype.reverse=sF,Re.prototype.value=oF,T.prototype.at=LV,T.prototype.chain=NV,T.prototype.commit=kV,T.prototype.next=FV,T.prototype.plant=VV,T.prototype.reverse=BV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=UV,T.prototype.first=T.prototype.head,jo&&(T.prototype[jo]=jV),T},Es=k3();yi?((yi.exports=Es)._=Es,Eh._=Es):bt._=Es}).call(lD)}(co,co.exports)),co.exports}var gf=cD();const yf=I.createContext({});function vf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const bf=typeof window<"u",Ev=bf?I.useLayoutEffect:I.useEffect,Na=I.createContext(null),xf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class uD extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function fD({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(xf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
651
|
+
}`;var Me=lT(function(){return ke(C,pe+"return "+q).apply(n,_)});if(Me.source=q,vm(Me))throw Me;return Me}function Q8(s){return Ve(s).toLowerCase()}function e9(s){return Ve(s).toUpperCase()}function t9(s,l,f){if(s=Ve(s),s&&(f||l===n))return yS(s);if(!s||!(l=Zt(l)))return s;var p=wn(s),x=wn(l),C=vS(p,x),_=bS(p,x)+1;return Wr(p,C,_).join("")}function n9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.slice(0,wS(s)+1);if(!s||!(l=Zt(l)))return s;var p=wn(s),x=bS(p,wn(l))+1;return Wr(p,0,x).join("")}function r9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var p=wn(s),x=vS(p,wn(l));return Wr(p,x).join("")}function i9(s,l){var f=Q,p=te;if(st(l)){var x="separator"in l?l.separator:x;f="length"in l?Oe(l.length):f,p="omission"in l?Zt(l.omission):p}s=Ve(s);var C=s.length;if(Ss(s)){var _=wn(s);C=_.length}if(f>=C)return s;var D=f-Ts(p);if(D<1)return p;var k=_?Wr(_,0,D).join(""):s.slice(0,D);if(x===n)return k+p;if(_&&(D+=k.length-D),bm(x)){if(s.slice(D).search(x)){var z,G=k;for(x.global||(x=Lh(x.source,Ve(jw.exec(x))+"g")),x.lastIndex=0;z=x.exec(G);)var q=z.index;k=k.slice(0,q===n?D:q)}}else if(s.indexOf(Zt(x),D)!=D){var se=k.lastIndexOf(x);se>-1&&(k=k.slice(0,se))}return k+p}function s9(s){return s=Ve(s),s&&gk.test(s)?s.replace(Nw,R3):s}var o9=_s(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=c2("toUpperCase");function aT(s,l,f){return s=Ve(s),l=f?n:l,l===n?M3(s)?k3(s):x3(s):s.match(l)||[]}var lT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),a9=lr(function(s,l){return un(l,function(f){f=Wn(f),or(s,f,gm(s[f],s))}),s});function l9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(p){if(typeof p[1]!="function")throw new fn(a);return[f(p[0]),p[1]]}):[],_e(function(p){for(var x=-1;++x<l;){var C=s[x];if(Kt(C[0],this,p))return Kt(C[1],this,p)}})}function c9(s){return RF(hn(s,m))}function Tm(s){return function(){return s}}function u9(s,l){return s==null||s!==s?l:s}var f9=f2(),d9=f2(!0);function Wt(s){return s}function Em(s){return BS(typeof s=="function"?s:hn(s,m))}function h9(s){return WS(hn(s,m))}function m9(s,l){return zS(s,hn(l,m))}var p9=_e(function(s,l){return function(f){return Yo(f,s,l)}}),g9=_e(function(s,l){return function(f){return Yo(s,f,l)}});function Cm(s,l,f){var p=gt(l),x=zl(l,p);f==null&&!(st(l)&&(x.length||!p.length))&&(f=l,l=s,s=this,x=zl(l,gt(l)));var C=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(x,function(D){var k=l[D];s[D]=k,_&&(s.prototype[D]=function(){var z=this.__chain__;if(C||z){var G=s(this.__wrapped__),q=G.__actions__=Vt(this.__actions__);return q.push({func:k,args:arguments,thisArg:s}),G.__chain__=z,G}return k.apply(s,kr([this.value()],arguments))})}),s}function y9(){return bt._===this&&(bt._=W3),this}function Pm(){}function v9(s){return s=Oe(s),_e(function(l){return GS(l,s)})}var b9=rm(et),x9=rm(dS),w9=rm(Oh);function cT(s){return um(s)?Mh(Wn(s)):ZF(s)}function S9(s){return function(l){return s==null?n:Si(s,l)}}var T9=h2(),E9=h2(!0);function Am(){return[]}function Om(){return!1}function C9(){return{}}function P9(){return""}function A9(){return!0}function O9(s,l){if(s=Oe(s),s<1||s>U)return[];var f=N,p=At(s,N);l=xe(l),s-=N;for(var x=Dh(p,l);++f<s;)l(f);return x}function M9(s){return Ae(s)?et(s,Wn):Jt(s)?[s]:Vt(M2(Ve(s)))}function _9(s){var l=++B3;return Ve(s)+l}var I9=Xl(function(s,l){return s+l},0),D9=im("ceil"),$9=Xl(function(s,l){return s/l},1),R9=im("floor");function L9(s){return s&&s.length?Wl(s,Wt,Wh):n}function N9(s,l){return s&&s.length?Wl(s,xe(l,2),Wh):n}function k9(s){return pS(s,Wt)}function F9(s,l){return pS(s,xe(l,2))}function j9(s){return s&&s.length?Wl(s,Wt,Hh):n}function V9(s,l){return s&&s.length?Wl(s,xe(l,2),Hh):n}var B9=Xl(function(s,l){return s*l},1),U9=im("round"),W9=Xl(function(s,l){return s-l},0);function z9(s){return s&&s.length?Ih(s,Wt):0}function G9(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return T.after=hB,T.ary=V2,T.assign=e8,T.assignIn=eT,T.assignInWith=cc,T.assignWith=t8,T.at=n8,T.before=B2,T.bind=gm,T.bindAll=a9,T.bindKey=U2,T.castArray=CB,T.chain=k2,T.chunk=Rj,T.compact=Lj,T.concat=Nj,T.cond=l9,T.conforms=c9,T.constant=Tm,T.countBy=zV,T.create=r8,T.curry=W2,T.curryRight=z2,T.debounce=G2,T.defaults=i8,T.defaultsDeep=s8,T.defer=mB,T.delay=pB,T.difference=kj,T.differenceBy=Fj,T.differenceWith=jj,T.drop=Vj,T.dropRight=Bj,T.dropRightWhile=Uj,T.dropWhile=Wj,T.fill=zj,T.filter=YV,T.flatMap=KV,T.flatMapDeep=XV,T.flatMapDepth=ZV,T.flatten=$2,T.flattenDeep=Gj,T.flattenDepth=Yj,T.flip=gB,T.flow=f9,T.flowRight=d9,T.fromPairs=Hj,T.functions=d8,T.functionsIn=h8,T.groupBy=JV,T.initial=Kj,T.intersection=Xj,T.intersectionBy=Zj,T.intersectionWith=Jj,T.invert=p8,T.invertBy=g8,T.invokeMap=eB,T.iteratee=Em,T.keyBy=tB,T.keys=gt,T.keysIn=Ut,T.map=rc,T.mapKeys=v8,T.mapValues=b8,T.matches=h9,T.matchesProperty=m9,T.memoize=sc,T.merge=x8,T.mergeWith=tT,T.method=p9,T.methodOf=g9,T.mixin=Cm,T.negate=oc,T.nthArg=v9,T.omit=w8,T.omitBy=S8,T.once=yB,T.orderBy=nB,T.over=b9,T.overArgs=vB,T.overEvery=x9,T.overSome=w9,T.partial=ym,T.partialRight=Y2,T.partition=rB,T.pick=T8,T.pickBy=nT,T.property=cT,T.propertyOf=S9,T.pull=nV,T.pullAll=L2,T.pullAllBy=rV,T.pullAllWith=iV,T.pullAt=sV,T.range=T9,T.rangeRight=E9,T.rearg=bB,T.reject=oB,T.remove=oV,T.rest=xB,T.reverse=mm,T.sampleSize=lB,T.set=C8,T.setWith=P8,T.shuffle=cB,T.slice=aV,T.sortBy=dB,T.sortedUniq=mV,T.sortedUniqBy=pV,T.split=K8,T.spread=wB,T.tail=gV,T.take=yV,T.takeRight=vV,T.takeRightWhile=bV,T.takeWhile=xV,T.tap=LV,T.throttle=SB,T.thru=nc,T.toArray=Z2,T.toPairs=rT,T.toPairsIn=iT,T.toPath=M9,T.toPlainObject=Q2,T.transform=A8,T.unary=TB,T.union=wV,T.unionBy=SV,T.unionWith=TV,T.uniq=EV,T.uniqBy=CV,T.uniqWith=PV,T.unset=O8,T.unzip=pm,T.unzipWith=N2,T.update=M8,T.updateWith=_8,T.values=$s,T.valuesIn=I8,T.without=AV,T.words=aT,T.wrap=EB,T.xor=OV,T.xorBy=MV,T.xorWith=_V,T.zip=IV,T.zipObject=DV,T.zipObjectDeep=$V,T.zipWith=RV,T.entries=rT,T.entriesIn=iT,T.extend=eT,T.extendWith=cc,Cm(T,T),T.add=I9,T.attempt=lT,T.camelCase=L8,T.capitalize=sT,T.ceil=D9,T.clamp=D8,T.clone=PB,T.cloneDeep=OB,T.cloneDeepWith=MB,T.cloneWith=AB,T.conformsTo=_B,T.deburr=oT,T.defaultTo=u9,T.divide=$9,T.endsWith=N8,T.eq=Tn,T.escape=k8,T.escapeRegExp=F8,T.every=GV,T.find=HV,T.findIndex=I2,T.findKey=o8,T.findLast=qV,T.findLastIndex=D2,T.findLastKey=a8,T.floor=R9,T.forEach=F2,T.forEachRight=j2,T.forIn=l8,T.forInRight=c8,T.forOwn=u8,T.forOwnRight=f8,T.get=xm,T.gt=IB,T.gte=DB,T.has=m8,T.hasIn=wm,T.head=R2,T.identity=Wt,T.includes=QV,T.indexOf=qj,T.inRange=$8,T.invoke=y8,T.isArguments=Ci,T.isArray=Ae,T.isArrayBuffer=$B,T.isArrayLike=Bt,T.isArrayLikeObject=ct,T.isBoolean=RB,T.isBuffer=zr,T.isDate=LB,T.isElement=NB,T.isEmpty=kB,T.isEqual=FB,T.isEqualWith=jB,T.isError=vm,T.isFinite=VB,T.isFunction=ur,T.isInteger=H2,T.isLength=ac,T.isMap=q2,T.isMatch=BB,T.isMatchWith=UB,T.isNaN=WB,T.isNative=zB,T.isNil=YB,T.isNull=GB,T.isNumber=K2,T.isObject=st,T.isObjectLike=ot,T.isPlainObject=Jo,T.isRegExp=bm,T.isSafeInteger=HB,T.isSet=X2,T.isString=lc,T.isSymbol=Jt,T.isTypedArray=Ds,T.isUndefined=qB,T.isWeakMap=KB,T.isWeakSet=XB,T.join=Qj,T.kebabCase=j8,T.last=pn,T.lastIndexOf=eV,T.lowerCase=V8,T.lowerFirst=B8,T.lt=ZB,T.lte=JB,T.max=L9,T.maxBy=N9,T.mean=k9,T.meanBy=F9,T.min=j9,T.minBy=V9,T.stubArray=Am,T.stubFalse=Om,T.stubObject=C9,T.stubString=P9,T.stubTrue=A9,T.multiply=B9,T.nth=tV,T.noConflict=y9,T.noop=Pm,T.now=ic,T.pad=U8,T.padEnd=W8,T.padStart=z8,T.parseInt=G8,T.random=R8,T.reduce=iB,T.reduceRight=sB,T.repeat=Y8,T.replace=H8,T.result=E8,T.round=U9,T.runInContext=L,T.sample=aB,T.size=uB,T.snakeCase=q8,T.some=fB,T.sortedIndex=lV,T.sortedIndexBy=cV,T.sortedIndexOf=uV,T.sortedLastIndex=fV,T.sortedLastIndexBy=dV,T.sortedLastIndexOf=hV,T.startCase=X8,T.startsWith=Z8,T.subtract=W9,T.sum=z9,T.sumBy=G9,T.template=J8,T.times=O9,T.toFinite=fr,T.toInteger=Oe,T.toLength=J2,T.toLower=Q8,T.toNumber=gn,T.toSafeInteger=QB,T.toString=Ve,T.toUpper=e9,T.trim=t9,T.trimEnd=n9,T.trimStart=r9,T.truncate=i9,T.unescape=s9,T.uniqueId=_9,T.upperCase=o9,T.upperFirst=Sm,T.each=F2,T.eachRight=j2,T.first=R2,Cm(T,function(){var s={};return Bn(T,function(l,f){We.call(T.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),T.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var p=this.__filtered__&&!l?new Re(this):this.clone();return p.__filtered__?p.__takeCount__=At(f,p.__takeCount__):p.__views__.push({size:At(f,N),type:s+(p.__dir__<0?"Right":"")}),p},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,p=f==le||f==ie;Re.prototype[s]=function(x){var C=this.clone();return C.__iteratees__.push({iteratee:xe(x,3),type:f}),C.__filtered__=C.__filtered__||p,C}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Wt)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Yo(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(oc(xe(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(N)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),x=T[p?"take"+(l=="last"?"Right":""):l],C=p||/^find/.test(l);x&&(T.prototype[l]=function(){var _=this.__wrapped__,D=p?[1]:arguments,k=_ instanceof Re,z=D[0],G=k||Ae(_),q=function($e){var Le=x.apply(T,kr([$e],D));return p&&se?Le[0]:Le};G&&f&&typeof z=="function"&&z.length!=1&&(k=G=!1);var se=this.__chain__,pe=!!this.__actions__.length,Te=C&&!se,Me=k&&!pe;if(!C&&G){_=Me?_:new Re(this);var Ee=s.apply(_,D);return Ee.__actions__.push({func:nc,args:[q],thisArg:n}),new dn(Ee,se)}return Te&&Me?s.apply(this,D):(Ee=this.thru(q),Te?p?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var x=arguments;if(p&&!this.__chain__){var C=this.value();return l.apply(Ae(C)?C:[],x)}return this[f](function(_){return l.apply(Ae(_)?_:[],x)})}}),Bn(Re.prototype,function(s,l){var f=T[l];if(f){var p=f.name+"";We.call(As,p)||(As[p]=[]),As[p].push({name:l,func:f})}}),As[Kl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=sF,Re.prototype.reverse=oF,Re.prototype.value=aF,T.prototype.at=NV,T.prototype.chain=kV,T.prototype.commit=FV,T.prototype.next=jV,T.prototype.plant=BV,T.prototype.reverse=UV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=WV,T.prototype.first=T.prototype.head,jo&&(T.prototype[jo]=VV),T},Es=F3();yi?((yi.exports=Es)._=Es,Eh._=Es):bt._=Es}).call(cD)}(co,co.exports)),co.exports}var gf=uD();const yf=I.createContext({});function vf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const bf=typeof window<"u",Ev=bf?I.useLayoutEffect:I.useEffect,Na=I.createContext(null),xf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class fD extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function dD({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(xf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
652
652
|
[data-motion-pop-id="${r}"] {
|
|
653
653
|
position: absolute !important;
|
|
654
654
|
width: ${c}px !important;
|
|
@@ -656,19 +656,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
656
656
|
${g}px !important;
|
|
657
657
|
top: ${d}px !important;
|
|
658
658
|
}
|
|
659
|
-
`),()=>{document.head.removeChild(y)}},[t]),x.jsx(uD,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const dD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=vf(hD),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=x.jsx(fD,{isPresent:n,anchorX:c,children:e})),x.jsx(Na.Provider,{value:m,children:e})};function hD(){return new Map}function Cv(e=!0){const t=I.useContext(Na);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ka=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=I.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ka),g=I.useRef(!0),y=I.useRef(h),S=vf(()=>new Map),[v,E]=I.useState(h),[w,A]=I.useState(h);Ev(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ka(w[C]);m.includes(L)?S.delete(L):S.get(L)!==!0&&S.set(L,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let C=[...h];for(let L=0;L<w.length;L++){const j=w[L],F=ka(j);m.includes(F)||(C.splice(L,0,j),O.push(j))}return o==="wait"&&O.length&&(C=O),A(Pv(C)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=I.useContext(yf);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ka(C),j=a&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(D==null||D(),A(y.current),a&&(d==null||d()),r&&r())};return x.jsx(dD,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},L)})})},Lt=e=>e;let Yi=Lt,Er=Lt;process.env.NODE_ENV!=="production"&&(Yi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const mD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function pD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const gD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,A)=>(w[A]=pD(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,gD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,A)=>{const O=a[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<Fa.length;A++)a[Fa[A]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:wf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0),Mv=I.createContext({strict:!1}),_v={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"]},Hi={};for(const e in _v)Hi[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function yD(e){for(const t in e)Hi[t]={...Hi[t],...e[t]}}const vD=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 ja(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vD.has(e)}let Iv=e=>!ja(e);function bD(e){e&&(Iv=t=>t.startsWith("on")?!ja(t):e(t))}try{bD(require("@emotion/is-prop-valid").default)}catch{}function xD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&ja(i)||!t&&!ja(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Va(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function wD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ba=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function uo(e){return typeof e=="string"||Array.isArray(e)}const Sf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tf=["initial",...Sf];function Wa(e){return Ua(e.animate)||Tf.some(t=>uo(e[t]))}function $v(e){return!!(Wa(e)||e.variants)}function SD(e,t){if(Wa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uo(n)?n:void 0,animate:uo(r)?r:void 0}}return e.inherit!==!1?t:{}}function TD(e){const{initial:t,animate:n}=SD(e,I.useContext(Ba));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const ED=Symbol.for("motionComponentSymbol");function qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CD(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qi(n)&&(n.current=r))},[t])}const{schedule:Ef}=Ov(queueMicrotask,!1),Cf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lv="data-"+Cf("framerAppearId"),Nv=I.createContext({});function PD(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ba),u=I.useContext(Mv),d=I.useContext(Na),h=I.useContext(xf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Nv);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&AD(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[Lv],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return Ev(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Ef.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function AD(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&qi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function OD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&yD(e);function c(d,h){let m;const g={...I.useContext(xf),...d,layoutId:MD(d)},{isStatic:y}=g,S=TD(d),v=r(d,y);if(!y&&bf){_D(g,e);const E=ID(g);m=E.MeasureLayout,S.visualElement=PD(i,v,g,t,E.ProjectionNode)}return x.jsxs(Ba.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,CD(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[ED]=i,u}function MD({layoutId:e}){const t=I.useContext(yf).id;return t&&e!==void 0?t+"-"+e:e}function _D(e,t){const n=I.useContext(Mv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yi(!1,r):Er(!1,r)}}function ID(e){const{drag:t,layout:n}=Hi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Fv=e=>t=>typeof t=="string"&&t.startsWith(e),Pf=Fv("--"),DD=Fv("var(--"),Af=e=>DD(e)?$D.test(e.split("/*")[0].trim()):!1,$D=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fo={};function RD(e){for(const t in e)fo[t]=e[t],Pf(t)&&(fo[t].isCSSVariable=!0)}const Ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Ki);function jv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Xi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ho={...Xi,transform:e=>Xn(0,1,e)},za={...Xi,default:1},mo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=mo("deg"),Rn=mo("%"),Se=mo("px"),LD=mo("vh"),ND=mo("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},kD={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},FD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:za,scaleX:za,scaleY:za,scaleZ:za,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:ho,originX:Bv,originY:Bv,originZ:Se},Uv={...Xi,transform:Math.round},Of={...kD,...FD,zIndex:Uv,size:Se,fillOpacity:ho,strokeOpacity:ho,numOctaves:Uv},jD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VD=Ki.length;function BD(e,t,n){let r="",i=!0;for(let o=0;o<VD;o++){const a=Ki[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Of[a]);if(!u){i=!1;const h=jD[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Mf(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Pf(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=BD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const _f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wv(e,t,n){for(const r in t)!Et(t[r])&&!jv(r,n)&&(e[r]=t[r])}function UD({transformTemplate:e},t){return I.useMemo(()=>{const n=_f();return Mf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WD(e,t){const n=e.style||{},r={};return Wv(r,n,e),Object.assign(r,UD(e,t)),r}function zD(e,t){const n={},r=WD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const GD=["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 If(e){return typeof e!="string"||e.includes("-")?!1:!!(GD.indexOf(e)>-1||/[A-Z]/u.test(e))}const YD={offset:"stroke-dashoffset",array:"stroke-dasharray"},HD={offset:"strokeDashoffset",array:"strokeDasharray"};function qD(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?YD:HD;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function KD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Mf(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=KD(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&qD(g,a,c,u,!1)}const Gv=()=>({..._f(),attrs:{}}),$f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XD(e,t,n,r){const i=I.useMemo(()=>{const o=Gv();return Df(o,t,$f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wv(o,e.style,e),i.style={...o,...i.style}}return i}function ZD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(If(n)?XD:zD)(r,o,a,n),d=xD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),JD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QD=e=>Lf(e)?e[e.length-1]||0:e;function Ga(e){const t=Et(e)?e.get():e;return JD(t)?t.toValue():t}function e$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:t$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=I.useContext(Ba),i=I.useContext(Na),o=()=>e$(e,t,r,i);return n?o():vf(o)};function t$(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Ga(o[g]);let{initial:a,animate:c}=e;const u=Wa(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Rf(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const A in w){let O=w[A];if(Array.isArray(O)){const D=h?O.length-1:0;O=O[D]}O!==null&&(i[A]=O)}for(const A in v)i[A]=v[A]}}}return i}function Nf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||jv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const n$={useVisualState:Hv({scrapeMotionValuesFromProps:Nf,createRenderState:_f})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Cf(i),t.attrs[i])}function Jv(e,t,n){const r=Nf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=Ki.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],r$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,$f(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function i$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...If(r)?r$:n$,preloadedFeatures:e,useRender:ZD(i),createVisualElement:t,Component:r};return OD(a)}}function po(e,t,n){const r=e.getProps();return Rf(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...Ki]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function jf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>jf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ya;function s$(){Ya=void 0}const Ln={now:()=>(Ya===void 0&&Ln.set(vt.isProcessing||mD.useManualTiming?vt.timestamp:performance.now()),Ya),set:e=>{Ya=e,queueMicrotask(s$)}},nb=30,o$=e=>!isNaN(parseFloat(e));class a${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=o$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 go(e,t){return new a$(e,t)}function l$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,go(n))}function c$(e,t){const n=po(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=QD(o[a]);l$(e,a,c)}}function u$(e){return!!(Et(e)&&e.add)}function Bf(e,t){const n=e.getValue("willChange");if(u$(n))return n.add(t)}function rb(e){return e.props[Lv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const f$=Uf(()=>window.ScrollTimeline!==void 0);class d${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(f$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class h$ extends d${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Wf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const zf=e=>Array.isArray(e)&&typeof e[0]=="number",m$={linearEasing:void 0};function p$(e,t){const n=Uf(e);return()=>{var r;return(r=m$[t])!==null&&r!==void 0?r:n()}}const Ha=p$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Zi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&Ha()||!e||typeof e=="string"&&(e in Gf||Ha())||zf(e)||Array.isArray(e)&&e.every(ob))}const yo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yo([0,.65,.55,1]),circOut:yo([.55,0,1,.45]),backIn:yo([.31,.01,.66,-.59]),backOut:yo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&Ha()?sb(e,t):zf(e)?yo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Gf.easeOut):Gf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,g$=1e-7,y$=12;function v$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>g$&&++c<y$);return a}function vo(e,t,n,r){if(e===t&&n===r)return Lt;const i=o=>v$(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=vo(.33,1.53,.69,.99),Yf=ub(fb),db=cb(Yf),hb=e=>(e*=2)<1?.5*Yf(e):.5*(2-Math.pow(2,-10*(e-1))),Hf=e=>1-Math.sin(Math.acos(e)),mb=ub(Hf),pb=cb(Hf),gb=e=>/^0[^.\s]+$/u.test(e);function b$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const bo=e=>Math.round(e*1e5)/1e5,qf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function x$(e){return e==null}const w$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kf=(e,t)=>n=>!!(typeof n=="string"&&w$.test(n)&&n.startsWith(e)||t&&!x$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(qf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},S$=e=>Xn(0,255,e),Xf={...Xi,transform:e=>Math.round(S$(e))},ni={test:Kf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xf.transform(e)+", "+Xf.transform(t)+", "+Xf.transform(n)+", "+bo(ho.transform(r))+")"};function T$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Zf={test:Kf("#"),parse:T$,transform:ni.transform},Ji={test:Kf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(bo(t))+", "+Rn.transform(bo(n))+", "+bo(ho.transform(r))+")"},Ct={test:e=>ni.test(e)||Zf.test(e)||Ji.test(e),parse:e=>ni.test(e)?ni.parse(e):Ji.test(e)?Ji.parse(e):Zf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Ji.transform(e)},E$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function C$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(E$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",P$="var",A$="var(",xb="${}",O$=/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 xo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(O$,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(A$)?(r.var.push(o),i.push(P$),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return xo(e).values}function Sb(e){const{split:t,types:n}=xo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===vb?o+=bo(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const M$=e=>typeof e=="number"?0:e;function _$(e){const t=wb(e);return Sb(e)(t.map(M$))}const Ar={test:C$,parse:wb,createTransformer:Sb,getAnimatableNone:_$},I$=new Set(["brightness","contrast","saturate","opacity"]);function D$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qf)||[];if(!r)return e;const i=n.replace(r,"");let o=I$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $$=/\b([a-z-]*)\(.*?\)/gu,Jf={...Ar,getAnimatableNone:e=>{const t=e.match($$);return t?t.map(D$).join(" "):e}},R$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Jf,WebkitFilter:Jf},Tb=e=>R$[e];function Eb(e,t){let n=Tb(e);return n!==Jf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const L$=new Set(["auto","none","0"]);function N$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!L$.has(o)&&xo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ri=e=>e*180/Math.PI,Qf=e=>{const t=ri(Math.atan2(e[1],e[0]));return ed(t)},k$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qf,rotateZ:Qf,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>(e=e%360,e<0&&(e+=360),e),Cb=Qf,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),F$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>ed(ri(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function td(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=F$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=k$,i=c}if(!i)return Ob(t);const o=r[t],a=i[1].split(",").map(V$);return typeof o=="function"?o(a):a[o]}const j$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return td(n,t)};function V$(e){return parseFloat(e.trim())}const Mb=e=>e===Xi||e===Se,B$=new Set(["x","y","z"]),U$=Ki.filter(e=>!B$.has(e));function W$(e){const t=[];return U$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>td(t,"x"),y:(e,{transform:t})=>td(t,"y")};Qi.translateX=Qi.x,Qi.translateY=Qi.y;const ii=new Set;let nd=!1,rd=!1;function _b(){if(rd){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=W$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rd=!1,nd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rd=!0)})}function z$(){Ib(),_b()}class id{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),nd||(nd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Y$(e){const t=G$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const H$=4;function $b(e,t,n=1){Er(n<=H$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Y$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Db(a)?parseFloat(a):a}return Af(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Lb=[Xi,Se,Rn,Pr,ND,LD,{test:e=>e==="auto",parse:e=>e}],Nb=e=>Lb.find(Rb(e));class kb extends id{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Af(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Nb(i),c=Nb(o);if(a!==c)if(Mb(a)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)b$(t[i])&&r.push(i);r.length&&N$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const Fb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function q$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function K$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Fb(i,t),c=Fb(o,t);return Yi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:q$(e)||(n==="spring"||Wf(n))&&r}const X$=e=>e!==null;function qa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(X$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Z$=40;class jb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Z$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&z$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!K$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(qa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const sd=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<sd;)t+=n,r=e.next(t);return t>=sd?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function od(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function J$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=od(u,c,e+1/3),o=od(u,c,e),a=od(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ka(e,t){return n=>n>0?t:e}const ad=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Q$=[Zf,ni,Ji],eR=e=>Q$.find(t=>t.test(e));function Bb(e){const t=eR(e);if(Yi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ji&&(n=J$(n)),n}const Ub=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Ka(e,t);const i={...n};return o=>(i.red=ad(n.red,r.red,o),i.green=ad(n.green,r.green,o),i.blue=ad(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ni.transform(i))},tR=(e,t)=>n=>t(e(n)),wo=(...e)=>e.reduce(tR),ld=new Set(["none","hidden"]);function nR(e,t){return ld.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rR(e,t){return n=>rt(e,t,n)}function cd(e){return typeof e=="number"?rR:typeof e=="string"?Af(e)?Ka:Ct.test(e)?Ub:oR:Array.isArray(e)?Wb:typeof e=="object"?Ct.test(e)?Ub:iR:Ka}function Wb(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>cd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function iR(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function sR(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const oR=(e,t)=>{const n=Ar.createTransformer(t),r=xo(e),i=xo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ld.has(e)&&!i.values.length||ld.has(t)&&!r.values.length?nR(e,t):wo(Wb(sR(r,i),i.values),n):(Yi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ka(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):cd(e)(e,t)}const aR=5;function Gb(e,t,n){const r=Math.max(t-aR,0);return tb(n-e(r),t-r)}const it={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},Yb=.001;function lR({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;Yi(e<=Nn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=ud(d,a),S=Math.exp(-m);return Yb-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=ud(Math.pow(d,2),a);return(-i(d)+Yb>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=uR(i,o,c);if(e=Nn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const cR=12;function uR(e,t,n){let r=n;for(let i=1;i<cR;i++)r=r-e(r)/t(r);return r}function ud(e,t){return e*Math.sqrt(1-t*t)}const fR=["duration","bounce"],dR=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function hR(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,dR)&&Hb(e,fR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=lR(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=hR({...n,velocity:-Zn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Zn(Math.sqrt(u/h)),A=Math.abs(E)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),i||(i=A?it.restDelta.granular:it.restDelta.default);let O;if(v<1){const C=ud(w,v);O=L=>{const j=Math.exp(-v*w*L);return a-j*((S+v*w*E)/C*Math.sin(C*L)+E*Math.cos(C*L))}}else if(v===1)O=C=>a-Math.exp(-w*C)*(E+(S+w*E)*C);else{const C=w*Math.sqrt(v*v-1);O=L=>{const j=Math.exp(-v*w*L),F=Math.min(C*L,300);return a-j*((S+v*w*E)*Math.sinh(F)+C*E*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let j=0;v<1&&(j=C===0?Nn(S):Gb(O,C,L));const F=Math.abs(j)<=r,Y=Math.abs(a-L)<=i;c.done=F&&Y}return c.value=c.done?a:L,c},toString:()=>{const C=Math.min(Vb(D),sd),L=sb(j=>D.next(C*j).value,C,30);return C+"ms "+L}};return D}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const A=F=>-v*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),ee=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:ee};let C,L;const j=F=>{y(g.value)&&(C=F,L=qb({keyframes:[g.value,S(g.value)],velocity:Gb(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),j(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const mR=vo(.42,0,1,1),pR=vo(0,0,.58,1),Xb=vo(.42,0,.58,1),gR=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Lt,easeIn:mR,easeInOut:Xb,easeOut:pR,circIn:Hf,circInOut:pb,circOut:mb,backIn:Yf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(zf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return vo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function yR(e,t,n){const r=[],i=n||zb,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Lt:t;c=wo(u,c)}r.push(c)}return r}function vR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=yR(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Zi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function bR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zi(0,t,r);e.push(rt(n,1,i))}}function xR(e){const t=[0];return bR(t,e.length-1),t}function wR(e,t){return e.map(n=>n*t)}function SR(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function So({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=gR(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=wR(n&&n.length===t.length?n:xR(t),e),c=vR(a,t,{ease:Array.isArray(i)?i:SR(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const TR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},ER={decay:Kb,inertia:Kb,tween:So,keyframes:So,spring:qb},CR=e=>e/100;class fd extends jb{constructor(t){super(t),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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||id,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=Wf(n)?n:ER[n]||So;let u,d;process.env.NODE_ENV!=="production"&&c!==So&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==So&&typeof t[0]!="number"&&(u=wo(CR,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,D=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,v&&(ee-=v/m)):S==="mirror"&&(D=a)),O=Xn(0,1,ee)*m}const C=A?{done:!1,value:u[0]}:D.next(O);c&&(C.value=c(C.value));let{done:L}=C;!A&&d!==null&&(L=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return j&&i!==void 0&&(C.value=qa(u,this.options,i)),E&&E(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=TR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const PR=new Set(["opacity","clipPath","filter","transform"]);function AR(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const OR=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xa=10,MR=2e4;function _R(e){return Wf(e.type)||e.type==="spring"||!ob(e.ease)}function IR(e,t){const n=new fd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<MR;)r=n.sample(o),i.push(r.value),o+=Xa;return{times:void 0,keyframes:i,duration:o-Xa,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function DR(e){return e in Qb}class e1 extends jb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ha()&&DR(o)&&(o=Qb[o]),_R(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=IR(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=AR(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(qa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lt;const{animation:r}=n;ib(r,t)}return Lt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new fd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=Nn(this.time);d.setWithVelocity(S.sample(v-Xa).value,S.sample(v).value,Xa)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return OR()&&r&&PR.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const $R={type:"spring",stiffness:500,damping:25,restSpeed:10},RR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LR={type:"keyframes",duration:.8},NR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kR=(e,{keyframes:t})=>t.length>2?LR:ti.has(e)?e.startsWith("scale")?RR(t[1]):$R:NR;function FR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const dd=(e,t,n,r={},i,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};FR(c)||(h={...h,...kR(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=qa(h.keyframes,c);if(g!==void 0)return He.update(()=>{h.onUpdate(g),h.onComplete()}),new h$([])}return!o&&e1.supports(h)?new e1(h):new fd(h)};function jR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&jR(h,m))continue;const S={delay:n,...kf(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const A=window.MotionHandoffAnimation(w,m,He);A!==null&&(S.startTime=A,v=!0)}}Bf(e,m),g.start(dd(m,g,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&c$(e,c)})}),d}function hd(e,t,n={}){var r;const i=po(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return VR(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function VR(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(BR).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(hd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function BR(e,t){return e.sortNodePosition(t)}function UR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>hd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=hd(e,t,n);else{const i=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const WR=Tf.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<WR;n++){const r=Tf[n],i=e.props[r];(uo(i)||i===!1)&&(t[r]=i)}return t}const zR=[...Sf].reverse(),GR=Sf.length;function YR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UR(e,n,r)))}function HR(e){let t=YR(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const g=po(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=r1(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<GR;E++){const w=zR[E],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=uo(O),C=w===u?A.isActive:null;C===!1&&(S=E);let L=O===h[w]&&O!==d[w]&&D;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),A.protectedKeys={...y},!A.isActive&&C===null||!O&&!A.prevProp||Ua(O)||typeof O=="boolean")continue;const j=qR(A.prevProp,O);let F=j||w===u&&A.isActive&&!L&&D||E>S&&D,Y=!1;const ee=Array.isArray(O)?O:[O];let te=ee.reduce(i(w),{});C===!1&&(te={});const{prevResolvedValues:me={}}=A,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),A.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;Lf(U)&&Lf(H)?M=!n1(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):A.protectedKeys[B]=!0}A.prevProp=O,A.prevResolvedValues=te,A.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&j)||Y)&&m.push(...ee.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=po(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=A??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function qR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class KR extends Or{constructor(t){super(t),t.animationState||(t.animationState=HR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XR=0;class ZR extends Or{constructor(){super(...arguments),this.id=XR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const JR={animation:{Feature:KR},exit:{Feature:ZR}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function QR(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function To(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const md=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const e4=e=>t=>md(t)&&e(t,Eo(t));function Co(e,t,n,r){return To(e,t,e4(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function t4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function n4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const a1=1e-4,r4=1-a1,i4=1+a1,l1=.01,s4=0-l1,o4=0+l1;function _t(e){return e.max-e.min}function a4(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=r4&&e.scale<=i4||isNaN(e.scale))&&(e.scale=1),(e.translate>=s4&&e.translate<=o4||isNaN(e.translate))&&(e.translate=0)}function Po(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function l4(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Ao(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function pd(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function oi(e){return gd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Za(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Za(e,i,r)),Za(e,n,r)+t}function yd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){yd(e.x,t.translate,t.scale,t.originPoint),yd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function c4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ns(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&oi(o.latestValues)&&ns(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);yd(e,t,n,o,r)}function ns(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(n4(e.getBoundingClientRect(),t))}function u4(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ts(r.x,i.offset.x),ts(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function f4(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 m=bd(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=f4(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=vt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=vd(g,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=bd(m.type==="pointercancel"?this.lastMoveEventInfo:vd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!md(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Eo(t),c=vd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,bd(c,this.history)),this.removeListeners=wo(Co(this.contextWindow,"pointermove",this.handlePointerMove),Co(this.contextWindow,"pointerup",this.handlePointerUp),Co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,d4(t)),velocity:h4(t,.1)}}function d4(e){return e[0]}function P1(e){return e[e.length-1]}function h4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function m4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function p4(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function g4(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function y4(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=Zi(t.min,t.max-r,e.min):r>i&&(n=Zi(e.min,e.max-i,t.min)),Xn(0,1,n)}function v4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function b4(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const x4=new WeakMap;class w4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QR(g),!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),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[E];O&&(w=_t(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Bf(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=S4(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ja(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=m4(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=p4(i.layoutBox,n):this.constraints=!1,this.elastic=b4(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=v4(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qi(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=u4(r,i.root,this.visualElement.getTransformPagePoint());let a=g4(i.layout.layoutBox,o);if(n){const c=n(t4(a));this.hasMutatedConstraints=!!c,c&&(a=o1(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Ja(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Bf(this.visualElement,t),r.start(dd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Ja(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=y4({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Ja(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;x4.set(this.visualElement,this);const t=this.visualElement.current,n=Co(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();qi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=To(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ja(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function S4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T4 extends Or{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new w4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class E4 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Co(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},C4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class P4 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;RD(A4),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ef.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(yf);return x.jsx(P4,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Nv),isPresent:t,safeToRemove:n})}const A4={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:C4};function O4(e,t,n){const r=Et(e)?e:go(e);return r.start(dd("",r,t,n)),r.animation}function M4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const _4=(e,t)=>e.depth-t.depth;class I4{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){jf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_4),this.isDirty=!1,this.children.forEach(t)}}function D4(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],$4=R1.length,L1=e=>typeof e=="string"?parseFloat(e):e,N1=e=>typeof e=="number"||Se.test(e);function R4(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,L4(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,N4(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<$4;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||N1(u)===N1(d)?(e[c]=Math.max(rt(L1(u),L1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L4=F1(0,.5,mb),N4=F1(.5,.95,Lt);function F1(e,t,n){return r=>r<e?0:r>t?1:n(Zi(e,t,r))}function j1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){j1(e.x,t.x),j1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Za(e,1/n,r),i!==void 0&&(e=Za(e,1/i,r)),e}function k4(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function U1(e,t,[n,r,i],o,a){k4(e,t[n],t[r],t[i],t.scale,o,a)}const F4=["x","scaleX","originX"],j4=["y","scaleY","originY"];function W1(e,t,n,r){U1(e.x,t,F4,n?n.x:void 0,r?r.x:void 0),U1(e.y,t,j4,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function V4(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class B4{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(jf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function U4(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const wd=["","X","Y","Z"],W4={visibility:"hidden"},Z1=1e3;let z4=0;function Sd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=z4++,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,this.nodes.forEach(H4),this.nodes.forEach(J4),this.nodes.forEach(Q4),this.nodes.forEach(q4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new I4)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=M4(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=D4(g,250),Qa.hasAnimatedSinceResize&&(Qa.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||i5,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!q1(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const D={...kf(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(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(e5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(X4),this.isUpdating=!1,this.nodes.forEach(Z4),this.nodes.forEach(G4),this.nodes.forEach(Y4),this.clearAllSnapshots();const c=Ln.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,wf.update.process(vt),wf.preRender.process(vt),wf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ef.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(K4),this.sharedNodes.forEach(t5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),s5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(o5))){const{scroll:h}=this.root;h&&(ts(u.x,h.offset.x),ts(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&sn(u,a),ts(u.x,m.offset.x),ts(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ns(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&ns(u,h.latestValues)}return oi(this.latestValues)&&ns(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;gd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),W1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&W1(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||gd(this.parent.latestValues)||m1(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;c4(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Po(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,A=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(r5));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;nx(m.x,a.x,C),nx(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n5(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&V4(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=lt()),sn(O,this.relativeTarget)),v&&(this.animationValues=h,R4(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Qa.hasAnimatedSinceResize=!0,this.currentAnimation=O4(0,Z1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}sn(c,u),ns(c,h),Po(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B4),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Sd("z",a,d,this.animationValues);for(let h=0;h<wd.length;h++)Sd(`rotate${wd[h]}`,a,d,this.animationValues),Sd(`skew${wd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return W4;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=U4(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in fo){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:A}=fo[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const D=w.length;for(let C=0;C<D;C++)d[w[C]]=O}else A?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Ga(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function G4(e){e.updateLayout()}function Y4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(g);g.min=r[m].min,g.max=g.min+y}):ax(o,n.layoutBox,r)&&rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=es();Po(c,r,n.layoutBox);const u=es();a?Po(u,e.applyTransform(i,!0),n.measuredBox):Po(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=lt();Ao(S,n.layoutBox,g.layoutBox);const v=lt();Ao(v,r,y.layoutBox),q1(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function H4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function q4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function K4(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function X4(e){e.isLayoutDirty=!1}function Z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J4(e){e.resolveTargetDelta()}function Q4(e){e.calcProjection()}function e5(e){e.resetSkewAndRotation()}function t5(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function n5(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function r5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const i5={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Lt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function s5(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!a4(K1(t),K1(n),.2)}function o5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const a5=Q1({attachResizeListener:(e,t)=>To(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Td={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Td.current){const e=new a5({});e.mount(window),e.setOptions({layoutScroll:!0}),Td.current=e}return Td.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),l5={pan:{Feature:E4},drag:{Feature:T4,ProjectionNode:lx,MeasureLayout:$1}};function c5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cx(e,t){const n=c5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function u5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class f5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=u5(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class d5 extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=wo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,h5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function m5(e){return h5.has(e.tagName)||e.tabIndex!==-1}const Mo=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Ed(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const p5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Mo.has(n))return;Ed(n,"down");const i=hx(()=>{Ed(n,"up")}),o=()=>Ed(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return md(e)&&!s1()}function g5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||Mo.has(u))return;Mo.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!mx(y)||!Mo.has(u))&&(Mo.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>p5(d,i)),!m5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class y5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=g5(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cd=new WeakMap,Pd=new WeakMap,v5=e=>{const t=Cd.get(e.target);t&&t(e)},b5=e=>{e.forEach(v5)};function x5({root:e,...t}){const n=e||document;Pd.has(n)||Pd.set(n,{});const r=Pd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b5,{root:e,...t})),r[i]}function w5(e,t,n){const r=x5(t);return Cd.set(e,n),r.observe(e),()=>{Cd.delete(e),r.unobserve(e)}}const S5={some:0,all:1};class T5 extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:S5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return w5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(E5(t,n))&&this.startObserver()}unmount(){}}function E5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const C5={inView:{Feature:T5},tap:{Feature:y5},focus:{Feature:d5},hover:{Feature:f5}},P5={layout:{ProjectionNode:lx,MeasureLayout:$1}},Ad={current:null},gx={current:!1};function A5(){if(gx.current=!0,!!bf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ad.current=e.matches;e.addListener(t),t()}else Ad.current=!1}const O5=[...Lb,Ct,Ar],M5=e=>O5.find(Rb(e)),_5=new WeakMap;function I5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,go(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,go(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class D5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=id,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 y=Ln.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Wa(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,_5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),gx.current||A5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ad.current,process.env.NODE_ENV!=="production"&&Va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hi){const n=Hi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=I5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=go(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!M5(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Rf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends D5{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $5(e){return window.getComputedStyle(e)}class R5 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return j$(t,n);{const r=$5(t),i=(Pf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){Mf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class L5 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Cf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Df(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=$f(t.tagName),super.mount(t)}}const N5=(e,t)=>If(e)?new L5(t):new R5(t,{allowProjection:e!==I.Fragment}),k5=i$({...JR,...C5,...l5,...P5},N5),Ze=wD(k5),Od={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Od),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o})=>{const{t:a}=ze(),c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o(),r()};return x.jsx(Kn,{children:n&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:x.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:x.jsxs(ys,{className:"flex flex-col gap-16 p-32",children:[x.jsxs("div",{className:"flex justify-between items-center gap-16",children:[x.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),x.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),x.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),x.jsxs("div",{className:"flex justify-end w-full gap-16",children:[x.jsx(ko,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:a("cancel")}),x.jsx(ko,{onClick:d,className:"px-24 py-16 text-lg!",children:a("confirm")})]})]})})})})})};/*!
|
|
659
|
+
`),()=>{document.head.removeChild(y)}},[t]),b.jsx(fD,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const hD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=vf(mD),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=b.jsx(dD,{isPresent:n,anchorX:c,children:e})),b.jsx(Na.Provider,{value:m,children:e})};function mD(){return new Map}function Cv(e=!0){const t=I.useContext(Na);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ka=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=I.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ka),g=I.useRef(!0),y=I.useRef(h),S=vf(()=>new Map),[v,E]=I.useState(h),[w,P]=I.useState(h);Ev(()=>{g.current=!1,y.current=h;for(let A=0;A<w.length;A++){const R=ka(w[A]);m.includes(R)?S.delete(R):S.get(R)!==!0&&S.set(R,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let A=[...h];for(let R=0;R<w.length;R++){const j=w[R],F=ka(j);m.includes(F)||(A.splice(R,0,j),O.push(j))}return o==="wait"&&O.length&&(A=O),P(Pv(A)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:$}=I.useContext(yf);return b.jsx(b.Fragment,{children:w.map(A=>{const R=ka(A),j=a&&!u?!1:h===w||m.includes(R),F=()=>{if(S.has(R))S.set(R,!0);else return;let Y=!0;S.forEach(Q=>{Q||(Y=!1)}),Y&&($==null||$(),P(y.current),a&&(d==null||d()),r&&r())};return b.jsx(hD,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:A},R)})})},Lt=e=>e;let Yi=Lt,Er=Lt;process.env.NODE_ENV!=="production"&&(Yi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const pD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function gD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const yD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,P)=>(w[P]=gD(o,t?P:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,yD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,P)=>{const O=a[P];return w[P]=($,A=!1,R=!1)=>(n||S(),O.schedule($,A,R)),w},{}),cancel:w=>{for(let P=0;P<Fa.length;P++)a[Fa[P]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:wf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0),Mv=I.createContext({strict:!1}),_v={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"]},Hi={};for(const e in _v)Hi[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function vD(e){for(const t in e)Hi[t]={...Hi[t],...e[t]}}const bD=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 ja(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bD.has(e)}let Iv=e=>!ja(e);function xD(e){e&&(Iv=t=>t.startsWith("on")?!ja(t):e(t))}try{xD(require("@emotion/is-prop-valid").default)}catch{}function wD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&ja(i)||!t&&!ja(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Va(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function SD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ba=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function uo(e){return typeof e=="string"||Array.isArray(e)}const Sf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tf=["initial",...Sf];function Wa(e){return Ua(e.animate)||Tf.some(t=>uo(e[t]))}function $v(e){return!!(Wa(e)||e.variants)}function TD(e,t){if(Wa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uo(n)?n:void 0,animate:uo(r)?r:void 0}}return e.inherit!==!1?t:{}}function ED(e){const{initial:t,animate:n}=TD(e,I.useContext(Ba));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const CD=Symbol.for("motionComponentSymbol");function qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PD(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qi(n)&&(n.current=r))},[t])}const{schedule:Ef}=Ov(queueMicrotask,!1),Cf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lv="data-"+Cf("framerAppearId"),Nv=I.createContext({});function AD(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ba),u=I.useContext(Mv),d=I.useContext(Na),h=I.useContext(xf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Nv);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&OD(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[Lv],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return Ev(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Ef.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function OD(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&qi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function MD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&vD(e);function c(d,h){let m;const g={...I.useContext(xf),...d,layoutId:_D(d)},{isStatic:y}=g,S=ED(d),v=r(d,y);if(!y&&bf){ID(g,e);const E=DD(g);m=E.MeasureLayout,S.visualElement=AD(i,v,g,t,E.ProjectionNode)}return b.jsxs(Ba.Provider,{value:S,children:[m&&S.visualElement?b.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,PD(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[CD]=i,u}function _D({layoutId:e}){const t=I.useContext(yf).id;return t&&e!==void 0?t+"-"+e:e}function ID(e,t){const n=I.useContext(Mv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yi(!1,r):Er(!1,r)}}function DD(e){const{drag:t,layout:n}=Hi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Fv=e=>t=>typeof t=="string"&&t.startsWith(e),Pf=Fv("--"),$D=Fv("var(--"),Af=e=>$D(e)?RD.test(e.split("/*")[0].trim()):!1,RD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fo={};function LD(e){for(const t in e)fo[t]=e[t],Pf(t)&&(fo[t].isCSSVariable=!0)}const Ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Ki);function jv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Xi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ho={...Xi,transform:e=>Xn(0,1,e)},za={...Xi,default:1},mo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=mo("deg"),Rn=mo("%"),Se=mo("px"),ND=mo("vh"),kD=mo("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},FD={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},jD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:za,scaleX:za,scaleY:za,scaleZ:za,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:ho,originX:Bv,originY:Bv,originZ:Se},Uv={...Xi,transform:Math.round},Of={...FD,...jD,zIndex:Uv,size:Se,fillOpacity:ho,strokeOpacity:ho,numOctaves:Uv},VD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BD=Ki.length;function UD(e,t,n){let r="",i=!0;for(let o=0;o<BD;o++){const a=Ki[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Of[a]);if(!u){i=!1;const h=VD[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Mf(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Pf(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=UD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const _f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wv(e,t,n){for(const r in t)!Et(t[r])&&!jv(r,n)&&(e[r]=t[r])}function WD({transformTemplate:e},t){return I.useMemo(()=>{const n=_f();return Mf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zD(e,t){const n=e.style||{},r={};return Wv(r,n,e),Object.assign(r,WD(e,t)),r}function GD(e,t){const n={},r=zD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const YD=["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 If(e){return typeof e!="string"||e.includes("-")?!1:!!(YD.indexOf(e)>-1||/[A-Z]/u.test(e))}const HD={offset:"stroke-dashoffset",array:"stroke-dasharray"},qD={offset:"strokeDashoffset",array:"strokeDasharray"};function KD(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?HD:qD;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function XD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Mf(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=XD(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&KD(g,a,c,u,!1)}const Gv=()=>({..._f(),attrs:{}}),$f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZD(e,t,n,r){const i=I.useMemo(()=>{const o=Gv();return Df(o,t,$f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wv(o,e.style,e),i.style={...o,...i.style}}return i}function JD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(If(n)?ZD:GD)(r,o,a,n),d=wD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),QD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),e$=e=>Lf(e)?e[e.length-1]||0:e;function Ga(e){const t=Et(e)?e.get():e;return QD(t)?t.toValue():t}function t$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:n$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=I.useContext(Ba),i=I.useContext(Na),o=()=>t$(e,t,r,i);return n?o():vf(o)};function n$(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Ga(o[g]);let{initial:a,animate:c}=e;const u=Wa(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Rf(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const P in w){let O=w[P];if(Array.isArray(O)){const $=h?O.length-1:0;O=O[$]}O!==null&&(i[P]=O)}for(const P in v)i[P]=v[P]}}}return i}function Nf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||jv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const r$={useVisualState:Hv({scrapeMotionValuesFromProps:Nf,createRenderState:_f})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xv=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 Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Cf(i),t.attrs[i])}function Jv(e,t,n){const r=Nf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=Ki.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],i$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,$f(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function s$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...If(r)?i$:r$,preloadedFeatures:e,useRender:JD(i),createVisualElement:t,Component:r};return MD(a)}}function po(e,t,n){const r=e.getProps();return Rf(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...Ki]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function jf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>jf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ya;function o$(){Ya=void 0}const Ln={now:()=>(Ya===void 0&&Ln.set(vt.isProcessing||pD.useManualTiming?vt.timestamp:performance.now()),Ya),set:e=>{Ya=e,queueMicrotask(o$)}},nb=30,a$=e=>!isNaN(parseFloat(e));class l${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=a$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 go(e,t){return new l$(e,t)}function c$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,go(n))}function u$(e,t){const n=po(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=e$(o[a]);c$(e,a,c)}}function f$(e){return!!(Et(e)&&e.add)}function Bf(e,t){const n=e.getValue("willChange");if(f$(n))return n.add(t)}function rb(e){return e.props[Lv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const d$=Uf(()=>window.ScrollTimeline!==void 0);class h${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(d$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class m$ extends h${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Wf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const zf=e=>Array.isArray(e)&&typeof e[0]=="number",p$={linearEasing:void 0};function g$(e,t){const n=Uf(e);return()=>{var r;return(r=p$[t])!==null&&r!==void 0?r:n()}}const Ha=g$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Zi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&Ha()||!e||typeof e=="string"&&(e in Gf||Ha())||zf(e)||Array.isArray(e)&&e.every(ob))}const yo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yo([0,.65,.55,1]),circOut:yo([.55,0,1,.45]),backIn:yo([.31,.01,.66,-.59]),backOut:yo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&Ha()?sb(e,t):zf(e)?yo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Gf.easeOut):Gf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,y$=1e-7,v$=12;function b$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>y$&&++c<v$);return a}function vo(e,t,n,r){if(e===t&&n===r)return Lt;const i=o=>b$(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=vo(.33,1.53,.69,.99),Yf=ub(fb),db=cb(Yf),hb=e=>(e*=2)<1?.5*Yf(e):.5*(2-Math.pow(2,-10*(e-1))),Hf=e=>1-Math.sin(Math.acos(e)),mb=ub(Hf),pb=cb(Hf),gb=e=>/^0[^.\s]+$/u.test(e);function x$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const bo=e=>Math.round(e*1e5)/1e5,qf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function w$(e){return e==null}const S$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kf=(e,t)=>n=>!!(typeof n=="string"&&S$.test(n)&&n.startsWith(e)||t&&!w$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(qf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},T$=e=>Xn(0,255,e),Xf={...Xi,transform:e=>Math.round(T$(e))},ni={test:Kf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xf.transform(e)+", "+Xf.transform(t)+", "+Xf.transform(n)+", "+bo(ho.transform(r))+")"};function E$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Zf={test:Kf("#"),parse:E$,transform:ni.transform},Ji={test:Kf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(bo(t))+", "+Rn.transform(bo(n))+", "+bo(ho.transform(r))+")"},Ct={test:e=>ni.test(e)||Zf.test(e)||Ji.test(e),parse:e=>ni.test(e)?ni.parse(e):Ji.test(e)?Ji.parse(e):Zf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Ji.transform(e)},C$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function P$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(C$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",A$="var",O$="var(",xb="${}",M$=/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 xo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(M$,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(O$)?(r.var.push(o),i.push(A$),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return xo(e).values}function Sb(e){const{split:t,types:n}=xo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===vb?o+=bo(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const _$=e=>typeof e=="number"?0:e;function I$(e){const t=wb(e);return Sb(e)(t.map(_$))}const Ar={test:P$,parse:wb,createTransformer:Sb,getAnimatableNone:I$},D$=new Set(["brightness","contrast","saturate","opacity"]);function $$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qf)||[];if(!r)return e;const i=n.replace(r,"");let o=D$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const R$=/\b([a-z-]*)\(.*?\)/gu,Jf={...Ar,getAnimatableNone:e=>{const t=e.match(R$);return t?t.map($$).join(" "):e}},L$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Jf,WebkitFilter:Jf},Tb=e=>L$[e];function Eb(e,t){let n=Tb(e);return n!==Jf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const N$=new Set(["auto","none","0"]);function k$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!N$.has(o)&&xo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ri=e=>e*180/Math.PI,Qf=e=>{const t=ri(Math.atan2(e[1],e[0]));return ed(t)},F$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qf,rotateZ:Qf,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>(e=e%360,e<0&&(e+=360),e),Cb=Qf,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),j$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>ed(ri(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function td(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=j$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=F$,i=c}if(!i)return Ob(t);const o=r[t],a=i[1].split(",").map(B$);return typeof o=="function"?o(a):a[o]}const V$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return td(n,t)};function B$(e){return parseFloat(e.trim())}const Mb=e=>e===Xi||e===Se,U$=new Set(["x","y","z"]),W$=Ki.filter(e=>!U$.has(e));function z$(e){const t=[];return W$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>td(t,"x"),y:(e,{transform:t})=>td(t,"y")};Qi.translateX=Qi.x,Qi.translateY=Qi.y;const ii=new Set;let nd=!1,rd=!1;function _b(){if(rd){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=z$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rd=!1,nd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rd=!0)})}function G$(){Ib(),_b()}class id{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),nd||(nd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function H$(e){const t=Y$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const q$=4;function $b(e,t,n=1){Er(n<=q$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=H$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Db(a)?parseFloat(a):a}return Af(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Lb=[Xi,Se,Rn,Pr,kD,ND,{test:e=>e==="auto",parse:e=>e}],Nb=e=>Lb.find(Rb(e));class kb extends id{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Af(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Nb(i),c=Nb(o);if(a!==c)if(Mb(a)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)x$(t[i])&&r.push(i);r.length&&k$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const Fb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function K$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function X$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Fb(i,t),c=Fb(o,t);return Yi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:K$(e)||(n==="spring"||Wf(n))&&r}const Z$=e=>e!==null;function qa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Z$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const J$=40;class jb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>J$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&G$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!X$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(qa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const sd=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<sd;)t+=n,r=e.next(t);return t>=sd?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function od(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Q$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=od(u,c,e+1/3),o=od(u,c,e),a=od(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ka(e,t){return n=>n>0?t:e}const ad=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},eR=[Zf,ni,Ji],tR=e=>eR.find(t=>t.test(e));function Bb(e){const t=tR(e);if(Yi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ji&&(n=Q$(n)),n}const Ub=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Ka(e,t);const i={...n};return o=>(i.red=ad(n.red,r.red,o),i.green=ad(n.green,r.green,o),i.blue=ad(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ni.transform(i))},nR=(e,t)=>n=>t(e(n)),wo=(...e)=>e.reduce(nR),ld=new Set(["none","hidden"]);function rR(e,t){return ld.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iR(e,t){return n=>rt(e,t,n)}function cd(e){return typeof e=="number"?iR:typeof e=="string"?Af(e)?Ka:Ct.test(e)?Ub:aR:Array.isArray(e)?Wb:typeof e=="object"?Ct.test(e)?Ub:sR:Ka}function Wb(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>cd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function sR(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function oR(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const aR=(e,t)=>{const n=Ar.createTransformer(t),r=xo(e),i=xo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ld.has(e)&&!i.values.length||ld.has(t)&&!r.values.length?rR(e,t):wo(Wb(oR(r,i),i.values),n):(Yi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ka(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):cd(e)(e,t)}const lR=5;function Gb(e,t,n){const r=Math.max(t-lR,0);return tb(n-e(r),t-r)}const it={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},Yb=.001;function cR({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;Yi(e<=Nn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=ud(d,a),S=Math.exp(-m);return Yb-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=ud(Math.pow(d,2),a);return(-i(d)+Yb>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=fR(i,o,c);if(e=Nn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const uR=12;function fR(e,t,n){let r=n;for(let i=1;i<uR;i++)r=r-e(r)/t(r);return r}function ud(e,t){return e*Math.sqrt(1-t*t)}const dR=["duration","bounce"],hR=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function mR(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,hR)&&Hb(e,dR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=cR(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=mR({...n,velocity:-Zn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Zn(Math.sqrt(u/h)),P=Math.abs(E)<5;r||(r=P?it.restSpeed.granular:it.restSpeed.default),i||(i=P?it.restDelta.granular:it.restDelta.default);let O;if(v<1){const A=ud(w,v);O=R=>{const j=Math.exp(-v*w*R);return a-j*((S+v*w*E)/A*Math.sin(A*R)+E*Math.cos(A*R))}}else if(v===1)O=A=>a-Math.exp(-w*A)*(E+(S+w*E)*A);else{const A=w*Math.sqrt(v*v-1);O=R=>{const j=Math.exp(-v*w*R),F=Math.min(A*R,300);return a-j*((S+v*w*E)*Math.sinh(F)+A*E*Math.cosh(F))/A}}const $={calculatedDuration:y&&m||null,next:A=>{const R=O(A);if(y)c.done=A>=m;else{let j=0;v<1&&(j=A===0?Nn(S):Gb(O,A,R));const F=Math.abs(j)<=r,Y=Math.abs(a-R)<=i;c.done=F&&Y}return c.value=c.done?a:R,c},toString:()=>{const A=Math.min(Vb($),sd),R=sb(j=>$.next(A*j).value,A,30);return A+"ms "+R}};return $}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const P=F=>-v*Math.exp(-F/r),O=F=>w+P(F),$=F=>{const Y=P(F),Q=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:Q};let A,R;const j=F=>{y(g.value)&&(A=F,R=qb({keyframes:[g.value,S(g.value)],velocity:Gb(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!R&&A===void 0&&(Y=!0,$(F),j(F)),A!==void 0&&F>=A?R.next(F-A):(!Y&&$(F),g)}}}const pR=vo(.42,0,1,1),gR=vo(0,0,.58,1),Xb=vo(.42,0,.58,1),yR=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Lt,easeIn:pR,easeInOut:Xb,easeOut:gR,circIn:Hf,circInOut:pb,circOut:mb,backIn:Yf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(zf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return vo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function vR(e,t,n){const r=[],i=n||zb,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Lt:t;c=wo(u,c)}r.push(c)}return r}function bR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=vR(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Zi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function xR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zi(0,t,r);e.push(rt(n,1,i))}}function wR(e){const t=[0];return xR(t,e.length-1),t}function SR(e,t){return e.map(n=>n*t)}function TR(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function So({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=yR(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=SR(n&&n.length===t.length?n:wR(t),e),c=bR(a,t,{ease:Array.isArray(i)?i:TR(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const ER=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},CR={decay:Kb,inertia:Kb,tween:So,keyframes:So,spring:qb},PR=e=>e/100;class fd extends jb{constructor(t){super(t),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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||id,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=Wf(n)?n:CR[n]||So;let u,d;process.env.NODE_ENV!=="production"&&c!==So&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==So&&typeof t[0]!="number"&&(u=wo(PR,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),P=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,$=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(Q=1-Q,v&&(Q-=v/m)):S==="mirror"&&($=a)),O=Xn(0,1,Q)*m}const A=P?{done:!1,value:u[0]}:$.next(O);c&&(A.value=c(A.value));let{done:R}=A;!P&&d!==null&&(R=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return j&&i!==void 0&&(A.value=qa(u,this.options,i)),E&&E(A.value),j&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ER,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const AR=new Set(["opacity","clipPath","filter","transform"]);function OR(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const MR=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xa=10,_R=2e4;function IR(e){return Wf(e.type)||e.type==="spring"||!ob(e.ease)}function DR(e,t){const n=new fd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<_R;)r=n.sample(o),i.push(r.value),o+=Xa;return{times:void 0,keyframes:i,duration:o-Xa,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function $R(e){return e in Qb}class e1 extends jb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ha()&&$R(o)&&(o=Qb[o]),IR(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=DR(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=OR(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(qa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lt;const{animation:r}=n;ib(r,t)}return Lt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new fd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=Nn(this.time);d.setWithVelocity(S.sample(v-Xa).value,S.sample(v).value,Xa)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return MR()&&r&&AR.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const RR={type:"spring",stiffness:500,damping:25,restSpeed:10},LR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NR={type:"keyframes",duration:.8},kR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FR=(e,{keyframes:t})=>t.length>2?NR:ti.has(e)?e.startsWith("scale")?LR(t[1]):RR:kR;function jR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const dd=(e,t,n,r={},i,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};jR(c)||(h={...h,...FR(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=qa(h.keyframes,c);if(g!==void 0)return He.update(()=>{h.onUpdate(g),h.onComplete()}),new m$([])}return!o&&e1.supports(h)?new e1(h):new fd(h)};function VR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&VR(h,m))continue;const S={delay:n,...kf(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const P=window.MotionHandoffAnimation(w,m,He);P!==null&&(S.startTime=P,v=!0)}}Bf(e,m),g.start(dd(m,g,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&u$(e,c)})}),d}function hd(e,t,n={}){var r;const i=po(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return BR(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function BR(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(UR).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(hd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function UR(e,t){return e.sortNodePosition(t)}function WR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>hd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=hd(e,t,n);else{const i=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const zR=Tf.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<zR;n++){const r=Tf[n],i=e.props[r];(uo(i)||i===!1)&&(t[r]=i)}return t}const GR=[...Sf].reverse(),YR=Sf.length;function HR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>WR(e,n,r)))}function qR(e){let t=HR(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const g=po(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=r1(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<YR;E++){const w=GR[E],P=n[w],O=d[w]!==void 0?d[w]:h[w],$=uo(O),A=w===u?P.isActive:null;A===!1&&(S=E);let R=O===h[w]&&O!==d[w]&&$;if(R&&r&&e.manuallyAnimateOnMount&&(R=!1),P.protectedKeys={...y},!P.isActive&&A===null||!O&&!P.prevProp||Ua(O)||typeof O=="boolean")continue;const j=KR(P.prevProp,O);let F=j||w===u&&P.isActive&&!R&&$||E>S&&$,Y=!1;const Q=Array.isArray(O)?O:[O];let te=Q.reduce(i(w),{});A===!1&&(te={});const{prevResolvedValues:me={}}=P,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),P.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;Lf(U)&&Lf(H)?M=!n1(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):P.protectedKeys[B]=!0}P.prevProp=O,P.prevResolvedValues=te,P.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(R&&j)||Y)&&m.push(...Q.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=po(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const P=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=P??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function KR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class XR extends Or{constructor(t){super(t),t.animationState||(t.animationState=qR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let ZR=0;class JR extends Or{constructor(){super(...arguments),this.id=ZR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QR={animation:{Feature:XR},exit:{Feature:JR}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function e4(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function To(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const md=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const t4=e=>t=>md(t)&&e(t,Eo(t));function Co(e,t,n,r){return To(e,t,t4(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function n4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function r4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const a1=1e-4,i4=1-a1,s4=1+a1,l1=.01,o4=0-l1,a4=0+l1;function _t(e){return e.max-e.min}function l4(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=i4&&e.scale<=s4||isNaN(e.scale))&&(e.scale=1),(e.translate>=o4&&e.translate<=a4||isNaN(e.translate))&&(e.translate=0)}function Po(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function c4(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Ao(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function pd(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function oi(e){return gd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Za(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Za(e,i,r)),Za(e,n,r)+t}function yd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){yd(e.x,t.translate,t.scale,t.originPoint),yd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function u4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ns(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&oi(o.latestValues)&&ns(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);yd(e,t,n,o,r)}function ns(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(r4(e.getBoundingClientRect(),t))}function f4(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ts(r.x,i.offset.x),ts(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function d4(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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 m=bd(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=d4(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=vt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=vd(g,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=bd(m.type==="pointercancel"?this.lastMoveEventInfo:vd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!md(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Eo(t),c=vd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,bd(c,this.history)),this.removeListeners=wo(Co(this.contextWindow,"pointermove",this.handlePointerMove),Co(this.contextWindow,"pointerup",this.handlePointerUp),Co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,h4(t)),velocity:m4(t,.1)}}function h4(e){return e[0]}function P1(e){return e[e.length-1]}function m4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function p4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function g4(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function y4(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function v4(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=Zi(t.min,t.max-r,e.min):r>i&&(n=Zi(e.min,e.max-i,t.min)),Xn(0,1,n)}function b4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function x4(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const w4=new WeakMap;class S4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=e4(g),!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),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:P}=this.visualElement;if(P&&P.layout){const O=P.layout.layoutBox[E];O&&(w=_t(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Bf(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=T4(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ja(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=p4(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=g4(i.layoutBox,n):this.constraints=!1,this.elastic=x4(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=b4(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qi(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=f4(r,i.root,this.visualElement.getTransformPagePoint());let a=y4(i.layout.layoutBox,o);if(n){const c=n(n4(a));this.hasMutatedConstraints=!!c,c&&(a=o1(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Ja(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Bf(this.visualElement,t),r.start(dd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Ja(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=v4({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Ja(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;w4.set(this.visualElement,this);const t=this.visualElement.current,n=Co(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();qi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=To(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ja(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function T4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class E4 extends Or{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new S4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class C4 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Co(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},P4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class A4 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;LD(O4),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ef.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(yf);return b.jsx(A4,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Nv),isPresent:t,safeToRemove:n})}const O4={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:P4};function M4(e,t,n){const r=Et(e)?e:go(e);return r.start(dd("",r,t,n)),r.animation}function _4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const I4=(e,t)=>e.depth-t.depth;class D4{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){jf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(I4),this.isDirty=!1,this.children.forEach(t)}}function $4(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],R4=R1.length,L1=e=>typeof e=="string"?parseFloat(e):e,N1=e=>typeof e=="number"||Se.test(e);function L4(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,N4(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,k4(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<R4;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||N1(u)===N1(d)?(e[c]=Math.max(rt(L1(u),L1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const N4=F1(0,.5,mb),k4=F1(.5,.95,Lt);function F1(e,t,n){return r=>r<e?0:r>t?1:n(Zi(e,t,r))}function j1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){j1(e.x,t.x),j1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Za(e,1/n,r),i!==void 0&&(e=Za(e,1/i,r)),e}function F4(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function U1(e,t,[n,r,i],o,a){F4(e,t[n],t[r],t[i],t.scale,o,a)}const j4=["x","scaleX","originX"],V4=["y","scaleY","originY"];function W1(e,t,n,r){U1(e.x,t,j4,n?n.x:void 0,r?r.x:void 0),U1(e.y,t,V4,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function B4(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class U4{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(jf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function W4(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const wd=["","X","Y","Z"],z4={visibility:"hidden"},Z1=1e3;let G4=0;function Sd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=G4++,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,this.nodes.forEach(q4),this.nodes.forEach(Q4),this.nodes.forEach(e5),this.nodes.forEach(K4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new D4)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=_4(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=$4(g,250),Qa.hasAnimatedSinceResize&&(Qa.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||s5,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),P=!this.targetLayout||!q1(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const $={...kf(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else g||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(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(t5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(Z4),this.isUpdating=!1,this.nodes.forEach(J4),this.nodes.forEach(Y4),this.nodes.forEach(H4),this.clearAllSnapshots();const c=Ln.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,wf.update.process(vt),wf.preRender.process(vt),wf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ef.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(X4),this.sharedNodes.forEach(n5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),o5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(a5))){const{scroll:h}=this.root;h&&(ts(u.x,h.offset.x),ts(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&sn(u,a),ts(u.x,m.offset.x),ts(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ns(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&ns(u,h.latestValues)}return oi(this.latestValues)&&ns(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;gd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),W1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&W1(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),c4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||gd(this.parent.latestValues)||m1(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 a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;u4(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Po(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,P=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(i5));this.animationProgress=0;let O;this.mixTargetDelta=$=>{const A=$/1e3;nx(m.x,a.x,A),nx(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r5(this.relativeTarget,this.relativeTargetOrigin,g,A),O&&B4(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=lt()),sn(O,this.relativeTarget)),v&&(this.animationValues=h,L4(h,d,this.latestValues,A,P,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Qa.hasAnimatedSinceResize=!0,this.currentAnimation=M4(0,Z1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}sn(c,u),ns(c,h),Po(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new U4),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Sd("z",a,d,this.animationValues);for(let h=0;h<wd.length;h++)Sd(`rotate${wd[h]}`,a,d,this.animationValues),Sd(`skew${wd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return z4;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=W4(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in fo){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:P}=fo[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const $=w.length;for(let A=0;A<$;A++)d[w[A]]=O}else P?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Ga(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function Y4(e){e.updateLayout()}function H4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(g);g.min=r[m].min,g.max=g.min+y}):ax(o,n.layoutBox,r)&&rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=es();Po(c,r,n.layoutBox);const u=es();a?Po(u,e.applyTransform(i,!0),n.measuredBox):Po(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=lt();Ao(S,n.layoutBox,g.layoutBox);const v=lt();Ao(v,r,y.layoutBox),q1(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function q4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function K4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function X4(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function Z4(e){e.isLayoutDirty=!1}function J4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Q4(e){e.resolveTargetDelta()}function e5(e){e.calcProjection()}function t5(e){e.resetSkewAndRotation()}function n5(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function r5(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function i5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const s5={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Lt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function o5(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!l4(K1(t),K1(n),.2)}function a5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const l5=Q1({attachResizeListener:(e,t)=>To(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Td={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Td.current){const e=new l5({});e.mount(window),e.setOptions({layoutScroll:!0}),Td.current=e}return Td.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),c5={pan:{Feature:C4},drag:{Feature:E4,ProjectionNode:lx,MeasureLayout:$1}};function u5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cx(e,t){const n=u5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function f5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class d5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=f5(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class h5 extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=wo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,m5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function p5(e){return m5.has(e.tagName)||e.tabIndex!==-1}const Mo=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Ed(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const g5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Mo.has(n))return;Ed(n,"down");const i=hx(()=>{Ed(n,"up")}),o=()=>Ed(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return md(e)&&!s1()}function y5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||Mo.has(u))return;Mo.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!mx(y)||!Mo.has(u))&&(Mo.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>g5(d,i)),!p5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class v5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=y5(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cd=new WeakMap,Pd=new WeakMap,b5=e=>{const t=Cd.get(e.target);t&&t(e)},x5=e=>{e.forEach(b5)};function w5({root:e,...t}){const n=e||document;Pd.has(n)||Pd.set(n,{});const r=Pd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(x5,{root:e,...t})),r[i]}function S5(e,t,n){const r=w5(t);return Cd.set(e,n),r.observe(e),()=>{Cd.delete(e),r.unobserve(e)}}const T5={some:0,all:1};class E5 extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:T5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return S5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(C5(t,n))&&this.startObserver()}unmount(){}}function C5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const P5={inView:{Feature:E5},tap:{Feature:v5},focus:{Feature:h5},hover:{Feature:d5}},A5={layout:{ProjectionNode:lx,MeasureLayout:$1}},Ad={current:null},gx={current:!1};function O5(){if(gx.current=!0,!!bf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ad.current=e.matches;e.addListener(t),t()}else Ad.current=!1}const M5=[...Lb,Ct,Ar],_5=e=>M5.find(Rb(e)),I5=new WeakMap;function D5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,go(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,go(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=id,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 y=Ln.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Wa(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,I5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),gx.current||O5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ad.current,process.env.NODE_ENV!=="production"&&Va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hi){const n=Hi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=D5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=go(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!_5(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Rf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends $5{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R5(e){return window.getComputedStyle(e)}class L5 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return V$(t,n);{const r=R5(t),i=(Pf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){Mf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class N5 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Cf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Df(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=$f(t.tagName),super.mount(t)}}const k5=(e,t)=>If(e)?new N5(t):new L5(t,{allowProjection:e!==I.Fragment}),F5=s$({...QR,...P5,...c5,...A5},k5),Ze=SD(F5),Od={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Od),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o})=>{const{t:a}=ze(),c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o(),r()};return b.jsx(Kn,{children:n&&b.jsx(b.Fragment,{children:b.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:b.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:b.jsxs(ys,{className:"flex flex-col gap-16 p-32",children:[b.jsxs("div",{className:"flex justify-between items-center gap-16",children:[b.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),b.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),b.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),b.jsxs("div",{className:"flex justify-end w-full gap-16",children:[b.jsx(ko,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:a("cancel")}),b.jsx(ko,{onClick:d,className:"px-24 py-16 text-lg!",children:a("confirm")})]})]})})})})})};/*!
|
|
660
660
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
661
661
|
* License - https://fontawesome.com/license (Commercial License)
|
|
662
662
|
* Copyright 2024 Fonticons, Inc.
|
|
663
|
-
*/const F5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},j5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},V5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},B5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},U5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function el(){return typeof window<"u"}function rs(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return el()?e instanceof Node||e instanceof Nt(e).Node:!1}function qe(e){return el()?e instanceof Element||e instanceof Nt(e).Element:!1}function kt(e){return el()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Md(e){return!el()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function W5(e){return["table","td","th"].includes(rs(e))}function tl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _d(e){const t=nl(),n=qe(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function z5(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(_d(t))return t;if(tl(t))return null;t=Qn(t)}return null}function nl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(rs(e))}function on(e){return Nt(e).getComputedStyle(e)}function rl(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(rs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Md(e)&&e.host||kn(e);return Md(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&_o(t)?t:Sx(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(i);if(o){const c=Id(a);return t.concat(a,a.visualViewport||[],_o(i)?i:[],c&&n?Mr(c):[])}return t.concat(i,Mr(i,[],n))}function Id(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Io(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Md(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function G5(e){return q5()?!1:!Px()&&e.width===0&&e.height===0||Px()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Y5(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function H5(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function q5(){return Cx().includes("jsdom/")}function Do(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function K5(e){return"nativeEvent"in e}function X5(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function is(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Z5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(Z5)}const _r=Math.min,Yt=Math.max,il=Math.round,sl=Math.floor,Fn=e=>({x:e,y:e}),J5={left:"right",right:"left",bottom:"top",top:"bottom"},Q5={start:"end",end:"start"};function $d(e,t,n){return Yt(e,_r(t,n))}function ss(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Rd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Ox(li(e))}function e6(e,t,n){n===void 0&&(n=!1);const r=os(e),i=Ld(e),o=Rd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ol(a)),[a,ol(a)]}function t6(e){const t=ol(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>Q5[t])}function n6(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function r6(e,t,n,r){const i=os(e);let o=n6(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Nd)))),o}function ol(e){return e.replace(/left|right|bottom|top/g,t=>J5[t])}function i6(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?i6(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _x(e,t,n){let{reference:r,floating:i}=e;const o=li(t),a=Ld(t),c=Rd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(os(t)){case"start":y[a]-=g*(n&&d?-1:1);break;case"end":y[a]+=g*(n&&d?-1:1);break}return y}const s6=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),g=r,y={},S=0;for(let v=0;v<c.length;v++){const{name:E,fn:w}=c[v],{x:A,y:O,data:D,reset:C}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,m=O??m,y={...y,[E]:{...y[E],...D}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=_x(d,g,u)),v=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:y}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:y=0}=ss(t,e),S=Mx(y),E=c[g?m==="floating"?"reference":"floating":m],w=al(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),A=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),D=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},C=al(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:O,strategy:u}):A);return{top:(w.top-C.top+S.top)/D.y,bottom:(C.bottom-w.bottom+S.bottom)/D.y,left:(w.left-C.left+S.left)/D.x,right:(C.right-w.right+S.right)/D.x}}const o6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ss(e,t)||{};if(d==null)return{};const m=Mx(h),g={x:n,y:r},y=Ld(i),S=Rd(y),v=await a.getDimensions(d),E=y==="y",w=E?"top":"left",A=E?"bottom":"right",O=E?"clientHeight":"clientWidth",D=o.reference[S]+o.reference[y]-g[y]-o.floating[S],C=g[y]-o.reference[y],L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let j=L?L[O]:0;(!j||!await(a.isElement==null?void 0:a.isElement(L)))&&(j=c.floating[O]||o.floating[S]);const F=D/2-C/2,Y=j/2-v[S]/2-1,ee=_r(m[w],Y),te=_r(m[A],Y),me=ee,de=j-v[S]-te,le=j/2-v[S]/2+F,re=$d(me,le,de),ie=!u.arrow&&os(i)!=null&&le!==re&&o.reference[S]/2-(le<me?ee:te)-v[S]/2<0,B=ie?le<me?le-me:le-de:0;return{[y]:g[y]+B,data:{[y]:re,centerOffset:le-re-B,...ie&&{alignmentOffset:B}},reset:ie}}}),a6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...E}=ss(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),A=li(c),O=Ir(c)===c,D=await(u.isRTL==null?void 0:u.isRTL(d.floating)),C=g||(O||!v?[ol(c)]:t6(c)),L=S!=="none";!g&&L&&C.push(...r6(c,v,S,D));const j=[c,...C],F=await kd(t,E),Y=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&Y.push(F[w]),m){const le=e6(i,a,D);Y.push(F[le[0]],F[le[1]])}if(ee=[...ee,{placement:i,overflows:Y}],!Y.every(le=>le<=0)){var te,me;const le=(((te=o.flip)==null?void 0:te.index)||0)+1,re=j[le];if(re)return{data:{index:le,overflows:ee},reset:{placement:re}};let ie=(me=ee.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:me.placement;if(!ie)switch(y){case"bestFit":{var de;const B=(de=ee.filter(U=>{if(L){const H=li(U.placement);return H===A||H==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(H=>H>0).reduce((H,M)=>H+M,0)]).sort((U,H)=>U[1]-H[1])[0])==null?void 0:de[0];B&&(ie=B);break}case"initialPlacement":ie=c;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};async function l6(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=os(n),u=li(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ss(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:g*d}:{x:g*d,y:y*h}}const c6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await l6(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},u6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:E=>{let{x:w,y:A}=E;return{x:w,y:A}}},...u}=ss(e,t),d={x:n,y:r},h=await kd(t,u),m=li(Ir(i)),g=Ox(m);let y=d[g],S=d[m];if(o){const E=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=y+h[E],O=y-h[w];y=$d(A,y,O)}if(a){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=S+h[E],O=S-h[w];S=$d(A,S,O)}const v=c.fn({...t,[g]:y,[m]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:o,[m]:a}}}}}},f6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ss(e,t),h=await kd(t,d),m=Ir(i),g=os(i),y=li(i)==="y",{width:S,height:v}=o.floating;let E,w;m==="top"||m==="bottom"?(E=m,w=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,E=g==="end"?"top":"bottom");const A=v-h.top-h.bottom,O=S-h.left-h.right,D=_r(v-h[E],A),C=_r(S-h[w],O),L=!t.middlewareData.shift;let j=D,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=A),L&&!g){const ee=Yt(h.left,0),te=Yt(h.right,0),me=Yt(h.top,0),de=Yt(h.bottom,0);y?F=S-2*(ee!==0||te!==0?ee+te:Yt(h.left,h.right)):j=v-2*(me!==0||de!==0?me+de:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const Y=await a.getDimensions(c.floating);return S!==Y.width||v!==Y.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=il(n)!==o||il(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function as(e){const t=Fd(e);if(!kt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let a=(o?il(n.width):n.width)/r,c=(o?il(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const d6=Fn(0);function Dx(e){const t=Nt(e);return!nl()||!t.visualViewport?d6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=Fn(1);t&&(r?qe(r)&&(a=as(r)):a=as(e));const c=h6(o,n,r)?Dx(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const g=Nt(o),y=r&&qe(r)?Nt(r):r;let S=g,v=Id(S);for(;v&&r&&y!==S;){const E=as(v),w=v.getBoundingClientRect(),A=on(v),O=w.left+(v.clientLeft+parseFloat(A.paddingLeft))*E.x,D=w.top+(v.clientTop+parseFloat(A.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,m*=E.y,u+=O,d+=D,S=Nt(v),v=Id(S)}}return al({width:h,height:m,x:u,y:d})}function jd(e,t){const n=rl(e).scrollLeft;return t?t.left+n:ci(kn(e)).left+n}function $x(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:jd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function m6(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?tl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=kt(r);if((m||!m&&!o)&&((rs(r)!=="body"||_o(a))&&(u=rl(r)),kt(r))){const y=ci(r);d=as(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const g=a&&!m&&!o?$x(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-u.scrollTop*d.y+h.y+g.y}}function p6(e){return Array.from(e.getClientRects())}function g6(e){const t=kn(e),n=rl(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function y6(e,t){const n=Nt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=nl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function v6(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?as(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=y6(e,n);else if(t==="document")r=g6(kn(e));else if(qe(t))r=v6(t,n);else{const i=Dx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return al(r)}function Lx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Lx(n,t)}function b6(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(c=>qe(c)&&rs(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=_d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_o(a)&&!u&&Lx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function x6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?tl(t)?[]:b6(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function w6(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function S6(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=ci(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((rs(t)!=="body"||_o(i))&&(c=rl(t)),r){const g=ci(t,!0,o,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&(u.x=jd(i));const d=i&&!r&&!o?$x(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Vd(e){return on(e).position==="static"}function Nx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Nt(e);if(tl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Vd(i))return i;i=Qn(i)}return n}let r=Nx(e,t);for(;r&&W5(r)&&Vd(r);)r=Nx(r,t);return r&&Jn(r)&&Vd(r)&&!_d(r)?n:r||z5(e)||n}const T6=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:S6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function E6(e){return on(e).direction==="rtl"}const C6={convertOffsetParentRelativeRectToViewportRelativeRect:m6,getDocumentElement:kn,getClippingRect:x6,getOffsetParent:kx,getElementRects:T6,getClientRects:p6,getDimensions:w6,getScale:as,isElement:qe,isRTL:E6};function Fx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P6(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:y}=d;if(c||t(),!g||!y)return;const S=sl(m),v=sl(i.clientWidth-(h+g)),E=sl(i.clientHeight-(m+y)),w=sl(h),O={rootMargin:-S+"px "+-v+"px "+-E+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let D=!0;function C(L){const j=L[0].intersectionRatio;if(j!==u){if(!D)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Fx(d,e.getBoundingClientRect())&&a(),D=!1}try{n=new IntersectionObserver(C,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,O)}n.observe(e)}return a(!0),o}function ls(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Mr(d):[],...Mr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?P6(d,n):null;let g=-1,y=null;a&&(y=new ResizeObserver(w=>{let[A]=w;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,v=u?ci(e):null;u&&E();function E(){const w=ci(e);v&&!Fx(v,w)&&n(),v=w,S=requestAnimationFrame(E)}return n(),()=>{var w;h.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const A6=c6,O6=u6,M6=a6,_6=f6,jx=o6,I6=(e,t,n)=>{const r=new Map,i={platform:C6,...n},o={...i.platform,_c:r};return s6(e,t,{...i,platform:o})};var ll=typeof document<"u"?I.useLayoutEffect:I.useEffect;function cl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!cl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Bd(e){const t=Z.useRef(e);return ll(()=>{t.current=e}),t}function D6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=Z.useState(r);cl(g,r)||y(r);const[S,v]=Z.useState(null),[E,w]=Z.useState(null),A=Z.useCallback(U=>{U!==L.current&&(L.current=U,v(U))},[]),O=Z.useCallback(U=>{U!==j.current&&(j.current=U,w(U))},[]),D=o||S,C=a||E,L=Z.useRef(null),j=Z.useRef(null),F=Z.useRef(h),Y=u!=null,ee=Bd(u),te=Bd(i),me=Bd(d),de=Z.useCallback(()=>{if(!L.current||!j.current)return;const U={placement:t,strategy:n,middleware:g};te.current&&(U.platform=te.current),I6(L.current,j.current,U).then(H=>{const M={...H,isPositioned:me.current!==!1};le.current&&!cl(F.current,M)&&(F.current=M,fT.flushSync(()=>{m(M)}))})},[g,t,n,te,me]);ll(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[d]);const le=Z.useRef(!1);ll(()=>(le.current=!0,()=>{le.current=!1}),[]),ll(()=>{if(D&&(L.current=D),C&&(j.current=C),D&&C){if(ee.current)return ee.current(D,C,de);de()}},[D,C,de,ee,Y]);const re=Z.useMemo(()=>({reference:L,floating:j,setReference:A,setFloating:O}),[A,O]),ie=Z.useMemo(()=>({reference:D,floating:C}),[D,C]),B=Z.useMemo(()=>{const U={position:n,left:0,top:0};if(!ie.floating)return U;const H=Bx(ie.floating,h.x),M=Bx(ie.floating,h.y);return c?{...U,transform:"translate("+H+"px, "+M+"px)",...Vx(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:M}},[n,c,ie.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:de,refs:re,elements:ie,floatingStyles:B}),[h,de,re,ie,B])}const $6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jx({element:r.current,padding:i}).fn(n):{}:r?jx({element:r,padding:i}).fn(n):{}}}},cs=(e,t)=>({...A6(e),options:[e,t]}),us=(e,t)=>({...O6(e),options:[e,t]}),fs=(e,t)=>({...M6(e),options:[e,t]}),ul=(e,t)=>({..._6(e),options:[e,t]}),$o=(e,t)=>({...$6(e),options:[e,t]}),Ux={...Z},R6=Ux.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return R6(()=>{t.current=e}),Z.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Dr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Wx=!1,L6=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+L6++;function N6(){const[e,t]=Z.useState(()=>Wx?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),Z.useEffect(()=>{Wx=!0},[]),e}const Gx=Ux.useId||N6;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function k6(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function F6(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const j6=Z.createContext(null),V6=Z.createContext(null),Wd=()=>{var e;return((e=Z.useContext(j6))==null?void 0:e.id)||null},zd=()=>Z.useContext(V6);function Gd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function ui(e){const t=I.useRef(e);return Dr(()=>{t.current=e}),t}const Yx=Gd("safe-polygon");function Yd(e,t,n){return n&&!Do(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function B6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,y=zd(),S=Wd(),v=ui(d),E=ui(u),w=ui(n),A=Z.useRef(),O=Z.useRef(-1),D=Z.useRef(),C=Z.useRef(-1),L=Z.useRef(!0),j=Z.useRef(!1),F=Z.useRef(()=>{}),Y=Z.useRef(!1),ee=Z.useCallback(()=>{var B;const U=(B=i.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[i]);Z.useEffect(()=>{if(!c)return;function B(U){let{open:H}=U;H||(an(O),an(C),L.current=!0,Y.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[c,o]),Z.useEffect(()=>{if(!c||!v.current||!n)return;function B(H){ee()&&r(!1,H,"hover")}const U=ai(a.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[a.floating,n,r,c,v,ee]);const te=Z.useCallback(function(B,U,H){U===void 0&&(U=!0),H===void 0&&(H="hover");const M=Yd(E.current,"close",A.current);M&&!D.current?(an(O),O.current=window.setTimeout(()=>r(!1,B,H),M)):U&&(an(O),r(!1,B,H))},[E,r]),me=er(()=>{F.current(),D.current=void 0}),de=er(()=>{if(j.current){const B=ai(a.floating).body;B.style.pointerEvents="",B.removeAttribute(Yx),j.current=!1}}),le=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function B(N){if(an(O),L.current=!1,h&&!Do(A.current)||m>0&&!Yd(E.current,"open"))return;const K=Yd(E.current,"open",A.current);K?O.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function U(N){if(le())return;F.current();const K=ai(a.floating);if(an(C),Y.current=!1,v.current&&i.current.floatingContext){n||an(O),D.current=v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N,!0,"safe-polygon")}});const ue=D.current;K.addEventListener("mousemove",ue),F.current=()=>{K.removeEventListener("mousemove",ue)};return}(A.current==="touch"?!Io(a.floating,N.relatedTarget):!0)&&te(N)}function H(N){le()||i.current.floatingContext&&(v.current==null||v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N)}})(N))}if(qe(a.domReference)){var M;const N=a.domReference;return n&&N.addEventListener("mouseleave",H),(M=a.floating)==null||M.addEventListener("mouseleave",H),g&&N.addEventListener("mousemove",B,{once:!0}),N.addEventListener("mouseenter",B),N.addEventListener("mouseleave",U),()=>{var K;n&&N.removeEventListener("mouseleave",H),(K=a.floating)==null||K.removeEventListener("mouseleave",H),g&&N.removeEventListener("mousemove",B),N.removeEventListener("mouseenter",B),N.removeEventListener("mouseleave",U)}}},[a,c,e,h,m,g,te,me,de,r,n,w,y,E,v,i,le]),Dr(()=>{var B;if(c&&n&&(B=v.current)!=null&&B.__options.blockPointerEvents&&ee()){j.current=!0;const H=a.floating;if(qe(a.domReference)&&H){var U;const M=ai(a.floating).body;M.setAttribute(Yx,"");const N=a.domReference,K=y==null||(U=y.nodesRef.current.find(Q=>Q.id===S))==null||(U=U.context)==null?void 0:U.elements.floating;return K&&(K.style.pointerEvents=""),M.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[c,n,S,a,y,v,ee]),Dr(()=>{n||(A.current=void 0,Y.current=!1,me(),de())},[n,me,de]),Z.useEffect(()=>()=>{me(),an(O),an(C),de()},[c,a.domReference,me,de]);const re=Z.useMemo(()=>{function B(U){A.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:H}=U;function M(){!L.current&&!w.current&&r(!0,H,"hover")}h&&!Do(A.current)||n||m===0||Y.current&&U.movementX**2+U.movementY**2<2||(an(C),A.current==="touch"?M():(Y.current=!0,C.current=window.setTimeout(M,m)))}}},[h,r,n,w,m]),ie=Z.useMemo(()=>({onMouseEnter(){an(O)},onMouseLeave(B){le()||te(B.nativeEvent,!1)}}),[te,le]);return Z.useMemo(()=>c?{reference:re,floating:ie}:{},[c,re,ie])}function Hd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const U6="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function Ro(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,g=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(v){g.current=v.pointerType},onMouseDown(v){const E=g.current;v.button===0&&c!=="click"&&(Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,v.nativeEvent,"click"):(v.preventDefault(),r(!0,v.nativeEvent,"click"))))},onClick(v){const E=g.current;if(c==="mousedown"&&g.current){g.current=void 0;return}Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,v.nativeEvent,"click"):r(!0,v.nativeEvent,"click"))},onKeyDown(v){g.current=void 0,!(v.defaultPrevented||!h||Hx(v))&&(v.key===" "&&!qx(o)&&(v.preventDefault(),y.current=!0),v.key==="Enter"&&r(!(n&&u),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!h||Hx(v)||qx(o)||v.key===" "&&y.current&&(y.current=!1,r(!(n&&u),v.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Z.useMemo(()=>a?{reference:S}:{},[a,S])}const W6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},z6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function ds(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:y,capture:S}=t,v=zd(),E=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?E:u,A=Z.useRef(!1),O=Z.useRef(!1),{escapeKey:D,outsidePress:C}=Kx(y),{escapeKey:L,outsidePress:j}=Kx(S),F=Z.useRef(!1),Y=er(re=>{var ie;if(!n||!a||!c||re.key!=="Escape"||F.current)return;const B=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,U=v?Hd(v.nodesRef.current,B):[];if(!D&&(re.stopPropagation(),U.length>0)){let H=!0;if(U.forEach(M=>{var N;if((N=M.context)!=null&&N.open&&!M.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,K5(re)?re.nativeEvent:re,"escape-key")}),ee=er(re=>{var ie;const B=()=>{var U;Y(re),(U=is(re))==null||U.removeEventListener("keydown",B)};(ie=is(re))==null||ie.addEventListener("keydown",B)}),te=er(re=>{var ie;const B=A.current;A.current=!1;const U=O.current;if(O.current=!1,d==="click"&&U||B||typeof w=="function"&&!w(re))return;const H=is(re),M="["+Gd("inert")+"]",N=ai(i.floating).querySelectorAll(M);let K=qe(H)?H:null;for(;K&&!Jn(K);){const ce=Qn(K);if(Jn(ce)||!qe(ce))break;K=ce}if(N.length&&qe(H)&&!X5(H)&&!Io(H,i.floating)&&Array.from(N).every(ce=>!Io(K,ce)))return;if(kt(H)&&le){const ce=Jn(H),he=on(H),oe=/auto|scroll/,ge=ce||oe.test(he.overflowX),Ce=ce||oe.test(he.overflowY),Ue=ge&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ne=Ce&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,ye=he.direction==="rtl",Ne=ne&&(ye?re.offsetX<=H.offsetWidth-H.clientWidth:re.offsetX>H.clientWidth),ft=Ue&&re.offsetY>H.clientHeight;if(Ne||ft)return}const Q=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,ue=v&&Hd(v.nodesRef.current,Q).some(ce=>{var he;return Dd(re,(he=ce.context)==null?void 0:he.elements.floating)});if(Dd(re,i.floating)||Dd(re,i.domReference)||ue)return;const X=v?Hd(v.nodesRef.current,Q):[];if(X.length>0){let ce=!0;if(X.forEach(he=>{var oe;if((oe=he.context)!=null&&oe.open&&!he.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}r(!1,re,"outside-press")}),me=er(re=>{var ie;const B=()=>{var U;te(re),(U=is(re))==null||U.removeEventListener(d,B)};(ie=is(re))==null||ie.addEventListener(d,B)});Z.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=D,o.current.__outsidePressBubbles=C;let re=-1;function ie(N){r(!1,N,"ancestor-scroll")}function B(){window.clearTimeout(re),F.current=!0}function U(){re=window.setTimeout(()=>{F.current=!1},nl()?5:0)}const H=ai(i.floating);c&&(H.addEventListener("keydown",L?ee:Y,L),H.addEventListener("compositionstart",B),H.addEventListener("compositionend",U)),w&&H.addEventListener(d,j?me:te,j);let M=[];return g&&(qe(i.domReference)&&(M=Mr(i.domReference)),qe(i.floating)&&(M=M.concat(Mr(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(M=M.concat(Mr(i.reference.contextElement)))),M=M.filter(N=>{var K;return N!==((K=H.defaultView)==null?void 0:K.visualViewport)}),M.forEach(N=>{N.addEventListener("scroll",ie,{passive:!0})}),()=>{c&&(H.removeEventListener("keydown",L?ee:Y,L),H.removeEventListener("compositionstart",B),H.removeEventListener("compositionend",U)),w&&H.removeEventListener(d,j?me:te,j),M.forEach(N=>{N.removeEventListener("scroll",ie)}),window.clearTimeout(re)}},[o,i,c,w,d,n,r,g,a,D,C,Y,L,ee,te,j,me]),Z.useEffect(()=>{A.current=!1},[w,d]);const de=Z.useMemo(()=>({onKeyDown:Y,...h&&{[W6[m]]:re=>{r(!1,re.nativeEvent,"reference-press")},...m!=="click"&&{onClick(re){r(!1,re.nativeEvent,"reference-press")}}}}),[Y,r,h,m]),le=Z.useMemo(()=>({onKeyDown:Y,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[z6[d]]:()=>{A.current=!0}}),[Y,d]);return Z.useMemo(()=>a?{reference:de,floating:le}:{},[a,de,le])}function G6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=Z.useRef({}),[a]=Z.useState(()=>F6()),c=Wd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&k6("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Z.useState(r.reference),h=er((y,S,v)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:v,nested:c}),n==null||n(y,S,v)}),m=Z.useMemo(()=>({setPositionReference:d}),[]),g=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function hs(e){e===void 0&&(e={});const{nodeId:t}=e,n=G6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||o,m=Z.useRef(null),g=zd();Dr(()=>{h&&(m.current=h)},[h]);const y=D6({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(O=>{const D=qe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;u(D),y.refs.setReference(D)},[y.refs]),v=Z.useCallback(O=>{(qe(O)||O===null)&&(m.current=O,a(O)),(qe(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!qe(O))&&y.refs.setReference(O)},[y.refs]),E=Z.useMemo(()=>({...y.refs,setReference:v,setPositionReference:S,domReference:m}),[y.refs,v,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),A=Z.useMemo(()=>({...y,...r,refs:E,elements:w,nodeId:t}),[y,E,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=A;const O=g==null?void 0:g.nodesRef.current.find(D=>D.id===t);O&&(O.context=A)}),Z.useMemo(()=>({...y,context:A,refs:E,elements:w}),[y,E,w,A])}function Y6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.useEffect(()=>{if(!c)return;const y=Nt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(ai(a.domReference))&&(d.current=!0)}function v(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",v,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",v,!0)}},[a.domReference,n,c]),Z.useEffect(()=>{if(!c)return;function y(S){let{reason:v}=S;(v==="reference-press"||v==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),Z.useEffect(()=>()=>{an(h)},[]);const g=Z.useMemo(()=>({onPointerDown(y){G5(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=is(y.nativeEvent);if(u&&qe(S))try{if(Y5()&&H5())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,v=y.nativeEvent,E=qe(S)&&S.hasAttribute(Gd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const A=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&A===a.domReference||Io((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,A)||Io(a.domReference,A)||E||r(!1,v,"focus")})}}),[o,a.domReference,r,u]);return Z.useMemo(()=>c?{reference:g}:{},[c,g])}const Xx="active",Zx="selected";function qd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[U6]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var g,y=arguments.length,S=new Array(y),v=0;v<y;v++)S[v]=arguments[v];return(g=r.get(d))==null?void 0:g.map(E=>E(...S)).find(E=>E!==void 0)}}}else a[d]=h}),a),{})}}function ms(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Z.useCallback(c=>qd(c,e,"reference"),t),o=Z.useCallback(c=>qd(c,e,"floating"),n),a=Z.useCallback(c=>qd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const H6=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function q6(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=H6.get(a))!=null?n:a,u=Gx(),h=Wd()!=null,m=Z.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),g=Z.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=Z.useCallback(S=>{let{active:v,selected:E}=S;const w={role:"option",...v&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":v&&E};case"combobox":return{...w,...v&&{"aria-selected":!0}}}return{}},[i,a]);return Z.useMemo(()=>o?{reference:m,floating:g,item:y}:{},[o,m,g,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ps(e,t){return typeof e=="function"?e(t):e}function K6(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function X6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Z.useState("unmounted"),d=K6(n,a);return!d&&c==="close"&&u("unmounted"),Dr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function Lo(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Z.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,g=(h?a:a.close)||0,[y,S]=Z.useState(()=>({...ps(o,d),...ps(n,d)})),{isMounted:v,status:E}=X6(e,{duration:a}),w=ui(n),A=ui(r),O=ui(i),D=ui(o);return Dr(()=>{const C=ps(w.current,d),L=ps(O.current,d),j=ps(D.current,d),F=ps(A.current,d)||Object.keys(C).reduce((Y,ee)=>(Y[ee]="",Y),{});if(E==="initial"&&S(Y=>({transitionProperty:Y.transitionProperty,...j,...C})),E==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...j,...F}),E==="close"){const Y=L||C;S({transitionProperty:Object.keys(Y).map(Jx).join(","),transitionDuration:g+"ms",...j,...Y})}},[g,O,w,A,D,m,E,d]),{isMounted:v,styles:y}}const gs=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:g,y,strategy:S,refs:v,context:E}=hs({strategy:a,open:d,onOpenChange:j=>{j||m()},middleware:[cs(c),fs(),us({padding:u})],whileElementsMounted:ls,placement:i}),w=Ro(E),A=ds(E),{getReferenceProps:O,getFloatingProps:D}=ms([w,A]),{isMounted:C,styles:L}=Lo(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return x.jsxs("div",{className:"relative",children:[x.jsx("div",{ref:v.setReference,...O(),className:"reference-element",children:r}),C&&x.jsx("div",{ref:v.setFloating,style:{position:S,top:y??0,left:g??0,...L,zIndex:9999},...D(),className:"floating-element",children:x.jsx(ys,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},Qx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},Z6=({selectedPeriod:e,handlePeriodChange:t})=>x.jsxs("div",{className:"flex border border-blue-100 rounded-xl p-6 gap-2",children:[x.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),x.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]}),J6=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>x.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
|
|
663
|
+
*/const j5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},V5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},B5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},U5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},W5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function el(){return typeof window<"u"}function rs(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return el()?e instanceof Node||e instanceof Nt(e).Node:!1}function qe(e){return el()?e instanceof Element||e instanceof Nt(e).Element:!1}function kt(e){return el()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Md(e){return!el()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function z5(e){return["table","td","th"].includes(rs(e))}function tl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _d(e){const t=nl(),n=qe(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function G5(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(_d(t))return t;if(tl(t))return null;t=Qn(t)}return null}function nl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(rs(e))}function on(e){return Nt(e).getComputedStyle(e)}function rl(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(rs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Md(e)&&e.host||kn(e);return Md(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&_o(t)?t:Sx(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(i);if(o){const c=Id(a);return t.concat(a,a.visualViewport||[],_o(i)?i:[],c&&n?Mr(c):[])}return t.concat(i,Mr(i,[],n))}function Id(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Io(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Md(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Y5(e){return K5()?!1:!Px()&&e.width===0&&e.height===0||Px()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function H5(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function q5(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function K5(){return Cx().includes("jsdom/")}function Do(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function X5(e){return"nativeEvent"in e}function Z5(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function is(e){return"composedPath"in e?e.composedPath()[0]:e.target}const J5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(J5)}const _r=Math.min,Yt=Math.max,il=Math.round,sl=Math.floor,Fn=e=>({x:e,y:e}),Q5={left:"right",right:"left",bottom:"top",top:"bottom"},e6={start:"end",end:"start"};function $d(e,t,n){return Yt(e,_r(t,n))}function ss(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Rd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Ox(li(e))}function t6(e,t,n){n===void 0&&(n=!1);const r=os(e),i=Ld(e),o=Rd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ol(a)),[a,ol(a)]}function n6(e){const t=ol(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>e6[t])}function r6(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function i6(e,t,n,r){const i=os(e);let o=r6(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Nd)))),o}function ol(e){return e.replace(/left|right|bottom|top/g,t=>Q5[t])}function s6(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?s6(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _x(e,t,n){let{reference:r,floating:i}=e;const o=li(t),a=Ld(t),c=Rd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(os(t)){case"start":y[a]-=g*(n&&d?-1:1);break;case"end":y[a]+=g*(n&&d?-1:1);break}return y}const o6=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),g=r,y={},S=0;for(let v=0;v<c.length;v++){const{name:E,fn:w}=c[v],{x:P,y:O,data:$,reset:A}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=P??h,m=O??m,y={...y,[E]:{...y[E],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(g=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=_x(d,g,u)),v=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:y}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:y=0}=ss(t,e),S=Mx(y),E=c[g?m==="floating"?"reference":"floating":m],w=al(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),P=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},A=al(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:P,offsetParent:O,strategy:u}):P);return{top:(w.top-A.top+S.top)/$.y,bottom:(A.bottom-w.bottom+S.bottom)/$.y,left:(w.left-A.left+S.left)/$.x,right:(A.right-w.right+S.right)/$.x}}const a6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ss(e,t)||{};if(d==null)return{};const m=Mx(h),g={x:n,y:r},y=Ld(i),S=Rd(y),v=await a.getDimensions(d),E=y==="y",w=E?"top":"left",P=E?"bottom":"right",O=E?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[y]-g[y]-o.floating[S],A=g[y]-o.reference[y],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let j=R?R[O]:0;(!j||!await(a.isElement==null?void 0:a.isElement(R)))&&(j=c.floating[O]||o.floating[S]);const F=$/2-A/2,Y=j/2-v[S]/2-1,Q=_r(m[w],Y),te=_r(m[P],Y),me=Q,de=j-v[S]-te,le=j/2-v[S]/2+F,re=$d(me,le,de),ie=!u.arrow&&os(i)!=null&&le!==re&&o.reference[S]/2-(le<me?Q:te)-v[S]/2<0,B=ie?le<me?le-me:le-de:0;return{[y]:g[y]+B,data:{[y]:re,centerOffset:le-re-B,...ie&&{alignmentOffset:B}},reset:ie}}}),l6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...E}=ss(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),P=li(c),O=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=g||(O||!v?[ol(c)]:n6(c)),R=S!=="none";!g&&R&&A.push(...i6(c,v,S,$));const j=[c,...A],F=await kd(t,E),Y=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&Y.push(F[w]),m){const le=t6(i,a,$);Y.push(F[le[0]],F[le[1]])}if(Q=[...Q,{placement:i,overflows:Y}],!Y.every(le=>le<=0)){var te,me;const le=(((te=o.flip)==null?void 0:te.index)||0)+1,re=j[le];if(re)return{data:{index:le,overflows:Q},reset:{placement:re}};let ie=(me=Q.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:me.placement;if(!ie)switch(y){case"bestFit":{var de;const B=(de=Q.filter(U=>{if(R){const H=li(U.placement);return H===P||H==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(H=>H>0).reduce((H,M)=>H+M,0)]).sort((U,H)=>U[1]-H[1])[0])==null?void 0:de[0];B&&(ie=B);break}case"initialPlacement":ie=c;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};async function c6(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=os(n),u=li(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ss(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:g*d}:{x:g*d,y:y*h}}const u6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await c6(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},f6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:E=>{let{x:w,y:P}=E;return{x:w,y:P}}},...u}=ss(e,t),d={x:n,y:r},h=await kd(t,u),m=li(Ir(i)),g=Ox(m);let y=d[g],S=d[m];if(o){const E=g==="y"?"top":"left",w=g==="y"?"bottom":"right",P=y+h[E],O=y-h[w];y=$d(P,y,O)}if(a){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",P=S+h[E],O=S-h[w];S=$d(P,S,O)}const v=c.fn({...t,[g]:y,[m]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:o,[m]:a}}}}}},d6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ss(e,t),h=await kd(t,d),m=Ir(i),g=os(i),y=li(i)==="y",{width:S,height:v}=o.floating;let E,w;m==="top"||m==="bottom"?(E=m,w=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,E=g==="end"?"top":"bottom");const P=v-h.top-h.bottom,O=S-h.left-h.right,$=_r(v-h[E],P),A=_r(S-h[w],O),R=!t.middlewareData.shift;let j=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=P),R&&!g){const Q=Yt(h.left,0),te=Yt(h.right,0),me=Yt(h.top,0),de=Yt(h.bottom,0);y?F=S-2*(Q!==0||te!==0?Q+te:Yt(h.left,h.right)):j=v-2*(me!==0||de!==0?me+de:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const Y=await a.getDimensions(c.floating);return S!==Y.width||v!==Y.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=il(n)!==o||il(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function as(e){const t=Fd(e);if(!kt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let a=(o?il(n.width):n.width)/r,c=(o?il(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const h6=Fn(0);function Dx(e){const t=Nt(e);return!nl()||!t.visualViewport?h6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function m6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=Fn(1);t&&(r?qe(r)&&(a=as(r)):a=as(e));const c=m6(o,n,r)?Dx(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const g=Nt(o),y=r&&qe(r)?Nt(r):r;let S=g,v=Id(S);for(;v&&r&&y!==S;){const E=as(v),w=v.getBoundingClientRect(),P=on(v),O=w.left+(v.clientLeft+parseFloat(P.paddingLeft))*E.x,$=w.top+(v.clientTop+parseFloat(P.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,m*=E.y,u+=O,d+=$,S=Nt(v),v=Id(S)}}return al({width:h,height:m,x:u,y:d})}function jd(e,t){const n=rl(e).scrollLeft;return t?t.left+n:ci(kn(e)).left+n}function $x(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:jd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function p6(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?tl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=kt(r);if((m||!m&&!o)&&((rs(r)!=="body"||_o(a))&&(u=rl(r)),kt(r))){const y=ci(r);d=as(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const g=a&&!m&&!o?$x(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-u.scrollTop*d.y+h.y+g.y}}function g6(e){return Array.from(e.getClientRects())}function y6(e){const t=kn(e),n=rl(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function v6(e,t){const n=Nt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=nl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function b6(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?as(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=v6(e,n);else if(t==="document")r=y6(kn(e));else if(qe(t))r=b6(t,n);else{const i=Dx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return al(r)}function Lx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Lx(n,t)}function x6(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(c=>qe(c)&&rs(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=_d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_o(a)&&!u&&Lx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function w6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?tl(t)?[]:x6(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function S6(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function T6(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=ci(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((rs(t)!=="body"||_o(i))&&(c=rl(t)),r){const g=ci(t,!0,o,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&(u.x=jd(i));const d=i&&!r&&!o?$x(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Vd(e){return on(e).position==="static"}function Nx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Nt(e);if(tl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Vd(i))return i;i=Qn(i)}return n}let r=Nx(e,t);for(;r&&z5(r)&&Vd(r);)r=Nx(r,t);return r&&Jn(r)&&Vd(r)&&!_d(r)?n:r||G5(e)||n}const E6=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:T6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function C6(e){return on(e).direction==="rtl"}const P6={convertOffsetParentRelativeRectToViewportRelativeRect:p6,getDocumentElement:kn,getClippingRect:w6,getOffsetParent:kx,getElementRects:E6,getClientRects:g6,getDimensions:S6,getScale:as,isElement:qe,isRTL:C6};function Fx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function A6(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:y}=d;if(c||t(),!g||!y)return;const S=sl(m),v=sl(i.clientWidth-(h+g)),E=sl(i.clientHeight-(m+y)),w=sl(h),O={rootMargin:-S+"px "+-v+"px "+-E+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(R){const j=R[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Fx(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,O)}n.observe(e)}return a(!0),o}function ls(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Mr(d):[],...Mr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?A6(d,n):null;let g=-1,y=null;a&&(y=new ResizeObserver(w=>{let[P]=w;P&&P.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,v=u?ci(e):null;u&&E();function E(){const w=ci(e);v&&!Fx(v,w)&&n(),v=w,S=requestAnimationFrame(E)}return n(),()=>{var w;h.forEach(P=>{i&&P.removeEventListener("scroll",n),o&&P.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const O6=u6,M6=f6,_6=l6,I6=d6,jx=a6,D6=(e,t,n)=>{const r=new Map,i={platform:P6,...n},o={...i.platform,_c:r};return o6(e,t,{...i,platform:o})};var ll=typeof document<"u"?I.useLayoutEffect:I.useEffect;function cl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!cl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Bd(e){const t=Z.useRef(e);return ll(()=>{t.current=e}),t}function $6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=Z.useState(r);cl(g,r)||y(r);const[S,v]=Z.useState(null),[E,w]=Z.useState(null),P=Z.useCallback(U=>{U!==R.current&&(R.current=U,v(U))},[]),O=Z.useCallback(U=>{U!==j.current&&(j.current=U,w(U))},[]),$=o||S,A=a||E,R=Z.useRef(null),j=Z.useRef(null),F=Z.useRef(h),Y=u!=null,Q=Bd(u),te=Bd(i),me=Bd(d),de=Z.useCallback(()=>{if(!R.current||!j.current)return;const U={placement:t,strategy:n,middleware:g};te.current&&(U.platform=te.current),D6(R.current,j.current,U).then(H=>{const M={...H,isPositioned:me.current!==!1};le.current&&!cl(F.current,M)&&(F.current=M,dT.flushSync(()=>{m(M)}))})},[g,t,n,te,me]);ll(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[d]);const le=Z.useRef(!1);ll(()=>(le.current=!0,()=>{le.current=!1}),[]),ll(()=>{if($&&(R.current=$),A&&(j.current=A),$&&A){if(Q.current)return Q.current($,A,de);de()}},[$,A,de,Q,Y]);const re=Z.useMemo(()=>({reference:R,floating:j,setReference:P,setFloating:O}),[P,O]),ie=Z.useMemo(()=>({reference:$,floating:A}),[$,A]),B=Z.useMemo(()=>{const U={position:n,left:0,top:0};if(!ie.floating)return U;const H=Bx(ie.floating,h.x),M=Bx(ie.floating,h.y);return c?{...U,transform:"translate("+H+"px, "+M+"px)",...Vx(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:M}},[n,c,ie.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:de,refs:re,elements:ie,floatingStyles:B}),[h,de,re,ie,B])}const R6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jx({element:r.current,padding:i}).fn(n):{}:r?jx({element:r,padding:i}).fn(n):{}}}},cs=(e,t)=>({...O6(e),options:[e,t]}),us=(e,t)=>({...M6(e),options:[e,t]}),fs=(e,t)=>({..._6(e),options:[e,t]}),ul=(e,t)=>({...I6(e),options:[e,t]}),$o=(e,t)=>({...R6(e),options:[e,t]}),Ux={...Z},L6=Ux.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return L6(()=>{t.current=e}),Z.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Dr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Wx=!1,N6=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+N6++;function k6(){const[e,t]=Z.useState(()=>Wx?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),Z.useEffect(()=>{Wx=!0},[]),e}const Gx=Ux.useId||k6;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function F6(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function j6(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const V6=Z.createContext(null),B6=Z.createContext(null),Wd=()=>{var e;return((e=Z.useContext(V6))==null?void 0:e.id)||null},zd=()=>Z.useContext(B6);function Gd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function ui(e){const t=I.useRef(e);return Dr(()=>{t.current=e}),t}const Yx=Gd("safe-polygon");function Yd(e,t,n){return n&&!Do(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function U6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,y=zd(),S=Wd(),v=ui(d),E=ui(u),w=ui(n),P=Z.useRef(),O=Z.useRef(-1),$=Z.useRef(),A=Z.useRef(-1),R=Z.useRef(!0),j=Z.useRef(!1),F=Z.useRef(()=>{}),Y=Z.useRef(!1),Q=Z.useCallback(()=>{var B;const U=(B=i.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[i]);Z.useEffect(()=>{if(!c)return;function B(U){let{open:H}=U;H||(an(O),an(A),R.current=!0,Y.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[c,o]),Z.useEffect(()=>{if(!c||!v.current||!n)return;function B(H){Q()&&r(!1,H,"hover")}const U=ai(a.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[a.floating,n,r,c,v,Q]);const te=Z.useCallback(function(B,U,H){U===void 0&&(U=!0),H===void 0&&(H="hover");const M=Yd(E.current,"close",P.current);M&&!$.current?(an(O),O.current=window.setTimeout(()=>r(!1,B,H),M)):U&&(an(O),r(!1,B,H))},[E,r]),me=er(()=>{F.current(),$.current=void 0}),de=er(()=>{if(j.current){const B=ai(a.floating).body;B.style.pointerEvents="",B.removeAttribute(Yx),j.current=!1}}),le=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function B(N){if(an(O),R.current=!1,h&&!Do(P.current)||m>0&&!Yd(E.current,"open"))return;const K=Yd(E.current,"open",P.current);K?O.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function U(N){if(le())return;F.current();const K=ai(a.floating);if(an(A),Y.current=!1,v.current&&i.current.floatingContext){n||an(O),$.current=v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N,!0,"safe-polygon")}});const ue=$.current;K.addEventListener("mousemove",ue),F.current=()=>{K.removeEventListener("mousemove",ue)};return}(P.current==="touch"?!Io(a.floating,N.relatedTarget):!0)&&te(N)}function H(N){le()||i.current.floatingContext&&(v.current==null||v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N)}})(N))}if(qe(a.domReference)){var M;const N=a.domReference;return n&&N.addEventListener("mouseleave",H),(M=a.floating)==null||M.addEventListener("mouseleave",H),g&&N.addEventListener("mousemove",B,{once:!0}),N.addEventListener("mouseenter",B),N.addEventListener("mouseleave",U),()=>{var K;n&&N.removeEventListener("mouseleave",H),(K=a.floating)==null||K.removeEventListener("mouseleave",H),g&&N.removeEventListener("mousemove",B),N.removeEventListener("mouseenter",B),N.removeEventListener("mouseleave",U)}}},[a,c,e,h,m,g,te,me,de,r,n,w,y,E,v,i,le]),Dr(()=>{var B;if(c&&n&&(B=v.current)!=null&&B.__options.blockPointerEvents&&Q()){j.current=!0;const H=a.floating;if(qe(a.domReference)&&H){var U;const M=ai(a.floating).body;M.setAttribute(Yx,"");const N=a.domReference,K=y==null||(U=y.nodesRef.current.find(ee=>ee.id===S))==null||(U=U.context)==null?void 0:U.elements.floating;return K&&(K.style.pointerEvents=""),M.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[c,n,S,a,y,v,Q]),Dr(()=>{n||(P.current=void 0,Y.current=!1,me(),de())},[n,me,de]),Z.useEffect(()=>()=>{me(),an(O),an(A),de()},[c,a.domReference,me,de]);const re=Z.useMemo(()=>{function B(U){P.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:H}=U;function M(){!R.current&&!w.current&&r(!0,H,"hover")}h&&!Do(P.current)||n||m===0||Y.current&&U.movementX**2+U.movementY**2<2||(an(A),P.current==="touch"?M():(Y.current=!0,A.current=window.setTimeout(M,m)))}}},[h,r,n,w,m]),ie=Z.useMemo(()=>({onMouseEnter(){an(O)},onMouseLeave(B){le()||te(B.nativeEvent,!1)}}),[te,le]);return Z.useMemo(()=>c?{reference:re,floating:ie}:{},[c,re,ie])}function Hd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const W6="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function Ro(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,g=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(v){g.current=v.pointerType},onMouseDown(v){const E=g.current;v.button===0&&c!=="click"&&(Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,v.nativeEvent,"click"):(v.preventDefault(),r(!0,v.nativeEvent,"click"))))},onClick(v){const E=g.current;if(c==="mousedown"&&g.current){g.current=void 0;return}Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,v.nativeEvent,"click"):r(!0,v.nativeEvent,"click"))},onKeyDown(v){g.current=void 0,!(v.defaultPrevented||!h||Hx(v))&&(v.key===" "&&!qx(o)&&(v.preventDefault(),y.current=!0),v.key==="Enter"&&r(!(n&&u),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!h||Hx(v)||qx(o)||v.key===" "&&y.current&&(y.current=!1,r(!(n&&u),v.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Z.useMemo(()=>a?{reference:S}:{},[a,S])}const z6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},G6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function ds(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:y,capture:S}=t,v=zd(),E=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?E:u,P=Z.useRef(!1),O=Z.useRef(!1),{escapeKey:$,outsidePress:A}=Kx(y),{escapeKey:R,outsidePress:j}=Kx(S),F=Z.useRef(!1),Y=er(re=>{var ie;if(!n||!a||!c||re.key!=="Escape"||F.current)return;const B=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,U=v?Hd(v.nodesRef.current,B):[];if(!$&&(re.stopPropagation(),U.length>0)){let H=!0;if(U.forEach(M=>{var N;if((N=M.context)!=null&&N.open&&!M.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,X5(re)?re.nativeEvent:re,"escape-key")}),Q=er(re=>{var ie;const B=()=>{var U;Y(re),(U=is(re))==null||U.removeEventListener("keydown",B)};(ie=is(re))==null||ie.addEventListener("keydown",B)}),te=er(re=>{var ie;const B=P.current;P.current=!1;const U=O.current;if(O.current=!1,d==="click"&&U||B||typeof w=="function"&&!w(re))return;const H=is(re),M="["+Gd("inert")+"]",N=ai(i.floating).querySelectorAll(M);let K=qe(H)?H:null;for(;K&&!Jn(K);){const ce=Qn(K);if(Jn(ce)||!qe(ce))break;K=ce}if(N.length&&qe(H)&&!Z5(H)&&!Io(H,i.floating)&&Array.from(N).every(ce=>!Io(K,ce)))return;if(kt(H)&&le){const ce=Jn(H),he=on(H),ae=/auto|scroll/,ge=ce||ae.test(he.overflowX),Ce=ce||ae.test(he.overflowY),Ue=ge&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ne=Ce&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,ye=he.direction==="rtl",Ne=ne&&(ye?re.offsetX<=H.offsetWidth-H.clientWidth:re.offsetX>H.clientWidth),ft=Ue&&re.offsetY>H.clientHeight;if(Ne||ft)return}const ee=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,ue=v&&Hd(v.nodesRef.current,ee).some(ce=>{var he;return Dd(re,(he=ce.context)==null?void 0:he.elements.floating)});if(Dd(re,i.floating)||Dd(re,i.domReference)||ue)return;const X=v?Hd(v.nodesRef.current,ee):[];if(X.length>0){let ce=!0;if(X.forEach(he=>{var ae;if((ae=he.context)!=null&&ae.open&&!he.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}r(!1,re,"outside-press")}),me=er(re=>{var ie;const B=()=>{var U;te(re),(U=is(re))==null||U.removeEventListener(d,B)};(ie=is(re))==null||ie.addEventListener(d,B)});Z.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let re=-1;function ie(N){r(!1,N,"ancestor-scroll")}function B(){window.clearTimeout(re),F.current=!0}function U(){re=window.setTimeout(()=>{F.current=!1},nl()?5:0)}const H=ai(i.floating);c&&(H.addEventListener("keydown",R?Q:Y,R),H.addEventListener("compositionstart",B),H.addEventListener("compositionend",U)),w&&H.addEventListener(d,j?me:te,j);let M=[];return g&&(qe(i.domReference)&&(M=Mr(i.domReference)),qe(i.floating)&&(M=M.concat(Mr(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(M=M.concat(Mr(i.reference.contextElement)))),M=M.filter(N=>{var K;return N!==((K=H.defaultView)==null?void 0:K.visualViewport)}),M.forEach(N=>{N.addEventListener("scroll",ie,{passive:!0})}),()=>{c&&(H.removeEventListener("keydown",R?Q:Y,R),H.removeEventListener("compositionstart",B),H.removeEventListener("compositionend",U)),w&&H.removeEventListener(d,j?me:te,j),M.forEach(N=>{N.removeEventListener("scroll",ie)}),window.clearTimeout(re)}},[o,i,c,w,d,n,r,g,a,$,A,Y,R,Q,te,j,me]),Z.useEffect(()=>{P.current=!1},[w,d]);const de=Z.useMemo(()=>({onKeyDown:Y,...h&&{[z6[m]]:re=>{r(!1,re.nativeEvent,"reference-press")},...m!=="click"&&{onClick(re){r(!1,re.nativeEvent,"reference-press")}}}}),[Y,r,h,m]),le=Z.useMemo(()=>({onKeyDown:Y,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[G6[d]]:()=>{P.current=!0}}),[Y,d]);return Z.useMemo(()=>a?{reference:de,floating:le}:{},[a,de,le])}function Y6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=Z.useRef({}),[a]=Z.useState(()=>j6()),c=Wd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&F6("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Z.useState(r.reference),h=er((y,S,v)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:v,nested:c}),n==null||n(y,S,v)}),m=Z.useMemo(()=>({setPositionReference:d}),[]),g=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function hs(e){e===void 0&&(e={});const{nodeId:t}=e,n=Y6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||o,m=Z.useRef(null),g=zd();Dr(()=>{h&&(m.current=h)},[h]);const y=$6({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(O=>{const $=qe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;u($),y.refs.setReference($)},[y.refs]),v=Z.useCallback(O=>{(qe(O)||O===null)&&(m.current=O,a(O)),(qe(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!qe(O))&&y.refs.setReference(O)},[y.refs]),E=Z.useMemo(()=>({...y.refs,setReference:v,setPositionReference:S,domReference:m}),[y.refs,v,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),P=Z.useMemo(()=>({...y,...r,refs:E,elements:w,nodeId:t}),[y,E,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=P;const O=g==null?void 0:g.nodesRef.current.find($=>$.id===t);O&&(O.context=P)}),Z.useMemo(()=>({...y,context:P,refs:E,elements:w}),[y,E,w,P])}function H6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.useEffect(()=>{if(!c)return;const y=Nt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(ai(a.domReference))&&(d.current=!0)}function v(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",v,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",v,!0)}},[a.domReference,n,c]),Z.useEffect(()=>{if(!c)return;function y(S){let{reason:v}=S;(v==="reference-press"||v==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),Z.useEffect(()=>()=>{an(h)},[]);const g=Z.useMemo(()=>({onPointerDown(y){Y5(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=is(y.nativeEvent);if(u&&qe(S))try{if(H5()&&q5())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,v=y.nativeEvent,E=qe(S)&&S.hasAttribute(Gd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const P=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&P===a.domReference||Io((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,P)||Io(a.domReference,P)||E||r(!1,v,"focus")})}}),[o,a.domReference,r,u]);return Z.useMemo(()=>c?{reference:g}:{},[c,g])}const Xx="active",Zx="selected";function qd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[W6]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var g,y=arguments.length,S=new Array(y),v=0;v<y;v++)S[v]=arguments[v];return(g=r.get(d))==null?void 0:g.map(E=>E(...S)).find(E=>E!==void 0)}}}else a[d]=h}),a),{})}}function ms(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Z.useCallback(c=>qd(c,e,"reference"),t),o=Z.useCallback(c=>qd(c,e,"floating"),n),a=Z.useCallback(c=>qd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const q6=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function K6(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=q6.get(a))!=null?n:a,u=Gx(),h=Wd()!=null,m=Z.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),g=Z.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=Z.useCallback(S=>{let{active:v,selected:E}=S;const w={role:"option",...v&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":v&&E};case"combobox":return{...w,...v&&{"aria-selected":!0}}}return{}},[i,a]);return Z.useMemo(()=>o?{reference:m,floating:g,item:y}:{},[o,m,g,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ps(e,t){return typeof e=="function"?e(t):e}function X6(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function Z6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Z.useState("unmounted"),d=X6(n,a);return!d&&c==="close"&&u("unmounted"),Dr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function Lo(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Z.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,g=(h?a:a.close)||0,[y,S]=Z.useState(()=>({...ps(o,d),...ps(n,d)})),{isMounted:v,status:E}=Z6(e,{duration:a}),w=ui(n),P=ui(r),O=ui(i),$=ui(o);return Dr(()=>{const A=ps(w.current,d),R=ps(O.current,d),j=ps($.current,d),F=ps(P.current,d)||Object.keys(A).reduce((Y,Q)=>(Y[Q]="",Y),{});if(E==="initial"&&S(Y=>({transitionProperty:Y.transitionProperty,...j,...A})),E==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...j,...F}),E==="close"){const Y=R||A;S({transitionProperty:Object.keys(Y).map(Jx).join(","),transitionDuration:g+"ms",...j,...Y})}},[g,O,w,P,$,m,E,d]),{isMounted:v,styles:y}}const gs=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:g,y,strategy:S,refs:v,context:E}=hs({strategy:a,open:d,onOpenChange:j=>{j||m()},middleware:[cs(c),fs(),us({padding:u})],whileElementsMounted:ls,placement:i}),w=Ro(E),P=ds(E),{getReferenceProps:O,getFloatingProps:$}=ms([w,P]),{isMounted:A,styles:R}=Lo(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return b.jsxs("div",{className:"relative",children:[b.jsx("div",{ref:v.setReference,...O(),className:"reference-element",children:r}),A&&b.jsx("div",{ref:v.setFloating,style:{position:S,top:y??0,left:g??0,...R,zIndex:9999},...$(),className:"floating-element",children:b.jsx(ys,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},Qx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},J6=({selectedPeriod:e,handlePeriodChange:t})=>b.jsxs("div",{className:"flex border border-blue-100 rounded-xl p-6 gap-2",children:[b.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),b.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]}),Q6=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>b.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
|
|
664
664
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
665
665
|
* License - https://fontawesome.com/license (Commercial License)
|
|
666
666
|
* Copyright 2024 Fonticons, Inc.
|
|
667
|
-
*/const
|
|
667
|
+
*/const eL={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Kd={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},tL={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r})=>{const[i,o]=I.useState(e),[a,c]=I.useState(e),[u,d]=I.useState(e.getHours()%12||12),[h,m]=I.useState(e.getHours()>=12?"PM":"AM"),[g,y]=I.useState(0),{t:S}=ze(),[v,E]=I.useState(!1),[w,P]=I.useState(!1);I.useEffect(()=>{o(e),c(e),d(e.getHours()%12||12),m(e.getHours()>=12?"PM":"AM")},[e]);const O=()=>{y(-1),setTimeout(()=>{o(II(i))},10)},$=()=>{y(1),setTimeout(()=>{o(sv(i,1))},10)},A=de=>{if(r&&de>r)return;const le=yv(vv(bv(de,0),0),h==="AM"?u%12:u%12+12);c(le),t(le)},R=de=>{d(de);const le=yv(vv(bv(a,0),0),h==="AM"?de%12:de%12+12);c(le),t(le),E(!1)},j=de=>{m(de)},F=()=>{const de=new Date,le=20,re=5,[ie,B]=I.useState(()=>Array.from({length:le+1},(N,K)=>{const ee=new Date(de.getFullYear(),de.getMonth()-K,1);return{name:$n(ee,"MMMM",{locale:Gi}).replace(/^./,ue=>ue.toUpperCase()),index:ee.getMonth(),year:ee.getFullYear(),displayName:`${$n(ee,"MMMM",{locale:Gi}).replace(/^./,ue=>ue.toUpperCase())} ${ee.getFullYear()}`}})),U=I.useRef(null),H=I.useRef(null);I.useEffect(()=>{U.current&&U.current.disconnect(),U.current=new IntersectionObserver(N=>{N[0].isIntersecting&&B(K=>{const ee=K[K.length-1],ue=new Date(ee.year,ee.index-1,1),X=Array.from({length:re},(ce,he)=>{const ae=new Date(ue.getFullYear(),ue.getMonth()-he,1);return{name:$n(ae,"MMMM",{locale:Gi}).replace(/^./,ge=>ge.toUpperCase()),index:ae.getMonth(),year:ae.getFullYear(),displayName:`${$n(ae,"MMMM",{locale:Gi}).replace(/^./,ge=>ge.toUpperCase())} ${ae.getFullYear()}`}});return[...K,...X]})}),H.current&&U.current.observe(H.current)},[ie]);const M=(N,K)=>{const ee=new Date(i);ee.setMonth(N),ee.setFullYear(K),o(ee),P(!1)};return b.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:ie.map((N,K)=>{const ee=K===ie.length-1;return b.jsx("button",{ref:ee?H:null,onClick:()=>M(N.index,N.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${i.getMonth()===N.index&&i.getFullYear()===N.year?"bg-blue-100":""}`,children:N.displayName},`${N.name}-${N.year}-${K}`)})})},Y=()=>b.jsxs("div",{className:"flex justify-between items-center mb-8",children:[b.jsx(gs,{open:w,onClose:()=>P(!1),component:F,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:b.jsxs("button",{onClick:()=>P(!w),className:"hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",children:[b.jsx("h4",{className:"text-header-4",children:$n(i,"MMMM yyyy",{locale:Gi}).replace(/^./,de=>de.toUpperCase())}),b.jsx(Ie,{icon:Kd,className:"w-12 h-12"})]})}),b.jsxs("div",{className:"flex items-center gap-8",children:[b.jsx(uh,{variant:"transparent",color:"gray",icon:U5,onClick:O}),b.jsx(uh,{variant:"transparent",color:"gray",icon:w_,onClick:$})]})]}),Q=()=>{const de=Ui(D_(i)),le=R_(M_(i)),re=I_({start:de,end:le});return b.jsx("div",{className:"grid grid-cols-7 gap-2",children:re.map((ie,B)=>{const U=lv(ie,a),H=MI(ie,i),M=_I(ie),N=r?ie>r:!1;return b.jsx(Ze.div,{className:`
|
|
668
668
|
p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
|
|
669
669
|
${!H||N?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
670
|
${M&&!U?"text-blue-600":""}
|
|
671
|
-
`,onClick:()=>
|
|
671
|
+
`,onClick:()=>A(ie),initial:!1,animate:{backgroundColor:U?"#93C5FD":"transparent",color:U?"#FFFFFF":M?"#2563EB":H&&!N?"#000000":"#9CA3AF"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:H&&!U&&!N?{backgroundColor:"#E5E7EB"}:{},whileTap:H&&!N?{backgroundColor:U?"#7AA5E0":"#D1D5DB"}:{},children:$n(ie,"d")},B)})})},te=()=>{const de=Array.from({length:12},(re,ie)=>ie+1),le=()=>b.jsx("div",{className:"bg-white rounded-lg shadow-lg w-80 max-h-[150px] overflow-y-auto p-4 flex flex-col gap-4",children:de.map(re=>b.jsxs("button",{onClick:()=>R(re),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${re===u?"text-blue-500 font-medium":""}`,children:[String(re).padStart(2,"0"),":00"]},re))});return b.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[b.jsx("h4",{className:"text-body-m font-medium",children:S("time")}),b.jsxs("div",{className:"flex items-center gap-6",children:[b.jsx(gs,{open:v,onClose:()=>E(!1),component:le,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:b.jsx(Q6,{setHourMenuOpen:E,hourMenuOpen:v,selectedHour:u})}),b.jsx(J6,{selectedPeriod:h,handlePeriodChange:j})]})]})},me={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return b.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[Y(),b.jsx(Kn,{initial:!1,mode:"popLayout",children:b.jsx(Ze.div,{variants:me,initial:g===1?"slideNextEnter":g===-1?"slidePrevEnter":!1,animate:"center",exit:g===1?"slideNextExit":"slidePrevExit",className:"w-full",children:Q()},$n(i,"yyyy-MM"))}),n&&te()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,leftSide:d,rightSide:h,...m})=>{const{t:g}=ze();return b.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[b.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),b.jsxs("label",{htmlFor:r,className:`
|
|
672
672
|
flex items-center justify-between gap-8 p-16
|
|
673
673
|
|
|
674
674
|
${i&&"!border-red-500"}
|
|
@@ -684,31 +684,31 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
684
684
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
685
685
|
${u&&"hover:!cursor-pointer"}
|
|
686
686
|
group-disabled:bg-gray-500
|
|
687
|
-
`,children:[d&&d,
|
|
687
|
+
`,children:[d&&d,b.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),b.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&g(i||"",{x:g(r)})})]})},ew=e=>$n(e,"dd/MM/yyyy"),tw=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},nL=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o})=>{const{field:{value:a,onChange:c,onBlur:u},fieldState:{error:d}}=hr.useController({name:t,control:e}),{t:h}=ze(),m=h(t),g=h(i),[y,S]=I.useState(!1),[v,E]=I.useState("");I.useEffect(()=>{a instanceof Date&&!isNaN(a.getTime())?E(ew(a)):E("")},[a]);const w=tw(v),P=$=>{const A=$.replace(/\D/g,"").slice(0,8),R=[];A.length>0&&R.push(A.slice(0,2)),A.length>2&&R.push(A.slice(2,4)),A.length>4&&R.push(A.slice(4,8));const j=R.join("/");if(E(j),S(!1),j.length===10){const F=tw(j);c(F)}},O=()=>{c(null),E("")};return b.jsx(gs,{open:y,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:b.jsx(Xd,{date:w||new Date,onDateChange:$=>{E(ew($)),c($),S(!1)},showTimeSelector:n,maxDate:new Date}),children:b.jsx(Zd,{onBlur:u,name:g||m,label:r,value:v,onFocus:$=>{$.preventDefault(),S(!0)},disabledInput:!0,onChange:$=>P($),placeholder:o,error:d==null?void 0:d.message,rightSide:!!w&&b.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:O})})})},nw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=W5})=>{const c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o==null||o(),r()},{t:m}=ze();return b.jsx(Kn,{children:n&&b.jsx(b.Fragment,{children:b.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:b.jsx(Ze.div,{className:"w-full max-w-sm mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:g=>g.stopPropagation(),children:b.jsxs(ys,{className:"flex flex-col gap-20 p-32",children:[b.jsxs("div",{className:"flex flex-col",children:[b.jsx("div",{className:"flex justify-end",children:b.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),b.jsx("div",{className:"flex justify-center",children:b.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:b.jsx(Ie,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),b.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[b.jsxs("div",{className:"text-center w-full",children:[b.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),b.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),b.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&b.jsx(ko,{size:"lg",onClick:h,variant:"transparent",children:m("cancel")}),b.jsx(ko,{size:"lg",onClick:d,children:m("confirm")})]})]})]})})})})})},rw={duration:.3,ease:[.32,.72,0,1]},rL={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},iL=({isOpen:e})=>b.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:b.jsx(Ie,{icon:V5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),sL=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return b.jsxs(Ze.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[b.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
688
688
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
689
689
|
transition-all duration-200 ease-in-out ${a} focus:outline-none hover:bg-gray-50/50
|
|
690
|
-
flex items-center gap-2 group w-full justify-between`,children:[
|
|
690
|
+
flex items-center gap-2 group w-full justify-between`,children:[b.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),b.jsxs("div",{className:"flex gap-10 items-center",children:[b.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),b.jsx(iL,{isOpen:h})]})]}),b.jsx(Kn,{mode:"wait",children:h&&b.jsx(Ze.div,{...rL,transition:{height:{duration:rw.duration,ease:rw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},oL=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=I.useState(o()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const v=o();c(v);let E;if(v===Ht.LOADING&&u<100){const O=100/(r/100);E=setInterval(()=>{d($=>{const A=Math.min($+O,99),R=Math.max(0,Math.round((100-A)/10));return m(R),A})},100)}else v===Ht.COMPLETE&&u<100&&d(100);return()=>{E&&clearInterval(E)}},[e.loading,e.error,r,o,u]);const g=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const v=e.file_size/1024;return v<1024?`${v.toFixed(1)} KB`:`${(v/1024).toFixed(1)} MB`};return b.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(Ie,{icon:UC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),b.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&b.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:b.jsx(Ie,{icon:BC})}),a===Ht.ERROR&&b.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:b.jsx(Ie,{icon:jC})})]}),b.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?b.jsxs("div",{className:"flex items-center gap-6",children:[b.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),b.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):b.jsxs("div",{className:"text-sm",children:[b.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",b.jsx("span",{className:y(),children:g()})]})}),a===Ht.LOADING&&b.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:b.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},iw=({index:e,label:t,active:n,completed:r})=>b.jsxs("div",{className:"flex items-center gap-8",children:[b.jsx("div",{className:`
|
|
691
691
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
692
692
|
${n&&"border-blue-500! text-blue-500!"}
|
|
693
693
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
694
|
-
`,children:r?
|
|
694
|
+
`,children:r?b.jsx(Ie,{icon:tL,className:`
|
|
695
695
|
text-blue-500
|
|
696
696
|
size-16
|
|
697
|
-
`}):e}),
|
|
697
|
+
`}):e}),b.jsx("h6",{className:`
|
|
698
698
|
text-body-m transition-colors ease-in-out duration-200
|
|
699
699
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
700
700
|
${n&&"font-600"}
|
|
701
701
|
${r&&"font-500"}
|
|
702
|
-
`,children:t})]}),oL=({currentStep:e,steps:t})=>x.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>x.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),aL=({label:e,value:t})=>x.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[x.jsx("h4",{className:"text-body-m font-600",children:e}),x.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),sw=({title:e,children:t,className:n=""})=>x.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[x.jsx("h4",{className:"text-body-m font-600",children:e}),x.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});sw.Entry=aL;const ys=({children:e,className:t,element:n="div"})=>{const r=n;return x.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},lL=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return x.jsx(Kn,{children:e&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:x.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:x.jsx(ys,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:x.jsx(x.Fragment,{})})})})})})},cL={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},uL={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return uL;case"blue":default:return cL}},fL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:x.jsx(Ze.div,{initial:n?!1:{color:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(Kn,{mode:"wait",children:o||a?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o?"text-black":"text-gray-400"}`,children:i(t)})]})},dL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:x.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(Kn,{mode:"wait",children:o||a?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},hL=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,g]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((A,O)=>S(O)?"focus":A.completed?"done":"pending");if(!m)u(w),g(!0),h(null);else{const A=w.findIndex((O,D)=>O!==c[D]);h(A!==-1?A:null),u(w)}},[e,y]);const v=()=>x.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,A)=>{var L;const O=S(A-1)?"focus":(L=e[A-1])!=null&&L.completed?"done":"pending",D=S(A)?"focus":w.completed?"done":"pending",C=m&&d===A;return x.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&x.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${D==="done"||D==="focus"?o:O==="done"||O==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),x.jsx(fL,{status:D,shouldAnimate:C,label:w.label,color:i})]},A)})}),E=()=>x.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,A)=>{const O=S(A)?"focus":w.completed?"done":"pending",D=m&&d===A;return x.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:x.jsx(dL,{status:O,shouldAnimate:D,label:w.label,color:i})},A)})});return t==="horizontal"?x.jsx(E,{}):x.jsx(v,{})},mL=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:g}=ze(),y=t||g,S=()=>{const v=n.findIndex(E=>E.id===r);if(v>=0&&u.current[v]){const E=u.current[v];if(E&&m.current){const w=m.current.getBoundingClientRect(),A=E.getBoundingClientRect();h({left:A.left-w.left,width:A.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const v=()=>{S()};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[r,n]),x.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((v,E)=>x.jsx(hf.div,{ref:w=>{u.current[E]=w},className:"w-full",children:x.jsx($w,{href:v.href,label:c?v.label:"",icon:v.icon,direction:a,isSelected:r===v.id,onClick:()=>i(v.id),variant:e})},v.id)),x.jsx(hf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>$n(e,"dd/MM/yyyy"),pL=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function gL({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1}){const[c,u]=I.useState(!1),[d,h]=I.useState(e?Qd(e):"");I.useEffect(()=>{h(e?Qd(e):"")},[e]);const m=y=>{const S=y.replace(/\D/g,"").slice(0,8),v=[];S.length>0&&v.push(S.slice(0,2)),S.length>2&&v.push(S.slice(2,4)),S.length>4&&v.push(S.slice(4,8));const E=v.join("/");if(h(E),u(!1),E.length===10){const w=pL(E);w&&t(w)}},g=()=>{t(null),h("")};return x.jsx(gs,{open:c,strategy:"fixed",padding:0,offset:0,onClose:()=>u(!1),className:"p-0!",component:x.jsx(Xd,{date:e||new Date,onDateChange:y=>{t(y),h(Qd(y)),u(!1)},showTimeSelector:a,maxDate:new Date}),children:x.jsx(Zd,{name:o,label:n,value:d,onClick:y=>{y.preventDefault(),u(!0)},onChange:y=>m(y),placeholder:r,error:i,rightSide:e&&x.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:g})})})}const yL=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||gf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||gf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(a=>{const c=gf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),x.jsx(x.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return x.jsx(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return x.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return x.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function vL(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function bL(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function xL(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function wL(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return x.jsx(i,{...n})}return r??x.jsx("div",{children:"no content"})}const eh=[];function ow(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=ow(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(x.jsx(mf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(x.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},SL={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>th(e,t,n),loading:(e,t={})=>aw(e,t)},lw=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",g=i*.4+"px",[y,S]=I.useState(!1),v=()=>r?pf(r):o?pf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",E=C=>{try{return C?(new URL(C),!0):!1}catch(L){return console.log(L),!1}},w=()=>E(n)?n:o!=null&&o.image&&E(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",A=()=>r?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:r}):o?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):x.jsx(Ie,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:b_,className:"w-full text-white"}),O=()=>{S(!0)},D=w();return x.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:v()},...c,children:[D&&!y&&x.jsx("img",{src:D,alt:r,className:`
|
|
702
|
+
`,children:t})]}),aL=({currentStep:e,steps:t})=>b.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>b.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),lL=({label:e,value:t})=>b.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[b.jsx("h4",{className:"text-body-m font-600",children:e}),b.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),sw=({title:e,children:t,className:n=""})=>b.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[b.jsx("h4",{className:"text-body-m font-600",children:e}),b.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});sw.Entry=lL;const ys=({children:e,className:t,element:n="div"})=>{const r=n;return b.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},cL=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return b.jsx(Kn,{children:e&&b.jsx(b.Fragment,{children:b.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:b.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:b.jsx(ys,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:b.jsx(b.Fragment,{})})})})})})},uL={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},fL={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return fL;case"blue":default:return uL}},dL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return b.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[b.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:b.jsx(Ze.div,{initial:n?!1:{color:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:b.jsx(Kn,{mode:"wait",children:o||a?b.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:b.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):b.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:b.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),b.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o?"text-black":"text-gray-400"}`,children:i(t)})]})},hL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return b.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[b.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:b.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:b.jsx(Kn,{mode:"wait",children:o||a?b.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:b.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):b.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:b.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),b.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},mL=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,g]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((P,O)=>S(O)?"focus":P.completed?"done":"pending");if(!m)u(w),g(!0),h(null);else{const P=w.findIndex((O,$)=>O!==c[$]);h(P!==-1?P:null),u(w)}},[e,y]);const v=()=>b.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,P)=>{var R;const O=S(P-1)?"focus":(R=e[P-1])!=null&&R.completed?"done":"pending",$=S(P)?"focus":w.completed?"done":"pending",A=m&&d===P;return b.jsxs("div",{className:"flex items-center gap-10 relative",children:[P!==0&&b.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:O==="done"||O==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),b.jsx(dL,{status:$,shouldAnimate:A,label:w.label,color:i})]},P)})}),E=()=>b.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,P)=>{const O=S(P)?"focus":w.completed?"done":"pending",$=m&&d===P;return b.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:b.jsx(hL,{status:O,shouldAnimate:$,label:w.label,color:i})},P)})});return t==="horizontal"?b.jsx(E,{}):b.jsx(v,{})},pL=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:g}=ze(),y=t||g,S=()=>{const v=n.findIndex(E=>E.id===r);if(v>=0&&u.current[v]){const E=u.current[v];if(E&&m.current){const w=m.current.getBoundingClientRect(),P=E.getBoundingClientRect();h({left:P.left-w.left,width:P.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const v=()=>{S()};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[r,n]),b.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((v,E)=>b.jsx(hf.div,{ref:w=>{u.current[E]=w},className:"w-full",children:b.jsx($w,{href:v.href,label:c?v.label:"",icon:v.icon,direction:a,isSelected:r===v.id,onClick:()=>i(v.id),variant:e})},v.id)),b.jsx(hf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>$n(e,"dd/MM/yyyy"),gL=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function yL({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1}){const[c,u]=I.useState(!1),[d,h]=I.useState(e?Qd(e):"");I.useEffect(()=>{h(e?Qd(e):"")},[e]);const m=y=>{const S=y.replace(/\D/g,"").slice(0,8),v=[];S.length>0&&v.push(S.slice(0,2)),S.length>2&&v.push(S.slice(2,4)),S.length>4&&v.push(S.slice(4,8));const E=v.join("/");if(h(E),u(!1),E.length===10){const w=gL(E);w&&t(w)}},g=()=>{t(null),h("")};return b.jsx(gs,{open:c,strategy:"fixed",padding:0,offset:0,onClose:()=>u(!1),className:"p-0!",component:b.jsx(Xd,{date:e||new Date,onDateChange:y=>{t(y),h(Qd(y)),u(!1)},showTimeSelector:a,maxDate:new Date}),children:b.jsx(Zd,{name:o,label:n,value:d,onClick:y=>{y.preventDefault(),u(!0)},onChange:y=>m(y),placeholder:r,error:i,rightSide:e&&b.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:g})})})}const vL=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||gf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||gf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(a=>{const c=gf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),b.jsx(b.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return b.jsx(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return b.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return b.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function bL(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function xL(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function wL(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function SL(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return b.jsx(i,{...n})}return r??b.jsx("div",{children:"no content"})}const eh=[];function ow(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=ow(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(b.jsx(mf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(b.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},TL={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>th(e,t,n),loading:(e,t={})=>aw(e,t)},lw=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",g=i*.4+"px",[y,S]=I.useState(!1),v=()=>r?pf(r):o?pf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",E=A=>{try{return A?(new URL(A),!0):!1}catch(R){return console.log(R),!1}},w=()=>E(n)?n:o!=null&&o.image&&E(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",P=()=>r?b.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:r}):o?b.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):b.jsx(Ie,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:x_,className:"w-full text-white"}),O=()=>{S(!0)},$=w();return b.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:v()},...c,children:[$&&!y&&b.jsx("img",{src:$,alt:r,className:`
|
|
703
703
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
704
704
|
z-10
|
|
705
705
|
${u}
|
|
706
|
-
`,onError:O,...d}),
|
|
706
|
+
`,onError:O,...d}),b.jsx("div",{className:`
|
|
707
707
|
flex items-center justify-center leading-none text-center absolute
|
|
708
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})};function cw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=cw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},fw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},dw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},hw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},TL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",EL={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},CL=(e="filled",t="blue",n="base")=>{const r=tr(TL,EL[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(r,i)},PL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AL={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},OL={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},ML=(e="filled",t="blue",n="base",r="none")=>{const i=tr(PL,AL[n],OL[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(i,o)},_L={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},No=(e="base")=>_L[e],ko=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return x.jsxs("button",{type:"button",className:CL(r,d,i)+" "+a,...c,children:[e&&x.jsx(Ie,{icon:e,className:No(i)}),o,t&&x.jsx(Ie,{icon:t,className:No(i)})]})},mw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?x.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):x.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),pw=({open:e,onClose:t,title:n,children:r,className:i=""})=>{const o={hidden:{opacity:0},visible:{opacity:1}},a={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return x.jsx(Kn,{children:e&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:o,onClick:t,children:x.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:a,initial:"hidden",animate:"visible",exit:"exit",onClick:c=>c.stopPropagation(),children:x.jsxs(ys,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[x.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[x.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&x.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),x.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&x.jsx(mw,{className:"bg-gray-100!"})]}),x.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},IL=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return x.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:x.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,gw;function DL(){if(gw)return nh;gw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,A){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var A=h(w);return u.get(w)||u.set(w,function(D,C){for(var L=0,j=A.length,F=D;L<j-1;){var Y=A[L];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return D;F=F[A[L++]]}F[A[L]]=C})},getter:function(w,A){var O=h(w);return d.get(w)||d.set(w,function(C){for(var L=0,j=O.length;L<j;)if(C!=null||!A)C=C[O[L++]];else return;return C})},join:function(w){return w.reduce(function(A,O){return A+(y(O)||n.test(O)?"["+O+"]":(A?".":"")+O)},"")},forEach:function(w,A,O){g(Array.isArray(w)?w:m(w),A,O)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(A){return A.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function g(w,A,O){var D=w.length,C,L,j,F;for(L=0;L<D;L++)C=w[L],C&&(E(C)&&(C='"'+C+'"'),F=y(C),j=!F&&/^\d+$/.test(C),A.call(O,C,F,j,L,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function v(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||v(w))}return nh}var fi=DL(),rh,yw;function $L(){if(yw)return rh;yw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=$L(),dl={exports:{}},vw;function RL(){if(vw)return dl.exports;vw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||g(i[d],d,new Set);return c;function g(y,S,v){if(v.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){v.add(y);do{var A=w[--S];g(A,m.get(A),v)}while(S);v.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var LL=RL();const NL=_m(LL),kL=Object.prototype.toString,FL=Error.prototype.toString,jL=RegExp.prototype.toString,VL=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",BL=/^Symbol\((.*)\)(.*)$/;function UL(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return UL(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return VL.call(e).replace(BL,"Symbol($1)");const r=kL.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+FL.call(e)+"]":r==="RegExp"?jL.call(e):null}function $r(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,WL=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(t).forEach(o=>{if(Ft.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Sw=Symbol.hasInstance,Tw=Symbol.toStringTag;class Ft extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(WL,(i,o)=>$r(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new Ew(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Tw]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ft)}static[Sw](t){return Ew[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let jn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},jt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},zL={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},GL={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:jn,string:jt,number:zL,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:GL,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return Ft.formatError(jn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class di{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&fi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}di.prototype.__isYupRef=!0;const hi=e=>e==null;function vs(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:g,skipAbsent:y}=e;let{parent:S,context:v,abortEarly:E=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function A(te){return di.isRef(te)?te.getValue(n,S,v):te}function O(te={}){const me=Object.assign({value:n,originalValue:o,label:a.spec.label,path:te.path||r,spec:a.spec,disableStackTrace:te.disableStackTrace||w},m,te.params);for(const le of Object.keys(me))me[le]=A(me[le]);const de=new Ft(Ft.formatError(te.message||g,me),n,me.path,te.type||d,me.disableStackTrace);return de.params=me,de}const D=E?c:u;let C={path:r,parent:S,type:d,from:i.from,createError:O,resolve:A,options:i,originalValue:o,schema:a};const L=te=>{Ft.isError(te)?D(te):te?u(null):D(O())},j=te=>{Ft.isError(te)?D(te):c(te)};if(y&&hi(n))return L(!0);let Y;try{var ee;if(Y=h.call(C,n,C),typeof((ee=Y)==null?void 0:ee.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(L,j)}}catch(te){j(te);return}L(Y)}return t.OPTIONS=e,t}function YL(e,t,n,r=n){let i,o,a;return t?(fi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",g=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[g],e=m?e.spec.types[g]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(di.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function bs(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=bs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,bs(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(bs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=bs(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(jn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=bs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&hi(o))return o;let a=$r(t),c=$r(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
708
|
+
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:P()})]})};function cw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=cw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},fw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},dw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},hw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},EL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",CL={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},PL=(e="filled",t="blue",n="base")=>{const r=tr(EL,CL[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(r,i)},AL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",OL={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},ML={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},_L=(e="filled",t="blue",n="base",r="none")=>{const i=tr(AL,OL[n],ML[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(i,o)},IL={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},No=(e="base")=>IL[e],ko=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return b.jsxs("button",{type:"button",className:PL(r,d,i)+" "+a,...c,children:[e&&b.jsx(Ie,{icon:e,className:No(i)}),o,t&&b.jsx(Ie,{icon:t,className:No(i)})]})},mw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?b.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):b.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),pw=({open:e,onClose:t,title:n,children:r,className:i=""})=>{const o={hidden:{opacity:0},visible:{opacity:1}},a={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return b.jsx(Kn,{children:e&&b.jsx(b.Fragment,{children:b.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:o,onClick:t,children:b.jsx(Ze.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:a,initial:"hidden",animate:"visible",exit:"exit",onClick:c=>c.stopPropagation(),children:b.jsxs(ys,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[b.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[b.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&b.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),b.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&b.jsx(mw,{className:"bg-gray-100!"})]}),b.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},DL=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return b.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:b.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,gw;function $L(){if(gw)return nh;gw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,P){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=P};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var P=h(w);return u.get(w)||u.set(w,function($,A){for(var R=0,j=P.length,F=$;R<j-1;){var Y=P[R];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return $;F=F[P[R++]]}F[P[R]]=A})},getter:function(w,P){var O=h(w);return d.get(w)||d.set(w,function(A){for(var R=0,j=O.length;R<j;)if(A!=null||!P)A=A[O[R++]];else return;return A})},join:function(w){return w.reduce(function(P,O){return P+(y(O)||n.test(O)?"["+O+"]":(P?".":"")+O)},"")},forEach:function(w,P,O){g(Array.isArray(w)?w:m(w),P,O)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(P){return P.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function g(w,P,O){var $=w.length,A,R,j,F;for(R=0;R<$;R++)A=w[R],A&&(E(A)&&(A='"'+A+'"'),F=y(A),j=!F&&/^\d+$/.test(A),P.call(O,A,F,j,R,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function v(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||v(w))}return nh}var fi=$L(),rh,yw;function RL(){if(yw)return rh;yw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=RL(),dl={exports:{}},vw;function LL(){if(vw)return dl.exports;vw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||g(i[d],d,new Set);return c;function g(y,S,v){if(v.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){v.add(y);do{var P=w[--S];g(P,m.get(P),v)}while(S);v.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var NL=LL();const kL=_m(NL),FL=Object.prototype.toString,jL=Error.prototype.toString,VL=RegExp.prototype.toString,BL=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",UL=/^Symbol\((.*)\)(.*)$/;function WL(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return WL(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return BL.call(e).replace(UL,"Symbol($1)");const r=FL.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+jL.call(e)+"]":r==="RegExp"?VL.call(e):null}function $r(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,zL=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(t).forEach(o=>{if(Ft.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Sw=Symbol.hasInstance,Tw=Symbol.toStringTag;class Ft extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(zL,(i,o)=>$r(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new Ew(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Tw]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ft)}static[Sw](t){return Ew[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let jn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},jt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},GL={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YL={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:jn,string:jt,number:GL,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:YL,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return Ft.formatError(jn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class di{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&fi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}di.prototype.__isYupRef=!0;const hi=e=>e==null;function vs(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:g,skipAbsent:y}=e;let{parent:S,context:v,abortEarly:E=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function P(te){return di.isRef(te)?te.getValue(n,S,v):te}function O(te={}){const me=Object.assign({value:n,originalValue:o,label:a.spec.label,path:te.path||r,spec:a.spec,disableStackTrace:te.disableStackTrace||w},m,te.params);for(const le of Object.keys(me))me[le]=P(me[le]);const de=new Ft(Ft.formatError(te.message||g,me),n,me.path,te.type||d,me.disableStackTrace);return de.params=me,de}const $=E?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:O,resolve:P,options:i,originalValue:o,schema:a};const R=te=>{Ft.isError(te)?$(te):te?u(null):$(O())},j=te=>{Ft.isError(te)?$(te):c(te)};if(y&&hi(n))return R(!0);let Y;try{var Q;if(Y=h.call(A,n,A),typeof((Q=Y)==null?void 0:Q.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(R,j)}}catch(te){j(te);return}R(Y)}return t.OPTIONS=e,t}function HL(e,t,n,r=n){let i,o,a;return t?(fi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",g=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[g],e=m?e.spec.types[g]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(di.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function bs(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=bs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,bs(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(bs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=bs(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(jn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=bs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&hi(o))return o;let a=$r(t),c=$r(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
709
709
|
|
|
710
710
|
attempted value: ${a}
|
|
711
|
-
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=v=>{i||(i=!0,n(v,a))},m=v=>{i||(i=!0,r(v,a))},g=o.length,y=[];if(!g)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let v=0;v<o.length;v++){const E=o[v];E(S,h,function(A){A&&(Array.isArray(A)?y.push(...A):y.push(A)),--g<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,g,y)=>this.resolve(h)._validate(d,h,g,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{Ft.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Ft(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Ft.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Ft(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ft.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ft.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):bs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=vs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=vs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=jn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=jn.notNull){return this.nullability(!1,t)}required(t=jn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=jn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=vs(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=xw(t).map(o=>new di(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=vs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=jn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=vs({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=jn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=vs({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=YL(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const HL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function qL(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=HL.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let KL=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,XL=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ZL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,JL="^\\d{4}-\\d{2}-\\d{2}",QL="\\d{2}:\\d{2}:\\d{2}",eN="(([+-]\\d{2}(:?\\d{2})?)|Z)",tN=new RegExp(`${JL}T${QL}(\\.\\d+)?${eN}$`),nN=e=>hi(e)||e===e.trim(),rN={}.toString();function Rr(){return new Cw}class Cw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===rN?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||jn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||jt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=jt.email){return this.matches(KL,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(XL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(ZL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(tN,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:nN})}lowercase(t=jt.lowercase){return this.transform(n=>hi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>hi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toUpperCase()})}}Rr.prototype=Cw.prototype;let iN=new Date(""),sN=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return sN(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=qL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(di.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=iN;function oN(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=fi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),di.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return NL.array(Array.from(r),n).reverse()}function Pw(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const aN=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const lN=(e,t)=>{const n=[...fi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=fi.getter(fi.join(n),!0)(e);return!!(i&&r in i)};let Ow=e=>Object.prototype.toString.call(e)==="[object Object]";function Mw(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const cN=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Ow(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=cN,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let g=o[m],y=m in i;if(g){let S,v=i[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:v,context:n.context,parent:u});let E=g instanceof Vn?g.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?g.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!Ow(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let g=this.fields[m];!g||di.isRef(g)||h.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=oN(t,n),r._sortErrors=Aw(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=fi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return lN(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(aN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Mw(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=Mw(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=_w.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Iw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],uN=({countries:e=Iw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ue,ne;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,g]=I.useState(!1),[y,S]=I.useState(""),[v,E]=I.useState(d.value||null),w=I.useRef(null),A=I.useRef(null),O=I.useRef(null),{x:D,y:C,strategy:L,refs:j,context:F,placement:Y,middlewareData:ee}=hs({open:m,onOpenChange:g,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:ye,elements:Ne}){Object.assign(Ne.floating.style,{maxHeight:`${Math.min(ye-10,300)}px`})},padding:8}),$o({element:A})],placement:"bottom-start",whileElementsMounted:ls}),te=Ro(F),me=ds(F),{getReferenceProps:de,getFloatingProps:le}=ms([te,me]),{isMounted:re,styles:ie}=Lo(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(Array.isArray(e)?e:[]).filter(ye=>{if(!y.trim())return!0;const Ne=o==="es"&&ye.labelES?ye.labelES.toLowerCase():ye.label.toLowerCase(),ft=ye.code?ye.code.toLowerCase():"";return Ne.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),H=ye=>{E(ye),g(!1),S(""),d.onChange(ye)},M=()=>{g(!m),!m&&w.current&&setTimeout(()=>{var ye;(ye=w.current)==null||ye.focus()},100)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const ye=Ne=>{O.current&&!O.current.contains(Ne.target)&&d.onBlur()};return document.addEventListener("mousedown",ye),()=>{document.removeEventListener("mousedown",ye)}},[d]);const K=ye=>{var Ne;return ye?ye.codeISO2?ye.codeISO2.toLowerCase():((Ne=ye.code)==null?void 0:Ne.toLowerCase())||"":""},Q=(Ce=ee.arrow)==null?void 0:Ce.x,ue=(Ue=ee.arrow)==null?void 0:Ue.y,X={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],ce=de({onClick:M,onBlur:N}),he=u(r),oe=u(i),ge=(ne=h.error)==null?void 0:ne.message;return x.jsxs("div",{ref:O,className:`w-full relative flex flex-col gap-8 ${a}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${ge&&"!text-red-500"} text-label`,children:he}),x.jsxs("div",{ref:j.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ge&&"border-red-500 hover:border-red-600"} ${re?"border-blue-400":"border-blue-100"}`,...ce,tabIndex:0,children:[v!=null&&v.code?x.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(v)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(v)}.png`,srcSet:`https://flagcdn.com/w40/${K(v)}.png 2x`,alt:v.label,onError:ye=>{ye.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:oe}),x.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ge&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ge,{x:u(c||"")||u(t)})}),re&&x.jsxs("div",{ref:j.setFloating,style:{position:L,top:C??0,left:D??0,...ie},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...le(),children:[x.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Q!=null?`${Q}px`:"",top:ue!=null?`${ue}px`:"",right:"",bottom:"",[X]:"-2px",borderRight:X==="left"?"1px solid":"none",borderBottom:X==="top"?"1px solid":"none",borderLeft:X==="right"?"1px solid":"none",borderTop:X==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:ye=>S(ye.target.value),onClick:ye=>ye.stopPropagation(),onBlur:ye=>{ye.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:U.length>0?x.jsx("ul",{className:"flex flex-col",children:U.map((ye,Ne)=>{var mi;const ft=ye.codeISO2?ye.codeISO2.toLowerCase():((mi=ye.code)==null?void 0:mi.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),H(ye)},children:[ft&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:ye.label,onError:dt=>{dt.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&ye.labelES?ye.labelES:ye.label,ye.code?` (${ye.code})`:"Country not found"]})]},`${ye.code}-${Ne}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},fN=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),x.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},dN=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=ze();return x.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>x.jsx(hN,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},hN=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var Q,ue;const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C,placement:L,middlewareData:j}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:X,elements:ce}){Object.assign(ce.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),F=Ro(C),Y=ds(C),{getReferenceProps:ee,getFloatingProps:te}=ms([F,Y]),{isMounted:me,styles:de}=Lo(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),re=(Array.isArray(e)?e:[]).filter(X=>{if(!m.trim())return!0;const ce=o==="es"&&X.labelES?X.labelES.toLowerCase():X.label.toLowerCase(),he=X.code?X.code.toLowerCase():"";return ce.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),ie=X=>{S(X),h(!1),g(""),n(X)},B=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var X;(X=v.current)==null||X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const U=X=>{var ce;return X?X.codeISO2?X.codeISO2.toLowerCase():((ce=X.code)==null?void 0:ce.toLowerCase())||"":""},H=(Q=j.arrow)==null?void 0:Q.x,M=(ue=j.arrow)==null?void 0:ue.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[L.split("-")[0]],K=ee({onClick:B});return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${me?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?x.jsxs("div",{className:"flex items-center w-full",children:[U(y)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${U(y)}.png`,srcSet:`https://flagcdn.com/w40/${U(y)}.png 2x`,alt:y.label,onError:X=>{X.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-500",children:i}),x.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),me&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...de},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...te(),children:[x.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:v,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:X=>g(X.target.value),onClick:X=>X.stopPropagation(),autoFocus:!0})}),x.jsx("div",{children:re.length>0?x.jsx("ul",{className:"flex flex-col",children:re.map((X,ce)=>{var oe;const he=X.codeISO2?X.codeISO2.toLowerCase():((oe=X.code)==null?void 0:oe.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ge=>{ge.stopPropagation(),ie(X)},children:[he&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:X.label,onError:ge=>{ge.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&X.labelES?X.labelES:X.label,X.code?` (${X.code})`:"Country not found"]})]},`${X.code}-${ce}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return x.jsx("button",{...u,className:`${ML(e,h,n,r)} ${c}`,children:i?x.jsx(Ie,{...o,className:No(n),icon:i}):a})};function mN(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const pN=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),g=I.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;I.useEffect(()=>{if(S){const A=y==null?void 0:y.field.value;if(mN(A)){const O=URL.createObjectURL(A);return d(O),m(!0),()=>URL.revokeObjectURL(O)}else typeof A=="string"&&A&&A!==e?(d(A),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const v=()=>{var A;n&&((A=g.current)==null||A.click())},E=A=>{var D;const O=(D=A.target.files)==null?void 0:D[0];if(O){const C=URL.createObjectURL(O);d(C),m(!0),S&&(y==null||y.field.onChange(O)),r&&r(O)}},w=A=>{A.stopPropagation(),d(null),m(!1),g.current&&(g.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return x.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&x.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),x.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),x.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:v,children:[u?x.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):x.jsx(lw,{size:60,user:c}),n&&x.jsxs(x.Fragment,{children:[x.jsx("input",{type:"file",ref:A=>{g.current=A,y&&y.field.ref(A)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&x.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:x.jsx(Ie,{icon:V5,className:"text-blue-500"})})]})]})]})},gN=ch({name:Rr(),base64:Rr()}),yN=({imageUrl:e,title:t,subtitle:n})=>x.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[x.jsx("img",{src:e,alt:t,width:100,height:100}),x.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),x.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),vN=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},bN=({description:e,title:t,className:n,icon:r,type:i="informative"})=>x.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${vN(i)} rounded-lg ${n}`,children:[r?x.jsx(Ie,{icon:r,className:"text-blue-500 min-h-20 h-20"}):x.jsx(Ie,{icon:Q6,className:"text-blue-500 min-h-20 h-20"}),x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),x.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),xN=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return x.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:x.jsx("svg",{height:e,width:e,className:"animate-spin",children:x.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},wN=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[g,y]=I.useState(!1),{t:S}=ze();return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:n,className:`
|
|
711
|
+
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=v=>{i||(i=!0,n(v,a))},m=v=>{i||(i=!0,r(v,a))},g=o.length,y=[];if(!g)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let v=0;v<o.length;v++){const E=o[v];E(S,h,function(P){P&&(Array.isArray(P)?y.push(...P):y.push(P)),--g<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,g,y)=>this.resolve(h)._validate(d,h,g,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{Ft.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Ft(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Ft.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Ft(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ft.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ft.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):bs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=vs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=vs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=jn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=jn.notNull){return this.nullability(!1,t)}required(t=jn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=jn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=vs(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=xw(t).map(o=>new di(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=vs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=jn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=vs({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=jn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=vs({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=HL(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const qL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function KL(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=qL.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let XL=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ZL=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,JL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,QL="^\\d{4}-\\d{2}-\\d{2}",eN="\\d{2}:\\d{2}:\\d{2}",tN="(([+-]\\d{2}(:?\\d{2})?)|Z)",nN=new RegExp(`${QL}T${eN}(\\.\\d+)?${tN}$`),rN=e=>hi(e)||e===e.trim(),iN={}.toString();function Rr(){return new Cw}class Cw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===iN?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||jn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||jt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=jt.email){return this.matches(XL,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(ZL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(JL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(nN,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:rN})}lowercase(t=jt.lowercase){return this.transform(n=>hi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>hi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toUpperCase()})}}Rr.prototype=Cw.prototype;let sN=new Date(""),oN=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return oN(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=KL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(di.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=sN;function aN(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=fi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),di.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return kL.array(Array.from(r),n).reverse()}function Pw(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const lN=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const cN=(e,t)=>{const n=[...fi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=fi.getter(fi.join(n),!0)(e);return!!(i&&r in i)};let Ow=e=>Object.prototype.toString.call(e)==="[object Object]";function Mw(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const uN=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Ow(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=uN,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let g=o[m],y=m in i;if(g){let S,v=i[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:v,context:n.context,parent:u});let E=g instanceof Vn?g.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?g.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!Ow(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let g=this.fields[m];!g||di.isRef(g)||h.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=aN(t,n),r._sortErrors=Aw(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=fi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return cN(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(lN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Mw(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=Mw(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=_w.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Iw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],fN=({countries:e=Iw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ue,ne;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,g]=I.useState(!1),[y,S]=I.useState(""),[v,E]=I.useState(d.value||null),w=I.useRef(null),P=I.useRef(null),O=I.useRef(null),{x:$,y:A,strategy:R,refs:j,context:F,placement:Y,middlewareData:Q}=hs({open:m,onOpenChange:g,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:ye,elements:Ne}){Object.assign(Ne.floating.style,{maxHeight:`${Math.min(ye-10,300)}px`})},padding:8}),$o({element:P})],placement:"bottom-start",whileElementsMounted:ls}),te=Ro(F),me=ds(F),{getReferenceProps:de,getFloatingProps:le}=ms([te,me]),{isMounted:re,styles:ie}=Lo(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(Array.isArray(e)?e:[]).filter(ye=>{if(!y.trim())return!0;const Ne=o==="es"&&ye.labelES?ye.labelES.toLowerCase():ye.label.toLowerCase(),ft=ye.code?ye.code.toLowerCase():"";return Ne.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),H=ye=>{E(ye),g(!1),S(""),d.onChange(ye)},M=()=>{g(!m),!m&&w.current&&setTimeout(()=>{var ye;(ye=w.current)==null||ye.focus()},100)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const ye=Ne=>{O.current&&!O.current.contains(Ne.target)&&d.onBlur()};return document.addEventListener("mousedown",ye),()=>{document.removeEventListener("mousedown",ye)}},[d]);const K=ye=>{var Ne;return ye?ye.codeISO2?ye.codeISO2.toLowerCase():((Ne=ye.code)==null?void 0:Ne.toLowerCase())||"":""},ee=(Ce=Q.arrow)==null?void 0:Ce.x,ue=(Ue=Q.arrow)==null?void 0:Ue.y,X={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],ce=de({onClick:M,onBlur:N}),he=u(r),ae=u(i),ge=(ne=h.error)==null?void 0:ne.message;return b.jsxs("div",{ref:O,className:`w-full relative flex flex-col gap-8 ${a}`,children:[b.jsx("label",{className:`text-gray-600 font-600 group ${ge&&"!text-red-500"} text-label`,children:he}),b.jsxs("div",{ref:j.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ge&&"border-red-500 hover:border-red-600"} ${re?"border-blue-400":"border-blue-100"}`,...ce,tabIndex:0,children:[v!=null&&v.code?b.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(v)&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(v)}.png`,srcSet:`https://flagcdn.com/w40/${K(v)}.png 2x`,alt:v.label,onError:ye=>{ye.currentTarget.style.display="none"}}),b.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):b.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ae}),b.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ge&&b.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ge,{x:u(c||"")||u(t)})}),re&&b.jsxs("div",{ref:j.setFloating,style:{position:R,top:A??0,left:$??0,...ie},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...le(),children:[b.jsx("div",{ref:P,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ee!=null?`${ee}px`:"",top:ue!=null?`${ue}px`:"",right:"",bottom:"",[X]:"-2px",borderRight:X==="left"?"1px solid":"none",borderBottom:X==="top"?"1px solid":"none",borderLeft:X==="right"?"1px solid":"none",borderTop:X==="bottom"?"1px solid":"none"}}),b.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:b.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:ye=>S(ye.target.value),onClick:ye=>ye.stopPropagation(),onBlur:ye=>{ye.stopPropagation()},autoFocus:!0})}),b.jsx("div",{children:U.length>0?b.jsx("ul",{className:"flex flex-col",children:U.map((ye,Ne)=>{var mi;const ft=ye.codeISO2?ye.codeISO2.toLowerCase():((mi=ye.code)==null?void 0:mi.toLowerCase())||"";return b.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),H(ye)},children:[ft&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:ye.label,onError:dt=>{dt.currentTarget.style.display="none"}}),b.jsxs("span",{children:[o==="es"&&ye.labelES?ye.labelES:ye.label,ye.code?` (${ye.code})`:"Country not found"]})]},`${ye.code}-${Ne}`)})}):b.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},dN=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return b.jsxs("div",{className:"flex items-center gap-8",children:[b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),b.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},hN=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=ze();return b.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>b.jsx(mN,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},mN=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ee,ue;const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:P,strategy:O,refs:$,context:A,placement:R,middlewareData:j}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:X,elements:ce}){Object.assign(ce.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),F=Ro(A),Y=ds(A),{getReferenceProps:Q,getFloatingProps:te}=ms([F,Y]),{isMounted:me,styles:de}=Lo(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),re=(Array.isArray(e)?e:[]).filter(X=>{if(!m.trim())return!0;const ce=o==="es"&&X.labelES?X.labelES.toLowerCase():X.label.toLowerCase(),he=X.code?X.code.toLowerCase():"";return ce.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),ie=X=>{S(X),h(!1),g(""),n(X)},B=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var X;(X=v.current)==null||X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const U=X=>{var ce;return X?X.codeISO2?X.codeISO2.toLowerCase():((ce=X.code)==null?void 0:ce.toLowerCase())||"":""},H=(ee=j.arrow)==null?void 0:ee.x,M=(ue=j.arrow)==null?void 0:ue.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[R.split("-")[0]],K=Q({onClick:B});return b.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[b.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),b.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${me?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?b.jsxs("div",{className:"flex items-center w-full",children:[U(y)&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${U(y)}.png`,srcSet:`https://flagcdn.com/w40/${U(y)}.png 2x`,alt:y.label,onError:X=>{X.currentTarget.style.display="none"}}),b.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):b.jsx("span",{className:"text-gray-500",children:i}),b.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&b.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),me&&b.jsxs("div",{ref:$.setFloating,style:{position:O,top:P??0,left:w??0,...de},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...te(),children:[b.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="bottom"?"1px solid":"none"}}),b.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:b.jsx("input",{ref:v,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:X=>g(X.target.value),onClick:X=>X.stopPropagation(),autoFocus:!0})}),b.jsx("div",{children:re.length>0?b.jsx("ul",{className:"flex flex-col",children:re.map((X,ce)=>{var ae;const he=X.codeISO2?X.codeISO2.toLowerCase():((ae=X.code)==null?void 0:ae.toLowerCase())||"";return b.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ge=>{ge.stopPropagation(),ie(X)},children:[he&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:X.label,onError:ge=>{ge.currentTarget.style.display="none"}}),b.jsxs("span",{children:[o==="es"&&X.labelES?X.labelES:X.label,X.code?` (${X.code})`:"Country not found"]})]},`${X.code}-${ce}`)})}):b.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return b.jsx("button",{...u,className:`${_L(e,h,n,r)} ${c}`,children:i?b.jsx(Ie,{...o,className:No(n),icon:i}):a})};function pN(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const gN=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),g=I.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;I.useEffect(()=>{if(S){const P=y==null?void 0:y.field.value;if(pN(P)){const O=URL.createObjectURL(P);return d(O),m(!0),()=>URL.revokeObjectURL(O)}else typeof P=="string"&&P&&P!==e?(d(P),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const v=()=>{var P;n&&((P=g.current)==null||P.click())},E=P=>{var $;const O=($=P.target.files)==null?void 0:$[0];if(O){const A=URL.createObjectURL(O);d(A),m(!0),S&&(y==null||y.field.onChange(O)),r&&r(O)}},w=P=>{P.stopPropagation(),d(null),m(!1),g.current&&(g.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return b.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&b.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),b.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:v,children:[u?b.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):b.jsx(lw,{size:60,user:c}),n&&b.jsxs(b.Fragment,{children:[b.jsx("input",{type:"file",ref:P=>{g.current=P,y&&y.field.ref(P)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&b.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:b.jsx(Ie,{icon:B5,className:"text-blue-500"})})]})]})]})},yN=ch({name:Rr(),base64:Rr()}),vN=({imageUrl:e,title:t,subtitle:n})=>b.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[b.jsx("img",{src:e,alt:t,width:100,height:100}),b.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),b.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),bN=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},xN=({description:e,title:t,className:n,icon:r,type:i="informative"})=>b.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${bN(i)} rounded-lg ${n}`,children:[r?b.jsx(Ie,{icon:r,className:"text-blue-500 min-h-20 h-20"}):b.jsx(Ie,{icon:eL,className:"text-blue-500 min-h-20 h-20"}),b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),b.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),wN=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return b.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:b.jsx("svg",{height:e,width:e,className:"animate-spin",children:b.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},SN=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[g,y]=I.useState(!1),{t:S}=ze();return b.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[b.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),b.jsxs("label",{htmlFor:n,className:`
|
|
712
712
|
flex items-center justify-between gap-8 p-16
|
|
713
713
|
|
|
714
714
|
${m&&"!border-red-500"}
|
|
@@ -724,13 +724,13 @@ attempted value: ${a}
|
|
|
724
724
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
725
725
|
|
|
726
726
|
group-disabled:bg-gray-500
|
|
727
|
-
`,children:[a&&a,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:v=>u(v.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),x.jsx(Ie,{icon:g?jC:NC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!g)})]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},SN=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var gi,xl,Lr,wl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((gi=d.value)==null?void 0:gi.split(" "))||[],g=m[0]||null,y=m[1]||"",S=c.find(be=>g===be.phone),[v,E]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[j,F]=I.useState(!1),Y=I.useRef(null),ee=I.useRef(null),te=I.useRef(null),me=I.useRef(null),{x:de,y:le,strategy:re,refs:ie,context:B,placement:U,middlewareData:H}=hs({open:v,onOpenChange:E,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),$o({element:ee})],placement:"bottom-start",whileElementsMounted:ls}),M=Ro(B),N=ds(B),{getReferenceProps:K,getFloatingProps:Q}=ms([M,N]),{isMounted:ue,styles:X}=Lo(B,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),he=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),oe=be=>{D(be),E(!1),A("");const Qe=`${be.phone} ${C}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=te.current)==null||Pt.focus()},100)},ge=be=>{const Qe=be.target.value;if(L(Qe),O){const Pt=`${O.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{E(!v),!v&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{v||d.onBlur()},200)},ne=()=>{F(!0)},ye=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&D(xn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{me.current&&!me.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Ne=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(xl=H.arrow)==null?void 0:xl.x,mi=(Lr=H.arrow)==null?void 0:Lr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],vl=K({onClick:Ce,onBlur:Ue}),bl=()=>h.error?"border-red-500":j||v?"border-blue-400":"border-blue-100",pi=u(n),qt=u(r),bn=(wl=h.error)==null?void 0:wl.message;return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:pi}),x.jsxs("div",{ref:me,className:"flex items-center w-full",onMouseEnter:ne,onMouseLeave:ye,children:[x.jsxs("div",{ref:ie.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":bl()}`,style:{minWidth:"140px"},...vl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Ne(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Ne(O)}.png`,srcSet:`https://flagcdn.com/w40/${Ne(O)}.png 2x`,alt:O.label,onError:be=>{be.currentTarget.style.display="none"}}),x.jsxs("span",{children:["+",O.phone]})]}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),x.jsx(Ie,{icon:Kd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:te,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":bl()}`,placeholder:qt,value:C,onChange:ge,onBlur:Ue})]}),bn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ue&&x.jsxs("div",{ref:ie.setFloating,style:{position:re,top:le??0,left:de??0,...X},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Q(),children:[x.jsx("div",{ref:ee,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:mi!=null?`${mi}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:x.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>A(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:he.length>0?x.jsx("ul",{className:"flex flex-col",children:he.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),oe(be)},children:[Pt&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},TN={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},EN={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},CN=e=>{switch(e){case"aqua":return EN;case"blue":default:return TN}},PN=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),a=n||o,{bgColor:c,fillColor:u}=CN(a),d=Math.min(Math.max(e,0),100);return x.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[x.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:x.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&x.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},AN=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return x.jsx("div",{className:"relative flex items-center",children:x.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[x.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:x.jsx(Ie,{icon:F5})}),x.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},ON="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",MN={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},_N={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},IN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=_N[n];break;case"blue":default:r=MN[n];break}return tr(ON,r)},DN=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${IN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&x.jsx(Ie,{icon:a,className:No()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&x.jsx(Ie,{icon:a,className:No()}),e]})},$N="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",RN={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},LN={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},NN="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",kN={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},FN={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=kN[n];break;case"aqua":default:r=FN[n];break}return tr(NN,r)},jN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=LN[n];break;case"blue":default:r=RN[n];break}return tr($N,r)},VN=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${jN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&x.jsx("div",{className:Dw(r,d),children:x.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&x.jsx("div",{className:Dw(r,d),children:x.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},BN=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(DN,{...n}):t==="mobile"?x.jsx(VN,{...n}):null},UN=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>x.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(WN,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),WN=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:B,elements:U}){Object.assign(U.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),L=Ro(C),j=ds(C),{getReferenceProps:F,getFloatingProps:Y}=ms([L,j]),{isMounted:ee,styles:te}=Lo(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),me=(()=>{const B=Array.isArray(e)?e:[];if(!m.trim())return B;const U=m.toLowerCase();return B.filter(H=>{const M=H.label.toLowerCase(),N=H.key.toLowerCase();return M.includes(U)||N.includes(U)})})(),de=B=>{S(B),h(!1),g(""),n(B)},le=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var B;return(B=v.current)==null?void 0:B.focus()},100)};I.useEffect(()=>{S(t)},[t]);const re=F({onClick:le}),ie=u(i);return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
727
|
+
`,children:[a&&a,b.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:v=>u(v.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),b.jsx(Ie,{icon:g?VC:kC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!g)})]}),b.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},TN=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var gi,xl,Lr,wl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((gi=d.value)==null?void 0:gi.split(" "))||[],g=m[0]||null,y=m[1]||"",S=c.find(be=>g===be.phone),[v,E]=I.useState(!1),[w,P]=I.useState(""),[O,$]=I.useState(S||null),[A,R]=I.useState(y),[j,F]=I.useState(!1),Y=I.useRef(null),Q=I.useRef(null),te=I.useRef(null),me=I.useRef(null),{x:de,y:le,strategy:re,refs:ie,context:B,placement:U,middlewareData:H}=hs({open:v,onOpenChange:E,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),$o({element:Q})],placement:"bottom-start",whileElementsMounted:ls}),M=Ro(B),N=ds(B),{getReferenceProps:K,getFloatingProps:ee}=ms([M,N]),{isMounted:ue,styles:X}=Lo(B,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),he=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),ae=be=>{$(be),E(!1),P("");const Qe=`${be.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=te.current)==null||Pt.focus()},100)},ge=be=>{const Qe=be.target.value;if(R(Qe),O){const Pt=`${O.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{E(!v),!v&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{v||d.onBlur()},200)},ne=()=>{F(!0)},ye=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&$(xn),R(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{me.current&&!me.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Ne=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(xl=H.arrow)==null?void 0:xl.x,mi=(Lr=H.arrow)==null?void 0:Lr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],vl=K({onClick:Ce,onBlur:Ue}),bl=()=>h.error?"border-red-500":j||v?"border-blue-400":"border-blue-100",pi=u(n),qt=u(r),bn=(wl=h.error)==null?void 0:wl.message;return b.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[b.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:pi}),b.jsxs("div",{ref:me,className:"flex items-center w-full",onMouseEnter:ne,onMouseLeave:ye,children:[b.jsxs("div",{ref:ie.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":bl()}`,style:{minWidth:"140px"},...vl,tabIndex:0,children:[O!=null&&O.code?b.jsxs("div",{className:"flex items-center truncate",children:[Ne(O)&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Ne(O)}.png`,srcSet:`https://flagcdn.com/w40/${Ne(O)}.png 2x`,alt:O.label,onError:be=>{be.currentTarget.style.display="none"}}),b.jsxs("span",{children:["+",O.phone]})]}):b.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),b.jsx(Ie,{icon:Kd,className:"w-14 h-14 min-w-14 min-h-14"})]}),b.jsx("input",{ref:te,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":bl()}`,placeholder:qt,value:A,onChange:ge,onBlur:Ue})]}),bn&&b.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ue&&b.jsxs("div",{ref:ie.setFloating,style:{position:re,top:le??0,left:de??0,...X},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ee(),children:[b.jsx("div",{ref:Q,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:mi!=null?`${mi}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),b.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:b.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>P(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),b.jsx("div",{children:he.length>0?b.jsx("ul",{className:"flex flex-col",children:he.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return b.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),ae(be)},children:[Pt&&b.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),b.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):b.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},EN={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},CN={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},PN=e=>{switch(e){case"aqua":return CN;case"blue":default:return EN}},AN=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),a=n||o,{bgColor:c,fillColor:u}=PN(a),d=Math.min(Math.max(e,0),100);return b.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[b.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:b.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&b.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},ON=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return b.jsx("div",{className:"relative flex items-center",children:b.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[b.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:b.jsx(Ie,{icon:j5})}),b.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},MN="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",_N={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},IN={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},DN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=IN[n];break;case"blue":default:r=_N[n];break}return tr(MN,r)},$N=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${DN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?b.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&b.jsx(Ie,{icon:a,className:No()}),e]}):b.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&b.jsx(Ie,{icon:a,className:No()}),e]})},RN="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",LN={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},NN={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},kN="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",FN={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},jN={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=FN[n];break;case"aqua":default:r=jN[n];break}return tr(kN,r)},VN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=NN[n];break;case"blue":default:r=LN[n];break}return tr(RN,r)},BN=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${VN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?b.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&b.jsx("div",{className:Dw(r,d),children:b.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):b.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&b.jsx("div",{className:Dw(r,d),children:b.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},UN=e=>{const{display:t,...n}=e;return t==="desktop"?b.jsx($N,{...n}):t==="mobile"?b.jsx(BN,{...n}):null},WN=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>b.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>b.jsx(zN,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),zN=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:P,strategy:O,refs:$,context:A}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:B,elements:U}){Object.assign(U.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),R=Ro(A),j=ds(A),{getReferenceProps:F,getFloatingProps:Y}=ms([R,j]),{isMounted:Q,styles:te}=Lo(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),me=(()=>{const B=Array.isArray(e)?e:[];if(!m.trim())return B;const U=m.toLowerCase();return B.filter(H=>{const M=H.label.toLowerCase(),N=H.key.toLowerCase();return M.includes(U)||N.includes(U)})})(),de=B=>{S(B),h(!1),g(""),n(B)},le=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var B;return(B=v.current)==null?void 0:B.focus()},100)};I.useEffect(()=>{S(t)},[t]);const re=F({onClick:le}),ie=u(i);return b.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[b.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),b.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
728
728
|
border transition-all duration-200 hover:border-blue-400
|
|
729
|
-
${o&&"border-red-500 hover:border-red-600"} ${
|
|
729
|
+
${o&&"border-red-500 hover:border-red-600"} ${Q?"border-blue-400":"border-blue-100"}`,...re,children:[y?b.jsx("div",{className:"flex items-center w-full",children:b.jsx("span",{className:"flex-grow flex-grow font-600 text-body-m",children:u(y.label)})}):b.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ie}),b.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&b.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),Q&&b.jsxs("div",{ref:$.setFloating,style:{position:O,top:P??0,left:w??0,...te},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...Y(),children:[c&&b.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:b.jsx("input",{ref:v,type:"text",className:"w-full p-16",placeholder:"Search...",value:m,onChange:B=>g(B.target.value),onClick:B=>B.stopPropagation(),autoFocus:!0})}),b.jsx("div",{className:"",children:me.length>0?b.jsx("ul",{children:me.map((B,U)=>b.jsx("li",{className:"flex items-center justify-between px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:H=>{H.stopPropagation(),de(B)},children:b.jsx("span",{children:u(B.label)})},`${B.key}-${U}`))}):b.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_options_found")})})]})]})},GN={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},YN={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},HN=e=>{switch(e){case"aqua":return YN;case"blue":default:return GN}},qN=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=ze(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:g}=HN(u);return b.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
730
730
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
731
731
|
${!i&&"w-fit"}
|
|
732
732
|
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
|
|
733
|
-
${e?`${d} ${h}`:"bg-transparent"}`,children:[
|
|
733
|
+
${e?`${d} ${h}`:"bg-transparent"}`,children:[b.jsx(Ie,{icon:t,className:e?g:"text-gray-900",style:{height:"16px"}}),b.jsx("h4",{className:`
|
|
734
734
|
text-md
|
|
735
735
|
leading-none
|
|
736
736
|
font-600
|
|
@@ -739,7 +739,7 @@ attempted value: ${a}
|
|
|
739
739
|
transition-all duration-100 ease-in-out
|
|
740
740
|
opacity-0 capitalize
|
|
741
741
|
${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
742
|
-
${e&&d}`,children:n})]})},
|
|
742
|
+
${e&&d}`,children:n})]})},KN="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",XN={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},ZN={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},JN=(e="underline",t=!1)=>tr(KN,XN[e],ZN[String(t)]),$w=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>b.jsxs("button",{className:`${JN(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&b.jsx(Ie,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),b.jsx("span",{className:"text-lg font-500",children:e})]}),QN="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",ek={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},tk=(e="blue")=>tr(QN,ek[e]),Rw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),o=e||i;return b.jsx("button",{type:"button",className:tk(o)+" "+n,...r,children:t})},nk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:g,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:v}=ze(),E=v(n),w=v(u);return b.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[b.jsx("h6",{className:`text-gray-600 font-600 group ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),b.jsxs("label",{htmlFor:n,className:`
|
|
743
743
|
flex items-center justify-between gap-8 p-16
|
|
744
744
|
|
|
745
745
|
${S&&"border-red-500!"}
|
|
@@ -755,4 +755,4 @@ attempted value: ${a}
|
|
|
755
755
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
756
756
|
|
|
757
757
|
group-disabled:bg-gray-500
|
|
758
|
-
`,children:[a&&a,
|
|
758
|
+
`,children:[a&&a,b.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:P=>m(P.target.value),onBlur:y,ref:g,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden",...d}),c&&c]}),b.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&v(S.message,{x:w||E})})]})},rk=({label:e,value:t,className:n})=>b.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[b.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),b.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),ik=({options:e,onChange:t,value:n,disabled:r,error:i,label:o,placeholder:a})=>{var d;const[c,u]=I.useState(!1);return b.jsx(gs,{open:c,onClose:()=>u(!1),offset:12,padding:0,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",component:b.jsx("div",{className:"bg-white rounded-lg shadow-lg max-h-[150px] overflow-y-auto flex flex-col py-8",children:e.map(h=>b.jsx("button",{onClick:()=>t(h.value),className:`w-full text-center px-16 py-8 transition-all duration-100 hover:bg-blue-100 ${n===h.label?"text-blue-500 font-medium":""}`,children:h.label},h.value))}),children:b.jsxs("div",{className:"flex flex-col gap-8 relative",onClick:()=>u(!c),children:[b.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${r&&"text-gray-300"}`,children:o}),b.jsxs("div",{className:`px-10 py-8 bg-blue-50 border-1 border-blue-200 rounded-full flex items-center gap-8 cursor-pointer transition-colors duration-150 ease-in-out ${c?"!border-blue-500":""}`,children:[n?b.jsx("h4",{className:"text-body-m",children:(d=e.find(h=>h.value===n))==null?void 0:d.label}):b.jsx("h4",{className:"text-body-m text-gray-400",children:a}),b.jsx(Ie,{icon:Kd,className:`text-gray-400 transition-all duration-150 ease-in-out ${c?"rotate-180":""}`})]})]})})},Lw=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,...c})=>{const[u,d]=I.useState(o),h=(e-t)/2,m=2*Math.PI*h,g=m*(1-u/100),{className:y="",...S}=c;return I.useEffect(()=>{if(!a)return;let v,E;const w=P=>{v||(v=P);const O=P-v,$=Math.min(100,O/r*100);d($),$<100&&(E=requestAnimationFrame(w))};return E=requestAnimationFrame(w),()=>{E&&cancelAnimationFrame(E)}},[r,a]),b.jsxs("div",{...S,className:`relative flex items-center justify-center ${y}`,children:[b.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[b.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:h,cx:e/2,cy:e/2}),b.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:m,strokeDashoffset:g,strokeLinecap:"round",r:h,cx:e/2,cy:e/2})]}),b.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&b.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),b.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(u),"%"]})]})]})},sk=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),y=I.useRef(null),S=i.map(R=>`.${R}`).join(","),v=R=>{const j=[];let F=!1;Array.from(R).forEach(Y=>{var te;const Q=((te=Y.name.split(".").pop())==null?void 0:te.toLowerCase())||"";if(!i.includes(Q)){g(`El archivo ${Y.name} tiene una extensión no permitida.`),F=!0;return}if(Y.size>o*1024){g(`El archivo ${Y.name} excede el tamaño máximo de ${o}KB.`),F=!0;return}j.push(Y)}),!F&&j.length>0&&(g(""),r(j))},E=()=>{y.current&&y.current.click()},w=R=>{const j=R.target.files;j&&j.length>0&&v(j),R.target.value=""},P=R=>{R.preventDefault(),R.stopPropagation(),h(!0)},O=R=>{R.preventDefault(),R.stopPropagation(),h(!1)},$=R=>{R.preventDefault(),R.stopPropagation(),d||h(!0)},A=R=>{R.preventDefault(),R.stopPropagation(),h(!1);const j=R.dataTransfer.files;j.length>0&&v(j)};return a?b.jsx("div",{className:"w-full mx-auto font-sans",children:b.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl",children:b.jsxs("div",{className:"flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-100 select-none",onDragEnter:P,onDragLeave:O,onDragOver:$,onDrop:A,onClick:E,children:[b.jsx(Lw,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),b.jsxs("h4",{className:"text-body-s text-gray-400",children:[u("loading"),"..."]})]})})}):b.jsxs("div",{className:"w-full mx-auto font-sans",children:[b.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl",children:b.jsxs("div",{className:`flex flex-col border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${d?"border-blue-400 bg-blue-100/50":"border-blue-100 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:O,onDragOver:$,onDrop:A,onClick:E,children:[b.jsx("div",{className:"flex justify-center translate-y-4",children:b.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),b.jsxs("div",{className:"flex flex-col items-center",children:[b.jsx("h3",{className:"font-600 text-xl text-dark",children:u(e)}),t&&b.jsx("p",{className:"font-400 text-lg text-gray-500",children:u(t)}),b.jsx(Rw,{color:"blue",children:u(n)}),b.jsx("input",{type:"file",ref:y,className:"hidden",multiple:!0,accept:S,onChange:w})]})]})}),m&&b.jsx("div",{className:"mt-3 text-sm text-red-500",children:m}),b.jsx("div",{className:"mt-10 w-full flex justify-center",children:b.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," formats. Maximus size:"," ",wv(o,"mb")]})})]})},ln=8,ok=1e3,ak="300px",lk={top:"bottom",right:"left",bottom:"top",left:"right"},ck={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},uk=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=I.useState(!1),u=I.useRef(null),{x:d,y:h,strategy:m,placement:g,refs:y,context:S,middlewareData:v}=hs({open:a,onOpenChange:c,placement:r,middleware:[cs(i),fs(),us({padding:8}),$o({element:u})],whileElementsMounted:ls}),E=U6(S,{delay:o}),w=H6(S),P=ds(S),O=K6(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=ms([E,w,P,O]),R=g.split("-")[0],j=lk[R],{x:F,y:Y}=v.arrow||{x:0,y:0},Q=I.cloneElement(e,{ref:y.setReference,...$()});return b.jsxs(b.Fragment,{children:[Q,b.jsx(Kn,{children:a&&b.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:ok,width:"max-content",maxWidth:ak},...A(),children:b.jsxs(Ze.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,b.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:Y!=null?`${Y}px`:"",[j]:"-7px",...ck[R]}})]})})})]})},fk="Alejo",dk=({theme:e={},children:t})=>{const n={...Od,...e};return b.jsx(bx.Provider,{value:n,children:t})};oe.ActionButton=LC,oe.AlertModal=xx,oe.AsyncToast=tv,oe.Avatar=lw,oe.BoxContainer=ys,oe.Button=ko,oe.CalendarSelector=Xd,oe.CenterModal=pw,oe.Checkbox=DL,oe.CountryDropdown=hN,oe.CountryInput=fN,oe.CountryLabel=dN,oe.DateInput=nL,oe.DialogModal=nw,oe.Divider=mw,oe.Dropdown=sL,oe.FileUpload=oL,oe.FloatingMenu=gs,oe.IconButton=uh,oe.ImageProfileInput=gN,oe.IndexedStep=iw,oe.IndexedStepper=aL,oe.InfoCard=vN,oe.InformationContainer=sw,oe.InformationDisclaimer=xN,oe.LoadingProgress=Lw,oe.LoadingSpinner=wN,oe.ModalContainer=vL,oe.Organism=fk,oe.PasswordInput=SN,oe.PhoneInput=TN,oe.ProgressBar=AN,oe.SearchBar=ON,oe.SearchModal=cL,oe.SectionButton=UN,oe.SelectInput=WN,oe.SidebarButton=qN,oe.Stepper=mL,oe.Tab=$w,oe.Tabs=pL,oe.TextButton=Rw,oe.TextInput=nk,oe.TextStaticInput=rk,oe.ThemeProvider=dk,oe.Toast=mf,oe.Tooltip=uk,oe.UncontrolledDateInput=yL,oe.UncontrolledSelector=ik,oe.UncontrolledTextInput=Zd,oe.UploadContainer=sk,oe.capitalizeFirstLetter=xv,oe.closeModal=wL,oe.defaultTheme=Od,oe.formatLocalizedDate=aD,oe.getImageUrl=Sv,oe.openCustomModal=xL,oe.openModal=bL,oe.renderTabContent=SL,oe.showToastAsync=th,oe.showToastLoading=aw,oe.stringToColor=pf,oe.toBase64=lD,oe.toast=TL,oe.translateBytes=wv,oe.useTheme=ze,oe.yupImageProfileValidator=yN,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});
|