lawgic-dev-kit 0.13.8 → 0.14.2
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/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/Checkbox/Checkbox.js +4 -4
- package/dist/components/atoms/CountryInput/CountryInput.js +32 -32
- package/dist/components/atoms/PhoneInput/PhoneInput.d.ts +2 -1
- package/dist/components/atoms/PhoneInput/PhoneInput.js +14 -14
- package/dist/components/atoms/PhoneInput/PhoneInput.types.d.ts +3 -3
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +4 -0
- package/dist/components/atoms/{SelectDropdown/SelectDropdown.js → SelectInput/SelectInput.js} +38 -38
- package/dist/components/atoms/{SelectDropdown/SelectDropdown.types.d.ts → SelectInput/SelectInput.types.d.ts} +2 -2
- package/dist/components/atoms/SelectInput/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +32 -32
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/package.json +1 -1
- package/dist/components/atoms/SelectDropdown/SelectDropdown.d.ts +0 -4
- package/dist/components/atoms/SelectDropdown/index.d.ts +0 -1
- package/dist/src/types/modal.d.ts +0 -33
- package/dist/src/types/modalType.d.ts +0 -1
- package/dist/src/utils/modal.d.ts +0 -13
|
@@ -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 xm;function Z2(){return xm||(xm=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===
|
|
17
|
+
*/var xm;function Z2(){return xm||(xm=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===ee?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case b:return"Fragment";case w:return"Profiler";case P:return"StrictMode";case C:return"Suspense";case L:return"SuspenseList";case q:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case S:return"Portal";case O:return(_.displayName||"Context")+".Provider";case A:return(_._context.displayName||"Context")+".Consumer";case D:var k=_.render;return _=_.displayName,_||(_=k.displayName||k.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case V:return k=_.displayName||null,k!==null?k:e(_.type)||"Memo";case F:k=_._payload,_=_._init;try{return e(_(k))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var k=!1}catch{k=!0}if(k){k=console;var X=k.error,J=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return X.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",J),t(_)}}function r(_){if(_===b)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===F)return"<...>";try{var k=e(_);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function i(){var _=re.A;return _===null?null:_.getOwner()}function o(){return Error("react-stack-top-frame")}function l(_){if(ve.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function c(_,k){function X(){se||(se=!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)",k))}X.isReactWarning=!0,Object.defineProperty(_,"key",{get:X,configurable:!0})}function u(){var _=e(this.type);return oe[_]||(oe[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function d(_,k,X,J,le,H,ie,de){return X=H.ref,_={$$typeof:y,type:_,key:k,props:H,_owner:le},(X!==void 0?X:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:u}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function h(_,k,X,J,le,H,ie,de){var ne=k.children;if(ne!==void 0)if(J)if(ye(ne)){for(J=0;J<ne.length;J++)m(ne[J]);Object.freeze&&Object.freeze(ne)}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(ne);if(ve.call(k,"key")){ne=e(_);var me=Object.keys(k).filter(function(Ue){return Ue!=="key"});J=0<me.length?"{key: someKey, "+me.join(": ..., ")+": ...}":"{key: someKey}",Z[ne+J]||(me=0<me.length?"{"+me.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} />`,J,ne,me,ne),Z[ne+J]=!0)}if(ne=null,X!==void 0&&(n(X),ne=""+X),l(k)&&(n(k.key),ne=""+k.key),"key"in k){X={};for(var Ce in k)Ce!=="key"&&(X[Ce]=k[Ce])}else X=k;return ne&&c(X,typeof _=="function"?_.displayName||_.name||"Unknown":_),d(_,ne,H,le,i(),X,ie,de)}function m(_){typeof _=="object"&&_!==null&&_.$$typeof===y&&_._store&&(_._store.validated=1)}var g=I,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),O=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),re=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=Object.prototype.hasOwnProperty,ye=Array.isArray,fe=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(_){return _()}};var se,oe={},z=g["react-stack-bottom-frame"].bind(g,o)(),Y=fe(r(o)),Z={};Ss.Fragment=b,Ss.jsx=function(_,k,X,J,le){var H=1e4>re.recentlyCreatedOwnerStacks++;return h(_,k,X,!1,J,le,H?Error("react-stack-top-frame"):z,H?fe(r(_)):Y)},Ss.jsxs=function(_,k,X,J,le){var H=1e4>re.recentlyCreatedOwnerStacks++;return h(_,k,X,!0,J,le,H?Error("react-stack-top-frame"):z,H?fe(r(_)):Y)}}()),Ss}var wm;function J2(){return wm||(wm=1,process.env.NODE_ENV==="production"?Ho.exports=X2():Ho.exports=Z2()),Ho.exports}var x=J2();/*!
|
|
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 Q2(e,t,n){return(t=tT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(n),!0).forEach(function(r){Q2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eT(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 tT(e){var t=eT(e,"string");return typeof t=="symbol"?t:t+""}const Tm=()=>{};let sc={},Em={},Cm=null,Pm={mark:Tm,measure:Tm};try{typeof window<"u"&&(sc=window),typeof document<"u"&&(Em=document),typeof MutationObserver<"u"&&(Cm=MutationObserver),typeof performance<"u"&&(Pm=performance)}catch{}const{userAgent:Am=""}=sc.navigator||{},ur=sc,Ke=Em,Om=Cm,qo=Pm;ur.document;const Bn=!!Ke.documentElement&&!!Ke.head&&typeof Ke.addEventListener=="function"&&typeof Ke.createElement=="function",Mm=~Am.indexOf("MSIE")||~Am.indexOf("Trident/");var nT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,rT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,_m={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"}},iT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Im=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Ko="duotone",sT="sharp",oT="sharp-duotone",Dm=[wt,Ko,sT,oT],aT={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"}},lT={"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}]]),uT={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"}},fT=["fak","fa-kit","fakd","fa-kit-duotone"],$m={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},dT=["kit"],hT={kit:{"fa-kit":"fak"}},mT=["fak","fakd"],pT={kit:{fak:"fa-kit"}},Rm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Xo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},gT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],yT=["fak","fa-kit","fakd","fa-kit-duotone"],vT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},bT={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"}},xT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},oc={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"}},wT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ac=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...gT,...wT],ST=["solid","regular","light","thin","duotone","brands"],Nm=[1,2,3,4,5,6,7,8,9,10],TT=Nm.concat([11,12,13,14,15,16,17,18,19,20]),ET=[...Object.keys(xT),...ST,"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",Xo.GROUP,Xo.SWAP_OPACITY,Xo.PRIMARY,Xo.SECONDARY].concat(Nm.map(e=>"".concat(e,"x"))).concat(TT.map(e=>"w-".concat(e))),CT={"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 Un="___FONT_AWESOME___",lc=16,Lm="fa",km="svg-inline--fa",Br="data-fa-i2svg",cc="data-fa-pseudo-element",PT="data-fa-pseudo-element-pending",uc="data-prefix",fc="data-icon",Fm="fontawesome-i2svg",AT="async",OT=["HTML","HEAD","STYLE","SCRIPT"],jm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ts(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Vm=q({},_m);Vm[wt]=q(q(q(q({},{"fa-duotone":"duotone"}),_m[wt]),$m.kit),$m["kit-duotone"]);const MT=Ts(Vm),dc=q({},uT);dc[wt]=q(q(q(q({},{duotone:"fad"}),dc[wt]),Rm.kit),Rm["kit-duotone"]);const Bm=Ts(dc),hc=q({},oc);hc[wt]=q(q({},hc[wt]),pT.kit);const mc=Ts(hc),pc=q({},bT);pc[wt]=q(q({},pc[wt]),hT.kit),Ts(pc);const _T=nT,Um="fa-layers-text",IT=rT,DT=q({},aT);Ts(DT);const $T=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],gc=iT,RT=[...dT,...ET],Es=ur.FontAwesomeConfig||{};function NT(e){var t=Ke.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function LT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ke&&typeof Ke.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=LT(NT(n));i!=null&&(Es[r]=i)});const Wm={styleDefault:"solid",familyDefault:wt,cssPrefix:Lm,replacementClass:km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Es.familyPrefix&&(Es.cssPrefix=Es.familyPrefix);const xi=q(q({},Wm),Es);xi.autoReplaceSvg||(xi.observeMutations=!1);const ge={};Object.keys(Wm).forEach(e=>{Object.defineProperty(ge,e,{enumerable:!0,set:function(t){xi[e]=t,Cs.forEach(n=>n(ge))},get:function(){return xi[e]}})}),Object.defineProperty(ge,"familyPrefix",{enumerable:!0,set:function(e){xi.cssPrefix=e,Cs.forEach(t=>t(ge))},get:function(){return xi.cssPrefix}}),ur.FontAwesomeConfig=ge;const Cs=[];function kT(e){return Cs.push(e),()=>{Cs.splice(Cs.indexOf(e),1)}}const fr=lc,Tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function FT(e){if(!e||!Bn)return;const t=Ke.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ke.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],l=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(r=o)}return Ke.head.insertBefore(t,r),e}const jT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ps(){let e=12,t="";for(;e-- >0;)t+=jT[Math.random()*62|0];return t}function wi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yc(e){return e.classList?wi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function zm(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function VT(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(zm(e[n]),'" '),"").trim()}function Zo(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function vc(e){return e.size!==Tn.size||e.x!==Tn.x||e.y!==Tn.y||e.rotate!==Tn.rotate||e.flipX||e.flipY}function BT(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,") "),l="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(l," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function UT(e){let{transform:t,width:n=lc,height:r=lc,startCentered:i=!1}=e,o="";return i&&Mm?o+="translate(".concat(t.x/fr-n/2,"em, ").concat(t.y/fr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/fr,"em), calc(-50% + ").concat(t.y/fr,"em)) "):o+="translate(".concat(t.x/fr,"em, ").concat(t.y/fr,"em) "),o+="scale(".concat(t.size/fr*(t.flipX?-1:1),", ").concat(t.size/fr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var WT=`:root, :host {
|
|
26
|
+
*/function Q2(e,t,n){return(t=tT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(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 K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(n),!0).forEach(function(r){Q2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eT(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 tT(e){var t=eT(e,"string");return typeof t=="symbol"?t:t+""}const Tm=()=>{};let sc={},Em={},Cm=null,Pm={mark:Tm,measure:Tm};try{typeof window<"u"&&(sc=window),typeof document<"u"&&(Em=document),typeof MutationObserver<"u"&&(Cm=MutationObserver),typeof performance<"u"&&(Pm=performance)}catch{}const{userAgent:Am=""}=sc.navigator||{},ur=sc,Ke=Em,Om=Cm,qo=Pm;ur.document;const Bn=!!Ke.documentElement&&!!Ke.head&&typeof Ke.addEventListener=="function"&&typeof Ke.createElement=="function",Mm=~Am.indexOf("MSIE")||~Am.indexOf("Trident/");var nT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,rT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,_m={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"}},iT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Im=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Ko="duotone",sT="sharp",oT="sharp-duotone",Dm=[wt,Ko,sT,oT],aT={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"}},lT={"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}]]),uT={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"}},fT=["fak","fa-kit","fakd","fa-kit-duotone"],$m={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},dT=["kit"],hT={kit:{"fa-kit":"fak"}},mT=["fak","fakd"],pT={kit:{fak:"fa-kit"}},Rm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Xo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},gT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],yT=["fak","fa-kit","fakd","fa-kit-duotone"],vT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},bT={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"}},xT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},oc={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"}},wT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ac=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...gT,...wT],ST=["solid","regular","light","thin","duotone","brands"],Nm=[1,2,3,4,5,6,7,8,9,10],TT=Nm.concat([11,12,13,14,15,16,17,18,19,20]),ET=[...Object.keys(xT),...ST,"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",Xo.GROUP,Xo.SWAP_OPACITY,Xo.PRIMARY,Xo.SECONDARY].concat(Nm.map(e=>"".concat(e,"x"))).concat(TT.map(e=>"w-".concat(e))),CT={"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 Un="___FONT_AWESOME___",lc=16,Lm="fa",km="svg-inline--fa",Br="data-fa-i2svg",cc="data-fa-pseudo-element",PT="data-fa-pseudo-element-pending",uc="data-prefix",fc="data-icon",Fm="fontawesome-i2svg",AT="async",OT=["HTML","HEAD","STYLE","SCRIPT"],jm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ts(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Vm=K({},_m);Vm[wt]=K(K(K(K({},{"fa-duotone":"duotone"}),_m[wt]),$m.kit),$m["kit-duotone"]);const MT=Ts(Vm),dc=K({},uT);dc[wt]=K(K(K(K({},{duotone:"fad"}),dc[wt]),Rm.kit),Rm["kit-duotone"]);const Bm=Ts(dc),hc=K({},oc);hc[wt]=K(K({},hc[wt]),pT.kit);const mc=Ts(hc),pc=K({},bT);pc[wt]=K(K({},pc[wt]),hT.kit),Ts(pc);const _T=nT,Um="fa-layers-text",IT=rT,DT=K({},aT);Ts(DT);const $T=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],gc=iT,RT=[...dT,...ET],Es=ur.FontAwesomeConfig||{};function NT(e){var t=Ke.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function LT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ke&&typeof Ke.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=LT(NT(n));i!=null&&(Es[r]=i)});const Wm={styleDefault:"solid",familyDefault:wt,cssPrefix:Lm,replacementClass:km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Es.familyPrefix&&(Es.cssPrefix=Es.familyPrefix);const xi=K(K({},Wm),Es);xi.autoReplaceSvg||(xi.observeMutations=!1);const ge={};Object.keys(Wm).forEach(e=>{Object.defineProperty(ge,e,{enumerable:!0,set:function(t){xi[e]=t,Cs.forEach(n=>n(ge))},get:function(){return xi[e]}})}),Object.defineProperty(ge,"familyPrefix",{enumerable:!0,set:function(e){xi.cssPrefix=e,Cs.forEach(t=>t(ge))},get:function(){return xi.cssPrefix}}),ur.FontAwesomeConfig=ge;const Cs=[];function kT(e){return Cs.push(e),()=>{Cs.splice(Cs.indexOf(e),1)}}const fr=lc,Tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function FT(e){if(!e||!Bn)return;const t=Ke.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ke.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],l=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(r=o)}return Ke.head.insertBefore(t,r),e}const jT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Ps(){let e=12,t="";for(;e-- >0;)t+=jT[Math.random()*62|0];return t}function wi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function yc(e){return e.classList?wi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function zm(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function VT(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(zm(e[n]),'" '),"").trim()}function Zo(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function vc(e){return e.size!==Tn.size||e.x!==Tn.x||e.y!==Tn.y||e.rotate!==Tn.rotate||e.flipX||e.flipY}function BT(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,") "),l="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(l," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function UT(e){let{transform:t,width:n=lc,height:r=lc,startCentered:i=!1}=e,o="";return i&&Mm?o+="translate(".concat(t.x/fr-n/2,"em, ").concat(t.y/fr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/fr,"em), calc(-50% + ").concat(t.y/fr,"em)) "):o+="translate(".concat(t.x/fr,"em, ").concat(t.y/fr,"em) "),o+="scale(".concat(t.size/fr*(t.flipX?-1:1),", ").concat(t.size/fr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var WT=`: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,9 +576,9 @@ 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 Gm(){const e=Lm,t=km,n=ge.cssPrefix,r=ge.replacementClass;let i=WT;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(l,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let Ym=!1;function bc(){ge.autoAddCss&&!Ym&&(FT(Gm()),Ym=!0)}var zT={mixout(){return{dom:{css:Gm,insertCss:bc}}},hooks(){return{beforeDOMElementCreation(){bc()},beforeI2svg(){bc()}}}};const Wn=ur||{};Wn[Un]||(Wn[Un]={}),Wn[Un].styles||(Wn[Un].styles={}),Wn[Un].hooks||(Wn[Un].hooks={}),Wn[Un].shims||(Wn[Un].shims=[]);var En=Wn[Un];const Hm=[],qm=function(){Ke.removeEventListener("DOMContentLoaded",qm),Jo=1,Hm.map(e=>e())};let Jo=!1;Bn&&(Jo=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),Jo||Ke.addEventListener("DOMContentLoaded",qm));function GT(e){Bn&&(Jo?setTimeout(e,0):Hm.push(e))}function As(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?zm(e):"<".concat(t," ").concat(VT(n),">").concat(r.map(As).join(""),"</").concat(t,">")}function Km(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var xc=function(t,n,r,i){var o=Object.keys(t),l=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<l;u++)d=o[u],h=c(h,t[d],d,t);return h};function YT(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 wc(e){const t=YT(e);return t.length===1?t[0].toString(16):null}function HT(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 Xm(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 Sc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=Xm(t);typeof En.hooks.addPack=="function"&&!r?En.hooks.addPack(e,Xm(t)):En.styles[e]=q(q({},En.styles[e]||{}),i),e==="fas"&&Sc("fa",t)}const{styles:Os,shims:qT}=En,Zm=Object.keys(mc),KT=Zm.reduce((e,t)=>(e[t]=Object.keys(mc[t]),e),{});let Tc=null,Jm={},Qm={},ep={},tp={},np={};function XT(e){return~RT.indexOf(e)}function ZT(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!XT(i)?i:null}const rp=()=>{const e=r=>xc(Os,(i,o,l)=>(i[l]=xc(o,r,{}),i),{});Jm=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)),Qm=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),np=e((r,i,o)=>{const l=i[2];return r[o]=o,l.forEach(c=>{r[c]=o}),r});const t="far"in Os||ge.autoFetchSvg,n=xc(qT,(r,i)=>{const o=i[0];let l=i[1];const c=i[2];return l==="far"&&!t&&(l="fas"),typeof o=="string"&&(r.names[o]={prefix:l,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:l,iconName:c}),r},{names:{},unicodes:{}});ep=n.names,tp=n.unicodes,Tc=Qo(ge.styleDefault,{family:ge.familyDefault})};kT(e=>{Tc=Qo(e.styleDefault,{family:ge.familyDefault})}),rp();function Ec(e,t){return(Jm[e]||{})[t]}function JT(e,t){return(Qm[e]||{})[t]}function Ur(e,t){return(np[e]||{})[t]}function ip(e){return ep[e]||{prefix:null,iconName:null}}function QT(e){const t=tp[e],n=Ec("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function dr(){return Tc}const sp=()=>({prefix:null,iconName:null,rest:[]});function eE(e){let t=wt;const n=Zm.reduce((r,i)=>(r[i]="".concat(ge.cssPrefix,"-").concat(i),r),{});return Dm.forEach(r=>{(e.includes(n[r])||e.some(i=>KT[r].includes(i)))&&(t=r)}),t}function Qo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=MT[n][e];if(n===Ko&&!e)return"fad";const i=Bm[n][e]||Bm[n][r],o=e in En.styles?e:null;return i||o||null}function tE(e){let t=[],n=null;return e.forEach(r=>{const i=ZT(ge.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function op(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function ea(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=ac.concat(yT),o=op(e.filter(m=>i.includes(m))),l=op(e.filter(m=>!ac.includes(m))),c=o.filter(m=>(r=m,!Im.includes(m))),[u=null]=c,d=eE(o),h=q(q({},tE(l)),{},{prefix:Qo(u,{family:d})});return q(q(q({},h),sE({values:e,family:d,styles:Os,config:ge,canonical:h,givenPrefix:r})),nE(n,r,h))}function nE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?ip(i):{},l=Ur(r,i);return i=o.iconName||l||i,r=o.prefix||r,r==="far"&&!Os.far&&Os.fas&&!ge.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const rE=Dm.filter(e=>e!==wt||e!==Ko),iE=Object.keys(oc).filter(e=>e!==wt).map(e=>Object.keys(oc[e])).flat();function sE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:l={}}=e,c=n===Ko,u=t.includes("fa-duotone")||t.includes("fad"),d=l.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&&rE.includes(n)&&(Object.keys(o).find(g=>iE.includes(g))||l.autoFetchSvg)){const g=cT.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Ur(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=dr()||"fas"),r}class oE{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]=q(q({},this.definitions[o]||{}),i[o]),Sc(o,i[o]);const l=mc[wt][o];l&&Sc(l,i[o]),rp()})}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:l,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][l]=c}),t}}let ap=[],Si={};const Ti={},aE=Object.keys(Ti);function lE(e,t){let{mixoutsTo:n}=t;return ap=e,Si={},Object.keys(Ti).forEach(r=>{aE.indexOf(r)===-1&&delete Ti[r]}),ap.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(l=>{n[o]||(n[o]={}),n[o][l]=i[o][l]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(l=>{Si[l]||(Si[l]=[]),Si[l].push(o[l])})}r.provides&&r.provides(Ti)}),n}function Cc(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(Si[e]||[]).forEach(l=>{t=l.apply(null,[t,...r])}),t}function Wr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Si[e]||[]).forEach(o=>{o.apply(null,n)})}function hr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ti[e]?Ti[e].apply(null,t):void 0}function Pc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||dr();if(t)return t=Ur(n,t)||t,Km(lp.definitions,n,t)||Km(En.styles,n,t)}const lp=new oE,Ut={noAuto:()=>{ge.autoReplaceSvg=!1,ge.observeMutations=!1,Wr("noAuto")},config:ge,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bn?(Wr("beforeI2svg",e),hr("pseudoElements2svg",e),hr("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;ge.autoReplaceSvg===!1&&(ge.autoReplaceSvg=!0),ge.observeMutations=!0,GT(()=>{cE({autoReplaceSvgRoot:t}),Wr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ur(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=Qo(e[0]);return{prefix:n,iconName:Ur(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ge.cssPrefix,"-"))>-1||e.match(_T))){const t=ea(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||dr(),iconName:Ur(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=dr();return{prefix:t,iconName:Ur(t,e)||e}}}},library:lp,findIconDefinition:Pc,toHtml:As},cE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ke}=e;(Object.keys(En.styles).length>0||ge.autoFetchSvg)&&Bn&&ge.autoReplaceSvg&&Ut.dom.i2svg({node:t})};function ta(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>As(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Bn)return;const n=Ke.createElement("div");return n.innerHTML=e.html,n.children}}),e}function uE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:l}=e;if(vc(l)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=Zo(q(q({},o),{},{"transform-origin":"".concat(d.x+l.x/16,"em ").concat(d.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function fE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const l=o===!0?"".concat(t,"-").concat(ge.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},i),{},{id:l}),children:r}]}]}function Ac(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:l,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:g,height:y}=n.found?n:t,S=mT.includes(r),b=[ge.replacementClass,i?"".concat(ge.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let P={children:[],attributes:q(q({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,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&&(P.attributes[Br]=""),c&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(d||Ps())},children:[c]}),delete P.attributes.title);const A=q(q({},P),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:l,styles:q(q({},w),h.styles)}),{children:O,attributes:D}=n.found&&t.found?hr("generateAbstractMask",A)||{children:[],attributes:{}}:hr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=O,A.attributes=D,l?fE(A):uE(A)}function cp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:l,watchable:c=!1}=e,u=q(q(q({},l.attributes),o?{title:o}:{}),{},{class:l.classes.join(" ")});c&&(u[Br]="");const d=q({},l.styles);vc(i)&&(d.transform=UT({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=Zo(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 dE(e){const{content:t,title:n,extra:r}=e,i=q(q(q({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Zo(r.styles);o.length>0&&(i.style=o);const l=[];return l.push({tag:"span",attributes:i,children:[t]}),n&&l.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),l}const{styles:Oc}=En;function Mc(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(ge.cssPrefix,"-").concat(gc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(gc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(gc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const hE={found:!1,width:512,height:512};function mE(e,t){!jm&&!ge.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function _c(e,t){let n=t;return t==="fa"&&ge.styleDefault!==null&&(t=dr()),new Promise((r,i)=>{if(n==="fa"){const o=ip(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Oc[t]&&Oc[t][e]){const o=Oc[t][e];return r(Mc(o))}mE(e,t),r(q(q({},hE),{},{icon:ge.showMissingIcons&&e?hr("missingIconAbstract")||{}:{}}))})}const up=()=>{},Ic=ge.measurePerformance&&qo&&qo.mark&&qo.measure?qo:{mark:up,measure:up},Ms='FA "6.7.2"',pE=e=>(Ic.mark("".concat(Ms," ").concat(e," begins")),()=>fp(e)),fp=e=>{Ic.mark("".concat(Ms," ").concat(e," ends")),Ic.measure("".concat(Ms," ").concat(e),"".concat(Ms," ").concat(e," begins"),"".concat(Ms," ").concat(e," ends"))};var Dc={begin:pE,end:fp};const na=()=>{};function dp(e){return typeof(e.getAttribute?e.getAttribute(Br):null)=="string"}function gE(e){const t=e.getAttribute?e.getAttribute(uc):null,n=e.getAttribute?e.getAttribute(fc):null;return t&&n}function yE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ge.replacementClass)}function vE(){return ge.autoReplaceSvg===!0?ra.replace:ra[ge.autoReplaceSvg]||ra.replace}function bE(e){return Ke.createElementNS("http://www.w3.org/2000/svg",e)}function xE(e){return Ke.createElement(e)}function hp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?bE:xE}=t;if(typeof e=="string")return Ke.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(hp(o,{ceFn:n}))}),r}function wE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ra={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(hp(n),t)}),t.getAttribute(Br)===null&&ge.keepOriginalSource){let n=Ke.createComment(wE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~yc(t).indexOf(ge.replacementClass))return ra.replace(e);const r=new RegExp("".concat(ge.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((l,c)=>(c===ge.replacementClass||c.match(r)?l.toSvg.push(c):l.toNode.push(c),l),{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=>As(o)).join(`
|
|
580
|
-
`);t.setAttribute(Br,""),t.innerHTML=i}};function mp(e){e()}function pp(e,t){const n=typeof t=="function"?t:na;if(e.length===0)n();else{let r=mp;ge.mutateApproach===AT&&(r=ur.requestAnimationFrame||mp),r(()=>{const i=vE(),o=Dc.begin("mutate");e.map(i),o(),n()})}}let $c=!1;function gp(){$c=!0}function Rc(){$c=!1}let ia=null;function yp(e){if(!Om||!ge.observeMutations)return;const{treeCallback:t=na,nodeCallback:n=na,pseudoElementsCallback:r=na,observeMutationsRoot:i=Ke}=e;ia=new Om(o=>{if($c)return;const l=dr();wi(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!dp(c.addedNodes[0])&&(ge.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ge.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&dp(c.target)&&~$T.indexOf(c.attributeName))if(c.attributeName==="class"&&gE(c.target)){const{prefix:u,iconName:d}=ea(yc(c.target));c.target.setAttribute(uc,u||l),d&&c.target.setAttribute(fc,d)}else yE(c.target)&&n(c.target)})}),Bn&&ia.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function SE(){ia&&ia.disconnect()}function TE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),l=o[0],c=o.slice(1);return l&&c.length>0&&(r[l]=c.join(":").trim()),r},{})),n}function EE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=ea(yc(e));return i.prefix||(i.prefix=dr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=JT(i.prefix,e.innerText)||Ec(i.prefix,wc(e.innerText))),!i.iconName&&ge.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function CE(e){const t=wi(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 ge.autoA11y&&(n?t["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(r||Ps()):(t["aria-hidden"]="true",t.focusable="false")),t}function PE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=EE(e),o=CE(e),l=Cc("parseNodeAttributes",{},e);let c=t.styleParser?TE(e):[];return
|
|
581
|
-
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function VE(e){return Promise.all([Tp(e,"::before"),Tp(e,"::after")])}function BE(e){return e.parentNode!==document.head&&!~OT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(cc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ep(e){if(Bn)return new Promise((t,n)=>{const r=wi(e.querySelectorAll("*")).filter(BE).map(VE),i=Dc.begin("searchPseudoElements");gp(),Promise.all(r).then(()=>{i(),Rc(),t()}).catch(()=>{i(),Rc(),n()})})}var UE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Ep,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ke}=t;ge.searchPseudoElements&&Ep(n)}}};let Cp=!1;var WE={mixout(){return{dom:{unwatch(){gp(),Cp=!0}}}},hooks(){return{bootstrap(){yp(Cc("mutationObserverCallbacks",{}))},noAuto(){SE()},watch(e){const{observeMutationsRoot:t}=e;Cp?Rc():yp(Cc("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Pp=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 l=i.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},t)};var zE={mixout(){return{parse:{transform:e=>Pp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Pp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const l={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:l,inner:h,path:m};return{tag:"g",attributes:
|
|
579
|
+
}`;function Gm(){const e=Lm,t=km,n=ge.cssPrefix,r=ge.replacementClass;let i=WT;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(l,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let Ym=!1;function bc(){ge.autoAddCss&&!Ym&&(FT(Gm()),Ym=!0)}var zT={mixout(){return{dom:{css:Gm,insertCss:bc}}},hooks(){return{beforeDOMElementCreation(){bc()},beforeI2svg(){bc()}}}};const Wn=ur||{};Wn[Un]||(Wn[Un]={}),Wn[Un].styles||(Wn[Un].styles={}),Wn[Un].hooks||(Wn[Un].hooks={}),Wn[Un].shims||(Wn[Un].shims=[]);var En=Wn[Un];const Hm=[],qm=function(){Ke.removeEventListener("DOMContentLoaded",qm),Jo=1,Hm.map(e=>e())};let Jo=!1;Bn&&(Jo=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),Jo||Ke.addEventListener("DOMContentLoaded",qm));function GT(e){Bn&&(Jo?setTimeout(e,0):Hm.push(e))}function As(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?zm(e):"<".concat(t," ").concat(VT(n),">").concat(r.map(As).join(""),"</").concat(t,">")}function Km(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var xc=function(t,n,r,i){var o=Object.keys(t),l=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<l;u++)d=o[u],h=c(h,t[d],d,t);return h};function YT(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 wc(e){const t=YT(e);return t.length===1?t[0].toString(16):null}function HT(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 Xm(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 Sc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=Xm(t);typeof En.hooks.addPack=="function"&&!r?En.hooks.addPack(e,Xm(t)):En.styles[e]=K(K({},En.styles[e]||{}),i),e==="fas"&&Sc("fa",t)}const{styles:Os,shims:qT}=En,Zm=Object.keys(mc),KT=Zm.reduce((e,t)=>(e[t]=Object.keys(mc[t]),e),{});let Tc=null,Jm={},Qm={},ep={},tp={},np={};function XT(e){return~RT.indexOf(e)}function ZT(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!XT(i)?i:null}const rp=()=>{const e=r=>xc(Os,(i,o,l)=>(i[l]=xc(o,r,{}),i),{});Jm=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)),Qm=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),np=e((r,i,o)=>{const l=i[2];return r[o]=o,l.forEach(c=>{r[c]=o}),r});const t="far"in Os||ge.autoFetchSvg,n=xc(qT,(r,i)=>{const o=i[0];let l=i[1];const c=i[2];return l==="far"&&!t&&(l="fas"),typeof o=="string"&&(r.names[o]={prefix:l,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:l,iconName:c}),r},{names:{},unicodes:{}});ep=n.names,tp=n.unicodes,Tc=Qo(ge.styleDefault,{family:ge.familyDefault})};kT(e=>{Tc=Qo(e.styleDefault,{family:ge.familyDefault})}),rp();function Ec(e,t){return(Jm[e]||{})[t]}function JT(e,t){return(Qm[e]||{})[t]}function Ur(e,t){return(np[e]||{})[t]}function ip(e){return ep[e]||{prefix:null,iconName:null}}function QT(e){const t=tp[e],n=Ec("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function dr(){return Tc}const sp=()=>({prefix:null,iconName:null,rest:[]});function eE(e){let t=wt;const n=Zm.reduce((r,i)=>(r[i]="".concat(ge.cssPrefix,"-").concat(i),r),{});return Dm.forEach(r=>{(e.includes(n[r])||e.some(i=>KT[r].includes(i)))&&(t=r)}),t}function Qo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=MT[n][e];if(n===Ko&&!e)return"fad";const i=Bm[n][e]||Bm[n][r],o=e in En.styles?e:null;return i||o||null}function tE(e){let t=[],n=null;return e.forEach(r=>{const i=ZT(ge.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function op(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function ea(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=ac.concat(yT),o=op(e.filter(m=>i.includes(m))),l=op(e.filter(m=>!ac.includes(m))),c=o.filter(m=>(r=m,!Im.includes(m))),[u=null]=c,d=eE(o),h=K(K({},tE(l)),{},{prefix:Qo(u,{family:d})});return K(K(K({},h),sE({values:e,family:d,styles:Os,config:ge,canonical:h,givenPrefix:r})),nE(n,r,h))}function nE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?ip(i):{},l=Ur(r,i);return i=o.iconName||l||i,r=o.prefix||r,r==="far"&&!Os.far&&Os.fas&&!ge.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const rE=Dm.filter(e=>e!==wt||e!==Ko),iE=Object.keys(oc).filter(e=>e!==wt).map(e=>Object.keys(oc[e])).flat();function sE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:l={}}=e,c=n===Ko,u=t.includes("fa-duotone")||t.includes("fad"),d=l.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&&rE.includes(n)&&(Object.keys(o).find(g=>iE.includes(g))||l.autoFetchSvg)){const g=cT.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Ur(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=dr()||"fas"),r}class oE{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]=K(K({},this.definitions[o]||{}),i[o]),Sc(o,i[o]);const l=mc[wt][o];l&&Sc(l,i[o]),rp()})}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:l,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][l]=c}),t}}let ap=[],Si={};const Ti={},aE=Object.keys(Ti);function lE(e,t){let{mixoutsTo:n}=t;return ap=e,Si={},Object.keys(Ti).forEach(r=>{aE.indexOf(r)===-1&&delete Ti[r]}),ap.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(l=>{n[o]||(n[o]={}),n[o][l]=i[o][l]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(l=>{Si[l]||(Si[l]=[]),Si[l].push(o[l])})}r.provides&&r.provides(Ti)}),n}function Cc(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(Si[e]||[]).forEach(l=>{t=l.apply(null,[t,...r])}),t}function Wr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Si[e]||[]).forEach(o=>{o.apply(null,n)})}function hr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ti[e]?Ti[e].apply(null,t):void 0}function Pc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||dr();if(t)return t=Ur(n,t)||t,Km(lp.definitions,n,t)||Km(En.styles,n,t)}const lp=new oE,Ut={noAuto:()=>{ge.autoReplaceSvg=!1,ge.observeMutations=!1,Wr("noAuto")},config:ge,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bn?(Wr("beforeI2svg",e),hr("pseudoElements2svg",e),hr("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;ge.autoReplaceSvg===!1&&(ge.autoReplaceSvg=!0),ge.observeMutations=!0,GT(()=>{cE({autoReplaceSvgRoot:t}),Wr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ur(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=Qo(e[0]);return{prefix:n,iconName:Ur(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ge.cssPrefix,"-"))>-1||e.match(_T))){const t=ea(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||dr(),iconName:Ur(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=dr();return{prefix:t,iconName:Ur(t,e)||e}}}},library:lp,findIconDefinition:Pc,toHtml:As},cE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ke}=e;(Object.keys(En.styles).length>0||ge.autoFetchSvg)&&Bn&&ge.autoReplaceSvg&&Ut.dom.i2svg({node:t})};function ta(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>As(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Bn)return;const n=Ke.createElement("div");return n.innerHTML=e.html,n.children}}),e}function uE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:l}=e;if(vc(l)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=Zo(K(K({},o),{},{"transform-origin":"".concat(d.x+l.x/16,"em ").concat(d.y+l.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function fE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const l=o===!0?"".concat(t,"-").concat(ge.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:K(K({},i),{},{id:l}),children:r}]}]}function Ac(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:l,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:g,height:y}=n.found?n:t,S=mT.includes(r),b=[ge.replacementClass,i?"".concat(ge.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let P={children:[],attributes:K(K({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:b,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&&(P.attributes[Br]=""),c&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(d||Ps())},children:[c]}),delete P.attributes.title);const A=K(K({},P),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:l,styles:K(K({},w),h.styles)}),{children:O,attributes:D}=n.found&&t.found?hr("generateAbstractMask",A)||{children:[],attributes:{}}:hr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=O,A.attributes=D,l?fE(A):uE(A)}function cp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:l,watchable:c=!1}=e,u=K(K(K({},l.attributes),o?{title:o}:{}),{},{class:l.classes.join(" ")});c&&(u[Br]="");const d=K({},l.styles);vc(i)&&(d.transform=UT({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=Zo(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 dE(e){const{content:t,title:n,extra:r}=e,i=K(K(K({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=Zo(r.styles);o.length>0&&(i.style=o);const l=[];return l.push({tag:"span",attributes:i,children:[t]}),n&&l.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),l}const{styles:Oc}=En;function Mc(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(ge.cssPrefix,"-").concat(gc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(gc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ge.cssPrefix,"-").concat(gc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const hE={found:!1,width:512,height:512};function mE(e,t){!jm&&!ge.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function _c(e,t){let n=t;return t==="fa"&&ge.styleDefault!==null&&(t=dr()),new Promise((r,i)=>{if(n==="fa"){const o=ip(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Oc[t]&&Oc[t][e]){const o=Oc[t][e];return r(Mc(o))}mE(e,t),r(K(K({},hE),{},{icon:ge.showMissingIcons&&e?hr("missingIconAbstract")||{}:{}}))})}const up=()=>{},Ic=ge.measurePerformance&&qo&&qo.mark&&qo.measure?qo:{mark:up,measure:up},Ms='FA "6.7.2"',pE=e=>(Ic.mark("".concat(Ms," ").concat(e," begins")),()=>fp(e)),fp=e=>{Ic.mark("".concat(Ms," ").concat(e," ends")),Ic.measure("".concat(Ms," ").concat(e),"".concat(Ms," ").concat(e," begins"),"".concat(Ms," ").concat(e," ends"))};var Dc={begin:pE,end:fp};const na=()=>{};function dp(e){return typeof(e.getAttribute?e.getAttribute(Br):null)=="string"}function gE(e){const t=e.getAttribute?e.getAttribute(uc):null,n=e.getAttribute?e.getAttribute(fc):null;return t&&n}function yE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ge.replacementClass)}function vE(){return ge.autoReplaceSvg===!0?ra.replace:ra[ge.autoReplaceSvg]||ra.replace}function bE(e){return Ke.createElementNS("http://www.w3.org/2000/svg",e)}function xE(e){return Ke.createElement(e)}function hp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?bE:xE}=t;if(typeof e=="string")return Ke.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(hp(o,{ceFn:n}))}),r}function wE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ra={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(hp(n),t)}),t.getAttribute(Br)===null&&ge.keepOriginalSource){let n=Ke.createComment(wE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~yc(t).indexOf(ge.replacementClass))return ra.replace(e);const r=new RegExp("".concat(ge.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((l,c)=>(c===ge.replacementClass||c.match(r)?l.toSvg.push(c):l.toNode.push(c),l),{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=>As(o)).join(`
|
|
580
|
+
`);t.setAttribute(Br,""),t.innerHTML=i}};function mp(e){e()}function pp(e,t){const n=typeof t=="function"?t:na;if(e.length===0)n();else{let r=mp;ge.mutateApproach===AT&&(r=ur.requestAnimationFrame||mp),r(()=>{const i=vE(),o=Dc.begin("mutate");e.map(i),o(),n()})}}let $c=!1;function gp(){$c=!0}function Rc(){$c=!1}let ia=null;function yp(e){if(!Om||!ge.observeMutations)return;const{treeCallback:t=na,nodeCallback:n=na,pseudoElementsCallback:r=na,observeMutationsRoot:i=Ke}=e;ia=new Om(o=>{if($c)return;const l=dr();wi(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!dp(c.addedNodes[0])&&(ge.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ge.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&dp(c.target)&&~$T.indexOf(c.attributeName))if(c.attributeName==="class"&&gE(c.target)){const{prefix:u,iconName:d}=ea(yc(c.target));c.target.setAttribute(uc,u||l),d&&c.target.setAttribute(fc,d)}else yE(c.target)&&n(c.target)})}),Bn&&ia.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function SE(){ia&&ia.disconnect()}function TE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),l=o[0],c=o.slice(1);return l&&c.length>0&&(r[l]=c.join(":").trim()),r},{})),n}function EE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=ea(yc(e));return i.prefix||(i.prefix=dr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=JT(i.prefix,e.innerText)||Ec(i.prefix,wc(e.innerText))),!i.iconName&&ge.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function CE(e){const t=wi(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 ge.autoA11y&&(n?t["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(r||Ps()):(t["aria-hidden"]="true",t.focusable="false")),t}function PE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function vp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=EE(e),o=CE(e),l=Cc("parseNodeAttributes",{},e);let c=t.styleParser?TE(e):[];return K({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},l)}const{styles:AE}=En;function bp(e){const t=ge.autoReplaceSvg==="nest"?vp(e,{styleParser:!1}):vp(e);return~t.extra.classes.indexOf(Um)?hr("generateLayersText",e,t):hr("generateSvgReplacementMutation",e,t)}function OE(){return[...fT,...ac]}function xp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bn)return Promise.resolve();const n=Ke.documentElement.classList,r=h=>n.add("".concat(Fm,"-").concat(h)),i=h=>n.remove("".concat(Fm,"-").concat(h)),o=ge.autoFetchSvg?OE():Im.concat(Object.keys(AE));o.includes("fa")||o.push("fa");const l=[".".concat(Um,":not([").concat(Br,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Br,"])"))).join(", ");if(l.length===0)return Promise.resolve();let c=[];try{c=wi(e.querySelectorAll(l))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=Dc.begin("onTree"),d=c.reduce((h,m)=>{try{const g=bp(m);g&&h.push(g)}catch(g){jm||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(g=>{pp(g,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(g=>{u(),m(g)})})}function ME(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bp(e).then(n=>{n&&pp([n],t)})}function _E(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Pc(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Pc(i||{})),e(r,K(K({},n),{},{mask:i}))}}const IE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,symbol:r=!1,mask:i=null,maskId:o=null,title:l=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:g,icon:y}=e;return ta(K({type:"icon"},e),()=>(Wr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ge.autoA11y&&(l?d["aria-labelledby"]="".concat(ge.replacementClass,"-title-").concat(c||Ps()):(d["aria-hidden"]="true",d.focusable="false")),Ac({icons:{main:Mc(y),mask:i?Mc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:g,transform:K(K({},Tn),n),symbol:r,title:l,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var DE={mixout(){return{icon:_E(IE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=xp,e.nodeCallback=ME,e}}},provides(e){e.i2svg=function(t){const{node:n=Ke,callback:r=()=>{}}=t;return xp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:l,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((g,y)=>{Promise.all([_c(r,l),d.iconName?_c(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,P]=S;g([t,Ac({icons:{main:b,mask:P},prefix:l,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:l}=t;const c=Zo(l);c.length>0&&(r.style=c);let u;return vc(o)&&(u=hr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},$E={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ta({type:"layer"},()=>{Wr("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(ge.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},RE={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 ta({type:"counter",content:e},()=>(Wr("beforeDOMElementCreation",{content:e,params:t}),dE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ge.cssPrefix,"-layers-counter"),...r]}})))}}}},NE={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,title:r=null,classes:i=[],attributes:o={},styles:l={}}=t;return ta({type:"text",content:e},()=>(Wr("beforeDOMElementCreation",{content:e,params:t}),cp({content:e,transform:K(K({},Tn),n),title:r,extra:{attributes:o,styles:l,classes:["".concat(ge.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let l=null,c=null;if(Mm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();l=d.width/u,c=d.height/u}return ge.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,cp({content:t.innerHTML,width:l,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const LE=new RegExp('"',"ug"),wp=[1105920,1112319],Sp=K(K(K(K({},{FontAwesome:{normal:"fas",400:"fas"}}),lT),CT),vT),Nc=Object.keys(Sp).reduce((e,t)=>(e[t.toLowerCase()]=Sp[t],e),{}),kE=Object.keys(Nc).reduce((e,t)=>{const n=Nc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function FE(e){const t=e.replace(LE,""),n=HT(t,0),r=n>=wp[0]&&n<=wp[1],i=t.length===2?t[0]===t[1]:!1;return{value:wc(i?t[0]:t),isSecondary:r||i}}function jE(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Nc[n]||{})[i]||kE[n]}function Tp(e,t){const n="".concat(PT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const l=wi(e.children).filter(g=>g.getAttribute(cc)===t)[0],c=ur.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(IT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(l&&!d)return e.removeChild(l),r();if(d&&m!=="none"&&m!==""){const g=c.getPropertyValue("content");let y=jE(u,h);const{value:S,isSecondary:b}=FE(g),P=d[0].startsWith("FontAwesome");let w=Ec(y,S),A=w;if(P){const O=QT(S);O.iconName&&O.prefix&&(w=O.iconName,y=O.prefix)}if(w&&!b&&(!l||l.getAttribute(uc)!==y||l.getAttribute(fc)!==A)){e.setAttribute(n,A),l&&e.removeChild(l);const O=PE(),{extra:D}=O;D.attributes[cc]=t,_c(w,y).then(C=>{const L=Ac(K(K({},O),{},{icons:{main:C,mask:sp()},prefix:y,iconName:A,extra:D,watchable:!0})),V=Ke.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(V,e.firstChild):e.appendChild(V),V.outerHTML=L.map(F=>As(F)).join(`
|
|
581
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function VE(e){return Promise.all([Tp(e,"::before"),Tp(e,"::after")])}function BE(e){return e.parentNode!==document.head&&!~OT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(cc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Ep(e){if(Bn)return new Promise((t,n)=>{const r=wi(e.querySelectorAll("*")).filter(BE).map(VE),i=Dc.begin("searchPseudoElements");gp(),Promise.all(r).then(()=>{i(),Rc(),t()}).catch(()=>{i(),Rc(),n()})})}var UE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Ep,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ke}=t;ge.searchPseudoElements&&Ep(n)}}};let Cp=!1;var WE={mixout(){return{dom:{unwatch(){gp(),Cp=!0}}}},hooks(){return{bootstrap(){yp(Cc("mutationObserverCallbacks",{}))},noAuto(){SE()},watch(e){const{observeMutationsRoot:t}=e;Cp?Rc():yp(Cc("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Pp=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 l=i.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},t)};var zE={mixout(){return{parse:{transform:e=>Pp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Pp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const l={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:l,inner:h,path:m};return{tag:"g",attributes:K({},g.outer),children:[{tag:"g",attributes:K({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:K(K({},n.icon.attributes),g.path)}]}]}}}};const Lc={x:0,y:0,width:"100%",height:"100%"};function Ap(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 GE(e){return e.tag==="g"?e.children:[e]}var YE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?ea(n.split(" ").map(i=>i.trim())):sp();return r.prefix||(r.prefix=dr()),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:l,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,g=BT({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:K(K({},Lc),{},{fill:"white"})},S=d.children?{children:d.children.map(Ap)}:{},b={tag:"g",attributes:K({},g.inner),children:[Ap(K({tag:d.tag,attributes:K(K({},d.attributes),g.path)},S))]},P={tag:"g",attributes:K({},g.outer),children:[b]},w="mask-".concat(l||Ps()),A="clip-".concat(l||Ps()),O={tag:"mask",attributes:K(K({},Lc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,P]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:GE(m)},O]};return n.push(D,{tag:"rect",attributes:K({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(w,")")},Lc)}),{children:n,attributes:r}}}},HE={provides(e){let t=!1;ur.matchMedia&&(t=ur.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:K(K({},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=K(K({},i),{},{attributeName:"opacity"}),l={tag:"circle",attributes:K(K({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||l.children.push({tag:"animate",attributes:K(K({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:K(K({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:K(K({},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:K(K({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:K(K({},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:K(K({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},qE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},KE=[zT,DE,$E,RE,NE,UE,WE,zE,YE,HE,qE];lE(KE,{mixoutsTo:Ut}),Ut.noAuto,Ut.config,Ut.library,Ut.dom;const kc=Ut.parse;Ut.findIconDefinition,Ut.toHtml;const XE=Ut.icon;Ut.layer,Ut.text,Ut.counter;var sa={exports:{}},oa={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.
|
|
@@ -592,12 +592,12 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
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 Mp;function JE(){return Mp||(Mp=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,l=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,b=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(
|
|
595
|
+
*/var Mp;function JE(){return Mp||(Mp=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,l=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,b=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===d||Q===o||Q===i||Q===m||Q===g||typeof Q=="object"&&Q!==null&&(Q.$$typeof===S||Q.$$typeof===y||Q.$$typeof===l||Q.$$typeof===c||Q.$$typeof===h||Q.$$typeof===P||Q.$$typeof===w||Q.$$typeof===A||Q.$$typeof===b)}function D(Q){if(typeof Q=="object"&&Q!==null){var pe=Q.$$typeof;switch(pe){case t:var Le=Q.type;switch(Le){case u:case d:case r:case o:case i:case m:return Le;default:var ft=Le&&Le.$$typeof;switch(ft){case c:case h:case S:case y:case l:return ft;default:return pe}}case n:return pe}}}var C=u,L=d,V=c,F=l,q=t,ee=h,re=r,ve=S,ye=y,fe=n,se=o,oe=i,z=m,Y=!1;function Z(Q){return Y||(Y=!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.")),_(Q)||D(Q)===u}function _(Q){return D(Q)===d}function k(Q){return D(Q)===c}function X(Q){return D(Q)===l}function J(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function le(Q){return D(Q)===h}function H(Q){return D(Q)===r}function ie(Q){return D(Q)===S}function de(Q){return D(Q)===y}function ne(Q){return D(Q)===n}function me(Q){return D(Q)===o}function Ce(Q){return D(Q)===i}function Ue(Q){return D(Q)===m}je.AsyncMode=C,je.ConcurrentMode=L,je.ContextConsumer=V,je.ContextProvider=F,je.Element=q,je.ForwardRef=ee,je.Fragment=re,je.Lazy=ve,je.Memo=ye,je.Portal=fe,je.Profiler=se,je.StrictMode=oe,je.Suspense=z,je.isAsyncMode=Z,je.isConcurrentMode=_,je.isContextConsumer=k,je.isContextProvider=X,je.isElement=J,je.isForwardRef=le,je.isFragment=H,je.isLazy=ie,je.isMemo=de,je.isPortal=ne,je.isProfiler=me,je.isStrictMode=Ce,je.isSuspense=Ue,je.isValidElementType=O,je.typeOf=D}()),je}var _p;function Ip(){return _p||(_p=1,process.env.NODE_ENV==="production"?oa.exports=ZE():oa.exports=JE()),oa.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var Fc,Dp;function QE(){if(Dp)return Fc;Dp=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 l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(h){return l[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 Fc=i()?Object.assign:function(o,l){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},Fc}var jc,$p;function Vc(){if($p)return jc;$p=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jc=e,jc}var Bc,Rp;function Np(){return Rp||(Rp=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Uc,Lp;function eC(){if(Lp)return Uc;Lp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vc(),n={},r=Np();e=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(o,l,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](l,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={})},Uc=i,Uc}var Wc,kp;function tC(){if(kp)return Wc;kp=1;var e=Ip(),t=QE(),n=Vc(),r=Np(),i=eC(),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 l(){return null}return Wc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(_){var k=_&&(d&&_[d]||_[h]);if(typeof k=="function")return k}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:A(),arrayOf:O,element:D(),elementType:C(),instanceOf:L,node:
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var
|
|
599
|
+
*/var Fc,Dp;function QE(){if(Dp)return Fc;Dp=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 l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(h){return l[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 Fc=i()?Object.assign:function(o,l){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},Fc}var jc,$p;function Vc(){if($p)return jc;$p=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jc=e,jc}var Bc,Rp;function Np(){return Rp||(Rp=1,Bc=Function.call.bind(Object.prototype.hasOwnProperty)),Bc}var Uc,Lp;function eC(){if(Lp)return Uc;Lp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vc(),n={},r=Np();e=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(o,l,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](l,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={})},Uc=i,Uc}var Wc,kp;function tC(){if(kp)return Wc;kp=1;var e=Ip(),t=QE(),n=Vc(),r=Np(),i=eC(),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 l(){return null}return Wc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(_){var k=_&&(d&&_[d]||_[h]);if(typeof k=="function")return k}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:A(),arrayOf:O,element:D(),elementType:C(),instanceOf:L,node:ee(),objectOf:F,oneOf:V,oneOfType:q,shape:ve,exact:ye};function S(_,k){return _===k?_!==0||1/_===1/k:_!==_&&k!==k}function b(_,k){this.message=_,this.data=k&&typeof k=="object"?k:{},this.stack=""}b.prototype=Error.prototype;function P(_){if(process.env.NODE_ENV!=="production")var k={},X=0;function J(H,ie,de,ne,me,Ce,Ue){if(ne=ne||g,Ce=Ce||de,Ue!==n){if(u){var Q=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 Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ne+":"+de;!k[pe]&&X<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+ne+"`. 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."),k[pe]=!0,X++)}}return ie[de]==null?H?ie[de]===null?new b("The "+me+" `"+Ce+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new b("The "+me+" `"+Ce+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:_(ie,de,ne,me,Ce)}var le=J.bind(null,!1);return le.isRequired=J.bind(null,!0),le}function w(_){function k(X,J,le,H,ie,de){var ne=X[J],me=oe(ne);if(me!==_){var Ce=z(ne);return new b("Invalid "+H+" `"+ie+"` of type "+("`"+Ce+"` supplied to `"+le+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return P(k)}function A(){return P(l)}function O(_){function k(X,J,le,H,ie){if(typeof _!="function")return new b("Property `"+ie+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var de=X[J];if(!Array.isArray(de)){var ne=oe(de);return new b("Invalid "+H+" `"+ie+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an array."))}for(var me=0;me<de.length;me++){var Ce=_(de,me,le,H,ie+"["+me+"]",n);if(Ce instanceof Error)return Ce}return null}return P(k)}function D(){function _(k,X,J,le,H){var ie=k[X];if(!c(ie)){var de=oe(ie);return new b("Invalid "+le+" `"+H+"` of type "+("`"+de+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return P(_)}function C(){function _(k,X,J,le,H){var ie=k[X];if(!e.isValidElementType(ie)){var de=oe(ie);return new b("Invalid "+le+" `"+H+"` of type "+("`"+de+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return P(_)}function L(_){function k(X,J,le,H,ie){if(!(X[J]instanceof _)){var de=_.name||g,ne=Z(X[J]);return new b("Invalid "+H+" `"+ie+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected ")+("instance of `"+de+"`."))}return null}return P(k)}function V(_){if(!Array.isArray(_))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.")),l;function k(X,J,le,H,ie){for(var de=X[J],ne=0;ne<_.length;ne++)if(S(de,_[ne]))return null;var me=JSON.stringify(_,function(Ue,Q){var pe=z(Q);return pe==="symbol"?String(Q):Q});return new b("Invalid "+H+" `"+ie+"` of value `"+String(de)+"` "+("supplied to `"+le+"`, expected one of "+me+"."))}return P(k)}function F(_){function k(X,J,le,H,ie){if(typeof _!="function")return new b("Property `"+ie+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var de=X[J],ne=oe(de);if(ne!=="object")return new b("Invalid "+H+" `"+ie+"` of type "+("`"+ne+"` supplied to `"+le+"`, expected an object."));for(var me in de)if(r(de,me)){var Ce=_(de,me,le,H,ie+"."+me,n);if(Ce instanceof Error)return Ce}return null}return P(k)}function q(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var k=0;k<_.length;k++){var X=_[k];if(typeof X!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(X)+" at index "+k+"."),l}function J(le,H,ie,de,ne){for(var me=[],Ce=0;Ce<_.length;Ce++){var Ue=_[Ce],Q=Ue(le,H,ie,de,ne,n);if(Q==null)return null;Q.data&&r(Q.data,"expectedType")&&me.push(Q.data.expectedType)}var pe=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new b("Invalid "+de+" `"+ne+"` supplied to "+("`"+ie+"`"+pe+"."))}return P(J)}function ee(){function _(k,X,J,le,H){return fe(k[X])?null:new b("Invalid "+le+" `"+H+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return P(_)}function re(_,k,X,J,le){return new b((_||"React class")+": "+k+" type `"+X+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function ve(_){function k(X,J,le,H,ie){var de=X[J],ne=oe(de);if(ne!=="object")return new b("Invalid "+H+" `"+ie+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));for(var me in _){var Ce=_[me];if(typeof Ce!="function")return re(le,H,ie,me,z(Ce));var Ue=Ce(de,me,le,H,ie+"."+me,n);if(Ue)return Ue}return null}return P(k)}function ye(_){function k(X,J,le,H,ie){var de=X[J],ne=oe(de);if(ne!=="object")return new b("Invalid "+H+" `"+ie+"` of type `"+ne+"` "+("supplied to `"+le+"`, expected `object`."));var me=t({},X[J],_);for(var Ce in me){var Ue=_[Ce];if(r(_,Ce)&&typeof Ue!="function")return re(le,H,ie,Ce,z(Ue));if(!Ue)return new b("Invalid "+H+" `"+ie+"` key `"+Ce+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(X[J],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Q=Ue(de,Ce,le,H,ie+"."+Ce,n);if(Q)return Q}return null}return P(k)}function fe(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(fe);if(_===null||c(_))return!0;var k=m(_);if(k){var X=k.call(_),J;if(k!==_.entries){for(;!(J=X.next()).done;)if(!fe(J.value))return!1}else for(;!(J=X.next()).done;){var le=J.value;if(le&&!fe(le[1]))return!1}}else return!1;return!0;default:return!1}}function se(_,k){return _==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function oe(_){var k=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":se(k,_)?"symbol":k}function z(_){if(typeof _>"u"||_===null)return""+_;var k=oe(_);if(k==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return k}function Y(_){var k=z(_);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function Z(_){return!_.constructor||!_.constructor.name?g:_.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Wc}var zc,Fp;function nC(){if(Fp)return zc;Fp=1;var e=Vc();function t(){}function n(){}return n.resetWarningCache=t,zc=function(){function r(l,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},zc}var jp;function rC(){if(jp)return sa.exports;if(jp=1,process.env.NODE_ENV!=="production"){var e=Ip(),t=!0;sa.exports=tC()(e.isElement,t)}else sa.exports=nC()();return sa.exports}var iC=rC();const Ie=vm(iC);function Vp(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 Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vp(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function Ei(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 oC(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 Gc(e){return aC(e)||lC(e)||cC(e)||uC()}function aC(e){if(Array.isArray(e))return Yc(e)}function lC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cC(e,t){if(e){if(typeof e=="string")return Yc(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 Yc(e,t)}}function Yc(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 uC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
601
601
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,l=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,b=e.listItem,P=e.flip,w=e.size,A=e.rotation,O=e.pull,D=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":l,"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":b,"fa-flip":P===!0,"fa-flip-horizontal":P==="horizontal"||P==="both","fa-flip-vertical":P==="vertical"||P==="both"},Ei(t,"fa-".concat(w),typeof w<"u"&&w!==null),Ei(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Ei(t,"fa-pull-".concat(O),typeof O<"u"&&O!==null),Ei(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(D).map(function(C){return D[C]?C:null}).filter(function(C){return C})}function dC(e){return e=e-0,e===e}function Bp(e){return dC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var hC=["style"];function mC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function pC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Bp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[mC(i)]=o:t[i]=o,t},{})}function Up(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 Up(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=pC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Bp(d)]=h}return u},{attrs:{}}),o=n.style,l=o===void 0?{}:o,c=oC(n,hC);return i.attrs.style=Cn(Cn({},i.attrs.style),l),e.apply(void 0,[t.tag,Cn(Cn({},i.attrs),c)].concat(Gc(r)))}var Wp=!1;try{Wp=process.env.NODE_ENV==="production"}catch{}function gC(){if(!Wp&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function zp(e){if(e&&aa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(kc.icon)return kc.icon(e);if(e===null)return null;if(e&&aa(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 Hc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ei({},e,t):{}}var Gp={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},De=I.forwardRef(function(e,t){var n=Cn(Cn({},Gp),e),r=n.icon,i=n.mask,o=n.symbol,l=n.className,c=n.title,u=n.titleId,d=n.maskId,h=zp(r),m=Hc("classes",[].concat(Gc(fC(n)),Gc((l||"").split(" ")))),g=Hc("transform",typeof n.transform=="string"?kc.transform(n.transform):n.transform),y=Hc("mask",zp(i)),S=XE(h,Cn(Cn(Cn(Cn({},m),g),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return gC("Could not find icon",h),null;var b=S.abstract,P={ref:t};return Object.keys(n).forEach(function(w){Gp.hasOwnProperty(w)||(P[w]=n[w])}),yC(b[0],P)});De.displayName="FontAwesomeIcon",De.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var yC=Up.bind(null,I.createElement);const vC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>x.jsxs("button",{onClick:r,className:`
|
|
602
602
|
flex flex-col items-center justify-center
|
|
603
603
|
w-[180px] h-[87px] p-4 rounded-xl
|
|
@@ -618,7 +618,7 @@ 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(OC,{isPresent:t,childRef:i,sizeRef:o,children:ce.cloneElement(e,{ref:i})})}const _C=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:c})=>{const u=Zc(IC),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]),ce.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(MC,{isPresent:n,anchorX:c,children:e})),x.jsx(la.Provider,{value:m,children:e})};function IC(){return new Map}function Kp(e=!0){const t=I.useContext(la);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 l=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const ca=e=>e.key||"";function Xp(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const DC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:c="left"})=>{const[u,d]=Kp(l),h=I.useMemo(()=>Xp(e),[e]),m=l&&!u?[]:h.map(ca),g=I.useRef(!0),y=I.useRef(h),S=Zc(()=>new Map),[b,P]=I.useState(h),[w,A]=I.useState(h);qp(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ca(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!==b){let C=[...h];for(let L=0;L<w.length;L++){const V=w[L],F=ca(V);m.includes(F)||(C.splice(L,0,V),O.push(V))}return o==="wait"&&O.length&&(C=O),A(Xp(C)),P(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(Xc);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ca(C),V=l&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(te=>{te||(Y=!1)}),Y&&(D==null||D(),A(y.current),l&&(d==null||d()),r&&r())};return x.jsx(_C,{isPresent:V,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:F,anchorX:c,children:C},L)})})};function eu(e,t){e.indexOf(t)===-1&&e.push(t)}function tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let Ci=Rt,mr=Rt;process.env.NODE_ENV!=="production"&&(Ci=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},mr=(e,t)=>{if(!e)throw new Error(t)});const $C={useManualTiming:!1};function nu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let ru=class{constructor(){this.subscriptions=[]}add(t){return eu(this.subscriptions,t),()=>tu(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 l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Pn=e=>e*1e3,zn=e=>e/1e3;function Zp(e,t){return t?e*(1e3/t):0}const Jp=new Set;function ua(e,t,n){e||Jp.has(t)||(console.warn(t),Jp.add(t))}const RC=nu(()=>window.ScrollTimeline!==void 0);let NC=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(RC()&&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")}},LC=class extends NC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function iu(e,t){return e?e[t]||e.default||e:void 0}const su=2e4;function Qp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<su;)t+=n,r=e.next(t);return t>=su?1/0:t}function ou(e){return typeof e=="function"}function eg(e,t){e.timeline=t,e.onfinish=null}const au=e=>Array.isArray(e)&&typeof e[0]=="number",kC={linearEasing:void 0};function FC(e,t){const n=nu(e);return()=>{var r;return(r=kC[t])!==null&&r!==void 0?r:n()}}const fa=FC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Pi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ng(e){return!!(typeof e=="function"&&fa()||!e||typeof e=="string"&&(e in lu||fa())||au(e)||Array.isArray(e)&&e.every(ng))}const _s=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_s([0,.65,.55,1]),circOut:_s([.55,0,1,.45]),backIn:_s([.31,.01,.66,-.59]),backOut:_s([.33,1.53,.69,.99])};function rg(e,t){if(e)return typeof e=="function"&&fa()?tg(e,t):au(e)?_s(e):Array.isArray(e)?e.map(n=>rg(n,t)||lu.easeOut):lu[e]}const da=["read","resolveKeyframes","update","preRender","render","postRender"],ig={value:null};function jC(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){l.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const b=y&&i?n:r;return g&&l.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&ig.value&&ig.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const VC=40;function sg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=da.reduce((w,A)=>(w[A]=jC(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=l,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,VC),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:da.reduce((w,A)=>{const O=l[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<da.length;A++)l[da[A]].cancel(w)},state:i,steps:l}}const{schedule:Ye,cancel:pr,state:yt,steps:cu}=sg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:uu}=sg(queueMicrotask,!1);let ha;function BC(){ha=void 0}const An={now:()=>(ha===void 0&&An.set(yt.isProcessing||$C.useManualTiming?yt.timestamp:performance.now()),ha),set:e=>{ha=e,queueMicrotask(BC)}},pn={x:!1,y:!1};function og(){return pn.x||pn.y}function UC(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function WC(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 ag(e,t){const n=WC(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function lg(e){return!(e.pointerType==="touch"||og())}function zC(e,t,n={}){const[r,i,o]=ag(e,n),l=c=>{if(!lg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{lg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}const cg=(e,t)=>t?e===t?!0:cg(e,t.parentElement):!1,fu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,GC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YC(e){return GC.has(e.tagName)||e.tabIndex!==-1}const Is=new WeakSet;function ug(e){return t=>{t.key==="Enter"&&e(t)}}function du(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HC=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ug(()=>{if(Is.has(n))return;du(n,"down");const i=ug(()=>{du(n,"up")}),o=()=>du(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 fg(e){return fu(e)&&!og()}function qC(e,t,n={}){const[r,i,o]=ag(e,n),l=c=>{const u=c.currentTarget;if(!fg(c)||Is.has(u))return;Is.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!fg(y)||!Is.has(u))&&(Is.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||cg(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",l,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>HC(d,i)),!YC(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const dg=30,KC=e=>!isNaN(parseFloat(e));let XC=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=An.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=An.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=KC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ua(!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 ru);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=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dg);return Zp(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 Ds(e,t){return new XC(e,t)}const hg=I.createContext({strict:!1}),mg={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"]},Ai={};for(const e in mg)Ai[e]={isEnabled:t=>mg[e].some(n=>!!t[n])};function ZC(e){for(const t in e)Ai[t]={...Ai[t],...e[t]}}const JC=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 ma(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JC.has(e)}let pg=e=>!ma(e);function QC(e){e&&(pg=t=>t.startsWith("on")?!ma(t):e(t))}try{QC(require("@emotion/is-prop-valid").default)}catch{}function eP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pg(i)||n===!0&&ma(i)||!t&&!ma(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ua(!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 pa=I.createContext({});function ga(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $s(e){return typeof e=="string"||Array.isArray(e)}const hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...hu];function ya(e){return ga(e.animate)||mu.some(t=>$s(e[t]))}function gg(e){return!!(ya(e)||e.variants)}function nP(e,t){if(ya(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$s(n)?n:void 0,animate:$s(r)?r:void 0}}return e.inherit!==!1?t:{}}function rP(e){const{initial:t,animate:n}=nP(e,I.useContext(pa));return I.useMemo(()=>({initial:t,animate:n}),[yg(t),yg(n)])}function yg(e){return Array.isArray(e)?e.join(" "):e}const iP=Symbol.for("motionComponentSymbol");function Oi(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):Oi(n)&&(n.current=r))},[t])}const pu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vg="data-"+pu("framerAppearId"),bg=I.createContext({});function oP(e,t,n,r,i){var o,l;const{visualElement:c}=I.useContext(pa),u=I.useContext(hg),d=I.useContext(la),h=I.useContext(Qc).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(bg);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&aP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const b=n[vg],P=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return qp(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),uu.render(g.render),P.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!P.current&&g.animationState&&g.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),P.current=!1))}),g}function aP(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&Oi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function xg(e){if(e)return e.options.allowProjection!==!1?e.projection:xg(e.parent)}function lP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,l;e&&ZC(e);function c(d,h){let m;const g={...I.useContext(Qc),...d,layoutId:cP(d)},{isStatic:y}=g,S=rP(d),b=r(d,y);if(!y&&Jc){uP(g,e);const P=fP(g);m=P.MeasureLayout,S.visualElement=oP(i,b,g,t,P.ProjectionNode)}return x.jsxs(pa.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,sP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const u=I.forwardRef(c);return u[iP]=i,u}function cP({layoutId:e}){const t=I.useContext(Xc).id;return t&&e!==void 0?t+"-"+e:e}function uP(e,t){const n=I.useContext(hg).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?Ci(!1,r):mr(!1,r)}}function fP(e){const{drag:t,layout:n}=Ai;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 wg=e=>t=>typeof t=="string"&&t.startsWith(e),gu=wg("--"),dP=wg("var(--"),yu=e=>dP(e)?hP.test(e.split("/*")[0].trim()):!1,hP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Rs={};function mP(e){for(const t in e)Rs[t]=e[t],gu(t)&&(Rs[t].isCSSVariable=!0)}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zr=new Set(Mi);function Sg(e,{layout:t,layoutId:n}){return zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Tg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gn=(e,t,n)=>n>t?t:n<e?e:n,_i={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ns={..._i,transform:e=>Gn(0,1,e)},va={..._i,default:1},Ls=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gr=Ls("deg"),On=Ls("%"),we=Ls("px"),pP=Ls("vh"),gP=Ls("vw"),Eg={...On,parse:e=>On.parse(e)/100,transform:e=>On.transform(e*100)},yP={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},vP={rotate:gr,rotateX:gr,rotateY:gr,rotateZ:gr,scale:va,scaleX:va,scaleY:va,scaleZ:va,skew:gr,skewX:gr,skewY:gr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ns,originX:Eg,originY:Eg,originZ:we},Cg={..._i,transform:Math.round},vu={...yP,...vP,zIndex:Cg,size:we,fillOpacity:Ns,strokeOpacity:Ns,numOctaves:Cg},bP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xP=Mi.length;function wP(e,t,n){let r="",i=!0;for(let o=0;o<xP;o++){const l=Mi[o],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Tg(c,vu[l]);if(!u){i=!1;const h=bP[l]||l;r+=`${h}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function bu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(zr.has(u)){l=!0;continue}else if(gu(u)){i[u]=d;continue}else{const h=Tg(d,vu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(l||n?r.transform=wP(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 xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pg(e,t,n){for(const r in t)!St(t[r])&&!Sg(r,n)&&(e[r]=t[r])}function SP({transformTemplate:e},t){return I.useMemo(()=>{const n=xu();return bu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TP(e,t){const n=e.style||{},r={};return Pg(r,n,e),Object.assign(r,SP(e,t)),r}function EP(e,t){const n={},r=TP(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 CP=["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 wu(e){return typeof e!="string"||e.includes("-")?!1:!!(CP.indexOf(e)>-1||/[A-Z]/u.test(e))}const PP={offset:"stroke-dashoffset",array:"stroke-dasharray"},AP={offset:"strokeDashoffset",array:"strokeDasharray"};function OP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?PP:AP;e[o.offset]=we.transform(-r);const l=we.transform(t),c=we.transform(n);e[o.array]=`${l} ${c}`}function Ag(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function MP(e,t,n){const r=Ag(t,e.x,e.width),i=Ag(n,e.y,e.height);return`${r} ${i}`}function Su(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(bu(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=MP(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),l!==void 0&&OP(g,l,c,u,!1)}const Og=()=>({...xu(),attrs:{}}),Tu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _P(e,t,n,r){const i=I.useMemo(()=>{const o=Og();return Su(o,t,Tu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Pg(o,e.style,e),i.style={...o,...i.style}}return i}function IP(e=!1){return(n,r,i,{latestValues:o},l)=>{const u=(wu(n)?_P:EP)(r,o,l,n),d=eP(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 Mg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Eu(e,t,n,r){if(typeof t=="function"){const[i,o]=Mg(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]=Mg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Cu=e=>Array.isArray(e),DP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$P=e=>Cu(e)?e[e.length-1]||0:e;function ba(e){const t=St(e)?e.get():e;return DP(t)?t.toValue():t}function RP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const l={latestValues:NP(r,i,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const _g=e=>(t,n)=>{const r=I.useContext(pa),i=I.useContext(la),o=()=>RP(e,t,r,i);return n?o():Zc(o)};function NP(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=ba(o[g]);let{initial:l,animate:c}=e;const u=ya(e),d=gg(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||l===!1;const m=h?c:l;if(m&&typeof m!="boolean"&&!ga(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Eu(e,g[y]);if(S){const{transitionEnd:b,transition:P,...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 b)i[A]=b[A]}}}return i}function Pu(e,t,n){var r;const{style:i}=e,o={};for(const l in i)(St(i[l])||t.style&&St(t.style[l])||Sg(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=i[l]);return o}const LP={useVisualState:_g({scrapeMotionValuesFromProps:Pu,createRenderState:xu})};function Ig(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 Dg(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 $g=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 Rg(e,t,n,r){Dg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute($g.has(i)?i:pu(i),t.attrs[i])}function Ng(e,t,n){const r=Pu(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Mi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Lg=["x","y","width","height","cx","cy","r"],kP={useVisualState:_g({scrapeMotionValuesFromProps:Ng,createRenderState:Og,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(zr.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<Lg.length;c++){const u=Lg[c];e[u]!==t[u]&&(l=!0)}l&&Ye.read(()=>{Ig(n,r),Ye.render(()=>{Su(r,i,Tu(n.tagName),e.transformTemplate),Rg(n,r)})})}})};function FP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...wu(r)?kP:LP,preloadedFeatures:e,useRender:IP(i),createVisualElement:t,Component:r};return lP(l)}}function ks(e,t,n){const r=e.getProps();return Eu(r,t,n!==void 0?n:r.custom,e)}const kg=new Set(["width","height","top","left","right","bottom",...Mi]);function jP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ds(n))}function VP(e,t){const n=ks(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const c=$P(o[l]);jP(e,l,c)}}function BP(e){return!!(St(e)&&e.add)}function Au(e,t){const n=e.getValue("willChange");if(BP(n))return n.add(t)}function Fg(e){return e.props[vg]}const jg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UP=1e-7,WP=12;function zP(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=jg(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>UP&&++c<WP);return l}function Fs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>zP(o,0,1,e,n);return o=>o===0||o===1?o:jg(i(o),t,r)}const Vg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bg=e=>t=>1-e(1-t),Ug=Fs(.33,1.53,.69,.99),Ou=Bg(Ug),Wg=Vg(Ou),zg=e=>(e*=2)<1?.5*Ou(e):.5*(2-Math.pow(2,-10*(e-1))),Mu=e=>1-Math.sin(Math.acos(e)),Gg=Bg(Mu),Yg=Vg(Mu),Hg=e=>/^0[^.\s]+$/u.test(e);function GP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Hg(e):!0}const js=e=>Math.round(e*1e5)/1e5,_u=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YP(e){return e==null}const HP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Iu=(e,t)=>n=>!!(typeof n=="string"&&HP.test(n)&&n.startsWith(e)||t&&!YP(n)&&Object.prototype.hasOwnProperty.call(n,t)),qg=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,c]=r.match(_u);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},qP=e=>Gn(0,255,e),Du={..._i,transform:e=>Math.round(qP(e))},Gr={test:Iu("rgb","red"),parse:qg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Du.transform(e)+", "+Du.transform(t)+", "+Du.transform(n)+", "+js(Ns.transform(r))+")"};function KP(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 $u={test:Iu("#"),parse:KP,transform:Gr.transform},Ii={test:Iu("hsl","hue"),parse:qg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+On.transform(js(t))+", "+On.transform(js(n))+", "+js(Ns.transform(r))+")"},Tt={test:e=>Gr.test(e)||$u.test(e)||Ii.test(e),parse:e=>Gr.test(e)?Gr.parse(e):Ii.test(e)?Ii.parse(e):$u.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gr.transform(e):Ii.transform(e)},XP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZP(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_u))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(XP))===null||n===void 0?void 0:n.length)||0)>0}const Kg="number",Xg="color",JP="var",QP="var(",Zg="${}",eA=/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 Vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(eA,u=>(Tt.test(u)?(r.color.push(o),i.push(Xg),n.push(Tt.parse(u))):u.startsWith(QP)?(r.var.push(o),i.push(JP),n.push(u)):(r.number.push(o),i.push(Kg),n.push(parseFloat(u))),++o,Zg)).split(Zg);return{values:n,split:c,indexes:r,types:i}}function Jg(e){return Vs(e).values}function Qg(e){const{split:t,types:n}=Vs(e),r=t.length;return i=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===Kg?o+=js(i[l]):c===Xg?o+=Tt.transform(i[l]):o+=i[l]}return o}}const tA=e=>typeof e=="number"?0:e;function nA(e){const t=Jg(e);return Qg(e)(t.map(tA))}const yr={test:ZP,parse:Jg,createTransformer:Qg,getAnimatableNone:nA},rA=new Set(["brightness","contrast","saturate","opacity"]);function iA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_u)||[];if(!r)return e;const i=n.replace(r,"");let o=rA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const sA=/\b([a-z-]*)\(.*?\)/gu,Ru={...yr,getAnimatableNone:e=>{const t=e.match(sA);return t?t.map(iA).join(" "):e}},oA={...vu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Ru,WebkitFilter:Ru},e0=e=>oA[e];function t0(e,t){let n=e0(e);return n!==Ru&&(n=yr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aA=new Set(["auto","none","0"]);function lA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!aA.has(o)&&Vs(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=t0(n,i)}const Yr=e=>e*180/Math.PI,Nu=e=>{const t=Yr(Math.atan2(e[1],e[0]));return Lu(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:Nu,rotateZ:Nu,skewX:e=>Yr(Math.atan(e[1])),skewY:e=>Yr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lu=e=>(e=e%360,e<0&&(e+=360),e),n0=Nu,r0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),i0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r0,scaleY:i0,scale:e=>(r0(e)+i0(e))/2,rotateX:e=>Lu(Yr(Math.atan2(e[6],e[5]))),rotateY:e=>Lu(Yr(Math.atan2(-e[2],e[0]))),rotateZ:n0,rotate:n0,skewX:e=>Yr(Math.atan(e[4])),skewY:e=>Yr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function s0(e){return e.includes("scale")?1:0}function ku(e,t){if(!e||e==="none")return s0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=uA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=cA,i=c}if(!i)return s0(t);const o=r[t],l=i[1].split(",").map(dA);return typeof o=="function"?o(l):l[o]}const fA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ku(n,t)};function dA(e){return parseFloat(e.trim())}const o0=e=>e===_i||e===we,hA=new Set(["x","y","z"]),mA=Mi.filter(e=>!hA.has(e));function pA(e){const t=[];return mA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Di={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})=>ku(t,"x"),y:(e,{transform:t})=>ku(t,"y")};Di.translateX=Di.x,Di.translateY=Di.y;const Hr=new Set;let Fu=!1,ju=!1;function a0(){if(ju){const e=Array.from(Hr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=pA(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,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ju=!1,Fu=!1,Hr.forEach(e=>e.complete()),Hr.clear()}function l0(){Hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ju=!0)})}function gA(){l0(),a0()}let Vu=class{constructor(t,n,r,i,o,l=!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=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Hr.add(this),Fu||(Fu=!0,Ye.read(l0),Ye.resolveKeyframes(a0))):(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 l=i==null?void 0:i.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&l===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),Hr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Hr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const c0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const bA=4;function u0(e,t,n=1){mr(n<=bA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=vA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return c0(l)?parseFloat(l):l}return yu(i)?u0(i,t,n+1):i}const f0=e=>t=>t.test(e),d0=[_i,we,On,gr,gP,pP,{test:e=>e==="auto",parse:e=>e}],h0=e=>d0.find(f0(e));let m0=class extends Vu{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(),yu(d))){const h=u0(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,l=h0(i),c=h0(o);if(l!==c)if(o0(l)&&o0(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++)GP(t[i])&&r.push(i);r.length&&lA(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=Di[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 l=i.length-1,c=i[l];i[l]=Di[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 p0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yr.test(e)||e==="0")&&!e.startsWith("url("));function xA(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 wA(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],l=p0(i,t),c=p0(o,t);return Ci(l===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.`),!l||!c?!1:xA(e)||(n==="spring"||ou(n))&&r}const SA=e=>e!==null;function xa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(SA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const TA=40;let g0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&gA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:l,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!wA(t,r,i,o))if(l)this.options.duration=0;else{u&&u(xa(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 et=(e,t,n)=>e+(t-e)*n;function Bu(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 EA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Bu(u,c,e+1/3),o=Bu(u,c,e),l=Bu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function wa(e,t){return n=>n>0?t:e}const Uu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},CA=[$u,Gr,Ii],PA=e=>CA.find(t=>t.test(e));function y0(e){const t=PA(e);if(Ci(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ii&&(n=EA(n)),n}const v0=(e,t)=>{const n=y0(e),r=y0(t);if(!n||!r)return wa(e,t);const i={...n};return o=>(i.red=Uu(n.red,r.red,o),i.green=Uu(n.green,r.green,o),i.blue=Uu(n.blue,r.blue,o),i.alpha=et(n.alpha,r.alpha,o),Gr.transform(i))},AA=(e,t)=>n=>t(e(n)),Bs=(...e)=>e.reduce(AA),Wu=new Set(["none","hidden"]);function OA(e,t){return Wu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function MA(e,t){return n=>et(e,t,n)}function zu(e){return typeof e=="number"?MA:typeof e=="string"?yu(e)?wa:Tt.test(e)?v0:DA:Array.isArray(e)?b0:typeof e=="object"?Tt.test(e)?v0:_A:wa}function b0(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>zu(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function _A(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function IA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][i[l]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[l]++}return r}const DA=(e,t)=>{const n=yr.createTransformer(t),r=Vs(e),i=Vs(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?Wu.has(e)&&!i.values.length||Wu.has(t)&&!r.values.length?OA(e,t):Bs(b0(IA(r,i),i.values),n):(Ci(!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.`),wa(e,t))};function x0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?et(e,t,n):zu(e)(e,t)}const $A=5;function w0(e,t,n){const r=Math.max(t-$A,0);return Zp(n-e(r),t-r)}const tt={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},S0=.001;function RA({duration:e=tt.duration,bounce:t=tt.bounce,velocity:n=tt.velocity,mass:r=tt.mass}){let i,o;Ci(e<=Pn(tt.maxDuration),"Spring duration must be 10 seconds or less");let l=1-t;l=Gn(tt.minDamping,tt.maxDamping,l),e=Gn(tt.minDuration,tt.maxDuration,zn(e)),l<1?(i=d=>{const h=d*l,m=h*e,g=h-n,y=Gu(d,l),S=Math.exp(-m);return S0-g/y*S},o=d=>{const m=d*l*e,g=m*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Gu(Math.pow(d,2),l);return(-i(d)+S0>0?-1:1)*((g-y)*S)/b}):(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=LA(i,o,c);if(e=Pn(e),isNaN(u))return{stiffness:tt.stiffness,damping:tt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const NA=12;function LA(e,t,n){let r=n;for(let i=1;i<NA;i++)r=r-e(r)/t(r);return r}function Gu(e,t){return e*Math.sqrt(1-t*t)}const kA=["duration","bounce"],FA=["stiffness","damping","mass"];function T0(e,t){return t.some(n=>e[n]!==void 0)}function jA(e){let t={velocity:tt.velocity,stiffness:tt.stiffness,damping:tt.damping,mass:tt.mass,isResolvedFromDuration:!1,...e};if(!T0(e,FA)&&T0(e,kA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Gn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tt.mass,stiffness:i,damping:o}}else{const n=RA(e);t={...t,...n,mass:tt.mass},t.isResolvedFromDuration=!0}return t}function E0(e=tt.visualDuration,t=tt.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],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=jA({...n,velocity:-zn(n.velocity||0)}),S=g||0,b=d/(2*Math.sqrt(u*h)),P=l-o,w=zn(Math.sqrt(u/h)),A=Math.abs(P)<5;r||(r=A?tt.restSpeed.granular:tt.restSpeed.default),i||(i=A?tt.restDelta.granular:tt.restDelta.default);let O;if(b<1){const C=Gu(w,b);O=L=>{const V=Math.exp(-b*w*L);return l-V*((S+b*w*P)/C*Math.sin(C*L)+P*Math.cos(C*L))}}else if(b===1)O=C=>l-Math.exp(-w*C)*(P+(S+w*P)*C);else{const C=w*Math.sqrt(b*b-1);O=L=>{const V=Math.exp(-b*w*L),F=Math.min(C*L,300);return l-V*((S+b*w*P)*Math.sinh(F)+C*P*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let V=0;b<1&&(V=C===0?Pn(S):w0(O,C,L));const F=Math.abs(V)<=r,Y=Math.abs(l-L)<=i;c.done=F&&Y}return c.value=c.done?l:L,c},toString:()=>{const C=Math.min(Qp(D),su),L=tg(V=>D.next(C*V).value,C,30);return C+"ms "+L}};return D}function C0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,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 b=n*t;const P=m+b,w=l===void 0?P:l(P);w!==P&&(b=w-m);const A=F=>-b*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),te=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:te};let C,L;const V=F=>{y(g.value)&&(C=F,L=E0({keyframes:[g.value,S(g.value)],velocity:w0(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),V(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const VA=Fs(.42,0,1,1),BA=Fs(0,0,.58,1),P0=Fs(.42,0,.58,1),UA=e=>Array.isArray(e)&&typeof e[0]!="number",A0={linear:Rt,easeIn:VA,easeInOut:P0,easeOut:BA,circIn:Mu,circInOut:Yg,circOut:Gg,backIn:Ou,backInOut:Wg,backOut:Ug,anticipate:zg},O0=e=>{if(au(e)){mr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Fs(t,n,r,i)}else if(typeof e=="string")return mr(A0[e]!==void 0,`Invalid easing type '${e}'`),A0[e];return e};function WA(e,t,n){const r=[],i=n||x0,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Rt:t;c=Bs(u,c)}r.push(c)}return r}function zA(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(mr(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 l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=WA(t,r,i),u=c.length,d=h=>{if(l&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Pi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Gn(e[0],e[o-1],h)):d}function GA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Pi(0,t,r);e.push(et(n,1,i))}}function YA(e){const t=[0];return GA(t,e.length-1),t}function HA(e,t){return e.map(n=>n*t)}function qA(e,t){return e.map(()=>t||P0).splice(0,e.length-1)}function Us({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=UA(r)?r.map(O0):O0(r),o={done:!1,value:t[0]},l=HA(n&&n.length===t.length?n:YA(t),e),c=zA(l,t,{ease:Array.isArray(i)?i:qA(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const KA=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>pr(t),now:()=>yt.isProcessing?yt.timestamp:An.now()}},XA={decay:C0,inertia:C0,tween:Us,keyframes:Us,spring:E0},ZA=e=>e/100;let Yu=class extends g0{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,l=(i==null?void 0:i.KeyframeResolver)||Vu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new l(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:l=0}=this.options,c=ou(n)?n:XA[n]||Us;let u,d;process.env.NODE_ENV!=="production"&&c!==Us&&mr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Us&&typeof t[0]!="number"&&(u=Bs(ZA,x0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Qp(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:l,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:b,onUpdate:P}=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),te=F%1;!te&&F>=1&&(te=1),te===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(te=1-te,b&&(te-=b/m)):S==="mirror"&&(D=l)),O=Gn(0,1,te)*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 V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return V&&i!==void 0&&(C.value=xa(u,this.options,i)),P&&P(C.value),V&&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=Pn(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=KA,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 JA=new Set(["opacity","clipPath","filter","transform"]);function QA(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=rg(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:l==="reverse"?"alternate":"normal"})}const eO=nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sa=10,tO=2e4;function nO(e){return ou(e.type)||e.type==="spring"||!ng(e.ease)}function rO(e,t){const n=new Yu({...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<tO;)r=n.sample(o),i.push(r.value),o+=Sa;return{times:void 0,keyframes:i,duration:o-Sa,ease:"linear"}}const M0={anticipate:zg,backInOut:Wg,circInOut:Yg};function iO(e){return e in M0}let _0=class extends g0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new m0(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:l,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&fa()&&iO(o)&&(o=M0[o]),nO(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...b}=this.options,P=rO(t,b);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,o=P.ease,l="keyframes"}const h=QA(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(eg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(xa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:l,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=Pn(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;eg(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:l,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 Yu({...y,keyframes:r,duration:i,type:o,ease:l,times:c,isGenerator:!0}),b=Pn(this.time);d.setWithVelocity(S.sample(b-Sa).value,S.sample(b).value,Sa)}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:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return eO()&&r&&JA.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&l!==0&&c!=="inertia"}};const sO={type:"spring",stiffness:500,damping:25,restSpeed:10},oO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aO={type:"keyframes",duration:.8},lO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cO=(e,{keyframes:t})=>t.length>2?aO:zr.has(e)?e.startsWith("scale")?oO(t[1]):sO:lO;function uO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Hu=(e,t,n,r={},i,o)=>l=>{const c=iu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Pn(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:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};uO(c)||(h={...h,...cO(e,h)}),h.duration&&(h.duration=Pn(h.duration)),h.repeatDelay&&(h.repeatDelay=Pn(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=xa(h.keyframes,c);if(g!==void 0)return Ye.update(()=>{h.onUpdate(g),h.onComplete()}),new LC([])}return!o&&_0.supports(h)?new _0(h):new Yu(h)};function fO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function I0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(l=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&&fO(h,m))continue;const S={delay:n,...iu(l||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Fg(e);if(w){const A=window.MotionHandoffAnimation(w,m,Ye);A!==null&&(S.startTime=A,b=!0)}}Au(e,m),g.start(Hu(m,g,y,e.shouldReduceMotion&&kg.has(m)?{type:!1}:S,e,b));const P=g.animation;P&&d.push(P)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&VP(e,c)})}),d}function qu(e,t,n={}){var r;const i=ks(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 l=i?()=>Promise.all(I0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return dO(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[l,c]:[c,l];return d().then(()=>h())}else return Promise.all([l(),c(n.delay)])}function dO(e,t,n=0,r=0,i=1,o){const l=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(hO).forEach((d,h)=>{d.notify("AnimationStart",t),l.push(qu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(l)}function hO(e,t){return e.sortNodePosition(t)}function mO(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"?ks(e,t,n.custom):t;r=Promise.all(I0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function D0(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 pO=mu.length;function $0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pO;n++){const r=mu[n],i=e.props[r];($s(i)||i===!1)&&(t[r]=i)}return t}const gO=[...hu].reverse(),yO=hu.length;function vO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mO(e,n,r)))}function bO(e){let t=vO(e),n=R0(),r=!0;const i=u=>(d,h)=>{var m;const g=ks(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...b}=g;d={...d,...b,...S}}return d};function o(u){t=u(e)}function l(u){const{props:d}=e,h=$0(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let P=0;P<yO;P++){const w=gO[P],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=$s(O),C=w===u?A.isActive:null;C===!1&&(S=P);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||ga(O)||typeof O=="boolean")continue;const V=xO(A.prevProp,O);let F=V||w===u&&A.isActive&&!L&&D||P>S&&D,Y=!1;const te=Array.isArray(O)?O:[O];let ie=te.reduce(i(w),{});C===!1&&(ie={});const{prevResolvedValues:ve={}}=A,ye={...ve,...ie},fe=K=>{F=!0,g.has(K)&&(Y=!0,g.delete(K)),A.needsAnimating[K]=!0;const H=e.getValue(K);H&&(H.liveStyle=!1)};for(const K in ye){const H=ie[K],J=ve[K];if(y.hasOwnProperty(K))continue;let _=!1;Cu(H)&&Cu(J)?_=!D0(H,J):_=H!==J,_?H!=null?fe(K):g.add(K):H!==void 0&&g.has(K)?fe(K):A.protectedKeys[K]=!0}A.prevProp=O,A.prevResolvedValues=ie,A.isActive&&(y={...y,...ie}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&V)||Y)&&m.push(...te.map(K=>({animation:K,options:{type:w}})))}if(g.size){const P={};if(typeof d.initial!="boolean"){const w=ks(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(P.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),P[w]=A??null}),m.push({animation:P})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=l(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=R0(),r=!0}}}function xO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!D0(t,e):!1}function qr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:qr(!0),whileInView:qr(),whileHover:qr(),whileTap:qr(),whileDrag:qr(),whileFocus:qr(),exit:qr()}}let vr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},wO=class extends vr{constructor(t){super(t),t.animationState||(t.animationState=bO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ga(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)}},SO=0;const TO={animation:{Feature:wO},exit:{Feature:class extends vr{constructor(){super(...arguments),this.id=SO++}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 Ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zs(e){return{point:{x:e.pageX,y:e.pageY}}}const EO=e=>t=>fu(t)&&e(t,zs(t));function Gs(e,t,n,r){return Ws(e,t,EO(n),r)}function N0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PO(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 L0=1e-4,AO=1-L0,OO=1+L0,k0=.01,MO=0-k0,_O=0+k0;function Mt(e){return e.max-e.min}function IO(e,t,n){return Math.abs(e-t)<=n}function F0(e,t,n,r=.5){e.origin=r,e.originPoint=et(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AO&&e.scale<=OO||isNaN(e.scale))&&(e.scale=1),(e.translate>=MO&&e.translate<=_O||isNaN(e.translate))&&(e.translate=0)}function Ys(e,t,n,r){F0(e.x,t.x,n.x,r?r.originX:void 0),F0(e.y,t.y,n.y,r?r.originY:void 0)}function j0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function DO(e,t,n){j0(e.x,t.x,n.x),j0(e.y,t.y,n.y)}function V0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function Hs(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}const B0=()=>({translate:0,scale:1,origin:0,originPoint:0}),$i=()=>({x:B0(),y:B0()}),U0=()=>({min:0,max:0}),at=()=>({x:U0(),y:U0()});function tn(e){return[e("x"),e("y")]}function Ku(e){return e===void 0||e===1}function Xu({scale:e,scaleX:t,scaleY:n}){return!Ku(e)||!Ku(t)||!Ku(n)}function Kr(e){return Xu(e)||W0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function W0(e){return z0(e.x)||z0(e.y)}function z0(e){return e&&e!=="0%"}function Ta(e,t,n){const r=e-n,i=t*r;return n+i}function G0(e,t,n,r,i){return i!==void 0&&(e=Ta(e,i,r)),Ta(e,n,r)+t}function Zu(e,t=0,n=1,r,i){e.min=G0(e.min,t,n,r,i),e.max=G0(e.max,t,n,r,i)}function Y0(e,{x:t,y:n}){Zu(e.x,t.translate,t.scale,t.originPoint),Zu(e.y,n.translate,n.scale,n.originPoint)}const H0=.999999999999,q0=1.0000000000001;function $O(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=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&&Ni(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Y0(e,l)),r&&Kr(o.latestValues)&&Ni(e,o.latestValues))}t.x<q0&&t.x>H0&&(t.x=1),t.y<q0&&t.y>H0&&(t.y=1)}function Ri(e,t){e.min=e.min+t,e.max=e.max+t}function K0(e,t,n,r,i=.5){const o=et(e.min,e.max,i);Zu(e,t,n,o,r)}function Ni(e,t){K0(e.x,t.x,t.scaleX,t.scale,t.originX),K0(e.y,t.y,t.scaleY,t.scale,t.originY)}function X0(e,t){return N0(PO(e.getBoundingClientRect(),t))}function RO(e,t,n){const r=X0(e,n),{scroll:i}=t;return i&&(Ri(r.x,i.offset.x),Ri(r.y,i.offset.y)),r}const Z0=({current:e})=>e?e.ownerDocument.defaultView:null,J0=(e,t)=>Math.abs(e-t);function NO(e,t){const n=J0(e.x,t.x),r=J0(e.y,t.y);return Math.sqrt(n**2+r**2)}let Q0=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=Qu(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=NO(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:P,onMove:w}=this.handlers;g||(P&&P(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Ju(g,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Qu(m.type==="pointercancel"?this.lastMoveEventInfo:Ju(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,P),S&&S(m,P)},!fu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=zs(t),c=Ju(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Qu(c,this.history)),this.removeListeners=Bs(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pr(this.updatePoint)}};function Ju(e,t){return t?{point:t(e.point)}:e}function ey(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qu({point:e},t){return{point:e,delta:ey(e,ty(t)),offset:ey(e,LO(t)),velocity:kO(t,.1)}}function LO(e){return e[0]}function ty(e){return e[e.length-1]}function kO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ty(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Pn(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 l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function FO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?et(n,e,r.max):Math.min(e,n)),e}function ny(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 jO(e,{top:t,left:n,bottom:r,right:i}){return{x:ny(e.x,n,i),y:ny(e.y,t,r)}}function ry(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 VO(e,t){return{x:ry(e.x,t.x),y:ry(e.y,t.y)}}function BO(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Pi(t.min,t.max-r,e.min):r>i&&(n=Pi(e.min,e.max-i,t.min)),Gn(0,1,n)}function UO(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 ef=.35;function WO(e=ef){return e===!1?e=0:e===!0&&(e=ef),{x:iy(e,"left","right"),y:iy(e,"top","bottom")}}function iy(e,t,n){return{min:sy(e,t),max:sy(e,n)}}function sy(e,t){return typeof e=="number"?e:e[t]||0}const zO=new WeakMap;let GO=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(zs(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UC(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(P=>{let w=this.getAxisMotionValue(P).get()||0;if(On.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[P];O&&(w=Mt(O)*(parseFloat(w)/100))}}this.originPoint[P]=w}),S&&Ye.postRender(()=>S(h,m)),Au(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:P}=m;if(y&&this.currentDirection===null){this.currentDirection=YO(P),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,P),this.updateAxis("y",m.point,P),this.visualElement.render(),b&&b(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 Q0(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Z0(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||!Ea(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=FO(l,this.constraints[t],this.elastic[t])),o.set(l)}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&&Oi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=jO(i.layoutBox,n):this.constraints=!1,this.elastic=WO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=UO(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Oi(t))return!1;const r=t.current;mr(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=RO(r,i.root,this.visualElement.getTransformPagePoint());let l=VO(i.layout.layoutBox,o);if(n){const c=n(CO(l));this.hasMutatedConstraints=!!c,c&&(l=N0(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Ea(h,n,this.currentDirection))return;let m=u&&u[h]||{};l&&(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 Au(this.visualElement,t),r.start(Hu(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(!Ea(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-et(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Oi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();i[l]=BO({min:u,max:u},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(l=>{if(!Ea(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(et(u,d,i[l]))})}addListeners(){if(!this.visualElement.current)return;zO.set(this.visualElement,this);const t=this.visualElement.current,n=Gs(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Oi(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 l=Ws(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()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=ef,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}};function Ea(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function YO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let HO=class extends vr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new GO(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 oy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let qO=class extends vr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new Q0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Z0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oy(t),onStart:oy(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&Ye.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=Gs(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 Ca={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ay(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const qs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=ay(e,t.target.x),r=ay(e,t.target.y);return`${n}% ${r}%`}},KO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yr.parse(e);if(i.length>5)return r;const o=yr.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=u;const d=et(c,u,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),o(i)}};let XO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;mP(ZO),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()})),Ca.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||Ye.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),uu.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 ly(e){const[t,n]=Kp(),r=I.useContext(Xc);return x.jsx(XO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(bg),isPresent:t,safeToRemove:n})}const ZO={borderRadius:{...qs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qs,borderTopRightRadius:qs,borderBottomLeftRadius:qs,borderBottomRightRadius:qs,boxShadow:KO};function JO(e,t,n){const r=St(e)?e:Ds(e);return r.start(Hu("",r,t,n)),r.animation}function QO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const eM=(e,t)=>e.depth-t.depth;let tM=class{constructor(){this.children=[],this.isDirty=!1}add(t){eu(this.children,t),this.isDirty=!0}remove(t){tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eM),this.isDirty=!1,this.children.forEach(t)}};function nM(e,t){const n=An.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(pr(r),e(o-t))};return Ye.read(r,!0),()=>pr(r)}const cy=["TopLeft","TopRight","BottomLeft","BottomRight"],rM=cy.length,uy=e=>typeof e=="string"?parseFloat(e):e,fy=e=>typeof e=="number"||we.test(e);function iM(e,t,n,r,i,o){i?(e.opacity=et(0,n.opacity!==void 0?n.opacity:1,sM(r)),e.opacityExit=et(t.opacity!==void 0?t.opacity:1,0,oM(r))):o&&(e.opacity=et(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<rM;l++){const c=`border${cy[l]}Radius`;let u=dy(t,c),d=dy(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||fy(u)===fy(d)?(e[c]=Math.max(et(uy(u),uy(d),r),0),(On.test(d)||On.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=et(t.rotate||0,n.rotate||0,r))}function dy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sM=hy(0,.5,Gg),oM=hy(.5,.95,Rt);function hy(e,t,n){return r=>r<e?0:r>t?1:n(Pi(e,t,r))}function my(e,t){e.min=t.min,e.max=t.max}function nn(e,t){my(e.x,t.x),my(e.y,t.y)}function py(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gy(e,t,n,r,i){return e-=t,e=Ta(e,1/n,r),i!==void 0&&(e=Ta(e,1/i,r)),e}function aM(e,t=0,n=1,r=.5,i,o=e,l=e){if(On.test(t)&&(t=parseFloat(t),t=et(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=et(o.min,o.max,r);e===o&&(c-=t),e.min=gy(e.min,t,n,c,i),e.max=gy(e.max,t,n,c,i)}function yy(e,t,[n,r,i],o,l){aM(e,t[n],t[r],t[i],t.scale,o,l)}const lM=["x","scaleX","originX"],cM=["y","scaleY","originY"];function vy(e,t,n,r){yy(e.x,t,lM,n?n.x:void 0,r?r.x:void 0),yy(e.y,t,cM,n?n.y:void 0,r?r.y:void 0)}function by(e){return e.translate===0&&e.scale===1}function xy(e){return by(e.x)&&by(e.y)}function wy(e,t){return e.min===t.min&&e.max===t.max}function uM(e,t){return wy(e.x,t.x)&&wy(e.y,t.y)}function Sy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ty(e,t){return Sy(e.x,t.x)&&Sy(e.y,t.y)}function Ey(e){return Mt(e.x)/Mt(e.y)}function Cy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let fM=class{constructor(){this.members=[]}add(t){eu(this.members,t),t.scheduleRender()}remove(t){if(tu(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 dM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}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 tf=["","X","Y","Z"],hM={visibility:"hidden"},Py=1e3;let mM=0;function nf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ay(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fg(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&&Ay(r)}function Oy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=mM++,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(yM),this.nodes.forEach(SM),this.nodes.forEach(TM),this.nodes.forEach(vM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,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 tM)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new ru),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=QO(l),this.instance=l;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),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(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=nM(g,250),Ca.hasAnimatedSinceResize&&(Ca.hasAnimatedSinceResize=!1,this.nodes.forEach(_y))})}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 b=this.options.transition||h.getDefaultTransition()||OM,{onLayoutAnimationStart:P,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!Ty(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={...iu(b,"layout"),onPlay:P,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||_y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pr(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(EM),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ay(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(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(My);return}this.isUpdating||this.nodes.forEach(xM),this.isUpdating=!1,this.nodes.forEach(wM),this.nodes.forEach(pM),this.nodes.forEach(gM),this.clearAllSnapshots();const c=An.now();yt.delta=Gn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,cu.update.process(yt),cu.preRender.process(yt),cu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bM),this.sharedNodes.forEach(CM)}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 l=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,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!xy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;l&&(c||Kr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),MM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(_M))){const{scroll:h}=this.root;h&&(Ri(u.x,h.offset.x),Ri(u.y,h.offset.y))}return u}removeElementScroll(l){var c;const u=at();if(nn(u,l),!((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,l),Ri(u.x,m.offset.x),Ri(u.y,m.offset.y))}return u}applyTransform(l,c=!1){const u=at();nn(u,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ni(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Kr(h.latestValues)&&Ni(u,h.latestValues)}return Kr(this.latestValues)&&Ni(u,this.latestValues),u}removeTransform(l){const c=at();nn(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Kr(d.latestValues))continue;Xu(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),vy(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Kr(this.latestValues)&&vy(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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(l=!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(!(l||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(),Hs(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(),DO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),Y0(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(),Hs(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Xu(this.parent.latestValues)||W0(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 l;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.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;$O(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():(py(this.prevProjectionDelta.x,this.projectionDelta.x),py(this.prevProjectionDelta.y,this.projectionDelta.y)),Ys(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!Cy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$i(),this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=$i();(!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,b=y!==S,P=this.getStack(),w=!P||P.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(AM));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;Iy(m.x,l.x,C),Iy(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hs(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PM(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&uM(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=at()),nn(O,this.relativeTarget)),b&&(this.animationValues=h,iM(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Ca.hasAnimatedSinceResize=!0,this.currentAnimation=JO(0,Py,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Py),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&Ly(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=Mt(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}nn(c,u),Ni(c,h),Ys(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new fM),this.sharedNodes.get(l).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 l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&nf("z",l,d,this.animationValues);for(let h=0;h<tf.length;h++)nf(`rotate${tf[h]}`,l,d,this.animationValues),nf(`skew${tf[h]}`,l,d,this.animationValues);l.render();for(const h in d)l.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);l.scheduleRender()}getProjectionStyles(l){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hM;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=ba(l==null?void 0:l.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ba(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Kr(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=dM(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 b in Rs){if(g[b]===void 0)continue;const{correct:P,applyTo:w,isCSSVariable:A}=Rs[b],O=d.transform==="none"?g[b]:P(g[b],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[b]=O:d[b]=O}return this.options.layoutId&&(d.pointerEvents=m===this?ba(l==null?void 0:l.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(My),this.root.sharedNodes.clear()}}}function pM(e){e.updateLayout()}function gM(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,l=n.source!==e.layout.source;o==="size"?tn(m=>{const g=l?n.measuredBox[m]:n.layoutBox[m],y=Mt(g);g.min=r[m].min,g.max=g.min+y}):Ly(o,n.layoutBox,r)&&tn(m=>{const g=l?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=$i();Ys(c,r,n.layoutBox);const u=$i();l?Ys(u,e.applyTransform(i,!0),n.measuredBox):Ys(u,r,n.layoutBox);const d=!xy(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();Hs(S,n.layoutBox,g.layoutBox);const b=at();Hs(b,r,y.layoutBox),Ty(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,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 yM(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 vM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bM(e){e.clearSnapshot()}function My(e){e.clearMeasurements()}function xM(e){e.isLayoutDirty=!1}function wM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function TM(e){e.calcProjection()}function EM(e){e.resetSkewAndRotation()}function CM(e){e.removeLeadSnapshot()}function Iy(e,t,n){e.translate=et(t.translate,0,n),e.scale=et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dy(e,t,n,r){e.min=et(t.min,n.min,r),e.max=et(t.max,n.max,r)}function PM(e,t,n,r){Dy(e.x,t.x,n.x,r),Dy(e.y,t.y,n.y,r)}function AM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OM={duration:.45,ease:[.4,0,.1,1]},$y=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ry=$y("applewebkit/")&&!$y("chrome/")?Math.round:Rt;function Ny(e){e.min=Ry(e.min),e.max=Ry(e.max)}function MM(e){Ny(e.x),Ny(e.y)}function Ly(e,t,n){return e==="position"||e==="preserve-aspect"&&!IO(Ey(t),Ey(n),.2)}function _M(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const IM=Oy({attachResizeListener:(e,t)=>Ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rf={current:void 0},ky=Oy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rf.current){const e=new IM({});e.mount(window),e.setOptions({layoutScroll:!0}),rf.current=e}return rf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),DM={pan:{Feature:qO},drag:{Feature:HO,ProjectionNode:ky,MeasureLayout:ly}};function Fy(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,zs(t)))}let $M=class extends vr{mount(){const{current:t}=this.node;t&&(this.unmount=zC(t,(n,r)=>(Fy(this.node,r,"Start"),i=>Fy(this.node,i,"End"))))}unmount(){}},RM=class extends vr{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=Bs(Ws(this.node.current,"focus",()=>this.onFocus()),Ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function jy(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,zs(t)))}let NM=class extends vr{mount(){const{current:t}=this.node;t&&(this.unmount=qC(t,(n,r)=>(jy(this.node,r,"Start"),(i,{success:o})=>jy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const sf=new WeakMap,of=new WeakMap,LM=e=>{const t=sf.get(e.target);t&&t(e)},kM=e=>{e.forEach(LM)};function FM({root:e,...t}){const n=e||document;of.has(n)||of.set(n,{});const r=of.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kM,{root:e,...t})),r[i]}function jM(e,t,n){const r=FM(t);return sf.set(e,n),r.observe(e),()=>{sf.delete(e),r.unobserve(e)}}const VM={some:0,all:1};let BM=class extends vr{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,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:VM[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 jM(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UM(t,n))&&this.startObserver()}unmount(){}};function UM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WM={inView:{Feature:BM},tap:{Feature:NM},focus:{Feature:RM},hover:{Feature:$M}},zM={layout:{ProjectionNode:ky,MeasureLayout:ly}},af={current:null},Vy={current:!1};function GM(){if(Vy.current=!0,!!Jc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>af.current=e.matches;e.addListener(t),t()}else af.current=!1}const YM=[...d0,Tt,yr],HM=e=>YM.find(f0(e)),qM=new WeakMap;function KM(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"&&ua(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,Ds(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,Ds(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const By=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let XM=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vu,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=An.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=l;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=ya(n),this.isVariantNode=gg(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,qM.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)),Vy.current||GM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:af.current,process.env.NODE_ENV!=="production"&&ua(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(),pr(this.notifyUpdate),pr(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=zr.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 l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),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 Ai){const n=Ai[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<By.length;r++){const i=By[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=KM(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=Ds(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"&&(c0(i)||Hg(i))?i=parseFloat(i):!HM(i)&&yr.test(n)&&(i=t0(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 l=Eu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[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 ru),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Uy=class extends XM{constructor(){super(...arguments),this.KeyframeResolver=m0}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 ZM(e){return window.getComputedStyle(e)}let JM=class extends Uy{constructor(){super(...arguments),this.type="html",this.renderInstance=Dg}readValueFromInstance(t,n){if(zr.has(n))return fA(t,n);{const r=ZM(t),i=(gu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return X0(t,n)}build(t,n,r){bu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pu(t,n,r)}},QM=class extends Uy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ig(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zr.has(n)){const r=e0(n);return r&&r.default||0}return n=$g.has(n)?n:pu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ng(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Su(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Rg(t,n,r,i)}mount(t){this.isSVGTag=Tu(t.tagName),super.mount(t)}};const e_=(e,t)=>wu(e)?new QM(t):new JM(t,{allowProjection:e!==I.Fragment}),t_=FP({...TO,...WM,...DM,...zM},e_),lf=tP(t_),n_=500,cf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,l]=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=wC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=AC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=bC;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(()=>{l(!1)},r);return()=>clearTimeout(g)},[r]),I.useEffect(()=>{if(!o){const g=setTimeout(i,n_);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(DC,{onExitComplete:i,children:o&&x.jsx(lf.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(De,{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:()=>l(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:x.jsx(De,{icon:PC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},Wy=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[l,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(cf,{content:l,type:i,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(y)}},[t]),x.jsx(OC,{isPresent:t,childRef:i,sizeRef:o,children:ce.cloneElement(e,{ref:i})})}const _C=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:c})=>{const u=Zc(IC),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]),ce.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(MC,{isPresent:n,anchorX:c,children:e})),x.jsx(la.Provider,{value:m,children:e})};function IC(){return new Map}function Kp(e=!0){const t=I.useContext(la);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 l=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const ca=e=>e.key||"";function Xp(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const DC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:c="left"})=>{const[u,d]=Kp(l),h=I.useMemo(()=>Xp(e),[e]),m=l&&!u?[]:h.map(ca),g=I.useRef(!0),y=I.useRef(h),S=Zc(()=>new Map),[b,P]=I.useState(h),[w,A]=I.useState(h);qp(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ca(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!==b){let C=[...h];for(let L=0;L<w.length;L++){const V=w[L],F=ca(V);m.includes(F)||(C.splice(L,0,V),O.push(V))}return o==="wait"&&O.length&&(C=O),A(Xp(C)),P(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(Xc);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ca(C),V=l&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let q=!0;S.forEach(ee=>{ee||(q=!1)}),q&&(D==null||D(),A(y.current),l&&(d==null||d()),r&&r())};return x.jsx(_C,{isPresent:V,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:F,anchorX:c,children:C},L)})})};function eu(e,t){e.indexOf(t)===-1&&e.push(t)}function tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let Ci=Rt,mr=Rt;process.env.NODE_ENV!=="production"&&(Ci=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},mr=(e,t)=>{if(!e)throw new Error(t)});const $C={useManualTiming:!1};function nu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let ru=class{constructor(){this.subscriptions=[]}add(t){return eu(this.subscriptions,t),()=>tu(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 l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Pn=e=>e*1e3,zn=e=>e/1e3;function Zp(e,t){return t?e*(1e3/t):0}const Jp=new Set;function ua(e,t,n){e||Jp.has(t)||(console.warn(t),Jp.add(t))}const RC=nu(()=>window.ScrollTimeline!==void 0);let NC=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(RC()&&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")}},LC=class extends NC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function iu(e,t){return e?e[t]||e.default||e:void 0}const su=2e4;function Qp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<su;)t+=n,r=e.next(t);return t>=su?1/0:t}function ou(e){return typeof e=="function"}function eg(e,t){e.timeline=t,e.onfinish=null}const au=e=>Array.isArray(e)&&typeof e[0]=="number",kC={linearEasing:void 0};function FC(e,t){const n=nu(e);return()=>{var r;return(r=kC[t])!==null&&r!==void 0?r:n()}}const fa=FC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Pi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ng(e){return!!(typeof e=="function"&&fa()||!e||typeof e=="string"&&(e in lu||fa())||au(e)||Array.isArray(e)&&e.every(ng))}const _s=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_s([0,.65,.55,1]),circOut:_s([.55,0,1,.45]),backIn:_s([.31,.01,.66,-.59]),backOut:_s([.33,1.53,.69,.99])};function rg(e,t){if(e)return typeof e=="function"&&fa()?tg(e,t):au(e)?_s(e):Array.isArray(e)?e.map(n=>rg(n,t)||lu.easeOut):lu[e]}const da=["read","resolveKeyframes","update","preRender","render","postRender"],ig={value:null};function jC(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){l.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const b=y&&i?n:r;return g&&l.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&ig.value&&ig.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const VC=40;function sg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=da.reduce((w,A)=>(w[A]=jC(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=l,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,VC),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:da.reduce((w,A)=>{const O=l[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<da.length;A++)l[da[A]].cancel(w)},state:i,steps:l}}const{schedule:Ye,cancel:pr,state:yt,steps:cu}=sg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:uu}=sg(queueMicrotask,!1);let ha;function BC(){ha=void 0}const An={now:()=>(ha===void 0&&An.set(yt.isProcessing||$C.useManualTiming?yt.timestamp:performance.now()),ha),set:e=>{ha=e,queueMicrotask(BC)}},pn={x:!1,y:!1};function og(){return pn.x||pn.y}function UC(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function WC(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 ag(e,t){const n=WC(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function lg(e){return!(e.pointerType==="touch"||og())}function zC(e,t,n={}){const[r,i,o]=ag(e,n),l=c=>{if(!lg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{lg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}const cg=(e,t)=>t?e===t?!0:cg(e,t.parentElement):!1,fu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,GC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YC(e){return GC.has(e.tagName)||e.tabIndex!==-1}const Is=new WeakSet;function ug(e){return t=>{t.key==="Enter"&&e(t)}}function du(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HC=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ug(()=>{if(Is.has(n))return;du(n,"down");const i=ug(()=>{du(n,"up")}),o=()=>du(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 fg(e){return fu(e)&&!og()}function qC(e,t,n={}){const[r,i,o]=ag(e,n),l=c=>{const u=c.currentTarget;if(!fg(c)||Is.has(u))return;Is.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!fg(y)||!Is.has(u))&&(Is.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||cg(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",l,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>HC(d,i)),!YC(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const dg=30,KC=e=>!isNaN(parseFloat(e));let XC=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=An.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=An.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=KC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ua(!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 ru);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=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>dg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,dg);return Zp(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 Ds(e,t){return new XC(e,t)}const hg=I.createContext({strict:!1}),mg={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"]},Ai={};for(const e in mg)Ai[e]={isEnabled:t=>mg[e].some(n=>!!t[n])};function ZC(e){for(const t in e)Ai[t]={...Ai[t],...e[t]}}const JC=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 ma(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||JC.has(e)}let pg=e=>!ma(e);function QC(e){e&&(pg=t=>t.startsWith("on")?!ma(t):e(t))}try{QC(require("@emotion/is-prop-valid").default)}catch{}function eP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(pg(i)||n===!0&&ma(i)||!t&&!ma(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ua(!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 pa=I.createContext({});function ga(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $s(e){return typeof e=="string"||Array.isArray(e)}const hu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...hu];function ya(e){return ga(e.animate)||mu.some(t=>$s(e[t]))}function gg(e){return!!(ya(e)||e.variants)}function nP(e,t){if(ya(e)){const{initial:n,animate:r}=e;return{initial:n===!1||$s(n)?n:void 0,animate:$s(r)?r:void 0}}return e.inherit!==!1?t:{}}function rP(e){const{initial:t,animate:n}=nP(e,I.useContext(pa));return I.useMemo(()=>({initial:t,animate:n}),[yg(t),yg(n)])}function yg(e){return Array.isArray(e)?e.join(" "):e}const iP=Symbol.for("motionComponentSymbol");function Oi(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):Oi(n)&&(n.current=r))},[t])}const pu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),vg="data-"+pu("framerAppearId"),bg=I.createContext({});function oP(e,t,n,r,i){var o,l;const{visualElement:c}=I.useContext(pa),u=I.useContext(hg),d=I.useContext(la),h=I.useContext(Qc).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(bg);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&aP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const b=n[vg],P=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return qp(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),uu.render(g.render),P.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!P.current&&g.animationState&&g.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),P.current=!1))}),g}function aP(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:xg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&Oi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function xg(e){if(e)return e.options.allowProjection!==!1?e.projection:xg(e.parent)}function lP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,l;e&&ZC(e);function c(d,h){let m;const g={...I.useContext(Qc),...d,layoutId:cP(d)},{isStatic:y}=g,S=rP(d),b=r(d,y);if(!y&&Jc){uP(g,e);const P=fP(g);m=P.MeasureLayout,S.visualElement=oP(i,b,g,t,P.ProjectionNode)}return x.jsxs(pa.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,sP(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const u=I.forwardRef(c);return u[iP]=i,u}function cP({layoutId:e}){const t=I.useContext(Xc).id;return t&&e!==void 0?t+"-"+e:e}function uP(e,t){const n=I.useContext(hg).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?Ci(!1,r):mr(!1,r)}}function fP(e){const{drag:t,layout:n}=Ai;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 wg=e=>t=>typeof t=="string"&&t.startsWith(e),gu=wg("--"),dP=wg("var(--"),yu=e=>dP(e)?hP.test(e.split("/*")[0].trim()):!1,hP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Rs={};function mP(e){for(const t in e)Rs[t]=e[t],gu(t)&&(Rs[t].isCSSVariable=!0)}const Mi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zr=new Set(Mi);function Sg(e,{layout:t,layoutId:n}){return zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Rs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Tg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Gn=(e,t,n)=>n>t?t:n<e?e:n,_i={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ns={..._i,transform:e=>Gn(0,1,e)},va={..._i,default:1},Ls=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gr=Ls("deg"),On=Ls("%"),we=Ls("px"),pP=Ls("vh"),gP=Ls("vw"),Eg={...On,parse:e=>On.parse(e)/100,transform:e=>On.transform(e*100)},yP={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},vP={rotate:gr,rotateX:gr,rotateY:gr,rotateZ:gr,scale:va,scaleX:va,scaleY:va,scaleZ:va,skew:gr,skewX:gr,skewY:gr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ns,originX:Eg,originY:Eg,originZ:we},Cg={..._i,transform:Math.round},vu={...yP,...vP,zIndex:Cg,size:we,fillOpacity:Ns,strokeOpacity:Ns,numOctaves:Cg},bP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xP=Mi.length;function wP(e,t,n){let r="",i=!0;for(let o=0;o<xP;o++){const l=Mi[o],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Tg(c,vu[l]);if(!u){i=!1;const h=bP[l]||l;r+=`${h}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function bu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(zr.has(u)){l=!0;continue}else if(gu(u)){i[u]=d;continue}else{const h=Tg(d,vu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(l||n?r.transform=wP(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 xu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Pg(e,t,n){for(const r in t)!St(t[r])&&!Sg(r,n)&&(e[r]=t[r])}function SP({transformTemplate:e},t){return I.useMemo(()=>{const n=xu();return bu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function TP(e,t){const n=e.style||{},r={};return Pg(r,n,e),Object.assign(r,SP(e,t)),r}function EP(e,t){const n={},r=TP(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 CP=["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 wu(e){return typeof e!="string"||e.includes("-")?!1:!!(CP.indexOf(e)>-1||/[A-Z]/u.test(e))}const PP={offset:"stroke-dashoffset",array:"stroke-dasharray"},AP={offset:"strokeDashoffset",array:"strokeDasharray"};function OP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?PP:AP;e[o.offset]=we.transform(-r);const l=we.transform(t),c=we.transform(n);e[o.array]=`${l} ${c}`}function Ag(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function MP(e,t,n){const r=Ag(t,e.x,e.width),i=Ag(n,e.y,e.height);return`${r} ${i}`}function Su(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(bu(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=MP(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),l!==void 0&&OP(g,l,c,u,!1)}const Og=()=>({...xu(),attrs:{}}),Tu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _P(e,t,n,r){const i=I.useMemo(()=>{const o=Og();return Su(o,t,Tu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Pg(o,e.style,e),i.style={...o,...i.style}}return i}function IP(e=!1){return(n,r,i,{latestValues:o},l)=>{const u=(wu(n)?_P:EP)(r,o,l,n),d=eP(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 Mg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Eu(e,t,n,r){if(typeof t=="function"){const[i,o]=Mg(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]=Mg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Cu=e=>Array.isArray(e),DP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$P=e=>Cu(e)?e[e.length-1]||0:e;function ba(e){const t=St(e)?e.get():e;return DP(t)?t.toValue():t}function RP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const l={latestValues:NP(r,i,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const _g=e=>(t,n)=>{const r=I.useContext(pa),i=I.useContext(la),o=()=>RP(e,t,r,i);return n?o():Zc(o)};function NP(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=ba(o[g]);let{initial:l,animate:c}=e;const u=ya(e),d=gg(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||l===!1;const m=h?c:l;if(m&&typeof m!="boolean"&&!ga(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Eu(e,g[y]);if(S){const{transitionEnd:b,transition:P,...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 b)i[A]=b[A]}}}return i}function Pu(e,t,n){var r;const{style:i}=e,o={};for(const l in i)(St(i[l])||t.style&&St(t.style[l])||Sg(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=i[l]);return o}const LP={useVisualState:_g({scrapeMotionValuesFromProps:Pu,createRenderState:xu})};function Ig(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 Dg(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 $g=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 Rg(e,t,n,r){Dg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute($g.has(i)?i:pu(i),t.attrs[i])}function Ng(e,t,n){const r=Pu(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Mi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Lg=["x","y","width","height","cx","cy","r"],kP={useVisualState:_g({scrapeMotionValuesFromProps:Ng,createRenderState:Og,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(zr.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<Lg.length;c++){const u=Lg[c];e[u]!==t[u]&&(l=!0)}l&&Ye.read(()=>{Ig(n,r),Ye.render(()=>{Su(r,i,Tu(n.tagName),e.transformTemplate),Rg(n,r)})})}})};function FP(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...wu(r)?kP:LP,preloadedFeatures:e,useRender:IP(i),createVisualElement:t,Component:r};return lP(l)}}function ks(e,t,n){const r=e.getProps();return Eu(r,t,n!==void 0?n:r.custom,e)}const kg=new Set(["width","height","top","left","right","bottom",...Mi]);function jP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ds(n))}function VP(e,t){const n=ks(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const c=$P(o[l]);jP(e,l,c)}}function BP(e){return!!(St(e)&&e.add)}function Au(e,t){const n=e.getValue("willChange");if(BP(n))return n.add(t)}function Fg(e){return e.props[vg]}const jg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,UP=1e-7,WP=12;function zP(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=jg(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>UP&&++c<WP);return l}function Fs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>zP(o,0,1,e,n);return o=>o===0||o===1?o:jg(i(o),t,r)}const Vg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bg=e=>t=>1-e(1-t),Ug=Fs(.33,1.53,.69,.99),Ou=Bg(Ug),Wg=Vg(Ou),zg=e=>(e*=2)<1?.5*Ou(e):.5*(2-Math.pow(2,-10*(e-1))),Mu=e=>1-Math.sin(Math.acos(e)),Gg=Bg(Mu),Yg=Vg(Mu),Hg=e=>/^0[^.\s]+$/u.test(e);function GP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Hg(e):!0}const js=e=>Math.round(e*1e5)/1e5,_u=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YP(e){return e==null}const HP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Iu=(e,t)=>n=>!!(typeof n=="string"&&HP.test(n)&&n.startsWith(e)||t&&!YP(n)&&Object.prototype.hasOwnProperty.call(n,t)),qg=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,c]=r.match(_u);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},qP=e=>Gn(0,255,e),Du={..._i,transform:e=>Math.round(qP(e))},Gr={test:Iu("rgb","red"),parse:qg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Du.transform(e)+", "+Du.transform(t)+", "+Du.transform(n)+", "+js(Ns.transform(r))+")"};function KP(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 $u={test:Iu("#"),parse:KP,transform:Gr.transform},Ii={test:Iu("hsl","hue"),parse:qg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+On.transform(js(t))+", "+On.transform(js(n))+", "+js(Ns.transform(r))+")"},Tt={test:e=>Gr.test(e)||$u.test(e)||Ii.test(e),parse:e=>Gr.test(e)?Gr.parse(e):Ii.test(e)?Ii.parse(e):$u.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gr.transform(e):Ii.transform(e)},XP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZP(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_u))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(XP))===null||n===void 0?void 0:n.length)||0)>0}const Kg="number",Xg="color",JP="var",QP="var(",Zg="${}",eA=/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 Vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(eA,u=>(Tt.test(u)?(r.color.push(o),i.push(Xg),n.push(Tt.parse(u))):u.startsWith(QP)?(r.var.push(o),i.push(JP),n.push(u)):(r.number.push(o),i.push(Kg),n.push(parseFloat(u))),++o,Zg)).split(Zg);return{values:n,split:c,indexes:r,types:i}}function Jg(e){return Vs(e).values}function Qg(e){const{split:t,types:n}=Vs(e),r=t.length;return i=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===Kg?o+=js(i[l]):c===Xg?o+=Tt.transform(i[l]):o+=i[l]}return o}}const tA=e=>typeof e=="number"?0:e;function nA(e){const t=Jg(e);return Qg(e)(t.map(tA))}const yr={test:ZP,parse:Jg,createTransformer:Qg,getAnimatableNone:nA},rA=new Set(["brightness","contrast","saturate","opacity"]);function iA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(_u)||[];if(!r)return e;const i=n.replace(r,"");let o=rA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const sA=/\b([a-z-]*)\(.*?\)/gu,Ru={...yr,getAnimatableNone:e=>{const t=e.match(sA);return t?t.map(iA).join(" "):e}},oA={...vu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Ru,WebkitFilter:Ru},e0=e=>oA[e];function t0(e,t){let n=e0(e);return n!==Ru&&(n=yr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const aA=new Set(["auto","none","0"]);function lA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!aA.has(o)&&Vs(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=t0(n,i)}const Yr=e=>e*180/Math.PI,Nu=e=>{const t=Yr(Math.atan2(e[1],e[0]));return Lu(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:Nu,rotateZ:Nu,skewX:e=>Yr(Math.atan(e[1])),skewY:e=>Yr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lu=e=>(e=e%360,e<0&&(e+=360),e),n0=Nu,r0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),i0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),uA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:r0,scaleY:i0,scale:e=>(r0(e)+i0(e))/2,rotateX:e=>Lu(Yr(Math.atan2(e[6],e[5]))),rotateY:e=>Lu(Yr(Math.atan2(-e[2],e[0]))),rotateZ:n0,rotate:n0,skewX:e=>Yr(Math.atan(e[4])),skewY:e=>Yr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function s0(e){return e.includes("scale")?1:0}function ku(e,t){if(!e||e==="none")return s0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=uA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=cA,i=c}if(!i)return s0(t);const o=r[t],l=i[1].split(",").map(dA);return typeof o=="function"?o(l):l[o]}const fA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ku(n,t)};function dA(e){return parseFloat(e.trim())}const o0=e=>e===_i||e===we,hA=new Set(["x","y","z"]),mA=Mi.filter(e=>!hA.has(e));function pA(e){const t=[];return mA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Di={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})=>ku(t,"x"),y:(e,{transform:t})=>ku(t,"y")};Di.translateX=Di.x,Di.translateY=Di.y;const Hr=new Set;let Fu=!1,ju=!1;function a0(){if(ju){const e=Array.from(Hr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=pA(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,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ju=!1,Fu=!1,Hr.forEach(e=>e.complete()),Hr.clear()}function l0(){Hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ju=!0)})}function gA(){l0(),a0()}let Vu=class{constructor(t,n,r,i,o,l=!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=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Hr.add(this),Fu||(Fu=!0,Ye.read(l0),Ye.resolveKeyframes(a0))):(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 l=i==null?void 0:i.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&l===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),Hr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Hr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const c0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const bA=4;function u0(e,t,n=1){mr(n<=bA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=vA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return c0(l)?parseFloat(l):l}return yu(i)?u0(i,t,n+1):i}const f0=e=>t=>t.test(e),d0=[_i,we,On,gr,gP,pP,{test:e=>e==="auto",parse:e=>e}],h0=e=>d0.find(f0(e));let m0=class extends Vu{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(),yu(d))){const h=u0(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,l=h0(i),c=h0(o);if(l!==c)if(o0(l)&&o0(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++)GP(t[i])&&r.push(i);r.length&&lA(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=Di[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 l=i.length-1,c=i[l];i[l]=Di[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 p0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yr.test(e)||e==="0")&&!e.startsWith("url("));function xA(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 wA(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],l=p0(i,t),c=p0(o,t);return Ci(l===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.`),!l||!c?!1:xA(e)||(n==="spring"||ou(n))&&r}const SA=e=>e!==null;function xa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(SA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const TA=40;let g0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>TA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&gA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:l,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!wA(t,r,i,o))if(l)this.options.duration=0;else{u&&u(xa(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 et=(e,t,n)=>e+(t-e)*n;function Bu(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 EA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Bu(u,c,e+1/3),o=Bu(u,c,e),l=Bu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function wa(e,t){return n=>n>0?t:e}const Uu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},CA=[$u,Gr,Ii],PA=e=>CA.find(t=>t.test(e));function y0(e){const t=PA(e);if(Ci(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ii&&(n=EA(n)),n}const v0=(e,t)=>{const n=y0(e),r=y0(t);if(!n||!r)return wa(e,t);const i={...n};return o=>(i.red=Uu(n.red,r.red,o),i.green=Uu(n.green,r.green,o),i.blue=Uu(n.blue,r.blue,o),i.alpha=et(n.alpha,r.alpha,o),Gr.transform(i))},AA=(e,t)=>n=>t(e(n)),Bs=(...e)=>e.reduce(AA),Wu=new Set(["none","hidden"]);function OA(e,t){return Wu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function MA(e,t){return n=>et(e,t,n)}function zu(e){return typeof e=="number"?MA:typeof e=="string"?yu(e)?wa:Tt.test(e)?v0:DA:Array.isArray(e)?b0:typeof e=="object"?Tt.test(e)?v0:_A:wa}function b0(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>zu(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function _A(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zu(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function IA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][i[l]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[l]++}return r}const DA=(e,t)=>{const n=yr.createTransformer(t),r=Vs(e),i=Vs(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?Wu.has(e)&&!i.values.length||Wu.has(t)&&!r.values.length?OA(e,t):Bs(b0(IA(r,i),i.values),n):(Ci(!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.`),wa(e,t))};function x0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?et(e,t,n):zu(e)(e,t)}const $A=5;function w0(e,t,n){const r=Math.max(t-$A,0);return Zp(n-e(r),t-r)}const tt={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},S0=.001;function RA({duration:e=tt.duration,bounce:t=tt.bounce,velocity:n=tt.velocity,mass:r=tt.mass}){let i,o;Ci(e<=Pn(tt.maxDuration),"Spring duration must be 10 seconds or less");let l=1-t;l=Gn(tt.minDamping,tt.maxDamping,l),e=Gn(tt.minDuration,tt.maxDuration,zn(e)),l<1?(i=d=>{const h=d*l,m=h*e,g=h-n,y=Gu(d,l),S=Math.exp(-m);return S0-g/y*S},o=d=>{const m=d*l*e,g=m*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Gu(Math.pow(d,2),l);return(-i(d)+S0>0?-1:1)*((g-y)*S)/b}):(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=LA(i,o,c);if(e=Pn(e),isNaN(u))return{stiffness:tt.stiffness,damping:tt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const NA=12;function LA(e,t,n){let r=n;for(let i=1;i<NA;i++)r=r-e(r)/t(r);return r}function Gu(e,t){return e*Math.sqrt(1-t*t)}const kA=["duration","bounce"],FA=["stiffness","damping","mass"];function T0(e,t){return t.some(n=>e[n]!==void 0)}function jA(e){let t={velocity:tt.velocity,stiffness:tt.stiffness,damping:tt.damping,mass:tt.mass,isResolvedFromDuration:!1,...e};if(!T0(e,FA)&&T0(e,kA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Gn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tt.mass,stiffness:i,damping:o}}else{const n=RA(e);t={...t,...n,mass:tt.mass},t.isResolvedFromDuration=!0}return t}function E0(e=tt.visualDuration,t=tt.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],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=jA({...n,velocity:-zn(n.velocity||0)}),S=g||0,b=d/(2*Math.sqrt(u*h)),P=l-o,w=zn(Math.sqrt(u/h)),A=Math.abs(P)<5;r||(r=A?tt.restSpeed.granular:tt.restSpeed.default),i||(i=A?tt.restDelta.granular:tt.restDelta.default);let O;if(b<1){const C=Gu(w,b);O=L=>{const V=Math.exp(-b*w*L);return l-V*((S+b*w*P)/C*Math.sin(C*L)+P*Math.cos(C*L))}}else if(b===1)O=C=>l-Math.exp(-w*C)*(P+(S+w*P)*C);else{const C=w*Math.sqrt(b*b-1);O=L=>{const V=Math.exp(-b*w*L),F=Math.min(C*L,300);return l-V*((S+b*w*P)*Math.sinh(F)+C*P*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let V=0;b<1&&(V=C===0?Pn(S):w0(O,C,L));const F=Math.abs(V)<=r,q=Math.abs(l-L)<=i;c.done=F&&q}return c.value=c.done?l:L,c},toString:()=>{const C=Math.min(Qp(D),su),L=tg(V=>D.next(C*V).value,C,30);return C+"ms "+L}};return D}function C0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,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 b=n*t;const P=m+b,w=l===void 0?P:l(P);w!==P&&(b=w-m);const A=F=>-b*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const q=A(F),ee=O(F);g.done=Math.abs(q)<=d,g.value=g.done?w:ee};let C,L;const V=F=>{y(g.value)&&(C=F,L=E0({keyframes:[g.value,S(g.value)],velocity:w0(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let q=!1;return!L&&C===void 0&&(q=!0,D(F),V(F)),C!==void 0&&F>=C?L.next(F-C):(!q&&D(F),g)}}}const VA=Fs(.42,0,1,1),BA=Fs(0,0,.58,1),P0=Fs(.42,0,.58,1),UA=e=>Array.isArray(e)&&typeof e[0]!="number",A0={linear:Rt,easeIn:VA,easeInOut:P0,easeOut:BA,circIn:Mu,circInOut:Yg,circOut:Gg,backIn:Ou,backInOut:Wg,backOut:Ug,anticipate:zg},O0=e=>{if(au(e)){mr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Fs(t,n,r,i)}else if(typeof e=="string")return mr(A0[e]!==void 0,`Invalid easing type '${e}'`),A0[e];return e};function WA(e,t,n){const r=[],i=n||x0,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Rt:t;c=Bs(u,c)}r.push(c)}return r}function zA(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(mr(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 l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=WA(t,r,i),u=c.length,d=h=>{if(l&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Pi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Gn(e[0],e[o-1],h)):d}function GA(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Pi(0,t,r);e.push(et(n,1,i))}}function YA(e){const t=[0];return GA(t,e.length-1),t}function HA(e,t){return e.map(n=>n*t)}function qA(e,t){return e.map(()=>t||P0).splice(0,e.length-1)}function Us({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=UA(r)?r.map(O0):O0(r),o={done:!1,value:t[0]},l=HA(n&&n.length===t.length?n:YA(t),e),c=zA(l,t,{ease:Array.isArray(i)?i:qA(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const KA=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>pr(t),now:()=>yt.isProcessing?yt.timestamp:An.now()}},XA={decay:C0,inertia:C0,tween:Us,keyframes:Us,spring:E0},ZA=e=>e/100;let Yu=class extends g0{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,l=(i==null?void 0:i.KeyframeResolver)||Vu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new l(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:l=0}=this.options,c=ou(n)?n:XA[n]||Us;let u,d;process.env.NODE_ENV!=="production"&&c!==Us&&mr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Us&&typeof t[0]!="number"&&(u=Bs(ZA,x0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Qp(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:l,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:b,onUpdate:P}=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 q=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&q--,q=Math.min(q,y+1),!!(q%2)&&(S==="reverse"?(ee=1-ee,b&&(ee-=b/m)):S==="mirror"&&(D=l)),O=Gn(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 V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return V&&i!==void 0&&(C.value=xa(u,this.options,i)),P&&P(C.value),V&&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=Pn(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=KA,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 JA=new Set(["opacity","clipPath","filter","transform"]);function QA(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=rg(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:l==="reverse"?"alternate":"normal"})}const eO=nu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Sa=10,tO=2e4;function nO(e){return ou(e.type)||e.type==="spring"||!ng(e.ease)}function rO(e,t){const n=new Yu({...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<tO;)r=n.sample(o),i.push(r.value),o+=Sa;return{times:void 0,keyframes:i,duration:o-Sa,ease:"linear"}}const M0={anticipate:zg,backInOut:Wg,circInOut:Yg};function iO(e){return e in M0}let _0=class extends g0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new m0(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:l,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&fa()&&iO(o)&&(o=M0[o]),nO(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...b}=this.options,P=rO(t,b);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,o=P.ease,l="keyframes"}const h=QA(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(eg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(xa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:l,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=Pn(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;eg(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:l,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 Yu({...y,keyframes:r,duration:i,type:o,ease:l,times:c,isGenerator:!0}),b=Pn(this.time);d.setWithVelocity(S.sample(b-Sa).value,S.sample(b).value,Sa)}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:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return eO()&&r&&JA.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&l!==0&&c!=="inertia"}};const sO={type:"spring",stiffness:500,damping:25,restSpeed:10},oO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),aO={type:"keyframes",duration:.8},lO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cO=(e,{keyframes:t})=>t.length>2?aO:zr.has(e)?e.startsWith("scale")?oO(t[1]):sO:lO;function uO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Hu=(e,t,n,r={},i,o)=>l=>{const c=iu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Pn(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:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};uO(c)||(h={...h,...cO(e,h)}),h.duration&&(h.duration=Pn(h.duration)),h.repeatDelay&&(h.repeatDelay=Pn(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=xa(h.keyframes,c);if(g!==void 0)return Ye.update(()=>{h.onUpdate(g),h.onComplete()}),new LC([])}return!o&&_0.supports(h)?new _0(h):new Yu(h)};function fO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function I0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(l=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&&fO(h,m))continue;const S={delay:n,...iu(l||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=Fg(e);if(w){const A=window.MotionHandoffAnimation(w,m,Ye);A!==null&&(S.startTime=A,b=!0)}}Au(e,m),g.start(Hu(m,g,y,e.shouldReduceMotion&&kg.has(m)?{type:!1}:S,e,b));const P=g.animation;P&&d.push(P)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&VP(e,c)})}),d}function qu(e,t,n={}){var r;const i=ks(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 l=i?()=>Promise.all(I0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return dO(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[l,c]:[c,l];return d().then(()=>h())}else return Promise.all([l(),c(n.delay)])}function dO(e,t,n=0,r=0,i=1,o){const l=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(hO).forEach((d,h)=>{d.notify("AnimationStart",t),l.push(qu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(l)}function hO(e,t){return e.sortNodePosition(t)}function mO(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"?ks(e,t,n.custom):t;r=Promise.all(I0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function D0(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 pO=mu.length;function $0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<pO;n++){const r=mu[n],i=e.props[r];($s(i)||i===!1)&&(t[r]=i)}return t}const gO=[...hu].reverse(),yO=hu.length;function vO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mO(e,n,r)))}function bO(e){let t=vO(e),n=R0(),r=!0;const i=u=>(d,h)=>{var m;const g=ks(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...b}=g;d={...d,...b,...S}}return d};function o(u){t=u(e)}function l(u){const{props:d}=e,h=$0(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let P=0;P<yO;P++){const w=gO[P],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=$s(O),C=w===u?A.isActive:null;C===!1&&(S=P);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||ga(O)||typeof O=="boolean")continue;const V=xO(A.prevProp,O);let F=V||w===u&&A.isActive&&!L&&D||P>S&&D,q=!1;const ee=Array.isArray(O)?O:[O];let re=ee.reduce(i(w),{});C===!1&&(re={});const{prevResolvedValues:ve={}}=A,ye={...ve,...re},fe=z=>{F=!0,g.has(z)&&(q=!0,g.delete(z)),A.needsAnimating[z]=!0;const Y=e.getValue(z);Y&&(Y.liveStyle=!1)};for(const z in ye){const Y=re[z],Z=ve[z];if(y.hasOwnProperty(z))continue;let _=!1;Cu(Y)&&Cu(Z)?_=!D0(Y,Z):_=Y!==Z,_?Y!=null?fe(z):g.add(z):Y!==void 0&&g.has(z)?fe(z):A.protectedKeys[z]=!0}A.prevProp=O,A.prevResolvedValues=re,A.isActive&&(y={...y,...re}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&V)||q)&&m.push(...ee.map(z=>({animation:z,options:{type:w}})))}if(g.size){const P={};if(typeof d.initial!="boolean"){const w=ks(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(P.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),P[w]=A??null}),m.push({animation:P})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=l(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=R0(),r=!0}}}function xO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!D0(t,e):!1}function qr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function R0(){return{animate:qr(!0),whileInView:qr(),whileHover:qr(),whileTap:qr(),whileDrag:qr(),whileFocus:qr(),exit:qr()}}let vr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},wO=class extends vr{constructor(t){super(t),t.animationState||(t.animationState=bO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ga(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)}},SO=0;const TO={animation:{Feature:wO},exit:{Feature:class extends vr{constructor(){super(...arguments),this.id=SO++}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 Ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function zs(e){return{point:{x:e.pageX,y:e.pageY}}}const EO=e=>t=>fu(t)&&e(t,zs(t));function Gs(e,t,n,r){return Ws(e,t,EO(n),r)}function N0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PO(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 L0=1e-4,AO=1-L0,OO=1+L0,k0=.01,MO=0-k0,_O=0+k0;function Mt(e){return e.max-e.min}function IO(e,t,n){return Math.abs(e-t)<=n}function F0(e,t,n,r=.5){e.origin=r,e.originPoint=et(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AO&&e.scale<=OO||isNaN(e.scale))&&(e.scale=1),(e.translate>=MO&&e.translate<=_O||isNaN(e.translate))&&(e.translate=0)}function Ys(e,t,n,r){F0(e.x,t.x,n.x,r?r.originX:void 0),F0(e.y,t.y,n.y,r?r.originY:void 0)}function j0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function DO(e,t,n){j0(e.x,t.x,n.x),j0(e.y,t.y,n.y)}function V0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function Hs(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}const B0=()=>({translate:0,scale:1,origin:0,originPoint:0}),$i=()=>({x:B0(),y:B0()}),U0=()=>({min:0,max:0}),at=()=>({x:U0(),y:U0()});function tn(e){return[e("x"),e("y")]}function Ku(e){return e===void 0||e===1}function Xu({scale:e,scaleX:t,scaleY:n}){return!Ku(e)||!Ku(t)||!Ku(n)}function Kr(e){return Xu(e)||W0(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function W0(e){return z0(e.x)||z0(e.y)}function z0(e){return e&&e!=="0%"}function Ta(e,t,n){const r=e-n,i=t*r;return n+i}function G0(e,t,n,r,i){return i!==void 0&&(e=Ta(e,i,r)),Ta(e,n,r)+t}function Zu(e,t=0,n=1,r,i){e.min=G0(e.min,t,n,r,i),e.max=G0(e.max,t,n,r,i)}function Y0(e,{x:t,y:n}){Zu(e.x,t.translate,t.scale,t.originPoint),Zu(e.y,n.translate,n.scale,n.originPoint)}const H0=.999999999999,q0=1.0000000000001;function $O(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=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&&Ni(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Y0(e,l)),r&&Kr(o.latestValues)&&Ni(e,o.latestValues))}t.x<q0&&t.x>H0&&(t.x=1),t.y<q0&&t.y>H0&&(t.y=1)}function Ri(e,t){e.min=e.min+t,e.max=e.max+t}function K0(e,t,n,r,i=.5){const o=et(e.min,e.max,i);Zu(e,t,n,o,r)}function Ni(e,t){K0(e.x,t.x,t.scaleX,t.scale,t.originX),K0(e.y,t.y,t.scaleY,t.scale,t.originY)}function X0(e,t){return N0(PO(e.getBoundingClientRect(),t))}function RO(e,t,n){const r=X0(e,n),{scroll:i}=t;return i&&(Ri(r.x,i.offset.x),Ri(r.y,i.offset.y)),r}const Z0=({current:e})=>e?e.ownerDocument.defaultView:null,J0=(e,t)=>Math.abs(e-t);function NO(e,t){const n=J0(e.x,t.x),r=J0(e.y,t.y);return Math.sqrt(n**2+r**2)}let Q0=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=Qu(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=NO(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:P,onMove:w}=this.handlers;g||(P&&P(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Ju(g,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Qu(m.type==="pointercancel"?this.lastMoveEventInfo:Ju(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,P),S&&S(m,P)},!fu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=zs(t),c=Ju(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,Qu(c,this.history)),this.removeListeners=Bs(Gs(this.contextWindow,"pointermove",this.handlePointerMove),Gs(this.contextWindow,"pointerup",this.handlePointerUp),Gs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pr(this.updatePoint)}};function Ju(e,t){return t?{point:t(e.point)}:e}function ey(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qu({point:e},t){return{point:e,delta:ey(e,ty(t)),offset:ey(e,LO(t)),velocity:kO(t,.1)}}function LO(e){return e[0]}function ty(e){return e[e.length-1]}function kO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ty(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Pn(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 l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function FO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?et(n,e,r.max):Math.min(e,n)),e}function ny(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 jO(e,{top:t,left:n,bottom:r,right:i}){return{x:ny(e.x,n,i),y:ny(e.y,t,r)}}function ry(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 VO(e,t){return{x:ry(e.x,t.x),y:ry(e.y,t.y)}}function BO(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Pi(t.min,t.max-r,e.min):r>i&&(n=Pi(e.min,e.max-i,t.min)),Gn(0,1,n)}function UO(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 ef=.35;function WO(e=ef){return e===!1?e=0:e===!0&&(e=ef),{x:iy(e,"left","right"),y:iy(e,"top","bottom")}}function iy(e,t,n){return{min:sy(e,t),max:sy(e,n)}}function sy(e,t){return typeof e=="number"?e:e[t]||0}const zO=new WeakMap;let GO=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(zs(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UC(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(P=>{let w=this.getAxisMotionValue(P).get()||0;if(On.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[P];O&&(w=Mt(O)*(parseFloat(w)/100))}}this.originPoint[P]=w}),S&&Ye.postRender(()=>S(h,m)),Au(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:P}=m;if(y&&this.currentDirection===null){this.currentDirection=YO(P),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,P),this.updateAxis("y",m.point,P),this.visualElement.render(),b&&b(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 Q0(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Z0(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||!Ea(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=FO(l,this.constraints[t],this.elastic[t])),o.set(l)}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&&Oi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=jO(i.layoutBox,n):this.constraints=!1,this.elastic=WO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=UO(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Oi(t))return!1;const r=t.current;mr(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=RO(r,i.root,this.visualElement.getTransformPagePoint());let l=VO(i.layout.layoutBox,o);if(n){const c=n(CO(l));this.hasMutatedConstraints=!!c,c&&(l=N0(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Ea(h,n,this.currentDirection))return;let m=u&&u[h]||{};l&&(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 Au(this.visualElement,t),r.start(Hu(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(!Ea(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-et(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Oi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();i[l]=BO({min:u,max:u},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(l=>{if(!Ea(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(et(u,d,i[l]))})}addListeners(){if(!this.visualElement.current)return;zO.set(this.visualElement,this);const t=this.visualElement.current,n=Gs(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Oi(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 l=Ws(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()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=ef,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}};function Ea(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function YO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let HO=class extends vr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new GO(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 oy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let qO=class extends vr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new Q0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Z0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oy(t),onStart:oy(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&Ye.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=Gs(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 Ca={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ay(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const qs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=ay(e,t.target.x),r=ay(e,t.target.y);return`${n}% ${r}%`}},KO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yr.parse(e);if(i.length>5)return r;const o=yr.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=u;const d=et(c,u,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),o(i)}};let XO=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;mP(ZO),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()})),Ca.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||Ye.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),uu.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 ly(e){const[t,n]=Kp(),r=I.useContext(Xc);return x.jsx(XO,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(bg),isPresent:t,safeToRemove:n})}const ZO={borderRadius:{...qs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:qs,borderTopRightRadius:qs,borderBottomLeftRadius:qs,borderBottomRightRadius:qs,boxShadow:KO};function JO(e,t,n){const r=St(e)?e:Ds(e);return r.start(Hu("",r,t,n)),r.animation}function QO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const eM=(e,t)=>e.depth-t.depth;let tM=class{constructor(){this.children=[],this.isDirty=!1}add(t){eu(this.children,t),this.isDirty=!0}remove(t){tu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eM),this.isDirty=!1,this.children.forEach(t)}};function nM(e,t){const n=An.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(pr(r),e(o-t))};return Ye.read(r,!0),()=>pr(r)}const cy=["TopLeft","TopRight","BottomLeft","BottomRight"],rM=cy.length,uy=e=>typeof e=="string"?parseFloat(e):e,fy=e=>typeof e=="number"||we.test(e);function iM(e,t,n,r,i,o){i?(e.opacity=et(0,n.opacity!==void 0?n.opacity:1,sM(r)),e.opacityExit=et(t.opacity!==void 0?t.opacity:1,0,oM(r))):o&&(e.opacity=et(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<rM;l++){const c=`border${cy[l]}Radius`;let u=dy(t,c),d=dy(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||fy(u)===fy(d)?(e[c]=Math.max(et(uy(u),uy(d),r),0),(On.test(d)||On.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=et(t.rotate||0,n.rotate||0,r))}function dy(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sM=hy(0,.5,Gg),oM=hy(.5,.95,Rt);function hy(e,t,n){return r=>r<e?0:r>t?1:n(Pi(e,t,r))}function my(e,t){e.min=t.min,e.max=t.max}function nn(e,t){my(e.x,t.x),my(e.y,t.y)}function py(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function gy(e,t,n,r,i){return e-=t,e=Ta(e,1/n,r),i!==void 0&&(e=Ta(e,1/i,r)),e}function aM(e,t=0,n=1,r=.5,i,o=e,l=e){if(On.test(t)&&(t=parseFloat(t),t=et(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=et(o.min,o.max,r);e===o&&(c-=t),e.min=gy(e.min,t,n,c,i),e.max=gy(e.max,t,n,c,i)}function yy(e,t,[n,r,i],o,l){aM(e,t[n],t[r],t[i],t.scale,o,l)}const lM=["x","scaleX","originX"],cM=["y","scaleY","originY"];function vy(e,t,n,r){yy(e.x,t,lM,n?n.x:void 0,r?r.x:void 0),yy(e.y,t,cM,n?n.y:void 0,r?r.y:void 0)}function by(e){return e.translate===0&&e.scale===1}function xy(e){return by(e.x)&&by(e.y)}function wy(e,t){return e.min===t.min&&e.max===t.max}function uM(e,t){return wy(e.x,t.x)&&wy(e.y,t.y)}function Sy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ty(e,t){return Sy(e.x,t.x)&&Sy(e.y,t.y)}function Ey(e){return Mt(e.x)/Mt(e.y)}function Cy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let fM=class{constructor(){this.members=[]}add(t){eu(this.members,t),t.scheduleRender()}remove(t){if(tu(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 dM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}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 tf=["","X","Y","Z"],hM={visibility:"hidden"},Py=1e3;let mM=0;function nf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ay(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fg(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&&Ay(r)}function Oy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=mM++,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(yM),this.nodes.forEach(SM),this.nodes.forEach(TM),this.nodes.forEach(vM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,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 tM)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new ru),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=QO(l),this.instance=l;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),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(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=nM(g,250),Ca.hasAnimatedSinceResize&&(Ca.hasAnimatedSinceResize=!1,this.nodes.forEach(_y))})}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 b=this.options.transition||h.getDefaultTransition()||OM,{onLayoutAnimationStart:P,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!Ty(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={...iu(b,"layout"),onPlay:P,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||_y(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,pr(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(EM),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ay(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(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(My);return}this.isUpdating||this.nodes.forEach(xM),this.isUpdating=!1,this.nodes.forEach(wM),this.nodes.forEach(pM),this.nodes.forEach(gM),this.clearAllSnapshots();const c=An.now();yt.delta=Gn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,cu.update.process(yt),cu.preRender.process(yt),cu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,uu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(bM),this.sharedNodes.forEach(CM)}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 l=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,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!xy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;l&&(c||Kr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),MM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(_M))){const{scroll:h}=this.root;h&&(Ri(u.x,h.offset.x),Ri(u.y,h.offset.y))}return u}removeElementScroll(l){var c;const u=at();if(nn(u,l),!((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,l),Ri(u.x,m.offset.x),Ri(u.y,m.offset.y))}return u}applyTransform(l,c=!1){const u=at();nn(u,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ni(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Kr(h.latestValues)&&Ni(u,h.latestValues)}return Kr(this.latestValues)&&Ni(u,this.latestValues),u}removeTransform(l){const c=at();nn(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Kr(d.latestValues))continue;Xu(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),vy(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Kr(this.latestValues)&&vy(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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(l=!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(!(l||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(),Hs(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(),DO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),Y0(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(),Hs(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Xu(this.parent.latestValues)||W0(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 l;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.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;$O(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():(py(this.prevProjectionDelta.x,this.projectionDelta.x),py(this.prevProjectionDelta.y,this.projectionDelta.y)),Ys(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!Cy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$i(),this.projectionDelta=$i(),this.projectionDeltaWithTransform=$i()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=$i();(!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,b=y!==S,P=this.getStack(),w=!P||P.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(AM));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;Iy(m.x,l.x,C),Iy(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Hs(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PM(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&uM(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=at()),nn(O,this.relativeTarget)),b&&(this.animationValues=h,iM(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(pr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Ca.hasAnimatedSinceResize=!0,this.currentAnimation=JO(0,Py,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Py),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&Ly(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=Mt(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}nn(c,u),Ni(c,h),Ys(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new fM),this.sharedNodes.get(l).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 l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&nf("z",l,d,this.animationValues);for(let h=0;h<tf.length;h++)nf(`rotate${tf[h]}`,l,d,this.animationValues),nf(`skew${tf[h]}`,l,d,this.animationValues);l.render();for(const h in d)l.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);l.scheduleRender()}getProjectionStyles(l){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hM;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=ba(l==null?void 0:l.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=ba(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Kr(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=dM(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 b in Rs){if(g[b]===void 0)continue;const{correct:P,applyTo:w,isCSSVariable:A}=Rs[b],O=d.transform==="none"?g[b]:P(g[b],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[b]=O:d[b]=O}return this.options.layoutId&&(d.pointerEvents=m===this?ba(l==null?void 0:l.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(My),this.root.sharedNodes.clear()}}}function pM(e){e.updateLayout()}function gM(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,l=n.source!==e.layout.source;o==="size"?tn(m=>{const g=l?n.measuredBox[m]:n.layoutBox[m],y=Mt(g);g.min=r[m].min,g.max=g.min+y}):Ly(o,n.layoutBox,r)&&tn(m=>{const g=l?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=$i();Ys(c,r,n.layoutBox);const u=$i();l?Ys(u,e.applyTransform(i,!0),n.measuredBox):Ys(u,r,n.layoutBox);const d=!xy(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();Hs(S,n.layoutBox,g.layoutBox);const b=at();Hs(b,r,y.layoutBox),Ty(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,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 yM(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 vM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function bM(e){e.clearSnapshot()}function My(e){e.clearMeasurements()}function xM(e){e.isLayoutDirty=!1}function wM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function _y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function TM(e){e.calcProjection()}function EM(e){e.resetSkewAndRotation()}function CM(e){e.removeLeadSnapshot()}function Iy(e,t,n){e.translate=et(t.translate,0,n),e.scale=et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Dy(e,t,n,r){e.min=et(t.min,n.min,r),e.max=et(t.max,n.max,r)}function PM(e,t,n,r){Dy(e.x,t.x,n.x,r),Dy(e.y,t.y,n.y,r)}function AM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const OM={duration:.45,ease:[.4,0,.1,1]},$y=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ry=$y("applewebkit/")&&!$y("chrome/")?Math.round:Rt;function Ny(e){e.min=Ry(e.min),e.max=Ry(e.max)}function MM(e){Ny(e.x),Ny(e.y)}function Ly(e,t,n){return e==="position"||e==="preserve-aspect"&&!IO(Ey(t),Ey(n),.2)}function _M(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const IM=Oy({attachResizeListener:(e,t)=>Ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rf={current:void 0},ky=Oy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rf.current){const e=new IM({});e.mount(window),e.setOptions({layoutScroll:!0}),rf.current=e}return rf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),DM={pan:{Feature:qO},drag:{Feature:HO,ProjectionNode:ky,MeasureLayout:ly}};function Fy(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,zs(t)))}let $M=class extends vr{mount(){const{current:t}=this.node;t&&(this.unmount=zC(t,(n,r)=>(Fy(this.node,r,"Start"),i=>Fy(this.node,i,"End"))))}unmount(){}},RM=class extends vr{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=Bs(Ws(this.node.current,"focus",()=>this.onFocus()),Ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function jy(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,zs(t)))}let NM=class extends vr{mount(){const{current:t}=this.node;t&&(this.unmount=qC(t,(n,r)=>(jy(this.node,r,"Start"),(i,{success:o})=>jy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const sf=new WeakMap,of=new WeakMap,LM=e=>{const t=sf.get(e.target);t&&t(e)},kM=e=>{e.forEach(LM)};function FM({root:e,...t}){const n=e||document;of.has(n)||of.set(n,{});const r=of.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(kM,{root:e,...t})),r[i]}function jM(e,t,n){const r=FM(t);return sf.set(e,n),r.observe(e),()=>{sf.delete(e),r.unobserve(e)}}const VM={some:0,all:1};let BM=class extends vr{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,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:VM[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 jM(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UM(t,n))&&this.startObserver()}unmount(){}};function UM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WM={inView:{Feature:BM},tap:{Feature:NM},focus:{Feature:RM},hover:{Feature:$M}},zM={layout:{ProjectionNode:ky,MeasureLayout:ly}},af={current:null},Vy={current:!1};function GM(){if(Vy.current=!0,!!Jc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>af.current=e.matches;e.addListener(t),t()}else af.current=!1}const YM=[...d0,Tt,yr],HM=e=>YM.find(f0(e)),qM=new WeakMap;function KM(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"&&ua(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,Ds(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,Ds(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const By=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let XM=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vu,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=An.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=l;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=ya(n),this.isVariantNode=gg(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,qM.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)),Vy.current||GM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:af.current,process.env.NODE_ENV!=="production"&&ua(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(),pr(this.notifyUpdate),pr(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=zr.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 l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),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 Ai){const n=Ai[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<By.length;r++){const i=By[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=KM(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=Ds(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"&&(c0(i)||Hg(i))?i=parseFloat(i):!HM(i)&&yr.test(n)&&(i=t0(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 l=Eu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[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 ru),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Uy=class extends XM{constructor(){super(...arguments),this.KeyframeResolver=m0}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 ZM(e){return window.getComputedStyle(e)}let JM=class extends Uy{constructor(){super(...arguments),this.type="html",this.renderInstance=Dg}readValueFromInstance(t,n){if(zr.has(n))return fA(t,n);{const r=ZM(t),i=(gu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return X0(t,n)}build(t,n,r){bu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pu(t,n,r)}},QM=class extends Uy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Ig(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(zr.has(n)){const r=e0(n);return r&&r.default||0}return n=$g.has(n)?n:pu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Ng(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Su(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Rg(t,n,r,i)}mount(t){this.isSVGTag=Tu(t.tagName),super.mount(t)}};const e_=(e,t)=>wu(e)?new QM(t):new JM(t,{allowProjection:e!==I.Fragment}),t_=FP({...TO,...WM,...DM,...zM},e_),lf=tP(t_),n_=500,cf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,l]=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=wC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=AC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=bC;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(()=>{l(!1)},r);return()=>clearTimeout(g)},[r]),I.useEffect(()=>{if(!o){const g=setTimeout(i,n_);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(DC,{onExitComplete:i,children:o&&x.jsx(lf.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(De,{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:()=>l(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:x.jsx(De,{icon:PC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},Wy=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[l,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(cf,{content:l,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.
|
|
@@ -629,26 +629,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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 HI=Xs.exports,uv;function qI(){return uv||(uv=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.",l="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,b=2,P=1,w=2,A=4,O=8,D=16,C=32,L=64,V=128,F=256,Y=512,te=30,ie="...",ve=800,ye=16,fe=1,oe=2,X=3,K=1/0,H=9007199254740991,J=17976931348623157e292,_=NaN,k=4294967295,Z=k-1,Q=k>>>1,le=[["ary",V],["bind",P],["bindKey",w],["curry",O],["curryRight",D],["flip",Y],["partial",C],["partialRight",L],["rearg",F]],G="[object Arguments]",se="[object Array]",de="[object AsyncFunction]",re="[object Boolean]",me="[object Date]",Ce="[object DOMException]",Ue="[object Error]",ee="[object Function]",pe="[object GeneratorFunction]",Le="[object Map]",ft="[object Number]",li="[object Null]",dt="[object Object]",hl="[object Promise]",ml="[object Proxy]",ci="[object RegExp]",qt="[object Set]",yn="[object String]",ui="[object Symbol]",pl="[object Undefined]",Ir="[object WeakMap]",gl="[object WeakSet]",be="[object ArrayBuffer]",Je="[object DataView]",Pt="[object Float32Array]",vn="[object Float64Array]",Qn="[object Int8Array]",Qd="[object Int16Array]",eh="[object Int32Array]",th="[object Uint8Array]",nh="[object Uint8ClampedArray]",rh="[object Uint16Array]",ih="[object Uint32Array]",jL=/\b__p \+= '';/g,VL=/\b(__p \+=) '' \+/g,BL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bw=/&(?:amp|lt|gt|quot|#39);/g,xw=/[&<>"']/g,UL=RegExp(bw.source),WL=RegExp(xw.source),zL=/<%-([\s\S]+?)%>/g,GL=/<%([\s\S]+?)%>/g,ww=/<%=([\s\S]+?)%>/g,YL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HL=/^\w*$/,qL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sh=/[\\^$.*+?()[\]{}|]/g,KL=RegExp(sh.source),oh=/^\s+/,XL=/\s/,ZL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,JL=/\{\n\/\* \[wrapped with (.+)\] \*/,QL=/,? & /,e3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,t3=/[()=,{}\[\]\/\s]/,n3=/\\(\\)?/g,r3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sw=/\w*$/,i3=/^[-+]0x[0-9a-f]+$/i,s3=/^0b[01]+$/i,o3=/^\[object .+?Constructor\]$/,a3=/^0o[0-7]+$/i,l3=/^(?:0|[1-9]\d*)$/,c3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yl=/($^)/,u3=/['\n\r\u2028\u2029\\]/g,vl="\\ud800-\\udfff",f3="\\u0300-\\u036f",d3="\\ufe20-\\ufe2f",h3="\\u20d0-\\u20ff",Tw=f3+d3+h3,Ew="\\u2700-\\u27bf",Cw="a-z\\xdf-\\xf6\\xf8-\\xff",m3="\\xac\\xb1\\xd7\\xf7",p3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g3="\\u2000-\\u206f",y3=" \\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",Pw="A-Z\\xc0-\\xd6\\xd8-\\xde",Aw="\\ufe0e\\ufe0f",Ow=m3+p3+g3+y3,ah="['’]",v3="["+vl+"]",Mw="["+Ow+"]",bl="["+Tw+"]",_w="\\d+",b3="["+Ew+"]",Iw="["+Cw+"]",Dw="[^"+vl+Ow+_w+Ew+Cw+Pw+"]",lh="\\ud83c[\\udffb-\\udfff]",x3="(?:"+bl+"|"+lh+")",$w="[^"+vl+"]",ch="(?:\\ud83c[\\udde6-\\uddff]){2}",uh="[\\ud800-\\udbff][\\udc00-\\udfff]",as="["+Pw+"]",Rw="\\u200d",Nw="(?:"+Iw+"|"+Dw+")",w3="(?:"+as+"|"+Dw+")",Lw="(?:"+ah+"(?:d|ll|m|re|s|t|ve))?",kw="(?:"+ah+"(?:D|LL|M|RE|S|T|VE))?",Fw=x3+"?",jw="["+Aw+"]?",S3="(?:"+Rw+"(?:"+[$w,ch,uh].join("|")+")"+jw+Fw+")*",T3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",E3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vw=jw+Fw+S3,C3="(?:"+[b3,ch,uh].join("|")+")"+Vw,P3="(?:"+[$w+bl+"?",bl,ch,uh,v3].join("|")+")",A3=RegExp(ah,"g"),O3=RegExp(bl,"g"),fh=RegExp(lh+"(?="+lh+")|"+P3+Vw,"g"),M3=RegExp([as+"?"+Iw+"+"+Lw+"(?="+[Mw,as,"$"].join("|")+")",w3+"+"+kw+"(?="+[Mw,as+Nw,"$"].join("|")+")",as+"?"+Nw+"+"+Lw,as+"+"+kw,E3,T3,_w,C3].join("|"),"g"),_3=RegExp("["+Rw+vl+Tw+Aw+"]"),I3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,D3=["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"],$3=-1,Xe={};Xe[Pt]=Xe[vn]=Xe[Qn]=Xe[Qd]=Xe[eh]=Xe[th]=Xe[nh]=Xe[rh]=Xe[ih]=!0,Xe[G]=Xe[se]=Xe[be]=Xe[re]=Xe[Je]=Xe[me]=Xe[Ue]=Xe[ee]=Xe[Le]=Xe[ft]=Xe[dt]=Xe[ci]=Xe[qt]=Xe[yn]=Xe[Ir]=!1;var qe={};qe[G]=qe[se]=qe[be]=qe[Je]=qe[re]=qe[me]=qe[Pt]=qe[vn]=qe[Qn]=qe[Qd]=qe[eh]=qe[Le]=qe[ft]=qe[dt]=qe[ci]=qe[qt]=qe[yn]=qe[ui]=qe[th]=qe[nh]=qe[rh]=qe[ih]=!0,qe[Ue]=qe[ee]=qe[Ir]=!1;var R3={À:"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"},N3={"&":"&","<":"<",">":">",'"':""","'":"'"},L3={"&":"&","<":"<",">":">",""":'"',"'":"'"},k3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},F3=parseFloat,j3=parseInt,Bw=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo,V3=typeof self=="object"&&self&&self.Object===Object&&self,bt=Bw||V3||Function("return this")(),dh=t&&!t.nodeType&&t,fi=dh&&!0&&e&&!e.nodeType&&e,Uw=fi&&fi.exports===dh,hh=Uw&&Bw.process,an=function(){try{var R=fi&&fi.require&&fi.require("util").types;return R||hh&&hh.binding&&hh.binding("util")}catch{}}(),Ww=an&&an.isArrayBuffer,zw=an&&an.isDate,Gw=an&&an.isMap,Yw=an&&an.isRegExp,Hw=an&&an.isSet,qw=an&&an.isTypedArray;function Kt(R,B,j){switch(j.length){case 0:return R.call(B);case 1:return R.call(B,j[0]);case 2:return R.call(B,j[0],j[1]);case 3:return R.call(B,j[0],j[1],j[2])}return R.apply(B,j)}function B3(R,B,j,ue){for(var Pe=-1,ke=R==null?0:R.length;++Pe<ke;){var ht=R[Pe];B(ue,ht,j(ht),R)}return ue}function ln(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue&&B(R[j],j,R)!==!1;);return R}function U3(R,B){for(var j=R==null?0:R.length;j--&&B(R[j],j,R)!==!1;);return R}function Kw(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue;)if(!B(R[j],j,R))return!1;return!0}function Dr(R,B){for(var j=-1,ue=R==null?0:R.length,Pe=0,ke=[];++j<ue;){var ht=R[j];B(ht,j,R)&&(ke[Pe++]=ht)}return ke}function xl(R,B){var j=R==null?0:R.length;return!!j&&ls(R,B,0)>-1}function mh(R,B,j){for(var ue=-1,Pe=R==null?0:R.length;++ue<Pe;)if(j(B,R[ue]))return!0;return!1}function Qe(R,B){for(var j=-1,ue=R==null?0:R.length,Pe=Array(ue);++j<ue;)Pe[j]=B(R[j],j,R);return Pe}function $r(R,B){for(var j=-1,ue=B.length,Pe=R.length;++j<ue;)R[Pe+j]=B[j];return R}function ph(R,B,j,ue){var Pe=-1,ke=R==null?0:R.length;for(ue&&ke&&(j=R[++Pe]);++Pe<ke;)j=B(j,R[Pe],Pe,R);return j}function W3(R,B,j,ue){var Pe=R==null?0:R.length;for(ue&&Pe&&(j=R[--Pe]);Pe--;)j=B(j,R[Pe],Pe,R);return j}function gh(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue;)if(B(R[j],j,R))return!0;return!1}var z3=yh("length");function G3(R){return R.split("")}function Y3(R){return R.match(e3)||[]}function Xw(R,B,j){var ue;return j(R,function(Pe,ke,ht){if(B(Pe,ke,ht))return ue=ke,!1}),ue}function wl(R,B,j,ue){for(var Pe=R.length,ke=j+(ue?1:-1);ue?ke--:++ke<Pe;)if(B(R[ke],ke,R))return ke;return-1}function ls(R,B,j){return B===B?ik(R,B,j):wl(R,Zw,j)}function H3(R,B,j,ue){for(var Pe=j-1,ke=R.length;++Pe<ke;)if(ue(R[Pe],B))return Pe;return-1}function Zw(R){return R!==R}function Jw(R,B){var j=R==null?0:R.length;return j?bh(R,B)/j:_}function yh(R){return function(B){return B==null?n:B[R]}}function vh(R){return function(B){return R==null?n:R[B]}}function Qw(R,B,j,ue,Pe){return Pe(R,function(ke,ht,Ge){j=ue?(ue=!1,ke):B(j,ke,ht,Ge)}),j}function q3(R,B){var j=R.length;for(R.sort(B);j--;)R[j]=R[j].value;return R}function bh(R,B){for(var j,ue=-1,Pe=R.length;++ue<Pe;){var ke=B(R[ue]);ke!==n&&(j=j===n?ke:j+ke)}return j}function xh(R,B){for(var j=-1,ue=Array(R);++j<R;)ue[j]=B(j);return ue}function K3(R,B){return Qe(B,function(j){return[j,R[j]]})}function eS(R){return R&&R.slice(0,iS(R)+1).replace(oh,"")}function Xt(R){return function(B){return R(B)}}function wh(R,B){return Qe(B,function(j){return R[j]})}function Io(R,B){return R.has(B)}function tS(R,B){for(var j=-1,ue=R.length;++j<ue&&ls(B,R[j],0)>-1;);return j}function nS(R,B){for(var j=R.length;j--&&ls(B,R[j],0)>-1;);return j}function X3(R,B){for(var j=R.length,ue=0;j--;)R[j]===B&&++ue;return ue}var Z3=vh(R3),J3=vh(N3);function Q3(R){return"\\"+k3[R]}function ek(R,B){return R==null?n:R[B]}function cs(R){return _3.test(R)}function tk(R){return I3.test(R)}function nk(R){for(var B,j=[];!(B=R.next()).done;)j.push(B.value);return j}function Sh(R){var B=-1,j=Array(R.size);return R.forEach(function(ue,Pe){j[++B]=[Pe,ue]}),j}function rS(R,B){return function(j){return R(B(j))}}function Rr(R,B){for(var j=-1,ue=R.length,Pe=0,ke=[];++j<ue;){var ht=R[j];(ht===B||ht===h)&&(R[j]=h,ke[Pe++]=j)}return ke}function Sl(R){var B=-1,j=Array(R.size);return R.forEach(function(ue){j[++B]=ue}),j}function rk(R){var B=-1,j=Array(R.size);return R.forEach(function(ue){j[++B]=[ue,ue]}),j}function ik(R,B,j){for(var ue=j-1,Pe=R.length;++ue<Pe;)if(R[ue]===B)return ue;return-1}function sk(R,B,j){for(var ue=j+1;ue--;)if(R[ue]===B)return ue;return ue}function us(R){return cs(R)?ak(R):z3(R)}function bn(R){return cs(R)?lk(R):G3(R)}function iS(R){for(var B=R.length;B--&&XL.test(R.charAt(B)););return B}var ok=vh(L3);function ak(R){for(var B=fh.lastIndex=0;fh.test(R);)++B;return B}function lk(R){return R.match(fh)||[]}function ck(R){return R.match(M3)||[]}var uk=function R(B){B=B==null?bt:fs.defaults(bt.Object(),B,fs.pick(bt,D3));var j=B.Array,ue=B.Date,Pe=B.Error,ke=B.Function,ht=B.Math,Ge=B.Object,Th=B.RegExp,fk=B.String,cn=B.TypeError,Tl=j.prototype,dk=ke.prototype,ds=Ge.prototype,El=B["__core-js_shared__"],Cl=dk.toString,We=ds.hasOwnProperty,hk=0,sS=function(){var s=/[^.]+$/.exec(El&&El.keys&&El.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Pl=ds.toString,mk=Cl.call(Ge),pk=bt._,gk=Th("^"+Cl.call(We).replace(sh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=Uw?B.Buffer:n,Nr=B.Symbol,Ol=B.Uint8Array,oS=Al?Al.allocUnsafe:n,Ml=rS(Ge.getPrototypeOf,Ge),aS=Ge.create,lS=ds.propertyIsEnumerable,_l=Tl.splice,cS=Nr?Nr.isConcatSpreadable:n,Do=Nr?Nr.iterator:n,di=Nr?Nr.toStringTag:n,Il=function(){try{var s=yi(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),yk=B.clearTimeout!==bt.clearTimeout&&B.clearTimeout,vk=ue&&ue.now!==bt.Date.now&&ue.now,bk=B.setTimeout!==bt.setTimeout&&B.setTimeout,Dl=ht.ceil,$l=ht.floor,Eh=Ge.getOwnPropertySymbols,xk=Al?Al.isBuffer:n,uS=B.isFinite,wk=Tl.join,Sk=rS(Ge.keys,Ge),mt=ht.max,At=ht.min,Tk=ue.now,Ek=B.parseInt,fS=ht.random,Ck=Tl.reverse,Ch=yi(B,"DataView"),$o=yi(B,"Map"),Ph=yi(B,"Promise"),hs=yi(B,"Set"),Ro=yi(B,"WeakMap"),No=yi(Ge,"create"),Rl=Ro&&new Ro,ms={},Pk=vi(Ch),Ak=vi($o),Ok=vi(Ph),Mk=vi(hs),_k=vi(Ro),Nl=Nr?Nr.prototype:n,Lo=Nl?Nl.valueOf:n,dS=Nl?Nl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof un)return s;if(We.call(s,"__wrapped__"))return h2(s)}return new un(s)}var ps=function(){function s(){}return function(a){if(!it(a))return{};if(aS)return aS(a);s.prototype=a;var f=new s;return s.prototype=n,f}}();function Ll(){}function un(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}T.templateSettings={escape:zL,evaluate:GL,interpolate:ww,variable:"",imports:{_:T}},T.prototype=Ll.prototype,T.prototype.constructor=T,un.prototype=ps(Ll.prototype),un.prototype.constructor=un;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function Ik(){var s=new Re(this.__wrapped__);return s.__actions__=Ft(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ft(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ft(this.__views__),s}function Dk(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $k(){var s=this.__wrapped__.value(),a=this.__dir__,f=Ae(s),p=a<0,v=f?s.length:0,E=GF(0,v,this.__views__),M=E.start,$=E.end,N=$-M,U=p?$:M-1,W=this.__iteratees__,z=W.length,ne=0,he=At(N,this.__takeCount__);if(!f||!p&&v==N&&he==N)return LS(s,this.__actions__);var Te=[];e:for(;N--&&ne<he;){U+=a;for(var Me=-1,Ee=s[U];++Me<z;){var $e=W[Me],Ne=$e.iteratee,Qt=$e.type,$t=Ne(Ee);if(Qt==oe)Ee=$t;else if(!$t){if(Qt==fe)continue e;break e}}Te[ne++]=Ee}return Te}Re.prototype=ps(Ll.prototype),Re.prototype.constructor=Re;function hi(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function Rk(){this.__data__=No?No(null):{},this.size=0}function Nk(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function Lk(s){var a=this.__data__;if(No){var f=a[s];return f===u?n:f}return We.call(a,s)?a[s]:n}function kk(s){var a=this.__data__;return No?a[s]!==n:We.call(a,s)}function Fk(s,a){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=No&&a===n?u:a,this}hi.prototype.clear=Rk,hi.prototype.delete=Nk,hi.prototype.get=Lk,hi.prototype.has=kk,hi.prototype.set=Fk;function er(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function jk(){this.__data__=[],this.size=0}function Vk(s){var a=this.__data__,f=kl(a,s);if(f<0)return!1;var p=a.length-1;return f==p?a.pop():_l.call(a,f,1),--this.size,!0}function Bk(s){var a=this.__data__,f=kl(a,s);return f<0?n:a[f][1]}function Uk(s){return kl(this.__data__,s)>-1}function Wk(s,a){var f=this.__data__,p=kl(f,s);return p<0?(++this.size,f.push([s,a])):f[p][1]=a,this}er.prototype.clear=jk,er.prototype.delete=Vk,er.prototype.get=Bk,er.prototype.has=Uk,er.prototype.set=Wk;function tr(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function zk(){this.size=0,this.__data__={hash:new hi,map:new($o||er),string:new hi}}function Gk(s){var a=Kl(this,s).delete(s);return this.size-=a?1:0,a}function Yk(s){return Kl(this,s).get(s)}function Hk(s){return Kl(this,s).has(s)}function qk(s,a){var f=Kl(this,s),p=f.size;return f.set(s,a),this.size+=f.size==p?0:1,this}tr.prototype.clear=zk,tr.prototype.delete=Gk,tr.prototype.get=Yk,tr.prototype.has=Hk,tr.prototype.set=qk;function mi(s){var a=-1,f=s==null?0:s.length;for(this.__data__=new tr;++a<f;)this.add(s[a])}function Kk(s){return this.__data__.set(s,u),this}function Xk(s){return this.__data__.has(s)}mi.prototype.add=mi.prototype.push=Kk,mi.prototype.has=Xk;function xn(s){var a=this.__data__=new er(s);this.size=a.size}function Zk(){this.__data__=new er,this.size=0}function Jk(s){var a=this.__data__,f=a.delete(s);return this.size=a.size,f}function Qk(s){return this.__data__.get(s)}function eF(s){return this.__data__.has(s)}function tF(s,a){var f=this.__data__;if(f instanceof er){var p=f.__data__;if(!$o||p.length<i-1)return p.push([s,a]),this.size=++f.size,this;f=this.__data__=new tr(p)}return f.set(s,a),this.size=f.size,this}xn.prototype.clear=Zk,xn.prototype.delete=Jk,xn.prototype.get=Qk,xn.prototype.has=eF,xn.prototype.set=tF;function hS(s,a){var f=Ae(s),p=!f&&bi(s),v=!f&&!p&&Vr(s),E=!f&&!p&&!v&&bs(s),M=f||p||v||E,$=M?xh(s.length,fk):[],N=$.length;for(var U in s)(a||We.call(s,U))&&!(M&&(U=="length"||v&&(U=="offset"||U=="parent")||E&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||sr(U,N)))&&$.push(U);return $}function mS(s){var a=s.length;return a?s[kh(0,a-1)]:n}function nF(s,a){return Xl(Ft(s),pi(a,0,s.length))}function rF(s){return Xl(Ft(s))}function Ah(s,a,f){(f!==n&&!wn(s[a],f)||f===n&&!(a in s))&&nr(s,a,f)}function ko(s,a,f){var p=s[a];(!(We.call(s,a)&&wn(p,f))||f===n&&!(a in s))&&nr(s,a,f)}function kl(s,a){for(var f=s.length;f--;)if(wn(s[f][0],a))return f;return-1}function iF(s,a,f,p){return Lr(s,function(v,E,M){a(p,v,f(v),M)}),p}function pS(s,a){return s&&jn(a,gt(a),s)}function sF(s,a){return s&&jn(a,Vt(a),s)}function nr(s,a,f){a=="__proto__"&&Il?Il(s,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[a]=f}function Oh(s,a){for(var f=-1,p=a.length,v=j(p),E=s==null;++f<p;)v[f]=E?n:lm(s,a[f]);return v}function pi(s,a,f){return s===s&&(f!==n&&(s=s<=f?s:f),a!==n&&(s=s>=a?s:a)),s}function fn(s,a,f,p,v,E){var M,$=a&m,N=a&g,U=a&y;if(f&&(M=v?f(s,p,v,E):f(s)),M!==n)return M;if(!it(s))return s;var W=Ae(s);if(W){if(M=HF(s),!$)return Ft(s,M)}else{var z=Ot(s),ne=z==ee||z==pe;if(Vr(s))return jS(s,$);if(z==dt||z==G||ne&&!v){if(M=N||ne?{}:i2(s),!$)return N?LF(s,sF(M,s)):NF(s,pS(M,s))}else{if(!qe[z])return v?s:{};M=qF(s,z,$)}}E||(E=new xn);var he=E.get(s);if(he)return he;E.set(s,M),$2(s)?s.forEach(function(Ee){M.add(fn(Ee,a,f,Ee,s,E))}):I2(s)&&s.forEach(function(Ee,$e){M.set($e,fn(Ee,a,f,$e,s,E))});var Te=U?N?qh:Hh:N?Vt:gt,Me=W?n:Te(s);return ln(Me||s,function(Ee,$e){Me&&($e=Ee,Ee=s[$e]),ko(M,$e,fn(Ee,a,f,$e,s,E))}),M}function oF(s){var a=gt(s);return function(f){return gS(f,s,a)}}function gS(s,a,f){var p=f.length;if(s==null)return!p;for(s=Ge(s);p--;){var v=f[p],E=a[v],M=s[v];if(M===n&&!(v in s)||!E(M))return!1}return!0}function yS(s,a,f){if(typeof s!="function")throw new cn(l);return zo(function(){s.apply(n,f)},a)}function Fo(s,a,f,p){var v=-1,E=xl,M=!0,$=s.length,N=[],U=a.length;if(!$)return N;f&&(a=Qe(a,Xt(f))),p?(E=mh,M=!1):a.length>=i&&(E=Io,M=!1,a=new mi(a));e:for(;++v<$;){var W=s[v],z=f==null?W:f(W);if(W=p||W!==0?W:0,M&&z===z){for(var ne=U;ne--;)if(a[ne]===z)continue e;N.push(W)}else E(a,z,p)||N.push(W)}return N}var Lr=zS(Fn),vS=zS(_h,!0);function aF(s,a){var f=!0;return Lr(s,function(p,v,E){return f=!!a(p,v,E),f}),f}function Fl(s,a,f){for(var p=-1,v=s.length;++p<v;){var E=s[p],M=a(E);if(M!=null&&($===n?M===M&&!Jt(M):f(M,$)))var $=M,N=E}return N}function lF(s,a,f,p){var v=s.length;for(f=Oe(f),f<0&&(f=-f>v?0:v+f),p=p===n||p>v?v:Oe(p),p<0&&(p+=v),p=f>p?0:N2(p);f<p;)s[f++]=a;return s}function bS(s,a){var f=[];return Lr(s,function(p,v,E){a(p,v,E)&&f.push(p)}),f}function xt(s,a,f,p,v){var E=-1,M=s.length;for(f||(f=XF),v||(v=[]);++E<M;){var $=s[E];a>0&&f($)?a>1?xt($,a-1,f,p,v):$r(v,$):p||(v[v.length]=$)}return v}var Mh=GS(),xS=GS(!0);function Fn(s,a){return s&&Mh(s,a,gt)}function _h(s,a){return s&&xS(s,a,gt)}function jl(s,a){return Dr(a,function(f){return or(s[f])})}function gi(s,a){a=Fr(a,s);for(var f=0,p=a.length;s!=null&&f<p;)s=s[Vn(a[f++])];return f&&f==p?s:n}function wS(s,a,f){var p=a(s);return Ae(s)?p:$r(p,f(s))}function It(s){return s==null?s===n?pl:li:di&&di in Ge(s)?zF(s):rj(s)}function Ih(s,a){return s>a}function cF(s,a){return s!=null&&We.call(s,a)}function uF(s,a){return s!=null&&a in Ge(s)}function fF(s,a,f){return s>=At(a,f)&&s<mt(a,f)}function Dh(s,a,f){for(var p=f?mh:xl,v=s[0].length,E=s.length,M=E,$=j(E),N=1/0,U=[];M--;){var W=s[M];M&&a&&(W=Qe(W,Xt(a))),N=At(W.length,N),$[M]=!f&&(a||v>=120&&W.length>=120)?new mi(M&&W):n}W=s[0];var z=-1,ne=$[0];e:for(;++z<v&&U.length<N;){var he=W[z],Te=a?a(he):he;if(he=f||he!==0?he:0,!(ne?Io(ne,Te):p(U,Te,f))){for(M=E;--M;){var Me=$[M];if(!(Me?Io(Me,Te):p(s[M],Te,f)))continue e}ne&&ne.push(Te),U.push(he)}}return U}function dF(s,a,f,p){return Fn(s,function(v,E,M){a(p,f(v),E,M)}),p}function jo(s,a,f){a=Fr(a,s),s=l2(s,a);var p=s==null?s:s[Vn(hn(a))];return p==null?n:Kt(p,s,f)}function SS(s){return ot(s)&&It(s)==G}function hF(s){return ot(s)&&It(s)==be}function mF(s){return ot(s)&&It(s)==me}function Vo(s,a,f,p,v){return s===a?!0:s==null||a==null||!ot(s)&&!ot(a)?s!==s&&a!==a:pF(s,a,f,p,Vo,v)}function pF(s,a,f,p,v,E){var M=Ae(s),$=Ae(a),N=M?se:Ot(s),U=$?se:Ot(a);N=N==G?dt:N,U=U==G?dt:U;var W=N==dt,z=U==dt,ne=N==U;if(ne&&Vr(s)){if(!Vr(a))return!1;M=!0,W=!1}if(ne&&!W)return E||(E=new xn),M||bs(s)?t2(s,a,f,p,v,E):UF(s,a,N,f,p,v,E);if(!(f&S)){var he=W&&We.call(s,"__wrapped__"),Te=z&&We.call(a,"__wrapped__");if(he||Te){var Me=he?s.value():s,Ee=Te?a.value():a;return E||(E=new xn),v(Me,Ee,f,p,E)}}return ne?(E||(E=new xn),WF(s,a,f,p,v,E)):!1}function gF(s){return ot(s)&&Ot(s)==Le}function $h(s,a,f,p){var v=f.length,E=v,M=!p;if(s==null)return!E;for(s=Ge(s);v--;){var $=f[v];if(M&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++v<E;){$=f[v];var N=$[0],U=s[N],W=$[1];if(M&&$[2]){if(U===n&&!(N in s))return!1}else{var z=new xn;if(p)var ne=p(U,W,N,s,a,z);if(!(ne===n?Vo(W,U,S|b,p,z):ne))return!1}}return!0}function TS(s){if(!it(s)||JF(s))return!1;var a=or(s)?gk:o3;return a.test(vi(s))}function yF(s){return ot(s)&&It(s)==ci}function vF(s){return ot(s)&&Ot(s)==qt}function bF(s){return ot(s)&&nc(s.length)&&!!Xe[It(s)]}function ES(s){return typeof s=="function"?s:s==null?Bt:typeof s=="object"?Ae(s)?AS(s[0],s[1]):PS(s):Y2(s)}function Rh(s){if(!Wo(s))return Sk(s);var a=[];for(var f in Ge(s))We.call(s,f)&&f!="constructor"&&a.push(f);return a}function xF(s){if(!it(s))return nj(s);var a=Wo(s),f=[];for(var p in s)p=="constructor"&&(a||!We.call(s,p))||f.push(p);return f}function Nh(s,a){return s<a}function CS(s,a){var f=-1,p=jt(s)?j(s.length):[];return Lr(s,function(v,E,M){p[++f]=a(v,E,M)}),p}function PS(s){var a=Xh(s);return a.length==1&&a[0][2]?o2(a[0][0],a[0][1]):function(f){return f===s||$h(f,s,a)}}function AS(s,a){return Jh(s)&&s2(a)?o2(Vn(s),a):function(f){var p=lm(f,s);return p===n&&p===a?cm(f,s):Vo(a,p,S|b)}}function Vl(s,a,f,p,v){s!==a&&Mh(a,function(E,M){if(v||(v=new xn),it(E))wF(s,a,M,f,Vl,p,v);else{var $=p?p(em(s,M),E,M+"",s,a,v):n;$===n&&($=E),Ah(s,M,$)}},Vt)}function wF(s,a,f,p,v,E,M){var $=em(s,f),N=em(a,f),U=M.get(N);if(U){Ah(s,f,U);return}var W=E?E($,N,f+"",s,a,M):n,z=W===n;if(z){var ne=Ae(N),he=!ne&&Vr(N),Te=!ne&&!he&&bs(N);W=N,ne||he||Te?Ae($)?W=$:ct($)?W=Ft($):he?(z=!1,W=jS(N,!0)):Te?(z=!1,W=VS(N,!0)):W=[]:Go(N)||bi(N)?(W=$,bi($)?W=L2($):(!it($)||or($))&&(W=i2(N))):z=!1}z&&(M.set(N,W),v(W,N,p,E,M),M.delete(N)),Ah(s,f,W)}function OS(s,a){var f=s.length;if(f)return a+=a<0?f:0,sr(a,f)?s[a]:n}function MS(s,a,f){a.length?a=Qe(a,function(E){return Ae(E)?function(M){return gi(M,E.length===1?E[0]:E)}:E}):a=[Bt];var p=-1;a=Qe(a,Xt(xe()));var v=CS(s,function(E,M,$){var N=Qe(a,function(U){return U(E)});return{criteria:N,index:++p,value:E}});return q3(v,function(E,M){return RF(E,M,f)})}function SF(s,a){return _S(s,a,function(f,p){return cm(s,p)})}function _S(s,a,f){for(var p=-1,v=a.length,E={};++p<v;){var M=a[p],$=gi(s,M);f($,M)&&Bo(E,Fr(M,s),$)}return E}function TF(s){return function(a){return gi(a,s)}}function Lh(s,a,f,p){var v=p?H3:ls,E=-1,M=a.length,$=s;for(s===a&&(a=Ft(a)),f&&($=Qe(s,Xt(f)));++E<M;)for(var N=0,U=a[E],W=f?f(U):U;(N=v($,W,N,p))>-1;)$!==s&&_l.call($,N,1),_l.call(s,N,1);return s}function IS(s,a){for(var f=s?a.length:0,p=f-1;f--;){var v=a[f];if(f==p||v!==E){var E=v;sr(v)?_l.call(s,v,1):Vh(s,v)}}return s}function kh(s,a){return s+$l(fS()*(a-s+1))}function EF(s,a,f,p){for(var v=-1,E=mt(Dl((a-s)/(f||1)),0),M=j(E);E--;)M[p?E:++v]=s,s+=f;return M}function Fh(s,a){var f="";if(!s||a<1||a>H)return f;do a%2&&(f+=s),a=$l(a/2),a&&(s+=s);while(a);return f}function _e(s,a){return tm(a2(s,a,Bt),s+"")}function CF(s){return mS(xs(s))}function PF(s,a){var f=xs(s);return Xl(f,pi(a,0,f.length))}function Bo(s,a,f,p){if(!it(s))return s;a=Fr(a,s);for(var v=-1,E=a.length,M=E-1,$=s;$!=null&&++v<E;){var N=Vn(a[v]),U=f;if(N==="__proto__"||N==="constructor"||N==="prototype")return s;if(v!=M){var W=$[N];U=p?p(W,N,$):n,U===n&&(U=it(W)?W:sr(a[v+1])?[]:{})}ko($,N,U),$=$[N]}return s}var DS=Rl?function(s,a){return Rl.set(s,a),s}:Bt,AF=Il?function(s,a){return Il(s,"toString",{configurable:!0,enumerable:!1,value:fm(a),writable:!0})}:Bt;function OF(s){return Xl(xs(s))}function dn(s,a,f){var p=-1,v=s.length;a<0&&(a=-a>v?0:v+a),f=f>v?v:f,f<0&&(f+=v),v=a>f?0:f-a>>>0,a>>>=0;for(var E=j(v);++p<v;)E[p]=s[p+a];return E}function MF(s,a){var f;return Lr(s,function(p,v,E){return f=a(p,v,E),!f}),!!f}function Bl(s,a,f){var p=0,v=s==null?p:s.length;if(typeof a=="number"&&a===a&&v<=Q){for(;p<v;){var E=p+v>>>1,M=s[E];M!==null&&!Jt(M)&&(f?M<=a:M<a)?p=E+1:v=E}return v}return jh(s,a,Bt,f)}function jh(s,a,f,p){var v=0,E=s==null?0:s.length;if(E===0)return 0;a=f(a);for(var M=a!==a,$=a===null,N=Jt(a),U=a===n;v<E;){var W=$l((v+E)/2),z=f(s[W]),ne=z!==n,he=z===null,Te=z===z,Me=Jt(z);if(M)var Ee=p||Te;else U?Ee=Te&&(p||ne):$?Ee=Te&&ne&&(p||!he):N?Ee=Te&&ne&&!he&&(p||!Me):he||Me?Ee=!1:Ee=p?z<=a:z<a;Ee?v=W+1:E=W}return At(E,Z)}function $S(s,a){for(var f=-1,p=s.length,v=0,E=[];++f<p;){var M=s[f],$=a?a(M):M;if(!f||!wn($,N)){var N=$;E[v++]=M===0?0:M}}return E}function RS(s){return typeof s=="number"?s:Jt(s)?_:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return Qe(s,Zt)+"";if(Jt(s))return dS?dS.call(s):"";var a=s+"";return a=="0"&&1/s==-1/0?"-0":a}function kr(s,a,f){var p=-1,v=xl,E=s.length,M=!0,$=[],N=$;if(f)M=!1,v=mh;else if(E>=i){var U=a?null:VF(s);if(U)return Sl(U);M=!1,v=Io,N=new mi}else N=a?[]:$;e:for(;++p<E;){var W=s[p],z=a?a(W):W;if(W=f||W!==0?W:0,M&&z===z){for(var ne=N.length;ne--;)if(N[ne]===z)continue e;a&&N.push(z),$.push(W)}else v(N,z,f)||(N!==$&&N.push(z),$.push(W))}return $}function Vh(s,a){return a=Fr(a,s),s=l2(s,a),s==null||delete s[Vn(hn(a))]}function NS(s,a,f,p){return Bo(s,a,f(gi(s,a)),p)}function Ul(s,a,f,p){for(var v=s.length,E=p?v:-1;(p?E--:++E<v)&&a(s[E],E,s););return f?dn(s,p?0:E,p?E+1:v):dn(s,p?E+1:0,p?v:E)}function LS(s,a){var f=s;return f instanceof Re&&(f=f.value()),ph(a,function(p,v){return v.func.apply(v.thisArg,$r([p],v.args))},f)}function Bh(s,a,f){var p=s.length;if(p<2)return p?kr(s[0]):[];for(var v=-1,E=j(p);++v<p;)for(var M=s[v],$=-1;++$<p;)$!=v&&(E[v]=Fo(E[v]||M,s[$],a,f));return kr(xt(E,1),a,f)}function kS(s,a,f){for(var p=-1,v=s.length,E=a.length,M={};++p<v;){var $=p<E?a[p]:n;f(M,s[p],$)}return M}function Uh(s){return ct(s)?s:[]}function Wh(s){return typeof s=="function"?s:Bt}function Fr(s,a){return Ae(s)?s:Jh(s,a)?[s]:d2(Ve(s))}var _F=_e;function jr(s,a,f){var p=s.length;return f=f===n?p:f,!a&&f>=p?s:dn(s,a,f)}var FS=yk||function(s){return bt.clearTimeout(s)};function jS(s,a){if(a)return s.slice();var f=s.length,p=oS?oS(f):new s.constructor(f);return s.copy(p),p}function zh(s){var a=new s.constructor(s.byteLength);return new Ol(a).set(new Ol(s)),a}function IF(s,a){var f=a?zh(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function DF(s){var a=new s.constructor(s.source,Sw.exec(s));return a.lastIndex=s.lastIndex,a}function $F(s){return Lo?Ge(Lo.call(s)):{}}function VS(s,a){var f=a?zh(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function BS(s,a){if(s!==a){var f=s!==n,p=s===null,v=s===s,E=Jt(s),M=a!==n,$=a===null,N=a===a,U=Jt(a);if(!$&&!U&&!E&&s>a||E&&M&&N&&!$&&!U||p&&M&&N||!f&&N||!v)return 1;if(!p&&!E&&!U&&s<a||U&&f&&v&&!p&&!E||$&&f&&v||!M&&v||!N)return-1}return 0}function RF(s,a,f){for(var p=-1,v=s.criteria,E=a.criteria,M=v.length,$=f.length;++p<M;){var N=BS(v[p],E[p]);if(N){if(p>=$)return N;var U=f[p];return N*(U=="desc"?-1:1)}}return s.index-a.index}function US(s,a,f,p){for(var v=-1,E=s.length,M=f.length,$=-1,N=a.length,U=mt(E-M,0),W=j(N+U),z=!p;++$<N;)W[$]=a[$];for(;++v<M;)(z||v<E)&&(W[f[v]]=s[v]);for(;U--;)W[$++]=s[v++];return W}function WS(s,a,f,p){for(var v=-1,E=s.length,M=-1,$=f.length,N=-1,U=a.length,W=mt(E-$,0),z=j(W+U),ne=!p;++v<W;)z[v]=s[v];for(var he=v;++N<U;)z[he+N]=a[N];for(;++M<$;)(ne||v<E)&&(z[he+f[M]]=s[v++]);return z}function Ft(s,a){var f=-1,p=s.length;for(a||(a=j(p));++f<p;)a[f]=s[f];return a}function jn(s,a,f,p){var v=!f;f||(f={});for(var E=-1,M=a.length;++E<M;){var $=a[E],N=p?p(f[$],s[$],$,f,s):n;N===n&&(N=s[$]),v?nr(f,$,N):ko(f,$,N)}return f}function NF(s,a){return jn(s,Zh(s),a)}function LF(s,a){return jn(s,n2(s),a)}function Wl(s,a){return function(f,p){var v=Ae(f)?B3:iF,E=a?a():{};return v(f,s,xe(p,2),E)}}function gs(s){return _e(function(a,f){var p=-1,v=f.length,E=v>1?f[v-1]:n,M=v>2?f[2]:n;for(E=s.length>3&&typeof E=="function"?(v--,E):n,M&&Dt(f[0],f[1],M)&&(E=v<3?n:E,v=1),a=Ge(a);++p<v;){var $=f[p];$&&s(a,$,p,E)}return a})}function zS(s,a){return function(f,p){if(f==null)return f;if(!jt(f))return s(f,p);for(var v=f.length,E=a?v:-1,M=Ge(f);(a?E--:++E<v)&&p(M[E],E,M)!==!1;);return f}}function GS(s){return function(a,f,p){for(var v=-1,E=Ge(a),M=p(a),$=M.length;$--;){var N=M[s?$:++v];if(f(E[N],N,E)===!1)break}return a}}function kF(s,a,f){var p=a&P,v=Uo(s);function E(){var M=this&&this!==bt&&this instanceof E?v:s;return M.apply(p?f:this,arguments)}return E}function YS(s){return function(a){a=Ve(a);var f=cs(a)?bn(a):n,p=f?f[0]:a.charAt(0),v=f?jr(f,1).join(""):a.slice(1);return p[s]()+v}}function ys(s){return function(a){return ph(z2(W2(a).replace(A3,"")),s,"")}}function Uo(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=ps(s.prototype),p=s.apply(f,a);return it(p)?p:f}}function FF(s,a,f){var p=Uo(s);function v(){for(var E=arguments.length,M=j(E),$=E,N=vs(v);$--;)M[$]=arguments[$];var U=E<3&&M[0]!==N&&M[E-1]!==N?[]:Rr(M,N);if(E-=U.length,E<f)return ZS(s,a,zl,v.placeholder,n,M,U,n,n,f-E);var W=this&&this!==bt&&this instanceof v?p:s;return Kt(W,this,M)}return v}function HS(s){return function(a,f,p){var v=Ge(a);if(!jt(a)){var E=xe(f,3);a=gt(a),f=function($){return E(v[$],$,v)}}var M=s(a,f,p);return M>-1?v[E?a[M]:M]:n}}function qS(s){return ir(function(a){var f=a.length,p=f,v=un.prototype.thru;for(s&&a.reverse();p--;){var E=a[p];if(typeof E!="function")throw new cn(l);if(v&&!M&&ql(E)=="wrapper")var M=new un([],!0)}for(p=M?p:f;++p<f;){E=a[p];var $=ql(E),N=$=="wrapper"?Kh(E):n;N&&Qh(N[0])&&N[1]==(V|O|C|F)&&!N[4].length&&N[9]==1?M=M[ql(N[0])].apply(M,N[3]):M=E.length==1&&Qh(E)?M[$]():M.thru(E)}return function(){var U=arguments,W=U[0];if(M&&U.length==1&&Ae(W))return M.plant(W).value();for(var z=0,ne=f?a[z].apply(this,U):W;++z<f;)ne=a[z].call(this,ne);return ne}})}function zl(s,a,f,p,v,E,M,$,N,U){var W=a&V,z=a&P,ne=a&w,he=a&(O|D),Te=a&Y,Me=ne?n:Uo(s);function Ee(){for(var $e=arguments.length,Ne=j($e),Qt=$e;Qt--;)Ne[Qt]=arguments[Qt];if(he)var $t=vs(Ee),en=X3(Ne,$t);if(p&&(Ne=US(Ne,p,v,he)),E&&(Ne=WS(Ne,E,M,he)),$e-=en,he&&$e<U){var ut=Rr(Ne,$t);return ZS(s,a,zl,Ee.placeholder,f,Ne,ut,$,N,U-$e)}var Sn=z?f:this,lr=ne?Sn[s]:s;return $e=Ne.length,$?Ne=ij(Ne,$):Te&&$e>1&&Ne.reverse(),W&&N<$e&&(Ne.length=N),this&&this!==bt&&this instanceof Ee&&(lr=Me||Uo(lr)),lr.apply(Sn,Ne)}return Ee}function KS(s,a){return function(f,p){return dF(f,s,a(p),{})}}function Gl(s,a){return function(f,p){var v;if(f===n&&p===n)return a;if(f!==n&&(v=f),p!==n){if(v===n)return p;typeof f=="string"||typeof p=="string"?(f=Zt(f),p=Zt(p)):(f=RS(f),p=RS(p)),v=s(f,p)}return v}}function Gh(s){return ir(function(a){return a=Qe(a,Xt(xe())),_e(function(f){var p=this;return s(a,function(v){return Kt(v,p,f)})})})}function Yl(s,a){a=a===n?" ":Zt(a);var f=a.length;if(f<2)return f?Fh(a,s):a;var p=Fh(a,Dl(s/us(a)));return cs(a)?jr(bn(p),0,s).join(""):p.slice(0,s)}function jF(s,a,f,p){var v=a&P,E=Uo(s);function M(){for(var $=-1,N=arguments.length,U=-1,W=p.length,z=j(W+N),ne=this&&this!==bt&&this instanceof M?E:s;++U<W;)z[U]=p[U];for(;N--;)z[U++]=arguments[++$];return Kt(ne,v?f:this,z)}return M}function XS(s){return function(a,f,p){return p&&typeof p!="number"&&Dt(a,f,p)&&(f=p=n),a=ar(a),f===n?(f=a,a=0):f=ar(f),p=p===n?a<f?1:-1:ar(p),EF(a,f,p,s)}}function Hl(s){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=mn(a),f=mn(f)),s(a,f)}}function ZS(s,a,f,p,v,E,M,$,N,U){var W=a&O,z=W?M:n,ne=W?n:M,he=W?E:n,Te=W?n:E;a|=W?C:L,a&=~(W?L:C),a&A||(a&=-4);var Me=[s,a,v,he,z,Te,ne,$,N,U],Ee=f.apply(n,Me);return Qh(s)&&c2(Ee,Me),Ee.placeholder=p,u2(Ee,s,a)}function Yh(s){var a=ht[s];return function(f,p){if(f=mn(f),p=p==null?0:At(Oe(p),292),p&&uS(f)){var v=(Ve(f)+"e").split("e"),E=a(v[0]+"e"+(+v[1]+p));return v=(Ve(E)+"e").split("e"),+(v[0]+"e"+(+v[1]-p))}return a(f)}}var VF=hs&&1/Sl(new hs([,-0]))[1]==K?function(s){return new hs(s)}:mm;function JS(s){return function(a){var f=Ot(a);return f==Le?Sh(a):f==qt?rk(a):K3(a,s(a))}}function rr(s,a,f,p,v,E,M,$){var N=a&w;if(!N&&typeof s!="function")throw new cn(l);var U=p?p.length:0;if(U||(a&=-97,p=v=n),M=M===n?M:mt(Oe(M),0),$=$===n?$:Oe($),U-=v?v.length:0,a&L){var W=p,z=v;p=v=n}var ne=N?n:Kh(s),he=[s,a,f,p,v,W,z,E,M,$];if(ne&&tj(he,ne),s=he[0],a=he[1],f=he[2],p=he[3],v=he[4],$=he[9]=he[9]===n?N?0:s.length:mt(he[9]-U,0),!$&&a&(O|D)&&(a&=-25),!a||a==P)var Te=kF(s,a,f);else a==O||a==D?Te=FF(s,a,$):(a==C||a==(P|C))&&!v.length?Te=jF(s,a,f,p):Te=zl.apply(n,he);var Me=ne?DS:c2;return u2(Me(Te,he),s,a)}function QS(s,a,f,p){return s===n||wn(s,ds[f])&&!We.call(p,f)?a:s}function e2(s,a,f,p,v,E){return it(s)&&it(a)&&(E.set(a,s),Vl(s,a,n,e2,E),E.delete(a)),s}function BF(s){return Go(s)?n:s}function t2(s,a,f,p,v,E){var M=f&S,$=s.length,N=a.length;if($!=N&&!(M&&N>$))return!1;var U=E.get(s),W=E.get(a);if(U&&W)return U==a&&W==s;var z=-1,ne=!0,he=f&b?new mi:n;for(E.set(s,a),E.set(a,s);++z<$;){var Te=s[z],Me=a[z];if(p)var Ee=M?p(Me,Te,z,a,s,E):p(Te,Me,z,s,a,E);if(Ee!==n){if(Ee)continue;ne=!1;break}if(he){if(!gh(a,function($e,Ne){if(!Io(he,Ne)&&(Te===$e||v(Te,$e,f,p,E)))return he.push(Ne)})){ne=!1;break}}else if(!(Te===Me||v(Te,Me,f,p,E))){ne=!1;break}}return E.delete(s),E.delete(a),ne}function UF(s,a,f,p,v,E,M){switch(f){case Je:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case be:return!(s.byteLength!=a.byteLength||!E(new Ol(s),new Ol(a)));case re:case me:case ft:return wn(+s,+a);case Ue:return s.name==a.name&&s.message==a.message;case ci:case yn:return s==a+"";case Le:var $=Sh;case qt:var N=p&S;if($||($=Sl),s.size!=a.size&&!N)return!1;var U=M.get(s);if(U)return U==a;p|=b,M.set(s,a);var W=t2($(s),$(a),p,v,E,M);return M.delete(s),W;case ui:if(Lo)return Lo.call(s)==Lo.call(a)}return!1}function WF(s,a,f,p,v,E){var M=f&S,$=Hh(s),N=$.length,U=Hh(a),W=U.length;if(N!=W&&!M)return!1;for(var z=N;z--;){var ne=$[z];if(!(M?ne in a:We.call(a,ne)))return!1}var he=E.get(s),Te=E.get(a);if(he&&Te)return he==a&&Te==s;var Me=!0;E.set(s,a),E.set(a,s);for(var Ee=M;++z<N;){ne=$[z];var $e=s[ne],Ne=a[ne];if(p)var Qt=M?p(Ne,$e,ne,a,s,E):p($e,Ne,ne,s,a,E);if(!(Qt===n?$e===Ne||v($e,Ne,f,p,E):Qt)){Me=!1;break}Ee||(Ee=ne=="constructor")}if(Me&&!Ee){var $t=s.constructor,en=a.constructor;$t!=en&&"constructor"in s&&"constructor"in a&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return E.delete(s),E.delete(a),Me}function ir(s){return tm(a2(s,n,g2),s+"")}function Hh(s){return wS(s,gt,Zh)}function qh(s){return wS(s,Vt,n2)}var Kh=Rl?function(s){return Rl.get(s)}:mm;function ql(s){for(var a=s.name+"",f=ms[a],p=We.call(ms,a)?f.length:0;p--;){var v=f[p],E=v.func;if(E==null||E==s)return v.name}return a}function vs(s){var a=We.call(T,"placeholder")?T:s;return a.placeholder}function xe(){var s=T.iteratee||dm;return s=s===dm?ES:s,arguments.length?s(arguments[0],arguments[1]):s}function Kl(s,a){var f=s.__data__;return ZF(a)?f[typeof a=="string"?"string":"hash"]:f.map}function Xh(s){for(var a=gt(s),f=a.length;f--;){var p=a[f],v=s[p];a[f]=[p,v,s2(v)]}return a}function yi(s,a){var f=ek(s,a);return TS(f)?f:n}function zF(s){var a=We.call(s,di),f=s[di];try{s[di]=n;var p=!0}catch{}var v=Pl.call(s);return p&&(a?s[di]=f:delete s[di]),v}var Zh=Eh?function(s){return s==null?[]:(s=Ge(s),Dr(Eh(s),function(a){return lS.call(s,a)}))}:pm,n2=Eh?function(s){for(var a=[];s;)$r(a,Zh(s)),s=Ml(s);return a}:pm,Ot=It;(Ch&&Ot(new Ch(new ArrayBuffer(1)))!=Je||$o&&Ot(new $o)!=Le||Ph&&Ot(Ph.resolve())!=hl||hs&&Ot(new hs)!=qt||Ro&&Ot(new Ro)!=Ir)&&(Ot=function(s){var a=It(s),f=a==dt?s.constructor:n,p=f?vi(f):"";if(p)switch(p){case Pk:return Je;case Ak:return Le;case Ok:return hl;case Mk:return qt;case _k:return Ir}return a});function GF(s,a,f){for(var p=-1,v=f.length;++p<v;){var E=f[p],M=E.size;switch(E.type){case"drop":s+=M;break;case"dropRight":a-=M;break;case"take":a=At(a,s+M);break;case"takeRight":s=mt(s,a-M);break}}return{start:s,end:a}}function YF(s){var a=s.match(JL);return a?a[1].split(QL):[]}function r2(s,a,f){a=Fr(a,s);for(var p=-1,v=a.length,E=!1;++p<v;){var M=Vn(a[p]);if(!(E=s!=null&&f(s,M)))break;s=s[M]}return E||++p!=v?E:(v=s==null?0:s.length,!!v&&nc(v)&&sr(M,v)&&(Ae(s)||bi(s)))}function HF(s){var a=s.length,f=new s.constructor(a);return a&&typeof s[0]=="string"&&We.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function i2(s){return typeof s.constructor=="function"&&!Wo(s)?ps(Ml(s)):{}}function qF(s,a,f){var p=s.constructor;switch(a){case be:return zh(s);case re:case me:return new p(+s);case Je:return IF(s,f);case Pt:case vn:case Qn:case Qd:case eh:case th:case nh:case rh:case ih:return VS(s,f);case Le:return new p;case ft:case yn:return new p(s);case ci:return DF(s);case qt:return new p;case ui:return $F(s)}}function KF(s,a){var f=a.length;if(!f)return s;var p=f-1;return a[p]=(f>1?"& ":"")+a[p],a=a.join(f>2?", ":" "),s.replace(ZL,`{
|
|
632
|
+
*/var HI=Xs.exports,uv;function qI(){return uv||(uv=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.",l="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,b=2,P=1,w=2,A=4,O=8,D=16,C=32,L=64,V=128,F=256,q=512,ee=30,re="...",ve=800,ye=16,fe=1,se=2,oe=3,z=1/0,Y=9007199254740991,Z=17976931348623157e292,_=NaN,k=4294967295,X=k-1,J=k>>>1,le=[["ary",V],["bind",P],["bindKey",w],["curry",O],["curryRight",D],["flip",q],["partial",C],["partialRight",L],["rearg",F]],H="[object Arguments]",ie="[object Array]",de="[object AsyncFunction]",ne="[object Boolean]",me="[object Date]",Ce="[object DOMException]",Ue="[object Error]",Q="[object Function]",pe="[object GeneratorFunction]",Le="[object Map]",ft="[object Number]",li="[object Null]",dt="[object Object]",hl="[object Promise]",ml="[object Proxy]",ci="[object RegExp]",qt="[object Set]",yn="[object String]",ui="[object Symbol]",pl="[object Undefined]",Ir="[object WeakMap]",gl="[object WeakSet]",be="[object ArrayBuffer]",Je="[object DataView]",Pt="[object Float32Array]",vn="[object Float64Array]",Qn="[object Int8Array]",Qd="[object Int16Array]",eh="[object Int32Array]",th="[object Uint8Array]",nh="[object Uint8ClampedArray]",rh="[object Uint16Array]",ih="[object Uint32Array]",jL=/\b__p \+= '';/g,VL=/\b(__p \+=) '' \+/g,BL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bw=/&(?:amp|lt|gt|quot|#39);/g,xw=/[&<>"']/g,UL=RegExp(bw.source),WL=RegExp(xw.source),zL=/<%-([\s\S]+?)%>/g,GL=/<%([\s\S]+?)%>/g,ww=/<%=([\s\S]+?)%>/g,YL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HL=/^\w*$/,qL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sh=/[\\^$.*+?()[\]{}|]/g,KL=RegExp(sh.source),oh=/^\s+/,XL=/\s/,ZL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,JL=/\{\n\/\* \[wrapped with (.+)\] \*/,QL=/,? & /,e3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,t3=/[()=,{}\[\]\/\s]/,n3=/\\(\\)?/g,r3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sw=/\w*$/,i3=/^[-+]0x[0-9a-f]+$/i,s3=/^0b[01]+$/i,o3=/^\[object .+?Constructor\]$/,a3=/^0o[0-7]+$/i,l3=/^(?:0|[1-9]\d*)$/,c3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yl=/($^)/,u3=/['\n\r\u2028\u2029\\]/g,vl="\\ud800-\\udfff",f3="\\u0300-\\u036f",d3="\\ufe20-\\ufe2f",h3="\\u20d0-\\u20ff",Tw=f3+d3+h3,Ew="\\u2700-\\u27bf",Cw="a-z\\xdf-\\xf6\\xf8-\\xff",m3="\\xac\\xb1\\xd7\\xf7",p3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",g3="\\u2000-\\u206f",y3=" \\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",Pw="A-Z\\xc0-\\xd6\\xd8-\\xde",Aw="\\ufe0e\\ufe0f",Ow=m3+p3+g3+y3,ah="['’]",v3="["+vl+"]",Mw="["+Ow+"]",bl="["+Tw+"]",_w="\\d+",b3="["+Ew+"]",Iw="["+Cw+"]",Dw="[^"+vl+Ow+_w+Ew+Cw+Pw+"]",lh="\\ud83c[\\udffb-\\udfff]",x3="(?:"+bl+"|"+lh+")",$w="[^"+vl+"]",ch="(?:\\ud83c[\\udde6-\\uddff]){2}",uh="[\\ud800-\\udbff][\\udc00-\\udfff]",as="["+Pw+"]",Rw="\\u200d",Nw="(?:"+Iw+"|"+Dw+")",w3="(?:"+as+"|"+Dw+")",Lw="(?:"+ah+"(?:d|ll|m|re|s|t|ve))?",kw="(?:"+ah+"(?:D|LL|M|RE|S|T|VE))?",Fw=x3+"?",jw="["+Aw+"]?",S3="(?:"+Rw+"(?:"+[$w,ch,uh].join("|")+")"+jw+Fw+")*",T3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",E3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vw=jw+Fw+S3,C3="(?:"+[b3,ch,uh].join("|")+")"+Vw,P3="(?:"+[$w+bl+"?",bl,ch,uh,v3].join("|")+")",A3=RegExp(ah,"g"),O3=RegExp(bl,"g"),fh=RegExp(lh+"(?="+lh+")|"+P3+Vw,"g"),M3=RegExp([as+"?"+Iw+"+"+Lw+"(?="+[Mw,as,"$"].join("|")+")",w3+"+"+kw+"(?="+[Mw,as+Nw,"$"].join("|")+")",as+"?"+Nw+"+"+Lw,as+"+"+kw,E3,T3,_w,C3].join("|"),"g"),_3=RegExp("["+Rw+vl+Tw+Aw+"]"),I3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,D3=["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"],$3=-1,Xe={};Xe[Pt]=Xe[vn]=Xe[Qn]=Xe[Qd]=Xe[eh]=Xe[th]=Xe[nh]=Xe[rh]=Xe[ih]=!0,Xe[H]=Xe[ie]=Xe[be]=Xe[ne]=Xe[Je]=Xe[me]=Xe[Ue]=Xe[Q]=Xe[Le]=Xe[ft]=Xe[dt]=Xe[ci]=Xe[qt]=Xe[yn]=Xe[Ir]=!1;var qe={};qe[H]=qe[ie]=qe[be]=qe[Je]=qe[ne]=qe[me]=qe[Pt]=qe[vn]=qe[Qn]=qe[Qd]=qe[eh]=qe[Le]=qe[ft]=qe[dt]=qe[ci]=qe[qt]=qe[yn]=qe[ui]=qe[th]=qe[nh]=qe[rh]=qe[ih]=!0,qe[Ue]=qe[Q]=qe[Ir]=!1;var R3={À:"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"},N3={"&":"&","<":"<",">":">",'"':""","'":"'"},L3={"&":"&","<":"<",">":">",""":'"',"'":"'"},k3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},F3=parseFloat,j3=parseInt,Bw=typeof Yo=="object"&&Yo&&Yo.Object===Object&&Yo,V3=typeof self=="object"&&self&&self.Object===Object&&self,bt=Bw||V3||Function("return this")(),dh=t&&!t.nodeType&&t,fi=dh&&!0&&e&&!e.nodeType&&e,Uw=fi&&fi.exports===dh,hh=Uw&&Bw.process,an=function(){try{var R=fi&&fi.require&&fi.require("util").types;return R||hh&&hh.binding&&hh.binding("util")}catch{}}(),Ww=an&&an.isArrayBuffer,zw=an&&an.isDate,Gw=an&&an.isMap,Yw=an&&an.isRegExp,Hw=an&&an.isSet,qw=an&&an.isTypedArray;function Kt(R,B,j){switch(j.length){case 0:return R.call(B);case 1:return R.call(B,j[0]);case 2:return R.call(B,j[0],j[1]);case 3:return R.call(B,j[0],j[1],j[2])}return R.apply(B,j)}function B3(R,B,j,ue){for(var Pe=-1,ke=R==null?0:R.length;++Pe<ke;){var ht=R[Pe];B(ue,ht,j(ht),R)}return ue}function ln(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue&&B(R[j],j,R)!==!1;);return R}function U3(R,B){for(var j=R==null?0:R.length;j--&&B(R[j],j,R)!==!1;);return R}function Kw(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue;)if(!B(R[j],j,R))return!1;return!0}function Dr(R,B){for(var j=-1,ue=R==null?0:R.length,Pe=0,ke=[];++j<ue;){var ht=R[j];B(ht,j,R)&&(ke[Pe++]=ht)}return ke}function xl(R,B){var j=R==null?0:R.length;return!!j&&ls(R,B,0)>-1}function mh(R,B,j){for(var ue=-1,Pe=R==null?0:R.length;++ue<Pe;)if(j(B,R[ue]))return!0;return!1}function Qe(R,B){for(var j=-1,ue=R==null?0:R.length,Pe=Array(ue);++j<ue;)Pe[j]=B(R[j],j,R);return Pe}function $r(R,B){for(var j=-1,ue=B.length,Pe=R.length;++j<ue;)R[Pe+j]=B[j];return R}function ph(R,B,j,ue){var Pe=-1,ke=R==null?0:R.length;for(ue&&ke&&(j=R[++Pe]);++Pe<ke;)j=B(j,R[Pe],Pe,R);return j}function W3(R,B,j,ue){var Pe=R==null?0:R.length;for(ue&&Pe&&(j=R[--Pe]);Pe--;)j=B(j,R[Pe],Pe,R);return j}function gh(R,B){for(var j=-1,ue=R==null?0:R.length;++j<ue;)if(B(R[j],j,R))return!0;return!1}var z3=yh("length");function G3(R){return R.split("")}function Y3(R){return R.match(e3)||[]}function Xw(R,B,j){var ue;return j(R,function(Pe,ke,ht){if(B(Pe,ke,ht))return ue=ke,!1}),ue}function wl(R,B,j,ue){for(var Pe=R.length,ke=j+(ue?1:-1);ue?ke--:++ke<Pe;)if(B(R[ke],ke,R))return ke;return-1}function ls(R,B,j){return B===B?ik(R,B,j):wl(R,Zw,j)}function H3(R,B,j,ue){for(var Pe=j-1,ke=R.length;++Pe<ke;)if(ue(R[Pe],B))return Pe;return-1}function Zw(R){return R!==R}function Jw(R,B){var j=R==null?0:R.length;return j?bh(R,B)/j:_}function yh(R){return function(B){return B==null?n:B[R]}}function vh(R){return function(B){return R==null?n:R[B]}}function Qw(R,B,j,ue,Pe){return Pe(R,function(ke,ht,Ge){j=ue?(ue=!1,ke):B(j,ke,ht,Ge)}),j}function q3(R,B){var j=R.length;for(R.sort(B);j--;)R[j]=R[j].value;return R}function bh(R,B){for(var j,ue=-1,Pe=R.length;++ue<Pe;){var ke=B(R[ue]);ke!==n&&(j=j===n?ke:j+ke)}return j}function xh(R,B){for(var j=-1,ue=Array(R);++j<R;)ue[j]=B(j);return ue}function K3(R,B){return Qe(B,function(j){return[j,R[j]]})}function eS(R){return R&&R.slice(0,iS(R)+1).replace(oh,"")}function Xt(R){return function(B){return R(B)}}function wh(R,B){return Qe(B,function(j){return R[j]})}function Io(R,B){return R.has(B)}function tS(R,B){for(var j=-1,ue=R.length;++j<ue&&ls(B,R[j],0)>-1;);return j}function nS(R,B){for(var j=R.length;j--&&ls(B,R[j],0)>-1;);return j}function X3(R,B){for(var j=R.length,ue=0;j--;)R[j]===B&&++ue;return ue}var Z3=vh(R3),J3=vh(N3);function Q3(R){return"\\"+k3[R]}function ek(R,B){return R==null?n:R[B]}function cs(R){return _3.test(R)}function tk(R){return I3.test(R)}function nk(R){for(var B,j=[];!(B=R.next()).done;)j.push(B.value);return j}function Sh(R){var B=-1,j=Array(R.size);return R.forEach(function(ue,Pe){j[++B]=[Pe,ue]}),j}function rS(R,B){return function(j){return R(B(j))}}function Rr(R,B){for(var j=-1,ue=R.length,Pe=0,ke=[];++j<ue;){var ht=R[j];(ht===B||ht===h)&&(R[j]=h,ke[Pe++]=j)}return ke}function Sl(R){var B=-1,j=Array(R.size);return R.forEach(function(ue){j[++B]=ue}),j}function rk(R){var B=-1,j=Array(R.size);return R.forEach(function(ue){j[++B]=[ue,ue]}),j}function ik(R,B,j){for(var ue=j-1,Pe=R.length;++ue<Pe;)if(R[ue]===B)return ue;return-1}function sk(R,B,j){for(var ue=j+1;ue--;)if(R[ue]===B)return ue;return ue}function us(R){return cs(R)?ak(R):z3(R)}function bn(R){return cs(R)?lk(R):G3(R)}function iS(R){for(var B=R.length;B--&&XL.test(R.charAt(B)););return B}var ok=vh(L3);function ak(R){for(var B=fh.lastIndex=0;fh.test(R);)++B;return B}function lk(R){return R.match(fh)||[]}function ck(R){return R.match(M3)||[]}var uk=function R(B){B=B==null?bt:fs.defaults(bt.Object(),B,fs.pick(bt,D3));var j=B.Array,ue=B.Date,Pe=B.Error,ke=B.Function,ht=B.Math,Ge=B.Object,Th=B.RegExp,fk=B.String,cn=B.TypeError,Tl=j.prototype,dk=ke.prototype,ds=Ge.prototype,El=B["__core-js_shared__"],Cl=dk.toString,We=ds.hasOwnProperty,hk=0,sS=function(){var s=/[^.]+$/.exec(El&&El.keys&&El.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Pl=ds.toString,mk=Cl.call(Ge),pk=bt._,gk=Th("^"+Cl.call(We).replace(sh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=Uw?B.Buffer:n,Nr=B.Symbol,Ol=B.Uint8Array,oS=Al?Al.allocUnsafe:n,Ml=rS(Ge.getPrototypeOf,Ge),aS=Ge.create,lS=ds.propertyIsEnumerable,_l=Tl.splice,cS=Nr?Nr.isConcatSpreadable:n,Do=Nr?Nr.iterator:n,di=Nr?Nr.toStringTag:n,Il=function(){try{var s=yi(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),yk=B.clearTimeout!==bt.clearTimeout&&B.clearTimeout,vk=ue&&ue.now!==bt.Date.now&&ue.now,bk=B.setTimeout!==bt.setTimeout&&B.setTimeout,Dl=ht.ceil,$l=ht.floor,Eh=Ge.getOwnPropertySymbols,xk=Al?Al.isBuffer:n,uS=B.isFinite,wk=Tl.join,Sk=rS(Ge.keys,Ge),mt=ht.max,At=ht.min,Tk=ue.now,Ek=B.parseInt,fS=ht.random,Ck=Tl.reverse,Ch=yi(B,"DataView"),$o=yi(B,"Map"),Ph=yi(B,"Promise"),hs=yi(B,"Set"),Ro=yi(B,"WeakMap"),No=yi(Ge,"create"),Rl=Ro&&new Ro,ms={},Pk=vi(Ch),Ak=vi($o),Ok=vi(Ph),Mk=vi(hs),_k=vi(Ro),Nl=Nr?Nr.prototype:n,Lo=Nl?Nl.valueOf:n,dS=Nl?Nl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof un)return s;if(We.call(s,"__wrapped__"))return h2(s)}return new un(s)}var ps=function(){function s(){}return function(a){if(!it(a))return{};if(aS)return aS(a);s.prototype=a;var f=new s;return s.prototype=n,f}}();function Ll(){}function un(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}T.templateSettings={escape:zL,evaluate:GL,interpolate:ww,variable:"",imports:{_:T}},T.prototype=Ll.prototype,T.prototype.constructor=T,un.prototype=ps(Ll.prototype),un.prototype.constructor=un;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function Ik(){var s=new Re(this.__wrapped__);return s.__actions__=Ft(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ft(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ft(this.__views__),s}function Dk(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $k(){var s=this.__wrapped__.value(),a=this.__dir__,f=Ae(s),p=a<0,v=f?s.length:0,E=GF(0,v,this.__views__),M=E.start,$=E.end,N=$-M,U=p?$:M-1,W=this.__iteratees__,G=W.length,te=0,he=At(N,this.__takeCount__);if(!f||!p&&v==N&&he==N)return LS(s,this.__actions__);var Te=[];e:for(;N--&&te<he;){U+=a;for(var Me=-1,Ee=s[U];++Me<G;){var $e=W[Me],Ne=$e.iteratee,Qt=$e.type,$t=Ne(Ee);if(Qt==se)Ee=$t;else if(!$t){if(Qt==fe)continue e;break e}}Te[te++]=Ee}return Te}Re.prototype=ps(Ll.prototype),Re.prototype.constructor=Re;function hi(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function Rk(){this.__data__=No?No(null):{},this.size=0}function Nk(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function Lk(s){var a=this.__data__;if(No){var f=a[s];return f===u?n:f}return We.call(a,s)?a[s]:n}function kk(s){var a=this.__data__;return No?a[s]!==n:We.call(a,s)}function Fk(s,a){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=No&&a===n?u:a,this}hi.prototype.clear=Rk,hi.prototype.delete=Nk,hi.prototype.get=Lk,hi.prototype.has=kk,hi.prototype.set=Fk;function er(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function jk(){this.__data__=[],this.size=0}function Vk(s){var a=this.__data__,f=kl(a,s);if(f<0)return!1;var p=a.length-1;return f==p?a.pop():_l.call(a,f,1),--this.size,!0}function Bk(s){var a=this.__data__,f=kl(a,s);return f<0?n:a[f][1]}function Uk(s){return kl(this.__data__,s)>-1}function Wk(s,a){var f=this.__data__,p=kl(f,s);return p<0?(++this.size,f.push([s,a])):f[p][1]=a,this}er.prototype.clear=jk,er.prototype.delete=Vk,er.prototype.get=Bk,er.prototype.has=Uk,er.prototype.set=Wk;function tr(s){var a=-1,f=s==null?0:s.length;for(this.clear();++a<f;){var p=s[a];this.set(p[0],p[1])}}function zk(){this.size=0,this.__data__={hash:new hi,map:new($o||er),string:new hi}}function Gk(s){var a=Kl(this,s).delete(s);return this.size-=a?1:0,a}function Yk(s){return Kl(this,s).get(s)}function Hk(s){return Kl(this,s).has(s)}function qk(s,a){var f=Kl(this,s),p=f.size;return f.set(s,a),this.size+=f.size==p?0:1,this}tr.prototype.clear=zk,tr.prototype.delete=Gk,tr.prototype.get=Yk,tr.prototype.has=Hk,tr.prototype.set=qk;function mi(s){var a=-1,f=s==null?0:s.length;for(this.__data__=new tr;++a<f;)this.add(s[a])}function Kk(s){return this.__data__.set(s,u),this}function Xk(s){return this.__data__.has(s)}mi.prototype.add=mi.prototype.push=Kk,mi.prototype.has=Xk;function xn(s){var a=this.__data__=new er(s);this.size=a.size}function Zk(){this.__data__=new er,this.size=0}function Jk(s){var a=this.__data__,f=a.delete(s);return this.size=a.size,f}function Qk(s){return this.__data__.get(s)}function eF(s){return this.__data__.has(s)}function tF(s,a){var f=this.__data__;if(f instanceof er){var p=f.__data__;if(!$o||p.length<i-1)return p.push([s,a]),this.size=++f.size,this;f=this.__data__=new tr(p)}return f.set(s,a),this.size=f.size,this}xn.prototype.clear=Zk,xn.prototype.delete=Jk,xn.prototype.get=Qk,xn.prototype.has=eF,xn.prototype.set=tF;function hS(s,a){var f=Ae(s),p=!f&&bi(s),v=!f&&!p&&Vr(s),E=!f&&!p&&!v&&bs(s),M=f||p||v||E,$=M?xh(s.length,fk):[],N=$.length;for(var U in s)(a||We.call(s,U))&&!(M&&(U=="length"||v&&(U=="offset"||U=="parent")||E&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||sr(U,N)))&&$.push(U);return $}function mS(s){var a=s.length;return a?s[kh(0,a-1)]:n}function nF(s,a){return Xl(Ft(s),pi(a,0,s.length))}function rF(s){return Xl(Ft(s))}function Ah(s,a,f){(f!==n&&!wn(s[a],f)||f===n&&!(a in s))&&nr(s,a,f)}function ko(s,a,f){var p=s[a];(!(We.call(s,a)&&wn(p,f))||f===n&&!(a in s))&&nr(s,a,f)}function kl(s,a){for(var f=s.length;f--;)if(wn(s[f][0],a))return f;return-1}function iF(s,a,f,p){return Lr(s,function(v,E,M){a(p,v,f(v),M)}),p}function pS(s,a){return s&&jn(a,gt(a),s)}function sF(s,a){return s&&jn(a,Vt(a),s)}function nr(s,a,f){a=="__proto__"&&Il?Il(s,a,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[a]=f}function Oh(s,a){for(var f=-1,p=a.length,v=j(p),E=s==null;++f<p;)v[f]=E?n:lm(s,a[f]);return v}function pi(s,a,f){return s===s&&(f!==n&&(s=s<=f?s:f),a!==n&&(s=s>=a?s:a)),s}function fn(s,a,f,p,v,E){var M,$=a&m,N=a&g,U=a&y;if(f&&(M=v?f(s,p,v,E):f(s)),M!==n)return M;if(!it(s))return s;var W=Ae(s);if(W){if(M=HF(s),!$)return Ft(s,M)}else{var G=Ot(s),te=G==Q||G==pe;if(Vr(s))return jS(s,$);if(G==dt||G==H||te&&!v){if(M=N||te?{}:i2(s),!$)return N?LF(s,sF(M,s)):NF(s,pS(M,s))}else{if(!qe[G])return v?s:{};M=qF(s,G,$)}}E||(E=new xn);var he=E.get(s);if(he)return he;E.set(s,M),$2(s)?s.forEach(function(Ee){M.add(fn(Ee,a,f,Ee,s,E))}):I2(s)&&s.forEach(function(Ee,$e){M.set($e,fn(Ee,a,f,$e,s,E))});var Te=U?N?qh:Hh:N?Vt:gt,Me=W?n:Te(s);return ln(Me||s,function(Ee,$e){Me&&($e=Ee,Ee=s[$e]),ko(M,$e,fn(Ee,a,f,$e,s,E))}),M}function oF(s){var a=gt(s);return function(f){return gS(f,s,a)}}function gS(s,a,f){var p=f.length;if(s==null)return!p;for(s=Ge(s);p--;){var v=f[p],E=a[v],M=s[v];if(M===n&&!(v in s)||!E(M))return!1}return!0}function yS(s,a,f){if(typeof s!="function")throw new cn(l);return zo(function(){s.apply(n,f)},a)}function Fo(s,a,f,p){var v=-1,E=xl,M=!0,$=s.length,N=[],U=a.length;if(!$)return N;f&&(a=Qe(a,Xt(f))),p?(E=mh,M=!1):a.length>=i&&(E=Io,M=!1,a=new mi(a));e:for(;++v<$;){var W=s[v],G=f==null?W:f(W);if(W=p||W!==0?W:0,M&&G===G){for(var te=U;te--;)if(a[te]===G)continue e;N.push(W)}else E(a,G,p)||N.push(W)}return N}var Lr=zS(Fn),vS=zS(_h,!0);function aF(s,a){var f=!0;return Lr(s,function(p,v,E){return f=!!a(p,v,E),f}),f}function Fl(s,a,f){for(var p=-1,v=s.length;++p<v;){var E=s[p],M=a(E);if(M!=null&&($===n?M===M&&!Jt(M):f(M,$)))var $=M,N=E}return N}function lF(s,a,f,p){var v=s.length;for(f=Oe(f),f<0&&(f=-f>v?0:v+f),p=p===n||p>v?v:Oe(p),p<0&&(p+=v),p=f>p?0:N2(p);f<p;)s[f++]=a;return s}function bS(s,a){var f=[];return Lr(s,function(p,v,E){a(p,v,E)&&f.push(p)}),f}function xt(s,a,f,p,v){var E=-1,M=s.length;for(f||(f=XF),v||(v=[]);++E<M;){var $=s[E];a>0&&f($)?a>1?xt($,a-1,f,p,v):$r(v,$):p||(v[v.length]=$)}return v}var Mh=GS(),xS=GS(!0);function Fn(s,a){return s&&Mh(s,a,gt)}function _h(s,a){return s&&xS(s,a,gt)}function jl(s,a){return Dr(a,function(f){return or(s[f])})}function gi(s,a){a=Fr(a,s);for(var f=0,p=a.length;s!=null&&f<p;)s=s[Vn(a[f++])];return f&&f==p?s:n}function wS(s,a,f){var p=a(s);return Ae(s)?p:$r(p,f(s))}function It(s){return s==null?s===n?pl:li:di&&di in Ge(s)?zF(s):rj(s)}function Ih(s,a){return s>a}function cF(s,a){return s!=null&&We.call(s,a)}function uF(s,a){return s!=null&&a in Ge(s)}function fF(s,a,f){return s>=At(a,f)&&s<mt(a,f)}function Dh(s,a,f){for(var p=f?mh:xl,v=s[0].length,E=s.length,M=E,$=j(E),N=1/0,U=[];M--;){var W=s[M];M&&a&&(W=Qe(W,Xt(a))),N=At(W.length,N),$[M]=!f&&(a||v>=120&&W.length>=120)?new mi(M&&W):n}W=s[0];var G=-1,te=$[0];e:for(;++G<v&&U.length<N;){var he=W[G],Te=a?a(he):he;if(he=f||he!==0?he:0,!(te?Io(te,Te):p(U,Te,f))){for(M=E;--M;){var Me=$[M];if(!(Me?Io(Me,Te):p(s[M],Te,f)))continue e}te&&te.push(Te),U.push(he)}}return U}function dF(s,a,f,p){return Fn(s,function(v,E,M){a(p,f(v),E,M)}),p}function jo(s,a,f){a=Fr(a,s),s=l2(s,a);var p=s==null?s:s[Vn(hn(a))];return p==null?n:Kt(p,s,f)}function SS(s){return ot(s)&&It(s)==H}function hF(s){return ot(s)&&It(s)==be}function mF(s){return ot(s)&&It(s)==me}function Vo(s,a,f,p,v){return s===a?!0:s==null||a==null||!ot(s)&&!ot(a)?s!==s&&a!==a:pF(s,a,f,p,Vo,v)}function pF(s,a,f,p,v,E){var M=Ae(s),$=Ae(a),N=M?ie:Ot(s),U=$?ie:Ot(a);N=N==H?dt:N,U=U==H?dt:U;var W=N==dt,G=U==dt,te=N==U;if(te&&Vr(s)){if(!Vr(a))return!1;M=!0,W=!1}if(te&&!W)return E||(E=new xn),M||bs(s)?t2(s,a,f,p,v,E):UF(s,a,N,f,p,v,E);if(!(f&S)){var he=W&&We.call(s,"__wrapped__"),Te=G&&We.call(a,"__wrapped__");if(he||Te){var Me=he?s.value():s,Ee=Te?a.value():a;return E||(E=new xn),v(Me,Ee,f,p,E)}}return te?(E||(E=new xn),WF(s,a,f,p,v,E)):!1}function gF(s){return ot(s)&&Ot(s)==Le}function $h(s,a,f,p){var v=f.length,E=v,M=!p;if(s==null)return!E;for(s=Ge(s);v--;){var $=f[v];if(M&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++v<E;){$=f[v];var N=$[0],U=s[N],W=$[1];if(M&&$[2]){if(U===n&&!(N in s))return!1}else{var G=new xn;if(p)var te=p(U,W,N,s,a,G);if(!(te===n?Vo(W,U,S|b,p,G):te))return!1}}return!0}function TS(s){if(!it(s)||JF(s))return!1;var a=or(s)?gk:o3;return a.test(vi(s))}function yF(s){return ot(s)&&It(s)==ci}function vF(s){return ot(s)&&Ot(s)==qt}function bF(s){return ot(s)&&nc(s.length)&&!!Xe[It(s)]}function ES(s){return typeof s=="function"?s:s==null?Bt:typeof s=="object"?Ae(s)?AS(s[0],s[1]):PS(s):Y2(s)}function Rh(s){if(!Wo(s))return Sk(s);var a=[];for(var f in Ge(s))We.call(s,f)&&f!="constructor"&&a.push(f);return a}function xF(s){if(!it(s))return nj(s);var a=Wo(s),f=[];for(var p in s)p=="constructor"&&(a||!We.call(s,p))||f.push(p);return f}function Nh(s,a){return s<a}function CS(s,a){var f=-1,p=jt(s)?j(s.length):[];return Lr(s,function(v,E,M){p[++f]=a(v,E,M)}),p}function PS(s){var a=Xh(s);return a.length==1&&a[0][2]?o2(a[0][0],a[0][1]):function(f){return f===s||$h(f,s,a)}}function AS(s,a){return Jh(s)&&s2(a)?o2(Vn(s),a):function(f){var p=lm(f,s);return p===n&&p===a?cm(f,s):Vo(a,p,S|b)}}function Vl(s,a,f,p,v){s!==a&&Mh(a,function(E,M){if(v||(v=new xn),it(E))wF(s,a,M,f,Vl,p,v);else{var $=p?p(em(s,M),E,M+"",s,a,v):n;$===n&&($=E),Ah(s,M,$)}},Vt)}function wF(s,a,f,p,v,E,M){var $=em(s,f),N=em(a,f),U=M.get(N);if(U){Ah(s,f,U);return}var W=E?E($,N,f+"",s,a,M):n,G=W===n;if(G){var te=Ae(N),he=!te&&Vr(N),Te=!te&&!he&&bs(N);W=N,te||he||Te?Ae($)?W=$:ct($)?W=Ft($):he?(G=!1,W=jS(N,!0)):Te?(G=!1,W=VS(N,!0)):W=[]:Go(N)||bi(N)?(W=$,bi($)?W=L2($):(!it($)||or($))&&(W=i2(N))):G=!1}G&&(M.set(N,W),v(W,N,p,E,M),M.delete(N)),Ah(s,f,W)}function OS(s,a){var f=s.length;if(f)return a+=a<0?f:0,sr(a,f)?s[a]:n}function MS(s,a,f){a.length?a=Qe(a,function(E){return Ae(E)?function(M){return gi(M,E.length===1?E[0]:E)}:E}):a=[Bt];var p=-1;a=Qe(a,Xt(xe()));var v=CS(s,function(E,M,$){var N=Qe(a,function(U){return U(E)});return{criteria:N,index:++p,value:E}});return q3(v,function(E,M){return RF(E,M,f)})}function SF(s,a){return _S(s,a,function(f,p){return cm(s,p)})}function _S(s,a,f){for(var p=-1,v=a.length,E={};++p<v;){var M=a[p],$=gi(s,M);f($,M)&&Bo(E,Fr(M,s),$)}return E}function TF(s){return function(a){return gi(a,s)}}function Lh(s,a,f,p){var v=p?H3:ls,E=-1,M=a.length,$=s;for(s===a&&(a=Ft(a)),f&&($=Qe(s,Xt(f)));++E<M;)for(var N=0,U=a[E],W=f?f(U):U;(N=v($,W,N,p))>-1;)$!==s&&_l.call($,N,1),_l.call(s,N,1);return s}function IS(s,a){for(var f=s?a.length:0,p=f-1;f--;){var v=a[f];if(f==p||v!==E){var E=v;sr(v)?_l.call(s,v,1):Vh(s,v)}}return s}function kh(s,a){return s+$l(fS()*(a-s+1))}function EF(s,a,f,p){for(var v=-1,E=mt(Dl((a-s)/(f||1)),0),M=j(E);E--;)M[p?E:++v]=s,s+=f;return M}function Fh(s,a){var f="";if(!s||a<1||a>Y)return f;do a%2&&(f+=s),a=$l(a/2),a&&(s+=s);while(a);return f}function _e(s,a){return tm(a2(s,a,Bt),s+"")}function CF(s){return mS(xs(s))}function PF(s,a){var f=xs(s);return Xl(f,pi(a,0,f.length))}function Bo(s,a,f,p){if(!it(s))return s;a=Fr(a,s);for(var v=-1,E=a.length,M=E-1,$=s;$!=null&&++v<E;){var N=Vn(a[v]),U=f;if(N==="__proto__"||N==="constructor"||N==="prototype")return s;if(v!=M){var W=$[N];U=p?p(W,N,$):n,U===n&&(U=it(W)?W:sr(a[v+1])?[]:{})}ko($,N,U),$=$[N]}return s}var DS=Rl?function(s,a){return Rl.set(s,a),s}:Bt,AF=Il?function(s,a){return Il(s,"toString",{configurable:!0,enumerable:!1,value:fm(a),writable:!0})}:Bt;function OF(s){return Xl(xs(s))}function dn(s,a,f){var p=-1,v=s.length;a<0&&(a=-a>v?0:v+a),f=f>v?v:f,f<0&&(f+=v),v=a>f?0:f-a>>>0,a>>>=0;for(var E=j(v);++p<v;)E[p]=s[p+a];return E}function MF(s,a){var f;return Lr(s,function(p,v,E){return f=a(p,v,E),!f}),!!f}function Bl(s,a,f){var p=0,v=s==null?p:s.length;if(typeof a=="number"&&a===a&&v<=J){for(;p<v;){var E=p+v>>>1,M=s[E];M!==null&&!Jt(M)&&(f?M<=a:M<a)?p=E+1:v=E}return v}return jh(s,a,Bt,f)}function jh(s,a,f,p){var v=0,E=s==null?0:s.length;if(E===0)return 0;a=f(a);for(var M=a!==a,$=a===null,N=Jt(a),U=a===n;v<E;){var W=$l((v+E)/2),G=f(s[W]),te=G!==n,he=G===null,Te=G===G,Me=Jt(G);if(M)var Ee=p||Te;else U?Ee=Te&&(p||te):$?Ee=Te&&te&&(p||!he):N?Ee=Te&&te&&!he&&(p||!Me):he||Me?Ee=!1:Ee=p?G<=a:G<a;Ee?v=W+1:E=W}return At(E,X)}function $S(s,a){for(var f=-1,p=s.length,v=0,E=[];++f<p;){var M=s[f],$=a?a(M):M;if(!f||!wn($,N)){var N=$;E[v++]=M===0?0:M}}return E}function RS(s){return typeof s=="number"?s:Jt(s)?_:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return Qe(s,Zt)+"";if(Jt(s))return dS?dS.call(s):"";var a=s+"";return a=="0"&&1/s==-1/0?"-0":a}function kr(s,a,f){var p=-1,v=xl,E=s.length,M=!0,$=[],N=$;if(f)M=!1,v=mh;else if(E>=i){var U=a?null:VF(s);if(U)return Sl(U);M=!1,v=Io,N=new mi}else N=a?[]:$;e:for(;++p<E;){var W=s[p],G=a?a(W):W;if(W=f||W!==0?W:0,M&&G===G){for(var te=N.length;te--;)if(N[te]===G)continue e;a&&N.push(G),$.push(W)}else v(N,G,f)||(N!==$&&N.push(G),$.push(W))}return $}function Vh(s,a){return a=Fr(a,s),s=l2(s,a),s==null||delete s[Vn(hn(a))]}function NS(s,a,f,p){return Bo(s,a,f(gi(s,a)),p)}function Ul(s,a,f,p){for(var v=s.length,E=p?v:-1;(p?E--:++E<v)&&a(s[E],E,s););return f?dn(s,p?0:E,p?E+1:v):dn(s,p?E+1:0,p?v:E)}function LS(s,a){var f=s;return f instanceof Re&&(f=f.value()),ph(a,function(p,v){return v.func.apply(v.thisArg,$r([p],v.args))},f)}function Bh(s,a,f){var p=s.length;if(p<2)return p?kr(s[0]):[];for(var v=-1,E=j(p);++v<p;)for(var M=s[v],$=-1;++$<p;)$!=v&&(E[v]=Fo(E[v]||M,s[$],a,f));return kr(xt(E,1),a,f)}function kS(s,a,f){for(var p=-1,v=s.length,E=a.length,M={};++p<v;){var $=p<E?a[p]:n;f(M,s[p],$)}return M}function Uh(s){return ct(s)?s:[]}function Wh(s){return typeof s=="function"?s:Bt}function Fr(s,a){return Ae(s)?s:Jh(s,a)?[s]:d2(Ve(s))}var _F=_e;function jr(s,a,f){var p=s.length;return f=f===n?p:f,!a&&f>=p?s:dn(s,a,f)}var FS=yk||function(s){return bt.clearTimeout(s)};function jS(s,a){if(a)return s.slice();var f=s.length,p=oS?oS(f):new s.constructor(f);return s.copy(p),p}function zh(s){var a=new s.constructor(s.byteLength);return new Ol(a).set(new Ol(s)),a}function IF(s,a){var f=a?zh(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function DF(s){var a=new s.constructor(s.source,Sw.exec(s));return a.lastIndex=s.lastIndex,a}function $F(s){return Lo?Ge(Lo.call(s)):{}}function VS(s,a){var f=a?zh(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function BS(s,a){if(s!==a){var f=s!==n,p=s===null,v=s===s,E=Jt(s),M=a!==n,$=a===null,N=a===a,U=Jt(a);if(!$&&!U&&!E&&s>a||E&&M&&N&&!$&&!U||p&&M&&N||!f&&N||!v)return 1;if(!p&&!E&&!U&&s<a||U&&f&&v&&!p&&!E||$&&f&&v||!M&&v||!N)return-1}return 0}function RF(s,a,f){for(var p=-1,v=s.criteria,E=a.criteria,M=v.length,$=f.length;++p<M;){var N=BS(v[p],E[p]);if(N){if(p>=$)return N;var U=f[p];return N*(U=="desc"?-1:1)}}return s.index-a.index}function US(s,a,f,p){for(var v=-1,E=s.length,M=f.length,$=-1,N=a.length,U=mt(E-M,0),W=j(N+U),G=!p;++$<N;)W[$]=a[$];for(;++v<M;)(G||v<E)&&(W[f[v]]=s[v]);for(;U--;)W[$++]=s[v++];return W}function WS(s,a,f,p){for(var v=-1,E=s.length,M=-1,$=f.length,N=-1,U=a.length,W=mt(E-$,0),G=j(W+U),te=!p;++v<W;)G[v]=s[v];for(var he=v;++N<U;)G[he+N]=a[N];for(;++M<$;)(te||v<E)&&(G[he+f[M]]=s[v++]);return G}function Ft(s,a){var f=-1,p=s.length;for(a||(a=j(p));++f<p;)a[f]=s[f];return a}function jn(s,a,f,p){var v=!f;f||(f={});for(var E=-1,M=a.length;++E<M;){var $=a[E],N=p?p(f[$],s[$],$,f,s):n;N===n&&(N=s[$]),v?nr(f,$,N):ko(f,$,N)}return f}function NF(s,a){return jn(s,Zh(s),a)}function LF(s,a){return jn(s,n2(s),a)}function Wl(s,a){return function(f,p){var v=Ae(f)?B3:iF,E=a?a():{};return v(f,s,xe(p,2),E)}}function gs(s){return _e(function(a,f){var p=-1,v=f.length,E=v>1?f[v-1]:n,M=v>2?f[2]:n;for(E=s.length>3&&typeof E=="function"?(v--,E):n,M&&Dt(f[0],f[1],M)&&(E=v<3?n:E,v=1),a=Ge(a);++p<v;){var $=f[p];$&&s(a,$,p,E)}return a})}function zS(s,a){return function(f,p){if(f==null)return f;if(!jt(f))return s(f,p);for(var v=f.length,E=a?v:-1,M=Ge(f);(a?E--:++E<v)&&p(M[E],E,M)!==!1;);return f}}function GS(s){return function(a,f,p){for(var v=-1,E=Ge(a),M=p(a),$=M.length;$--;){var N=M[s?$:++v];if(f(E[N],N,E)===!1)break}return a}}function kF(s,a,f){var p=a&P,v=Uo(s);function E(){var M=this&&this!==bt&&this instanceof E?v:s;return M.apply(p?f:this,arguments)}return E}function YS(s){return function(a){a=Ve(a);var f=cs(a)?bn(a):n,p=f?f[0]:a.charAt(0),v=f?jr(f,1).join(""):a.slice(1);return p[s]()+v}}function ys(s){return function(a){return ph(z2(W2(a).replace(A3,"")),s,"")}}function Uo(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var f=ps(s.prototype),p=s.apply(f,a);return it(p)?p:f}}function FF(s,a,f){var p=Uo(s);function v(){for(var E=arguments.length,M=j(E),$=E,N=vs(v);$--;)M[$]=arguments[$];var U=E<3&&M[0]!==N&&M[E-1]!==N?[]:Rr(M,N);if(E-=U.length,E<f)return ZS(s,a,zl,v.placeholder,n,M,U,n,n,f-E);var W=this&&this!==bt&&this instanceof v?p:s;return Kt(W,this,M)}return v}function HS(s){return function(a,f,p){var v=Ge(a);if(!jt(a)){var E=xe(f,3);a=gt(a),f=function($){return E(v[$],$,v)}}var M=s(a,f,p);return M>-1?v[E?a[M]:M]:n}}function qS(s){return ir(function(a){var f=a.length,p=f,v=un.prototype.thru;for(s&&a.reverse();p--;){var E=a[p];if(typeof E!="function")throw new cn(l);if(v&&!M&&ql(E)=="wrapper")var M=new un([],!0)}for(p=M?p:f;++p<f;){E=a[p];var $=ql(E),N=$=="wrapper"?Kh(E):n;N&&Qh(N[0])&&N[1]==(V|O|C|F)&&!N[4].length&&N[9]==1?M=M[ql(N[0])].apply(M,N[3]):M=E.length==1&&Qh(E)?M[$]():M.thru(E)}return function(){var U=arguments,W=U[0];if(M&&U.length==1&&Ae(W))return M.plant(W).value();for(var G=0,te=f?a[G].apply(this,U):W;++G<f;)te=a[G].call(this,te);return te}})}function zl(s,a,f,p,v,E,M,$,N,U){var W=a&V,G=a&P,te=a&w,he=a&(O|D),Te=a&q,Me=te?n:Uo(s);function Ee(){for(var $e=arguments.length,Ne=j($e),Qt=$e;Qt--;)Ne[Qt]=arguments[Qt];if(he)var $t=vs(Ee),en=X3(Ne,$t);if(p&&(Ne=US(Ne,p,v,he)),E&&(Ne=WS(Ne,E,M,he)),$e-=en,he&&$e<U){var ut=Rr(Ne,$t);return ZS(s,a,zl,Ee.placeholder,f,Ne,ut,$,N,U-$e)}var Sn=G?f:this,lr=te?Sn[s]:s;return $e=Ne.length,$?Ne=ij(Ne,$):Te&&$e>1&&Ne.reverse(),W&&N<$e&&(Ne.length=N),this&&this!==bt&&this instanceof Ee&&(lr=Me||Uo(lr)),lr.apply(Sn,Ne)}return Ee}function KS(s,a){return function(f,p){return dF(f,s,a(p),{})}}function Gl(s,a){return function(f,p){var v;if(f===n&&p===n)return a;if(f!==n&&(v=f),p!==n){if(v===n)return p;typeof f=="string"||typeof p=="string"?(f=Zt(f),p=Zt(p)):(f=RS(f),p=RS(p)),v=s(f,p)}return v}}function Gh(s){return ir(function(a){return a=Qe(a,Xt(xe())),_e(function(f){var p=this;return s(a,function(v){return Kt(v,p,f)})})})}function Yl(s,a){a=a===n?" ":Zt(a);var f=a.length;if(f<2)return f?Fh(a,s):a;var p=Fh(a,Dl(s/us(a)));return cs(a)?jr(bn(p),0,s).join(""):p.slice(0,s)}function jF(s,a,f,p){var v=a&P,E=Uo(s);function M(){for(var $=-1,N=arguments.length,U=-1,W=p.length,G=j(W+N),te=this&&this!==bt&&this instanceof M?E:s;++U<W;)G[U]=p[U];for(;N--;)G[U++]=arguments[++$];return Kt(te,v?f:this,G)}return M}function XS(s){return function(a,f,p){return p&&typeof p!="number"&&Dt(a,f,p)&&(f=p=n),a=ar(a),f===n?(f=a,a=0):f=ar(f),p=p===n?a<f?1:-1:ar(p),EF(a,f,p,s)}}function Hl(s){return function(a,f){return typeof a=="string"&&typeof f=="string"||(a=mn(a),f=mn(f)),s(a,f)}}function ZS(s,a,f,p,v,E,M,$,N,U){var W=a&O,G=W?M:n,te=W?n:M,he=W?E:n,Te=W?n:E;a|=W?C:L,a&=~(W?L:C),a&A||(a&=-4);var Me=[s,a,v,he,G,Te,te,$,N,U],Ee=f.apply(n,Me);return Qh(s)&&c2(Ee,Me),Ee.placeholder=p,u2(Ee,s,a)}function Yh(s){var a=ht[s];return function(f,p){if(f=mn(f),p=p==null?0:At(Oe(p),292),p&&uS(f)){var v=(Ve(f)+"e").split("e"),E=a(v[0]+"e"+(+v[1]+p));return v=(Ve(E)+"e").split("e"),+(v[0]+"e"+(+v[1]-p))}return a(f)}}var VF=hs&&1/Sl(new hs([,-0]))[1]==z?function(s){return new hs(s)}:mm;function JS(s){return function(a){var f=Ot(a);return f==Le?Sh(a):f==qt?rk(a):K3(a,s(a))}}function rr(s,a,f,p,v,E,M,$){var N=a&w;if(!N&&typeof s!="function")throw new cn(l);var U=p?p.length:0;if(U||(a&=-97,p=v=n),M=M===n?M:mt(Oe(M),0),$=$===n?$:Oe($),U-=v?v.length:0,a&L){var W=p,G=v;p=v=n}var te=N?n:Kh(s),he=[s,a,f,p,v,W,G,E,M,$];if(te&&tj(he,te),s=he[0],a=he[1],f=he[2],p=he[3],v=he[4],$=he[9]=he[9]===n?N?0:s.length:mt(he[9]-U,0),!$&&a&(O|D)&&(a&=-25),!a||a==P)var Te=kF(s,a,f);else a==O||a==D?Te=FF(s,a,$):(a==C||a==(P|C))&&!v.length?Te=jF(s,a,f,p):Te=zl.apply(n,he);var Me=te?DS:c2;return u2(Me(Te,he),s,a)}function QS(s,a,f,p){return s===n||wn(s,ds[f])&&!We.call(p,f)?a:s}function e2(s,a,f,p,v,E){return it(s)&&it(a)&&(E.set(a,s),Vl(s,a,n,e2,E),E.delete(a)),s}function BF(s){return Go(s)?n:s}function t2(s,a,f,p,v,E){var M=f&S,$=s.length,N=a.length;if($!=N&&!(M&&N>$))return!1;var U=E.get(s),W=E.get(a);if(U&&W)return U==a&&W==s;var G=-1,te=!0,he=f&b?new mi:n;for(E.set(s,a),E.set(a,s);++G<$;){var Te=s[G],Me=a[G];if(p)var Ee=M?p(Me,Te,G,a,s,E):p(Te,Me,G,s,a,E);if(Ee!==n){if(Ee)continue;te=!1;break}if(he){if(!gh(a,function($e,Ne){if(!Io(he,Ne)&&(Te===$e||v(Te,$e,f,p,E)))return he.push(Ne)})){te=!1;break}}else if(!(Te===Me||v(Te,Me,f,p,E))){te=!1;break}}return E.delete(s),E.delete(a),te}function UF(s,a,f,p,v,E,M){switch(f){case Je:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case be:return!(s.byteLength!=a.byteLength||!E(new Ol(s),new Ol(a)));case ne:case me:case ft:return wn(+s,+a);case Ue:return s.name==a.name&&s.message==a.message;case ci:case yn:return s==a+"";case Le:var $=Sh;case qt:var N=p&S;if($||($=Sl),s.size!=a.size&&!N)return!1;var U=M.get(s);if(U)return U==a;p|=b,M.set(s,a);var W=t2($(s),$(a),p,v,E,M);return M.delete(s),W;case ui:if(Lo)return Lo.call(s)==Lo.call(a)}return!1}function WF(s,a,f,p,v,E){var M=f&S,$=Hh(s),N=$.length,U=Hh(a),W=U.length;if(N!=W&&!M)return!1;for(var G=N;G--;){var te=$[G];if(!(M?te in a:We.call(a,te)))return!1}var he=E.get(s),Te=E.get(a);if(he&&Te)return he==a&&Te==s;var Me=!0;E.set(s,a),E.set(a,s);for(var Ee=M;++G<N;){te=$[G];var $e=s[te],Ne=a[te];if(p)var Qt=M?p(Ne,$e,te,a,s,E):p($e,Ne,te,s,a,E);if(!(Qt===n?$e===Ne||v($e,Ne,f,p,E):Qt)){Me=!1;break}Ee||(Ee=te=="constructor")}if(Me&&!Ee){var $t=s.constructor,en=a.constructor;$t!=en&&"constructor"in s&&"constructor"in a&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return E.delete(s),E.delete(a),Me}function ir(s){return tm(a2(s,n,g2),s+"")}function Hh(s){return wS(s,gt,Zh)}function qh(s){return wS(s,Vt,n2)}var Kh=Rl?function(s){return Rl.get(s)}:mm;function ql(s){for(var a=s.name+"",f=ms[a],p=We.call(ms,a)?f.length:0;p--;){var v=f[p],E=v.func;if(E==null||E==s)return v.name}return a}function vs(s){var a=We.call(T,"placeholder")?T:s;return a.placeholder}function xe(){var s=T.iteratee||dm;return s=s===dm?ES:s,arguments.length?s(arguments[0],arguments[1]):s}function Kl(s,a){var f=s.__data__;return ZF(a)?f[typeof a=="string"?"string":"hash"]:f.map}function Xh(s){for(var a=gt(s),f=a.length;f--;){var p=a[f],v=s[p];a[f]=[p,v,s2(v)]}return a}function yi(s,a){var f=ek(s,a);return TS(f)?f:n}function zF(s){var a=We.call(s,di),f=s[di];try{s[di]=n;var p=!0}catch{}var v=Pl.call(s);return p&&(a?s[di]=f:delete s[di]),v}var Zh=Eh?function(s){return s==null?[]:(s=Ge(s),Dr(Eh(s),function(a){return lS.call(s,a)}))}:pm,n2=Eh?function(s){for(var a=[];s;)$r(a,Zh(s)),s=Ml(s);return a}:pm,Ot=It;(Ch&&Ot(new Ch(new ArrayBuffer(1)))!=Je||$o&&Ot(new $o)!=Le||Ph&&Ot(Ph.resolve())!=hl||hs&&Ot(new hs)!=qt||Ro&&Ot(new Ro)!=Ir)&&(Ot=function(s){var a=It(s),f=a==dt?s.constructor:n,p=f?vi(f):"";if(p)switch(p){case Pk:return Je;case Ak:return Le;case Ok:return hl;case Mk:return qt;case _k:return Ir}return a});function GF(s,a,f){for(var p=-1,v=f.length;++p<v;){var E=f[p],M=E.size;switch(E.type){case"drop":s+=M;break;case"dropRight":a-=M;break;case"take":a=At(a,s+M);break;case"takeRight":s=mt(s,a-M);break}}return{start:s,end:a}}function YF(s){var a=s.match(JL);return a?a[1].split(QL):[]}function r2(s,a,f){a=Fr(a,s);for(var p=-1,v=a.length,E=!1;++p<v;){var M=Vn(a[p]);if(!(E=s!=null&&f(s,M)))break;s=s[M]}return E||++p!=v?E:(v=s==null?0:s.length,!!v&&nc(v)&&sr(M,v)&&(Ae(s)||bi(s)))}function HF(s){var a=s.length,f=new s.constructor(a);return a&&typeof s[0]=="string"&&We.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function i2(s){return typeof s.constructor=="function"&&!Wo(s)?ps(Ml(s)):{}}function qF(s,a,f){var p=s.constructor;switch(a){case be:return zh(s);case ne:case me:return new p(+s);case Je:return IF(s,f);case Pt:case vn:case Qn:case Qd:case eh:case th:case nh:case rh:case ih:return VS(s,f);case Le:return new p;case ft:case yn:return new p(s);case ci:return DF(s);case qt:return new p;case ui:return $F(s)}}function KF(s,a){var f=a.length;if(!f)return s;var p=f-1;return a[p]=(f>1?"& ":"")+a[p],a=a.join(f>2?", ":" "),s.replace(ZL,`{
|
|
633
633
|
/* [wrapped with `+a+`] */
|
|
634
|
-
`)}function XF(s){return Ae(s)||bi(s)||!!(cS&&s&&s[cS])}function sr(s,a){var f=typeof s;return a=a??H,!!a&&(f=="number"||f!="symbol"&&l3.test(s))&&s>-1&&s%1==0&&s<a}function Dt(s,a,f){if(!it(f))return!1;var p=typeof a;return(p=="number"?jt(f)&&sr(a,f.length):p=="string"&&a in f)?wn(f[a],s):!1}function Jh(s,a){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:HL.test(s)||!YL.test(s)||a!=null&&s in Ge(a)}function ZF(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function Qh(s){var a=ql(s),f=T[a];if(typeof f!="function"||!(a in Re.prototype))return!1;if(s===f)return!0;var p=Kh(f);return!!p&&s===p[0]}function JF(s){return!!sS&&sS in s}var QF=El?or:gm;function Wo(s){var a=s&&s.constructor,f=typeof a=="function"&&a.prototype||ds;return s===f}function s2(s){return s===s&&!it(s)}function o2(s,a){return function(f){return f==null?!1:f[s]===a&&(a!==n||s in Ge(f))}}function ej(s){var a=ec(s,function(p){return f.size===d&&f.clear(),p}),f=a.cache;return a}function tj(s,a){var f=s[1],p=a[1],v=f|p,E=v<(P|w|V),M=p==V&&f==O||p==V&&f==F&&s[7].length<=a[8]||p==(V|F)&&a[7].length<=a[8]&&f==O;if(!(E||M))return s;p&P&&(s[2]=a[2],v|=f&P?0:A);var $=a[3];if($){var N=s[3];s[3]=N?US(N,$,a[4]):$,s[4]=N?Rr(s[3],h):a[4]}return $=a[5],$&&(N=s[5],s[5]=N?WS(N,$,a[6]):$,s[6]=N?Rr(s[5],h):a[6]),$=a[7],$&&(s[7]=$),p&V&&(s[8]=s[8]==null?a[8]:At(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=v,s}function nj(s){var a=[];if(s!=null)for(var f in Ge(s))a.push(f);return a}function rj(s){return Pl.call(s)}function a2(s,a,f){return a=mt(a===n?s.length-1:a,0),function(){for(var p=arguments,v=-1,E=mt(p.length-a,0),M=j(E);++v<E;)M[v]=p[a+v];v=-1;for(var $=j(a+1);++v<a;)$[v]=p[v];return $[a]=f(M),Kt(s,this,$)}}function l2(s,a){return a.length<2?s:gi(s,dn(a,0,-1))}function ij(s,a){for(var f=s.length,p=At(a.length,f),v=Ft(s);p--;){var E=a[p];s[p]=sr(E,f)?v[E]:n}return s}function em(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var c2=f2(DS),zo=bk||function(s,a){return bt.setTimeout(s,a)},tm=f2(AF);function u2(s,a,f){var p=a+"";return tm(s,KF(p,sj(YF(p),f)))}function f2(s){var a=0,f=0;return function(){var p=Tk(),v=ye-(p-f);if(f=p,v>0){if(++a>=ve)return arguments[0]}else a=0;return s.apply(n,arguments)}}function Xl(s,a){var f=-1,p=s.length,v=p-1;for(a=a===n?p:a;++f<a;){var E=kh(f,v),M=s[E];s[E]=s[f],s[f]=M}return s.length=a,s}var d2=ej(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(qL,function(f,p,v,E){a.push(v?E.replace(n3,"$1"):p||f)}),a});function Vn(s){if(typeof s=="string"||Jt(s))return s;var a=s+"";return a=="0"&&1/s==-1/0?"-0":a}function vi(s){if(s!=null){try{return Cl.call(s)}catch{}try{return s+""}catch{}}return""}function sj(s,a){return ln(le,function(f){var p="_."+f[0];a&f[1]&&!xl(s,p)&&s.push(p)}),s.sort()}function h2(s){if(s instanceof Re)return s.clone();var a=new un(s.__wrapped__,s.__chain__);return a.__actions__=Ft(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function oj(s,a,f){(f?Dt(s,a,f):a===n)?a=1:a=mt(Oe(a),0);var p=s==null?0:s.length;if(!p||a<1)return[];for(var v=0,E=0,M=j(Dl(p/a));v<p;)M[E++]=dn(s,v,v+=a);return M}function aj(s){for(var a=-1,f=s==null?0:s.length,p=0,v=[];++a<f;){var E=s[a];E&&(v[p++]=E)}return v}function lj(){var s=arguments.length;if(!s)return[];for(var a=j(s-1),f=arguments[0],p=s;p--;)a[p-1]=arguments[p];return $r(Ae(f)?Ft(f):[f],xt(a,1))}var cj=_e(function(s,a){return ct(s)?Fo(s,xt(a,1,ct,!0)):[]}),uj=_e(function(s,a){var f=hn(a);return ct(f)&&(f=n),ct(s)?Fo(s,xt(a,1,ct,!0),xe(f,2)):[]}),fj=_e(function(s,a){var f=hn(a);return ct(f)&&(f=n),ct(s)?Fo(s,xt(a,1,ct,!0),n,f):[]});function dj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),dn(s,a<0?0:a,p)):[]}function hj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),a=p-a,dn(s,0,a<0?0:a)):[]}function mj(s,a){return s&&s.length?Ul(s,xe(a,3),!0,!0):[]}function pj(s,a){return s&&s.length?Ul(s,xe(a,3),!0):[]}function gj(s,a,f,p){var v=s==null?0:s.length;return v?(f&&typeof f!="number"&&Dt(s,a,f)&&(f=0,p=v),lF(s,a,f,p)):[]}function m2(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Oe(f);return v<0&&(v=mt(p+v,0)),wl(s,xe(a,3),v)}function p2(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p-1;return f!==n&&(v=Oe(f),v=f<0?mt(p+v,0):At(v,p-1)),wl(s,xe(a,3),v,!0)}function g2(s){var a=s==null?0:s.length;return a?xt(s,1):[]}function yj(s){var a=s==null?0:s.length;return a?xt(s,K):[]}function vj(s,a){var f=s==null?0:s.length;return f?(a=a===n?1:Oe(a),xt(s,a)):[]}function bj(s){for(var a=-1,f=s==null?0:s.length,p={};++a<f;){var v=s[a];p[v[0]]=v[1]}return p}function y2(s){return s&&s.length?s[0]:n}function xj(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Oe(f);return v<0&&(v=mt(p+v,0)),ls(s,a,v)}function wj(s){var a=s==null?0:s.length;return a?dn(s,0,-1):[]}var Sj=_e(function(s){var a=Qe(s,Uh);return a.length&&a[0]===s[0]?Dh(a):[]}),Tj=_e(function(s){var a=hn(s),f=Qe(s,Uh);return a===hn(f)?a=n:f.pop(),f.length&&f[0]===s[0]?Dh(f,xe(a,2)):[]}),Ej=_e(function(s){var a=hn(s),f=Qe(s,Uh);return a=typeof a=="function"?a:n,a&&f.pop(),f.length&&f[0]===s[0]?Dh(f,n,a):[]});function Cj(s,a){return s==null?"":wk.call(s,a)}function hn(s){var a=s==null?0:s.length;return a?s[a-1]:n}function Pj(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p;return f!==n&&(v=Oe(f),v=v<0?mt(p+v,0):At(v,p-1)),a===a?sk(s,a,v):wl(s,Zw,v,!0)}function Aj(s,a){return s&&s.length?OS(s,Oe(a)):n}var Oj=_e(v2);function v2(s,a){return s&&s.length&&a&&a.length?Lh(s,a):s}function Mj(s,a,f){return s&&s.length&&a&&a.length?Lh(s,a,xe(f,2)):s}function _j(s,a,f){return s&&s.length&&a&&a.length?Lh(s,a,n,f):s}var Ij=ir(function(s,a){var f=s==null?0:s.length,p=Oh(s,a);return IS(s,Qe(a,function(v){return sr(v,f)?+v:v}).sort(BS)),p});function Dj(s,a){var f=[];if(!(s&&s.length))return f;var p=-1,v=[],E=s.length;for(a=xe(a,3);++p<E;){var M=s[p];a(M,p,s)&&(f.push(M),v.push(p))}return IS(s,v),f}function nm(s){return s==null?s:Ck.call(s)}function $j(s,a,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Dt(s,a,f)?(a=0,f=p):(a=a==null?0:Oe(a),f=f===n?p:Oe(f)),dn(s,a,f)):[]}function Rj(s,a){return Bl(s,a)}function Nj(s,a,f){return jh(s,a,xe(f,2))}function Lj(s,a){var f=s==null?0:s.length;if(f){var p=Bl(s,a);if(p<f&&wn(s[p],a))return p}return-1}function kj(s,a){return Bl(s,a,!0)}function Fj(s,a,f){return jh(s,a,xe(f,2),!0)}function jj(s,a){var f=s==null?0:s.length;if(f){var p=Bl(s,a,!0)-1;if(wn(s[p],a))return p}return-1}function Vj(s){return s&&s.length?$S(s):[]}function Bj(s,a){return s&&s.length?$S(s,xe(a,2)):[]}function Uj(s){var a=s==null?0:s.length;return a?dn(s,1,a):[]}function Wj(s,a,f){return s&&s.length?(a=f||a===n?1:Oe(a),dn(s,0,a<0?0:a)):[]}function zj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),a=p-a,dn(s,a<0?0:a,p)):[]}function Gj(s,a){return s&&s.length?Ul(s,xe(a,3),!1,!0):[]}function Yj(s,a){return s&&s.length?Ul(s,xe(a,3)):[]}var Hj=_e(function(s){return kr(xt(s,1,ct,!0))}),qj=_e(function(s){var a=hn(s);return ct(a)&&(a=n),kr(xt(s,1,ct,!0),xe(a,2))}),Kj=_e(function(s){var a=hn(s);return a=typeof a=="function"?a:n,kr(xt(s,1,ct,!0),n,a)});function Xj(s){return s&&s.length?kr(s):[]}function Zj(s,a){return s&&s.length?kr(s,xe(a,2)):[]}function Jj(s,a){return a=typeof a=="function"?a:n,s&&s.length?kr(s,n,a):[]}function rm(s){if(!(s&&s.length))return[];var a=0;return s=Dr(s,function(f){if(ct(f))return a=mt(f.length,a),!0}),xh(a,function(f){return Qe(s,yh(f))})}function b2(s,a){if(!(s&&s.length))return[];var f=rm(s);return a==null?f:Qe(f,function(p){return Kt(a,n,p)})}var Qj=_e(function(s,a){return ct(s)?Fo(s,a):[]}),eV=_e(function(s){return Bh(Dr(s,ct))}),tV=_e(function(s){var a=hn(s);return ct(a)&&(a=n),Bh(Dr(s,ct),xe(a,2))}),nV=_e(function(s){var a=hn(s);return a=typeof a=="function"?a:n,Bh(Dr(s,ct),n,a)}),rV=_e(rm);function iV(s,a){return kS(s||[],a||[],ko)}function sV(s,a){return kS(s||[],a||[],Bo)}var oV=_e(function(s){var a=s.length,f=a>1?s[a-1]:n;return f=typeof f=="function"?(s.pop(),f):n,b2(s,f)});function x2(s){var a=T(s);return a.__chain__=!0,a}function aV(s,a){return a(s),s}function Zl(s,a){return a(s)}var lV=ir(function(s){var a=s.length,f=a?s[0]:0,p=this.__wrapped__,v=function(E){return Oh(E,s)};return a>1||this.__actions__.length||!(p instanceof Re)||!sr(f)?this.thru(v):(p=p.slice(f,+f+(a?1:0)),p.__actions__.push({func:Zl,args:[v],thisArg:n}),new un(p,this.__chain__).thru(function(E){return a&&!E.length&&E.push(n),E}))});function cV(){return x2(this)}function uV(){return new un(this.value(),this.__chain__)}function fV(){this.__values__===n&&(this.__values__=R2(this.value()));var s=this.__index__>=this.__values__.length,a=s?n:this.__values__[this.__index__++];return{done:s,value:a}}function dV(){return this}function hV(s){for(var a,f=this;f instanceof Ll;){var p=h2(f);p.__index__=0,p.__values__=n,a?v.__wrapped__=p:a=p;var v=p;f=f.__wrapped__}return v.__wrapped__=s,a}function mV(){var s=this.__wrapped__;if(s instanceof Re){var a=s;return this.__actions__.length&&(a=new Re(this)),a=a.reverse(),a.__actions__.push({func:Zl,args:[nm],thisArg:n}),new un(a,this.__chain__)}return this.thru(nm)}function pV(){return LS(this.__wrapped__,this.__actions__)}var gV=Wl(function(s,a,f){We.call(s,f)?++s[f]:nr(s,f,1)});function yV(s,a,f){var p=Ae(s)?Kw:aF;return f&&Dt(s,a,f)&&(a=n),p(s,xe(a,3))}function vV(s,a){var f=Ae(s)?Dr:bS;return f(s,xe(a,3))}var bV=HS(m2),xV=HS(p2);function wV(s,a){return xt(Jl(s,a),1)}function SV(s,a){return xt(Jl(s,a),K)}function TV(s,a,f){return f=f===n?1:Oe(f),xt(Jl(s,a),f)}function w2(s,a){var f=Ae(s)?ln:Lr;return f(s,xe(a,3))}function S2(s,a){var f=Ae(s)?U3:vS;return f(s,xe(a,3))}var EV=Wl(function(s,a,f){We.call(s,f)?s[f].push(a):nr(s,f,[a])});function CV(s,a,f,p){s=jt(s)?s:xs(s),f=f&&!p?Oe(f):0;var v=s.length;return f<0&&(f=mt(v+f,0)),rc(s)?f<=v&&s.indexOf(a,f)>-1:!!v&&ls(s,a,f)>-1}var PV=_e(function(s,a,f){var p=-1,v=typeof a=="function",E=jt(s)?j(s.length):[];return Lr(s,function(M){E[++p]=v?Kt(a,M,f):jo(M,a,f)}),E}),AV=Wl(function(s,a,f){nr(s,f,a)});function Jl(s,a){var f=Ae(s)?Qe:CS;return f(s,xe(a,3))}function OV(s,a,f,p){return s==null?[]:(Ae(a)||(a=a==null?[]:[a]),f=p?n:f,Ae(f)||(f=f==null?[]:[f]),MS(s,a,f))}var MV=Wl(function(s,a,f){s[f?0:1].push(a)},function(){return[[],[]]});function _V(s,a,f){var p=Ae(s)?ph:Qw,v=arguments.length<3;return p(s,xe(a,4),f,v,Lr)}function IV(s,a,f){var p=Ae(s)?W3:Qw,v=arguments.length<3;return p(s,xe(a,4),f,v,vS)}function DV(s,a){var f=Ae(s)?Dr:bS;return f(s,tc(xe(a,3)))}function $V(s){var a=Ae(s)?mS:CF;return a(s)}function RV(s,a,f){(f?Dt(s,a,f):a===n)?a=1:a=Oe(a);var p=Ae(s)?nF:PF;return p(s,a)}function NV(s){var a=Ae(s)?rF:OF;return a(s)}function LV(s){if(s==null)return 0;if(jt(s))return rc(s)?us(s):s.length;var a=Ot(s);return a==Le||a==qt?s.size:Rh(s).length}function kV(s,a,f){var p=Ae(s)?gh:MF;return f&&Dt(s,a,f)&&(a=n),p(s,xe(a,3))}var FV=_e(function(s,a){if(s==null)return[];var f=a.length;return f>1&&Dt(s,a[0],a[1])?a=[]:f>2&&Dt(a[0],a[1],a[2])&&(a=[a[0]]),MS(s,xt(a,1),[])}),Ql=vk||function(){return bt.Date.now()};function jV(s,a){if(typeof a!="function")throw new cn(l);return s=Oe(s),function(){if(--s<1)return a.apply(this,arguments)}}function T2(s,a,f){return a=f?n:a,a=s&&a==null?s.length:a,rr(s,V,n,n,n,n,a)}function E2(s,a){var f;if(typeof a!="function")throw new cn(l);return s=Oe(s),function(){return--s>0&&(f=a.apply(this,arguments)),s<=1&&(a=n),f}}var im=_e(function(s,a,f){var p=P;if(f.length){var v=Rr(f,vs(im));p|=C}return rr(s,p,a,f,v)}),C2=_e(function(s,a,f){var p=P|w;if(f.length){var v=Rr(f,vs(C2));p|=C}return rr(a,p,s,f,v)});function P2(s,a,f){a=f?n:a;var p=rr(s,O,n,n,n,n,n,a);return p.placeholder=P2.placeholder,p}function A2(s,a,f){a=f?n:a;var p=rr(s,D,n,n,n,n,n,a);return p.placeholder=A2.placeholder,p}function O2(s,a,f){var p,v,E,M,$,N,U=0,W=!1,z=!1,ne=!0;if(typeof s!="function")throw new cn(l);a=mn(a)||0,it(f)&&(W=!!f.leading,z="maxWait"in f,E=z?mt(mn(f.maxWait)||0,a):E,ne="trailing"in f?!!f.trailing:ne);function he(ut){var Sn=p,lr=v;return p=v=n,U=ut,M=s.apply(lr,Sn),M}function Te(ut){return U=ut,$=zo($e,a),W?he(ut):M}function Me(ut){var Sn=ut-N,lr=ut-U,H2=a-Sn;return z?At(H2,E-lr):H2}function Ee(ut){var Sn=ut-N,lr=ut-U;return N===n||Sn>=a||Sn<0||z&&lr>=E}function $e(){var ut=Ql();if(Ee(ut))return Ne(ut);$=zo($e,Me(ut))}function Ne(ut){return $=n,ne&&p?he(ut):(p=v=n,M)}function Qt(){$!==n&&FS($),U=0,p=N=v=$=n}function $t(){return $===n?M:Ne(Ql())}function en(){var ut=Ql(),Sn=Ee(ut);if(p=arguments,v=this,N=ut,Sn){if($===n)return Te(N);if(z)return FS($),$=zo($e,a),he(N)}return $===n&&($=zo($e,a)),M}return en.cancel=Qt,en.flush=$t,en}var VV=_e(function(s,a){return yS(s,1,a)}),BV=_e(function(s,a,f){return yS(s,mn(a)||0,f)});function UV(s){return rr(s,Y)}function ec(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cn(l);var f=function(){var p=arguments,v=a?a.apply(this,p):p[0],E=f.cache;if(E.has(v))return E.get(v);var M=s.apply(this,p);return f.cache=E.set(v,M)||E,M};return f.cache=new(ec.Cache||tr),f}ec.Cache=tr;function tc(s){if(typeof s!="function")throw new cn(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function WV(s){return E2(2,s)}var zV=_F(function(s,a){a=a.length==1&&Ae(a[0])?Qe(a[0],Xt(xe())):Qe(xt(a,1),Xt(xe()));var f=a.length;return _e(function(p){for(var v=-1,E=At(p.length,f);++v<E;)p[v]=a[v].call(this,p[v]);return Kt(s,this,p)})}),sm=_e(function(s,a){var f=Rr(a,vs(sm));return rr(s,C,n,a,f)}),M2=_e(function(s,a){var f=Rr(a,vs(M2));return rr(s,L,n,a,f)}),GV=ir(function(s,a){return rr(s,F,n,n,n,a)});function YV(s,a){if(typeof s!="function")throw new cn(l);return a=a===n?a:Oe(a),_e(s,a)}function HV(s,a){if(typeof s!="function")throw new cn(l);return a=a==null?0:mt(Oe(a),0),_e(function(f){var p=f[a],v=jr(f,0,a);return p&&$r(v,p),Kt(s,this,v)})}function qV(s,a,f){var p=!0,v=!0;if(typeof s!="function")throw new cn(l);return it(f)&&(p="leading"in f?!!f.leading:p,v="trailing"in f?!!f.trailing:v),O2(s,a,{leading:p,maxWait:a,trailing:v})}function KV(s){return T2(s,1)}function XV(s,a){return sm(Wh(a),s)}function ZV(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function JV(s){return fn(s,y)}function QV(s,a){return a=typeof a=="function"?a:n,fn(s,y,a)}function eB(s){return fn(s,m|y)}function tB(s,a){return a=typeof a=="function"?a:n,fn(s,m|y,a)}function nB(s,a){return a==null||gS(s,a,gt(a))}function wn(s,a){return s===a||s!==s&&a!==a}var rB=Hl(Ih),iB=Hl(function(s,a){return s>=a}),bi=SS(function(){return arguments}())?SS:function(s){return ot(s)&&We.call(s,"callee")&&!lS.call(s,"callee")},Ae=j.isArray,sB=Ww?Xt(Ww):hF;function jt(s){return s!=null&&nc(s.length)&&!or(s)}function ct(s){return ot(s)&&jt(s)}function oB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Vr=xk||gm,aB=zw?Xt(zw):mF;function lB(s){return ot(s)&&s.nodeType===1&&!Go(s)}function cB(s){if(s==null)return!0;if(jt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Vr(s)||bs(s)||bi(s)))return!s.length;var a=Ot(s);if(a==Le||a==qt)return!s.size;if(Wo(s))return!Rh(s).length;for(var f in s)if(We.call(s,f))return!1;return!0}function uB(s,a){return Vo(s,a)}function fB(s,a,f){f=typeof f=="function"?f:n;var p=f?f(s,a):n;return p===n?Vo(s,a,n,f):!!p}function om(s){if(!ot(s))return!1;var a=It(s);return a==Ue||a==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Go(s)}function dB(s){return typeof s=="number"&&uS(s)}function or(s){if(!it(s))return!1;var a=It(s);return a==ee||a==pe||a==de||a==ml}function _2(s){return typeof s=="number"&&s==Oe(s)}function nc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=H}function it(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function ot(s){return s!=null&&typeof s=="object"}var I2=Gw?Xt(Gw):gF;function hB(s,a){return s===a||$h(s,a,Xh(a))}function mB(s,a,f){return f=typeof f=="function"?f:n,$h(s,a,Xh(a),f)}function pB(s){return D2(s)&&s!=+s}function gB(s){if(QF(s))throw new Pe(o);return TS(s)}function yB(s){return s===null}function vB(s){return s==null}function D2(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Go(s){if(!ot(s)||It(s)!=dt)return!1;var a=Ml(s);if(a===null)return!0;var f=We.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Cl.call(f)==mk}var am=Yw?Xt(Yw):yF;function bB(s){return _2(s)&&s>=-9007199254740991&&s<=H}var $2=Hw?Xt(Hw):vF;function rc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==yn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==ui}var bs=qw?Xt(qw):bF;function xB(s){return s===n}function wB(s){return ot(s)&&Ot(s)==Ir}function SB(s){return ot(s)&&It(s)==gl}var TB=Hl(Nh),EB=Hl(function(s,a){return s<=a});function R2(s){if(!s)return[];if(jt(s))return rc(s)?bn(s):Ft(s);if(Do&&s[Do])return nk(s[Do]());var a=Ot(s),f=a==Le?Sh:a==qt?Sl:xs;return f(s)}function ar(s){if(!s)return s===0?s:0;if(s=mn(s),s===K||s===-1/0){var a=s<0?-1:1;return a*J}return s===s?s:0}function Oe(s){var a=ar(s),f=a%1;return a===a?f?a-f:a:0}function N2(s){return s?pi(Oe(s),0,k):0}function mn(s){if(typeof s=="number")return s;if(Jt(s))return _;if(it(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=it(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=eS(s);var f=s3.test(s);return f||a3.test(s)?j3(s.slice(2),f?2:8):i3.test(s)?_:+s}function L2(s){return jn(s,Vt(s))}function CB(s){return s?pi(Oe(s),-9007199254740991,H):s===0?s:0}function Ve(s){return s==null?"":Zt(s)}var PB=gs(function(s,a){if(Wo(a)||jt(a)){jn(a,gt(a),s);return}for(var f in a)We.call(a,f)&&ko(s,f,a[f])}),k2=gs(function(s,a){jn(a,Vt(a),s)}),ic=gs(function(s,a,f,p){jn(a,Vt(a),s,p)}),AB=gs(function(s,a,f,p){jn(a,gt(a),s,p)}),OB=ir(Oh);function MB(s,a){var f=ps(s);return a==null?f:pS(f,a)}var _B=_e(function(s,a){s=Ge(s);var f=-1,p=a.length,v=p>2?a[2]:n;for(v&&Dt(a[0],a[1],v)&&(p=1);++f<p;)for(var E=a[f],M=Vt(E),$=-1,N=M.length;++$<N;){var U=M[$],W=s[U];(W===n||wn(W,ds[U])&&!We.call(s,U))&&(s[U]=E[U])}return s}),IB=_e(function(s){return s.push(n,e2),Kt(F2,n,s)});function DB(s,a){return Xw(s,xe(a,3),Fn)}function $B(s,a){return Xw(s,xe(a,3),_h)}function RB(s,a){return s==null?s:Mh(s,xe(a,3),Vt)}function NB(s,a){return s==null?s:xS(s,xe(a,3),Vt)}function LB(s,a){return s&&Fn(s,xe(a,3))}function kB(s,a){return s&&_h(s,xe(a,3))}function FB(s){return s==null?[]:jl(s,gt(s))}function jB(s){return s==null?[]:jl(s,Vt(s))}function lm(s,a,f){var p=s==null?n:gi(s,a);return p===n?f:p}function VB(s,a){return s!=null&&r2(s,a,cF)}function cm(s,a){return s!=null&&r2(s,a,uF)}var BB=KS(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Pl.call(a)),s[a]=f},fm(Bt)),UB=KS(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Pl.call(a)),We.call(s,a)?s[a].push(f):s[a]=[f]},xe),WB=_e(jo);function gt(s){return jt(s)?hS(s):Rh(s)}function Vt(s){return jt(s)?hS(s,!0):xF(s)}function zB(s,a){var f={};return a=xe(a,3),Fn(s,function(p,v,E){nr(f,a(p,v,E),p)}),f}function GB(s,a){var f={};return a=xe(a,3),Fn(s,function(p,v,E){nr(f,v,a(p,v,E))}),f}var YB=gs(function(s,a,f){Vl(s,a,f)}),F2=gs(function(s,a,f,p){Vl(s,a,f,p)}),HB=ir(function(s,a){var f={};if(s==null)return f;var p=!1;a=Qe(a,function(E){return E=Fr(E,s),p||(p=E.length>1),E}),jn(s,qh(s),f),p&&(f=fn(f,m|g|y,BF));for(var v=a.length;v--;)Vh(f,a[v]);return f});function qB(s,a){return j2(s,tc(xe(a)))}var KB=ir(function(s,a){return s==null?{}:SF(s,a)});function j2(s,a){if(s==null)return{};var f=Qe(qh(s),function(p){return[p]});return a=xe(a),_S(s,f,function(p,v){return a(p,v[0])})}function XB(s,a,f){a=Fr(a,s);var p=-1,v=a.length;for(v||(v=1,s=n);++p<v;){var E=s==null?n:s[Vn(a[p])];E===n&&(p=v,E=f),s=or(E)?E.call(s):E}return s}function ZB(s,a,f){return s==null?s:Bo(s,a,f)}function JB(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:Bo(s,a,f,p)}var V2=JS(gt),B2=JS(Vt);function QB(s,a,f){var p=Ae(s),v=p||Vr(s)||bs(s);if(a=xe(a,4),f==null){var E=s&&s.constructor;v?f=p?new E:[]:it(s)?f=or(E)?ps(Ml(s)):{}:f={}}return(v?ln:Fn)(s,function(M,$,N){return a(f,M,$,N)}),f}function e8(s,a){return s==null?!0:Vh(s,a)}function t8(s,a,f){return s==null?s:NS(s,a,Wh(f))}function n8(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:NS(s,a,Wh(f),p)}function xs(s){return s==null?[]:wh(s,gt(s))}function r8(s){return s==null?[]:wh(s,Vt(s))}function i8(s,a,f){return f===n&&(f=a,a=n),f!==n&&(f=mn(f),f=f===f?f:0),a!==n&&(a=mn(a),a=a===a?a:0),pi(mn(s),a,f)}function s8(s,a,f){return a=ar(a),f===n?(f=a,a=0):f=ar(f),s=mn(s),fF(s,a,f)}function o8(s,a,f){if(f&&typeof f!="boolean"&&Dt(s,a,f)&&(a=f=n),f===n&&(typeof a=="boolean"?(f=a,a=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&a===n?(s=0,a=1):(s=ar(s),a===n?(a=s,s=0):a=ar(a)),s>a){var p=s;s=a,a=p}if(f||s%1||a%1){var v=fS();return At(s+v*(a-s+F3("1e-"+((v+"").length-1))),a)}return kh(s,a)}var a8=ys(function(s,a,f){return a=a.toLowerCase(),s+(f?U2(a):a)});function U2(s){return um(Ve(s).toLowerCase())}function W2(s){return s=Ve(s),s&&s.replace(c3,Z3).replace(O3,"")}function l8(s,a,f){s=Ve(s),a=Zt(a);var p=s.length;f=f===n?p:pi(Oe(f),0,p);var v=f;return f-=a.length,f>=0&&s.slice(f,v)==a}function c8(s){return s=Ve(s),s&&WL.test(s)?s.replace(xw,J3):s}function u8(s){return s=Ve(s),s&&KL.test(s)?s.replace(sh,"\\$&"):s}var f8=ys(function(s,a,f){return s+(f?"-":"")+a.toLowerCase()}),d8=ys(function(s,a,f){return s+(f?" ":"")+a.toLowerCase()}),h8=YS("toLowerCase");function m8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;if(!a||p>=a)return s;var v=(a-p)/2;return Yl($l(v),f)+s+Yl(Dl(v),f)}function p8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;return a&&p<a?s+Yl(a-p,f):s}function g8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;return a&&p<a?Yl(a-p,f)+s:s}function y8(s,a,f){return f||a==null?a=0:a&&(a=+a),Ek(Ve(s).replace(oh,""),a||0)}function v8(s,a,f){return(f?Dt(s,a,f):a===n)?a=1:a=Oe(a),Fh(Ve(s),a)}function b8(){var s=arguments,a=Ve(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var x8=ys(function(s,a,f){return s+(f?"_":"")+a.toLowerCase()});function w8(s,a,f){return f&&typeof f!="number"&&Dt(s,a,f)&&(a=f=n),f=f===n?k:f>>>0,f?(s=Ve(s),s&&(typeof a=="string"||a!=null&&!am(a))&&(a=Zt(a),!a&&cs(s))?jr(bn(s),0,f):s.split(a,f)):[]}var S8=ys(function(s,a,f){return s+(f?" ":"")+um(a)});function T8(s,a,f){return s=Ve(s),f=f==null?0:pi(Oe(f),0,s.length),a=Zt(a),s.slice(f,f+a.length)==a}function E8(s,a,f){var p=T.templateSettings;f&&Dt(s,a,f)&&(a=n),s=Ve(s),a=ic({},a,p,QS);var v=ic({},a.imports,p.imports,QS),E=gt(v),M=wh(v,E),$,N,U=0,W=a.interpolate||yl,z="__p += '",ne=Th((a.escape||yl).source+"|"+W.source+"|"+(W===ww?r3:yl).source+"|"+(a.evaluate||yl).source+"|$","g"),he="//# sourceURL="+(We.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$3+"]")+`
|
|
635
|
-
`;s.replace(
|
|
634
|
+
`)}function XF(s){return Ae(s)||bi(s)||!!(cS&&s&&s[cS])}function sr(s,a){var f=typeof s;return a=a??Y,!!a&&(f=="number"||f!="symbol"&&l3.test(s))&&s>-1&&s%1==0&&s<a}function Dt(s,a,f){if(!it(f))return!1;var p=typeof a;return(p=="number"?jt(f)&&sr(a,f.length):p=="string"&&a in f)?wn(f[a],s):!1}function Jh(s,a){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:HL.test(s)||!YL.test(s)||a!=null&&s in Ge(a)}function ZF(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function Qh(s){var a=ql(s),f=T[a];if(typeof f!="function"||!(a in Re.prototype))return!1;if(s===f)return!0;var p=Kh(f);return!!p&&s===p[0]}function JF(s){return!!sS&&sS in s}var QF=El?or:gm;function Wo(s){var a=s&&s.constructor,f=typeof a=="function"&&a.prototype||ds;return s===f}function s2(s){return s===s&&!it(s)}function o2(s,a){return function(f){return f==null?!1:f[s]===a&&(a!==n||s in Ge(f))}}function ej(s){var a=ec(s,function(p){return f.size===d&&f.clear(),p}),f=a.cache;return a}function tj(s,a){var f=s[1],p=a[1],v=f|p,E=v<(P|w|V),M=p==V&&f==O||p==V&&f==F&&s[7].length<=a[8]||p==(V|F)&&a[7].length<=a[8]&&f==O;if(!(E||M))return s;p&P&&(s[2]=a[2],v|=f&P?0:A);var $=a[3];if($){var N=s[3];s[3]=N?US(N,$,a[4]):$,s[4]=N?Rr(s[3],h):a[4]}return $=a[5],$&&(N=s[5],s[5]=N?WS(N,$,a[6]):$,s[6]=N?Rr(s[5],h):a[6]),$=a[7],$&&(s[7]=$),p&V&&(s[8]=s[8]==null?a[8]:At(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=v,s}function nj(s){var a=[];if(s!=null)for(var f in Ge(s))a.push(f);return a}function rj(s){return Pl.call(s)}function a2(s,a,f){return a=mt(a===n?s.length-1:a,0),function(){for(var p=arguments,v=-1,E=mt(p.length-a,0),M=j(E);++v<E;)M[v]=p[a+v];v=-1;for(var $=j(a+1);++v<a;)$[v]=p[v];return $[a]=f(M),Kt(s,this,$)}}function l2(s,a){return a.length<2?s:gi(s,dn(a,0,-1))}function ij(s,a){for(var f=s.length,p=At(a.length,f),v=Ft(s);p--;){var E=a[p];s[p]=sr(E,f)?v[E]:n}return s}function em(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var c2=f2(DS),zo=bk||function(s,a){return bt.setTimeout(s,a)},tm=f2(AF);function u2(s,a,f){var p=a+"";return tm(s,KF(p,sj(YF(p),f)))}function f2(s){var a=0,f=0;return function(){var p=Tk(),v=ye-(p-f);if(f=p,v>0){if(++a>=ve)return arguments[0]}else a=0;return s.apply(n,arguments)}}function Xl(s,a){var f=-1,p=s.length,v=p-1;for(a=a===n?p:a;++f<a;){var E=kh(f,v),M=s[E];s[E]=s[f],s[f]=M}return s.length=a,s}var d2=ej(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(qL,function(f,p,v,E){a.push(v?E.replace(n3,"$1"):p||f)}),a});function Vn(s){if(typeof s=="string"||Jt(s))return s;var a=s+"";return a=="0"&&1/s==-1/0?"-0":a}function vi(s){if(s!=null){try{return Cl.call(s)}catch{}try{return s+""}catch{}}return""}function sj(s,a){return ln(le,function(f){var p="_."+f[0];a&f[1]&&!xl(s,p)&&s.push(p)}),s.sort()}function h2(s){if(s instanceof Re)return s.clone();var a=new un(s.__wrapped__,s.__chain__);return a.__actions__=Ft(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function oj(s,a,f){(f?Dt(s,a,f):a===n)?a=1:a=mt(Oe(a),0);var p=s==null?0:s.length;if(!p||a<1)return[];for(var v=0,E=0,M=j(Dl(p/a));v<p;)M[E++]=dn(s,v,v+=a);return M}function aj(s){for(var a=-1,f=s==null?0:s.length,p=0,v=[];++a<f;){var E=s[a];E&&(v[p++]=E)}return v}function lj(){var s=arguments.length;if(!s)return[];for(var a=j(s-1),f=arguments[0],p=s;p--;)a[p-1]=arguments[p];return $r(Ae(f)?Ft(f):[f],xt(a,1))}var cj=_e(function(s,a){return ct(s)?Fo(s,xt(a,1,ct,!0)):[]}),uj=_e(function(s,a){var f=hn(a);return ct(f)&&(f=n),ct(s)?Fo(s,xt(a,1,ct,!0),xe(f,2)):[]}),fj=_e(function(s,a){var f=hn(a);return ct(f)&&(f=n),ct(s)?Fo(s,xt(a,1,ct,!0),n,f):[]});function dj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),dn(s,a<0?0:a,p)):[]}function hj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),a=p-a,dn(s,0,a<0?0:a)):[]}function mj(s,a){return s&&s.length?Ul(s,xe(a,3),!0,!0):[]}function pj(s,a){return s&&s.length?Ul(s,xe(a,3),!0):[]}function gj(s,a,f,p){var v=s==null?0:s.length;return v?(f&&typeof f!="number"&&Dt(s,a,f)&&(f=0,p=v),lF(s,a,f,p)):[]}function m2(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Oe(f);return v<0&&(v=mt(p+v,0)),wl(s,xe(a,3),v)}function p2(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p-1;return f!==n&&(v=Oe(f),v=f<0?mt(p+v,0):At(v,p-1)),wl(s,xe(a,3),v,!0)}function g2(s){var a=s==null?0:s.length;return a?xt(s,1):[]}function yj(s){var a=s==null?0:s.length;return a?xt(s,z):[]}function vj(s,a){var f=s==null?0:s.length;return f?(a=a===n?1:Oe(a),xt(s,a)):[]}function bj(s){for(var a=-1,f=s==null?0:s.length,p={};++a<f;){var v=s[a];p[v[0]]=v[1]}return p}function y2(s){return s&&s.length?s[0]:n}function xj(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=f==null?0:Oe(f);return v<0&&(v=mt(p+v,0)),ls(s,a,v)}function wj(s){var a=s==null?0:s.length;return a?dn(s,0,-1):[]}var Sj=_e(function(s){var a=Qe(s,Uh);return a.length&&a[0]===s[0]?Dh(a):[]}),Tj=_e(function(s){var a=hn(s),f=Qe(s,Uh);return a===hn(f)?a=n:f.pop(),f.length&&f[0]===s[0]?Dh(f,xe(a,2)):[]}),Ej=_e(function(s){var a=hn(s),f=Qe(s,Uh);return a=typeof a=="function"?a:n,a&&f.pop(),f.length&&f[0]===s[0]?Dh(f,n,a):[]});function Cj(s,a){return s==null?"":wk.call(s,a)}function hn(s){var a=s==null?0:s.length;return a?s[a-1]:n}function Pj(s,a,f){var p=s==null?0:s.length;if(!p)return-1;var v=p;return f!==n&&(v=Oe(f),v=v<0?mt(p+v,0):At(v,p-1)),a===a?sk(s,a,v):wl(s,Zw,v,!0)}function Aj(s,a){return s&&s.length?OS(s,Oe(a)):n}var Oj=_e(v2);function v2(s,a){return s&&s.length&&a&&a.length?Lh(s,a):s}function Mj(s,a,f){return s&&s.length&&a&&a.length?Lh(s,a,xe(f,2)):s}function _j(s,a,f){return s&&s.length&&a&&a.length?Lh(s,a,n,f):s}var Ij=ir(function(s,a){var f=s==null?0:s.length,p=Oh(s,a);return IS(s,Qe(a,function(v){return sr(v,f)?+v:v}).sort(BS)),p});function Dj(s,a){var f=[];if(!(s&&s.length))return f;var p=-1,v=[],E=s.length;for(a=xe(a,3);++p<E;){var M=s[p];a(M,p,s)&&(f.push(M),v.push(p))}return IS(s,v),f}function nm(s){return s==null?s:Ck.call(s)}function $j(s,a,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Dt(s,a,f)?(a=0,f=p):(a=a==null?0:Oe(a),f=f===n?p:Oe(f)),dn(s,a,f)):[]}function Rj(s,a){return Bl(s,a)}function Nj(s,a,f){return jh(s,a,xe(f,2))}function Lj(s,a){var f=s==null?0:s.length;if(f){var p=Bl(s,a);if(p<f&&wn(s[p],a))return p}return-1}function kj(s,a){return Bl(s,a,!0)}function Fj(s,a,f){return jh(s,a,xe(f,2),!0)}function jj(s,a){var f=s==null?0:s.length;if(f){var p=Bl(s,a,!0)-1;if(wn(s[p],a))return p}return-1}function Vj(s){return s&&s.length?$S(s):[]}function Bj(s,a){return s&&s.length?$S(s,xe(a,2)):[]}function Uj(s){var a=s==null?0:s.length;return a?dn(s,1,a):[]}function Wj(s,a,f){return s&&s.length?(a=f||a===n?1:Oe(a),dn(s,0,a<0?0:a)):[]}function zj(s,a,f){var p=s==null?0:s.length;return p?(a=f||a===n?1:Oe(a),a=p-a,dn(s,a<0?0:a,p)):[]}function Gj(s,a){return s&&s.length?Ul(s,xe(a,3),!1,!0):[]}function Yj(s,a){return s&&s.length?Ul(s,xe(a,3)):[]}var Hj=_e(function(s){return kr(xt(s,1,ct,!0))}),qj=_e(function(s){var a=hn(s);return ct(a)&&(a=n),kr(xt(s,1,ct,!0),xe(a,2))}),Kj=_e(function(s){var a=hn(s);return a=typeof a=="function"?a:n,kr(xt(s,1,ct,!0),n,a)});function Xj(s){return s&&s.length?kr(s):[]}function Zj(s,a){return s&&s.length?kr(s,xe(a,2)):[]}function Jj(s,a){return a=typeof a=="function"?a:n,s&&s.length?kr(s,n,a):[]}function rm(s){if(!(s&&s.length))return[];var a=0;return s=Dr(s,function(f){if(ct(f))return a=mt(f.length,a),!0}),xh(a,function(f){return Qe(s,yh(f))})}function b2(s,a){if(!(s&&s.length))return[];var f=rm(s);return a==null?f:Qe(f,function(p){return Kt(a,n,p)})}var Qj=_e(function(s,a){return ct(s)?Fo(s,a):[]}),eV=_e(function(s){return Bh(Dr(s,ct))}),tV=_e(function(s){var a=hn(s);return ct(a)&&(a=n),Bh(Dr(s,ct),xe(a,2))}),nV=_e(function(s){var a=hn(s);return a=typeof a=="function"?a:n,Bh(Dr(s,ct),n,a)}),rV=_e(rm);function iV(s,a){return kS(s||[],a||[],ko)}function sV(s,a){return kS(s||[],a||[],Bo)}var oV=_e(function(s){var a=s.length,f=a>1?s[a-1]:n;return f=typeof f=="function"?(s.pop(),f):n,b2(s,f)});function x2(s){var a=T(s);return a.__chain__=!0,a}function aV(s,a){return a(s),s}function Zl(s,a){return a(s)}var lV=ir(function(s){var a=s.length,f=a?s[0]:0,p=this.__wrapped__,v=function(E){return Oh(E,s)};return a>1||this.__actions__.length||!(p instanceof Re)||!sr(f)?this.thru(v):(p=p.slice(f,+f+(a?1:0)),p.__actions__.push({func:Zl,args:[v],thisArg:n}),new un(p,this.__chain__).thru(function(E){return a&&!E.length&&E.push(n),E}))});function cV(){return x2(this)}function uV(){return new un(this.value(),this.__chain__)}function fV(){this.__values__===n&&(this.__values__=R2(this.value()));var s=this.__index__>=this.__values__.length,a=s?n:this.__values__[this.__index__++];return{done:s,value:a}}function dV(){return this}function hV(s){for(var a,f=this;f instanceof Ll;){var p=h2(f);p.__index__=0,p.__values__=n,a?v.__wrapped__=p:a=p;var v=p;f=f.__wrapped__}return v.__wrapped__=s,a}function mV(){var s=this.__wrapped__;if(s instanceof Re){var a=s;return this.__actions__.length&&(a=new Re(this)),a=a.reverse(),a.__actions__.push({func:Zl,args:[nm],thisArg:n}),new un(a,this.__chain__)}return this.thru(nm)}function pV(){return LS(this.__wrapped__,this.__actions__)}var gV=Wl(function(s,a,f){We.call(s,f)?++s[f]:nr(s,f,1)});function yV(s,a,f){var p=Ae(s)?Kw:aF;return f&&Dt(s,a,f)&&(a=n),p(s,xe(a,3))}function vV(s,a){var f=Ae(s)?Dr:bS;return f(s,xe(a,3))}var bV=HS(m2),xV=HS(p2);function wV(s,a){return xt(Jl(s,a),1)}function SV(s,a){return xt(Jl(s,a),z)}function TV(s,a,f){return f=f===n?1:Oe(f),xt(Jl(s,a),f)}function w2(s,a){var f=Ae(s)?ln:Lr;return f(s,xe(a,3))}function S2(s,a){var f=Ae(s)?U3:vS;return f(s,xe(a,3))}var EV=Wl(function(s,a,f){We.call(s,f)?s[f].push(a):nr(s,f,[a])});function CV(s,a,f,p){s=jt(s)?s:xs(s),f=f&&!p?Oe(f):0;var v=s.length;return f<0&&(f=mt(v+f,0)),rc(s)?f<=v&&s.indexOf(a,f)>-1:!!v&&ls(s,a,f)>-1}var PV=_e(function(s,a,f){var p=-1,v=typeof a=="function",E=jt(s)?j(s.length):[];return Lr(s,function(M){E[++p]=v?Kt(a,M,f):jo(M,a,f)}),E}),AV=Wl(function(s,a,f){nr(s,f,a)});function Jl(s,a){var f=Ae(s)?Qe:CS;return f(s,xe(a,3))}function OV(s,a,f,p){return s==null?[]:(Ae(a)||(a=a==null?[]:[a]),f=p?n:f,Ae(f)||(f=f==null?[]:[f]),MS(s,a,f))}var MV=Wl(function(s,a,f){s[f?0:1].push(a)},function(){return[[],[]]});function _V(s,a,f){var p=Ae(s)?ph:Qw,v=arguments.length<3;return p(s,xe(a,4),f,v,Lr)}function IV(s,a,f){var p=Ae(s)?W3:Qw,v=arguments.length<3;return p(s,xe(a,4),f,v,vS)}function DV(s,a){var f=Ae(s)?Dr:bS;return f(s,tc(xe(a,3)))}function $V(s){var a=Ae(s)?mS:CF;return a(s)}function RV(s,a,f){(f?Dt(s,a,f):a===n)?a=1:a=Oe(a);var p=Ae(s)?nF:PF;return p(s,a)}function NV(s){var a=Ae(s)?rF:OF;return a(s)}function LV(s){if(s==null)return 0;if(jt(s))return rc(s)?us(s):s.length;var a=Ot(s);return a==Le||a==qt?s.size:Rh(s).length}function kV(s,a,f){var p=Ae(s)?gh:MF;return f&&Dt(s,a,f)&&(a=n),p(s,xe(a,3))}var FV=_e(function(s,a){if(s==null)return[];var f=a.length;return f>1&&Dt(s,a[0],a[1])?a=[]:f>2&&Dt(a[0],a[1],a[2])&&(a=[a[0]]),MS(s,xt(a,1),[])}),Ql=vk||function(){return bt.Date.now()};function jV(s,a){if(typeof a!="function")throw new cn(l);return s=Oe(s),function(){if(--s<1)return a.apply(this,arguments)}}function T2(s,a,f){return a=f?n:a,a=s&&a==null?s.length:a,rr(s,V,n,n,n,n,a)}function E2(s,a){var f;if(typeof a!="function")throw new cn(l);return s=Oe(s),function(){return--s>0&&(f=a.apply(this,arguments)),s<=1&&(a=n),f}}var im=_e(function(s,a,f){var p=P;if(f.length){var v=Rr(f,vs(im));p|=C}return rr(s,p,a,f,v)}),C2=_e(function(s,a,f){var p=P|w;if(f.length){var v=Rr(f,vs(C2));p|=C}return rr(a,p,s,f,v)});function P2(s,a,f){a=f?n:a;var p=rr(s,O,n,n,n,n,n,a);return p.placeholder=P2.placeholder,p}function A2(s,a,f){a=f?n:a;var p=rr(s,D,n,n,n,n,n,a);return p.placeholder=A2.placeholder,p}function O2(s,a,f){var p,v,E,M,$,N,U=0,W=!1,G=!1,te=!0;if(typeof s!="function")throw new cn(l);a=mn(a)||0,it(f)&&(W=!!f.leading,G="maxWait"in f,E=G?mt(mn(f.maxWait)||0,a):E,te="trailing"in f?!!f.trailing:te);function he(ut){var Sn=p,lr=v;return p=v=n,U=ut,M=s.apply(lr,Sn),M}function Te(ut){return U=ut,$=zo($e,a),W?he(ut):M}function Me(ut){var Sn=ut-N,lr=ut-U,H2=a-Sn;return G?At(H2,E-lr):H2}function Ee(ut){var Sn=ut-N,lr=ut-U;return N===n||Sn>=a||Sn<0||G&&lr>=E}function $e(){var ut=Ql();if(Ee(ut))return Ne(ut);$=zo($e,Me(ut))}function Ne(ut){return $=n,te&&p?he(ut):(p=v=n,M)}function Qt(){$!==n&&FS($),U=0,p=N=v=$=n}function $t(){return $===n?M:Ne(Ql())}function en(){var ut=Ql(),Sn=Ee(ut);if(p=arguments,v=this,N=ut,Sn){if($===n)return Te(N);if(G)return FS($),$=zo($e,a),he(N)}return $===n&&($=zo($e,a)),M}return en.cancel=Qt,en.flush=$t,en}var VV=_e(function(s,a){return yS(s,1,a)}),BV=_e(function(s,a,f){return yS(s,mn(a)||0,f)});function UV(s){return rr(s,q)}function ec(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cn(l);var f=function(){var p=arguments,v=a?a.apply(this,p):p[0],E=f.cache;if(E.has(v))return E.get(v);var M=s.apply(this,p);return f.cache=E.set(v,M)||E,M};return f.cache=new(ec.Cache||tr),f}ec.Cache=tr;function tc(s){if(typeof s!="function")throw new cn(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function WV(s){return E2(2,s)}var zV=_F(function(s,a){a=a.length==1&&Ae(a[0])?Qe(a[0],Xt(xe())):Qe(xt(a,1),Xt(xe()));var f=a.length;return _e(function(p){for(var v=-1,E=At(p.length,f);++v<E;)p[v]=a[v].call(this,p[v]);return Kt(s,this,p)})}),sm=_e(function(s,a){var f=Rr(a,vs(sm));return rr(s,C,n,a,f)}),M2=_e(function(s,a){var f=Rr(a,vs(M2));return rr(s,L,n,a,f)}),GV=ir(function(s,a){return rr(s,F,n,n,n,a)});function YV(s,a){if(typeof s!="function")throw new cn(l);return a=a===n?a:Oe(a),_e(s,a)}function HV(s,a){if(typeof s!="function")throw new cn(l);return a=a==null?0:mt(Oe(a),0),_e(function(f){var p=f[a],v=jr(f,0,a);return p&&$r(v,p),Kt(s,this,v)})}function qV(s,a,f){var p=!0,v=!0;if(typeof s!="function")throw new cn(l);return it(f)&&(p="leading"in f?!!f.leading:p,v="trailing"in f?!!f.trailing:v),O2(s,a,{leading:p,maxWait:a,trailing:v})}function KV(s){return T2(s,1)}function XV(s,a){return sm(Wh(a),s)}function ZV(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function JV(s){return fn(s,y)}function QV(s,a){return a=typeof a=="function"?a:n,fn(s,y,a)}function eB(s){return fn(s,m|y)}function tB(s,a){return a=typeof a=="function"?a:n,fn(s,m|y,a)}function nB(s,a){return a==null||gS(s,a,gt(a))}function wn(s,a){return s===a||s!==s&&a!==a}var rB=Hl(Ih),iB=Hl(function(s,a){return s>=a}),bi=SS(function(){return arguments}())?SS:function(s){return ot(s)&&We.call(s,"callee")&&!lS.call(s,"callee")},Ae=j.isArray,sB=Ww?Xt(Ww):hF;function jt(s){return s!=null&&nc(s.length)&&!or(s)}function ct(s){return ot(s)&&jt(s)}function oB(s){return s===!0||s===!1||ot(s)&&It(s)==ne}var Vr=xk||gm,aB=zw?Xt(zw):mF;function lB(s){return ot(s)&&s.nodeType===1&&!Go(s)}function cB(s){if(s==null)return!0;if(jt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||Vr(s)||bs(s)||bi(s)))return!s.length;var a=Ot(s);if(a==Le||a==qt)return!s.size;if(Wo(s))return!Rh(s).length;for(var f in s)if(We.call(s,f))return!1;return!0}function uB(s,a){return Vo(s,a)}function fB(s,a,f){f=typeof f=="function"?f:n;var p=f?f(s,a):n;return p===n?Vo(s,a,n,f):!!p}function om(s){if(!ot(s))return!1;var a=It(s);return a==Ue||a==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Go(s)}function dB(s){return typeof s=="number"&&uS(s)}function or(s){if(!it(s))return!1;var a=It(s);return a==Q||a==pe||a==de||a==ml}function _2(s){return typeof s=="number"&&s==Oe(s)}function nc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Y}function it(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function ot(s){return s!=null&&typeof s=="object"}var I2=Gw?Xt(Gw):gF;function hB(s,a){return s===a||$h(s,a,Xh(a))}function mB(s,a,f){return f=typeof f=="function"?f:n,$h(s,a,Xh(a),f)}function pB(s){return D2(s)&&s!=+s}function gB(s){if(QF(s))throw new Pe(o);return TS(s)}function yB(s){return s===null}function vB(s){return s==null}function D2(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Go(s){if(!ot(s)||It(s)!=dt)return!1;var a=Ml(s);if(a===null)return!0;var f=We.call(a,"constructor")&&a.constructor;return typeof f=="function"&&f instanceof f&&Cl.call(f)==mk}var am=Yw?Xt(Yw):yF;function bB(s){return _2(s)&&s>=-9007199254740991&&s<=Y}var $2=Hw?Xt(Hw):vF;function rc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==yn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==ui}var bs=qw?Xt(qw):bF;function xB(s){return s===n}function wB(s){return ot(s)&&Ot(s)==Ir}function SB(s){return ot(s)&&It(s)==gl}var TB=Hl(Nh),EB=Hl(function(s,a){return s<=a});function R2(s){if(!s)return[];if(jt(s))return rc(s)?bn(s):Ft(s);if(Do&&s[Do])return nk(s[Do]());var a=Ot(s),f=a==Le?Sh:a==qt?Sl:xs;return f(s)}function ar(s){if(!s)return s===0?s:0;if(s=mn(s),s===z||s===-1/0){var a=s<0?-1:1;return a*Z}return s===s?s:0}function Oe(s){var a=ar(s),f=a%1;return a===a?f?a-f:a:0}function N2(s){return s?pi(Oe(s),0,k):0}function mn(s){if(typeof s=="number")return s;if(Jt(s))return _;if(it(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=it(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=eS(s);var f=s3.test(s);return f||a3.test(s)?j3(s.slice(2),f?2:8):i3.test(s)?_:+s}function L2(s){return jn(s,Vt(s))}function CB(s){return s?pi(Oe(s),-9007199254740991,Y):s===0?s:0}function Ve(s){return s==null?"":Zt(s)}var PB=gs(function(s,a){if(Wo(a)||jt(a)){jn(a,gt(a),s);return}for(var f in a)We.call(a,f)&&ko(s,f,a[f])}),k2=gs(function(s,a){jn(a,Vt(a),s)}),ic=gs(function(s,a,f,p){jn(a,Vt(a),s,p)}),AB=gs(function(s,a,f,p){jn(a,gt(a),s,p)}),OB=ir(Oh);function MB(s,a){var f=ps(s);return a==null?f:pS(f,a)}var _B=_e(function(s,a){s=Ge(s);var f=-1,p=a.length,v=p>2?a[2]:n;for(v&&Dt(a[0],a[1],v)&&(p=1);++f<p;)for(var E=a[f],M=Vt(E),$=-1,N=M.length;++$<N;){var U=M[$],W=s[U];(W===n||wn(W,ds[U])&&!We.call(s,U))&&(s[U]=E[U])}return s}),IB=_e(function(s){return s.push(n,e2),Kt(F2,n,s)});function DB(s,a){return Xw(s,xe(a,3),Fn)}function $B(s,a){return Xw(s,xe(a,3),_h)}function RB(s,a){return s==null?s:Mh(s,xe(a,3),Vt)}function NB(s,a){return s==null?s:xS(s,xe(a,3),Vt)}function LB(s,a){return s&&Fn(s,xe(a,3))}function kB(s,a){return s&&_h(s,xe(a,3))}function FB(s){return s==null?[]:jl(s,gt(s))}function jB(s){return s==null?[]:jl(s,Vt(s))}function lm(s,a,f){var p=s==null?n:gi(s,a);return p===n?f:p}function VB(s,a){return s!=null&&r2(s,a,cF)}function cm(s,a){return s!=null&&r2(s,a,uF)}var BB=KS(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Pl.call(a)),s[a]=f},fm(Bt)),UB=KS(function(s,a,f){a!=null&&typeof a.toString!="function"&&(a=Pl.call(a)),We.call(s,a)?s[a].push(f):s[a]=[f]},xe),WB=_e(jo);function gt(s){return jt(s)?hS(s):Rh(s)}function Vt(s){return jt(s)?hS(s,!0):xF(s)}function zB(s,a){var f={};return a=xe(a,3),Fn(s,function(p,v,E){nr(f,a(p,v,E),p)}),f}function GB(s,a){var f={};return a=xe(a,3),Fn(s,function(p,v,E){nr(f,v,a(p,v,E))}),f}var YB=gs(function(s,a,f){Vl(s,a,f)}),F2=gs(function(s,a,f,p){Vl(s,a,f,p)}),HB=ir(function(s,a){var f={};if(s==null)return f;var p=!1;a=Qe(a,function(E){return E=Fr(E,s),p||(p=E.length>1),E}),jn(s,qh(s),f),p&&(f=fn(f,m|g|y,BF));for(var v=a.length;v--;)Vh(f,a[v]);return f});function qB(s,a){return j2(s,tc(xe(a)))}var KB=ir(function(s,a){return s==null?{}:SF(s,a)});function j2(s,a){if(s==null)return{};var f=Qe(qh(s),function(p){return[p]});return a=xe(a),_S(s,f,function(p,v){return a(p,v[0])})}function XB(s,a,f){a=Fr(a,s);var p=-1,v=a.length;for(v||(v=1,s=n);++p<v;){var E=s==null?n:s[Vn(a[p])];E===n&&(p=v,E=f),s=or(E)?E.call(s):E}return s}function ZB(s,a,f){return s==null?s:Bo(s,a,f)}function JB(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:Bo(s,a,f,p)}var V2=JS(gt),B2=JS(Vt);function QB(s,a,f){var p=Ae(s),v=p||Vr(s)||bs(s);if(a=xe(a,4),f==null){var E=s&&s.constructor;v?f=p?new E:[]:it(s)?f=or(E)?ps(Ml(s)):{}:f={}}return(v?ln:Fn)(s,function(M,$,N){return a(f,M,$,N)}),f}function e8(s,a){return s==null?!0:Vh(s,a)}function t8(s,a,f){return s==null?s:NS(s,a,Wh(f))}function n8(s,a,f,p){return p=typeof p=="function"?p:n,s==null?s:NS(s,a,Wh(f),p)}function xs(s){return s==null?[]:wh(s,gt(s))}function r8(s){return s==null?[]:wh(s,Vt(s))}function i8(s,a,f){return f===n&&(f=a,a=n),f!==n&&(f=mn(f),f=f===f?f:0),a!==n&&(a=mn(a),a=a===a?a:0),pi(mn(s),a,f)}function s8(s,a,f){return a=ar(a),f===n?(f=a,a=0):f=ar(f),s=mn(s),fF(s,a,f)}function o8(s,a,f){if(f&&typeof f!="boolean"&&Dt(s,a,f)&&(a=f=n),f===n&&(typeof a=="boolean"?(f=a,a=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&a===n?(s=0,a=1):(s=ar(s),a===n?(a=s,s=0):a=ar(a)),s>a){var p=s;s=a,a=p}if(f||s%1||a%1){var v=fS();return At(s+v*(a-s+F3("1e-"+((v+"").length-1))),a)}return kh(s,a)}var a8=ys(function(s,a,f){return a=a.toLowerCase(),s+(f?U2(a):a)});function U2(s){return um(Ve(s).toLowerCase())}function W2(s){return s=Ve(s),s&&s.replace(c3,Z3).replace(O3,"")}function l8(s,a,f){s=Ve(s),a=Zt(a);var p=s.length;f=f===n?p:pi(Oe(f),0,p);var v=f;return f-=a.length,f>=0&&s.slice(f,v)==a}function c8(s){return s=Ve(s),s&&WL.test(s)?s.replace(xw,J3):s}function u8(s){return s=Ve(s),s&&KL.test(s)?s.replace(sh,"\\$&"):s}var f8=ys(function(s,a,f){return s+(f?"-":"")+a.toLowerCase()}),d8=ys(function(s,a,f){return s+(f?" ":"")+a.toLowerCase()}),h8=YS("toLowerCase");function m8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;if(!a||p>=a)return s;var v=(a-p)/2;return Yl($l(v),f)+s+Yl(Dl(v),f)}function p8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;return a&&p<a?s+Yl(a-p,f):s}function g8(s,a,f){s=Ve(s),a=Oe(a);var p=a?us(s):0;return a&&p<a?Yl(a-p,f)+s:s}function y8(s,a,f){return f||a==null?a=0:a&&(a=+a),Ek(Ve(s).replace(oh,""),a||0)}function v8(s,a,f){return(f?Dt(s,a,f):a===n)?a=1:a=Oe(a),Fh(Ve(s),a)}function b8(){var s=arguments,a=Ve(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var x8=ys(function(s,a,f){return s+(f?"_":"")+a.toLowerCase()});function w8(s,a,f){return f&&typeof f!="number"&&Dt(s,a,f)&&(a=f=n),f=f===n?k:f>>>0,f?(s=Ve(s),s&&(typeof a=="string"||a!=null&&!am(a))&&(a=Zt(a),!a&&cs(s))?jr(bn(s),0,f):s.split(a,f)):[]}var S8=ys(function(s,a,f){return s+(f?" ":"")+um(a)});function T8(s,a,f){return s=Ve(s),f=f==null?0:pi(Oe(f),0,s.length),a=Zt(a),s.slice(f,f+a.length)==a}function E8(s,a,f){var p=T.templateSettings;f&&Dt(s,a,f)&&(a=n),s=Ve(s),a=ic({},a,p,QS);var v=ic({},a.imports,p.imports,QS),E=gt(v),M=wh(v,E),$,N,U=0,W=a.interpolate||yl,G="__p += '",te=Th((a.escape||yl).source+"|"+W.source+"|"+(W===ww?r3:yl).source+"|"+(a.evaluate||yl).source+"|$","g"),he="//# sourceURL="+(We.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$3+"]")+`
|
|
635
|
+
`;s.replace(te,function(Ee,$e,Ne,Qt,$t,en){return Ne||(Ne=Qt),G+=s.slice(U,en).replace(u3,Q3),$e&&($=!0,G+=`' +
|
|
636
636
|
__e(`+$e+`) +
|
|
637
|
-
'`),$t&&(N=!0,
|
|
637
|
+
'`),$t&&(N=!0,G+=`';
|
|
638
638
|
`+$t+`;
|
|
639
|
-
__p += '`),Ne&&(
|
|
639
|
+
__p += '`),Ne&&(G+=`' +
|
|
640
640
|
((__t = (`+Ne+`)) == null ? '' : __t) +
|
|
641
|
-
'`),U=en+Ee.length,Ee}),
|
|
642
|
-
`;var Te=We.call(a,"variable")&&a.variable;if(!Te)
|
|
643
|
-
`+
|
|
641
|
+
'`),U=en+Ee.length,Ee}),G+=`';
|
|
642
|
+
`;var Te=We.call(a,"variable")&&a.variable;if(!Te)G=`with (obj) {
|
|
643
|
+
`+G+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(t3.test(Te))throw new Pe(c);
|
|
645
|
+
`;else if(t3.test(Te))throw new Pe(c);G=(N?G.replace(jL,""):G).replace(VL,"$1").replace(BL,"$1;"),G="function("+(Te||"obj")+`) {
|
|
646
646
|
`+(Te?"":`obj || (obj = {});
|
|
647
647
|
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
|
-
`)+
|
|
651
|
-
}`;var Me=G2(function(){return ke(E,he+"return "+z).apply(n,M)});if(Me.source=z,om(Me))throw Me;return Me}function C8(s){return Ve(s).toLowerCase()}function P8(s){return Ve(s).toUpperCase()}function A8(s,a,f){if(s=Ve(s),s&&(f||a===n))return eS(s);if(!s||!(a=Zt(a)))return s;var p=bn(s),v=bn(a),E=tS(p,v),M=nS(p,v)+1;return jr(p,E,M).join("")}function O8(s,a,f){if(s=Ve(s),s&&(f||a===n))return s.slice(0,iS(s)+1);if(!s||!(a=Zt(a)))return s;var p=bn(s),v=nS(p,bn(a))+1;return jr(p,0,v).join("")}function M8(s,a,f){if(s=Ve(s),s&&(f||a===n))return s.replace(oh,"");if(!s||!(a=Zt(a)))return s;var p=bn(s),v=tS(p,bn(a));return jr(p,v).join("")}function _8(s,a){var f=te,p=ie;if(it(a)){var v="separator"in a?a.separator:v;f="length"in a?Oe(a.length):f,p="omission"in a?Zt(a.omission):p}s=Ve(s);var E=s.length;if(cs(s)){var M=bn(s);E=M.length}if(f>=E)return s;var $=f-us(p);if($<1)return p;var N=M?jr(M,0,$).join(""):s.slice(0,$);if(v===n)return N+p;if(M&&($+=N.length-$),am(v)){if(s.slice($).search(v)){var U,W=N;for(v.global||(v=Th(v.source,Ve(Sw.exec(v))+"g")),v.lastIndex=0;U=v.exec(W);)var z=U.index;N=N.slice(0,z===n?$:z)}}else if(s.indexOf(Zt(v),$)!=$){var ne=N.lastIndexOf(v);ne>-1&&(N=N.slice(0,ne))}return N+p}function I8(s){return s=Ve(s),s&&UL.test(s)?s.replace(bw,ok):s}var D8=ys(function(s,a,f){return s+(f?" ":"")+a.toUpperCase()}),um=YS("toUpperCase");function z2(s,a,f){return s=Ve(s),a=f?n:a,a===n?tk(s)?ck(s):Y3(s):s.match(a)||[]}var G2=_e(function(s,a){try{return Kt(s,n,a)}catch(f){return om(f)?f:new Pe(f)}}),$8=ir(function(s,a){return ln(a,function(f){f=Vn(f),nr(s,f,im(s[f],s))}),s});function R8(s){var a=s==null?0:s.length,f=xe();return s=a?Qe(s,function(p){if(typeof p[1]!="function")throw new cn(l);return[f(p[0]),p[1]]}):[],_e(function(p){for(var v=-1;++v<a;){var E=s[v];if(Kt(E[0],this,p))return Kt(E[1],this,p)}})}function N8(s){return oF(fn(s,m))}function fm(s){return function(){return s}}function L8(s,a){return s==null||s!==s?a:s}var k8=qS(),F8=qS(!0);function Bt(s){return s}function dm(s){return ES(typeof s=="function"?s:fn(s,m))}function j8(s){return PS(fn(s,m))}function V8(s,a){return AS(s,fn(a,m))}var B8=_e(function(s,a){return function(f){return jo(f,s,a)}}),U8=_e(function(s,a){return function(f){return jo(s,f,a)}});function hm(s,a,f){var p=gt(a),v=jl(a,p);f==null&&!(it(a)&&(v.length||!p.length))&&(f=a,a=s,s=this,v=jl(a,gt(a)));var E=!(it(f)&&"chain"in f)||!!f.chain,M=or(s);return ln(v,function($){var N=a[$];s[$]=N,M&&(s.prototype[$]=function(){var U=this.__chain__;if(E||U){var W=s(this.__wrapped__),z=W.__actions__=Ft(this.__actions__);return z.push({func:N,args:arguments,thisArg:s}),W.__chain__=U,W}return N.apply(s,$r([this.value()],arguments))})}),s}function W8(){return bt._===this&&(bt._=pk),this}function mm(){}function z8(s){return s=Oe(s),_e(function(a){return OS(a,s)})}var G8=Gh(Qe),Y8=Gh(Kw),H8=Gh(gh);function Y2(s){return Jh(s)?yh(Vn(s)):TF(s)}function q8(s){return function(a){return s==null?n:gi(s,a)}}var K8=XS(),X8=XS(!0);function pm(){return[]}function gm(){return!1}function Z8(){return{}}function J8(){return""}function Q8(){return!0}function e9(s,a){if(s=Oe(s),s<1||s>H)return[];var f=k,p=At(s,k);a=xe(a),s-=k;for(var v=xh(p,a);++f<s;)a(f);return v}function t9(s){return Ae(s)?Qe(s,Vn):Jt(s)?[s]:Ft(d2(Ve(s)))}function n9(s){var a=++hk;return Ve(s)+a}var r9=Gl(function(s,a){return s+a},0),i9=Yh("ceil"),s9=Gl(function(s,a){return s/a},1),o9=Yh("floor");function a9(s){return s&&s.length?Fl(s,Bt,Ih):n}function l9(s,a){return s&&s.length?Fl(s,xe(a,2),Ih):n}function c9(s){return Jw(s,Bt)}function u9(s,a){return Jw(s,xe(a,2))}function f9(s){return s&&s.length?Fl(s,Bt,Nh):n}function d9(s,a){return s&&s.length?Fl(s,xe(a,2),Nh):n}var h9=Gl(function(s,a){return s*a},1),m9=Yh("round"),p9=Gl(function(s,a){return s-a},0);function g9(s){return s&&s.length?bh(s,Bt):0}function y9(s,a){return s&&s.length?bh(s,xe(a,2)):0}return T.after=jV,T.ary=T2,T.assign=PB,T.assignIn=k2,T.assignInWith=ic,T.assignWith=AB,T.at=OB,T.before=E2,T.bind=im,T.bindAll=$8,T.bindKey=C2,T.castArray=ZV,T.chain=x2,T.chunk=oj,T.compact=aj,T.concat=lj,T.cond=R8,T.conforms=N8,T.constant=fm,T.countBy=gV,T.create=MB,T.curry=P2,T.curryRight=A2,T.debounce=O2,T.defaults=_B,T.defaultsDeep=IB,T.defer=VV,T.delay=BV,T.difference=cj,T.differenceBy=uj,T.differenceWith=fj,T.drop=dj,T.dropRight=hj,T.dropRightWhile=mj,T.dropWhile=pj,T.fill=gj,T.filter=vV,T.flatMap=wV,T.flatMapDeep=SV,T.flatMapDepth=TV,T.flatten=g2,T.flattenDeep=yj,T.flattenDepth=vj,T.flip=UV,T.flow=k8,T.flowRight=F8,T.fromPairs=bj,T.functions=FB,T.functionsIn=jB,T.groupBy=EV,T.initial=wj,T.intersection=Sj,T.intersectionBy=Tj,T.intersectionWith=Ej,T.invert=BB,T.invertBy=UB,T.invokeMap=PV,T.iteratee=dm,T.keyBy=AV,T.keys=gt,T.keysIn=Vt,T.map=Jl,T.mapKeys=zB,T.mapValues=GB,T.matches=j8,T.matchesProperty=V8,T.memoize=ec,T.merge=YB,T.mergeWith=F2,T.method=B8,T.methodOf=U8,T.mixin=hm,T.negate=tc,T.nthArg=z8,T.omit=HB,T.omitBy=qB,T.once=WV,T.orderBy=OV,T.over=G8,T.overArgs=zV,T.overEvery=Y8,T.overSome=H8,T.partial=sm,T.partialRight=M2,T.partition=MV,T.pick=KB,T.pickBy=j2,T.property=Y2,T.propertyOf=q8,T.pull=Oj,T.pullAll=v2,T.pullAllBy=Mj,T.pullAllWith=_j,T.pullAt=Ij,T.range=K8,T.rangeRight=X8,T.rearg=GV,T.reject=DV,T.remove=Dj,T.rest=YV,T.reverse=nm,T.sampleSize=RV,T.set=ZB,T.setWith=JB,T.shuffle=NV,T.slice=$j,T.sortBy=FV,T.sortedUniq=Vj,T.sortedUniqBy=Bj,T.split=w8,T.spread=HV,T.tail=Uj,T.take=Wj,T.takeRight=zj,T.takeRightWhile=Gj,T.takeWhile=Yj,T.tap=aV,T.throttle=qV,T.thru=Zl,T.toArray=R2,T.toPairs=V2,T.toPairsIn=B2,T.toPath=t9,T.toPlainObject=L2,T.transform=QB,T.unary=KV,T.union=Hj,T.unionBy=qj,T.unionWith=Kj,T.uniq=Xj,T.uniqBy=Zj,T.uniqWith=Jj,T.unset=e8,T.unzip=rm,T.unzipWith=b2,T.update=t8,T.updateWith=n8,T.values=xs,T.valuesIn=r8,T.without=Qj,T.words=z2,T.wrap=XV,T.xor=eV,T.xorBy=tV,T.xorWith=nV,T.zip=rV,T.zipObject=iV,T.zipObjectDeep=sV,T.zipWith=oV,T.entries=V2,T.entriesIn=B2,T.extend=k2,T.extendWith=ic,hm(T,T),T.add=r9,T.attempt=G2,T.camelCase=a8,T.capitalize=U2,T.ceil=i9,T.clamp=i8,T.clone=JV,T.cloneDeep=eB,T.cloneDeepWith=tB,T.cloneWith=QV,T.conformsTo=nB,T.deburr=W2,T.defaultTo=L8,T.divide=s9,T.endsWith=l8,T.eq=wn,T.escape=c8,T.escapeRegExp=u8,T.every=yV,T.find=bV,T.findIndex=m2,T.findKey=DB,T.findLast=xV,T.findLastIndex=p2,T.findLastKey=$B,T.floor=o9,T.forEach=w2,T.forEachRight=S2,T.forIn=RB,T.forInRight=NB,T.forOwn=LB,T.forOwnRight=kB,T.get=lm,T.gt=rB,T.gte=iB,T.has=VB,T.hasIn=cm,T.head=y2,T.identity=Bt,T.includes=CV,T.indexOf=xj,T.inRange=s8,T.invoke=WB,T.isArguments=bi,T.isArray=Ae,T.isArrayBuffer=sB,T.isArrayLike=jt,T.isArrayLikeObject=ct,T.isBoolean=oB,T.isBuffer=Vr,T.isDate=aB,T.isElement=lB,T.isEmpty=cB,T.isEqual=uB,T.isEqualWith=fB,T.isError=om,T.isFinite=dB,T.isFunction=or,T.isInteger=_2,T.isLength=nc,T.isMap=I2,T.isMatch=hB,T.isMatchWith=mB,T.isNaN=pB,T.isNative=gB,T.isNil=vB,T.isNull=yB,T.isNumber=D2,T.isObject=it,T.isObjectLike=ot,T.isPlainObject=Go,T.isRegExp=am,T.isSafeInteger=bB,T.isSet=$2,T.isString=rc,T.isSymbol=Jt,T.isTypedArray=bs,T.isUndefined=xB,T.isWeakMap=wB,T.isWeakSet=SB,T.join=Cj,T.kebabCase=f8,T.last=hn,T.lastIndexOf=Pj,T.lowerCase=d8,T.lowerFirst=h8,T.lt=TB,T.lte=EB,T.max=a9,T.maxBy=l9,T.mean=c9,T.meanBy=u9,T.min=f9,T.minBy=d9,T.stubArray=pm,T.stubFalse=gm,T.stubObject=Z8,T.stubString=J8,T.stubTrue=Q8,T.multiply=h9,T.nth=Aj,T.noConflict=W8,T.noop=mm,T.now=Ql,T.pad=m8,T.padEnd=p8,T.padStart=g8,T.parseInt=y8,T.random=o8,T.reduce=_V,T.reduceRight=IV,T.repeat=v8,T.replace=b8,T.result=XB,T.round=m9,T.runInContext=R,T.sample=$V,T.size=LV,T.snakeCase=x8,T.some=kV,T.sortedIndex=Rj,T.sortedIndexBy=Nj,T.sortedIndexOf=Lj,T.sortedLastIndex=kj,T.sortedLastIndexBy=Fj,T.sortedLastIndexOf=jj,T.startCase=S8,T.startsWith=T8,T.subtract=p9,T.sum=g9,T.sumBy=y9,T.template=E8,T.times=e9,T.toFinite=ar,T.toInteger=Oe,T.toLength=N2,T.toLower=C8,T.toNumber=mn,T.toSafeInteger=CB,T.toString=Ve,T.toUpper=P8,T.trim=A8,T.trimEnd=O8,T.trimStart=M8,T.truncate=_8,T.unescape=I8,T.uniqueId=n9,T.upperCase=D8,T.upperFirst=um,T.each=w2,T.eachRight=S2,T.first=y2,hm(T,function(){var s={};return Fn(T,function(a,f){We.call(T.prototype,f)||(s[f]=a)}),s}(),{chain:!1}),T.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),ln(["drop","take"],function(s,a){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var p=this.__filtered__&&!a?new Re(this):this.clone();return p.__filtered__?p.__takeCount__=At(f,p.__takeCount__):p.__views__.push({size:At(f,k),type:s+(p.__dir__<0?"Right":"")}),p},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),ln(["filter","map","takeWhile"],function(s,a){var f=a+1,p=f==fe||f==X;Re.prototype[s]=function(v){var E=this.clone();return E.__iteratees__.push({iteratee:xe(v,3),type:f}),E.__filtered__=E.__filtered__||p,E}}),ln(["head","last"],function(s,a){var f="take"+(a?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(s,a){var f="drop"+(a?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Bt)},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,a){return typeof s=="function"?new Re(this):this.map(function(f){return jo(f,s,a)})}),Re.prototype.reject=function(s){return this.filter(tc(xe(s)))},Re.prototype.slice=function(s,a){s=Oe(s);var f=this;return f.__filtered__&&(s>0||a<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),a!==n&&(a=Oe(a),f=a<0?f.dropRight(-a):f.take(a-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(k)},Fn(Re.prototype,function(s,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),p=/^(?:head|last)$/.test(a),v=T[p?"take"+(a=="last"?"Right":""):a],E=p||/^find/.test(a);v&&(T.prototype[a]=function(){var M=this.__wrapped__,$=p?[1]:arguments,N=M instanceof Re,U=$[0],W=N||Ae(M),z=function($e){var Ne=v.apply(T,$r([$e],$));return p&&ne?Ne[0]:Ne};W&&f&&typeof U=="function"&&U.length!=1&&(N=W=!1);var ne=this.__chain__,he=!!this.__actions__.length,Te=E&&!ne,Me=N&&!he;if(!E&&W){M=Me?M:new Re(this);var Ee=s.apply(M,$);return Ee.__actions__.push({func:Zl,args:[z],thisArg:n}),new un(Ee,ne)}return Te&&Me?s.apply(this,$):(Ee=this.thru(z),Te?p?Ee.value()[0]:Ee.value():Ee)})}),ln(["pop","push","shift","sort","splice","unshift"],function(s){var a=Tl[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var v=arguments;if(p&&!this.__chain__){var E=this.value();return a.apply(Ae(E)?E:[],v)}return this[f](function(M){return a.apply(Ae(M)?M:[],v)})}}),Fn(Re.prototype,function(s,a){var f=T[a];if(f){var p=f.name+"";We.call(ms,p)||(ms[p]=[]),ms[p].push({name:a,func:f})}}),ms[zl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=Ik,Re.prototype.reverse=Dk,Re.prototype.value=$k,T.prototype.at=lV,T.prototype.chain=cV,T.prototype.commit=uV,T.prototype.next=fV,T.prototype.plant=hV,T.prototype.reverse=mV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=pV,T.prototype.first=T.prototype.head,Do&&(T.prototype[Do]=dV),T},fs=uk();fi?((fi.exports=fs)._=fs,dh._=fs):bt._=fs}).call(HI)}(Xs,Xs.exports)),Xs.exports}var ff=qI();const df=I.createContext({});function hf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const mf=typeof window<"u",fv=mf?I.useLayoutEffect:I.useEffect,Ma=I.createContext(null),pf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class KI extends ce.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 XI({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:l}=I.useContext(pf);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 l&&(y.nonce=l),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
650
|
+
`)+G+`return __p
|
|
651
|
+
}`;var Me=G2(function(){return ke(E,he+"return "+G).apply(n,M)});if(Me.source=G,om(Me))throw Me;return Me}function C8(s){return Ve(s).toLowerCase()}function P8(s){return Ve(s).toUpperCase()}function A8(s,a,f){if(s=Ve(s),s&&(f||a===n))return eS(s);if(!s||!(a=Zt(a)))return s;var p=bn(s),v=bn(a),E=tS(p,v),M=nS(p,v)+1;return jr(p,E,M).join("")}function O8(s,a,f){if(s=Ve(s),s&&(f||a===n))return s.slice(0,iS(s)+1);if(!s||!(a=Zt(a)))return s;var p=bn(s),v=nS(p,bn(a))+1;return jr(p,0,v).join("")}function M8(s,a,f){if(s=Ve(s),s&&(f||a===n))return s.replace(oh,"");if(!s||!(a=Zt(a)))return s;var p=bn(s),v=tS(p,bn(a));return jr(p,v).join("")}function _8(s,a){var f=ee,p=re;if(it(a)){var v="separator"in a?a.separator:v;f="length"in a?Oe(a.length):f,p="omission"in a?Zt(a.omission):p}s=Ve(s);var E=s.length;if(cs(s)){var M=bn(s);E=M.length}if(f>=E)return s;var $=f-us(p);if($<1)return p;var N=M?jr(M,0,$).join(""):s.slice(0,$);if(v===n)return N+p;if(M&&($+=N.length-$),am(v)){if(s.slice($).search(v)){var U,W=N;for(v.global||(v=Th(v.source,Ve(Sw.exec(v))+"g")),v.lastIndex=0;U=v.exec(W);)var G=U.index;N=N.slice(0,G===n?$:G)}}else if(s.indexOf(Zt(v),$)!=$){var te=N.lastIndexOf(v);te>-1&&(N=N.slice(0,te))}return N+p}function I8(s){return s=Ve(s),s&&UL.test(s)?s.replace(bw,ok):s}var D8=ys(function(s,a,f){return s+(f?" ":"")+a.toUpperCase()}),um=YS("toUpperCase");function z2(s,a,f){return s=Ve(s),a=f?n:a,a===n?tk(s)?ck(s):Y3(s):s.match(a)||[]}var G2=_e(function(s,a){try{return Kt(s,n,a)}catch(f){return om(f)?f:new Pe(f)}}),$8=ir(function(s,a){return ln(a,function(f){f=Vn(f),nr(s,f,im(s[f],s))}),s});function R8(s){var a=s==null?0:s.length,f=xe();return s=a?Qe(s,function(p){if(typeof p[1]!="function")throw new cn(l);return[f(p[0]),p[1]]}):[],_e(function(p){for(var v=-1;++v<a;){var E=s[v];if(Kt(E[0],this,p))return Kt(E[1],this,p)}})}function N8(s){return oF(fn(s,m))}function fm(s){return function(){return s}}function L8(s,a){return s==null||s!==s?a:s}var k8=qS(),F8=qS(!0);function Bt(s){return s}function dm(s){return ES(typeof s=="function"?s:fn(s,m))}function j8(s){return PS(fn(s,m))}function V8(s,a){return AS(s,fn(a,m))}var B8=_e(function(s,a){return function(f){return jo(f,s,a)}}),U8=_e(function(s,a){return function(f){return jo(s,f,a)}});function hm(s,a,f){var p=gt(a),v=jl(a,p);f==null&&!(it(a)&&(v.length||!p.length))&&(f=a,a=s,s=this,v=jl(a,gt(a)));var E=!(it(f)&&"chain"in f)||!!f.chain,M=or(s);return ln(v,function($){var N=a[$];s[$]=N,M&&(s.prototype[$]=function(){var U=this.__chain__;if(E||U){var W=s(this.__wrapped__),G=W.__actions__=Ft(this.__actions__);return G.push({func:N,args:arguments,thisArg:s}),W.__chain__=U,W}return N.apply(s,$r([this.value()],arguments))})}),s}function W8(){return bt._===this&&(bt._=pk),this}function mm(){}function z8(s){return s=Oe(s),_e(function(a){return OS(a,s)})}var G8=Gh(Qe),Y8=Gh(Kw),H8=Gh(gh);function Y2(s){return Jh(s)?yh(Vn(s)):TF(s)}function q8(s){return function(a){return s==null?n:gi(s,a)}}var K8=XS(),X8=XS(!0);function pm(){return[]}function gm(){return!1}function Z8(){return{}}function J8(){return""}function Q8(){return!0}function e9(s,a){if(s=Oe(s),s<1||s>Y)return[];var f=k,p=At(s,k);a=xe(a),s-=k;for(var v=xh(p,a);++f<s;)a(f);return v}function t9(s){return Ae(s)?Qe(s,Vn):Jt(s)?[s]:Ft(d2(Ve(s)))}function n9(s){var a=++hk;return Ve(s)+a}var r9=Gl(function(s,a){return s+a},0),i9=Yh("ceil"),s9=Gl(function(s,a){return s/a},1),o9=Yh("floor");function a9(s){return s&&s.length?Fl(s,Bt,Ih):n}function l9(s,a){return s&&s.length?Fl(s,xe(a,2),Ih):n}function c9(s){return Jw(s,Bt)}function u9(s,a){return Jw(s,xe(a,2))}function f9(s){return s&&s.length?Fl(s,Bt,Nh):n}function d9(s,a){return s&&s.length?Fl(s,xe(a,2),Nh):n}var h9=Gl(function(s,a){return s*a},1),m9=Yh("round"),p9=Gl(function(s,a){return s-a},0);function g9(s){return s&&s.length?bh(s,Bt):0}function y9(s,a){return s&&s.length?bh(s,xe(a,2)):0}return T.after=jV,T.ary=T2,T.assign=PB,T.assignIn=k2,T.assignInWith=ic,T.assignWith=AB,T.at=OB,T.before=E2,T.bind=im,T.bindAll=$8,T.bindKey=C2,T.castArray=ZV,T.chain=x2,T.chunk=oj,T.compact=aj,T.concat=lj,T.cond=R8,T.conforms=N8,T.constant=fm,T.countBy=gV,T.create=MB,T.curry=P2,T.curryRight=A2,T.debounce=O2,T.defaults=_B,T.defaultsDeep=IB,T.defer=VV,T.delay=BV,T.difference=cj,T.differenceBy=uj,T.differenceWith=fj,T.drop=dj,T.dropRight=hj,T.dropRightWhile=mj,T.dropWhile=pj,T.fill=gj,T.filter=vV,T.flatMap=wV,T.flatMapDeep=SV,T.flatMapDepth=TV,T.flatten=g2,T.flattenDeep=yj,T.flattenDepth=vj,T.flip=UV,T.flow=k8,T.flowRight=F8,T.fromPairs=bj,T.functions=FB,T.functionsIn=jB,T.groupBy=EV,T.initial=wj,T.intersection=Sj,T.intersectionBy=Tj,T.intersectionWith=Ej,T.invert=BB,T.invertBy=UB,T.invokeMap=PV,T.iteratee=dm,T.keyBy=AV,T.keys=gt,T.keysIn=Vt,T.map=Jl,T.mapKeys=zB,T.mapValues=GB,T.matches=j8,T.matchesProperty=V8,T.memoize=ec,T.merge=YB,T.mergeWith=F2,T.method=B8,T.methodOf=U8,T.mixin=hm,T.negate=tc,T.nthArg=z8,T.omit=HB,T.omitBy=qB,T.once=WV,T.orderBy=OV,T.over=G8,T.overArgs=zV,T.overEvery=Y8,T.overSome=H8,T.partial=sm,T.partialRight=M2,T.partition=MV,T.pick=KB,T.pickBy=j2,T.property=Y2,T.propertyOf=q8,T.pull=Oj,T.pullAll=v2,T.pullAllBy=Mj,T.pullAllWith=_j,T.pullAt=Ij,T.range=K8,T.rangeRight=X8,T.rearg=GV,T.reject=DV,T.remove=Dj,T.rest=YV,T.reverse=nm,T.sampleSize=RV,T.set=ZB,T.setWith=JB,T.shuffle=NV,T.slice=$j,T.sortBy=FV,T.sortedUniq=Vj,T.sortedUniqBy=Bj,T.split=w8,T.spread=HV,T.tail=Uj,T.take=Wj,T.takeRight=zj,T.takeRightWhile=Gj,T.takeWhile=Yj,T.tap=aV,T.throttle=qV,T.thru=Zl,T.toArray=R2,T.toPairs=V2,T.toPairsIn=B2,T.toPath=t9,T.toPlainObject=L2,T.transform=QB,T.unary=KV,T.union=Hj,T.unionBy=qj,T.unionWith=Kj,T.uniq=Xj,T.uniqBy=Zj,T.uniqWith=Jj,T.unset=e8,T.unzip=rm,T.unzipWith=b2,T.update=t8,T.updateWith=n8,T.values=xs,T.valuesIn=r8,T.without=Qj,T.words=z2,T.wrap=XV,T.xor=eV,T.xorBy=tV,T.xorWith=nV,T.zip=rV,T.zipObject=iV,T.zipObjectDeep=sV,T.zipWith=oV,T.entries=V2,T.entriesIn=B2,T.extend=k2,T.extendWith=ic,hm(T,T),T.add=r9,T.attempt=G2,T.camelCase=a8,T.capitalize=U2,T.ceil=i9,T.clamp=i8,T.clone=JV,T.cloneDeep=eB,T.cloneDeepWith=tB,T.cloneWith=QV,T.conformsTo=nB,T.deburr=W2,T.defaultTo=L8,T.divide=s9,T.endsWith=l8,T.eq=wn,T.escape=c8,T.escapeRegExp=u8,T.every=yV,T.find=bV,T.findIndex=m2,T.findKey=DB,T.findLast=xV,T.findLastIndex=p2,T.findLastKey=$B,T.floor=o9,T.forEach=w2,T.forEachRight=S2,T.forIn=RB,T.forInRight=NB,T.forOwn=LB,T.forOwnRight=kB,T.get=lm,T.gt=rB,T.gte=iB,T.has=VB,T.hasIn=cm,T.head=y2,T.identity=Bt,T.includes=CV,T.indexOf=xj,T.inRange=s8,T.invoke=WB,T.isArguments=bi,T.isArray=Ae,T.isArrayBuffer=sB,T.isArrayLike=jt,T.isArrayLikeObject=ct,T.isBoolean=oB,T.isBuffer=Vr,T.isDate=aB,T.isElement=lB,T.isEmpty=cB,T.isEqual=uB,T.isEqualWith=fB,T.isError=om,T.isFinite=dB,T.isFunction=or,T.isInteger=_2,T.isLength=nc,T.isMap=I2,T.isMatch=hB,T.isMatchWith=mB,T.isNaN=pB,T.isNative=gB,T.isNil=vB,T.isNull=yB,T.isNumber=D2,T.isObject=it,T.isObjectLike=ot,T.isPlainObject=Go,T.isRegExp=am,T.isSafeInteger=bB,T.isSet=$2,T.isString=rc,T.isSymbol=Jt,T.isTypedArray=bs,T.isUndefined=xB,T.isWeakMap=wB,T.isWeakSet=SB,T.join=Cj,T.kebabCase=f8,T.last=hn,T.lastIndexOf=Pj,T.lowerCase=d8,T.lowerFirst=h8,T.lt=TB,T.lte=EB,T.max=a9,T.maxBy=l9,T.mean=c9,T.meanBy=u9,T.min=f9,T.minBy=d9,T.stubArray=pm,T.stubFalse=gm,T.stubObject=Z8,T.stubString=J8,T.stubTrue=Q8,T.multiply=h9,T.nth=Aj,T.noConflict=W8,T.noop=mm,T.now=Ql,T.pad=m8,T.padEnd=p8,T.padStart=g8,T.parseInt=y8,T.random=o8,T.reduce=_V,T.reduceRight=IV,T.repeat=v8,T.replace=b8,T.result=XB,T.round=m9,T.runInContext=R,T.sample=$V,T.size=LV,T.snakeCase=x8,T.some=kV,T.sortedIndex=Rj,T.sortedIndexBy=Nj,T.sortedIndexOf=Lj,T.sortedLastIndex=kj,T.sortedLastIndexBy=Fj,T.sortedLastIndexOf=jj,T.startCase=S8,T.startsWith=T8,T.subtract=p9,T.sum=g9,T.sumBy=y9,T.template=E8,T.times=e9,T.toFinite=ar,T.toInteger=Oe,T.toLength=N2,T.toLower=C8,T.toNumber=mn,T.toSafeInteger=CB,T.toString=Ve,T.toUpper=P8,T.trim=A8,T.trimEnd=O8,T.trimStart=M8,T.truncate=_8,T.unescape=I8,T.uniqueId=n9,T.upperCase=D8,T.upperFirst=um,T.each=w2,T.eachRight=S2,T.first=y2,hm(T,function(){var s={};return Fn(T,function(a,f){We.call(T.prototype,f)||(s[f]=a)}),s}(),{chain:!1}),T.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),ln(["drop","take"],function(s,a){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var p=this.__filtered__&&!a?new Re(this):this.clone();return p.__filtered__?p.__takeCount__=At(f,p.__takeCount__):p.__views__.push({size:At(f,k),type:s+(p.__dir__<0?"Right":"")}),p},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),ln(["filter","map","takeWhile"],function(s,a){var f=a+1,p=f==fe||f==oe;Re.prototype[s]=function(v){var E=this.clone();return E.__iteratees__.push({iteratee:xe(v,3),type:f}),E.__filtered__=E.__filtered__||p,E}}),ln(["head","last"],function(s,a){var f="take"+(a?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(s,a){var f="drop"+(a?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Bt)},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,a){return typeof s=="function"?new Re(this):this.map(function(f){return jo(f,s,a)})}),Re.prototype.reject=function(s){return this.filter(tc(xe(s)))},Re.prototype.slice=function(s,a){s=Oe(s);var f=this;return f.__filtered__&&(s>0||a<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),a!==n&&(a=Oe(a),f=a<0?f.dropRight(-a):f.take(a-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(k)},Fn(Re.prototype,function(s,a){var f=/^(?:filter|find|map|reject)|While$/.test(a),p=/^(?:head|last)$/.test(a),v=T[p?"take"+(a=="last"?"Right":""):a],E=p||/^find/.test(a);v&&(T.prototype[a]=function(){var M=this.__wrapped__,$=p?[1]:arguments,N=M instanceof Re,U=$[0],W=N||Ae(M),G=function($e){var Ne=v.apply(T,$r([$e],$));return p&&te?Ne[0]:Ne};W&&f&&typeof U=="function"&&U.length!=1&&(N=W=!1);var te=this.__chain__,he=!!this.__actions__.length,Te=E&&!te,Me=N&&!he;if(!E&&W){M=Me?M:new Re(this);var Ee=s.apply(M,$);return Ee.__actions__.push({func:Zl,args:[G],thisArg:n}),new un(Ee,te)}return Te&&Me?s.apply(this,$):(Ee=this.thru(G),Te?p?Ee.value()[0]:Ee.value():Ee)})}),ln(["pop","push","shift","sort","splice","unshift"],function(s){var a=Tl[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var v=arguments;if(p&&!this.__chain__){var E=this.value();return a.apply(Ae(E)?E:[],v)}return this[f](function(M){return a.apply(Ae(M)?M:[],v)})}}),Fn(Re.prototype,function(s,a){var f=T[a];if(f){var p=f.name+"";We.call(ms,p)||(ms[p]=[]),ms[p].push({name:a,func:f})}}),ms[zl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=Ik,Re.prototype.reverse=Dk,Re.prototype.value=$k,T.prototype.at=lV,T.prototype.chain=cV,T.prototype.commit=uV,T.prototype.next=fV,T.prototype.plant=hV,T.prototype.reverse=mV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=pV,T.prototype.first=T.prototype.head,Do&&(T.prototype[Do]=dV),T},fs=uk();fi?((fi.exports=fs)._=fs,dh._=fs):bt._=fs}).call(HI)}(Xs,Xs.exports)),Xs.exports}var ff=qI();const df=I.createContext({});function hf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const mf=typeof window<"u",fv=mf?I.useLayoutEffect:I.useEffect,Ma=I.createContext(null),pf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class KI extends ce.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 XI({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:l}=I.useContext(pf);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 l&&(y.nonce=l),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(KI,{isPresent:t,childRef:i,sizeRef:o,children:ce.cloneElement(e,{ref:i})})}const ZI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:c})=>{const u=hf(JI),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]),ce.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(XI,{isPresent:n,anchorX:c,children:e})),x.jsx(Ma.Provider,{value:m,children:e})};function JI(){return new Map}function dv(e=!0){const t=I.useContext(Ma);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 l=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const _a=e=>e.key||"";function hv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const xr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:c="left"})=>{const[u,d]=dv(l),h=I.useMemo(()=>hv(e),[e]),m=l&&!u?[]:h.map(_a),g=I.useRef(!0),y=I.useRef(h),S=hf(()=>new Map),[b,P]=I.useState(h),[w,A]=I.useState(h);fv(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=_a(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!==b){let C=[...h];for(let L=0;L<w.length;L++){const V=w[L],F=_a(V);m.includes(F)||(C.splice(L,0,V),O.push(V))}return o==="wait"&&O.length&&(C=O),A(hv(C)),P(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(df);return x.jsx(x.Fragment,{children:w.map(C=>{const L=_a(C),V=l&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(te=>{te||(Y=!1)}),Y&&(D==null||D(),A(y.current),l&&(d==null||d()),r&&r())};return x.jsx(ZI,{isPresent:V,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:F,anchorX:c,children:C},L)})})},Nt=e=>e;let Vi=Nt,wr=Nt;process.env.NODE_ENV!=="production"&&(Vi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},wr=(e,t)=>{if(!e)throw new Error(t)});const QI={useManualTiming:!1},Ia=["read","resolveKeyframes","update","preRender","render","postRender"],mv={value:null};function eD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){l.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const b=y&&i?n:r;return g&&l.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&mv.value&&mv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const tD=40;function pv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Ia.reduce((w,A)=>(w[A]=eD(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=l,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,tD),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:Ia.reduce((w,A)=>{const O=l[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<Ia.length;A++)l[Ia[A]].cancel(w)},state:i,steps:l}}const{schedule:He,cancel:Sr,state:vt,steps:gf}=pv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),gv=I.createContext({strict:!1}),yv={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"]},Bi={};for(const e in yv)Bi[e]={isEnabled:t=>yv[e].some(n=>!!t[n])};function nD(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}const rD=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 Da(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rD.has(e)}let vv=e=>!Da(e);function iD(e){e&&(vv=t=>t.startsWith("on")?!Da(t):e(t))}try{iD(require("@emotion/is-prop-valid").default)}catch{}function sD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(vv(i)||n===!0&&Da(i)||!t&&!Da(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bv=new Set;function $a(e,t,n){e||bv.has(t)||(console.warn(t),bv.add(t))}function oD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$a(!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 Ra=I.createContext({});function Na(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zs(e){return typeof e=="string"||Array.isArray(e)}const yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vf=["initial",...yf];function La(e){return Na(e.animate)||vf.some(t=>Zs(e[t]))}function xv(e){return!!(La(e)||e.variants)}function aD(e,t){if(La(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function lD(e){const{initial:t,animate:n}=aD(e,I.useContext(Ra));return I.useMemo(()=>({initial:t,animate:n}),[wv(t),wv(n)])}function wv(e){return Array.isArray(e)?e.join(" "):e}const cD=Symbol.for("motionComponentSymbol");function Ui(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uD(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):Ui(n)&&(n.current=r))},[t])}const{schedule:bf}=pv(queueMicrotask,!1),xf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sv="data-"+xf("framerAppearId"),Tv=I.createContext({});function fD(e,t,n,r,i){var o,l;const{visualElement:c}=I.useContext(Ra),u=I.useContext(gv),d=I.useContext(Ma),h=I.useContext(pf).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(Tv);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&dD(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const b=n[Sv],P=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return fv(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),bf.render(g.render),P.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!P.current&&g.animationState&&g.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),P.current=!1))}),g}function dD(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ev(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&Ui(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Ev(e){if(e)return e.options.allowProjection!==!1?e.projection:Ev(e.parent)}function hD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,l;e&&nD(e);function c(d,h){let m;const g={...I.useContext(pf),...d,layoutId:mD(d)},{isStatic:y}=g,S=lD(d),b=r(d,y);if(!y&&mf){pD(g,e);const P=gD(g);m=P.MeasureLayout,S.visualElement=fD(i,b,g,t,P.ProjectionNode)}return x.jsxs(Ra.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,uD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const u=I.forwardRef(c);return u[cD]=i,u}function mD({layoutId:e}){const t=I.useContext(df).id;return t&&e!==void 0?t+"-"+e:e}function pD(e,t){const n=I.useContext(gv).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?Vi(!1,r):wr(!1,r)}}function gD(e){const{drag:t,layout:n}=Bi;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 Cv=e=>t=>typeof t=="string"&&t.startsWith(e),wf=Cv("--"),yD=Cv("var(--"),Sf=e=>yD(e)?vD.test(e.split("/*")[0].trim()):!1,vD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function bD(e){for(const t in e)Js[t]=e[t],wf(t)&&(Js[t].isCSSVariable=!0)}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zr=new Set(Wi);function Pv(e,{layout:t,layoutId:n}){return Zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Av=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hn=(e,t,n)=>n>t?t:n<e?e:n,zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...zi,transform:e=>Hn(0,1,e)},ka={...zi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tr=eo("deg"),In=eo("%"),Se=eo("px"),xD=eo("vh"),wD=eo("vw"),Ov={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},SD={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},TD={rotate:Tr,rotateX:Tr,rotateY:Tr,rotateZ:Tr,scale:ka,scaleX:ka,scaleY:ka,scaleZ:ka,skew:Tr,skewX:Tr,skewY:Tr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Qs,originX:Ov,originY:Ov,originZ:Se},Mv={...zi,transform:Math.round},Tf={...SD,...TD,zIndex:Mv,size:Se,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:Mv},ED={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CD=Wi.length;function PD(e,t,n){let r="",i=!0;for(let o=0;o<CD;o++){const l=Wi[o],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Av(c,Tf[l]);if(!u){i=!1;const h=ED[l]||l;r+=`${h}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ef(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(Zr.has(u)){l=!0;continue}else if(wf(u)){i[u]=d;continue}else{const h=Av(d,Tf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(l||n?r.transform=PD(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 Cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _v(e,t,n){for(const r in t)!Et(t[r])&&!Pv(r,n)&&(e[r]=t[r])}function AD({transformTemplate:e},t){return I.useMemo(()=>{const n=Cf();return Ef(n,t,e),Object.assign({},n.vars,n.style)},[t])}function OD(e,t){const n=e.style||{},r={};return _v(r,n,e),Object.assign(r,AD(e,t)),r}function MD(e,t){const n={},r=OD(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 _D=["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 Pf(e){return typeof e!="string"||e.includes("-")?!1:!!(_D.indexOf(e)>-1||/[A-Z]/u.test(e))}const ID={offset:"stroke-dashoffset",array:"stroke-dasharray"},DD={offset:"strokeDashoffset",array:"strokeDasharray"};function $D(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ID:DD;e[o.offset]=Se.transform(-r);const l=Se.transform(t),c=Se.transform(n);e[o.array]=`${l} ${c}`}function Iv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function RD(e,t,n){const r=Iv(t,e.x,e.width),i=Iv(n,e.y,e.height);return`${r} ${i}`}function Af(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Ef(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=RD(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),l!==void 0&&$D(g,l,c,u,!1)}const Dv=()=>({...Cf(),attrs:{}}),Of=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ND(e,t,n,r){const i=I.useMemo(()=>{const o=Dv();return Af(o,t,Of(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};_v(o,e.style,e),i.style={...o,...i.style}}return i}function LD(e=!1){return(n,r,i,{latestValues:o},l)=>{const u=(Pf(n)?ND:MD)(r,o,l,n),d=sD(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 $v(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mf(e,t,n,r){if(typeof t=="function"){const[i,o]=$v(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]=$v(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const _f=e=>Array.isArray(e),kD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FD=e=>_f(e)?e[e.length-1]||0:e;function Fa(e){const t=Et(e)?e.get():e;return kD(t)?t.toValue():t}function jD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const l={latestValues:VD(r,i,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const Rv=e=>(t,n)=>{const r=I.useContext(Ra),i=I.useContext(Ma),o=()=>jD(e,t,r,i);return n?o():hf(o)};function VD(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Fa(o[g]);let{initial:l,animate:c}=e;const u=La(e),d=xv(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||l===!1;const m=h?c:l;if(m&&typeof m!="boolean"&&!Na(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Mf(e,g[y]);if(S){const{transitionEnd:b,transition:P,...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 b)i[A]=b[A]}}}return i}function If(e,t,n){var r;const{style:i}=e,o={};for(const l in i)(Et(i[l])||t.style&&Et(t.style[l])||Pv(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=i[l]);return o}const BD={useVisualState:Rv({scrapeMotionValuesFromProps:If,createRenderState:Cf})};function Nv(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 Lv(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 kv=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 Fv(e,t,n,r){Lv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(kv.has(i)?i:xf(i),t.attrs[i])}function jv(e,t,n){const r=If(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=Wi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Vv=["x","y","width","height","cx","cy","r"],UD={useVisualState:Rv({scrapeMotionValuesFromProps:jv,createRenderState:Dv,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(Zr.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<Vv.length;c++){const u=Vv[c];e[u]!==t[u]&&(l=!0)}l&&He.read(()=>{Nv(n,r),He.render(()=>{Af(r,i,Of(n.tagName),e.transformTemplate),Fv(n,r)})})}})};function WD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...Pf(r)?UD:BD,preloadedFeatures:e,useRender:LD(i),createVisualElement:t,Component:r};return hD(l)}}function to(e,t,n){const r=e.getProps();return Mf(r,t,n!==void 0?n:r.custom,e)}function Df(e,t){return e?e[t]||e.default||e:void 0}const Bv=new Set(["width","height","top","left","right","bottom",...Wi]);function $f(e,t){e.indexOf(t)===-1&&e.push(t)}function Rf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nf{constructor(){this.subscriptions=[]}add(t){return $f(this.subscriptions,t),()=>Rf(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 l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Uv(e,t){return t?e*(1e3/t):0}let ja;function zD(){ja=void 0}const Dn={now:()=>(ja===void 0&&Dn.set(vt.isProcessing||QI.useManualTiming?vt.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(zD)}},Wv=30,GD=e=>!isNaN(parseFloat(e));class YD{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Dn.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=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GD(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$a(!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 Nf);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=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wv);return Uv(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 no(e,t){return new YD(e,t)}function HD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,no(n))}function qD(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const c=FD(o[l]);HD(e,l,c)}}function KD(e){return!!(Et(e)&&e.add)}function Lf(e,t){const n=e.getValue("willChange");if(KD(n))return n.add(t)}function zv(e){return e.props[Sv]}function kf(e){let t;return()=>(t===void 0&&(t=e()),t)}const XD=kf(()=>window.ScrollTimeline!==void 0);class ZD{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(XD()&&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 JD extends ZD{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const $n=e=>e*1e3,qn=e=>e/1e3;function Ff(e){return typeof e=="function"}function Gv(e,t){e.timeline=t,e.onfinish=null}const jf=e=>Array.isArray(e)&&typeof e[0]=="number",QD={linearEasing:void 0};function e$(e,t){const n=kf(e);return()=>{var r;return(r=QD[t])!==null&&r!==void 0?r:n()}}const Va=e$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Yv=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Gi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function Hv(e){return!!(typeof e=="function"&&Va()||!e||typeof e=="string"&&(e in Vf||Va())||jf(e)||Array.isArray(e)&&e.every(Hv))}const ro=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function qv(e,t){if(e)return typeof e=="function"&&Va()?Yv(e,t):jf(e)?ro(e):Array.isArray(e)?e.map(n=>qv(n,t)||Vf.easeOut):Vf[e]}const Kv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,t$=1e-7,n$=12;function r$(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=Kv(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>t$&&++c<n$);return l}function io(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>r$(o,0,1,e,n);return o=>o===0||o===1?o:Kv(i(o),t,r)}const Xv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zv=e=>t=>1-e(1-t),Jv=io(.33,1.53,.69,.99),Bf=Zv(Jv),Qv=Xv(Bf),eb=e=>(e*=2)<1?.5*Bf(e):.5*(2-Math.pow(2,-10*(e-1))),Uf=e=>1-Math.sin(Math.acos(e)),tb=Zv(Uf),nb=Xv(Uf),rb=e=>/^0[^.\s]+$/u.test(e);function i$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rb(e):!0}const so=e=>Math.round(e*1e5)/1e5,Wf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function s$(e){return e==null}const o$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zf=(e,t)=>n=>!!(typeof n=="string"&&o$.test(n)&&n.startsWith(e)||t&&!s$(n)&&Object.prototype.hasOwnProperty.call(n,t)),ib=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,c]=r.match(Wf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},a$=e=>Hn(0,255,e),Gf={...zi,transform:e=>Math.round(a$(e))},Jr={test:zf("rgb","red"),parse:ib("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gf.transform(e)+", "+Gf.transform(t)+", "+Gf.transform(n)+", "+so(Qs.transform(r))+")"};function l$(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 Yf={test:zf("#"),parse:l$,transform:Jr.transform},Yi={test:zf("hsl","hue"),parse:ib("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(so(t))+", "+In.transform(so(n))+", "+so(Qs.transform(r))+")"},Ct={test:e=>Jr.test(e)||Yf.test(e)||Yi.test(e),parse:e=>Jr.test(e)?Jr.parse(e):Yi.test(e)?Yi.parse(e):Yf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jr.transform(e):Yi.transform(e)},c$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function u$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(c$))===null||n===void 0?void 0:n.length)||0)>0}const sb="number",ob="color",f$="var",d$="var(",ab="${}",h$=/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 oo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(h$,u=>(Ct.test(u)?(r.color.push(o),i.push(ob),n.push(Ct.parse(u))):u.startsWith(d$)?(r.var.push(o),i.push(f$),n.push(u)):(r.number.push(o),i.push(sb),n.push(parseFloat(u))),++o,ab)).split(ab);return{values:n,split:c,indexes:r,types:i}}function lb(e){return oo(e).values}function cb(e){const{split:t,types:n}=oo(e),r=t.length;return i=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===sb?o+=so(i[l]):c===ob?o+=Ct.transform(i[l]):o+=i[l]}return o}}const m$=e=>typeof e=="number"?0:e;function p$(e){const t=lb(e);return cb(e)(t.map(m$))}const Er={test:u$,parse:lb,createTransformer:cb,getAnimatableNone:p$},g$=new Set(["brightness","contrast","saturate","opacity"]);function y$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Wf)||[];if(!r)return e;const i=n.replace(r,"");let o=g$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const v$=/\b([a-z-]*)\(.*?\)/gu,Hf={...Er,getAnimatableNone:e=>{const t=e.match(v$);return t?t.map(y$).join(" "):e}},b$={...Tf,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Hf,WebkitFilter:Hf},ub=e=>b$[e];function fb(e,t){let n=ub(e);return n!==Hf&&(n=Er),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const x$=new Set(["auto","none","0"]);function w$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!x$.has(o)&&oo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=fb(n,i)}const Qr=e=>e*180/Math.PI,qf=e=>{const t=Qr(Math.atan2(e[1],e[0]));return Kf(t)},S$={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=>Qr(Math.atan(e[1])),skewY:e=>Qr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kf=e=>(e=e%360,e<0&&(e+=360),e),db=qf,hb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),T$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hb,scaleY:mb,scale:e=>(hb(e)+mb(e))/2,rotateX:e=>Kf(Qr(Math.atan2(e[6],e[5]))),rotateY:e=>Kf(Qr(Math.atan2(-e[2],e[0]))),rotateZ:db,rotate:db,skewX:e=>Qr(Math.atan(e[4])),skewY:e=>Qr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pb(e){return e.includes("scale")?1:0}function Xf(e,t){if(!e||e==="none")return pb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=T$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=S$,i=c}if(!i)return pb(t);const o=r[t],l=i[1].split(",").map(C$);return typeof o=="function"?o(l):l[o]}const E$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Xf(n,t)};function C$(e){return parseFloat(e.trim())}const gb=e=>e===zi||e===Se,P$=new Set(["x","y","z"]),A$=Wi.filter(e=>!P$.has(e));function O$(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 Hi={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})=>Xf(t,"x"),y:(e,{transform:t})=>Xf(t,"y")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const ei=new Set;let Zf=!1,Jf=!1;function yb(){if(Jf){const e=Array.from(ei).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=O$(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,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jf=!1,Zf=!1,ei.forEach(e=>e.complete()),ei.clear()}function vb(){ei.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jf=!0)})}function M$(){vb(),yb()}class Qf{constructor(t,n,r,i,o,l=!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=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ei.add(this),Zf||(Zf=!0,He.read(vb),He.resolveKeyframes(yb))):(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 l=i==null?void 0:i.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&l===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),ei.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ei.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const bb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function I$(e){const t=_$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const D$=4;function xb(e,t,n=1){wr(n<=D$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=I$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return bb(l)?parseFloat(l):l}return Sf(i)?xb(i,t,n+1):i}const wb=e=>t=>t.test(e),Sb=[zi,Se,In,Tr,wD,xD,{test:e=>e==="auto",parse:e=>e}],Tb=e=>Sb.find(wb(e));class Eb extends Qf{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(),Sf(d))){const h=xb(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Bv.has(r)||t.length!==2)return;const[i,o]=t,l=Tb(i),c=Tb(o);if(l!==c)if(gb(l)&&gb(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++)i$(t[i])&&r.push(i);r.length&&w$(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=Hi[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 l=i.length-1,c=i[l];i[l]=Hi[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 Cb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Er.test(e)||e==="0")&&!e.startsWith("url("));function $$(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 R$(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],l=Cb(i,t),c=Cb(o,t);return Vi(l===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.`),!l||!c?!1:$$(e)||(n==="spring"||Ff(n))&&r}const N$=e=>e!==null;function Ba(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(N$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const L$=40;class Pb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>L$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&M$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:l,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!R$(t,r,i,o))if(l)this.options.duration=0;else{u&&u(Ba(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 ed=2e4;function Ab(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ed;)t+=n,r=e.next(t);return t>=ed?1/0:t}const nt=(e,t,n)=>e+(t-e)*n;function td(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 k$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=td(u,c,e+1/3),o=td(u,c,e),l=td(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Ua(e,t){return n=>n>0?t:e}const nd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},F$=[Yf,Jr,Yi],j$=e=>F$.find(t=>t.test(e));function Ob(e){const t=j$(e);if(Vi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Yi&&(n=k$(n)),n}const Mb=(e,t)=>{const n=Ob(e),r=Ob(t);if(!n||!r)return Ua(e,t);const i={...n};return o=>(i.red=nd(n.red,r.red,o),i.green=nd(n.green,r.green,o),i.blue=nd(n.blue,r.blue,o),i.alpha=nt(n.alpha,r.alpha,o),Jr.transform(i))},V$=(e,t)=>n=>t(e(n)),ao=(...e)=>e.reduce(V$),rd=new Set(["none","hidden"]);function B$(e,t){return rd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function U$(e,t){return n=>nt(e,t,n)}function id(e){return typeof e=="number"?U$:typeof e=="string"?Sf(e)?Ua:Ct.test(e)?Mb:G$:Array.isArray(e)?_b:typeof e=="object"?Ct.test(e)?Mb:W$:Ua}function _b(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>id(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function W$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=id(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function z$(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][i[l]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[l]++}return r}const G$=(e,t)=>{const n=Er.createTransformer(t),r=oo(e),i=oo(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?rd.has(e)&&!i.values.length||rd.has(t)&&!r.values.length?B$(e,t):ao(_b(z$(r,i),i.values),n):(Vi(!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.`),Ua(e,t))};function Ib(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?nt(e,t,n):id(e)(e,t)}const Y$=5;function Db(e,t,n){const r=Math.max(t-Y$,0);return Uv(n-e(r),t-r)}const rt={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},$b=.001;function H$({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:r=rt.mass}){let i,o;Vi(e<=$n(rt.maxDuration),"Spring duration must be 10 seconds or less");let l=1-t;l=Hn(rt.minDamping,rt.maxDamping,l),e=Hn(rt.minDuration,rt.maxDuration,qn(e)),l<1?(i=d=>{const h=d*l,m=h*e,g=h-n,y=sd(d,l),S=Math.exp(-m);return $b-g/y*S},o=d=>{const m=d*l*e,g=m*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=sd(Math.pow(d,2),l);return(-i(d)+$b>0?-1:1)*((g-y)*S)/b}):(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=K$(i,o,c);if(e=$n(e),isNaN(u))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const q$=12;function K$(e,t,n){let r=n;for(let i=1;i<q$;i++)r=r-e(r)/t(r);return r}function sd(e,t){return e*Math.sqrt(1-t*t)}const X$=["duration","bounce"],Z$=["stiffness","damping","mass"];function Rb(e,t){return t.some(n=>e[n]!==void 0)}function J$(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,Z$)&&Rb(e,X$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Hn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:rt.mass,stiffness:i,damping:o}}else{const n=H$(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function Nb(e=rt.visualDuration,t=rt.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],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=J$({...n,velocity:-qn(n.velocity||0)}),S=g||0,b=d/(2*Math.sqrt(u*h)),P=l-o,w=qn(Math.sqrt(u/h)),A=Math.abs(P)<5;r||(r=A?rt.restSpeed.granular:rt.restSpeed.default),i||(i=A?rt.restDelta.granular:rt.restDelta.default);let O;if(b<1){const C=sd(w,b);O=L=>{const V=Math.exp(-b*w*L);return l-V*((S+b*w*P)/C*Math.sin(C*L)+P*Math.cos(C*L))}}else if(b===1)O=C=>l-Math.exp(-w*C)*(P+(S+w*P)*C);else{const C=w*Math.sqrt(b*b-1);O=L=>{const V=Math.exp(-b*w*L),F=Math.min(C*L,300);return l-V*((S+b*w*P)*Math.sinh(F)+C*P*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let V=0;b<1&&(V=C===0?$n(S):Db(O,C,L));const F=Math.abs(V)<=r,Y=Math.abs(l-L)<=i;c.done=F&&Y}return c.value=c.done?l:L,c},toString:()=>{const C=Math.min(Ab(D),ed),L=Yv(V=>D.next(C*V).value,C,30);return C+"ms "+L}};return D}function Lb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,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 b=n*t;const P=m+b,w=l===void 0?P:l(P);w!==P&&(b=w-m);const A=F=>-b*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),te=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:te};let C,L;const V=F=>{y(g.value)&&(C=F,L=Nb({keyframes:[g.value,S(g.value)],velocity:Db(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),V(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const Q$=io(.42,0,1,1),e4=io(0,0,.58,1),kb=io(.42,0,.58,1),t4=e=>Array.isArray(e)&&typeof e[0]!="number",Fb={linear:Nt,easeIn:Q$,easeInOut:kb,easeOut:e4,circIn:Uf,circInOut:nb,circOut:tb,backIn:Bf,backInOut:Qv,backOut:Jv,anticipate:eb},jb=e=>{if(jf(e)){wr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return io(t,n,r,i)}else if(typeof e=="string")return wr(Fb[e]!==void 0,`Invalid easing type '${e}'`),Fb[e];return e};function n4(e,t,n){const r=[],i=n||Ib,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Nt:t;c=ao(u,c)}r.push(c)}return r}function r4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(wr(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 l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=n4(t,r,i),u=c.length,d=h=>{if(l&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Gi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Hn(e[0],e[o-1],h)):d}function i4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gi(0,t,r);e.push(nt(n,1,i))}}function s4(e){const t=[0];return i4(t,e.length-1),t}function o4(e,t){return e.map(n=>n*t)}function a4(e,t){return e.map(()=>t||kb).splice(0,e.length-1)}function lo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=t4(r)?r.map(jb):jb(r),o={done:!1,value:t[0]},l=o4(n&&n.length===t.length?n:s4(t),e),c=r4(l,t,{ease:Array.isArray(i)?i:a4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const l4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Sr(t),now:()=>vt.isProcessing?vt.timestamp:Dn.now()}},c4={decay:Lb,inertia:Lb,tween:lo,keyframes:lo,spring:Nb},u4=e=>e/100;class od extends Pb{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,l=(i==null?void 0:i.KeyframeResolver)||Qf,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new l(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:l=0}=this.options,c=Ff(n)?n:c4[n]||lo;let u,d;process.env.NODE_ENV!=="production"&&c!==lo&&wr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==lo&&typeof t[0]!="number"&&(u=ao(u4,Ib(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Ab(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:l,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:b,onUpdate:P}=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),te=F%1;!te&&F>=1&&(te=1),te===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(te=1-te,b&&(te-=b/m)):S==="mirror"&&(D=l)),O=Hn(0,1,te)*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 V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return V&&i!==void 0&&(C.value=Ba(u,this.options,i)),P&&P(C.value),V&&this.finish(),C}get duration(){const{resolved:t}=this;return t?qn(t.calculatedDuration):0}get time(){return qn(this.currentTime)}set time(t){t=$n(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=qn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l4,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 f4=new Set(["opacity","clipPath","filter","transform"]);function d4(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=qv(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:l==="reverse"?"alternate":"normal"})}const h4=kf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wa=10,m4=2e4;function p4(e){return Ff(e.type)||e.type==="spring"||!Hv(e.ease)}function g4(e,t){const n=new od({...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<m4;)r=n.sample(o),i.push(r.value),o+=Wa;return{times:void 0,keyframes:i,duration:o-Wa,ease:"linear"}}const Vb={anticipate:eb,backInOut:Qv,circInOut:nb};function y4(e){return e in Vb}class Bb extends Pb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Eb(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:l,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Va()&&y4(o)&&(o=Vb[o]),p4(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...b}=this.options,P=g4(t,b);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,o=P.ease,l="keyframes"}const h=d4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(Gv(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ba(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$n(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 Nt;const{animation:r}=n;Gv(r,t)}return Nt}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:l,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 od({...y,keyframes:r,duration:i,type:o,ease:l,times:c,isGenerator:!0}),b=$n(this.time);d.setWithVelocity(S.sample(b-Wa).value,S.sample(b).value,Wa)}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:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return h4()&&r&&f4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&l!==0&&c!=="inertia"}}const v4={type:"spring",stiffness:500,damping:25,restSpeed:10},b4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x4={type:"keyframes",duration:.8},w4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S4=(e,{keyframes:t})=>t.length>2?x4:Zr.has(e)?e.startsWith("scale")?b4(t[1]):v4:w4;function T4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ad=(e,t,n,r={},i,o)=>l=>{const c=Df(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-$n(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:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};T4(c)||(h={...h,...S4(e,h)}),h.duration&&(h.duration=$n(h.duration)),h.repeatDelay&&(h.repeatDelay=$n(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=Ba(h.keyframes,c);if(g!==void 0)return He.update(()=>{h.onUpdate(g),h.onComplete()}),new JD([])}return!o&&Bb.supports(h)?new Bb(h):new od(h)};function E4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ub(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(l=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&&E4(h,m))continue;const S={delay:n,...Df(l||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=zv(e);if(w){const A=window.MotionHandoffAnimation(w,m,He);A!==null&&(S.startTime=A,b=!0)}}Lf(e,m),g.start(ad(m,g,y,e.shouldReduceMotion&&Bv.has(m)?{type:!1}:S,e,b));const P=g.animation;P&&d.push(P)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&qD(e,c)})}),d}function ld(e,t,n={}){var r;const i=to(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 l=i?()=>Promise.all(Ub(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return C4(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[l,c]:[c,l];return d().then(()=>h())}else return Promise.all([l(),c(n.delay)])}function C4(e,t,n=0,r=0,i=1,o){const l=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(P4).forEach((d,h)=>{d.notify("AnimationStart",t),l.push(ld(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(l)}function P4(e,t){return e.sortNodePosition(t)}function A4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ld(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ld(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Ub(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Wb(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 O4=vf.length;function zb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<O4;n++){const r=vf[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const M4=[...yf].reverse(),_4=yf.length;function I4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>A4(e,n,r)))}function D4(e){let t=I4(e),n=Gb(),r=!0;const i=u=>(d,h)=>{var m;const g=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...b}=g;d={...d,...b,...S}}return d};function o(u){t=u(e)}function l(u){const{props:d}=e,h=zb(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let P=0;P<_4;P++){const w=M4[P],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=Zs(O),C=w===u?A.isActive:null;C===!1&&(S=P);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||Na(O)||typeof O=="boolean")continue;const V=$4(A.prevProp,O);let F=V||w===u&&A.isActive&&!L&&D||P>S&&D,Y=!1;const te=Array.isArray(O)?O:[O];let ie=te.reduce(i(w),{});C===!1&&(ie={});const{prevResolvedValues:ve={}}=A,ye={...ve,...ie},fe=K=>{F=!0,g.has(K)&&(Y=!0,g.delete(K)),A.needsAnimating[K]=!0;const H=e.getValue(K);H&&(H.liveStyle=!1)};for(const K in ye){const H=ie[K],J=ve[K];if(y.hasOwnProperty(K))continue;let _=!1;_f(H)&&_f(J)?_=!Wb(H,J):_=H!==J,_?H!=null?fe(K):g.add(K):H!==void 0&&g.has(K)?fe(K):A.protectedKeys[K]=!0}A.prevProp=O,A.prevResolvedValues=ie,A.isActive&&(y={...y,...ie}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&V)||Y)&&m.push(...te.map(K=>({animation:K,options:{type:w}})))}if(g.size){const P={};if(typeof d.initial!="boolean"){const w=to(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(P.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),P[w]=A??null}),m.push({animation:P})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=l(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Gb(),r=!0}}}function $4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wb(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gb(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}class Cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class R4 extends Cr{constructor(t){super(t),t.animationState||(t.animationState=D4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Na(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 N4=0;class L4 extends Cr{constructor(){super(...arguments),this.id=N4++}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 k4={animation:{Feature:R4},exit:{Feature:L4}},gn={x:!1,y:!1};function Yb(){return gn.x||gn.y}function F4(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function uo(e){return{point:{x:e.pageX,y:e.pageY}}}const j4=e=>t=>cd(t)&&e(t,uo(t));function fo(e,t,n,r){return co(e,t,j4(n),r)}function Hb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function V4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B4(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 qb=1e-4,U4=1-qb,W4=1+qb,Kb=.01,z4=0-Kb,G4=0+Kb;function _t(e){return e.max-e.min}function Y4(e,t,n){return Math.abs(e-t)<=n}function Xb(e,t,n,r=.5){e.origin=r,e.originPoint=nt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=nt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=U4&&e.scale<=W4||isNaN(e.scale))&&(e.scale=1),(e.translate>=z4&&e.translate<=G4||isNaN(e.translate))&&(e.translate=0)}function ho(e,t,n,r){Xb(e.x,t.x,n.x,r?r.originX:void 0),Xb(e.y,t.y,n.y,r?r.originY:void 0)}function Zb(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function H4(e,t,n){Zb(e.x,t.x,n.x),Zb(e.y,t.y,n.y)}function Jb(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function mo(e,t,n){Jb(e.x,t.x,n.x),Jb(e.y,t.y,n.y)}const Qb=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Qb(),y:Qb()}),e1=()=>({min:0,max:0}),lt=()=>({x:e1(),y:e1()});function rn(e){return[e("x"),e("y")]}function ud(e){return e===void 0||e===1}function fd({scale:e,scaleX:t,scaleY:n}){return!ud(e)||!ud(t)||!ud(n)}function ni(e){return fd(e)||t1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t1(e){return n1(e.x)||n1(e.y)}function n1(e){return e&&e!=="0%"}function za(e,t,n){const r=e-n,i=t*r;return n+i}function r1(e,t,n,r,i){return i!==void 0&&(e=za(e,i,r)),za(e,n,r)+t}function dd(e,t=0,n=1,r,i){e.min=r1(e.min,t,n,r,i),e.max=r1(e.max,t,n,r,i)}function i1(e,{x:t,y:n}){dd(e.x,t.translate,t.scale,t.originPoint),dd(e.y,n.translate,n.scale,n.originPoint)}const s1=.999999999999,o1=1.0000000000001;function q4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=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&&Xi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,i1(e,l)),r&&ni(o.latestValues)&&Xi(e,o.latestValues))}t.x<o1&&t.x>s1&&(t.x=1),t.y<o1&&t.y>s1&&(t.y=1)}function Ki(e,t){e.min=e.min+t,e.max=e.max+t}function a1(e,t,n,r,i=.5){const o=nt(e.min,e.max,i);dd(e,t,n,o,r)}function Xi(e,t){a1(e.x,t.x,t.scaleX,t.scale,t.originX),a1(e.y,t.y,t.scaleY,t.scale,t.originY)}function l1(e,t){return Hb(B4(e.getBoundingClientRect(),t))}function K4(e,t,n){const r=l1(e,n),{scroll:i}=t;return i&&(Ki(r.x,i.offset.x),Ki(r.y,i.offset.y)),r}const c1=({current:e})=>e?e.ownerDocument.defaultView:null,u1=(e,t)=>Math.abs(e-t);function X4(e,t){const n=u1(e.x,t.x),r=u1(e.y,t.y);return Math.sqrt(n**2+r**2)}class f1{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=md(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=X4(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:P,onMove:w}=this.handlers;g||(P&&P(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=hd(g,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=md(m.type==="pointercancel"?this.lastMoveEventInfo:hd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,P),S&&S(m,P)},!cd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=uo(t),c=hd(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,md(c,this.history)),this.removeListeners=ao(fo(this.contextWindow,"pointermove",this.handlePointerMove),fo(this.contextWindow,"pointerup",this.handlePointerUp),fo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Sr(this.updatePoint)}}function hd(e,t){return t?{point:t(e.point)}:e}function d1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function md({point:e},t){return{point:e,delta:d1(e,h1(t)),offset:d1(e,Z4(t)),velocity:J4(t,.1)}}function Z4(e){return e[0]}function h1(e){return e[e.length-1]}function J4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=h1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$n(t)));)n--;if(!r)return{x:0,y:0};const o=qn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Q4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nt(n,e,r.max):Math.min(e,n)),e}function m1(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 e5(e,{top:t,left:n,bottom:r,right:i}){return{x:m1(e.x,n,i),y:m1(e.y,t,r)}}function p1(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 t5(e,t){return{x:p1(e.x,t.x),y:p1(e.y,t.y)}}function n5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=Gi(t.min,t.max-r,e.min):r>i&&(n=Gi(e.min,e.max-i,t.min)),Hn(0,1,n)}function r5(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 pd=.35;function i5(e=pd){return e===!1?e=0:e===!0&&(e=pd),{x:g1(e,"left","right"),y:g1(e,"top","bottom")}}function g1(e,t,n){return{min:y1(e,t),max:y1(e,n)}}function y1(e,t){return typeof e=="number"?e:e[t]||0}const s5=new WeakMap;class o5{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(uo(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F4(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(P=>{let w=this.getAxisMotionValue(P).get()||0;if(In.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[P];O&&(w=_t(O)*(parseFloat(w)/100))}}this.originPoint[P]=w}),S&&He.postRender(()=>S(h,m)),Lf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:P}=m;if(y&&this.currentDirection===null){this.currentDirection=a5(P),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,P),this.updateAxis("y",m.point,P),this.visualElement.render(),b&&b(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 f1(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:c1(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||!Ga(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=Q4(l,this.constraints[t],this.elastic[t])),o.set(l)}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&&Ui(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=e5(i.layoutBox,n):this.constraints=!1,this.elastic=i5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=r5(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ui(t))return!1;const r=t.current;wr(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=K4(r,i.root,this.visualElement.getTransformPagePoint());let l=t5(i.layout.layoutBox,o);if(n){const c=n(V4(l));this.hasMutatedConstraints=!!c,c&&(l=Hb(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Ga(h,n,this.currentDirection))return;let m=u&&u[h]||{};l&&(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 Lf(this.visualElement,t),r.start(ad(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(!Ga(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-nt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ui(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();i[l]=n5({min:u,max:u},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(l=>{if(!Ga(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(nt(u,d,i[l]))})}addListeners(){if(!this.visualElement.current)return;s5.set(this.visualElement,this);const t=this.visualElement.current,n=fo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ui(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 l=co(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()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=pd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Ga(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function a5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class l5 extends Cr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new o5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const v1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class c5 extends Cr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new f1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:c1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:v1(t),onStart:v1(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&He.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=fo(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 Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function b1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=b1(e,t.target.x),r=b1(e,t.target.y);return`${n}% ${r}%`}},u5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Er.parse(e);if(i.length>5)return r;const o=Er.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=u;const d=nt(c,u,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),o(i)}};class f5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;bD(d5),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()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||He.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),bf.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 x1(e){const[t,n]=dv(),r=I.useContext(df);return x.jsx(f5,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Tv),isPresent:t,safeToRemove:n})}const d5={borderRadius:{...po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:po,borderTopRightRadius:po,borderBottomLeftRadius:po,borderBottomRightRadius:po,boxShadow:u5};function h5(e,t,n){const r=Et(e)?e:no(e);return r.start(ad("",r,t,n)),r.animation}function m5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const p5=(e,t)=>e.depth-t.depth;class g5{constructor(){this.children=[],this.isDirty=!1}add(t){$f(this.children,t),this.isDirty=!0}remove(t){Rf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(p5),this.isDirty=!1,this.children.forEach(t)}}function y5(e,t){const n=Dn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Sr(r),e(o-t))};return He.read(r,!0),()=>Sr(r)}const w1=["TopLeft","TopRight","BottomLeft","BottomRight"],v5=w1.length,S1=e=>typeof e=="string"?parseFloat(e):e,T1=e=>typeof e=="number"||Se.test(e);function b5(e,t,n,r,i,o){i?(e.opacity=nt(0,n.opacity!==void 0?n.opacity:1,x5(r)),e.opacityExit=nt(t.opacity!==void 0?t.opacity:1,0,w5(r))):o&&(e.opacity=nt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<v5;l++){const c=`border${w1[l]}Radius`;let u=E1(t,c),d=E1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||T1(u)===T1(d)?(e[c]=Math.max(nt(S1(u),S1(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=nt(t.rotate||0,n.rotate||0,r))}function E1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const x5=C1(0,.5,tb),w5=C1(.5,.95,Nt);function C1(e,t,n){return r=>r<e?0:r>t?1:n(Gi(e,t,r))}function P1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){P1(e.x,t.x),P1(e.y,t.y)}function A1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function O1(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 S5(e,t=0,n=1,r=.5,i,o=e,l=e){if(In.test(t)&&(t=parseFloat(t),t=nt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=nt(o.min,o.max,r);e===o&&(c-=t),e.min=O1(e.min,t,n,c,i),e.max=O1(e.max,t,n,c,i)}function M1(e,t,[n,r,i],o,l){S5(e,t[n],t[r],t[i],t.scale,o,l)}const T5=["x","scaleX","originX"],E5=["y","scaleY","originY"];function _1(e,t,n,r){M1(e.x,t,T5,n?n.x:void 0,r?r.x:void 0),M1(e.y,t,E5,n?n.y:void 0,r?r.y:void 0)}function I1(e){return e.translate===0&&e.scale===1}function D1(e){return I1(e.x)&&I1(e.y)}function $1(e,t){return e.min===t.min&&e.max===t.max}function C5(e,t){return $1(e.x,t.x)&&$1(e.y,t.y)}function R1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function N1(e,t){return R1(e.x,t.x)&&R1(e.y,t.y)}function L1(e){return _t(e.x)/_t(e.y)}function k1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class P5{constructor(){this.members=[]}add(t){$f(this.members,t),t.scheduleRender()}remove(t){if(Rf(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 A5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}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 gd=["","X","Y","Z"],O5={visibility:"hidden"},F1=1e3;let M5=0;function yd(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=zv(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 V1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=M5++,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(D5),this.nodes.forEach(k5),this.nodes.forEach(F5),this.nodes.forEach($5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,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 g5)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Nf),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=m5(l),this.instance=l;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),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(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=y5(g,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(U1))})}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 b=this.options.transition||h.getDefaultTransition()||W5,{onLayoutAnimationStart:P,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!N1(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={...Df(b,"layout"),onPlay:P,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||U1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sr(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(j5),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(B1);return}this.isUpdating||this.nodes.forEach(N5),this.isUpdating=!1,this.nodes.forEach(L5),this.nodes.forEach(_5),this.nodes.forEach(I5),this.clearAllSnapshots();const c=Dn.now();vt.delta=Hn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,gf.update.process(vt),gf.preRender.process(vt),gf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R5),this.sharedNodes.forEach(V5)}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 l=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,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!D1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;l&&(c||ni(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),z5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(G5))){const{scroll:h}=this.root;h&&(Ki(u.x,h.offset.x),Ki(u.y,h.offset.y))}return u}removeElementScroll(l){var c;const u=lt();if(sn(u,l),!((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,l),Ki(u.x,m.offset.x),Ki(u.y,m.offset.y))}return u}applyTransform(l,c=!1){const u=lt();sn(u,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Xi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ni(h.latestValues)&&Xi(u,h.latestValues)}return ni(this.latestValues)&&Xi(u,this.latestValues),u}removeTransform(l){const c=lt();sn(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!ni(d.latestValues))continue;fd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),_1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return ni(this.latestValues)&&_1(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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(l=!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(!(l||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(),mo(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(),H4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),i1(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(),mo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||fd(this.parent.latestValues)||t1(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 l;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.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;q4(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():(A1(this.prevProjectionDelta.x,this.projectionDelta.x),A1(this.prevProjectionDelta.y,this.projectionDelta.y)),ho(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!k1(this.projectionDelta.x,this.prevProjectionDelta.x)||!k1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=qi();(!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,b=y!==S,P=this.getStack(),w=!P||P.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;W1(m.x,l.x,C),W1(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),B5(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&C5(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=lt()),sn(O,this.relativeTarget)),b&&(this.animationValues=h,b5(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=h5(0,F1,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&q1(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=_t(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}sn(c,u),Xi(c,h),ho(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new P5),this.sharedNodes.get(l).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 l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&yd("z",l,d,this.animationValues);for(let h=0;h<gd.length;h++)yd(`rotate${gd[h]}`,l,d,this.animationValues),yd(`skew${gd[h]}`,l,d,this.animationValues);l.render();for(const h in d)l.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);l.scheduleRender()}getProjectionStyles(l){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return O5;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Fa(l==null?void 0:l.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Fa(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!ni(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=A5(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 b in Js){if(g[b]===void 0)continue;const{correct:P,applyTo:w,isCSSVariable:A}=Js[b],O=d.transform==="none"?g[b]:P(g[b],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[b]=O:d[b]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Fa(l==null?void 0:l.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(B1),this.root.sharedNodes.clear()}}}function _5(e){e.updateLayout()}function I5(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,l=n.source!==e.layout.source;o==="size"?rn(m=>{const g=l?n.measuredBox[m]:n.layoutBox[m],y=_t(g);g.min=r[m].min,g.max=g.min+y}):q1(o,n.layoutBox,r)&&rn(m=>{const g=l?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=qi();ho(c,r,n.layoutBox);const u=qi();l?ho(u,e.applyTransform(i,!0),n.measuredBox):ho(u,r,n.layoutBox);const d=!D1(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();mo(S,n.layoutBox,g.layoutBox);const b=lt();mo(b,r,y.layoutBox),N1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,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 D5(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 $5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R5(e){e.clearSnapshot()}function B1(e){e.clearMeasurements()}function N5(e){e.isLayoutDirty=!1}function L5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function U1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function k5(e){e.resolveTargetDelta()}function F5(e){e.calcProjection()}function j5(e){e.resetSkewAndRotation()}function V5(e){e.removeLeadSnapshot()}function W1(e,t,n){e.translate=nt(t.translate,0,n),e.scale=nt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function z1(e,t,n,r){e.min=nt(t.min,n.min,r),e.max=nt(t.max,n.max,r)}function B5(e,t,n,r){z1(e.x,t.x,n.x,r),z1(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const W5={duration:.45,ease:[.4,0,.1,1]},G1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Y1=G1("applewebkit/")&&!G1("chrome/")?Math.round:Nt;function H1(e){e.min=Y1(e.min),e.max=Y1(e.max)}function z5(e){H1(e.x),H1(e.y)}function q1(e,t,n){return e==="position"||e==="preserve-aspect"&&!Y4(L1(t),L1(n),.2)}function G5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Y5=V1({attachResizeListener:(e,t)=>co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vd={current:void 0},K1=V1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vd.current){const e=new Y5({});e.mount(window),e.setOptions({layoutScroll:!0}),vd.current=e}return vd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),H5={pan:{Feature:c5},drag:{Feature:l5,ProjectionNode:K1,MeasureLayout:x1}};function q5(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 X1(e,t){const n=q5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Z1(e){return!(e.pointerType==="touch"||Yb())}function K5(e,t,n={}){const[r,i,o]=X1(e,n),l=c=>{if(!Z1(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{Z1(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}function J1(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,uo(t)))}class X5 extends Cr{mount(){const{current:t}=this.node;t&&(this.unmount=K5(t,(n,r)=>(J1(this.node,r,"Start"),i=>J1(this.node,i,"End"))))}unmount(){}}class Z5 extends Cr{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=ao(co(this.node.current,"focus",()=>this.onFocus()),co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Q1=(e,t)=>t?e===t?!0:Q1(e,t.parentElement):!1,J5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Q5(e){return J5.has(e.tagName)||e.tabIndex!==-1}const go=new WeakSet;function ex(e){return t=>{t.key==="Enter"&&e(t)}}function bd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ex(()=>{if(go.has(n))return;bd(n,"down");const i=ex(()=>{bd(n,"up")}),o=()=>bd(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 tx(e){return cd(e)&&!Yb()}function tR(e,t,n={}){const[r,i,o]=X1(e,n),l=c=>{const u=c.currentTarget;if(!tx(c)||go.has(u))return;go.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!tx(y)||!go.has(u))&&(go.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||Q1(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",l,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>eR(d,i)),!Q5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function nx(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,uo(t)))}class nR extends Cr{mount(){const{current:t}=this.node;t&&(this.unmount=tR(t,(n,r)=>(nx(this.node,r,"Start"),(i,{success:o})=>nx(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xd=new WeakMap,wd=new WeakMap,rR=e=>{const t=xd.get(e.target);t&&t(e)},iR=e=>{e.forEach(rR)};function sR({root:e,...t}){const n=e||document;wd.has(n)||wd.set(n,{});const r=wd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iR,{root:e,...t})),r[i]}function oR(e,t,n){const r=sR(t);return xd.set(e,n),r.observe(e),()=>{xd.delete(e),r.unobserve(e)}}const aR={some:0,all:1};class lR extends Cr{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,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:aR[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 oR(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cR(t,n))&&this.startObserver()}unmount(){}}function cR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uR={inView:{Feature:lR},tap:{Feature:nR},focus:{Feature:Z5},hover:{Feature:X5}},fR={layout:{ProjectionNode:K1,MeasureLayout:x1}},Sd={current:null},rx={current:!1};function dR(){if(rx.current=!0,!!mf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sd.current=e.matches;e.addListener(t),t()}else Sd.current=!1}const hR=[...Sb,Ct,Er],mR=e=>hR.find(wb(e)),pR=new WeakMap;function gR(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"&&$a(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,no(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,no(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ix=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qf,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=Dn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=l;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=La(n),this.isVariantNode=xv(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,pR.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)),rx.current||dR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sd.current,process.env.NODE_ENV!=="production"&&$a(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(),Sr(this.notifyUpdate),Sr(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=Zr.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 l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),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 Bi){const n=Bi[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<ix.length;r++){const i=ix[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=gR(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=no(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"&&(bb(i)||rb(i))?i=parseFloat(i):!mR(i)&&Er.test(n)&&(i=fb(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 l=Mf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[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 Nf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sx extends yR{constructor(){super(...arguments),this.KeyframeResolver=Eb}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 vR(e){return window.getComputedStyle(e)}class bR extends sx{constructor(){super(...arguments),this.type="html",this.renderInstance=Lv}readValueFromInstance(t,n){if(Zr.has(n))return E$(t,n);{const r=vR(t),i=(wf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return l1(t,n)}build(t,n,r){Ef(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return If(t,n,r)}}class xR extends sx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Nv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zr.has(n)){const r=ub(n);return r&&r.default||0}return n=kv.has(n)?n:xf(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){Af(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Fv(t,n,r,i)}mount(t){this.isSVGTag=Of(t.tagName),super.mount(t)}}const wR=(e,t)=>Pf(e)?new xR(t):new bR(t,{allowProjection:e!==I.Fragment}),SR=WD({...k4,...uR,...H5,...fR},wR),Ze=oD(SR),Td={defaultColorScheme:"aqua",t:e=>e},ox=I.createContext(Td),ze=()=>I.useContext(ox),ax=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o})=>{const{t:l}=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(xr,{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(is,{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(De,{icon:Kc,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(_o,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:l("cancel")}),x.jsx(_o,{onClick:d,className:"px-24 py-16 text-lg!",children:l("confirm")})]})]})})})})})};/*!
|
|
659
|
+
`),()=>{document.head.removeChild(y)}},[t]),x.jsx(KI,{isPresent:t,childRef:i,sizeRef:o,children:ce.cloneElement(e,{ref:i})})}const ZI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:l,anchorX:c})=>{const u=hf(JI),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]),ce.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),l==="popLayout"&&(e=x.jsx(XI,{isPresent:n,anchorX:c,children:e})),x.jsx(Ma.Provider,{value:m,children:e})};function JI(){return new Map}function dv(e=!0){const t=I.useContext(Ma);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 l=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const _a=e=>e.key||"";function hv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const xr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:l=!1,anchorX:c="left"})=>{const[u,d]=dv(l),h=I.useMemo(()=>hv(e),[e]),m=l&&!u?[]:h.map(_a),g=I.useRef(!0),y=I.useRef(h),S=hf(()=>new Map),[b,P]=I.useState(h),[w,A]=I.useState(h);fv(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=_a(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!==b){let C=[...h];for(let L=0;L<w.length;L++){const V=w[L],F=_a(V);m.includes(F)||(C.splice(L,0,V),O.push(V))}return o==="wait"&&O.length&&(C=O),A(hv(C)),P(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(df);return x.jsx(x.Fragment,{children:w.map(C=>{const L=_a(C),V=l&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let q=!0;S.forEach(ee=>{ee||(q=!1)}),q&&(D==null||D(),A(y.current),l&&(d==null||d()),r&&r())};return x.jsx(ZI,{isPresent:V,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:V?void 0:F,anchorX:c,children:C},L)})})},Nt=e=>e;let Vi=Nt,wr=Nt;process.env.NODE_ENV!=="production"&&(Vi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},wr=(e,t)=>{if(!e)throw new Error(t)});const QI={useManualTiming:!1},Ia=["read","resolveKeyframes","update","preRender","render","postRender"],mv={value:null};function eD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){l.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const b=y&&i?n:r;return g&&l.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&mv.value&&mv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const tD=40;function pv(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=Ia.reduce((w,A)=>(w[A]=eD(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=l,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,tD),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:Ia.reduce((w,A)=>{const O=l[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<Ia.length;A++)l[Ia[A]].cancel(w)},state:i,steps:l}}const{schedule:He,cancel:Sr,state:vt,steps:gf}=pv(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),gv=I.createContext({strict:!1}),yv={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"]},Bi={};for(const e in yv)Bi[e]={isEnabled:t=>yv[e].some(n=>!!t[n])};function nD(e){for(const t in e)Bi[t]={...Bi[t],...e[t]}}const rD=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 Da(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rD.has(e)}let vv=e=>!Da(e);function iD(e){e&&(vv=t=>t.startsWith("on")?!Da(t):e(t))}try{iD(require("@emotion/is-prop-valid").default)}catch{}function sD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(vv(i)||n===!0&&Da(i)||!t&&!Da(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const bv=new Set;function $a(e,t,n){e||bv.has(t)||(console.warn(t),bv.add(t))}function oD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$a(!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 Ra=I.createContext({});function Na(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zs(e){return typeof e=="string"||Array.isArray(e)}const yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vf=["initial",...yf];function La(e){return Na(e.animate)||vf.some(t=>Zs(e[t]))}function xv(e){return!!(La(e)||e.variants)}function aD(e,t){if(La(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Zs(n)?n:void 0,animate:Zs(r)?r:void 0}}return e.inherit!==!1?t:{}}function lD(e){const{initial:t,animate:n}=aD(e,I.useContext(Ra));return I.useMemo(()=>({initial:t,animate:n}),[wv(t),wv(n)])}function wv(e){return Array.isArray(e)?e.join(" "):e}const cD=Symbol.for("motionComponentSymbol");function Ui(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function uD(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):Ui(n)&&(n.current=r))},[t])}const{schedule:bf}=pv(queueMicrotask,!1),xf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Sv="data-"+xf("framerAppearId"),Tv=I.createContext({});function fD(e,t,n,r,i){var o,l;const{visualElement:c}=I.useContext(Ra),u=I.useContext(gv),d=I.useContext(Ma),h=I.useContext(pf).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(Tv);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&dD(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const b=n[Sv],P=I.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,b)));return fv(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),bf.render(g.render),P.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!P.current&&g.animationState&&g.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,b)}),P.current=!1))}),g}function dD(e,t,n,r){const{layoutId:i,layout:o,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Ev(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!l||c&&Ui(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Ev(e){if(e)return e.options.allowProjection!==!1?e.projection:Ev(e.parent)}function hD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,l;e&&nD(e);function c(d,h){let m;const g={...I.useContext(pf),...d,layoutId:mD(d)},{isStatic:y}=g,S=lD(d),b=r(d,y);if(!y&&mf){pD(g,e);const P=gD(g);m=P.MeasureLayout,S.visualElement=fD(i,b,g,t,P.ProjectionNode)}return x.jsxs(Ra.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,uD(b,S.visualElement,h),b,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(l=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&l!==void 0?l:""})`}`;const u=I.forwardRef(c);return u[cD]=i,u}function mD({layoutId:e}){const t=I.useContext(df).id;return t&&e!==void 0?t+"-"+e:e}function pD(e,t){const n=I.useContext(gv).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?Vi(!1,r):wr(!1,r)}}function gD(e){const{drag:t,layout:n}=Bi;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 Cv=e=>t=>typeof t=="string"&&t.startsWith(e),wf=Cv("--"),yD=Cv("var(--"),Sf=e=>yD(e)?vD.test(e.split("/*")[0].trim()):!1,vD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function bD(e){for(const t in e)Js[t]=e[t],wf(t)&&(Js[t].isCSSVariable=!0)}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zr=new Set(Wi);function Pv(e,{layout:t,layoutId:n}){return Zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Av=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hn=(e,t,n)=>n>t?t:n<e?e:n,zi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...zi,transform:e=>Hn(0,1,e)},ka={...zi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tr=eo("deg"),In=eo("%"),Se=eo("px"),xD=eo("vh"),wD=eo("vw"),Ov={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},SD={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},TD={rotate:Tr,rotateX:Tr,rotateY:Tr,rotateZ:Tr,scale:ka,scaleX:ka,scaleY:ka,scaleZ:ka,skew:Tr,skewX:Tr,skewY:Tr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:Qs,originX:Ov,originY:Ov,originZ:Se},Mv={...zi,transform:Math.round},Tf={...SD,...TD,zIndex:Mv,size:Se,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:Mv},ED={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},CD=Wi.length;function PD(e,t,n){let r="",i=!0;for(let o=0;o<CD;o++){const l=Wi[o],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Av(c,Tf[l]);if(!u){i=!1;const h=ED[l]||l;r+=`${h}(${d}) `}n&&(t[l]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ef(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let l=!1,c=!1;for(const u in t){const d=t[u];if(Zr.has(u)){l=!0;continue}else if(wf(u)){i[u]=d;continue}else{const h=Av(d,Tf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(l||n?r.transform=PD(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 Cf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _v(e,t,n){for(const r in t)!Et(t[r])&&!Pv(r,n)&&(e[r]=t[r])}function AD({transformTemplate:e},t){return I.useMemo(()=>{const n=Cf();return Ef(n,t,e),Object.assign({},n.vars,n.style)},[t])}function OD(e,t){const n=e.style||{},r={};return _v(r,n,e),Object.assign(r,AD(e,t)),r}function MD(e,t){const n={},r=OD(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 _D=["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 Pf(e){return typeof e!="string"||e.includes("-")?!1:!!(_D.indexOf(e)>-1||/[A-Z]/u.test(e))}const ID={offset:"stroke-dashoffset",array:"stroke-dasharray"},DD={offset:"strokeDashoffset",array:"strokeDasharray"};function $D(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?ID:DD;e[o.offset]=Se.transform(-r);const l=Se.transform(t),c=Se.transform(n);e[o.array]=`${l} ${c}`}function Iv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function RD(e,t,n){const r=Iv(t,e.x,e.width),i=Iv(n,e.y,e.height);return`${r} ${i}`}function Af(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Ef(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=RD(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),l!==void 0&&$D(g,l,c,u,!1)}const Dv=()=>({...Cf(),attrs:{}}),Of=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ND(e,t,n,r){const i=I.useMemo(()=>{const o=Dv();return Af(o,t,Of(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};_v(o,e.style,e),i.style={...o,...i.style}}return i}function LD(e=!1){return(n,r,i,{latestValues:o},l)=>{const u=(Pf(n)?ND:MD)(r,o,l,n),d=sD(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 $v(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mf(e,t,n,r){if(typeof t=="function"){const[i,o]=$v(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]=$v(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const _f=e=>Array.isArray(e),kD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),FD=e=>_f(e)?e[e.length-1]||0:e;function Fa(e){const t=Et(e)?e.get():e;return kD(t)?t.toValue():t}function jD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const l={latestValues:VD(r,i,o,e),renderState:t()};return n&&(l.onMount=c=>n({props:r,current:c,...l}),l.onUpdate=c=>n(c)),l}const Rv=e=>(t,n)=>{const r=I.useContext(Ra),i=I.useContext(Ma),o=()=>jD(e,t,r,i);return n?o():hf(o)};function VD(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Fa(o[g]);let{initial:l,animate:c}=e;const u=La(e),d=xv(e);t&&d&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||l===!1;const m=h?c:l;if(m&&typeof m!="boolean"&&!Na(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Mf(e,g[y]);if(S){const{transitionEnd:b,transition:P,...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 b)i[A]=b[A]}}}return i}function If(e,t,n){var r;const{style:i}=e,o={};for(const l in i)(Et(i[l])||t.style&&Et(t.style[l])||Pv(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=i[l]);return o}const BD={useVisualState:Rv({scrapeMotionValuesFromProps:If,createRenderState:Cf})};function Nv(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 Lv(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 kv=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 Fv(e,t,n,r){Lv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(kv.has(i)?i:xf(i),t.attrs[i])}function jv(e,t,n){const r=If(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=Wi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Vv=["x","y","width","height","cx","cy","r"],UD={useVisualState:Rv({scrapeMotionValuesFromProps:jv,createRenderState:Dv,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(Zr.has(c)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let c=0;c<Vv.length;c++){const u=Vv[c];e[u]!==t[u]&&(l=!0)}l&&He.read(()=>{Nv(n,r),He.render(()=>{Af(r,i,Of(n.tagName),e.transformTemplate),Fv(n,r)})})}})};function WD(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const l={...Pf(r)?UD:BD,preloadedFeatures:e,useRender:LD(i),createVisualElement:t,Component:r};return hD(l)}}function to(e,t,n){const r=e.getProps();return Mf(r,t,n!==void 0?n:r.custom,e)}function Df(e,t){return e?e[t]||e.default||e:void 0}const Bv=new Set(["width","height","top","left","right","bottom",...Wi]);function $f(e,t){e.indexOf(t)===-1&&e.push(t)}function Rf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Nf{constructor(){this.subscriptions=[]}add(t){return $f(this.subscriptions,t),()=>Rf(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 l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Uv(e,t){return t?e*(1e3/t):0}let ja;function zD(){ja=void 0}const Dn={now:()=>(ja===void 0&&Dn.set(vt.isProcessing||QI.useManualTiming?vt.timestamp:performance.now()),ja),set:e=>{ja=e,queueMicrotask(zD)}},Wv=30,GD=e=>!isNaN(parseFloat(e));class YD{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Dn.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=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GD(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$a(!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 Nf);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=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wv);return Uv(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 no(e,t){return new YD(e,t)}function HD(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,no(n))}function qD(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const l in o){const c=FD(o[l]);HD(e,l,c)}}function KD(e){return!!(Et(e)&&e.add)}function Lf(e,t){const n=e.getValue("willChange");if(KD(n))return n.add(t)}function zv(e){return e.props[Sv]}function kf(e){let t;return()=>(t===void 0&&(t=e()),t)}const XD=kf(()=>window.ScrollTimeline!==void 0);class ZD{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(XD()&&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 JD extends ZD{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const $n=e=>e*1e3,qn=e=>e/1e3;function Ff(e){return typeof e=="function"}function Gv(e,t){e.timeline=t,e.onfinish=null}const jf=e=>Array.isArray(e)&&typeof e[0]=="number",QD={linearEasing:void 0};function e$(e,t){const n=kf(e);return()=>{var r;return(r=QD[t])!==null&&r!==void 0?r:n()}}const Va=e$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Yv=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Gi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function Hv(e){return!!(typeof e=="function"&&Va()||!e||typeof e=="string"&&(e in Vf||Va())||jf(e)||Array.isArray(e)&&e.every(Hv))}const ro=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Vf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function qv(e,t){if(e)return typeof e=="function"&&Va()?Yv(e,t):jf(e)?ro(e):Array.isArray(e)?e.map(n=>qv(n,t)||Vf.easeOut):Vf[e]}const Kv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,t$=1e-7,n$=12;function r$(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=Kv(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>t$&&++c<n$);return l}function io(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>r$(o,0,1,e,n);return o=>o===0||o===1?o:Kv(i(o),t,r)}const Xv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zv=e=>t=>1-e(1-t),Jv=io(.33,1.53,.69,.99),Bf=Zv(Jv),Qv=Xv(Bf),eb=e=>(e*=2)<1?.5*Bf(e):.5*(2-Math.pow(2,-10*(e-1))),Uf=e=>1-Math.sin(Math.acos(e)),tb=Zv(Uf),nb=Xv(Uf),rb=e=>/^0[^.\s]+$/u.test(e);function i$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rb(e):!0}const so=e=>Math.round(e*1e5)/1e5,Wf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function s$(e){return e==null}const o$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zf=(e,t)=>n=>!!(typeof n=="string"&&o$.test(n)&&n.startsWith(e)||t&&!s$(n)&&Object.prototype.hasOwnProperty.call(n,t)),ib=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,l,c]=r.match(Wf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},a$=e=>Hn(0,255,e),Gf={...zi,transform:e=>Math.round(a$(e))},Jr={test:zf("rgb","red"),parse:ib("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Gf.transform(e)+", "+Gf.transform(t)+", "+Gf.transform(n)+", "+so(Qs.transform(r))+")"};function l$(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 Yf={test:zf("#"),parse:l$,transform:Jr.transform},Yi={test:zf("hsl","hue"),parse:ib("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(so(t))+", "+In.transform(so(n))+", "+so(Qs.transform(r))+")"},Ct={test:e=>Jr.test(e)||Yf.test(e)||Yi.test(e),parse:e=>Jr.test(e)?Jr.parse(e):Yi.test(e)?Yi.parse(e):Yf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jr.transform(e):Yi.transform(e)},c$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function u$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(c$))===null||n===void 0?void 0:n.length)||0)>0}const sb="number",ob="color",f$="var",d$="var(",ab="${}",h$=/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 oo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(h$,u=>(Ct.test(u)?(r.color.push(o),i.push(ob),n.push(Ct.parse(u))):u.startsWith(d$)?(r.var.push(o),i.push(f$),n.push(u)):(r.number.push(o),i.push(sb),n.push(parseFloat(u))),++o,ab)).split(ab);return{values:n,split:c,indexes:r,types:i}}function lb(e){return oo(e).values}function cb(e){const{split:t,types:n}=oo(e),r=t.length;return i=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],i[l]!==void 0){const c=n[l];c===sb?o+=so(i[l]):c===ob?o+=Ct.transform(i[l]):o+=i[l]}return o}}const m$=e=>typeof e=="number"?0:e;function p$(e){const t=lb(e);return cb(e)(t.map(m$))}const Er={test:u$,parse:lb,createTransformer:cb,getAnimatableNone:p$},g$=new Set(["brightness","contrast","saturate","opacity"]);function y$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Wf)||[];if(!r)return e;const i=n.replace(r,"");let o=g$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const v$=/\b([a-z-]*)\(.*?\)/gu,Hf={...Er,getAnimatableNone:e=>{const t=e.match(v$);return t?t.map(y$).join(" "):e}},b$={...Tf,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Hf,WebkitFilter:Hf},ub=e=>b$[e];function fb(e,t){let n=ub(e);return n!==Hf&&(n=Er),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const x$=new Set(["auto","none","0"]);function w$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!x$.has(o)&&oo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=fb(n,i)}const Qr=e=>e*180/Math.PI,qf=e=>{const t=Qr(Math.atan2(e[1],e[0]));return Kf(t)},S$={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=>Qr(Math.atan(e[1])),skewY:e=>Qr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Kf=e=>(e=e%360,e<0&&(e+=360),e),db=qf,hb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),mb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),T$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:hb,scaleY:mb,scale:e=>(hb(e)+mb(e))/2,rotateX:e=>Kf(Qr(Math.atan2(e[6],e[5]))),rotateY:e=>Kf(Qr(Math.atan2(-e[2],e[0]))),rotateZ:db,rotate:db,skewX:e=>Qr(Math.atan(e[4])),skewY:e=>Qr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pb(e){return e.includes("scale")?1:0}function Xf(e,t){if(!e||e==="none")return pb(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=T$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=S$,i=c}if(!i)return pb(t);const o=r[t],l=i[1].split(",").map(C$);return typeof o=="function"?o(l):l[o]}const E$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Xf(n,t)};function C$(e){return parseFloat(e.trim())}const gb=e=>e===zi||e===Se,P$=new Set(["x","y","z"]),A$=Wi.filter(e=>!P$.has(e));function O$(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 Hi={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})=>Xf(t,"x"),y:(e,{transform:t})=>Xf(t,"y")};Hi.translateX=Hi.x,Hi.translateY=Hi.y;const ei=new Set;let Zf=!1,Jf=!1;function yb(){if(Jf){const e=Array.from(ei).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=O$(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,l])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jf=!1,Zf=!1,ei.forEach(e=>e.complete()),ei.clear()}function vb(){ei.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jf=!0)})}function M$(){vb(),yb()}class Qf{constructor(t,n,r,i,o,l=!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=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ei.add(this),Zf||(Zf=!0,He.read(vb),He.resolveKeyframes(yb))):(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 l=i==null?void 0:i.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&l===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),ei.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ei.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const bb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function I$(e){const t=_$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const D$=4;function xb(e,t,n=1){wr(n<=D$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=I$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return bb(l)?parseFloat(l):l}return Sf(i)?xb(i,t,n+1):i}const wb=e=>t=>t.test(e),Sb=[zi,Se,In,Tr,wD,xD,{test:e=>e==="auto",parse:e=>e}],Tb=e=>Sb.find(wb(e));class Eb extends Qf{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(),Sf(d))){const h=xb(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Bv.has(r)||t.length!==2)return;const[i,o]=t,l=Tb(i),c=Tb(o);if(l!==c)if(gb(l)&&gb(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++)i$(t[i])&&r.push(i);r.length&&w$(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=Hi[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 l=i.length-1,c=i[l];i[l]=Hi[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 Cb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Er.test(e)||e==="0")&&!e.startsWith("url("));function $$(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 R$(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],l=Cb(i,t),c=Cb(o,t);return Vi(l===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.`),!l||!c?!1:$$(e)||(n==="spring"||Ff(n))&&r}const N$=e=>e!==null;function Ba(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(N$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const L$=40;class Pb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:l="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:l,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>L$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&M$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:l,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!R$(t,r,i,o))if(l)this.options.duration=0;else{u&&u(Ba(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 ed=2e4;function Ab(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ed;)t+=n,r=e.next(t);return t>=ed?1/0:t}const nt=(e,t,n)=>e+(t-e)*n;function td(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 k$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=td(u,c,e+1/3),o=td(u,c,e),l=td(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Ua(e,t){return n=>n>0?t:e}const nd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},F$=[Yf,Jr,Yi],j$=e=>F$.find(t=>t.test(e));function Ob(e){const t=j$(e);if(Vi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Yi&&(n=k$(n)),n}const Mb=(e,t)=>{const n=Ob(e),r=Ob(t);if(!n||!r)return Ua(e,t);const i={...n};return o=>(i.red=nd(n.red,r.red,o),i.green=nd(n.green,r.green,o),i.blue=nd(n.blue,r.blue,o),i.alpha=nt(n.alpha,r.alpha,o),Jr.transform(i))},V$=(e,t)=>n=>t(e(n)),ao=(...e)=>e.reduce(V$),rd=new Set(["none","hidden"]);function B$(e,t){return rd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function U$(e,t){return n=>nt(e,t,n)}function id(e){return typeof e=="number"?U$:typeof e=="string"?Sf(e)?Ua:Ct.test(e)?Mb:G$:Array.isArray(e)?_b:typeof e=="object"?Ct.test(e)?Mb:W$:Ua}function _b(e,t){const n=[...e],r=n.length,i=e.map((o,l)=>id(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}}function W$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=id(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function z$(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],c=e.indexes[l][i[l]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[l]++}return r}const G$=(e,t)=>{const n=Er.createTransformer(t),r=oo(e),i=oo(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?rd.has(e)&&!i.values.length||rd.has(t)&&!r.values.length?B$(e,t):ao(_b(z$(r,i),i.values),n):(Vi(!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.`),Ua(e,t))};function Ib(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?nt(e,t,n):id(e)(e,t)}const Y$=5;function Db(e,t,n){const r=Math.max(t-Y$,0);return Uv(n-e(r),t-r)}const rt={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},$b=.001;function H$({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:r=rt.mass}){let i,o;Vi(e<=$n(rt.maxDuration),"Spring duration must be 10 seconds or less");let l=1-t;l=Hn(rt.minDamping,rt.maxDamping,l),e=Hn(rt.minDuration,rt.maxDuration,qn(e)),l<1?(i=d=>{const h=d*l,m=h*e,g=h-n,y=sd(d,l),S=Math.exp(-m);return $b-g/y*S},o=d=>{const m=d*l*e,g=m*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=sd(Math.pow(d,2),l);return(-i(d)+$b>0?-1:1)*((g-y)*S)/b}):(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=K$(i,o,c);if(e=$n(e),isNaN(u))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const q$=12;function K$(e,t,n){let r=n;for(let i=1;i<q$;i++)r=r-e(r)/t(r);return r}function sd(e,t){return e*Math.sqrt(1-t*t)}const X$=["duration","bounce"],Z$=["stiffness","damping","mass"];function Rb(e,t){return t.some(n=>e[n]!==void 0)}function J$(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!Rb(e,Z$)&&Rb(e,X$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Hn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:rt.mass,stiffness:i,damping:o}}else{const n=H$(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function Nb(e=rt.visualDuration,t=rt.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],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=J$({...n,velocity:-qn(n.velocity||0)}),S=g||0,b=d/(2*Math.sqrt(u*h)),P=l-o,w=qn(Math.sqrt(u/h)),A=Math.abs(P)<5;r||(r=A?rt.restSpeed.granular:rt.restSpeed.default),i||(i=A?rt.restDelta.granular:rt.restDelta.default);let O;if(b<1){const C=sd(w,b);O=L=>{const V=Math.exp(-b*w*L);return l-V*((S+b*w*P)/C*Math.sin(C*L)+P*Math.cos(C*L))}}else if(b===1)O=C=>l-Math.exp(-w*C)*(P+(S+w*P)*C);else{const C=w*Math.sqrt(b*b-1);O=L=>{const V=Math.exp(-b*w*L),F=Math.min(C*L,300);return l-V*((S+b*w*P)*Math.sinh(F)+C*P*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let V=0;b<1&&(V=C===0?$n(S):Db(O,C,L));const F=Math.abs(V)<=r,q=Math.abs(l-L)<=i;c.done=F&&q}return c.value=c.done?l:L,c},toString:()=>{const C=Math.min(Ab(D),ed),L=Yv(V=>D.next(C*V).value,C,30);return C+"ms "+L}};return D}function Lb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:l,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 b=n*t;const P=m+b,w=l===void 0?P:l(P);w!==P&&(b=w-m);const A=F=>-b*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const q=A(F),ee=O(F);g.done=Math.abs(q)<=d,g.value=g.done?w:ee};let C,L;const V=F=>{y(g.value)&&(C=F,L=Nb({keyframes:[g.value,S(g.value)],velocity:Db(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return V(0),{calculatedDuration:null,next:F=>{let q=!1;return!L&&C===void 0&&(q=!0,D(F),V(F)),C!==void 0&&F>=C?L.next(F-C):(!q&&D(F),g)}}}const Q$=io(.42,0,1,1),e4=io(0,0,.58,1),kb=io(.42,0,.58,1),t4=e=>Array.isArray(e)&&typeof e[0]!="number",Fb={linear:Nt,easeIn:Q$,easeInOut:kb,easeOut:e4,circIn:Uf,circInOut:nb,circOut:tb,backIn:Bf,backInOut:Qv,backOut:Jv,anticipate:eb},jb=e=>{if(jf(e)){wr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return io(t,n,r,i)}else if(typeof e=="string")return wr(Fb[e]!==void 0,`Invalid easing type '${e}'`),Fb[e];return e};function n4(e,t,n){const r=[],i=n||Ib,o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Nt:t;c=ao(u,c)}r.push(c)}return r}function r4(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(wr(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 l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=n4(t,r,i),u=c.length,d=h=>{if(l&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Gi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Hn(e[0],e[o-1],h)):d}function i4(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Gi(0,t,r);e.push(nt(n,1,i))}}function s4(e){const t=[0];return i4(t,e.length-1),t}function o4(e,t){return e.map(n=>n*t)}function a4(e,t){return e.map(()=>t||kb).splice(0,e.length-1)}function lo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=t4(r)?r.map(jb):jb(r),o={done:!1,value:t[0]},l=o4(n&&n.length===t.length?n:s4(t),e),c=r4(l,t,{ease:Array.isArray(i)?i:a4(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const l4=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Sr(t),now:()=>vt.isProcessing?vt.timestamp:Dn.now()}},c4={decay:Lb,inertia:Lb,tween:lo,keyframes:lo,spring:Nb},u4=e=>e/100;class od extends Pb{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,l=(i==null?void 0:i.KeyframeResolver)||Qf,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new l(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:l=0}=this.options,c=Ff(n)?n:c4[n]||lo;let u,d;process.env.NODE_ENV!=="production"&&c!==lo&&wr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==lo&&typeof t[0]!="number"&&(u=ao(u4,Ib(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=Ab(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:l,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:b,onUpdate:P}=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 q=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&q--,q=Math.min(q,y+1),!!(q%2)&&(S==="reverse"?(ee=1-ee,b&&(ee-=b/m)):S==="mirror"&&(D=l)),O=Hn(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 V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return V&&i!==void 0&&(C.value=Ba(u,this.options,i)),P&&P(C.value),V&&this.finish(),C}get duration(){const{resolved:t}=this;return t?qn(t.calculatedDuration):0}get time(){return qn(this.currentTime)}set time(t){t=$n(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=qn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l4,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 f4=new Set(["opacity","clipPath","filter","transform"]);function d4(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:l="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=qv(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:l==="reverse"?"alternate":"normal"})}const h4=kf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wa=10,m4=2e4;function p4(e){return Ff(e.type)||e.type==="spring"||!Hv(e.ease)}function g4(e,t){const n=new od({...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<m4;)r=n.sample(o),i.push(r.value),o+=Wa;return{times:void 0,keyframes:i,duration:o-Wa,ease:"linear"}}const Vb={anticipate:eb,backInOut:Qv,circInOut:nb};function y4(e){return e in Vb}class Bb extends Pb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Eb(o,(l,c)=>this.onKeyframesResolved(l,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:l,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Va()&&y4(o)&&(o=Vb[o]),p4(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...b}=this.options,P=g4(t,b);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,o=P.ease,l="keyframes"}const h=d4(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(Gv(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ba(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$n(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 Nt;const{animation:r}=n;Gv(r,t)}return Nt}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:l,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 od({...y,keyframes:r,duration:i,type:o,ease:l,times:c,isGenerator:!0}),b=$n(this.time);d.setWithVelocity(S.sample(b-Wa).value,S.sample(b).value,Wa)}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:l,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return h4()&&r&&f4.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&l!==0&&c!=="inertia"}}const v4={type:"spring",stiffness:500,damping:25,restSpeed:10},b4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x4={type:"keyframes",duration:.8},w4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},S4=(e,{keyframes:t})=>t.length>2?x4:Zr.has(e)?e.startsWith("scale")?b4(t[1]):v4:w4;function T4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:l,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ad=(e,t,n,r={},i,o)=>l=>{const c=Df(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-$n(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:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};T4(c)||(h={...h,...S4(e,h)}),h.duration&&(h.duration=$n(h.duration)),h.repeatDelay&&(h.repeatDelay=$n(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=Ba(h.keyframes,c);if(g!==void 0)return He.update(()=>{h.onUpdate(g),h.onComplete()}),new JD([])}return!o&&Bb.supports(h)?new Bb(h):new od(h)};function E4({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ub(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(l=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&&E4(h,m))continue;const S={delay:n,...Df(l||{},m)};let b=!1;if(window.MotionHandoffAnimation){const w=zv(e);if(w){const A=window.MotionHandoffAnimation(w,m,He);A!==null&&(S.startTime=A,b=!0)}}Lf(e,m),g.start(ad(m,g,y,e.shouldReduceMotion&&Bv.has(m)?{type:!1}:S,e,b));const P=g.animation;P&&d.push(P)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&qD(e,c)})}),d}function ld(e,t,n={}){var r;const i=to(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 l=i?()=>Promise.all(Ub(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return C4(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[l,c]:[c,l];return d().then(()=>h())}else return Promise.all([l(),c(n.delay)])}function C4(e,t,n=0,r=0,i=1,o){const l=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(P4).forEach((d,h)=>{d.notify("AnimationStart",t),l.push(ld(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(l)}function P4(e,t){return e.sortNodePosition(t)}function A4(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ld(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ld(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Ub(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Wb(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 O4=vf.length;function zb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<O4;n++){const r=vf[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const M4=[...yf].reverse(),_4=yf.length;function I4(e){return t=>Promise.all(t.map(({animation:n,options:r})=>A4(e,n,r)))}function D4(e){let t=I4(e),n=Gb(),r=!0;const i=u=>(d,h)=>{var m;const g=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...b}=g;d={...d,...b,...S}}return d};function o(u){t=u(e)}function l(u){const{props:d}=e,h=zb(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let P=0;P<_4;P++){const w=M4[P],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=Zs(O),C=w===u?A.isActive:null;C===!1&&(S=P);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||Na(O)||typeof O=="boolean")continue;const V=$4(A.prevProp,O);let F=V||w===u&&A.isActive&&!L&&D||P>S&&D,q=!1;const ee=Array.isArray(O)?O:[O];let re=ee.reduce(i(w),{});C===!1&&(re={});const{prevResolvedValues:ve={}}=A,ye={...ve,...re},fe=z=>{F=!0,g.has(z)&&(q=!0,g.delete(z)),A.needsAnimating[z]=!0;const Y=e.getValue(z);Y&&(Y.liveStyle=!1)};for(const z in ye){const Y=re[z],Z=ve[z];if(y.hasOwnProperty(z))continue;let _=!1;_f(Y)&&_f(Z)?_=!Wb(Y,Z):_=Y!==Z,_?Y!=null?fe(z):g.add(z):Y!==void 0&&g.has(z)?fe(z):A.protectedKeys[z]=!0}A.prevProp=O,A.prevResolvedValues=re,A.isActive&&(y={...y,...re}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&V)||q)&&m.push(...ee.map(z=>({animation:z,options:{type:w}})))}if(g.size){const P={};if(typeof d.initial!="boolean"){const w=to(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(P.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),P[w]=A??null}),m.push({animation:P})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=l(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Gb(),r=!0}}}function $4(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wb(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gb(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}class Cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class R4 extends Cr{constructor(t){super(t),t.animationState||(t.animationState=D4(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Na(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 N4=0;class L4 extends Cr{constructor(){super(...arguments),this.id=N4++}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 k4={animation:{Feature:R4},exit:{Feature:L4}},gn={x:!1,y:!1};function Yb(){return gn.x||gn.y}function F4(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function uo(e){return{point:{x:e.pageX,y:e.pageY}}}const j4=e=>t=>cd(t)&&e(t,uo(t));function fo(e,t,n,r){return co(e,t,j4(n),r)}function Hb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function V4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B4(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 qb=1e-4,U4=1-qb,W4=1+qb,Kb=.01,z4=0-Kb,G4=0+Kb;function _t(e){return e.max-e.min}function Y4(e,t,n){return Math.abs(e-t)<=n}function Xb(e,t,n,r=.5){e.origin=r,e.originPoint=nt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=nt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=U4&&e.scale<=W4||isNaN(e.scale))&&(e.scale=1),(e.translate>=z4&&e.translate<=G4||isNaN(e.translate))&&(e.translate=0)}function ho(e,t,n,r){Xb(e.x,t.x,n.x,r?r.originX:void 0),Xb(e.y,t.y,n.y,r?r.originY:void 0)}function Zb(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function H4(e,t,n){Zb(e.x,t.x,n.x),Zb(e.y,t.y,n.y)}function Jb(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function mo(e,t,n){Jb(e.x,t.x,n.x),Jb(e.y,t.y,n.y)}const Qb=()=>({translate:0,scale:1,origin:0,originPoint:0}),qi=()=>({x:Qb(),y:Qb()}),e1=()=>({min:0,max:0}),lt=()=>({x:e1(),y:e1()});function rn(e){return[e("x"),e("y")]}function ud(e){return e===void 0||e===1}function fd({scale:e,scaleX:t,scaleY:n}){return!ud(e)||!ud(t)||!ud(n)}function ni(e){return fd(e)||t1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function t1(e){return n1(e.x)||n1(e.y)}function n1(e){return e&&e!=="0%"}function za(e,t,n){const r=e-n,i=t*r;return n+i}function r1(e,t,n,r,i){return i!==void 0&&(e=za(e,i,r)),za(e,n,r)+t}function dd(e,t=0,n=1,r,i){e.min=r1(e.min,t,n,r,i),e.max=r1(e.max,t,n,r,i)}function i1(e,{x:t,y:n}){dd(e.x,t.translate,t.scale,t.originPoint),dd(e.y,n.translate,n.scale,n.originPoint)}const s1=.999999999999,o1=1.0000000000001;function q4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,l;for(let c=0;c<i;c++){o=n[c],l=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&&Xi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,i1(e,l)),r&&ni(o.latestValues)&&Xi(e,o.latestValues))}t.x<o1&&t.x>s1&&(t.x=1),t.y<o1&&t.y>s1&&(t.y=1)}function Ki(e,t){e.min=e.min+t,e.max=e.max+t}function a1(e,t,n,r,i=.5){const o=nt(e.min,e.max,i);dd(e,t,n,o,r)}function Xi(e,t){a1(e.x,t.x,t.scaleX,t.scale,t.originX),a1(e.y,t.y,t.scaleY,t.scale,t.originY)}function l1(e,t){return Hb(B4(e.getBoundingClientRect(),t))}function K4(e,t,n){const r=l1(e,n),{scroll:i}=t;return i&&(Ki(r.x,i.offset.x),Ki(r.y,i.offset.y)),r}const c1=({current:e})=>e?e.ownerDocument.defaultView:null,u1=(e,t)=>Math.abs(e-t);function X4(e,t){const n=u1(e.x,t.x),r=u1(e.y,t.y);return Math.sqrt(n**2+r**2)}class f1{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=md(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=X4(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:b}=vt;this.history.push({...S,timestamp:b});const{onStart:P,onMove:w}=this.handlers;g||(P&&P(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=hd(g,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=md(m.type==="pointercancel"?this.lastMoveEventInfo:hd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,P),S&&S(m,P)},!cd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const l=uo(t),c=hd(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,md(c,this.history)),this.removeListeners=ao(fo(this.contextWindow,"pointermove",this.handlePointerMove),fo(this.contextWindow,"pointerup",this.handlePointerUp),fo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Sr(this.updatePoint)}}function hd(e,t){return t?{point:t(e.point)}:e}function d1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function md({point:e},t){return{point:e,delta:d1(e,h1(t)),offset:d1(e,Z4(t)),velocity:J4(t,.1)}}function Z4(e){return e[0]}function h1(e){return e[e.length-1]}function J4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=h1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$n(t)));)n--;if(!r)return{x:0,y:0};const o=qn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function Q4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?nt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?nt(n,e,r.max):Math.min(e,n)),e}function m1(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 e5(e,{top:t,left:n,bottom:r,right:i}){return{x:m1(e.x,n,i),y:m1(e.y,t,r)}}function p1(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 t5(e,t){return{x:p1(e.x,t.x),y:p1(e.y,t.y)}}function n5(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=Gi(t.min,t.max-r,e.min):r>i&&(n=Gi(e.min,e.max-i,t.min)),Hn(0,1,n)}function r5(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 pd=.35;function i5(e=pd){return e===!1?e=0:e===!0&&(e=pd),{x:g1(e,"left","right"),y:g1(e,"top","bottom")}}function g1(e,t,n){return{min:y1(e,t),max:y1(e,n)}}function y1(e,t){return typeof e=="number"?e:e[t]||0}const s5=new WeakMap;class o5{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(uo(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F4(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(P=>{let w=this.getAxisMotionValue(P).get()||0;if(In.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[P];O&&(w=_t(O)*(parseFloat(w)/100))}}this.originPoint[P]=w}),S&&He.postRender(()=>S(h,m)),Lf(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},l=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:b}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:P}=m;if(y&&this.currentDirection===null){this.currentDirection=a5(P),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,P),this.updateAxis("y",m.point,P),this.visualElement.render(),b&&b(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 f1(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:c1(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||!Ga(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=Q4(l,this.constraints[t],this.elastic[t])),o.set(l)}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&&Ui(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=e5(i.layoutBox,n):this.constraints=!1,this.elastic=i5(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=r5(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ui(t))return!1;const r=t.current;wr(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=K4(r,i.root,this.visualElement.getTransformPagePoint());let l=t5(i.layout.layoutBox,o);if(n){const c=n(V4(l));this.hasMutatedConstraints=!!c,c&&(l=Hb(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Ga(h,n,this.currentDirection))return;let m=u&&u[h]||{};l&&(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 Lf(this.visualElement,t),r.start(ad(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(!Ga(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:l,max:c}=i.layout.layoutBox[n];o.set(t[n]-nt(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ui(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();i[l]=n5({min:u,max:u},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(l=>{if(!Ga(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:d}=this.constraints[l];c.set(nt(u,d,i[l]))})}addListeners(){if(!this.visualElement.current)return;s5.set(this.visualElement,this);const t=this.visualElement.current,n=fo(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ui(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 l=co(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()=>{l(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:l=pd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:l,dragMomentum:c}}}function Ga(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function a5(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class l5 extends Cr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new o5(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Nt}unmount(){this.removeGroupControls(),this.removeListeners()}}const v1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class c5 extends Cr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new f1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:c1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:v1(t),onStart:v1(n),onMove:r,onEnd:(o,l)=>{delete this.session,i&&He.postRender(()=>i(o,l))}}}mount(){this.removePointerDownListener=fo(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 Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function b1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const po={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=b1(e,t.target.x),r=b1(e,t.target.y);return`${n}% ${r}%`}},u5={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Er.parse(e);if(i.length>5)return r;const o=Er.createTransformer(e),l=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+l]/=c,i[1+l]/=u;const d=nt(c,u,.5);return typeof i[2+l]=="number"&&(i[2+l]/=d),typeof i[3+l]=="number"&&(i[3+l]/=d),o(i)}};class f5 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;bD(d5),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()})),Ya.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||He.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),bf.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 x1(e){const[t,n]=dv(),r=I.useContext(df);return x.jsx(f5,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Tv),isPresent:t,safeToRemove:n})}const d5={borderRadius:{...po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:po,borderTopRightRadius:po,borderBottomLeftRadius:po,borderBottomRightRadius:po,boxShadow:u5};function h5(e,t,n){const r=Et(e)?e:no(e);return r.start(ad("",r,t,n)),r.animation}function m5(e){return e instanceof SVGElement&&e.tagName!=="svg"}const p5=(e,t)=>e.depth-t.depth;class g5{constructor(){this.children=[],this.isDirty=!1}add(t){$f(this.children,t),this.isDirty=!0}remove(t){Rf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(p5),this.isDirty=!1,this.children.forEach(t)}}function y5(e,t){const n=Dn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Sr(r),e(o-t))};return He.read(r,!0),()=>Sr(r)}const w1=["TopLeft","TopRight","BottomLeft","BottomRight"],v5=w1.length,S1=e=>typeof e=="string"?parseFloat(e):e,T1=e=>typeof e=="number"||Se.test(e);function b5(e,t,n,r,i,o){i?(e.opacity=nt(0,n.opacity!==void 0?n.opacity:1,x5(r)),e.opacityExit=nt(t.opacity!==void 0?t.opacity:1,0,w5(r))):o&&(e.opacity=nt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<v5;l++){const c=`border${w1[l]}Radius`;let u=E1(t,c),d=E1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||T1(u)===T1(d)?(e[c]=Math.max(nt(S1(u),S1(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=nt(t.rotate||0,n.rotate||0,r))}function E1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const x5=C1(0,.5,tb),w5=C1(.5,.95,Nt);function C1(e,t,n){return r=>r<e?0:r>t?1:n(Gi(e,t,r))}function P1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){P1(e.x,t.x),P1(e.y,t.y)}function A1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function O1(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 S5(e,t=0,n=1,r=.5,i,o=e,l=e){if(In.test(t)&&(t=parseFloat(t),t=nt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=nt(o.min,o.max,r);e===o&&(c-=t),e.min=O1(e.min,t,n,c,i),e.max=O1(e.max,t,n,c,i)}function M1(e,t,[n,r,i],o,l){S5(e,t[n],t[r],t[i],t.scale,o,l)}const T5=["x","scaleX","originX"],E5=["y","scaleY","originY"];function _1(e,t,n,r){M1(e.x,t,T5,n?n.x:void 0,r?r.x:void 0),M1(e.y,t,E5,n?n.y:void 0,r?r.y:void 0)}function I1(e){return e.translate===0&&e.scale===1}function D1(e){return I1(e.x)&&I1(e.y)}function $1(e,t){return e.min===t.min&&e.max===t.max}function C5(e,t){return $1(e.x,t.x)&&$1(e.y,t.y)}function R1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function N1(e,t){return R1(e.x,t.x)&&R1(e.y,t.y)}function L1(e){return _t(e.x)/_t(e.y)}function k1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class P5{constructor(){this.members=[]}add(t){$f(this.members,t),t.scheduleRender()}remove(t){if(Rf(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 A5(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((i||o||l)&&(r=`translate3d(${i}px, ${o}px, ${l}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 gd=["","X","Y","Z"],O5={visibility:"hidden"},F1=1e3;let M5=0;function yd(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=zv(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 V1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(l={},c=t==null?void 0:t()){this.id=M5++,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(D5),this.nodes.forEach(k5),this.nodes.forEach(F5),this.nodes.forEach($5)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,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 g5)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Nf),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const u=this.eventHandlers.get(l);u&&u.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=m5(l),this.instance=l;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),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(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=y5(g,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(U1))})}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 b=this.options.transition||h.getDefaultTransition()||W5,{onLayoutAnimationStart:P,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!N1(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={...Df(b,"layout"),onPlay:P,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||U1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sr(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(j5),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!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(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(B1);return}this.isUpdating||this.nodes.forEach(N5),this.isUpdating=!1,this.nodes.forEach(L5),this.nodes.forEach(_5),this.nodes.forEach(I5),this.clearAllSnapshots();const c=Dn.now();vt.delta=Hn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,gf.update.process(vt),gf.preRender.process(vt),gf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R5),this.sharedNodes.forEach(V5)}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 l=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,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!D1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;l&&(c||ni(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return l&&(u=this.removeTransform(u)),z5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(G5))){const{scroll:h}=this.root;h&&(Ki(u.x,h.offset.x),Ki(u.y,h.offset.y))}return u}removeElementScroll(l){var c;const u=lt();if(sn(u,l),!((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,l),Ki(u.x,m.offset.x),Ki(u.y,m.offset.y))}return u}applyTransform(l,c=!1){const u=lt();sn(u,l);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Xi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),ni(h.latestValues)&&Xi(u,h.latestValues)}return ni(this.latestValues)&&Xi(u,this.latestValues),u}removeTransform(l){const c=lt();sn(c,l);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!ni(d.latestValues))continue;fd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),_1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return ni(this.latestValues)&&_1(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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(l=!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(!(l||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(),mo(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(),H4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),i1(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(),mo(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||fd(this.parent.latestValues)||t1(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 l;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.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;q4(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():(A1(this.prevProjectionDelta.x,this.projectionDelta.x),A1(this.prevProjectionDelta.y,this.projectionDelta.y)),ho(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!k1(this.projectionDelta.x,this.prevProjectionDelta.x)||!k1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),l){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qi(),this.projectionDelta=qi(),this.projectionDeltaWithTransform=qi()}setAnimationOrigin(l,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=qi();(!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,b=y!==S,P=this.getStack(),w=!P||P.members.length<=1,A=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(U5));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;W1(m.x,l.x,C),W1(m.y,l.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),B5(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&C5(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=lt()),sn(O,this.relativeTarget)),b&&(this.animationValues=h,b5(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=h5(0,F1,{...l,onUpdate:c=>{this.mixTargetDelta(c),l.onUpdate&&l.onUpdate(c)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(F1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=l;if(!(!c||!u||!d)){if(this!==l&&this.layout&&d&&q1(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=l.target.x.min,u.x.max=u.x.min+m;const g=_t(this.layout.layoutBox.y);u.y.min=l.target.y.min,u.y.max=u.y.min+g}sn(c,u),Xi(c,h),ho(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new P5),this.sharedNodes.get(l).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 l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:c}=this.options;return c?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:c}=this.options;return c?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:u}=l;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&yd("z",l,d,this.animationValues);for(let h=0;h<gd.length;h++)yd(`rotate${gd[h]}`,l,d,this.animationValues),yd(`skew${gd[h]}`,l,d,this.animationValues);l.render();for(const h in d)l.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);l.scheduleRender()}getProjectionStyles(l){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return O5;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Fa(l==null?void 0:l.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Fa(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!ni(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=A5(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 b in Js){if(g[b]===void 0)continue;const{correct:P,applyTo:w,isCSSVariable:A}=Js[b],O=d.transform==="none"?g[b]:P(g[b],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[b]=O:d[b]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Fa(l==null?void 0:l.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(B1),this.root.sharedNodes.clear()}}}function _5(e){e.updateLayout()}function I5(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,l=n.source!==e.layout.source;o==="size"?rn(m=>{const g=l?n.measuredBox[m]:n.layoutBox[m],y=_t(g);g.min=r[m].min,g.max=g.min+y}):q1(o,n.layoutBox,r)&&rn(m=>{const g=l?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=qi();ho(c,r,n.layoutBox);const u=qi();l?ho(u,e.applyTransform(i,!0),n.measuredBox):ho(u,r,n.layoutBox);const d=!D1(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();mo(S,n.layoutBox,g.layoutBox);const b=lt();mo(b,r,y.layoutBox),N1(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,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 D5(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 $5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R5(e){e.clearSnapshot()}function B1(e){e.clearMeasurements()}function N5(e){e.isLayoutDirty=!1}function L5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function U1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function k5(e){e.resolveTargetDelta()}function F5(e){e.calcProjection()}function j5(e){e.resetSkewAndRotation()}function V5(e){e.removeLeadSnapshot()}function W1(e,t,n){e.translate=nt(t.translate,0,n),e.scale=nt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function z1(e,t,n,r){e.min=nt(t.min,n.min,r),e.max=nt(t.max,n.max,r)}function B5(e,t,n,r){z1(e.x,t.x,n.x,r),z1(e.y,t.y,n.y,r)}function U5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const W5={duration:.45,ease:[.4,0,.1,1]},G1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Y1=G1("applewebkit/")&&!G1("chrome/")?Math.round:Nt;function H1(e){e.min=Y1(e.min),e.max=Y1(e.max)}function z5(e){H1(e.x),H1(e.y)}function q1(e,t,n){return e==="position"||e==="preserve-aspect"&&!Y4(L1(t),L1(n),.2)}function G5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Y5=V1({attachResizeListener:(e,t)=>co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),vd={current:void 0},K1=V1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!vd.current){const e=new Y5({});e.mount(window),e.setOptions({layoutScroll:!0}),vd.current=e}return vd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),H5={pan:{Feature:c5},drag:{Feature:l5,ProjectionNode:K1,MeasureLayout:x1}};function q5(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 X1(e,t){const n=q5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Z1(e){return!(e.pointerType==="touch"||Yb())}function K5(e,t,n={}){const[r,i,o]=X1(e,n),l=c=>{if(!Z1(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{Z1(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",l,i)}),o}function J1(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,uo(t)))}class X5 extends Cr{mount(){const{current:t}=this.node;t&&(this.unmount=K5(t,(n,r)=>(J1(this.node,r,"Start"),i=>J1(this.node,i,"End"))))}unmount(){}}class Z5 extends Cr{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=ao(co(this.node.current,"focus",()=>this.onFocus()),co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Q1=(e,t)=>t?e===t?!0:Q1(e,t.parentElement):!1,J5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Q5(e){return J5.has(e.tagName)||e.tabIndex!==-1}const go=new WeakSet;function ex(e){return t=>{t.key==="Enter"&&e(t)}}function bd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ex(()=>{if(go.has(n))return;bd(n,"down");const i=ex(()=>{bd(n,"up")}),o=()=>bd(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 tx(e){return cd(e)&&!Yb()}function tR(e,t,n={}){const[r,i,o]=X1(e,n),l=c=>{const u=c.currentTarget;if(!tx(c)||go.has(u))return;go.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!tx(y)||!go.has(u))&&(go.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||Q1(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",l,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>eR(d,i)),!Q5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function nx(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,uo(t)))}class nR extends Cr{mount(){const{current:t}=this.node;t&&(this.unmount=tR(t,(n,r)=>(nx(this.node,r,"Start"),(i,{success:o})=>nx(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xd=new WeakMap,wd=new WeakMap,rR=e=>{const t=xd.get(e.target);t&&t(e)},iR=e=>{e.forEach(rR)};function sR({root:e,...t}){const n=e||document;wd.has(n)||wd.set(n,{});const r=wd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(iR,{root:e,...t})),r[i]}function oR(e,t,n){const r=sR(t);return xd.set(e,n),r.observe(e),()=>{xd.delete(e),r.unobserve(e)}}const aR={some:0,all:1};class lR extends Cr{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,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:aR[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 oR(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cR(t,n))&&this.startObserver()}unmount(){}}function cR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uR={inView:{Feature:lR},tap:{Feature:nR},focus:{Feature:Z5},hover:{Feature:X5}},fR={layout:{ProjectionNode:K1,MeasureLayout:x1}},Sd={current:null},rx={current:!1};function dR(){if(rx.current=!0,!!mf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sd.current=e.matches;e.addListener(t),t()}else Sd.current=!1}const hR=[...Sb,Ct,Er],mR=e=>hR.find(wb(e)),pR=new WeakMap;function gR(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"&&$a(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,no(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(i):l.hasAnimated||l.set(i)}else{const l=e.getStaticValue(r);e.addValue(r,no(l!==void 0?l:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ix=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yR{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qf,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=Dn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=l;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=La(n),this.isVariantNode=xv(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,pR.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)),rx.current||dR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sd.current,process.env.NODE_ENV!=="production"&&$a(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(),Sr(this.notifyUpdate),Sr(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=Zr.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 l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),l&&l(),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 Bi){const n=Bi[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<ix.length;r++){const i=ix[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,l=t[o];l&&(this.propEventSubscriptions[i]=this.on(i,l))}this.prevMotionValues=gR(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=no(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"&&(bb(i)||rb(i))?i=parseFloat(i):!mR(i)&&Er.test(n)&&(i=fb(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 l=Mf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(i=l[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 Nf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class sx extends yR{constructor(){super(...arguments),this.KeyframeResolver=Eb}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 vR(e){return window.getComputedStyle(e)}class bR extends sx{constructor(){super(...arguments),this.type="html",this.renderInstance=Lv}readValueFromInstance(t,n){if(Zr.has(n))return E$(t,n);{const r=vR(t),i=(wf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return l1(t,n)}build(t,n,r){Ef(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return If(t,n,r)}}class xR extends sx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Nv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zr.has(n)){const r=ub(n);return r&&r.default||0}return n=kv.has(n)?n:xf(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){Af(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Fv(t,n,r,i)}mount(t){this.isSVGTag=Of(t.tagName),super.mount(t)}}const wR=(e,t)=>Pf(e)?new xR(t):new bR(t,{allowProjection:e!==I.Fragment}),SR=WD({...k4,...uR,...H5,...fR},wR),Ze=oD(SR),Td={defaultColorScheme:"aqua",t:e=>e},ox=I.createContext(Td),ze=()=>I.useContext(ox),ax=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o})=>{const{t:l}=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(xr,{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(is,{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(De,{icon:Kc,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(_o,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:l("cancel")}),x.jsx(_o,{onClick:d,className:"px-24 py-16 text-lg!",children:l("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 TR={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"]},ER={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"]},CR={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"]},PR={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"]},AR={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 Ha(){return typeof window<"u"}function Zi(e){return lx(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(lx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lx(e){return Ha()?e instanceof Node||e instanceof zt(e).Node:!1}function st(e){return Ha()?e instanceof Element||e instanceof zt(e).Element:!1}function Gt(e){return Ha()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ed(e){return!Ha()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function yo(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 OR(e){return["table","td","th"].includes(Zi(e))}function qa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Cd(e){const t=Ka(),n=st(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 MR(e){let t=Xn(e);for(;Gt(t)&&!Kn(t);){if(Cd(t))return t;if(qa(t))return null;t=Xn(t)}return null}function Ka(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Kn(e){return["html","body","#document"].includes(Zi(e))}function on(e){return zt(e).getComputedStyle(e)}function Xa(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Zi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ed(e)&&e.host||Rn(e);return Ed(t)?t.host:t}function cx(e){const t=Xn(e);return Kn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&yo(t)?t:cx(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=cx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=zt(i);if(o){const c=Pd(l);return t.concat(l,l.visualViewport||[],yo(i)?i:[],c&&n?Pr(c):[])}return t.concat(i,Pr(i,[],n))}function Pd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ux(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ed(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function fx(e,t){return["mouse","pen"].includes(e)}function _R(e){return"nativeEvent"in e}function IR(e){return e.matches("html,body")}function dx(e){return(e==null?void 0:e.ownerDocument)||document}function Ad(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 vo(e){return"composedPath"in e?e.composedPath()[0]:e.target}const DR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function $R(e){return Gt(e)&&e.matches(DR)}const Ar=Math.min,Yt=Math.max,Za=Math.round,Ja=Math.floor,Nn=e=>({x:e,y:e}),RR={left:"right",right:"left",bottom:"top",top:"bottom"},NR={start:"end",end:"start"};function Od(e,t,n){return Yt(e,Ar(t,n))}function Ji(e,t){return typeof e=="function"?e(t):e}function Or(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function hx(e){return e==="x"?"y":"x"}function Md(e){return e==="y"?"height":"width"}function ri(e){return["top","bottom"].includes(Or(e))?"y":"x"}function _d(e){return hx(ri(e))}function LR(e,t,n){n===void 0&&(n=!1);const r=Qi(e),i=_d(e),o=Md(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Qa(l)),[l,Qa(l)]}function kR(e){const t=Qa(e);return[Id(e),t,Id(t)]}function Id(e){return e.replace(/start|end/g,t=>NR[t])}function FR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:l;default:return[]}}function jR(e,t,n,r){const i=Qi(e);let o=FR(Or(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(Id)))),o}function Qa(e){return e.replace(/left|right|bottom|top/g,t=>RR[t])}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function mx(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function el(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 px(e,t,n){let{reference:r,floating:i}=e;const o=ri(t),l=_d(t),c=Md(l),u=Or(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(Qi(t)){case"start":y[l]-=g*(n&&d?-1:1);break;case"end":y[l]+=g*(n&&d?-1:1);break}return y}const BR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=px(d,r,u),g=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:P,fn:w}=c[b],{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:l,elements:{reference:e,floating:t}});h=A??h,m=O??m,y={...y,[P]:{...y[P],...D}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=px(d,g,u)),b=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:y}};async function Dd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:y=0}=Ji(t,e),S=mx(y),P=c[g?m==="floating"?"reference":"floating":m],w=el(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(P)))==null||n?P:P.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:l.floating.width,height:l.floating.height}:l.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=el(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 UR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=Ji(e,t)||{};if(d==null)return{};const m=mx(h),g={x:n,y:r},y=_d(i),S=Md(y),b=await l.getDimensions(d),P=y==="y",w=P?"top":"left",A=P?"bottom":"right",O=P?"clientHeight":"clientWidth",D=o.reference[S]+o.reference[y]-g[y]-o.floating[S],C=g[y]-o.reference[y],L=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let V=L?L[O]:0;(!V||!await(l.isElement==null?void 0:l.isElement(L)))&&(V=c.floating[O]||o.floating[S]);const F=D/2-C/2,Y=V/2-b[S]/2-1,te=Ar(m[w],Y),ie=Ar(m[A],Y),ve=te,ye=V-b[S]-ie,fe=V/2-b[S]/2+F,oe=Od(ve,fe,ye),X=!u.arrow&&Qi(i)!=null&&fe!==oe&&o.reference[S]/2-(fe<ve?te:ie)-b[S]/2<0,K=X?fe<ve?fe-ve:fe-ye:0;return{[y]:g[y]+K,data:{[y]:oe,centerOffset:fe-oe-K,...X&&{alignmentOffset:K}},reset:X}}}),WR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...P}=Ji(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Or(i),A=ri(c),O=Or(c)===c,D=await(u.isRTL==null?void 0:u.isRTL(d.floating)),C=g||(O||!b?[Qa(c)]:kR(c)),L=S!=="none";!g&&L&&C.push(...jR(c,b,S,D));const V=[c,...C],F=await Dd(t,P),Y=[];let te=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&Y.push(F[w]),m){const fe=LR(i,l,D);Y.push(F[fe[0]],F[fe[1]])}if(te=[...te,{placement:i,overflows:Y}],!Y.every(fe=>fe<=0)){var ie,ve;const fe=(((ie=o.flip)==null?void 0:ie.index)||0)+1,oe=V[fe];if(oe)return{data:{index:fe,overflows:te},reset:{placement:oe}};let X=(ve=te.filter(K=>K.overflows[0]<=0).sort((K,H)=>K.overflows[1]-H.overflows[1])[0])==null?void 0:ve.placement;if(!X)switch(y){case"bestFit":{var ye;const K=(ye=te.filter(H=>{if(L){const J=ri(H.placement);return J===A||J==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(J=>J>0).reduce((J,_)=>J+_,0)]).sort((H,J)=>H[1]-J[1])[0])==null?void 0:ye[0];K&&(X=K);break}case"initialPlacement":X=c;break}if(i!==X)return{reset:{placement:X}}}return{}}}};async function zR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Or(n),c=Qi(n),u=ri(n)==="y",d=["left","top"].includes(l)?-1:1,h=o&&u?-1:1,m=Ji(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 GR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:c}=t,u=await zR(t,e);return l===((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:l}}}}},YR=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:l=!1,limiter:c={fn:P=>{let{x:w,y:A}=P;return{x:w,y:A}}},...u}=Ji(e,t),d={x:n,y:r},h=await Dd(t,u),m=ri(Or(i)),g=hx(m);let y=d[g],S=d[m];if(o){const P=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=y+h[P],O=y-h[w];y=Od(A,y,O)}if(l){const P=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=S+h[P],O=S-h[w];S=Od(A,S,O)}const b=c.fn({...t,[g]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:o,[m]:l}}}}}},HR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:u=()=>{},...d}=Ji(e,t),h=await Dd(t,d),m=Or(i),g=Qi(i),y=ri(i)==="y",{width:S,height:b}=o.floating;let P,w;m==="top"||m==="bottom"?(P=m,w=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,P=g==="end"?"top":"bottom");const A=b-h.top-h.bottom,O=S-h.left-h.right,D=Ar(b-h[P],A),C=Ar(S-h[w],O),L=!t.middlewareData.shift;let V=D,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=A),L&&!g){const te=Yt(h.left,0),ie=Yt(h.right,0),ve=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(te!==0||ie!==0?te+ie:Yt(h.left,h.right)):V=b-2*(ve!==0||ye!==0?ve+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:V});const Y=await l.getDimensions(c.floating);return S!==Y.width||b!==Y.height?{reset:{rects:!0}}:{}}}};function gx(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Gt(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=Za(n)!==o||Za(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function $d(e){return st(e)?e:e.contextElement}function es(e){const t=$d(e);if(!Gt(t))return Nn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gx(t);let l=(o?Za(n.width):n.width)/r,c=(o?Za(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const qR=Nn(0);function yx(e){const t=zt(e);return!Ka()||!t.visualViewport?qR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ii(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=$d(e);let l=Nn(1);t&&(r?st(r)&&(l=es(r)):l=es(e));const c=KR(o,n,r)?yx(o):Nn(0);let u=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,h=i.width/l.x,m=i.height/l.y;if(o){const g=zt(o),y=r&&st(r)?zt(r):r;let S=g,b=Pd(S);for(;b&&r&&y!==S;){const P=es(b),w=b.getBoundingClientRect(),A=on(b),O=w.left+(b.clientLeft+parseFloat(A.paddingLeft))*P.x,D=w.top+(b.clientTop+parseFloat(A.paddingTop))*P.y;u*=P.x,d*=P.y,h*=P.x,m*=P.y,u+=O,d+=D,S=zt(b),b=Pd(S)}}return el({width:h,height:m,x:u,y:d})}function Rd(e,t){const n=Xa(e).scrollLeft;return t?t.left+n:ii(Rn(e)).left+n}function vx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Rd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function XR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=Rn(r),c=t?qa(t.floating):!1;if(r===l||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Nn(1);const h=Nn(0),m=Gt(r);if((m||!m&&!o)&&((Zi(r)!=="body"||yo(l))&&(u=Xa(r)),Gt(r))){const y=ii(r);d=es(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const g=l&&!m&&!o?vx(l,u,!0):Nn(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 ZR(e){return Array.from(e.getClientRects())}function JR(e){const t=Rn(e),n=Xa(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 l=-n.scrollLeft+Rd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(l+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function QR(e,t){const n=zt(e),r=Rn(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,u=0;if(i){o=i.width,l=i.height;const d=Ka();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:l,x:c,y:u}}function e6(e,t){const n=ii(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Gt(e)?es(e):Nn(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:l,height:c,x:u,y:d}}function bx(e,t,n){let r;if(t==="viewport")r=QR(e,n);else if(t==="document")r=JR(Rn(e));else if(st(t))r=e6(t,n);else{const i=yx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return el(r)}function xx(e,t){const n=Xn(e);return n===t||!st(n)||Kn(n)?!1:on(n).position==="fixed"||xx(n,t)}function t6(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(c=>st(c)&&Zi(c)!=="body"),i=null;const o=on(e).position==="fixed";let l=o?Xn(e):e;for(;st(l)&&!Kn(l);){const c=on(l),u=Cd(l);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||yo(l)&&!u&&xx(e,l))?r=r.filter(h=>h!==l):i=c,l=Xn(l)}return t.set(e,r),r}function n6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?qa(t)?[]:t6(t,this._c):[].concat(n),r],c=l[0],u=l.reduce((d,h)=>{const m=bx(t,h,i);return d.top=Yt(m.top,d.top),d.right=Ar(m.right,d.right),d.bottom=Ar(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},bx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function r6(e){const{width:t,height:n}=gx(e);return{width:t,height:n}}function i6(e,t,n){const r=Gt(t),i=Rn(t),o=n==="fixed",l=ii(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Nn(0);if(r||!r&&!o)if((Zi(t)!=="body"||yo(i))&&(c=Xa(t)),r){const g=ii(t,!0,o,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&(u.x=Rd(i));const d=i&&!r&&!o?vx(i,c):Nn(0),h=l.left+c.scrollLeft-u.x-d.x,m=l.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:l.width,height:l.height}}function Nd(e){return on(e).position==="static"}function wx(e,t){if(!Gt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rn(e)===n&&(n=n.ownerDocument.body),n}function Sx(e,t){const n=zt(e);if(qa(e))return n;if(!Gt(e)){let i=Xn(e);for(;i&&!Kn(i);){if(st(i)&&!Nd(i))return i;i=Xn(i)}return n}let r=wx(e,t);for(;r&&OR(r)&&Nd(r);)r=wx(r,t);return r&&Kn(r)&&Nd(r)&&!Cd(r)?n:r||MR(e)||n}const s6=async function(e){const t=this.getOffsetParent||Sx,n=this.getDimensions,r=await n(e.floating);return{reference:i6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function o6(e){return on(e).direction==="rtl"}const a6={convertOffsetParentRelativeRectToViewportRelativeRect:XR,getDocumentElement:Rn,getClippingRect:n6,getOffsetParent:Sx,getElementRects:s6,getClientRects:ZR,getDimensions:r6,getScale:es,isElement:st,isRTL:o6};function Tx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l6(e,t){let n=null,r;const i=Rn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(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=Ja(m),b=Ja(i.clientWidth-(h+g)),P=Ja(i.clientHeight-(m+y)),w=Ja(h),O={rootMargin:-S+"px "+-b+"px "+-P+"px "+-w+"px",threshold:Yt(0,Ar(1,u))||1};let D=!0;function C(L){const V=L[0].intersectionRatio;if(V!==u){if(!D)return l();V?l(!1,V):r=setTimeout(()=>{l(!1,1e-7)},1e3)}V===1&&!Tx(d,e.getBoundingClientRect())&&l(),D=!1}try{n=new IntersectionObserver(C,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,O)}n.observe(e)}return l(!0),o}function bo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=$d(e),h=i||o?[...d?Pr(d):[],...Pr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?l6(d,n):null;let g=-1,y=null;l&&(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,b=u?ii(e):null;u&&P();function P(){const w=ii(e);b&&!Tx(b,w)&&n(),b=w,S=requestAnimationFrame(P)}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 c6=GR,u6=YR,f6=WR,d6=HR,Ex=UR,h6=(e,t,n)=>{const r=new Map,i={platform:a6,...n},o={...i.platform,_c:r};return BR(e,t,{...i,platform:o})};var tl=typeof document<"u"?I.useLayoutEffect:I.useEffect;function nl(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(!nl(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)&&!nl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Cx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Px(e,t){const n=Cx(e);return Math.round(t*n)/n}function Ld(e){const t=ce.useRef(e);return tl(()=>{t.current=e}),t}function m6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=ce.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=ce.useState(r);nl(g,r)||y(r);const[S,b]=ce.useState(null),[P,w]=ce.useState(null),A=ce.useCallback(H=>{H!==L.current&&(L.current=H,b(H))},[]),O=ce.useCallback(H=>{H!==V.current&&(V.current=H,w(H))},[]),D=o||S,C=l||P,L=ce.useRef(null),V=ce.useRef(null),F=ce.useRef(h),Y=u!=null,te=Ld(u),ie=Ld(i),ve=Ld(d),ye=ce.useCallback(()=>{if(!L.current||!V.current)return;const H={placement:t,strategy:n,middleware:g};ie.current&&(H.platform=ie.current),h6(L.current,V.current,H).then(J=>{const _={...J,isPositioned:ve.current!==!1};fe.current&&!nl(F.current,_)&&(F.current=_,K2.flushSync(()=>{m(_)}))})},[g,t,n,ie,ve]);tl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(H=>({...H,isPositioned:!1})))},[d]);const fe=ce.useRef(!1);tl(()=>(fe.current=!0,()=>{fe.current=!1}),[]),tl(()=>{if(D&&(L.current=D),C&&(V.current=C),D&&C){if(te.current)return te.current(D,C,ye);ye()}},[D,C,ye,te,Y]);const oe=ce.useMemo(()=>({reference:L,floating:V,setReference:A,setFloating:O}),[A,O]),X=ce.useMemo(()=>({reference:D,floating:C}),[D,C]),K=ce.useMemo(()=>{const H={position:n,left:0,top:0};if(!X.floating)return H;const J=Px(X.floating,h.x),_=Px(X.floating,h.y);return c?{...H,transform:"translate("+J+"px, "+_+"px)",...Cx(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:J,top:_}},[n,c,X.floating,h.x,h.y]);return ce.useMemo(()=>({...h,update:ye,refs:oe,elements:X,floatingStyles:K}),[h,ye,oe,X,K])}const p6=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?Ex({element:r.current,padding:i}).fn(n):{}:r?Ex({element:r,padding:i}).fn(n):{}}}},xo=(e,t)=>({...c6(e),options:[e,t]}),wo=(e,t)=>({...u6(e),options:[e,t]}),So=(e,t)=>({...f6(e),options:[e,t]}),rl=(e,t)=>({...d6(e),options:[e,t]}),il=(e,t)=>({...p6(e),options:[e,t]}),Ax={...ce},g6=Ax.useInsertionEffect||(e=>e());function ts(e){const t=ce.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return g6(()=>{t.current=e}),ce.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 ns=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ox=!1,y6=0;const Mx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+y6++;function v6(){const[e,t]=ce.useState(()=>Ox?Mx():void 0);return ns(()=>{e==null&&t(Mx())},[]),ce.useEffect(()=>{Ox=!0},[]),e}const b6=Ax.useId||v6;let kd;process.env.NODE_ENV!=="production"&&(kd=new Set);function x6(){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=kd)!=null&&e.has(i))){var o;(o=kd)==null||o.add(i),console.error(i)}}function w6(){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 S6=ce.createContext(null),T6=ce.createContext(null),E6=()=>{var e;return((e=ce.useContext(S6))==null?void 0:e.id)||null},_x=()=>ce.useContext(T6);function C6(e){return"data-floating-ui-"+e}function sl(e){const t=I.useRef(e);return ns(()=>{t.current=e}),t}function Fd(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(l=>{var c;return i.parentId===l.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const P6="data-floating-ui-focusable";function Ix(e){return Gt(e.target)&&e.target.tagName==="BUTTON"}function Dx(e){return $R(e)}function To(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:l=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,g=ce.useRef(),y=ce.useRef(!1),S=ce.useMemo(()=>({onPointerDown(b){g.current=b.pointerType},onMouseDown(b){const P=g.current;b.button===0&&c!=="click"&&(fx(P)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const P=g.current;if(c==="mousedown"&&g.current){g.current=void 0;return}fx(P)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){g.current=void 0,!(b.defaultPrevented||!h||Ix(b))&&(b.key===" "&&!Dx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Ix(b)||Dx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return ce.useMemo(()=>l?{reference:S}:{},[l,S])}const A6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},$x=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 Eo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:l=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:y,capture:S}=t,b=_x(),P=ts(typeof u=="function"?u:()=>!1),w=typeof u=="function"?P:u,A=ce.useRef(!1),O=ce.useRef(!1),{escapeKey:D,outsidePress:C}=$x(y),{escapeKey:L,outsidePress:V}=$x(S),F=ce.useRef(!1),Y=ts(oe=>{var X;if(!n||!l||!c||oe.key!=="Escape"||F.current)return;const K=(X=o.current.floatingContext)==null?void 0:X.nodeId,H=b?Fd(b.nodesRef.current,K):[];if(!D&&(oe.stopPropagation(),H.length>0)){let J=!0;if(H.forEach(_=>{var k;if((k=_.context)!=null&&k.open&&!_.context.dataRef.current.__escapeKeyBubbles){J=!1;return}}),!J)return}r(!1,_R(oe)?oe.nativeEvent:oe,"escape-key")}),te=ts(oe=>{var X;const K=()=>{var H;Y(oe),(H=vo(oe))==null||H.removeEventListener("keydown",K)};(X=vo(oe))==null||X.addEventListener("keydown",K)}),ie=ts(oe=>{var X;const K=A.current;A.current=!1;const H=O.current;if(O.current=!1,d==="click"&&H||K||typeof w=="function"&&!w(oe))return;const J=vo(oe),_="["+C6("inert")+"]",k=dx(i.floating).querySelectorAll(_);let Z=st(J)?J:null;for(;Z&&!Kn(Z);){const se=Xn(Z);if(Kn(se)||!st(se))break;Z=se}if(k.length&&st(J)&&!IR(J)&&!ux(J,i.floating)&&Array.from(k).every(se=>!ux(Z,se)))return;if(Gt(J)&&fe){const se=Kn(J),de=on(J),re=/auto|scroll/,me=se||re.test(de.overflowX),Ce=se||re.test(de.overflowY),Ue=me&&J.clientWidth>0&&J.scrollWidth>J.clientWidth,ee=Ce&&J.clientHeight>0&&J.scrollHeight>J.clientHeight,pe=de.direction==="rtl",Le=ee&&(pe?oe.offsetX<=J.offsetWidth-J.clientWidth:oe.offsetX>J.clientWidth),ft=Ue&&oe.offsetY>J.clientHeight;if(Le||ft)return}const Q=(X=o.current.floatingContext)==null?void 0:X.nodeId,le=b&&Fd(b.nodesRef.current,Q).some(se=>{var de;return Ad(oe,(de=se.context)==null?void 0:de.elements.floating)});if(Ad(oe,i.floating)||Ad(oe,i.domReference)||le)return;const G=b?Fd(b.nodesRef.current,Q):[];if(G.length>0){let se=!0;if(G.forEach(de=>{var re;if((re=de.context)!=null&&re.open&&!de.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}r(!1,oe,"outside-press")}),ve=ts(oe=>{var X;const K=()=>{var H;ie(oe),(H=vo(oe))==null||H.removeEventListener(d,K)};(X=vo(oe))==null||X.addEventListener(d,K)});ce.useEffect(()=>{if(!n||!l)return;o.current.__escapeKeyBubbles=D,o.current.__outsidePressBubbles=C;let oe=-1;function X(k){r(!1,k,"ancestor-scroll")}function K(){window.clearTimeout(oe),F.current=!0}function H(){oe=window.setTimeout(()=>{F.current=!1},Ka()?5:0)}const J=dx(i.floating);c&&(J.addEventListener("keydown",L?te:Y,L),J.addEventListener("compositionstart",K),J.addEventListener("compositionend",H)),w&&J.addEventListener(d,V?ve:ie,V);let _=[];return g&&(st(i.domReference)&&(_=Pr(i.domReference)),st(i.floating)&&(_=_.concat(Pr(i.floating))),!st(i.reference)&&i.reference&&i.reference.contextElement&&(_=_.concat(Pr(i.reference.contextElement)))),_=_.filter(k=>{var Z;return k!==((Z=J.defaultView)==null?void 0:Z.visualViewport)}),_.forEach(k=>{k.addEventListener("scroll",X,{passive:!0})}),()=>{c&&(J.removeEventListener("keydown",L?te:Y,L),J.removeEventListener("compositionstart",K),J.removeEventListener("compositionend",H)),w&&J.removeEventListener(d,V?ve:ie,V),_.forEach(k=>{k.removeEventListener("scroll",X)}),window.clearTimeout(oe)}},[o,i,c,w,d,n,r,g,l,D,C,Y,L,te,ie,V,ve]),ce.useEffect(()=>{A.current=!1},[w,d]);const ye=ce.useMemo(()=>({onKeyDown:Y,...h&&{[A6[m]]:oe=>{r(!1,oe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(oe){r(!1,oe.nativeEvent,"reference-press")}}}}),[Y,r,h,m]),fe=ce.useMemo(()=>({onKeyDown:Y,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[O6[d]]:()=>{A.current=!0}}),[Y,d]);return ce.useMemo(()=>l?{reference:ye,floating:fe}:{},[l,ye,fe])}function M6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=b6(),o=ce.useRef({}),[l]=ce.useState(()=>w6()),c=E6()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!st(y)&&x6("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]=ce.useState(r.reference),h=ts((y,S,b)=>{o.current.openEvent=y?S:void 0,l.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=ce.useMemo(()=>({setPositionReference:d}),[]),g=ce.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return ce.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:l,floatingId:i,refs:m}),[t,h,g,l,i,m])}function Co(e){e===void 0&&(e={});const{nodeId:t}=e,n=M6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,l]=ce.useState(null),[c,u]=ce.useState(null),h=(i==null?void 0:i.domReference)||o,m=ce.useRef(null),g=_x();ns(()=>{h&&(m.current=h)},[h]);const y=m6({...e,elements:{...i,...c&&{reference:c}}}),S=ce.useCallback(O=>{const D=st(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;u(D),y.refs.setReference(D)},[y.refs]),b=ce.useCallback(O=>{(st(O)||O===null)&&(m.current=O,l(O)),(st(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!st(O))&&y.refs.setReference(O)},[y.refs]),P=ce.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=ce.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),A=ce.useMemo(()=>({...y,...r,refs:P,elements:w,nodeId:t}),[y,P,w,t,r]);return ns(()=>{r.dataRef.current.floatingContext=A;const O=g==null?void 0:g.nodesRef.current.find(D=>D.id===t);O&&(O.context=A)}),ce.useMemo(()=>({...y,context:A,refs:P,elements:w}),[y,P,w,A])}const Rx="active",Nx="selected";function jd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Rx]:l,[Nx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[P6]:""},...o,...t.map(l=>{const c=l?l[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((l,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Rx,Nx].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),l[d]=function(){for(var g,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(g=r.get(d))==null?void 0:g.map(P=>P(...S)).find(P=>P!==void 0)}}}else l[d]=h}),l),{})}}function Po(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=ce.useCallback(c=>jd(c,e,"reference"),t),o=ce.useCallback(c=>jd(c,e,"floating"),n),l=ce.useCallback(c=>jd(c,e,"item"),r);return ce.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}const Lx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function rs(e,t){return typeof e=="function"?e(t):e}function _6(e,t){const[n,r]=ce.useState(e);return e&&!n&&r(!0),ce.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function I6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,l=(typeof i=="number"?i:i.close)||0,[c,u]=ce.useState("unmounted"),d=_6(n,l);return!d&&c==="close"&&u("unmounted"),ns(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function Ao(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,c=e.placement,u=c.split("-")[0],d=ce.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof l=="number",m=(h?l:l.open)||0,g=(h?l:l.close)||0,[y,S]=ce.useState(()=>({...rs(o,d),...rs(n,d)})),{isMounted:b,status:P}=I6(e,{duration:l}),w=sl(n),A=sl(r),O=sl(i),D=sl(o);return ns(()=>{const C=rs(w.current,d),L=rs(O.current,d),V=rs(D.current,d),F=rs(A.current,d)||Object.keys(C).reduce((Y,te)=>(Y[te]="",Y),{});if(P==="initial"&&S(Y=>({transitionProperty:Y.transitionProperty,...V,...C})),P==="open"&&S({transitionProperty:Object.keys(F).map(Lx).join(","),transitionDuration:m+"ms",...V,...F}),P==="close"){const Y=L||C;S({transitionProperty:Object.keys(Y).map(Lx).join(","),transitionDuration:g+"ms",...V,...Y})}},[g,O,w,A,D,m,P,d]),{isMounted:b,styles:y}}const Oo=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:l="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:b,context:P}=Co({strategy:l,open:d,onOpenChange:V=>{V||m()},middleware:[xo(c),So(),wo({padding:u})],whileElementsMounted:bo,placement:i}),w=To(P),A=Eo(P),{getReferenceProps:O,getFloatingProps:D}=Po([w,A]),{isMounted:C,styles:L}=Ao(P,{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:b.setReference,...O(),className:"reference-element",children:r}),C&&x.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:g??0,...L,zIndex:9999},...D(),className:"floating-element",children:x.jsx(is,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},kx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},D6=({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:kx,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:kx,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"})]}),$6=({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 TR={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"]},ER={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"]},CR={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"]},PR={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"]},AR={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 Ha(){return typeof window<"u"}function Zi(e){return lx(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(lx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lx(e){return Ha()?e instanceof Node||e instanceof zt(e).Node:!1}function st(e){return Ha()?e instanceof Element||e instanceof zt(e).Element:!1}function Gt(e){return Ha()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ed(e){return!Ha()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function yo(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 OR(e){return["table","td","th"].includes(Zi(e))}function qa(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Cd(e){const t=Ka(),n=st(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 MR(e){let t=Xn(e);for(;Gt(t)&&!Kn(t);){if(Cd(t))return t;if(qa(t))return null;t=Xn(t)}return null}function Ka(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Kn(e){return["html","body","#document"].includes(Zi(e))}function on(e){return zt(e).getComputedStyle(e)}function Xa(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xn(e){if(Zi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ed(e)&&e.host||Rn(e);return Ed(t)?t.host:t}function cx(e){const t=Xn(e);return Kn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&yo(t)?t:cx(t)}function Pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=cx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=zt(i);if(o){const c=Pd(l);return t.concat(l,l.visualViewport||[],yo(i)?i:[],c&&n?Pr(c):[])}return t.concat(i,Pr(i,[],n))}function Pd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ux(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ed(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function fx(e,t){return["mouse","pen"].includes(e)}function _R(e){return"nativeEvent"in e}function IR(e){return e.matches("html,body")}function dx(e){return(e==null?void 0:e.ownerDocument)||document}function Ad(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 vo(e){return"composedPath"in e?e.composedPath()[0]:e.target}const DR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function $R(e){return Gt(e)&&e.matches(DR)}const Ar=Math.min,Yt=Math.max,Za=Math.round,Ja=Math.floor,Nn=e=>({x:e,y:e}),RR={left:"right",right:"left",bottom:"top",top:"bottom"},NR={start:"end",end:"start"};function Od(e,t,n){return Yt(e,Ar(t,n))}function Ji(e,t){return typeof e=="function"?e(t):e}function Or(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function hx(e){return e==="x"?"y":"x"}function Md(e){return e==="y"?"height":"width"}function ri(e){return["top","bottom"].includes(Or(e))?"y":"x"}function _d(e){return hx(ri(e))}function LR(e,t,n){n===void 0&&(n=!1);const r=Qi(e),i=_d(e),o=Md(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Qa(l)),[l,Qa(l)]}function kR(e){const t=Qa(e);return[Id(e),t,Id(t)]}function Id(e){return e.replace(/start|end/g,t=>NR[t])}function FR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:l;default:return[]}}function jR(e,t,n,r){const i=Qi(e);let o=FR(Or(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(Id)))),o}function Qa(e){return e.replace(/left|right|bottom|top/g,t=>RR[t])}function VR(e){return{top:0,right:0,bottom:0,left:0,...e}}function mx(e){return typeof e!="number"?VR(e):{top:e,right:e,bottom:e,left:e}}function el(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 px(e,t,n){let{reference:r,floating:i}=e;const o=ri(t),l=_d(t),c=Md(l),u=Or(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(Qi(t)){case"start":y[l]-=g*(n&&d?-1:1);break;case"end":y[l]+=g*(n&&d?-1:1);break}return y}const BR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=px(d,r,u),g=r,y={},S=0;for(let b=0;b<c.length;b++){const{name:P,fn:w}=c[b],{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:l,elements:{reference:e,floating:t}});h=A??h,m=O??m,y={...y,[P]:{...y[P],...D}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=px(d,g,u)),b=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:y}};async function Dd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:y=0}=Ji(t,e),S=mx(y),P=c[g?m==="floating"?"reference":"floating":m],w=el(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(P)))==null||n?P:P.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:l.floating.width,height:l.floating.height}:l.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=el(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 UR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=Ji(e,t)||{};if(d==null)return{};const m=mx(h),g={x:n,y:r},y=_d(i),S=Md(y),b=await l.getDimensions(d),P=y==="y",w=P?"top":"left",A=P?"bottom":"right",O=P?"clientHeight":"clientWidth",D=o.reference[S]+o.reference[y]-g[y]-o.floating[S],C=g[y]-o.reference[y],L=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let V=L?L[O]:0;(!V||!await(l.isElement==null?void 0:l.isElement(L)))&&(V=c.floating[O]||o.floating[S]);const F=D/2-C/2,q=V/2-b[S]/2-1,ee=Ar(m[w],q),re=Ar(m[A],q),ve=ee,ye=V-b[S]-re,fe=V/2-b[S]/2+F,se=Od(ve,fe,ye),oe=!u.arrow&&Qi(i)!=null&&fe!==se&&o.reference[S]/2-(fe<ve?ee:re)-b[S]/2<0,z=oe?fe<ve?fe-ve:fe-ye:0;return{[y]:g[y]+z,data:{[y]:se,centerOffset:fe-se-z,...oe&&{alignmentOffset:z}},reset:oe}}}),WR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...P}=Ji(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Or(i),A=ri(c),O=Or(c)===c,D=await(u.isRTL==null?void 0:u.isRTL(d.floating)),C=g||(O||!b?[Qa(c)]:kR(c)),L=S!=="none";!g&&L&&C.push(...jR(c,b,S,D));const V=[c,...C],F=await Dd(t,P),q=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&q.push(F[w]),m){const fe=LR(i,l,D);q.push(F[fe[0]],F[fe[1]])}if(ee=[...ee,{placement:i,overflows:q}],!q.every(fe=>fe<=0)){var re,ve;const fe=(((re=o.flip)==null?void 0:re.index)||0)+1,se=V[fe];if(se)return{data:{index:fe,overflows:ee},reset:{placement:se}};let oe=(ve=ee.filter(z=>z.overflows[0]<=0).sort((z,Y)=>z.overflows[1]-Y.overflows[1])[0])==null?void 0:ve.placement;if(!oe)switch(y){case"bestFit":{var ye;const z=(ye=ee.filter(Y=>{if(L){const Z=ri(Y.placement);return Z===A||Z==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(Z=>Z>0).reduce((Z,_)=>Z+_,0)]).sort((Y,Z)=>Y[1]-Z[1])[0])==null?void 0:ye[0];z&&(oe=z);break}case"initialPlacement":oe=c;break}if(i!==oe)return{reset:{placement:oe}}}return{}}}};async function zR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Or(n),c=Qi(n),u=ri(n)==="y",d=["left","top"].includes(l)?-1:1,h=o&&u?-1:1,m=Ji(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 GR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:c}=t,u=await zR(t,e);return l===((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:l}}}}},YR=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:l=!1,limiter:c={fn:P=>{let{x:w,y:A}=P;return{x:w,y:A}}},...u}=Ji(e,t),d={x:n,y:r},h=await Dd(t,u),m=ri(Or(i)),g=hx(m);let y=d[g],S=d[m];if(o){const P=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=y+h[P],O=y-h[w];y=Od(A,y,O)}if(l){const P=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=S+h[P],O=S-h[w];S=Od(A,S,O)}const b=c.fn({...t,[g]:y,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:o,[m]:l}}}}}},HR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:u=()=>{},...d}=Ji(e,t),h=await Dd(t,d),m=Or(i),g=Qi(i),y=ri(i)==="y",{width:S,height:b}=o.floating;let P,w;m==="top"||m==="bottom"?(P=m,w=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,P=g==="end"?"top":"bottom");const A=b-h.top-h.bottom,O=S-h.left-h.right,D=Ar(b-h[P],A),C=Ar(S-h[w],O),L=!t.middlewareData.shift;let V=D,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=A),L&&!g){const ee=Yt(h.left,0),re=Yt(h.right,0),ve=Yt(h.top,0),ye=Yt(h.bottom,0);y?F=S-2*(ee!==0||re!==0?ee+re:Yt(h.left,h.right)):V=b-2*(ve!==0||ye!==0?ve+ye:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:V});const q=await l.getDimensions(c.floating);return S!==q.width||b!==q.height?{reset:{rects:!0}}:{}}}};function gx(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Gt(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=Za(n)!==o||Za(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function $d(e){return st(e)?e:e.contextElement}function es(e){const t=$d(e);if(!Gt(t))return Nn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=gx(t);let l=(o?Za(n.width):n.width)/r,c=(o?Za(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const qR=Nn(0);function yx(e){const t=zt(e);return!Ka()||!t.visualViewport?qR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ii(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=$d(e);let l=Nn(1);t&&(r?st(r)&&(l=es(r)):l=es(e));const c=KR(o,n,r)?yx(o):Nn(0);let u=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,h=i.width/l.x,m=i.height/l.y;if(o){const g=zt(o),y=r&&st(r)?zt(r):r;let S=g,b=Pd(S);for(;b&&r&&y!==S;){const P=es(b),w=b.getBoundingClientRect(),A=on(b),O=w.left+(b.clientLeft+parseFloat(A.paddingLeft))*P.x,D=w.top+(b.clientTop+parseFloat(A.paddingTop))*P.y;u*=P.x,d*=P.y,h*=P.x,m*=P.y,u+=O,d+=D,S=zt(b),b=Pd(S)}}return el({width:h,height:m,x:u,y:d})}function Rd(e,t){const n=Xa(e).scrollLeft;return t?t.left+n:ii(Rn(e)).left+n}function vx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Rd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function XR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=Rn(r),c=t?qa(t.floating):!1;if(r===l||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Nn(1);const h=Nn(0),m=Gt(r);if((m||!m&&!o)&&((Zi(r)!=="body"||yo(l))&&(u=Xa(r)),Gt(r))){const y=ii(r);d=es(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const g=l&&!m&&!o?vx(l,u,!0):Nn(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 ZR(e){return Array.from(e.getClientRects())}function JR(e){const t=Rn(e),n=Xa(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 l=-n.scrollLeft+Rd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(l+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function QR(e,t){const n=zt(e),r=Rn(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,u=0;if(i){o=i.width,l=i.height;const d=Ka();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:l,x:c,y:u}}function e6(e,t){const n=ii(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Gt(e)?es(e):Nn(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:l,height:c,x:u,y:d}}function bx(e,t,n){let r;if(t==="viewport")r=QR(e,n);else if(t==="document")r=JR(Rn(e));else if(st(t))r=e6(t,n);else{const i=yx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return el(r)}function xx(e,t){const n=Xn(e);return n===t||!st(n)||Kn(n)?!1:on(n).position==="fixed"||xx(n,t)}function t6(e,t){const n=t.get(e);if(n)return n;let r=Pr(e,[],!1).filter(c=>st(c)&&Zi(c)!=="body"),i=null;const o=on(e).position==="fixed";let l=o?Xn(e):e;for(;st(l)&&!Kn(l);){const c=on(l),u=Cd(l);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||yo(l)&&!u&&xx(e,l))?r=r.filter(h=>h!==l):i=c,l=Xn(l)}return t.set(e,r),r}function n6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?qa(t)?[]:t6(t,this._c):[].concat(n),r],c=l[0],u=l.reduce((d,h)=>{const m=bx(t,h,i);return d.top=Yt(m.top,d.top),d.right=Ar(m.right,d.right),d.bottom=Ar(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},bx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function r6(e){const{width:t,height:n}=gx(e);return{width:t,height:n}}function i6(e,t,n){const r=Gt(t),i=Rn(t),o=n==="fixed",l=ii(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Nn(0);if(r||!r&&!o)if((Zi(t)!=="body"||yo(i))&&(c=Xa(t)),r){const g=ii(t,!0,o,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&(u.x=Rd(i));const d=i&&!r&&!o?vx(i,c):Nn(0),h=l.left+c.scrollLeft-u.x-d.x,m=l.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:l.width,height:l.height}}function Nd(e){return on(e).position==="static"}function wx(e,t){if(!Gt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rn(e)===n&&(n=n.ownerDocument.body),n}function Sx(e,t){const n=zt(e);if(qa(e))return n;if(!Gt(e)){let i=Xn(e);for(;i&&!Kn(i);){if(st(i)&&!Nd(i))return i;i=Xn(i)}return n}let r=wx(e,t);for(;r&&OR(r)&&Nd(r);)r=wx(r,t);return r&&Kn(r)&&Nd(r)&&!Cd(r)?n:r||MR(e)||n}const s6=async function(e){const t=this.getOffsetParent||Sx,n=this.getDimensions,r=await n(e.floating);return{reference:i6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function o6(e){return on(e).direction==="rtl"}const a6={convertOffsetParentRelativeRectToViewportRelativeRect:XR,getDocumentElement:Rn,getClippingRect:n6,getOffsetParent:Sx,getElementRects:s6,getClientRects:ZR,getDimensions:r6,getScale:es,isElement:st,isRTL:o6};function Tx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function l6(e,t){let n=null,r;const i=Rn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(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=Ja(m),b=Ja(i.clientWidth-(h+g)),P=Ja(i.clientHeight-(m+y)),w=Ja(h),O={rootMargin:-S+"px "+-b+"px "+-P+"px "+-w+"px",threshold:Yt(0,Ar(1,u))||1};let D=!0;function C(L){const V=L[0].intersectionRatio;if(V!==u){if(!D)return l();V?l(!1,V):r=setTimeout(()=>{l(!1,1e-7)},1e3)}V===1&&!Tx(d,e.getBoundingClientRect())&&l(),D=!1}try{n=new IntersectionObserver(C,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,O)}n.observe(e)}return l(!0),o}function bo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=$d(e),h=i||o?[...d?Pr(d):[],...Pr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?l6(d,n):null;let g=-1,y=null;l&&(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,b=u?ii(e):null;u&&P();function P(){const w=ii(e);b&&!Tx(b,w)&&n(),b=w,S=requestAnimationFrame(P)}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 c6=GR,u6=YR,f6=WR,d6=HR,Ex=UR,h6=(e,t,n)=>{const r=new Map,i={platform:a6,...n},o={...i.platform,_c:r};return BR(e,t,{...i,platform:o})};var tl=typeof document<"u"?I.useLayoutEffect:I.useEffect;function nl(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(!nl(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)&&!nl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Cx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Px(e,t){const n=Cx(e);return Math.round(t*n)/n}function Ld(e){const t=ce.useRef(e);return tl(()=>{t.current=e}),t}function m6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=ce.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=ce.useState(r);nl(g,r)||y(r);const[S,b]=ce.useState(null),[P,w]=ce.useState(null),A=ce.useCallback(Y=>{Y!==L.current&&(L.current=Y,b(Y))},[]),O=ce.useCallback(Y=>{Y!==V.current&&(V.current=Y,w(Y))},[]),D=o||S,C=l||P,L=ce.useRef(null),V=ce.useRef(null),F=ce.useRef(h),q=u!=null,ee=Ld(u),re=Ld(i),ve=Ld(d),ye=ce.useCallback(()=>{if(!L.current||!V.current)return;const Y={placement:t,strategy:n,middleware:g};re.current&&(Y.platform=re.current),h6(L.current,V.current,Y).then(Z=>{const _={...Z,isPositioned:ve.current!==!1};fe.current&&!nl(F.current,_)&&(F.current=_,K2.flushSync(()=>{m(_)}))})},[g,t,n,re,ve]);tl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(Y=>({...Y,isPositioned:!1})))},[d]);const fe=ce.useRef(!1);tl(()=>(fe.current=!0,()=>{fe.current=!1}),[]),tl(()=>{if(D&&(L.current=D),C&&(V.current=C),D&&C){if(ee.current)return ee.current(D,C,ye);ye()}},[D,C,ye,ee,q]);const se=ce.useMemo(()=>({reference:L,floating:V,setReference:A,setFloating:O}),[A,O]),oe=ce.useMemo(()=>({reference:D,floating:C}),[D,C]),z=ce.useMemo(()=>{const Y={position:n,left:0,top:0};if(!oe.floating)return Y;const Z=Px(oe.floating,h.x),_=Px(oe.floating,h.y);return c?{...Y,transform:"translate("+Z+"px, "+_+"px)",...Cx(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:_}},[n,c,oe.floating,h.x,h.y]);return ce.useMemo(()=>({...h,update:ye,refs:se,elements:oe,floatingStyles:z}),[h,ye,se,oe,z])}const p6=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?Ex({element:r.current,padding:i}).fn(n):{}:r?Ex({element:r,padding:i}).fn(n):{}}}},xo=(e,t)=>({...c6(e),options:[e,t]}),wo=(e,t)=>({...u6(e),options:[e,t]}),So=(e,t)=>({...f6(e),options:[e,t]}),rl=(e,t)=>({...d6(e),options:[e,t]}),il=(e,t)=>({...p6(e),options:[e,t]}),Ax={...ce},g6=Ax.useInsertionEffect||(e=>e());function ts(e){const t=ce.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return g6(()=>{t.current=e}),ce.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 ns=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Ox=!1,y6=0;const Mx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+y6++;function v6(){const[e,t]=ce.useState(()=>Ox?Mx():void 0);return ns(()=>{e==null&&t(Mx())},[]),ce.useEffect(()=>{Ox=!0},[]),e}const b6=Ax.useId||v6;let kd;process.env.NODE_ENV!=="production"&&(kd=new Set);function x6(){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=kd)!=null&&e.has(i))){var o;(o=kd)==null||o.add(i),console.error(i)}}function w6(){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 S6=ce.createContext(null),T6=ce.createContext(null),E6=()=>{var e;return((e=ce.useContext(S6))==null?void 0:e.id)||null},_x=()=>ce.useContext(T6);function C6(e){return"data-floating-ui-"+e}function sl(e){const t=I.useRef(e);return ns(()=>{t.current=e}),t}function Fd(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(l=>{var c;return i.parentId===l.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const P6="data-floating-ui-focusable";function Ix(e){return Gt(e.target)&&e.target.tagName==="BUTTON"}function Dx(e){return $R(e)}function To(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:l=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,g=ce.useRef(),y=ce.useRef(!1),S=ce.useMemo(()=>({onPointerDown(b){g.current=b.pointerType},onMouseDown(b){const P=g.current;b.button===0&&c!=="click"&&(fx(P)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const P=g.current;if(c==="mousedown"&&g.current){g.current=void 0;return}fx(P)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){g.current=void 0,!(b.defaultPrevented||!h||Ix(b))&&(b.key===" "&&!Dx(o)&&(b.preventDefault(),y.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||Ix(b)||Dx(o)||b.key===" "&&y.current&&(y.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return ce.useMemo(()=>l?{reference:S}:{},[l,S])}const A6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},$x=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 Eo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:l=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:y,capture:S}=t,b=_x(),P=ts(typeof u=="function"?u:()=>!1),w=typeof u=="function"?P:u,A=ce.useRef(!1),O=ce.useRef(!1),{escapeKey:D,outsidePress:C}=$x(y),{escapeKey:L,outsidePress:V}=$x(S),F=ce.useRef(!1),q=ts(se=>{var oe;if(!n||!l||!c||se.key!=="Escape"||F.current)return;const z=(oe=o.current.floatingContext)==null?void 0:oe.nodeId,Y=b?Fd(b.nodesRef.current,z):[];if(!D&&(se.stopPropagation(),Y.length>0)){let Z=!0;if(Y.forEach(_=>{var k;if((k=_.context)!=null&&k.open&&!_.context.dataRef.current.__escapeKeyBubbles){Z=!1;return}}),!Z)return}r(!1,_R(se)?se.nativeEvent:se,"escape-key")}),ee=ts(se=>{var oe;const z=()=>{var Y;q(se),(Y=vo(se))==null||Y.removeEventListener("keydown",z)};(oe=vo(se))==null||oe.addEventListener("keydown",z)}),re=ts(se=>{var oe;const z=A.current;A.current=!1;const Y=O.current;if(O.current=!1,d==="click"&&Y||z||typeof w=="function"&&!w(se))return;const Z=vo(se),_="["+C6("inert")+"]",k=dx(i.floating).querySelectorAll(_);let X=st(Z)?Z:null;for(;X&&!Kn(X);){const ie=Xn(X);if(Kn(ie)||!st(ie))break;X=ie}if(k.length&&st(Z)&&!IR(Z)&&!ux(Z,i.floating)&&Array.from(k).every(ie=>!ux(X,ie)))return;if(Gt(Z)&&fe){const ie=Kn(Z),de=on(Z),ne=/auto|scroll/,me=ie||ne.test(de.overflowX),Ce=ie||ne.test(de.overflowY),Ue=me&&Z.clientWidth>0&&Z.scrollWidth>Z.clientWidth,Q=Ce&&Z.clientHeight>0&&Z.scrollHeight>Z.clientHeight,pe=de.direction==="rtl",Le=Q&&(pe?se.offsetX<=Z.offsetWidth-Z.clientWidth:se.offsetX>Z.clientWidth),ft=Ue&&se.offsetY>Z.clientHeight;if(Le||ft)return}const J=(oe=o.current.floatingContext)==null?void 0:oe.nodeId,le=b&&Fd(b.nodesRef.current,J).some(ie=>{var de;return Ad(se,(de=ie.context)==null?void 0:de.elements.floating)});if(Ad(se,i.floating)||Ad(se,i.domReference)||le)return;const H=b?Fd(b.nodesRef.current,J):[];if(H.length>0){let ie=!0;if(H.forEach(de=>{var ne;if((ne=de.context)!=null&&ne.open&&!de.context.dataRef.current.__outsidePressBubbles){ie=!1;return}}),!ie)return}r(!1,se,"outside-press")}),ve=ts(se=>{var oe;const z=()=>{var Y;re(se),(Y=vo(se))==null||Y.removeEventListener(d,z)};(oe=vo(se))==null||oe.addEventListener(d,z)});ce.useEffect(()=>{if(!n||!l)return;o.current.__escapeKeyBubbles=D,o.current.__outsidePressBubbles=C;let se=-1;function oe(k){r(!1,k,"ancestor-scroll")}function z(){window.clearTimeout(se),F.current=!0}function Y(){se=window.setTimeout(()=>{F.current=!1},Ka()?5:0)}const Z=dx(i.floating);c&&(Z.addEventListener("keydown",L?ee:q,L),Z.addEventListener("compositionstart",z),Z.addEventListener("compositionend",Y)),w&&Z.addEventListener(d,V?ve:re,V);let _=[];return g&&(st(i.domReference)&&(_=Pr(i.domReference)),st(i.floating)&&(_=_.concat(Pr(i.floating))),!st(i.reference)&&i.reference&&i.reference.contextElement&&(_=_.concat(Pr(i.reference.contextElement)))),_=_.filter(k=>{var X;return k!==((X=Z.defaultView)==null?void 0:X.visualViewport)}),_.forEach(k=>{k.addEventListener("scroll",oe,{passive:!0})}),()=>{c&&(Z.removeEventListener("keydown",L?ee:q,L),Z.removeEventListener("compositionstart",z),Z.removeEventListener("compositionend",Y)),w&&Z.removeEventListener(d,V?ve:re,V),_.forEach(k=>{k.removeEventListener("scroll",oe)}),window.clearTimeout(se)}},[o,i,c,w,d,n,r,g,l,D,C,q,L,ee,re,V,ve]),ce.useEffect(()=>{A.current=!1},[w,d]);const ye=ce.useMemo(()=>({onKeyDown:q,...h&&{[A6[m]]:se=>{r(!1,se.nativeEvent,"reference-press")},...m!=="click"&&{onClick(se){r(!1,se.nativeEvent,"reference-press")}}}}),[q,r,h,m]),fe=ce.useMemo(()=>({onKeyDown:q,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[O6[d]]:()=>{A.current=!0}}),[q,d]);return ce.useMemo(()=>l?{reference:ye,floating:fe}:{},[l,ye,fe])}function M6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=b6(),o=ce.useRef({}),[l]=ce.useState(()=>w6()),c=E6()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!st(y)&&x6("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]=ce.useState(r.reference),h=ts((y,S,b)=>{o.current.openEvent=y?S:void 0,l.emit("openchange",{open:y,event:S,reason:b,nested:c}),n==null||n(y,S,b)}),m=ce.useMemo(()=>({setPositionReference:d}),[]),g=ce.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return ce.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:l,floatingId:i,refs:m}),[t,h,g,l,i,m])}function Co(e){e===void 0&&(e={});const{nodeId:t}=e,n=M6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,l]=ce.useState(null),[c,u]=ce.useState(null),h=(i==null?void 0:i.domReference)||o,m=ce.useRef(null),g=_x();ns(()=>{h&&(m.current=h)},[h]);const y=m6({...e,elements:{...i,...c&&{reference:c}}}),S=ce.useCallback(O=>{const D=st(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;u(D),y.refs.setReference(D)},[y.refs]),b=ce.useCallback(O=>{(st(O)||O===null)&&(m.current=O,l(O)),(st(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!st(O))&&y.refs.setReference(O)},[y.refs]),P=ce.useMemo(()=>({...y.refs,setReference:b,setPositionReference:S,domReference:m}),[y.refs,b,S]),w=ce.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),A=ce.useMemo(()=>({...y,...r,refs:P,elements:w,nodeId:t}),[y,P,w,t,r]);return ns(()=>{r.dataRef.current.floatingContext=A;const O=g==null?void 0:g.nodesRef.current.find(D=>D.id===t);O&&(O.context=A)}),ce.useMemo(()=>({...y,context:A,refs:P,elements:w}),[y,P,w,A])}const Rx="active",Nx="selected";function jd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Rx]:l,[Nx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[P6]:""},...o,...t.map(l=>{const c=l?l[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((l,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Rx,Nx].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),l[d]=function(){for(var g,y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];return(g=r.get(d))==null?void 0:g.map(P=>P(...S)).find(P=>P!==void 0)}}}else l[d]=h}),l),{})}}function Po(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=ce.useCallback(c=>jd(c,e,"reference"),t),o=ce.useCallback(c=>jd(c,e,"floating"),n),l=ce.useCallback(c=>jd(c,e,"item"),r);return ce.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:l}),[i,o,l])}const Lx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function rs(e,t){return typeof e=="function"?e(t):e}function _6(e,t){const[n,r]=ce.useState(e);return e&&!n&&r(!0),ce.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function I6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,l=(typeof i=="number"?i:i.close)||0,[c,u]=ce.useState("unmounted"),d=_6(n,l);return!d&&c==="close"&&u("unmounted"),ns(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function Ao(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:l=250}=t,c=e.placement,u=c.split("-")[0],d=ce.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof l=="number",m=(h?l:l.open)||0,g=(h?l:l.close)||0,[y,S]=ce.useState(()=>({...rs(o,d),...rs(n,d)})),{isMounted:b,status:P}=I6(e,{duration:l}),w=sl(n),A=sl(r),O=sl(i),D=sl(o);return ns(()=>{const C=rs(w.current,d),L=rs(O.current,d),V=rs(D.current,d),F=rs(A.current,d)||Object.keys(C).reduce((q,ee)=>(q[ee]="",q),{});if(P==="initial"&&S(q=>({transitionProperty:q.transitionProperty,...V,...C})),P==="open"&&S({transitionProperty:Object.keys(F).map(Lx).join(","),transitionDuration:m+"ms",...V,...F}),P==="close"){const q=L||C;S({transitionProperty:Object.keys(q).map(Lx).join(","),transitionDuration:g+"ms",...V,...q})}},[g,O,w,A,D,m,P,d]),{isMounted:b,styles:y}}const Oo=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:l="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:b,context:P}=Co({strategy:l,open:d,onOpenChange:V=>{V||m()},middleware:[xo(c),So(),wo({padding:u})],whileElementsMounted:bo,placement:i}),w=To(P),A=Eo(P),{getReferenceProps:O,getFloatingProps:D}=Po([w,A]),{isMounted:C,styles:L}=Ao(P,{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:b.setReference,...O(),className:"reference-element",children:r}),C&&x.jsx("div",{ref:b.setFloating,style:{position:S,top:y??0,left:g??0,...L,zIndex:9999},...D(),className:"floating-element",children:x.jsx(is,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},kx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},D6=({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:kx,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:kx,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"})]}),$6=({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`});/*!
|
|
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 R6={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"]},Vd={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"]},N6={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"]},Fx=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r})=>{const[i,o]=I.useState(e),[l,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(),[b,P]=I.useState(!1),[w,A]=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(pI(i))},10)},D=()=>{y(1),setTimeout(()=>{o(Yy(i,1))},10)},C=ye=>{if(r&&ye>r)return;const fe=iv(sv(ov(ye,0),0),h==="AM"?u%12:u%12+12);c(fe),t(fe)},L=ye=>{d(ye);const fe=iv(sv(ov(l,0),0),h==="AM"?ye%12:ye%12+12);c(fe),t(fe),P(!1)},V=ye=>{m(ye)},F=()=>{const ye=new Date,fe=20,
|
|
667
|
+
*/const R6={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"]},Vd={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"]},N6={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"]},Fx=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r})=>{const[i,o]=I.useState(e),[l,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(),[b,P]=I.useState(!1),[w,A]=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(pI(i))},10)},D=()=>{y(1),setTimeout(()=>{o(Yy(i,1))},10)},C=ye=>{if(r&&ye>r)return;const fe=iv(sv(ov(ye,0),0),h==="AM"?u%12:u%12+12);c(fe),t(fe)},L=ye=>{d(ye);const fe=iv(sv(ov(l,0),0),h==="AM"?ye%12:ye%12+12);c(fe),t(fe),P(!1)},V=ye=>{m(ye)},F=()=>{const ye=new Date,fe=20,se=5,[oe,z]=I.useState(()=>Array.from({length:fe+1},(k,X)=>{const J=new Date(ye.getFullYear(),ye.getMonth()-X,1);return{name:Yn(J,"MMMM",{locale:ji}).replace(/^./,le=>le.toUpperCase()),index:J.getMonth(),year:J.getFullYear(),displayName:`${Yn(J,"MMMM",{locale:ji}).replace(/^./,le=>le.toUpperCase())} ${J.getFullYear()}`}})),Y=I.useRef(null),Z=I.useRef(null);I.useEffect(()=>{Y.current&&Y.current.disconnect(),Y.current=new IntersectionObserver(k=>{k[0].isIntersecting&&z(X=>{const J=X[X.length-1],le=new Date(J.year,J.index-1,1),H=Array.from({length:se},(ie,de)=>{const ne=new Date(le.getFullYear(),le.getMonth()-de,1);return{name:Yn(ne,"MMMM",{locale:ji}).replace(/^./,me=>me.toUpperCase()),index:ne.getMonth(),year:ne.getFullYear(),displayName:`${Yn(ne,"MMMM",{locale:ji}).replace(/^./,me=>me.toUpperCase())} ${ne.getFullYear()}`}});return[...X,...H]})}),Z.current&&Y.current.observe(Z.current)},[oe]);const _=(k,X)=>{const J=new Date(i);J.setMonth(k),J.setFullYear(X),o(J),A(!1)};return x.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:oe.map((k,X)=>{const J=X===oe.length-1;return x.jsx("button",{ref:J?Z:null,onClick:()=>_(k.index,k.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${i.getMonth()===k.index&&i.getFullYear()===k.year?"bg-blue-100":""}`,children:k.displayName},`${k.name}-${k.year}-${X}`)})})},q=()=>x.jsxs("div",{className:"flex justify-between items-center mb-8",children:[x.jsx(Oo,{open:w,onClose:()=>A(!1),component:F,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:x.jsxs("button",{onClick:()=>A(!w),className:"hover:text-blue-500 transition-colors duration-150 flex gap-6 items-center",children:[x.jsx("h4",{className:"text-header-4",children:Yn(i,"MMMM yyyy",{locale:ji}).replace(/^./,ye=>ye.toUpperCase())}),x.jsx(De,{icon:Vd,className:"w-12 h-12"})]})}),x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx(Jd,{variant:"transparent",color:"gray",icon:PR,onClick:O}),x.jsx(Jd,{variant:"transparent",color:"gray",icon:i_,onClick:D})]})]}),ee=()=>{const ye=Li(g_(i)),fe=v_(h_(i)),se=p_({start:ye,end:fe});return x.jsx("div",{className:"grid grid-cols-7 gap-2",children:se.map((oe,z)=>{const Y=Ky(oe,l),Z=hI(oe,i),_=mI(oe),k=r?oe>r:!1;return x.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
|
-
${!
|
|
670
|
-
${_&&!
|
|
671
|
-
`,onClick:()=>C(
|
|
669
|
+
${!Z||k?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
|
+
${_&&!Y?"text-blue-600":""}
|
|
671
|
+
`,onClick:()=>C(oe),initial:!1,animate:{backgroundColor:Y?"#93C5FD":"transparent",color:Y?"#FFFFFF":_?"#2563EB":Z&&!k?"#000000":"#9CA3AF"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:Z&&!Y&&!k?{backgroundColor:"#E5E7EB"}:{},whileTap:Z&&!k?{backgroundColor:Y?"#7AA5E0":"#D1D5DB"}:{},children:Yn(oe,"d")},z)})})},re=()=>{const ye=Array.from({length:12},(se,oe)=>oe+1),fe=()=>x.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:ye.map(se=>x.jsxs("button",{onClick:()=>L(se),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${se===u?"text-blue-500 font-medium":""}`,children:[String(se).padStart(2,"0"),":00"]},se))});return x.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[x.jsx("h4",{className:"text-body-m font-medium",children:S("time")}),x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(Oo,{open:b,onClose:()=>P(!1),component:fe,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:x.jsx($6,{setHourMenuOpen:P,hourMenuOpen:b,selectedHour:u})}),x.jsx(D6,{selectedPeriod:h,handlePeriodChange:V})]})]})},ve={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 x.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[q(),x.jsx(xr,{initial:!1,mode:"popLayout",children:x.jsx(Ze.div,{variants:ve,initial:g===1?"slideNextEnter":g===-1?"slidePrevEnter":!1,animate:"center",exit:g===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ee()},Yn(i,"yyyy-MM"))}),n&&re()]})},jx=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:l="",disabled:c=!1,disabledInput:u=!1,leftSide:d,rightSide:h,...m})=>{const{t:g}=ze();return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${l}`,htmlFor:r,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${c&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:r,className:`
|
|
672
672
|
flex items-center justify-between gap-8 p-16
|
|
673
673
|
|
|
674
674
|
${i&&"!border-red-500"}
|
|
@@ -693,10 +693,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
693
693
|
${u}
|
|
694
694
|
`,onError:O,...d}),x.jsx("div",{className:`
|
|
695
695
|
flex items-center justify-center leading-none text-center absolute
|
|
696
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})};function Hx(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=Hx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hx(e))&&(r&&(r+=" "),r+=t);return r}const qx={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"},Kx={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"},Xx={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"},Zx={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"},eN="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",tN={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"},nN=(e="filled",t="blue",n="base")=>{const r=Zn(eN,tN[n]),i={blue:qx[e],aqua:Kx[e],red:Xx[e],gray:Zx[e]}[t];return Zn(r,i)},rN="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",iN={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]"},sN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},oN=(e="filled",t="blue",n="base",r="none")=>{const i=Zn(rN,iN[n],sN[r]),o={blue:qx[e],aqua:Kx[e],red:Xx[e],gray:Zx[e]}[t];return Zn(i,o)},aN={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]"},Mo=(e="base")=>aN[e],_o=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:l,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return x.jsxs("button",{type:"button",className:nN(r,d,i)+" "+l,...c,children:[e&&x.jsx(De,{icon:e,className:Mo(i)}),o,t&&x.jsx(De,{icon:t,className:Mo(i)})]})},Jx=({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}`}),Qx=({open:e,onClose:t,title:n,children:r})=>{const i={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return x.jsx(xr,{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:i,onClick:t,children:x.jsx(Ze.div,{className:"w-full max-w-lg mx-16 z-50",variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:l=>l.stopPropagation(),children:x.jsxs(is,{className:"flex flex-col gap-16 md:gap-24 p-0!",children:[x.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 md: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(De,{icon:Kc,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&x.jsx(Jx,{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})]})})})})})},lN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const l={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:`transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?l:"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?l:""}`,style:u(i*.7)})})};var zd,ew;function cN(){if(ew)return zd;ew=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*$/,l=512,c=new e(l),u=new e(l),d=new e(l);zd={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,V=A.length,F=D;L<V-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,V=O.length;L<V;)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,V,F;for(L=0;L<D;L++)C=w[L],C&&(P(C)&&(C='"'+C+'"'),F=y(C),V=!F&&/^\d+$/.test(C),A.call(O,C,F,V,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 b(w){return i.test(w)}function P(w){return!y(w)&&(S(w)||b(w))}return zd}var si=cN(),Gd,tw;function uN(){if(tw)return Gd;tw=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 Gd={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(" ")},Gd}var Yd=uN(),al={exports:{}},nw;function fN(){if(nw)return al.exports;nw=1,al.exports=function(i){return e(t(i),i)},al.exports.array=e;function e(i,o){var l=i.length,c=new Array(l),u={},d=l,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,b){if(b.has(y)){var P;try{P=", node was:"+JSON.stringify(y)}catch{P=""}throw new Error("Cyclic dependency"+P)}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){b.add(y);do{var A=w[--S];g(A,m.get(A),b)}while(S);b.delete(y)}c[--l]=y}}}function t(i){for(var o=new Set,l=0,c=i.length;l<c;l++){var u=i[l];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,l=0,c=i.length;l<c;l++){var u=i[l];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,l=0,c=i.length;l<c;l++)o.set(i[l],l);return o}return al.exports}var dN=fN();const hN=vm(dN),mN=Object.prototype.toString,pN=Error.prototype.toString,gN=RegExp.prototype.toString,yN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",vN=/^Symbol\((.*)\)(.*)$/;function bN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function rw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return bN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return yN.call(e).replace(vN,"Symbol($1)");const r=mN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+pN.call(e)+"]":r==="RegExp"?gN.call(e):null}function Mr(e,t){let n=rw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=rw(this[r],t);return o!==null?o:i},2)}function iw(e){return e==null?[]:[].concat(e)}let sw,ow,aw,xN=/\$\{\s*(\w+)\s*\}/g;sw=Symbol.toStringTag;class lw{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[sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],iw(t).forEach(o=>{if(Lt.isError(o)){this.errors.push(...o.errors);const l=o.inner.length?o.inner:[o];this.inner.push(...l)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}ow=Symbol.hasInstance,aw=Symbol.toStringTag;class Lt 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(xN,(i,o)=>Mr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const l=new lw(t,n,r,i);if(o)return l;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[aw]="Error",this.name=l.name,this.message=l.message,this.type=l.type,this.value=l.value,this.path=l.path,this.errors=l.errors,this.inner=l.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Lt)}static[ow](t){return lw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Ln={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 \`${Mr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Mr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Mr(n,!0)}\``+i}},kt={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"},wN={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"},Hd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},SN={isValue:"${path} field must be ${value}"},ll={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Ln,string:kt,number:wN,date:Hd,object:ll,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:SN,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: \`${Mr(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: \`${Mr(n,!0)}\``}return Lt.formatError(Ln.notType,e)}}});const qd=e=>e&&e.__isYupSchema__;class cl{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,l=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new cl(t,(c,u)=>{var d;let h=l(...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(!qd(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const ul={context:"$",value:"."};class oi{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]===ul.context,this.isValue=this.key[0]===ul.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ul.context:this.isValue?ul.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&si.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}}oi.prototype.__isYupRef=!0;const ai=e=>e==null;function ss(e){function t({value:n,path:r="",options:i,originalValue:o,schema:l},c,u){const{name:d,test:h,params:m,message:g,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:P=l.spec.abortEarly,disableStackTrace:w=l.spec.disableStackTrace}=i;function A(ie){return oi.isRef(ie)?ie.getValue(n,S,b):ie}function O(ie={}){const ve=Object.assign({value:n,originalValue:o,label:l.spec.label,path:ie.path||r,spec:l.spec,disableStackTrace:ie.disableStackTrace||w},m,ie.params);for(const fe of Object.keys(ve))ve[fe]=A(ve[fe]);const ye=new Lt(Lt.formatError(ie.message||g,ve),n,ve.path,ie.type||d,ve.disableStackTrace);return ye.params=ve,ye}const D=P?c:u;let C={path:r,parent:S,type:d,from:i.from,createError:O,resolve:A,options:i,originalValue:o,schema:l};const L=ie=>{Lt.isError(ie)?D(ie):ie?u(null):D(O())},V=ie=>{Lt.isError(ie)?D(ie):c(ie)};if(y&&ai(n))return L(!0);let Y;try{var te;if(Y=h.call(C,n,C),typeof((te=Y)==null?void 0:te.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,V)}}catch(ie){V(ie);return}L(Y)}return t.OPTIONS=e,t}function TN(e,t,n,r=n){let i,o,l;return t?(si.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 "${l}" must contain an index to the tuple element, e.g. "${l}[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: ${l} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,l=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class fl extends Set{describe(){const t=[];for(const n of this.values())t.push(oi.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 fl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function os(e,t=new Map){if(qd(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]=os(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,os(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(os(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=os(i,t)}else throw Error(`Unable to clone ${e}`);return n}class kn{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 fl,this._blacklist=new fl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ln.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=os(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(l=>{o.test(l.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&&ai(o))return o;let l=Mr(t),c=Mr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
696
|
+
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})};function Hx(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=Hx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Hx(e))&&(r&&(r+=" "),r+=t);return r}const qx={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"},Kx={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"},Xx={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"},Zx={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"},eN="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",tN={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"},nN=(e="filled",t="blue",n="base")=>{const r=Zn(eN,tN[n]),i={blue:qx[e],aqua:Kx[e],red:Xx[e],gray:Zx[e]}[t];return Zn(r,i)},rN="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",iN={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]"},sN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},oN=(e="filled",t="blue",n="base",r="none")=>{const i=Zn(rN,iN[n],sN[r]),o={blue:qx[e],aqua:Kx[e],red:Xx[e],gray:Zx[e]}[t];return Zn(i,o)},aN={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]"},Mo=(e="base")=>aN[e],_o=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:l,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return x.jsxs("button",{type:"button",className:nN(r,d,i)+" "+l,...c,children:[e&&x.jsx(De,{icon:e,className:Mo(i)}),o,t&&x.jsx(De,{icon:t,className:Mo(i)})]})},Jx=({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}`}),Qx=({open:e,onClose:t,title:n,children:r})=>{const i={hidden:{opacity:0},visible:{opacity:1}},o={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return x.jsx(xr,{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:i,onClick:t,children:x.jsx(Ze.div,{className:"w-full max-w-lg mx-16 z-50",variants:o,initial:"hidden",animate:"visible",exit:"exit",onClick:l=>l.stopPropagation(),children:x.jsxs(is,{className:"flex flex-col gap-16 md:gap-24 p-0!",children:[x.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 md: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(De,{icon:Kc,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&x.jsx(Jx,{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})]})})})})})},lN=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const l={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?l:"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?l:""}`,style:u(i*.7)})})};var zd,ew;function cN(){if(ew)return zd;ew=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*$/,l=512,c=new e(l),u=new e(l),d=new e(l);zd={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,V=A.length,F=D;L<V-1;){var q=A[L];if(q==="__proto__"||q==="constructor"||q==="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,V=O.length;L<V;)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,V,F;for(L=0;L<D;L++)C=w[L],C&&(P(C)&&(C='"'+C+'"'),F=y(C),V=!F&&/^\d+$/.test(C),A.call(O,C,F,V,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 b(w){return i.test(w)}function P(w){return!y(w)&&(S(w)||b(w))}return zd}var si=cN(),Gd,tw;function uN(){if(tw)return Gd;tw=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 Gd={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(" ")},Gd}var Yd=uN(),al={exports:{}},nw;function fN(){if(nw)return al.exports;nw=1,al.exports=function(i){return e(t(i),i)},al.exports.array=e;function e(i,o){var l=i.length,c=new Array(l),u={},d=l,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,b){if(b.has(y)){var P;try{P=", node was:"+JSON.stringify(y)}catch{P=""}throw new Error("Cyclic dependency"+P)}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){b.add(y);do{var A=w[--S];g(A,m.get(A),b)}while(S);b.delete(y)}c[--l]=y}}}function t(i){for(var o=new Set,l=0,c=i.length;l<c;l++){var u=i[l];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,l=0,c=i.length;l<c;l++){var u=i[l];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,l=0,c=i.length;l<c;l++)o.set(i[l],l);return o}return al.exports}var dN=fN();const hN=vm(dN),mN=Object.prototype.toString,pN=Error.prototype.toString,gN=RegExp.prototype.toString,yN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",vN=/^Symbol\((.*)\)(.*)$/;function bN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function rw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return bN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return yN.call(e).replace(vN,"Symbol($1)");const r=mN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+pN.call(e)+"]":r==="RegExp"?gN.call(e):null}function Mr(e,t){let n=rw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=rw(this[r],t);return o!==null?o:i},2)}function iw(e){return e==null?[]:[].concat(e)}let sw,ow,aw,xN=/\$\{\s*(\w+)\s*\}/g;sw=Symbol.toStringTag;class lw{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[sw]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],iw(t).forEach(o=>{if(Lt.isError(o)){this.errors.push(...o.errors);const l=o.inner.length?o.inner:[o];this.inner.push(...l)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}ow=Symbol.hasInstance,aw=Symbol.toStringTag;class Lt 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(xN,(i,o)=>Mr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const l=new lw(t,n,r,i);if(o)return l;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[aw]="Error",this.name=l.name,this.message=l.message,this.type=l.type,this.value=l.value,this.path=l.path,this.errors=l.errors,this.inner=l.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Lt)}static[ow](t){return lw[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Ln={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 \`${Mr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Mr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Mr(n,!0)}\``+i}},kt={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"},wN={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"},Hd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},SN={isValue:"${path} field must be ${value}"},ll={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Ln,string:kt,number:wN,date:Hd,object:ll,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:SN,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: \`${Mr(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: \`${Mr(n,!0)}\``}return Lt.formatError(Ln.notType,e)}}});const qd=e=>e&&e.__isYupSchema__;class cl{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,l=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new cl(t,(c,u)=>{var d;let h=l(...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(!qd(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const ul={context:"$",value:"."};class oi{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]===ul.context,this.isValue=this.key[0]===ul.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ul.context:this.isValue?ul.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&si.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}}oi.prototype.__isYupRef=!0;const ai=e=>e==null;function ss(e){function t({value:n,path:r="",options:i,originalValue:o,schema:l},c,u){const{name:d,test:h,params:m,message:g,skipAbsent:y}=e;let{parent:S,context:b,abortEarly:P=l.spec.abortEarly,disableStackTrace:w=l.spec.disableStackTrace}=i;function A(re){return oi.isRef(re)?re.getValue(n,S,b):re}function O(re={}){const ve=Object.assign({value:n,originalValue:o,label:l.spec.label,path:re.path||r,spec:l.spec,disableStackTrace:re.disableStackTrace||w},m,re.params);for(const fe of Object.keys(ve))ve[fe]=A(ve[fe]);const ye=new Lt(Lt.formatError(re.message||g,ve),n,ve.path,re.type||d,ve.disableStackTrace);return ye.params=ve,ye}const D=P?c:u;let C={path:r,parent:S,type:d,from:i.from,createError:O,resolve:A,options:i,originalValue:o,schema:l};const L=re=>{Lt.isError(re)?D(re):re?u(null):D(O())},V=re=>{Lt.isError(re)?D(re):c(re)};if(y&&ai(n))return L(!0);let q;try{var ee;if(q=h.call(C,n,C),typeof((ee=q)==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(q).then(L,V)}}catch(re){V(re);return}L(q)}return t.OPTIONS=e,t}function TN(e,t,n,r=n){let i,o,l;return t?(si.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 "${l}" must contain an index to the tuple element, e.g. "${l}[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: ${l} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,l=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class fl extends Set{describe(){const t=[];for(const n of this.values())t.push(oi.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 fl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function os(e,t=new Map){if(qd(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]=os(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,os(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(os(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=os(i,t)}else throw Error(`Unable to clone ${e}`);return n}class kn{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 fl,this._blacklist=new fl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ln.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=os(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(l=>{o.test(l.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&&ai(o))return o;let l=Mr(t),c=Mr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
697
697
|
|
|
698
698
|
attempted value: ${l}
|
|
699
|
-
`+(c!==l?`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:l=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:l,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:l,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:l,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,l))},m=b=>{i||(i=!0,r(b,l))},g=o.length,y=[];if(!g)return m([]);let S={value:l,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const P=o[b];P(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:l}){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({},l,{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((l,c)=>i._validate(t,n,(u,d)=>{Lt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Lt(u,d,void 0,void 0,o)):l(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,l=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Lt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Lt(c,t,void 0,void 0,l);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Lt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Lt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):os(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=ss({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=ss({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Ln.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ln.notNull){return this.nullability(!1,t)}required(t=Ln.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=Ln.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ss(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(l=>!(l.OPTIONS.name===n.name&&(o||l.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=iw(t).map(o=>new oi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new cl(i,n):cl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ss({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=Ln.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ss({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,l=o.resolveAll(this.resolve);return l.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:l}})}}),r}notOneOf(t,n=Ln.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ss({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,l=o.resolveAll(this.resolve);return l.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:l}}):!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:l}=n.spec;return{meta:i,label:r,optional:o,nullable:l,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)}}}kn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])kn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:l}=TN(this,t,n,r.context);return l[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])kn.prototype[e]=kn.prototype.oneOf;for(const e of["not","nope"])kn.prototype[e]=kn.prototype.notOneOf;const EN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function CN(e){const t=Kd(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 Kd(e){var t,n;const r=EN.exec(e);return r?{year:Jn(r[1]),month:Jn(r[2],1)-1,day:Jn(r[3],1),hour:Jn(r[4]),minute:Jn(r[5]),second:Jn(r[6]),millisecond:r[7]?Jn(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:Jn(r[10]),minuteOffset:Jn(r[11])}:null}function Jn(e,t=0){return Number(e)||t}let PN=/^[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])?)*$/,AN=/^((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,ON=/^(?:[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,MN="^\\d{4}-\\d{2}-\\d{2}",_N="\\d{2}:\\d{2}:\\d{2}",IN="(([+-]\\d{2}(:?\\d{2})?)|Z)",DN=new RegExp(`${MN}T${_N}(\\.\\d+)?${IN}$`),$N=e=>ai(e)||e===e.trim(),RN={}.toString();function _r(){return new cw}class cw extends kn{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||Ln.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=kt.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=kt.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=kt.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||kt.matches,params:{regex:t},skipAbsent:!0,test:l=>l===""&&r||l.search(t)!==-1})}email(t=kt.email){return this.matches(PN,{name:"email",message:t,excludeEmptyString:!0})}url(t=kt.url){return this.matches(AN,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=kt.uuid){return this.matches(ON,{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(DN,{name:"datetime",message:n||kt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||kt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const l=Kd(o);return l?!!l.z:!1}}).test({name:"datetime_precision",message:n||kt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const l=Kd(o);return l?l.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=kt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:$N})}lowercase(t=kt.lowercase){return this.transform(n=>ai(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ai(n)||n===n.toLowerCase()})}uppercase(t=kt.uppercase){return this.transform(n=>ai(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ai(n)||n===n.toUpperCase()})}}_r.prototype=cw.prototype;let NN=new Date(""),LN=e=>Object.prototype.toString.call(e)==="[object Date]";class Xd extends kn{constructor(){super({type:"date",check(t){return LN(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=CN(t),isNaN(t)?Xd.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(oi.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=Hd.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=Hd.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)}})}}Xd.INVALID_DATE=NN;function kN(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([l,c])=>`${l}-${c}`));function o(l,c){let u=si.split(l)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const l of Object.keys(e)){let c=e[l];r.add(l),oi.isRef(c)&&c.isSibling?o(c.path,l):qd(c)&&"deps"in c&&c.deps.forEach(u=>o(u,l))}return hN.array(Array.from(r),n).reverse()}function uw(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 fw(e){return(t,n)=>uw(e,t)-uw(e,n)}const FN=(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 dl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=dl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=dl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(dl)}):"optional"in e?e.optional():e}const jN=(e,t)=>{const n=[...si.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=si.getter(si.join(n),!0)(e);return!!(i&&r in i)};let dw=e=>Object.prototype.toString.call(e)==="[object Object]";function hw(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const VN=fw([]);function Zd(e){return new mw(e)}class mw extends kn{constructor(t){super({type:"object",check(n){return dw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=VN,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,l=(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,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:b,context:n.context,parent:u});let P=g instanceof kn?g.spec:void 0,w=P==null?void 0:P.strict;if(P!=null&&P.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&&!l&&(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:l=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:l},...o],n.__validating=!0,n.originalValue=l,super._validate(t,n,r,(u,d)=>{if(!c||!dw(d)){i(u,d);return}l=l||d;let h=[];for(let m of this._nodes){let g=this.fields[m];!g||oi.isRef(g)||h.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:l}))}this.runTests({tests:h,value:d,originalValue:l,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 l=r[i];r[i]=l===void 0?o:l}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 l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(l):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=kN(t,n),r._sortErrors=fw(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 dl(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=si.getter(t,!0);return this.transform(o=>{if(!o)return o;let l=o;return jN(o,t)&&(l=Object.assign({},o),r||delete l[t],l[n]=i(o)),l})}json(){return this.transform(FN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ll.exact,test(n){if(n==null)return!0;const r=hw(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ll.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=hw(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ll.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(Yd.camelCase)}snakeCase(){return this.transformKeys(Yd.snakeCase)}constantCase(){return this.transformKeys(t=>Yd.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,l]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]=l.describe(c)}return r}}Zd.prototype=mw.prototype,Zd().shape({labelES:_r().required(),label:_r().required(),code:_r().required(),codeISO2:_r().required(),phone:_r().required()});const pw=[{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"}],BN=({countries:e=pw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:l="",translateKey:c})=>{var Ce,Ue,ee;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,g]=I.useState(!1),[y,S]=I.useState(""),[b,P]=I.useState(d.value||null),w=I.useRef(null),A=I.useRef(null),O=I.useRef(null),{x:D,y:C,strategy:L,refs:V,context:F,placement:Y,middlewareData:te}=Co({open:m,onOpenChange:g,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:pe,elements:Le}){Object.assign(Le.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),il({element:A})],placement:"bottom-start",whileElementsMounted:bo}),ie=To(F),ve=Eo(F),{getReferenceProps:ye,getFloatingProps:fe}=Po([ie,ve]),{isMounted:oe,styles:X}=Ao(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),H=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const Le=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return Le.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),J=pe=>{P(pe),g(!1),S(""),d.onChange(pe)},_=()=>{g(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{P(d.value)},[d.value]),I.useEffect(()=>{const pe=Le=>{O.current&&!O.current.contains(Le.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const Z=pe=>{var Le;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((Le=pe.code)==null?void 0:Le.toLowerCase())||"":""},Q=(Ce=te.arrow)==null?void 0:Ce.x,le=(Ue=te.arrow)==null?void 0:Ue.y,G={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],se=ye({onClick:_,onBlur:k}),de=u(r),re=u(i),me=(ee=h.error)==null?void 0:ee.message;return x.jsxs("div",{ref:O,className:`w-full relative flex flex-col gap-8 ${l}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${me&&"!text-red-500"} text-label`,children:de}),x.jsxs("div",{ref:V.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${me&&"border-red-500 hover:border-red-600"} ${oe?"border-blue-400":"border-blue-100"}`,...se,tabIndex:0,children:[b!=null&&b.code?x.jsxs("div",{className:"flex items-center w-full",children:[Z(b)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Z(b)}.png`,srcSet:`https://flagcdn.com/w40/${Z(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-500",children:re}),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"})})]}),me&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(me,{x:u(c||"")||u(t)})}),oe&&x.jsxs("div",{ref:V.setFloating,style:{position:L,top:C??0,left:D??0,...X},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...fe(),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:le!=null?`${le}px`:"",right:"",bottom:"",[G]:"-2px",borderRight:G==="left"?"1px solid":"none",borderBottom:G==="top"?"1px solid":"none",borderLeft:G==="right"?"1px solid":"none",borderTop:G==="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",placeholder:u("search")+"...",value:y,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:H.length>0?x.jsx("ul",{className:"flex flex-col",children:H.map((pe,Le)=>{var li;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((li=pe.code)==null?void 0:li.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(),J(pe)},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:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${Le}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:u("no_countries_found")})})]})]})},UN=({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})]})},WN=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:l=""})=>{const{t:c}=ze();return x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>x.jsx(zN,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:l})})},zN=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:l,className:c=""})=>{var Q,le;const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C,placement:L,middlewareData:V}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:G,elements:se}){Object.assign(se.floating.style,{maxHeight:`${Math.min(G-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),F=To(C),Y=Eo(C),{getReferenceProps:te,getFloatingProps:ie}=Po([F,Y]),{isMounted:ve,styles:ye}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(e)?e:[]).filter(G=>{if(!m.trim())return!0;const se=o==="es"&&G.labelES?G.labelES.toLowerCase():G.label.toLowerCase(),de=G.code?G.code.toLowerCase():"";return se.includes(m.toLowerCase())||de.includes(m.toLowerCase())}),X=G=>{S(G),h(!1),g(""),n(G)},K=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var G;(G=b.current)==null||G.focus()},100)};I.useEffect(()=>{S(t)},[t]);const H=G=>{var se;return G?G.codeISO2?G.codeISO2.toLowerCase():((se=G.code)==null?void 0:se.toLowerCase())||"":""},J=(Q=V.arrow)==null?void 0:Q.x,_=(le=V.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[L.split("-")[0]],Z=te({onClick:K});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 ${l&&"!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 ${l&&"border-red-500 hover:border-red-600"} ${ve?"border-blue-400":"border-blue-100"}`,...Z,children:[y!=null&&y.code?x.jsxs("div",{className:"flex items-center w-full",children:[H(y)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${H(y)}.png`,srcSet:`https://flagcdn.com/w40/${H(y)}.png 2x`,alt:y.label,onError:G=>{G.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"})})]}),l&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:l}),ve&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ie(),children:[x.jsx("div",{ref:P,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:J!=null?`${J}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:G=>g(G.target.value),onClick:G=>G.stopPropagation(),autoFocus:!0})}),x.jsx("div",{children:oe.length>0?x.jsx("ul",{className:"flex flex-col",children:oe.map((G,se)=>{var re;const de=G.codeISO2?G.codeISO2.toLowerCase():((re=G.code)==null?void 0:re.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:me=>{me.stopPropagation(),X(G)},children:[de&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${de}.png`,srcSet:`https://flagcdn.com/w40/${de}.png 2x`,alt:G.label,onError:me=>{me.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&G.labelES?G.labelES:G.label,G.code?` (${G.code})`:"Country not found"]})]},`${G.code}-${se}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},Jd=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:l,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return x.jsx("button",{...u,className:`${oN(e,h,n,r)} ${c}`,children:i?x.jsx(De,{...o,className:Mo(n),icon:i}):l})};function GN(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 YN=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:l,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),g=I.useRef(null),y=cr.useController({name:o,control:l}),S=!!l;I.useEffect(()=>{if(S){const A=y==null?void 0:y.field.value;if(GN(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 b=()=>{var A;n&&((A=g.current)==null||A.click())},P=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:b,children:[u?x.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):x.jsx(Yx,{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:P,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(De,{icon:CR,className:"text-blue-500"})})]})]})]})},HN=Zd({name:_r(),base64:_r()}),qN=({index:e,label:t,active:n,completed:r})=>x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx("div",{className:`
|
|
699
|
+
`+(c!==l?`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:l=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:l,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:l,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:l,originalValue:c,path:u,options:d}=t,h=b=>{i||(i=!0,n(b,l))},m=b=>{i||(i=!0,r(b,l))},g=o.length,y=[];if(!g)return m([]);let S={value:l,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const P=o[b];P(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:l}){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({},l,{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((l,c)=>i._validate(t,n,(u,d)=>{Lt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Lt(u,d,void 0,void 0,o)):l(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,l=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Lt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Lt(c,t,void 0,void 0,l);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Lt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Lt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):os(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=ss({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=ss({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Ln.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ln.notNull){return this.nullability(!1,t)}required(t=Ln.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=Ln.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ss(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(l=>!(l.OPTIONS.name===n.name&&(o||l.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=iw(t).map(o=>new oi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new cl(i,n):cl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ss({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=Ln.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ss({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,l=o.resolveAll(this.resolve);return l.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:l}})}}),r}notOneOf(t,n=Ln.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ss({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,l=o.resolveAll(this.resolve);return l.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:l}}):!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:l}=n.spec;return{meta:i,label:r,optional:o,nullable:l,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)}}}kn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])kn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:l}=TN(this,t,n,r.context);return l[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])kn.prototype[e]=kn.prototype.oneOf;for(const e of["not","nope"])kn.prototype[e]=kn.prototype.notOneOf;const EN=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function CN(e){const t=Kd(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 Kd(e){var t,n;const r=EN.exec(e);return r?{year:Jn(r[1]),month:Jn(r[2],1)-1,day:Jn(r[3],1),hour:Jn(r[4]),minute:Jn(r[5]),second:Jn(r[6]),millisecond:r[7]?Jn(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:Jn(r[10]),minuteOffset:Jn(r[11])}:null}function Jn(e,t=0){return Number(e)||t}let PN=/^[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])?)*$/,AN=/^((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,ON=/^(?:[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,MN="^\\d{4}-\\d{2}-\\d{2}",_N="\\d{2}:\\d{2}:\\d{2}",IN="(([+-]\\d{2}(:?\\d{2})?)|Z)",DN=new RegExp(`${MN}T${_N}(\\.\\d+)?${IN}$`),$N=e=>ai(e)||e===e.trim(),RN={}.toString();function _r(){return new cw}class cw extends kn{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||Ln.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=kt.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=kt.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=kt.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||kt.matches,params:{regex:t},skipAbsent:!0,test:l=>l===""&&r||l.search(t)!==-1})}email(t=kt.email){return this.matches(PN,{name:"email",message:t,excludeEmptyString:!0})}url(t=kt.url){return this.matches(AN,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=kt.uuid){return this.matches(ON,{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(DN,{name:"datetime",message:n||kt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||kt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const l=Kd(o);return l?!!l.z:!1}}).test({name:"datetime_precision",message:n||kt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const l=Kd(o);return l?l.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=kt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:$N})}lowercase(t=kt.lowercase){return this.transform(n=>ai(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ai(n)||n===n.toLowerCase()})}uppercase(t=kt.uppercase){return this.transform(n=>ai(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ai(n)||n===n.toUpperCase()})}}_r.prototype=cw.prototype;let NN=new Date(""),LN=e=>Object.prototype.toString.call(e)==="[object Date]";class Xd extends kn{constructor(){super({type:"date",check(t){return LN(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=CN(t),isNaN(t)?Xd.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(oi.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=Hd.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=Hd.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)}})}}Xd.INVALID_DATE=NN;function kN(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([l,c])=>`${l}-${c}`));function o(l,c){let u=si.split(l)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const l of Object.keys(e)){let c=e[l];r.add(l),oi.isRef(c)&&c.isSibling?o(c.path,l):qd(c)&&"deps"in c&&c.deps.forEach(u=>o(u,l))}return hN.array(Array.from(r),n).reverse()}function uw(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 fw(e){return(t,n)=>uw(e,t)-uw(e,n)}const FN=(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 dl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=dl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=dl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(dl)}):"optional"in e?e.optional():e}const jN=(e,t)=>{const n=[...si.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=si.getter(si.join(n),!0)(e);return!!(i&&r in i)};let dw=e=>Object.prototype.toString.call(e)==="[object Object]";function hw(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const VN=fw([]);function Zd(e){return new mw(e)}class mw extends kn{constructor(t){super({type:"object",check(n){return dw(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=VN,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,l=(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,b=i[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:b,context:n.context,parent:u});let P=g instanceof kn?g.spec:void 0,w=P==null?void 0:P.strict;if(P!=null&&P.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&&!l&&(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:l=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:l},...o],n.__validating=!0,n.originalValue=l,super._validate(t,n,r,(u,d)=>{if(!c||!dw(d)){i(u,d);return}l=l||d;let h=[];for(let m of this._nodes){let g=this.fields[m];!g||oi.isRef(g)||h.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:l}))}this.runTests({tests:h,value:d,originalValue:l,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 l=r[i];r[i]=l===void 0?o:l}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 l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(l):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=kN(t,n),r._sortErrors=fw(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 dl(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=si.getter(t,!0);return this.transform(o=>{if(!o)return o;let l=o;return jN(o,t)&&(l=Object.assign({},o),r||delete l[t],l[n]=i(o)),l})}json(){return this.transform(FN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ll.exact,test(n){if(n==null)return!0;const r=hw(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ll.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=hw(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ll.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(Yd.camelCase)}snakeCase(){return this.transformKeys(Yd.snakeCase)}constantCase(){return this.transformKeys(t=>Yd.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,l]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]=l.describe(c)}return r}}Zd.prototype=mw.prototype,Zd().shape({labelES:_r().required(),label:_r().required(),code:_r().required(),codeISO2:_r().required(),phone:_r().required()});const pw=[{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"}],BN=({countries:e=pw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:l="",translateKey:c})=>{var Ce,Ue,Q;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,g]=I.useState(!1),[y,S]=I.useState(""),[b,P]=I.useState(d.value||null),w=I.useRef(null),A=I.useRef(null),O=I.useRef(null),{x:D,y:C,strategy:L,refs:V,context:F,placement:q,middlewareData:ee}=Co({open:m,onOpenChange:g,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:pe,elements:Le}){Object.assign(Le.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),il({element:A})],placement:"bottom-start",whileElementsMounted:bo}),re=To(F),ve=Eo(F),{getReferenceProps:ye,getFloatingProps:fe}=Po([re,ve]),{isMounted:se,styles:oe}=Ao(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(Array.isArray(e)?e:[]).filter(pe=>{if(!y.trim())return!0;const Le=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return Le.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),Z=pe=>{P(pe),g(!1),S(""),d.onChange(pe)},_=()=>{g(!m),!m&&w.current&&setTimeout(()=>{var pe;(pe=w.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{P(d.value)},[d.value]),I.useEffect(()=>{const pe=Le=>{O.current&&!O.current.contains(Le.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const X=pe=>{var Le;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((Le=pe.code)==null?void 0:Le.toLowerCase())||"":""},J=(Ce=ee.arrow)==null?void 0:Ce.x,le=(Ue=ee.arrow)==null?void 0:Ue.y,H={top:"bottom",right:"left",bottom:"top",left:"right"}[q.split("-")[0]],ie=ye({onClick:_,onBlur:k}),de=u(r),ne=u(i),me=(Q=h.error)==null?void 0:Q.message;return x.jsxs("div",{ref:O,className:`w-full relative flex flex-col gap-8 ${l}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${me&&"!text-red-500"} text-label`,children:de}),x.jsxs("div",{ref:V.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${me&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...ie,tabIndex:0,children:[b!=null&&b.code?x.jsxs("div",{className:"flex items-center w-full gap-10",children:[X(b)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${X(b)}.png`,srcSet:`https://flagcdn.com/w40/${X(b)}.png 2x`,alt:b.label,onError:pe=>{pe.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:ne}),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"})})]}),me&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(me,{x:u(c||"")||u(t)})}),se&&x.jsxs("div",{ref:V.setFloating,style:{position:L,top:C??0,left:D??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...fe(),children:[x.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:J!=null?`${J}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[H]:"-2px",borderRight:H==="left"?"1px solid":"none",borderBottom:H==="top"?"1px solid":"none",borderLeft:H==="right"?"1px solid":"none",borderTop:H==="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:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:Y.length>0?x.jsx("ul",{className:"flex flex-col",children:Y.map((pe,Le)=>{var li;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((li=pe.code)==null?void 0:li.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(),Z(pe)},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:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${Le}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},UN=({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})]})},WN=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:l=""})=>{const{t:c}=ze();return x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>x.jsx(zN,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:l})})},zN=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:l,className:c=""})=>{var J,le;const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C,placement:L,middlewareData:V}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:H,elements:ie}){Object.assign(ie.floating.style,{maxHeight:`${Math.min(H-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),F=To(C),q=Eo(C),{getReferenceProps:ee,getFloatingProps:re}=Po([F,q]),{isMounted:ve,styles:ye}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(Array.isArray(e)?e:[]).filter(H=>{if(!m.trim())return!0;const ie=o==="es"&&H.labelES?H.labelES.toLowerCase():H.label.toLowerCase(),de=H.code?H.code.toLowerCase():"";return ie.includes(m.toLowerCase())||de.includes(m.toLowerCase())}),oe=H=>{S(H),h(!1),g(""),n(H)},z=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var H;(H=b.current)==null||H.focus()},100)};I.useEffect(()=>{S(t)},[t]);const Y=H=>{var ie;return H?H.codeISO2?H.codeISO2.toLowerCase():((ie=H.code)==null?void 0:ie.toLowerCase())||"":""},Z=(J=V.arrow)==null?void 0:J.x,_=(le=V.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[L.split("-")[0]],X=ee({onClick:z});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 ${l&&"!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 ${l&&"border-red-500 hover:border-red-600"} ${ve?"border-blue-400":"border-blue-100"}`,...X,children:[y!=null&&y.code?x.jsxs("div",{className:"flex items-center w-full",children:[Y(y)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Y(y)}.png`,srcSet:`https://flagcdn.com/w40/${Y(y)}.png 2x`,alt:y.label,onError:H=>{H.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"})})]}),l&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:l}),ve&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...ye},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...re(),children:[x.jsx("div",{ref:P,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Z!=null?`${Z}px`:"",top:_!=null?`${_}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:H=>g(H.target.value),onClick:H=>H.stopPropagation(),autoFocus:!0})}),x.jsx("div",{children:se.length>0?x.jsx("ul",{className:"flex flex-col",children:se.map((H,ie)=>{var ne;const de=H.codeISO2?H.codeISO2.toLowerCase():((ne=H.code)==null?void 0:ne.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:me=>{me.stopPropagation(),oe(H)},children:[de&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${de}.png`,srcSet:`https://flagcdn.com/w40/${de}.png 2x`,alt:H.label,onError:me=>{me.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&H.labelES?H.labelES:H.label,H.code?` (${H.code})`:"Country not found"]})]},`${H.code}-${ie}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},Jd=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:l,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return x.jsx("button",{...u,className:`${oN(e,h,n,r)} ${c}`,children:i?x.jsx(De,{...o,className:Mo(n),icon:i}):l})};function GN(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 YN=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:l,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),g=I.useRef(null),y=cr.useController({name:o,control:l}),S=!!l;I.useEffect(()=>{if(S){const A=y==null?void 0:y.field.value;if(GN(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 b=()=>{var A;n&&((A=g.current)==null||A.click())},P=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:b,children:[u?x.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):x.jsx(Yx,{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:P,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(De,{icon:CR,className:"text-blue-500"})})]})]})]})},HN=Zd({name:_r(),base64:_r()}),qN=({index:e,label:t,active:n,completed:r})=>x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx("div",{className:`
|
|
700
700
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
701
701
|
${n&&"border-blue-500! text-blue-500!"}
|
|
702
702
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
@@ -724,9 +724,9 @@ attempted value: ${l}
|
|
|
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:[l&&l,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.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(De,{icon:g?TC:xC,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)})})]})},eL=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:l,countries:c=pw})=>{var ui,pl,Ir,gl;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:e,control:t,rules:{validate:{}}}),m=((ui=d.value)==null?void 0:ui.split(" "))||[],g=m[0]||"",y=m[1]||"",S=c.find(be=>g===be.phone),[b,P]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[V,F]=I.useState(!1),Y=I.useRef(null),te=I.useRef(null),ie=I.useRef(null),ve=I.useRef(null),{x:ye,y:fe,strategy:oe,refs:X,context:K,placement:H,middlewareData:J}=Co({open:b,onOpenChange:P,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:be,elements:Je}){Object.assign(Je.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),il({element:te})],placement:"bottom-start",whileElementsMounted:bo}),_=To(K),k=Eo(K),{getReferenceProps:Z,getFloatingProps:Q}=Po([_,k]),{isMounted:le,styles:G}=Ao(K,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),de=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Je=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",vn=be.phone?be.phone.toLowerCase():"";return Je.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||vn.includes(w.toLowerCase())}),re=be=>{D(be),P(!1),A("");const Je=`${be.phone} ${C}`;d.onChange(Je),setTimeout(()=>{var Pt;(Pt=ie.current)==null||Pt.focus()},100)},me=be=>{const Je=be.target.value;if(L(Je),O){const Pt=`${O.phone} ${Je}`;d.onChange(Pt)}},Ce=()=>{P(!b),!b&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{b||d.onBlur()},200)},ee=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Je=be[0]||"",Pt=be[1]||"",vn=c.find(Qn=>Qn.phone===Je);vn&&D(vn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Je=>{ve.current&&!ve.current.contains(Je.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Le=be=>{var Je;return be?be.codeISO2?be.codeISO2.toLowerCase():((Je=be.code)==null?void 0:Je.toLowerCase())||"":""},ft=(pl=J.arrow)==null?void 0:pl.x,li=(Ir=J.arrow)==null?void 0:Ir.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]],hl=Z({onClick:Ce,onBlur:Ue}),ml=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",ci=u(n),qt=u(r),yn=(gl=h.error)==null?void 0:gl.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 ${yn&&"!text-red-500"} text-label`,children:ci}),x.jsxs("div",{ref:ve,className:"flex items-center w-full",onMouseEnter:ee,onMouseLeave:pe,children:[x.jsxs("div",{ref:X.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 ${yn?"border-red-500":ml()}`,style:{minWidth:"140px"},...hl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Le(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Le(O)}.png`,srcSet:`https://flagcdn.com/w40/${Le(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-500 truncate",children:u("select_country")}),x.jsx(De,{icon:Vd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:ie,type:"tel",className:`flex-grow bg-light rounded-r-full font-600 text-lg p-16 border transition-all duration-200 ${yn?"border-red-500":ml()}`,placeholder:qt,value:C,onChange:me,onBlur:Ue})]}),yn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(l||"")||e})}),le&&x.jsxs("div",{ref:X.setFloating,style:{position:oe,top:fe??0,left:ye??0,...G},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:te,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:li!=null?`${li}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:de.length>0?x.jsx("ul",{className:"flex flex-col",children:de.map((be,Je)=>{var vn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((vn=be.code)==null?void 0:vn.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:Qn=>{Qn.stopPropagation(),re(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:Qn=>{Qn.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Je}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:u("no_countries_found")})})]})]})},tL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},nL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},rL=e=>{switch(e){case"aqua":return nL;case"blue":default:return tL}},iL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),l=n||o,{bgColor:c,fillColor:u}=rL(l),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,"%"]})]})},sL=()=>{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(De,{icon:TR})}),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"}})]})})},oL="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",aL={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"},lL={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"},cL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=lL[n];break;case"blue":default:r=aL[n];break}return Zn(oL,r)},uL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${cL(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:[l&&x.jsx(De,{icon:l,className:Mo()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]})},fL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",dL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},hL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},mL="flex size-24 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",pL={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"},gL={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"},gw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=pL[n];break;case"aqua":default:r=gL[n];break}return Zn(mL,r)},yL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=hL[n];break;case"blue":default:r=dL[n];break}return Zn(fL,r)},vL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${yL(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:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]})},bL=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(uL,{...n}):t==="mobile"?x.jsx(vL,{...n}):null},xL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:l=!0})=>x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(wL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:l})}),wL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:l="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:X,elements:K}){Object.assign(K.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),L=To(C),V=Eo(C),{getReferenceProps:F,getFloatingProps:Y}=Po([L,V]),{isMounted:te,styles:ie}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=(()=>{const X=Array.isArray(e)?e:[];if(!m.trim())return X;const K=m.toLowerCase();return X.filter(H=>{const J=H.label.toLowerCase(),_=H.key.toLowerCase();return J.includes(K)||_.includes(K)})})(),ye=X=>{S(X),h(!1),g(""),n(X)},fe=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var X;return(X=b.current)==null?void 0:X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const oe=F({onClick:fe});return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${l}`,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:[l&&l,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:b=>u(b.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(De,{icon:g?TC:xC,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)})})]})},eL=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:l,countries:c=pw})=>{var ui,pl,Ir,gl;const{t:u}=ze(),{field:d,fieldState:h}=cr.useController({name:e,control:t,rules:{validate:{}}}),m=((ui=d.value)==null?void 0:ui.split(" "))||[],g=m[0]||null,y=m[1]||"",S=c.find(be=>g===be.phone),[b,P]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[V,F]=I.useState(!1),q=I.useRef(null),ee=I.useRef(null),re=I.useRef(null),ve=I.useRef(null),{x:ye,y:fe,strategy:se,refs:oe,context:z,placement:Y,middlewareData:Z}=Co({open:b,onOpenChange:P,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:be,elements:Je}){Object.assign(Je.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),il({element:ee})],placement:"bottom-start",whileElementsMounted:bo}),_=To(z),k=Eo(z),{getReferenceProps:X,getFloatingProps:J}=Po([_,k]),{isMounted:le,styles:H}=Ao(z,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),de=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Je=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",vn=be.phone?be.phone.toLowerCase():"";return Je.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||vn.includes(w.toLowerCase())}),ne=be=>{D(be),P(!1),A("");const Je=`${be.phone} ${C}`;d.onChange(Je),setTimeout(()=>{var Pt;(Pt=re.current)==null||Pt.focus()},100)},me=be=>{const Je=be.target.value;if(L(Je),O){const Pt=`${O.phone} ${Je}`;d.onChange(Pt)}},Ce=()=>{P(!b),!b&&q.current&&setTimeout(()=>{var be;(be=q.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{b||d.onBlur()},200)},Q=()=>{F(!0)},pe=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Je=be[0]||"",Pt=be[1]||"",vn=c.find(Qn=>Qn.phone===Je);vn&&D(vn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Je=>{ve.current&&!ve.current.contains(Je.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Le=be=>{var Je;return be?be.codeISO2?be.codeISO2.toLowerCase():((Je=be.code)==null?void 0:Je.toLowerCase())||"":""},ft=(pl=Z.arrow)==null?void 0:pl.x,li=(Ir=Z.arrow)==null?void 0:Ir.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],hl=X({onClick:Ce,onBlur:Ue}),ml=()=>h.error?"border-red-500":V||b?"border-blue-400":"border-blue-100",ci=u(n),qt=u(r),yn=(gl=h.error)==null?void 0:gl.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 ${yn&&"!text-red-500"} text-label`,children:ci}),x.jsxs("div",{ref:ve,className:"flex items-center w-full",onMouseEnter:Q,onMouseLeave:pe,children:[x.jsxs("div",{ref:oe.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 ${yn?"border-red-500":ml()}`,style:{minWidth:"140px"},...hl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Le(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Le(O)}.png`,srcSet:`https://flagcdn.com/w40/${Le(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(De,{icon:Vd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:re,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 ${yn?"border-red-500":ml()}`,placeholder:qt,value:C,onChange:me,onBlur:Ue})]}),yn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(l||"")||e})}),le&&x.jsxs("div",{ref:oe.setFloating,style:{position:se,top:fe??0,left:ye??0,...H},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...J(),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:li!=null?`${li}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:q,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:de.length>0?x.jsx("ul",{className:"flex flex-col",children:de.map((be,Je)=>{var vn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((vn=be.code)==null?void 0:vn.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:Qn=>{Qn.stopPropagation(),ne(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:Qn=>{Qn.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Je}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},tL={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},nL={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},rL=e=>{switch(e){case"aqua":return nL;case"blue":default:return tL}},iL=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),l=n||o,{bgColor:c,fillColor:u}=rL(l),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,"%"]})]})},sL=()=>{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(De,{icon:TR})}),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"}})]})})},oL="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",aL={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"},lL={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"},cL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=lL[n];break;case"blue":default:r=aL[n];break}return Zn(oL,r)},uL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${cL(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:[l&&x.jsx(De,{icon:l,className:Mo()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx(De,{icon:l,className:Mo()}),e]})},fL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",dL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},hL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},mL="flex size-24 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",pL={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"},gL={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"},gw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=pL[n];break;case"aqua":default:r=gL[n];break}return Zn(mL,r)},yL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=hL[n];break;case"blue":default:r=dL[n];break}return Zn(fL,r)},vL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:l,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${yL(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:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[l&&x.jsx("div",{className:gw(r,d),children:x.jsx(De,{icon:l,className:"size-16 max-h-16 max-w-16"})}),e]})},bL=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(uL,{...n}):t==="mobile"?x.jsx(vL,{...n}):null},xL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:l=!0})=>x.jsx(cr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(wL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:l})}),wL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:l="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),b=I.useRef(null),P=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=Co({open:d,onOpenChange:h,middleware:[xo(8),So(),wo({padding:8}),rl({apply({availableHeight:z,elements:Y}){Object.assign(Y.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),il({element:P})],placement:"bottom-start",whileElementsMounted:bo}),L=To(C),V=Eo(C),{getReferenceProps:F,getFloatingProps:q}=Po([L,V]),{isMounted:ee,styles:re}=Ao(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ve=(()=>{const z=Array.isArray(e)?e:[];if(!m.trim())return z;const Y=m.toLowerCase();return z.filter(Z=>{const _=Z.label.toLowerCase(),k=Z.key.toLowerCase();return _.includes(Y)||k.includes(Y)})})(),ye=z=>{S(z),h(!1),g(""),n(z)},fe=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var z;return(z=b.current)==null?void 0:z.focus()},100)};I.useEffect(()=>{S(t)},[t]);const se=F({onClick:fe}),oe=u(i);return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${l}`,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
|
|
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"} ${ee?"border-blue-400":"border-blue-100"}`,...se,children:[y?x.jsx("div",{className:"flex items-center w-full",children:x.jsx("span",{className:"flex-grow flex-grow font-600 text-body-m",children:u(y.label)})}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:oe}),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"})})]}),o&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),ee&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...re},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...q(),children:[c&&x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:"Search...",value:m,onChange:z=>g(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),x.jsx("div",{className:"",children:ve.length>0?x.jsx("ul",{children:ve.map((z,Y)=>x.jsx("li",{className:"flex items-center justify-between px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:Z=>{Z.stopPropagation(),ye(z)},children:x.jsx("span",{children:u(z.label)})},`${z.key}-${Y}`))}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_options_found")})})]})]})},SL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},TL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},EL=e=>{switch(e){case"aqua":return TL;case"blue":default:return SL}},CL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:l})=>{const{defaultColorScheme:c}=ze(),u=l||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:g}=EL(u);return x.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}`}
|
|
@@ -755,4 +755,4 @@ attempted value: ${l}
|
|
|
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:[l&&l,x.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:A=>m(A.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]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&b(S.message,{x:w||P})})]})},RL=({label:e,value:t,className:n})=>x.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[x.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),x.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),NL=({options:e,onChange:t,value:n,disabled:r,error:i,label:o,placeholder:l})=>{var d;const[c,u]=I.useState(!1);return x.jsx(Oo,{open:c,onClose:()=>u(!1),offset:12,padding:0,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",component:x.jsx("div",{className:"bg-white rounded-lg shadow-lg max-h-[150px] overflow-y-auto flex flex-col py-8",children:e.map(h=>x.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:x.jsxs("div",{className:"flex flex-col gap-8 relative",onClick:()=>u(!c),children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${r&&"text-gray-300"}`,children:o}),x.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?x.jsx("h4",{className:"text-body-m",children:(d=e.find(h=>h.value===n))==null?void 0:d.label}):x.jsx("h4",{className:"text-body-m text-gray-400",children:l}),x.jsx(De,{icon:Vd,className:`text-gray-400 transition-all duration-150 ease-in-out ${c?"rotate-180":""}`})]})]})})},LL=({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})=>{const{t:l}=ze(),[c,u]=I.useState(!1),[d,h]=I.useState(""),m=I.useRef(null),g=i.map(D=>`.${D}`).join(","),y=D=>{const C=[];let L=!1;Array.from(D).forEach(V=>{var
|
|
758
|
+
`,children:[l&&l,x.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:h,onChange:A=>m(A.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]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:(S==null?void 0:S.message)&&b(S.message,{x:w||P})})]})},RL=({label:e,value:t,className:n})=>x.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[x.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),x.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),NL=({options:e,onChange:t,value:n,disabled:r,error:i,label:o,placeholder:l})=>{var d;const[c,u]=I.useState(!1);return x.jsx(Oo,{open:c,onClose:()=>u(!1),offset:12,padding:0,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",component:x.jsx("div",{className:"bg-white rounded-lg shadow-lg max-h-[150px] overflow-y-auto flex flex-col py-8",children:e.map(h=>x.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:x.jsxs("div",{className:"flex flex-col gap-8 relative",onClick:()=>u(!c),children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} text-label ${r&&"text-gray-300"}`,children:o}),x.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?x.jsx("h4",{className:"text-body-m",children:(d=e.find(h=>h.value===n))==null?void 0:d.label}):x.jsx("h4",{className:"text-body-m text-gray-400",children:l}),x.jsx(De,{icon:Vd,className:`text-gray-400 transition-all duration-150 ease-in-out ${c?"rotate-180":""}`})]})]})})},LL=({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})=>{const{t:l}=ze(),[c,u]=I.useState(!1),[d,h]=I.useState(""),m=I.useRef(null),g=i.map(D=>`.${D}`).join(","),y=D=>{const C=[];let L=!1;Array.from(D).forEach(V=>{var q;const F=((q=V.name.split(".").pop())==null?void 0:q.toLowerCase())||"";if(!i.includes(F)){h(`El archivo ${V.name} tiene una extensión no permitida.`),L=!0;return}if(V.size>o*1024){h(`El archivo ${V.name} excede el tamaño máximo de ${o}KB.`),L=!0;return}C.push(V)}),!L&&C.length>0&&(h(""),r(C))},S=()=>{m.current&&m.current.click()},b=D=>{const C=D.target.files;C&&C.length>0&&y(C),D.target.value=""},P=D=>{D.preventDefault(),D.stopPropagation(),u(!0)},w=D=>{D.preventDefault(),D.stopPropagation(),u(!1)},A=D=>{D.preventDefault(),D.stopPropagation(),c||u(!0)},O=D=>{D.preventDefault(),D.stopPropagation(),u(!1);const C=D.dataTransfer.files;C.length>0&&y(C)};return x.jsxs("div",{className:"w-full mx-auto font-sans",children:[x.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 ${c?"border-blue-400 bg-blue-100/50":"border-gray-200 bg-white hover:border-blue-400"}`,onDragEnter:P,onDragLeave:w,onDragOver:A,onDrop:O,onClick:S,children:[x.jsx("div",{className:"flex justify-center translate-y-4",children:x.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),x.jsxs("div",{className:"flex flex-col items-center",children:[x.jsx("h3",{className:"font-600 text-xl text-dark",children:l(e)}),t&&x.jsx("p",{className:"font-400 text-lg text-gray-500",children:l(t)}),x.jsx(vw,{color:"blue",children:l(n)}),x.jsx("input",{type:"file",ref:m,className:"hidden",multiple:!0,accept:g,onChange:b})]})]}),d&&x.jsx("div",{className:"mt-3 text-sm text-red-500",children:d}),x.jsx("div",{className:"mt-10 w-full flex justify-center",children:x.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," formats. Maximus size:"," ",lv(o,"mb")]})})]})},kL="Alejo",FL=({theme:e={},children:t})=>{const n={...Td,...e};return x.jsx(ox.Provider,{value:n,children:t})};ae.ActionButton=vC,ae.AlertModal=ax,ae.AsyncToast=Wy,ae.Avatar=Yx,ae.BoxContainer=is,ae.Button=_o,ae.CalendarSelector=Fx,ae.CenterModal=Qx,ae.Checkbox=lN,ae.CountryDropdown=WN,ae.CountryInput=BN,ae.CountryLabel=UN,ae.DateInput=L6,ae.DialogModal=Ux,ae.Divider=Jx,ae.Dropdown=j6,ae.FileUpload=V6,ae.FloatingMenu=Oo,ae.IconButton=Jd,ae.ImageProfileInput=YN,ae.IndexedStep=qN,ae.InfoCard=KN,ae.InformationDisclaimer=ZN,ae.LoadingSpinner=JN,ae.ModalContainer=q6,ae.Organism=kL,ae.PasswordInput=QN,ae.PhoneInput=eL,ae.ProgressBar=iL,ae.SearchBar=sL,ae.SearchModal=B6,ae.SectionButton=bL,ae.SelectInput=xL,ae.SidebarButton=CL,ae.Stepper=Y6,ae.Tab=yw,ae.Tabs=H6,ae.TextButton=vw,ae.TextInput=$L,ae.TextStaticInput=RL,ae.ThemeProvider=FL,ae.Toast=cf,ae.UncontrolledSelector=NL,ae.UncontrolledTextInput=jx,ae.UploadContainer=LL,ae.capitalizeFirstLetter=av,ae.closeModal=Z6,ae.defaultTheme=Td,ae.formatLocalizedDate=GI,ae.getImageUrl=cv,ae.openCustomModal=X6,ae.openModal=K6,ae.renderTabContent=J6,ae.showToastAsync=Wd,ae.showToastLoading=Gx,ae.stringToColor=uf,ae.toBase64=YI,ae.toast=Q6,ae.translateBytes=lv,ae.useTheme=ze,ae.yupImageProfileValidator=HN,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});
|