lawgic-dev-kit 0.14.0 → 0.14.4

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.
Files changed (50) hide show
  1. package/dist/_virtual/index2.js +2 -3
  2. package/dist/_virtual/index3.js +3 -3
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index5.js +5 -2
  5. package/dist/_virtual/index6.js +2 -2
  6. package/dist/_virtual/index7.js +2 -2
  7. package/dist/components/atoms/ActionButton/ActionButton.d.ts +1 -1
  8. package/dist/components/atoms/Avatar/Avatar.d.ts +1 -1
  9. package/dist/components/atoms/Avatar/Avatar.js +14 -4
  10. package/dist/components/atoms/Checkbox/Checkbox.js +4 -4
  11. package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +3 -9
  12. package/dist/components/atoms/Tooltip/Tooltip.d.ts +4 -0
  13. package/dist/components/atoms/Tooltip/Tooltip.js +121 -0
  14. package/dist/components/atoms/Tooltip/Tooltip.types.d.ts +9 -0
  15. package/dist/components/atoms/Tooltip/index.d.ts +1 -0
  16. package/dist/components/atoms/UploadContainer/UploadContainer.js +3 -2
  17. package/dist/components/atoms/index.d.ts +1 -0
  18. package/dist/components/molecules/AlertModal/AlertModal.js +7 -6
  19. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +3 -2
  20. package/dist/components/molecules/DialogModal/DialogModal.js +3 -2
  21. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +7 -6
  22. package/dist/components/molecules/IndexedStepper/IndexedStepper.js +15 -0
  23. package/dist/components/molecules/InformationContainer/InformationContainer.js +13 -0
  24. package/dist/components/molecules/Tabs/Tabs.js +3 -2
  25. package/dist/components/molecules/UncontrolledDateInput/UncontrolledDateInput.js +96 -0
  26. package/dist/components/molecules/UncontrolledDateInput/index.d.ts +1 -1
  27. package/dist/components/molecules/index.d.ts +15 -10
  28. package/dist/index.js +65 -57
  29. package/dist/lab/Laboratory.d.ts +2 -0
  30. package/dist/lab/LaboratoryLayout.d.ts +4 -0
  31. package/dist/lab/index.lab.d.ts +0 -0
  32. package/dist/lawgic-dev-kit.css +1 -1
  33. package/dist/lawgic-dev-kit.umd.js +56 -56
  34. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +712 -396
  35. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +81 -33
  36. package/dist/node_modules/prop-types/index.js +1 -1
  37. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  38. package/dist/node_modules/toposort/index.js +1 -1
  39. package/dist/node_modules/yup/index.esm.js +3 -3
  40. package/dist/src/components/molecules/UncontrolledDateInput/index.d.ts +1 -0
  41. package/dist/src/components/molecules/index.d.ts +15 -0
  42. package/dist/utils/modal.js +17 -16
  43. package/dist/utils/toast.js +17 -16
  44. package/package.json +4 -3
  45. package/dist/src/components/atoms/PhoneInput/PhoneInput.d.ts +0 -5
  46. package/dist/src/components/atoms/PhoneInput/PhoneInput.types.d.ts +0 -12
  47. package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +0 -4
  48. package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +0 -24
  49. package/dist/src/components/atoms/SelectInput/index.d.ts +0 -1
  50. package/dist/src/components/atoms/index.d.ts +0 -33
@@ -1,4 +1,4 @@
1
- (function(ae,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-hook-form"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","react-dom"],I):(ae=typeof globalThis<"u"?globalThis:ae||self,I(ae.lawgicDevKit={},ae.React,ae.reactHookForm,ae.ReactDOM))})(this,function(ae,I,cr,q2){"use strict";function ym(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ce=ym(I),K2=ym(q2);var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ho={exports:{}},ws={};/**
1
+ (function(ae,I){typeof exports=="object"&&typeof module<"u"?I(exports,require("react"),require("react-hook-form"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-hook-form","react-dom"],I):(ae=typeof globalThis<"u"?globalThis:ae||self,I(ae.lawgicDevKit={},ae.React,ae.reactHookForm,ae.ReactDOM))})(this,function(ae,I,hr,uT){"use strict";function Mm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Z=Mm(I),fT=Mm(uT);var Qo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ea={exports:{}},Rs={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var bm;function X2(){if(bm)return ws;bm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return ws.Fragment=t,ws.jsx=n,ws.jsxs=n,ws}var Ss={};/**
9
+ */var Im;function dT(){if(Im)return Rs;Im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Rs.Fragment=t,Rs.jsx=n,Rs.jsxs=n,Rs}var Ls={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,16 +14,16 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var 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:
17
+ */var Dm;function hT(){return Dm||(Dm=1,process.env.NODE_ENV!=="production"&&function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===ee?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case v:return"Fragment";case w:return"Profiler";case E:return"StrictMode";case C:return"Suspense";case L:return"SuspenseList";case Y:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case S:return"Portal";case O:return(M.displayName||"Context")+".Provider";case A:return(M._context.displayName||"Context")+".Consumer";case D:var N=M.render;return M=M.displayName,M||(M=N.displayName||N.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case j:return N=M.displayName||null,N!==null?N:e(M.type)||"Memo";case F:N=M._payload,M=M._init;try{return e(M(N))}catch{}}return null}function t(M){return""+M}function n(M){try{t(M);var N=!1}catch{N=!0}if(N){N=console;var K=N.error,Q=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return K.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Q),t(M)}}function r(M){if(M===v)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===F)return"<...>";try{var N=e(M);return N?"<"+N+">":"<...>"}catch{return"<...>"}}function i(){var M=te.A;return M===null?null:M.getOwner()}function o(){return Error("react-stack-top-frame")}function a(M){if(me.call(M,"key")){var N=Object.getOwnPropertyDescriptor(M,"key").get;if(N&&N.isReactWarning)return!1}return M.key!==void 0}function c(M,N){function K(){re||(re=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}K.isReactWarning=!0,Object.defineProperty(M,"key",{get:K,configurable:!0})}function u(){var M=e(this.type);return ie[M]||(ie[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function d(M,N,K,Q,ue,X,ce,he){return K=X.ref,M={$$typeof:y,type:M,key:N,props:X,_owner:ue},(K!==void 0?K:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:u}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function h(M,N,K,Q,ue,X,ce,he){var oe=N.children;if(oe!==void 0)if(Q)if(de(oe)){for(Q=0;Q<oe.length;Q++)m(oe[Q]);Object.freeze&&Object.freeze(oe)}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(oe);if(me.call(N,"key")){oe=e(M);var ge=Object.keys(N).filter(function(Ue){return Ue!=="key"});Q=0<ge.length?"{key: someKey, "+ge.join(": ..., ")+": ...}":"{key: someKey}",H[oe+Q]||(ge=0<ge.length?"{"+ge.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,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();/*!
22
+ <%s key={someKey} {...props} />`,Q,oe,ge,oe),H[oe+Q]=!0)}if(oe=null,K!==void 0&&(n(K),oe=""+K),a(N)&&(n(N.key),oe=""+N.key),"key"in N){K={};for(var Ce in N)Ce!=="key"&&(K[Ce]=N[Ce])}else K=N;return oe&&c(K,typeof M=="function"?M.displayName||M.name||"Unknown":M),d(M,oe,X,ue,i(),K,ce,he)}function m(M){typeof M=="object"&&M!==null&&M.$$typeof===y&&M._store&&(M._store.validated=1)}var g=I,y=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),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"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),te=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,me=Object.prototype.hasOwnProperty,de=Array.isArray,le=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(M){return M()}};var re,ie={},B=g["react-stack-bottom-frame"].bind(g,o)(),U=le(r(o)),H={};Ls.Fragment=v,Ls.jsx=function(M,N,K,Q,ue){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(M,N,K,!1,Q,ue,X?Error("react-stack-top-frame"):B,X?le(r(M)):U)},Ls.jsxs=function(M,N,K,Q,ue){var X=1e4>te.recentlyCreatedOwnerStacks++;return h(M,N,K,!0,Q,ue,X?Error("react-stack-top-frame"):B,X?le(r(M)):U)}}()),Ls}var $m;function mT(){return $m||($m=1,process.env.NODE_ENV==="production"?ea.exports=dT():ea.exports=hT()),ea.exports}var x=mT();/*!
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 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,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}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 pT(e,t,n){return(t=yT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rm(Object(n),!0).forEach(function(r){pT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yT(e){var t=gT(e,"string");return typeof t=="symbol"?t:t+""}const Lm=()=>{};let uc={},Nm={},km=null,Fm={mark:Lm,measure:Lm};try{typeof window<"u"&&(uc=window),typeof document<"u"&&(Nm=document),typeof MutationObserver<"u"&&(km=MutationObserver),typeof performance<"u"&&(Fm=performance)}catch{}const{userAgent:jm=""}=uc.navigator||{},mr=uc,Xe=Nm,Vm=km,ta=Fm;mr.document;const zn=!!Xe.documentElement&&!!Xe.head&&typeof Xe.addEventListener=="function"&&typeof Xe.createElement=="function",Bm=~jm.indexOf("MSIE")||~jm.indexOf("Trident/");var vT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,bT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Um={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},xT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Wm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",na="duotone",wT="sharp",ST="sharp-duotone",zm=[wt,na,wT,ST],TT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},ET={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},CT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),PT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},AT=["fak","fa-kit","fakd","fa-kit-duotone"],Gm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},OT=["kit"],MT={kit:{"fa-kit":"fak"}},_T=["fak","fakd"],IT={kit:{fak:"fa-kit"}},Ym={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ra={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},DT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],$T=["fak","fa-kit","fakd","fa-kit-duotone"],RT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},LT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},NT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},fc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},kT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],dc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...DT,...kT],FT=["solid","regular","light","thin","duotone","brands"],Hm=[1,2,3,4,5,6,7,8,9,10],jT=Hm.concat([11,12,13,14,15,16,17,18,19,20]),VT=[...Object.keys(NT),...FT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ra.GROUP,ra.SWAP_OPACITY,ra.PRIMARY,ra.SECONDARY].concat(Hm.map(e=>"".concat(e,"x"))).concat(jT.map(e=>"w-".concat(e))),BT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Gn="___FONT_AWESOME___",hc=16,qm="fa",Km="svg-inline--fa",Gr="data-fa-i2svg",mc="data-fa-pseudo-element",UT="data-fa-pseudo-element-pending",pc="data-prefix",gc="data-icon",Xm="fontawesome-i2svg",WT="async",zT=["HTML","HEAD","STYLE","SCRIPT"],Zm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Ns(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Jm=J({},Um);Jm[wt]=J(J(J(J({},{"fa-duotone":"duotone"}),Um[wt]),Gm.kit),Gm["kit-duotone"]);const GT=Ns(Jm),yc=J({},PT);yc[wt]=J(J(J(J({},{duotone:"fad"}),yc[wt]),Ym.kit),Ym["kit-duotone"]);const Qm=Ns(yc),vc=J({},fc);vc[wt]=J(J({},vc[wt]),IT.kit);const bc=Ns(vc),xc=J({},LT);xc[wt]=J(J({},xc[wt]),MT.kit),Ns(xc);const YT=vT,ep="fa-layers-text",HT=bT,qT=J({},TT);Ns(qT);const KT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],wc=xT,XT=[...OT,...VT],ks=mr.FontAwesomeConfig||{};function ZT(e){var t=Xe.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function JT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Xe&&typeof Xe.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=JT(ZT(n));i!=null&&(ks[r]=i)});const tp={styleDefault:"solid",familyDefault:wt,cssPrefix:qm,replacementClass:Km,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ks.familyPrefix&&(ks.cssPrefix=ks.familyPrefix);const Pi=J(J({},tp),ks);Pi.autoReplaceSvg||(Pi.observeMutations=!1);const ve={};Object.keys(tp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Pi[e]=t,Fs.forEach(n=>n(ve))},get:function(){return Pi[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Pi.cssPrefix=e,Fs.forEach(t=>t(ve))},get:function(){return Pi.cssPrefix}}),mr.FontAwesomeConfig=ve;const Fs=[];function QT(e){return Fs.push(e),()=>{Fs.splice(Fs.indexOf(e),1)}}const pr=hc,Cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function eE(e){if(!e||!zn)return;const t=Xe.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Xe.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Xe.head.insertBefore(t,r),e}const tE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function js(){let e=12,t="";for(;e-- >0;)t+=tE[Math.random()*62|0];return t}function Ai(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Sc(e){return e.classList?Ai(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function np(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function nE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(np(e[n]),'" '),"").trim()}function ia(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Tc(e){return e.size!==Cn.size||e.x!==Cn.x||e.y!==Cn.y||e.rotate!==Cn.rotate||e.flipX||e.flipY}function rE(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:d}}function iE(e){let{transform:t,width:n=hc,height:r=hc,startCentered:i=!1}=e,o="";return i&&Bm?o+="translate(".concat(t.x/pr-n/2,"em, ").concat(t.y/pr-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/pr,"em), calc(-50% + ").concat(t.y/pr,"em)) "):o+="translate(".concat(t.x/pr,"em, ").concat(t.y/pr,"em) "),o+="scale(".concat(t.size/pr*(t.flipX?-1:1),", ").concat(t.size/pr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var sE=`:root, :host {
27
27
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
28
28
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
29
29
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -576,41 +576,41 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
576
576
  .svg-inline--fa mask .fa-primary,
577
577
  .svg-inline--fa mask .fa-secondary {
578
578
  fill: black;
579
- }`;function 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
579
+ }`;function rp(){const e=qm,t=Km,n=ve.cssPrefix,r=ve.replacementClass;let i=sE;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return i}let ip=!1;function Ec(){ve.autoAddCss&&!ip&&(eE(rp()),ip=!0)}var oE={mixout(){return{dom:{css:rp,insertCss:Ec}}},hooks(){return{beforeDOMElementCreation(){Ec()},beforeI2svg(){Ec()}}}};const Yn=mr||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Pn=Yn[Gn];const sp=[],op=function(){Xe.removeEventListener("DOMContentLoaded",op),sa=1,sp.map(e=>e())};let sa=!1;zn&&(sa=(Xe.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Xe.readyState),sa||Xe.addEventListener("DOMContentLoaded",op));function aE(e){zn&&(sa?setTimeout(e,0):sp.push(e))}function Vs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?np(e):"<".concat(t," ").concat(nE(n),">").concat(r.map(Vs).join(""),"</").concat(t,">")}function ap(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Cc=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,d,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)d=o[u],h=c(h,t[d],d,t);return h};function lE(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Pc(e){const t=lE(e);return t.length===1?t[0].toString(16):null}function cE(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function lp(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ac(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=lp(t);typeof Pn.hooks.addPack=="function"&&!r?Pn.hooks.addPack(e,lp(t)):Pn.styles[e]=J(J({},Pn.styles[e]||{}),i),e==="fas"&&Ac("fa",t)}const{styles:Bs,shims:uE}=Pn,cp=Object.keys(bc),fE=cp.reduce((e,t)=>(e[t]=Object.keys(bc[t]),e),{});let Oc=null,up={},fp={},dp={},hp={},mp={};function dE(e){return~XT.indexOf(e)}function hE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!dE(i)?i:null}const pp=()=>{const e=r=>Cc(Bs,(i,o,a)=>(i[a]=Cc(o,r,{}),i),{});up=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),fp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),mp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Bs||ve.autoFetchSvg,n=Cc(uE,(r,i)=>{const o=i[0];let a=i[1];const c=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:c}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:c}),r},{names:{},unicodes:{}});dp=n.names,hp=n.unicodes,Oc=oa(ve.styleDefault,{family:ve.familyDefault})};QT(e=>{Oc=oa(e.styleDefault,{family:ve.familyDefault})}),pp();function Mc(e,t){return(up[e]||{})[t]}function mE(e,t){return(fp[e]||{})[t]}function Yr(e,t){return(mp[e]||{})[t]}function gp(e){return dp[e]||{prefix:null,iconName:null}}function pE(e){const t=hp[e],n=Mc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return Oc}const yp=()=>({prefix:null,iconName:null,rest:[]});function gE(e){let t=wt;const n=cp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return zm.forEach(r=>{(e.includes(n[r])||e.some(i=>fE[r].includes(i)))&&(t=r)}),t}function oa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=GT[n][e];if(n===na&&!e)return"fad";const i=Qm[n][e]||Qm[n][r],o=e in Pn.styles?e:null;return i||o||null}function yE(e){let t=[],n=null;return e.forEach(r=>{const i=hE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function vp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=dc.concat($T),o=vp(e.filter(m=>i.includes(m))),a=vp(e.filter(m=>!dc.includes(m))),c=o.filter(m=>(r=m,!Wm.includes(m))),[u=null]=c,d=gE(o),h=J(J({},yE(a)),{},{prefix:oa(u,{family:d})});return J(J(J({},h),wE({values:e,family:d,styles:Bs,config:ve,canonical:h,givenPrefix:r})),vE(n,r,h))}function vE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?gp(i):{},a=Yr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Bs.far&&Bs.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const bE=zm.filter(e=>e!==wt||e!==na),xE=Object.keys(fc).filter(e=>e!==wt).map(e=>Object.keys(fc[e])).flat();function wE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===na,u=t.includes("fa-duotone")||t.includes("fad"),d=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||d||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&bE.includes(n)&&(Object.keys(o).find(g=>xE.includes(g))||a.autoFetchSvg)){const g=CT.get(n).defaultShortPrefixId;r.prefix=g,r.iconName=Yr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class SE{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=J(J({},this.definitions[o]||{}),i[o]),Ac(o,i[o]);const a=bc[wt][o];a&&Ac(a,i[o]),pp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:c}=r[i],u=c[2];t[o]||(t[o]={}),u.length>0&&u.forEach(d=>{typeof d=="string"&&(t[o][d]=c)}),t[o][a]=c}),t}}let bp=[],Oi={};const Mi={},TE=Object.keys(Mi);function EE(e,t){let{mixoutsTo:n}=t;return bp=e,Oi={},Object.keys(Mi).forEach(r=>{TE.indexOf(r)===-1&&delete Mi[r]}),bp.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Oi[a]||(Oi[a]=[]),Oi[a].push(o[a])})}r.provides&&r.provides(Mi)}),n}function _c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Oi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Oi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mi[e]?Mi[e].apply(null,t):void 0}function Ic(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Yr(n,t)||t,ap(xp.definitions,n,t)||ap(Pn.styles,n,t)}const xp=new SE,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,Hr("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(Hr("beforeI2svg",e),yr("pseudoElements2svg",e),yr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ve.autoReplaceSvg===!1&&(ve.autoReplaceSvg=!0),ve.observeMutations=!0,aE(()=>{CE({autoReplaceSvgRoot:t}),Hr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=oa(e[0]);return{prefix:n,iconName:Yr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(YT))){const t=aa(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Yr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Yr(t,e)||e}}}},library:xp,findIconDefinition:Ic,toHtml:Vs},CE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Xe}=e;(Object.keys(Pn.styles).length>0||ve.autoFetchSvg)&&zn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function la(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Vs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Xe.createElement("div");return n.innerHTML=e.html,n.children}}),e}function PE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Tc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=ia(J(J({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function AE(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(ve.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:J(J({},i),{},{id:a}),children:r}]}]}function Dc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:g,height:y}=n.found?n:t,S=_T.includes(r),v=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(C=>h.classes.indexOf(C)===-1).filter(C=>C!==""||!!C).concat(h.classes).join(" ");let E={children:[],attributes:J(J({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:v,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})};const w=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};m&&(E.attributes[Gr]=""),c&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||js())},children:[c]}),delete E.attributes.title);const A=J(J({},E),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:J(J({},w),h.styles)}),{children:O,attributes:D}=n.found&&t.found?yr("generateAbstractMask",A)||{children:[],attributes:{}}:yr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=O,A.attributes=D,a?AE(A):PE(A)}function wp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=J(J(J({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Gr]="");const d=J({},a.styles);Tc(i)&&(d.transform=iE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=ia(d);h.length>0&&(u.style=h);const m=[];return m.push({tag:"span",attributes:u,children:[t]}),o&&m.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),m}function OE(e){const{content:t,title:n,extra:r}=e,i=J(J(J({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ia(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:$c}=Pn;function Rc(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(wc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const ME={found:!1,width:512,height:512};function _E(e,t){!Zm&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Lc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=gp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&$c[t]&&$c[t][e]){const o=$c[t][e];return r(Rc(o))}_E(e,t),r(J(J({},ME),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Sp=()=>{},Nc=ve.measurePerformance&&ta&&ta.mark&&ta.measure?ta:{mark:Sp,measure:Sp},Us='FA "6.7.2"',IE=e=>(Nc.mark("".concat(Us," ").concat(e," begins")),()=>Tp(e)),Tp=e=>{Nc.mark("".concat(Us," ").concat(e," ends")),Nc.measure("".concat(Us," ").concat(e),"".concat(Us," ").concat(e," begins"),"".concat(Us," ").concat(e," ends"))};var kc={begin:IE,end:Tp};const ca=()=>{};function Ep(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function DE(e){const t=e.getAttribute?e.getAttribute(pc):null,n=e.getAttribute?e.getAttribute(gc):null;return t&&n}function $E(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function RE(){return ve.autoReplaceSvg===!0?ua.replace:ua[ve.autoReplaceSvg]||ua.replace}function LE(e){return Xe.createElementNS("http://www.w3.org/2000/svg",e)}function NE(e){return Xe.createElement(e)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?LE:NE}=t;if(typeof e=="string")return Xe.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Cp(o,{ceFn:n}))}),r}function kE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ua={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Cp(n),t)}),t.getAttribute(Gr)===null&&ve.keepOriginalSource){let n=Xe.createComment(kE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Sc(t).indexOf(ve.replacementClass))return ua.replace(e);const r=new RegExp("".concat(ve.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===ve.replacementClass||c.match(r)?a.toSvg.push(c):a.toNode.push(c),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Vs(o)).join(`
580
+ `);t.setAttribute(Gr,""),t.innerHTML=i}};function Pp(e){e()}function Ap(e,t){const n=typeof t=="function"?t:ca;if(e.length===0)n();else{let r=Pp;ve.mutateApproach===WT&&(r=mr.requestAnimationFrame||Pp),r(()=>{const i=RE(),o=kc.begin("mutate");e.map(i),o(),n()})}}let Fc=!1;function Op(){Fc=!0}function jc(){Fc=!1}let fa=null;function Mp(e){if(!Vm||!ve.observeMutations)return;const{treeCallback:t=ca,nodeCallback:n=ca,pseudoElementsCallback:r=ca,observeMutationsRoot:i=Xe}=e;fa=new Vm(o=>{if(Fc)return;const a=gr();Ai(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Ep(c.addedNodes[0])&&(ve.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&ve.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&Ep(c.target)&&~KT.indexOf(c.attributeName))if(c.attributeName==="class"&&DE(c.target)){const{prefix:u,iconName:d}=aa(Sc(c.target));c.target.setAttribute(pc,u||a),d&&c.target.setAttribute(gc,d)}else $E(c.target)&&n(c.target)})}),zn&&fa.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function FE(){fa&&fa.disconnect()}function jE(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function VE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=aa(Sc(e));return i.prefix||(i.prefix=gr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=mE(i.prefix,e.innerText)||Mc(i.prefix,Pc(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function BE(e){const t=Ai(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ve.autoA11y&&(n?t["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(r||js()):(t["aria-hidden"]="true",t.focusable="false")),t}function UE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _p(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=VE(e),o=BE(e),a=_c("parseNodeAttributes",{},e);let c=t.styleParser?jE(e):[];return J({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Cn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:WE}=Pn;function Ip(e){const t=ve.autoReplaceSvg==="nest"?_p(e,{styleParser:!1}):_p(e);return~t.extra.classes.indexOf(ep)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function zE(){return[...AT,...dc]}function Dp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Xe.documentElement.classList,r=h=>n.add("".concat(Xm,"-").concat(h)),i=h=>n.remove("".concat(Xm,"-").concat(h)),o=ve.autoFetchSvg?zE():Wm.concat(Object.keys(WE));o.includes("fa")||o.push("fa");const a=[".".concat(ep,":not([").concat(Gr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Gr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ai(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=kc.begin("onTree"),d=c.reduce((h,m)=>{try{const g=Ip(m);g&&h.push(g)}catch(g){Zm||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(g=>{Ap(g,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(g=>{u(),m(g)})})}function GE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ip(e).then(n=>{n&&Ap([n],t)})}function YE(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Ic(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Ic(i||{})),e(r,J(J({},n),{},{mask:i}))}}const HE=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:c=null,classes:u=[],attributes:d={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:g,icon:y}=e;return la(J({type:"icon"},e),()=>(Hr("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||js()):(d["aria-hidden"]="true",d.focusable="false")),Dc({icons:{main:Rc(y),mask:i?Rc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:g,transform:J(J({},Cn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var qE={mixout(){return{icon:YE(HE)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Dp,e.nodeCallback=GE,e}}},provides(e){e.i2svg=function(t){const{node:n=Xe,callback:r=()=>{}}=t;return Dp(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((g,y)=>{Promise.all([Lc(r,a),d.iconName?Lc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[v,E]=S;g([t,Dc({icons:{main:v,mask:E},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=ia(a);c.length>0&&(r.style=c);let u;return Tc(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},KE={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return la({type:"layer"},()=>{Hr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ve.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},XE={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return la({type:"counter",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),OE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},ZE={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Cn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return la({type:"text",content:e},()=>(Hr("beforeDOMElementCreation",{content:e,params:t}),wp({content:e,transform:J(J({},Cn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(ve.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,c=null;if(Bm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return ve.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,wp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const JE=new RegExp('"',"ug"),$p=[1105920,1112319],Rp=J(J(J(J({},{FontAwesome:{normal:"fas",400:"fas"}}),ET),BT),RT),Vc=Object.keys(Rp).reduce((e,t)=>(e[t.toLowerCase()]=Rp[t],e),{}),QE=Object.keys(Vc).reduce((e,t)=>{const n=Vc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function eC(e){const t=e.replace(JE,""),n=cE(t,0),r=n>=$p[0]&&n<=$p[1],i=t.length===2?t[0]===t[1]:!1;return{value:Pc(i?t[0]:t),isSecondary:r||i}}function tC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Vc[n]||{})[i]||QE[n]}function Lp(e,t){const n="".concat(UT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Ai(e.children).filter(g=>g.getAttribute(mc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(HT),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const g=c.getPropertyValue("content");let y=tC(u,h);const{value:S,isSecondary:v}=eC(g),E=d[0].startsWith("FontAwesome");let w=Mc(y,S),A=w;if(E){const O=pE(S);O.iconName&&O.prefix&&(w=O.iconName,y=O.prefix)}if(w&&!v&&(!a||a.getAttribute(pc)!==y||a.getAttribute(gc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const O=UE(),{extra:D}=O;D.attributes[mc]=t,Lc(w,y).then(C=>{const L=Dc(J(J({},O),{},{icons:{main:C,mask:yp()},prefix:y,iconName:A,extra:D,watchable:!0})),j=Xe.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=L.map(F=>Vs(F)).join(`
581
+ `),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function nC(e){return Promise.all([Lp(e,"::before"),Lp(e,"::after")])}function rC(e){return e.parentNode!==document.head&&!~zT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(mc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Np(e){if(zn)return new Promise((t,n)=>{const r=Ai(e.querySelectorAll("*")).filter(rC).map(nC),i=kc.begin("searchPseudoElements");Op(),Promise.all(r).then(()=>{i(),jc(),t()}).catch(()=>{i(),jc(),n()})})}var iC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Np,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Xe}=t;ve.searchPseudoElements&&Np(n)}}};let kp=!1;var sC={mixout(){return{dom:{unwatch(){Op(),kp=!0}}}},hooks(){return{bootstrap(){Mp(_c("mutationObserverCallbacks",{}))},noAuto(){FE()},watch(e){const{observeMutationsRoot:t}=e;kp?jc():Mp(_c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Fp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var oC={mixout(){return{parse:{transform:e=>Fp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Fp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},c="translate(".concat(r.x*32,", ").concat(r.y*32,") "),u="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),d="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(c," ").concat(u," ").concat(d)},m={transform:"translate(".concat(o/2*-1," -256)")},g={outer:a,inner:h,path:m};return{tag:"g",attributes:J({},g.outer),children:[{tag:"g",attributes:J({},g.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:J(J({},n.icon.attributes),g.path)}]}]}}}};const Bc={x:0,y:0,width:"100%",height:"100%"};function jp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aC(e){return e.tag==="g"?e.children:[e]}var lC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?aa(n.split(" ").map(i=>i.trim())):yp();return r.prefix||(r.prefix=gr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=i,{width:h,icon:m}=o,g=rE({transform:c,containerWidth:h,iconWidth:u}),y={tag:"rect",attributes:J(J({},Bc),{},{fill:"white"})},S=d.children?{children:d.children.map(jp)}:{},v={tag:"g",attributes:J({},g.inner),children:[jp(J({tag:d.tag,attributes:J(J({},d.attributes),g.path)},S))]},E={tag:"g",attributes:J({},g.outer),children:[v]},w="mask-".concat(a||js()),A="clip-".concat(a||js()),O={tag:"mask",attributes:J(J({},Bc),{},{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,E]},D={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:aC(m)},O]};return n.push(D,{tag:"rect",attributes:J({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(w,")")},Bc)}),{children:n,attributes:r}}}},cC={provides(e){let t=!1;mr.matchMedia&&(t=mr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:J(J({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=J(J({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:J(J({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:J(J({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:J(J({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:J(J({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:J(J({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:J(J({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:J(J({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},uC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},fC=[oE,qE,KE,XE,ZE,iC,sC,oC,lC,cC,uC];EE(fC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const Uc=zt.parse;zt.findIconDefinition,zt.toHtml;const dC=zt.icon;zt.layer,zt.text,zt.counter;var da={exports:{}},ha={exports:{}},Fe={};/** @license React v16.13.1
582
582
  * react-is.production.min.js
583
583
  *
584
584
  * Copyright (c) Facebook, Inc. and its affiliates.
585
585
  *
586
586
  * This source code is licensed under the MIT license found in the
587
587
  * LICENSE file in the root directory of this source tree.
588
- */var Op;function ZE(){if(Op)return Fe;Op=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,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(C){if(typeof C=="object"&&C!==null){var L=C.$$typeof;switch(L){case t:switch(C=C.type,C){case u:case d:case r:case o:case i:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case S:case y:case l:return C;default:return L}}case n:return L}}}function D(C){return O(C)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=l,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=o,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(C){return D(C)||O(C)===u},Fe.isConcurrentMode=D,Fe.isContextConsumer=function(C){return O(C)===c},Fe.isContextProvider=function(C){return O(C)===l},Fe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Fe.isForwardRef=function(C){return O(C)===h},Fe.isFragment=function(C){return O(C)===r},Fe.isLazy=function(C){return O(C)===S},Fe.isMemo=function(C){return O(C)===y},Fe.isPortal=function(C){return O(C)===n},Fe.isProfiler=function(C){return O(C)===o},Fe.isStrictMode=function(C){return O(C)===i},Fe.isSuspense=function(C){return O(C)===m},Fe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===o||C===i||C===m||C===g||typeof C=="object"&&C!==null&&(C.$$typeof===S||C.$$typeof===y||C.$$typeof===l||C.$$typeof===c||C.$$typeof===h||C.$$typeof===P||C.$$typeof===w||C.$$typeof===A||C.$$typeof===b)},Fe.typeOf=O,Fe}var je={};/** @license React v16.13.1
588
+ */var Vp;function hC(){if(Vp)return Fe;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(C){if(typeof C=="object"&&C!==null){var L=C.$$typeof;switch(L){case t:switch(C=C.type,C){case u:case d:case r:case o:case i:case m:return C;default:switch(C=C&&C.$$typeof,C){case c:case h:case S:case y:case a:return C;default:return L}}case n:return L}}}function D(C){return O(C)===d}return Fe.AsyncMode=u,Fe.ConcurrentMode=d,Fe.ContextConsumer=c,Fe.ContextProvider=a,Fe.Element=t,Fe.ForwardRef=h,Fe.Fragment=r,Fe.Lazy=S,Fe.Memo=y,Fe.Portal=n,Fe.Profiler=o,Fe.StrictMode=i,Fe.Suspense=m,Fe.isAsyncMode=function(C){return D(C)||O(C)===u},Fe.isConcurrentMode=D,Fe.isContextConsumer=function(C){return O(C)===c},Fe.isContextProvider=function(C){return O(C)===a},Fe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Fe.isForwardRef=function(C){return O(C)===h},Fe.isFragment=function(C){return O(C)===r},Fe.isLazy=function(C){return O(C)===S},Fe.isMemo=function(C){return O(C)===y},Fe.isPortal=function(C){return O(C)===n},Fe.isProfiler=function(C){return O(C)===o},Fe.isStrictMode=function(C){return O(C)===i},Fe.isSuspense=function(C){return O(C)===m},Fe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===o||C===i||C===m||C===g||typeof C=="object"&&C!==null&&(C.$$typeof===S||C.$$typeof===y||C.$$typeof===a||C.$$typeof===c||C.$$typeof===h||C.$$typeof===E||C.$$typeof===w||C.$$typeof===A||C.$$typeof===v)},Fe.typeOf=O,Fe}var je={};/** @license React v16.13.1
589
589
  * react-is.development.js
590
590
  *
591
591
  * Copyright (c) Facebook, Inc. and its affiliates.
592
592
  *
593
593
  * This source code is licensed under the MIT license found in the
594
594
  * LICENSE file in the root directory of this source tree.
595
- */var 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}/*
595
+ */var Bp;function mC(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function O(ne){return typeof ne=="string"||typeof ne=="function"||ne===r||ne===d||ne===o||ne===i||ne===m||ne===g||typeof ne=="object"&&ne!==null&&(ne.$$typeof===S||ne.$$typeof===y||ne.$$typeof===a||ne.$$typeof===c||ne.$$typeof===h||ne.$$typeof===E||ne.$$typeof===w||ne.$$typeof===A||ne.$$typeof===v)}function D(ne){if(typeof ne=="object"&&ne!==null){var ye=ne.$$typeof;switch(ye){case t:var Ne=ne.type;switch(Ne){case u:case d:case r:case o:case i:case m:return Ne;default:var ft=Ne&&Ne.$$typeof;switch(ft){case c:case h:case S:case y:case a:return ft;default:return ye}}case n:return ye}}}var C=u,L=d,j=c,F=a,Y=t,ee=h,te=r,me=S,de=y,le=n,re=o,ie=i,B=m,U=!1;function H(ne){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(ne)||D(ne)===u}function M(ne){return D(ne)===d}function N(ne){return D(ne)===c}function K(ne){return D(ne)===a}function Q(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===t}function ue(ne){return D(ne)===h}function X(ne){return D(ne)===r}function ce(ne){return D(ne)===S}function he(ne){return D(ne)===y}function oe(ne){return D(ne)===n}function ge(ne){return D(ne)===o}function Ce(ne){return D(ne)===i}function Ue(ne){return D(ne)===m}je.AsyncMode=C,je.ConcurrentMode=L,je.ContextConsumer=j,je.ContextProvider=F,je.Element=Y,je.ForwardRef=ee,je.Fragment=te,je.Lazy=me,je.Memo=de,je.Portal=le,je.Profiler=re,je.StrictMode=ie,je.Suspense=B,je.isAsyncMode=H,je.isConcurrentMode=M,je.isContextConsumer=N,je.isContextProvider=K,je.isElement=Q,je.isForwardRef=ue,je.isFragment=X,je.isLazy=ce,je.isMemo=he,je.isPortal=oe,je.isProfiler=ge,je.isStrictMode=Ce,je.isSuspense=Ue,je.isValidElementType=O,je.typeOf=D}()),je}var Up;function Wp(){return Up||(Up=1,process.env.NODE_ENV==="production"?ha.exports=hC():ha.exports=mC()),ha.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: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
- 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:`
599
+ */var Wc,zp;function pC(){if(zp)return Wc;zp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wc=i()?Object.assign:function(o,a){for(var c,u=r(o),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var m in c)t.call(c,m)&&(u[m]=c[m]);if(e){d=e(c);for(var g=0;g<d.length;g++)n.call(c,d[g])&&(u[d[g]]=c[d[g]])}}return u},Wc}var zc,Gp;function Gc(){if(Gp)return zc;Gp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zc=e,zc}var Yc,Yp;function Hp(){return Yp||(Yp=1,Yc=Function.call.bind(Object.prototype.hasOwnProperty)),Yc}var Hc,qp;function gC(){if(qp)return Hc;qp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Gc(),n={},r=Hp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(r(o,h)){var m;try{if(typeof o[h]!="function"){var g=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=o[h](a,h,u,c,null,t)}catch(S){m=S}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var y=d?d():"";e("Failed "+c+" type: "+m.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Hc=i,Hc}var qc,Kp;function yC(){if(Kp)return qc;Kp=1;var e=Wp(),t=pC(),n=Gc(),r=Hp(),i=gC(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return qc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(M){var N=M&&(d&&M[d]||M[h]);if(typeof N=="function")return N}var g="<<anonymous>>",y={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:A(),arrayOf:O,element:D(),elementType:C(),instanceOf:L,node:ee(),objectOf:F,oneOf:j,oneOfType:Y,shape:me,exact:de};function S(M,N){return M===N?M!==0||1/M===1/N:M!==M&&N!==N}function v(M,N){this.message=M,this.data=N&&typeof N=="object"?N:{},this.stack=""}v.prototype=Error.prototype;function E(M){if(process.env.NODE_ENV!=="production")var N={},K=0;function Q(X,ce,he,oe,ge,Ce,Ue){if(oe=oe||g,Ce=Ce||he,Ue!==n){if(u){var ne=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ne.name="Invariant Violation",ne}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ye=oe+":"+he;!N[ye]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+oe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[ye]=!0,K++)}}return ce[he]==null?X?ce[he]===null?new v("The "+ge+" `"+Ce+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new v("The "+ge+" `"+Ce+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:M(ce,he,oe,ge,Ce)}var ue=Q.bind(null,!1);return ue.isRequired=Q.bind(null,!0),ue}function w(M){function N(K,Q,ue,X,ce,he){var oe=K[Q],ge=ie(oe);if(ge!==M){var Ce=B(oe);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+Ce+"` supplied to `"+ue+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return E(N)}function A(){return E(a)}function O(M){function N(K,Q,ue,X,ce){if(typeof M!="function")return new v("Property `"+ce+"` of component `"+ue+"` has invalid PropType notation inside arrayOf.");var he=K[Q];if(!Array.isArray(he)){var oe=ie(he);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+oe+"` supplied to `"+ue+"`, expected an array."))}for(var ge=0;ge<he.length;ge++){var Ce=M(he,ge,ue,X,ce+"["+ge+"]",n);if(Ce instanceof Error)return Ce}return null}return E(N)}function D(){function M(N,K,Q,ue,X){var ce=N[K];if(!c(ce)){var he=ie(ce);return new v("Invalid "+ue+" `"+X+"` of type "+("`"+he+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return E(M)}function C(){function M(N,K,Q,ue,X){var ce=N[K];if(!e.isValidElementType(ce)){var he=ie(ce);return new v("Invalid "+ue+" `"+X+"` of type "+("`"+he+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return E(M)}function L(M){function N(K,Q,ue,X,ce){if(!(K[Q]instanceof M)){var he=M.name||g,oe=H(K[Q]);return new v("Invalid "+X+" `"+ce+"` of type "+("`"+oe+"` supplied to `"+ue+"`, expected ")+("instance of `"+he+"`."))}return null}return E(N)}function j(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(K,Q,ue,X,ce){for(var he=K[Q],oe=0;oe<M.length;oe++)if(S(he,M[oe]))return null;var ge=JSON.stringify(M,function(Ue,ne){var ye=B(ne);return ye==="symbol"?String(ne):ne});return new v("Invalid "+X+" `"+ce+"` of value `"+String(he)+"` "+("supplied to `"+ue+"`, expected one of "+ge+"."))}return E(N)}function F(M){function N(K,Q,ue,X,ce){if(typeof M!="function")return new v("Property `"+ce+"` of component `"+ue+"` has invalid PropType notation inside objectOf.");var he=K[Q],oe=ie(he);if(oe!=="object")return new v("Invalid "+X+" `"+ce+"` of type "+("`"+oe+"` supplied to `"+ue+"`, expected an object."));for(var ge in he)if(r(he,ge)){var Ce=M(he,ge,ue,X,ce+"."+ge,n);if(Ce instanceof Error)return Ce}return null}return E(N)}function Y(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<M.length;N++){var K=M[N];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(K)+" at index "+N+"."),a}function Q(ue,X,ce,he,oe){for(var ge=[],Ce=0;Ce<M.length;Ce++){var Ue=M[Ce],ne=Ue(ue,X,ce,he,oe,n);if(ne==null)return null;ne.data&&r(ne.data,"expectedType")&&ge.push(ne.data.expectedType)}var ye=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new v("Invalid "+he+" `"+oe+"` supplied to "+("`"+ce+"`"+ye+"."))}return E(Q)}function ee(){function M(N,K,Q,ue,X){return le(N[K])?null:new v("Invalid "+ue+" `"+X+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return E(M)}function te(M,N,K,Q,ue){return new v((M||"React class")+": "+N+" type `"+K+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ue+"`.")}function me(M){function N(K,Q,ue,X,ce){var he=K[Q],oe=ie(he);if(oe!=="object")return new v("Invalid "+X+" `"+ce+"` of type `"+oe+"` "+("supplied to `"+ue+"`, expected `object`."));for(var ge in M){var Ce=M[ge];if(typeof Ce!="function")return te(ue,X,ce,ge,B(Ce));var Ue=Ce(he,ge,ue,X,ce+"."+ge,n);if(Ue)return Ue}return null}return E(N)}function de(M){function N(K,Q,ue,X,ce){var he=K[Q],oe=ie(he);if(oe!=="object")return new v("Invalid "+X+" `"+ce+"` of type `"+oe+"` "+("supplied to `"+ue+"`, expected `object`."));var ge=t({},K[Q],M);for(var Ce in ge){var Ue=M[Ce];if(r(M,Ce)&&typeof Ue!="function")return te(ue,X,ce,Ce,B(Ue));if(!Ue)return new v("Invalid "+X+" `"+ce+"` key `"+Ce+"` supplied to `"+ue+"`.\nBad object: "+JSON.stringify(K[Q],null," ")+`
600
+ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ne=Ue(he,Ce,ue,X,ce+"."+Ce,n);if(ne)return ne}return null}return E(N)}function le(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(le);if(M===null||c(M))return!0;var N=m(M);if(N){var K=N.call(M),Q;if(N!==M.entries){for(;!(Q=K.next()).done;)if(!le(Q.value))return!1}else for(;!(Q=K.next()).done;){var ue=Q.value;if(ue&&!le(ue[1]))return!1}}else return!1;return!0;default:return!1}}function re(M,N){return M==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function ie(M){var N=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":re(N,M)?"symbol":N}function B(M){if(typeof M>"u"||M===null)return""+M;var N=ie(M);if(N==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return N}function U(M){var N=B(M);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(M){return!M.constructor||!M.constructor.name?g:M.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},qc}var Kc,Xp;function vC(){if(Xp)return Kc;Xp=1;var e=Gc();function t(){}function n(){}return n.resetWarningCache=t,Kc=function(){function r(a,c,u,d,h,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Kc}var Zp;function bC(){if(Zp)return da.exports;if(Zp=1,process.env.NODE_ENV!=="production"){var e=Wp(),t=!0;da.exports=yC()(e.isElement,t)}else da.exports=vC()();return da.exports}var xC=bC();const De=_m(xC);function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(n),!0).forEach(function(r){_i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ma(e){"@babel/helpers - typeof";return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ma(e)}function _i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wC(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 SC(e,t){if(e==null)return{};var n=wC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xc(e){return TC(e)||EC(e)||CC(e)||PC()}function TC(e){if(Array.isArray(e))return Zc(e)}function EC(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 Zc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zc(e,t)}}function Zc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function PC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
601
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,d=e.spinPulse,h=e.spinReverse,m=e.pulse,g=e.fixedWidth,y=e.inverse,S=e.border,v=e.listItem,E=e.flip,w=e.size,A=e.rotation,O=e.pull,D=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":g,"fa-inverse":y,"fa-border":S,"fa-li":v,"fa-flip":E===!0,"fa-flip-horizontal":E==="horizontal"||E==="both","fa-flip-vertical":E==="vertical"||E==="both"},_i(t,"fa-".concat(w),typeof w<"u"&&w!==null),_i(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),_i(t,"fa-pull-".concat(O),typeof O<"u"&&O!==null),_i(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 OC(e){return e=e-0,e===e}function Qp(e){return OC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var MC=["style"];function _C(e){return e.charAt(0).toUpperCase()+e.slice(1)}function IC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=Qp(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[_C(i)]=o:t[i]=o,t},{})}function eg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(u){return eg(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,d){var h=t.attributes[d];switch(d){case"class":u.attrs.className=h,delete t.attributes.class;break;case"style":u.attrs.style=IC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Qp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=SC(n,MC);return i.attrs.style=An(An({},i.attrs.style),a),e.apply(void 0,[t.tag,An(An({},i.attrs),c)].concat(Xc(r)))}var tg=!1;try{tg=process.env.NODE_ENV==="production"}catch{}function DC(){if(!tg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function ng(e){if(e&&ma(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Uc.icon)return Uc.icon(e);if(e===null)return null;if(e&&ma(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Jc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?_i({},e,t):{}}var rg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ie=I.forwardRef(function(e,t){var n=An(An({},rg),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=ng(r),m=Jc("classes",[].concat(Xc(AC(n)),Xc((a||"").split(" ")))),g=Jc("transform",typeof n.transform=="string"?Uc.transform(n.transform):n.transform),y=Jc("mask",ng(i)),S=dC(h,An(An(An(An({},m),g),y),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return DC("Could not find icon",h),null;var v=S.abstract,E={ref:t};return Object.keys(n).forEach(function(w){rg.hasOwnProperty(w)||(E[w]=n[w])}),$C(v[0],E)});Ie.displayName="FontAwesomeIcon",Ie.propTypes={beat:De.bool,border:De.bool,beatFade:De.bool,bounce:De.bool,className:De.string,fade:De.bool,flash:De.bool,mask:De.oneOfType([De.object,De.array,De.string]),maskId:De.string,fixedWidth:De.bool,inverse:De.bool,flip:De.oneOf([!0,!1,"horizontal","vertical","both"]),icon:De.oneOfType([De.object,De.array,De.string]),listItem:De.bool,pull:De.oneOf(["right","left"]),pulse:De.bool,rotation:De.oneOf([0,90,180,270]),shake:De.bool,size:De.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:De.bool,spinPulse:De.bool,spinReverse:De.bool,symbol:De.oneOfType([De.bool,De.string]),title:De.string,titleId:De.string,transform:De.oneOfType([De.string,De.object]),swapOpacity:De.bool};var $C=eg.bind(null,I.createElement);const RC=({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
604
604
  gap-2 transition-colors
605
605
  ${i?"bg-blue-100 border border-blue-800":"bg-light-gray-100 border border-gray-100 hover:border-blue-500 group"}
606
- `,children:[t?x.jsx(De,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?x.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,x.jsx("span",{className:`
606
+ `,children:[t?x.jsx(Ie,{icon:t,className:"w-20 h-20 transition-colors text-blue-500 group-hover:text-blue-500"}):n?x.jsx("img",{src:n,alt:e,width:32,height:32,className:"object-contain"}):null,x.jsx("span",{className:`
607
607
  text-base font-medium transition-colors
608
608
  ${i?"text-gray-900":"text-gray-900 group-hover:text-blue-500"}
609
609
  `,children:e})]});/*!
610
610
  * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
611
611
  * License - https://fontawesome.com/license (Commercial License)
612
612
  * Copyright 2024 Fonticons, Inc.
613
- */const bC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},xC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},wC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},SC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},TC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},EC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},Yp={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},qc={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},CC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},PC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},Hp={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},AC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Kc={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},Xc=I.createContext({});function Zc(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const Jc=typeof window<"u",qp=Jc?I.useLayoutEffect:I.useEffect,la=I.createContext(null),Qc=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let OC=class 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 MC({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(Qc);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(`
613
+ */const LC={prefix:"fal",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c-8.8 0-16 7.2-16 16l0 128c0 8.8 7.2 16 16 16s16-7.2 16-16l0-128c0-8.8-7.2-16-16-16zm24 224a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]},NC={prefix:"fal",iconName:"eye-slash",icon:[640,512,[],"f070","M25.9 3.4C19-2 8.9-.8 3.4 6.1S-.8 23.1 6.1 28.6l608 480c6.9 5.5 17 4.3 22.5-2.6s4.3-17-2.6-22.5L25.9 3.4zM605.5 268.3c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-51.2 0-96 14.8-133.9 36.8l27.3 21.5C244.6 74.2 280.2 64 320 64c70.4 0 127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-9.2 22.1-25.9 52-49.5 81.5l25.1 19.8c25.6-32 43.7-64.4 53.9-89zM88.4 154.7c-25.6 32-43.7 64.4-53.9 89c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c51.2 0 96-14.8 133.9-36.8l-27.3-21.5C395.4 437.8 359.8 448 320 448c-70.4 0-127.7-32-170.8-72C106.1 336 77.3 288 64 256c9.2-22.1 25.9-52 49.5-81.5L88.4 154.7zM320 384c16.7 0 32.7-3.2 47.4-9.1l-30.9-24.4c-5.4 .9-10.9 1.4-16.5 1.4c-51 0-92.8-39.8-95.8-90.1l-30.9-24.4c-.9 6-1.3 12.2-1.3 18.5c0 70.7 57.3 128 128 128zM448 256c0-70.7-57.3-128-128-128c-16.7 0-32.7 3.2-47.4 9.1l30.9 24.4c5.4-.9 10.9-1.4 16.5-1.4c51 0 92.8 39.8 95.8 90.1l30.9 24.4c.9-6 1.3-12.2 1.3-18.5z"]},kC={prefix:"fal",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM363.3 203.3c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L224 297.4l-52.7-52.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l64 64c6.2 6.2 16.4 6.2 22.6 0l128-128z"]},FC={prefix:"fal",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M69.4 210.6C89.8 126.5 165.6 64 256 64c71.1 0 133.1 38.6 166.3 96L368 160c-8.8 0-16 7.2-16 16s7.2 16 16 16l80.7 0 15.3 0c8.8 0 16-7.2 16-16l0-96c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 60.6C408.8 75.5 337.5 32 256 32C149.6 32 60.5 106.2 37.7 205.6C35.5 215.2 43.1 224 53 224c7.9 0 14.6-5.7 16.5-13.4zm373.2 90.9C422.2 385.5 346.4 448 256 448c-71.1 0-133.1-38.6-166.3-96l54.5 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-80.9 0-15.1 0c-8.8 0-16 7.2-16 16l0 96c0 8.8 7.2 16 16 16s16-7.2 16-16l0-60.2C103.4 436.6 174.7 480 256 480c106.4 0 195.5-74.2 218.3-173.6c2.2-9.6-5.4-18.4-15.3-18.4c-7.9 0-14.6 5.7-16.5 13.4z"]},jC={prefix:"fal",iconName:"eye",icon:[576,512,[128065],"f06e","M117.2 136C160.3 96 217.6 64 288 64s127.7 32 170.8 72c43.1 40 71.9 88 85.2 120c-13.3 32-42.1 80-85.2 120c-43.1 40-100.4 72-170.8 72s-127.7-32-170.8-72C74.1 336 45.3 288 32 256c13.3-32 42.1-80 85.2-120zM288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM192 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},VC={prefix:"fal",iconName:"trash",icon:[448,512,[],"f1f8","M177.7 32l92.5 0c5.5 0 10.6 2.8 13.6 7.5L299.1 64 148.9 64l15.3-24.5c2.9-4.7 8.1-7.5 13.6-7.5zM336.9 64L311 22.6C302.2 8.5 286.8 0 270.3 0L177.7 0C161.2 0 145.8 8.5 137 22.6L111.1 64 64.1 64 32 64 16 64C7.2 64 0 71.2 0 80s7.2 16 16 16l18.3 0L59.8 452.6C62.1 486.1 90 512 123.6 512l200.8 0c33.6 0 61.4-25.9 63.8-59.4L413.7 96 432 96c8.8 0 16-7.2 16-16s-7.2-16-16-16l-16 0-32.1 0-47.1 0zm44.8 32L356.3 450.3C355.1 467 341.2 480 324.4 480l-200.8 0c-16.8 0-30.7-13-31.9-29.7L66.4 96l315.3 0z"]},ig={prefix:"fal",iconName:"clock-six",icon:[512,512,[],"e352","M480 256A224 224 0 1 0 32 256a224 224 0 1 0 448 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM272 112l0 256c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},Qc={prefix:"fal",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448zm0 480A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM208 352c-8.8 0-16 7.2-16 16s7.2 16 16 16l96 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-112c0-8.8-7.2-16-16-16l-40 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l24 0 0 96-32 0zm48-168a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},BC={prefix:"fal",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M352 448l0-256-112 0c-26.5 0-48-21.5-48-48l0-112L64 32C46.3 32 32 46.3 32 64l0 384c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32zm-.5-288c-.7-2.8-2.1-5.4-4.2-7.4L231.4 36.7c-2.1-2.1-4.6-3.5-7.4-4.2L224 144c0 8.8 7.2 16 16 16l111.5 0zM0 64C0 28.7 28.7 0 64 0L220.1 0c12.7 0 24.9 5.1 33.9 14.1L369.9 129.9c9 9 14.1 21.2 14.1 33.9L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]},UC={prefix:"fal",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M324.5 411.1c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L214.6 256 347.1 123.5c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L192 233.4 59.6 100.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6L169.4 256 36.9 388.5c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L192 278.6 324.5 411.1z"]},sg={prefix:"fal",iconName:"check",icon:[448,512,[10003,10004],"f00c","M443.3 100.7c6.2 6.2 6.2 16.4 0 22.6l-272 272c-6.2 6.2-16.4 6.2-22.6 0l-144-144c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L160 361.4 420.7 100.7c6.2-6.2 16.4-6.2 22.6 0z"]},WC={prefix:"fal",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M34.5 420.4c-1.6 2.8-2.5 6-2.5 9.3c0 10.2 8.2 18.4 18.4 18.4l411.2 0c10.2 0 18.4-8.2 18.4-18.4c0-3.3-.9-6.4-2.5-9.3L276.5 75.8C272.2 68.5 264.4 64 256 64s-16.2 4.5-20.5 11.8L34.5 420.4zM6.9 404.2l201-344.6C217.9 42.5 236.2 32 256 32s38.1 10.5 48.1 27.6l201 344.6c4.5 7.7 6.9 16.5 6.9 25.4c0 27.8-22.6 50.4-50.4 50.4L50.4 480C22.6 480 0 457.4 0 429.6c0-8.9 2.4-17.7 6.9-25.4zM256 160c8.8 0 16 7.2 16 16l0 128c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zM232 384a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},eu={prefix:"fal",iconName:"x",icon:[384,512,[120],"58","M380.2 58.3c5.7-6.7 4.9-16.8-1.9-22.5s-16.8-4.9-22.6 1.9L192 231.2 28.2 37.7c-5.7-6.7-15.8-7.6-22.5-1.9s-7.6 15.8-1.9 22.5L171 256 3.8 453.7c-5.7 6.7-4.9 16.8 1.9 22.6s16.8 4.9 22.5-1.9L192 280.8 355.8 474.3c5.7 6.7 15.8 7.6 22.6 1.9s7.6-15.8 1.9-22.6L213 256 380.2 58.3z"]},tu=I.createContext({});function nu(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const ru=typeof window<"u",og=ru?I.useLayoutEffect:I.useEffect,pa=I.createContext(null),iu=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let zC=class extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function GC({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(iu);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
614
614
  [data-motion-pop-id="${r}"] {
615
615
  position: absolute !important;
616
616
  width: ${c}px !important;
@@ -618,37 +618,37 @@ 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 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})};/*!
621
+ `),()=>{document.head.removeChild(y)}},[t]),x.jsx(zC,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const YC=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=nu(HC),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=x.jsx(GC,{isPresent:n,anchorX:c,children:e})),x.jsx(pa.Provider,{value:m,children:e})};function HC(){return new Map}function ag(e=!0){const t=I.useContext(pa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ga=e=>e.key||"";function lg(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const qC=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=ag(a),h=I.useMemo(()=>lg(e),[e]),m=a&&!u?[]:h.map(ga),g=I.useRef(!0),y=I.useRef(h),S=nu(()=>new Map),[v,E]=I.useState(h),[w,A]=I.useState(h);og(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ga(w[C]);m.includes(L)?S.delete(L):S.get(L)!==!0&&S.set(L,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let C=[...h];for(let L=0;L<w.length;L++){const j=w[L],F=ga(j);m.includes(F)||(C.splice(L,0,j),O.push(j))}return o==="wait"&&O.length&&(C=O),A(lg(C)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=I.useContext(tu);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ga(C),j=a&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(D==null||D(),A(y.current),a&&(d==null||d()),r&&r())};return x.jsx(YC,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},L)})})};function su(e,t){e.indexOf(t)===-1&&e.push(t)}function ou(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Rt=e=>e;let Ii=Rt,vr=Rt;process.env.NODE_ENV!=="production"&&(Ii=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const KC={useManualTiming:!1};function au(e){let t;return()=>(t===void 0&&(t=e()),t)}const Di=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let lu=class{constructor(){this.subscriptions=[]}add(t){return su(this.subscriptions,t),()=>ou(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const On=e=>e*1e3,Hn=e=>e/1e3;function cg(e,t){return t?e*(1e3/t):0}const ug=new Set;function ya(e,t,n){e||ug.has(t)||(console.warn(t),ug.add(t))}const XC=au(()=>window.ScrollTimeline!==void 0);let ZC=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(XC()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},JC=class extends ZC{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function cu(e,t){return e?e[t]||e.default||e:void 0}const uu=2e4;function fg(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<uu;)t+=n,r=e.next(t);return t>=uu?1/0:t}function fu(e){return typeof e=="function"}function dg(e,t){e.timeline=t,e.onfinish=null}const du=e=>Array.isArray(e)&&typeof e[0]=="number",QC={linearEasing:void 0};function eP(e,t){const n=au(e);return()=>{var r;return(r=QC[t])!==null&&r!==void 0?r:n()}}const va=eP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),hg=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Di(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function mg(e){return!!(typeof e=="function"&&va()||!e||typeof e=="string"&&(e in hu||va())||du(e)||Array.isArray(e)&&e.every(mg))}const Ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ws([0,.65,.55,1]),circOut:Ws([.55,0,1,.45]),backIn:Ws([.31,.01,.66,-.59]),backOut:Ws([.33,1.53,.69,.99])};function pg(e,t){if(e)return typeof e=="function"&&va()?hg(e,t):du(e)?Ws(e):Array.isArray(e)?e.map(n=>pg(n,t)||hu.easeOut):hu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],gg={value:null};function tP(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&gg.value&&gg.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const nP=40;function yg(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((w,A)=>(w[A]=tP(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,nP),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:ba.reduce((w,A)=>{const O=a[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<ba.length;A++)a[ba[A]].cancel(w)},state:i,steps:a}}const{schedule:Ye,cancel:br,state:yt,steps:mu}=yg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),{schedule:pu}=yg(queueMicrotask,!1);let xa;function rP(){xa=void 0}const Mn={now:()=>(xa===void 0&&Mn.set(yt.isProcessing||KC.useManualTiming?yt.timestamp:performance.now()),xa),set:e=>{xa=e,queueMicrotask(rP)}},yn={x:!1,y:!1};function vg(){return yn.x||yn.y}function iP(e){return e==="x"||e==="y"?yn[e]?null:(yn[e]=!0,()=>{yn[e]=!1}):yn.x||yn.y?null:(yn.x=yn.y=!0,()=>{yn.x=yn.y=!1})}function sP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function bg(e,t){const n=sP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function xg(e){return!(e.pointerType==="touch"||vg())}function oP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{if(!xg(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{xg(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const wg=(e,t)=>t?e===t?!0:wg(e,t.parentElement):!1,gu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,aP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function lP(e){return aP.has(e.tagName)||e.tabIndex!==-1}const zs=new WeakSet;function Sg(e){return t=>{t.key==="Enter"&&e(t)}}function yu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Sg(()=>{if(zs.has(n))return;yu(n,"down");const i=Sg(()=>{yu(n,"up")}),o=()=>yu(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Tg(e){return gu(e)&&!vg()}function uP(e,t,n={}){const[r,i,o]=bg(e,n),a=c=>{const u=c.currentTarget;if(!Tg(c)||zs.has(u))return;zs.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!Tg(y)||!zs.has(u))&&(zs.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||wg(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>cP(d,i)),!lP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const Eg=30,fP=e=>!isNaN(parseFloat(e));let dP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Mn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Mn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ya(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Eg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Eg);return cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gs(e,t){return new dP(e,t)}const Cg=I.createContext({strict:!1}),Pg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},$i={};for(const e in Pg)$i[e]={isEnabled:t=>Pg[e].some(n=>!!t[n])};function hP(e){for(const t in e)$i[t]={...$i[t],...e[t]}}const mP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function wa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||mP.has(e)}let Ag=e=>!wa(e);function pP(e){e&&(Ag=t=>t.startsWith("on")?!wa(t):e(t))}try{pP(require("@emotion/is-prop-valid").default)}catch{}function gP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ag(i)||n===!0&&wa(i)||!t&&!wa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ya(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Sa=I.createContext({});function Ta(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ys(e){return typeof e=="string"||Array.isArray(e)}const vu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bu=["initial",...vu];function Ea(e){return Ta(e.animate)||bu.some(t=>Ys(e[t]))}function Og(e){return!!(Ea(e)||e.variants)}function vP(e,t){if(Ea(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ys(n)?n:void 0,animate:Ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function bP(e){const{initial:t,animate:n}=vP(e,I.useContext(Sa));return I.useMemo(()=>({initial:t,animate:n}),[Mg(t),Mg(n)])}function Mg(e){return Array.isArray(e)?e.join(" "):e}const xP=Symbol.for("motionComponentSymbol");function Ri(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wP(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ri(n)&&(n.current=r))},[t])}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_g="data-"+xu("framerAppearId"),Ig=I.createContext({});function SP(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Sa),u=I.useContext(Cg),d=I.useContext(pa),h=I.useContext(iu).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Ig);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&TP(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[_g],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return og(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),pu.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function TP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dg(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Ri(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Dg(e){if(e)return e.options.allowProjection!==!1?e.projection:Dg(e.parent)}function EP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&hP(e);function c(d,h){let m;const g={...I.useContext(iu),...d,layoutId:CP(d)},{isStatic:y}=g,S=bP(d),v=r(d,y);if(!y&&ru){PP(g,e);const E=AP(g);m=E.MeasureLayout,S.visualElement=SP(i,v,g,t,E.ProjectionNode)}return x.jsxs(Sa.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,wP(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[xP]=i,u}function CP({layoutId:e}){const t=I.useContext(tu).id;return t&&e!==void 0?t+"-"+e:e}function PP(e,t){const n=I.useContext(Cg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ii(!1,r):vr(!1,r)}}function AP(e){const{drag:t,layout:n}=$i;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const $g=e=>t=>typeof t=="string"&&t.startsWith(e),wu=$g("--"),OP=$g("var(--"),Su=e=>OP(e)?MP.test(e.split("/*")[0].trim()):!1,MP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hs={};function _P(e){for(const t in e)Hs[t]=e[t],wu(t)&&(Hs[t].isCSSVariable=!0)}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qr=new Set(Li);function Rg(e,{layout:t,layoutId:n}){return qr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hs[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),Lg=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Ni={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},qs={...Ni,transform:e=>qn(0,1,e)},Ca={...Ni,default:1},Ks=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ks("deg"),_n=Ks("%"),we=Ks("px"),IP=Ks("vh"),DP=Ks("vw"),Ng={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},$P={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},RP={rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:Ca,scaleX:Ca,scaleY:Ca,scaleZ:Ca,skew:xr,skewX:xr,skewY:xr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:qs,originX:Ng,originY:Ng,originZ:we},kg={...Ni,transform:Math.round},Tu={...$P,...RP,zIndex:kg,size:we,fillOpacity:qs,strokeOpacity:qs,numOctaves:kg},LP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NP=Li.length;function kP(e,t,n){let r="",i=!0;for(let o=0;o<NP;o++){const a=Li[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Lg(c,Tu[a]);if(!u){i=!1;const h=LP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Eu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(qr.has(u)){a=!0;continue}else if(wu(u)){i[u]=d;continue}else{const h=Lg(d,Tu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=kP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const Cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fg(e,t,n){for(const r in t)!St(t[r])&&!Rg(r,n)&&(e[r]=t[r])}function FP({transformTemplate:e},t){return I.useMemo(()=>{const n=Cu();return Eu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jP(e,t){const n=e.style||{},r={};return Fg(r,n,e),Object.assign(r,FP(e,t)),r}function VP(e,t){const n={},r=jP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const BP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pu(e){return typeof e!="string"||e.includes("-")?!1:!!(BP.indexOf(e)>-1||/[A-Z]/u.test(e))}const UP={offset:"stroke-dashoffset",array:"stroke-dasharray"},WP={offset:"strokeDashoffset",array:"strokeDasharray"};function zP(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?UP:WP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function jg(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function GP(e,t,n){const r=jg(t,e.x,e.width),i=jg(n,e.y,e.height);return`${r} ${i}`}function Au(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Eu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=GP(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&zP(g,a,c,u,!1)}const Vg=()=>({...Cu(),attrs:{}}),Ou=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YP(e,t,n,r){const i=I.useMemo(()=>{const o=Vg();return Au(o,t,Ou(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Fg(o,e.style,e),i.style={...o,...i.style}}return i}function HP(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Pu(n)?YP:VP)(r,o,a,n),d=gP(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>St(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Bg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mu(e,t,n,r){if(typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Bg(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const _u=e=>Array.isArray(e),qP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KP=e=>_u(e)?e[e.length-1]||0:e;function Pa(e){const t=St(e)?e.get():e;return qP(t)?t.toValue():t}function XP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:ZP(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Ug=e=>(t,n)=>{const r=I.useContext(Sa),i=I.useContext(pa),o=()=>XP(e,t,r,i);return n?o():nu(o)};function ZP(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Pa(o[g]);let{initial:a,animate:c}=e;const u=Ea(e),d=Og(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ta(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Mu(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const A in w){let O=w[A];if(Array.isArray(O)){const D=h?O.length-1:0;O=O[D]}O!==null&&(i[A]=O)}for(const A in v)i[A]=v[A]}}}return i}function Iu(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||Rg(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const JP={useVisualState:Ug({scrapeMotionValuesFromProps:Iu,createRenderState:Cu})};function Wg(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function zg(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Gg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Yg(e,t,n,r){zg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Gg.has(i)?i:xu(i),t.attrs[i])}function Hg(e,t,n){const r=Iu(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Li.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const qg=["x","y","width","height","cx","cy","r"],QP={useVisualState:Ug({scrapeMotionValuesFromProps:Hg,createRenderState:Vg,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(qr.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<qg.length;c++){const u=qg[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{Wg(n,r),Ye.render(()=>{Au(r,i,Ou(n.tagName),e.transformTemplate),Yg(n,r)})})}})};function eA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Pu(r)?QP:JP,preloadedFeatures:e,useRender:HP(i),createVisualElement:t,Component:r};return EP(a)}}function Xs(e,t,n){const r=e.getProps();return Mu(r,t,n!==void 0?n:r.custom,e)}const Kg=new Set(["width","height","top","left","right","bottom",...Li]);function tA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gs(n))}function nA(e,t){const n=Xs(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=KP(o[a]);tA(e,a,c)}}function rA(e){return!!(St(e)&&e.add)}function Du(e,t){const n=e.getValue("willChange");if(rA(n))return n.add(t)}function Xg(e){return e.props[_g]}const Zg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,iA=1e-7,sA=12;function oA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=Zg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>iA&&++c<sA);return a}function Zs(e,t,n,r){if(e===t&&n===r)return Rt;const i=o=>oA(o,0,1,e,n);return o=>o===0||o===1?o:Zg(i(o),t,r)}const Jg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qg=e=>t=>1-e(1-t),e0=Zs(.33,1.53,.69,.99),$u=Qg(e0),t0=Jg($u),n0=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),Ru=e=>1-Math.sin(Math.acos(e)),r0=Qg(Ru),i0=Jg(Ru),s0=e=>/^0[^.\s]+$/u.test(e);function aA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||s0(e):!0}const Js=e=>Math.round(e*1e5)/1e5,Lu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lA(e){return e==null}const cA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nu=(e,t)=>n=>!!(typeof n=="string"&&cA.test(n)&&n.startsWith(e)||t&&!lA(n)&&Object.prototype.hasOwnProperty.call(n,t)),o0=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Lu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},uA=e=>qn(0,255,e),ku={...Ni,transform:e=>Math.round(uA(e))},Kr={test:Nu("rgb","red"),parse:o0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ku.transform(e)+", "+ku.transform(t)+", "+ku.transform(n)+", "+Js(qs.transform(r))+")"};function fA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Fu={test:Nu("#"),parse:fA,transform:Kr.transform},ki={test:Nu("hsl","hue"),parse:o0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(Js(t))+", "+_n.transform(Js(n))+", "+Js(qs.transform(r))+")"},Tt={test:e=>Kr.test(e)||Fu.test(e)||ki.test(e),parse:e=>Kr.test(e)?Kr.parse(e):ki.test(e)?ki.parse(e):Fu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kr.transform(e):ki.transform(e)},dA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Lu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(dA))===null||n===void 0?void 0:n.length)||0)>0}const a0="number",l0="color",mA="var",pA="var(",c0="${}",gA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(gA,u=>(Tt.test(u)?(r.color.push(o),i.push(l0),n.push(Tt.parse(u))):u.startsWith(pA)?(r.var.push(o),i.push(mA),n.push(u)):(r.number.push(o),i.push(a0),n.push(parseFloat(u))),++o,c0)).split(c0);return{values:n,split:c,indexes:r,types:i}}function u0(e){return Qs(e).values}function f0(e){const{split:t,types:n}=Qs(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===a0?o+=Js(i[a]):c===l0?o+=Tt.transform(i[a]):o+=i[a]}return o}}const yA=e=>typeof e=="number"?0:e;function vA(e){const t=u0(e);return f0(e)(t.map(yA))}const wr={test:hA,parse:u0,createTransformer:f0,getAnimatableNone:vA},bA=new Set(["brightness","contrast","saturate","opacity"]);function xA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lu)||[];if(!r)return e;const i=n.replace(r,"");let o=bA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const wA=/\b([a-z-]*)\(.*?\)/gu,ju={...wr,getAnimatableNone:e=>{const t=e.match(wA);return t?t.map(xA).join(" "):e}},SA={...Tu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},d0=e=>SA[e];function h0(e,t){let n=d0(e);return n!==ju&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const TA=new Set(["auto","none","0"]);function EA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!TA.has(o)&&Qs(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=h0(n,i)}const Xr=e=>e*180/Math.PI,Vu=e=>{const t=Xr(Math.atan2(e[1],e[0]));return Bu(t)},CA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vu,rotateZ:Vu,skewX:e=>Xr(Math.atan(e[1])),skewY:e=>Xr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bu=e=>(e=e%360,e<0&&(e+=360),e),m0=Vu,p0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),g0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:p0,scaleY:g0,scale:e=>(p0(e)+g0(e))/2,rotateX:e=>Bu(Xr(Math.atan2(e[6],e[5]))),rotateY:e=>Bu(Xr(Math.atan2(-e[2],e[0]))),rotateZ:m0,rotate:m0,skewX:e=>Xr(Math.atan(e[4])),skewY:e=>Xr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function y0(e){return e.includes("scale")?1:0}function Uu(e,t){if(!e||e==="none")return y0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=PA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=CA,i=c}if(!i)return y0(t);const o=r[t],a=i[1].split(",").map(OA);return typeof o=="function"?o(a):a[o]}const AA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Uu(n,t)};function OA(e){return parseFloat(e.trim())}const v0=e=>e===Ni||e===we,MA=new Set(["x","y","z"]),_A=Li.filter(e=>!MA.has(e));function IA(e){const t=[];return _A.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Uu(t,"x"),y:(e,{transform:t})=>Uu(t,"y")};Fi.translateX=Fi.x,Fi.translateY=Fi.y;const Zr=new Set;let Wu=!1,zu=!1;function b0(){if(zu){const e=Array.from(Zr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=IA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zu=!1,Wu=!1,Zr.forEach(e=>e.complete()),Zr.clear()}function x0(){Zr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zu=!0)})}function DA(){x0(),b0()}let Gu=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zr.add(this),Wu||(Wu=!0,Ye.read(x0),Ye.resolveKeyframes(b0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const w0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RA(e){const t=$A.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const LA=4;function S0(e,t,n=1){vr(n<=LA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=RA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return w0(a)?parseFloat(a):a}return Su(i)?S0(i,t,n+1):i}const T0=e=>t=>t.test(e),E0=[Ni,we,_n,xr,DP,IP,{test:e=>e==="auto",parse:e=>e}],C0=e=>E0.find(T0(e));let P0=class extends Gu{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Su(d))){const h=S0(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Kg.has(r)||t.length!==2)return;const[i,o]=t,a=C0(i),c=C0(o);if(a!==c)if(v0(a)&&v0(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)aA(t[i])&&r.push(i);r.length&&EA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Fi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}};const A0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function NA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function kA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=A0(i,t),c=A0(o,t);return Ii(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:NA(e)||(n==="spring"||fu(n))&&r}const FA=e=>e!==null;function Aa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(FA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const jA=40;let O0=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Mn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&DA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Mn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!kA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Aa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const tt=(e,t,n)=>e+(t-e)*n;function Yu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function VA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=Yu(u,c,e+1/3),o=Yu(u,c,e),a=Yu(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oa(e,t){return n=>n>0?t:e}const Hu=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},BA=[Fu,Kr,ki],UA=e=>BA.find(t=>t.test(e));function M0(e){const t=UA(e);if(Ii(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ki&&(n=VA(n)),n}const _0=(e,t)=>{const n=M0(e),r=M0(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Hu(n.red,r.red,o),i.green=Hu(n.green,r.green,o),i.blue=Hu(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),Kr.transform(i))},WA=(e,t)=>n=>t(e(n)),eo=(...e)=>e.reduce(WA),qu=new Set(["none","hidden"]);function zA(e,t){return qu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GA(e,t){return n=>tt(e,t,n)}function Ku(e){return typeof e=="number"?GA:typeof e=="string"?Su(e)?Oa:Tt.test(e)?_0:qA:Array.isArray(e)?I0:typeof e=="object"?Tt.test(e)?_0:YA:Oa}function I0(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Ku(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function YA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ku(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function HA(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const qA=(e,t)=>{const n=wr.createTransformer(t),r=Qs(e),i=Qs(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qu.has(e)&&!i.values.length||qu.has(t)&&!r.values.length?zA(e,t):eo(I0(HA(r,i),i.values),n):(Ii(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Oa(e,t))};function D0(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Ku(e)(e,t)}const KA=5;function $0(e,t,n){const r=Math.max(t-KA,0);return cg(n-e(r),t-r)}const nt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},R0=.001;function XA({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Ii(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(nt.minDamping,nt.maxDamping,a),e=qn(nt.minDuration,nt.maxDuration,Hn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=Xu(d,a),S=Math.exp(-m);return R0-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=Xu(Math.pow(d,2),a);return(-i(d)+R0>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=JA(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const ZA=12;function JA(e,t,n){let r=n;for(let i=1;i<ZA;i++)r=r-e(r)/t(r);return r}function Xu(e,t){return e*Math.sqrt(1-t*t)}const QA=["duration","bounce"],eO=["stiffness","damping","mass"];function L0(e,t){return t.some(n=>e[n]!==void 0)}function tO(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!L0(e,eO)&&L0(e,QA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:nt.mass,stiffness:i,damping:o}}else{const n=XA(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function N0(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=tO({...n,velocity:-Hn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Hn(Math.sqrt(u/h)),A=Math.abs(E)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),i||(i=A?nt.restDelta.granular:nt.restDelta.default);let O;if(v<1){const C=Xu(w,v);O=L=>{const j=Math.exp(-v*w*L);return a-j*((S+v*w*E)/C*Math.sin(C*L)+E*Math.cos(C*L))}}else if(v===1)O=C=>a-Math.exp(-w*C)*(E+(S+w*E)*C);else{const C=w*Math.sqrt(v*v-1);O=L=>{const j=Math.exp(-v*w*L),F=Math.min(C*L,300);return a-j*((S+v*w*E)*Math.sinh(F)+C*E*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let j=0;v<1&&(j=C===0?On(S):$0(O,C,L));const F=Math.abs(j)<=r,Y=Math.abs(a-L)<=i;c.done=F&&Y}return c.value=c.done?a:L,c},toString:()=>{const C=Math.min(fg(D),uu),L=hg(j=>D.next(C*j).value,C,30);return C+"ms "+L}};return D}function k0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const A=F=>-v*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),ee=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:ee};let C,L;const j=F=>{y(g.value)&&(C=F,L=N0({keyframes:[g.value,S(g.value)],velocity:$0(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),j(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const nO=Zs(.42,0,1,1),rO=Zs(0,0,.58,1),F0=Zs(.42,0,.58,1),iO=e=>Array.isArray(e)&&typeof e[0]!="number",j0={linear:Rt,easeIn:nO,easeInOut:F0,easeOut:rO,circIn:Ru,circInOut:i0,circOut:r0,backIn:$u,backInOut:t0,backOut:e0,anticipate:n0},V0=e=>{if(du(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zs(t,n,r,i)}else if(typeof e=="string")return vr(j0[e]!==void 0,`Invalid easing type '${e}'`),j0[e];return e};function sO(e,t,n){const r=[],i=n||D0,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Rt:t;c=eo(u,c)}r.push(c)}return r}function oO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(vr(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=sO(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Di(e[m],e[m+1],h);return c[m](g)};return n?h=>d(qn(e[0],e[o-1],h)):d}function aO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Di(0,t,r);e.push(tt(n,1,i))}}function lO(e){const t=[0];return aO(t,e.length-1),t}function cO(e,t){return e.map(n=>n*t)}function uO(e,t){return e.map(()=>t||F0).splice(0,e.length-1)}function to({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=iO(r)?r.map(V0):V0(r),o={done:!1,value:t[0]},a=cO(n&&n.length===t.length?n:lO(t),e),c=oO(a,t,{ease:Array.isArray(i)?i:uO(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const fO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>br(t),now:()=>yt.isProcessing?yt.timestamp:Mn.now()}},dO={decay:k0,inertia:k0,tween:to,keyframes:to,spring:N0},hO=e=>e/100;let Zu=class extends O0{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||Gu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=fu(n)?n:dO[n]||to;let u,d;process.env.NODE_ENV!=="production"&&c!==to&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==to&&typeof t[0]!="number"&&(u=eo(hO,D0(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fg(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,D=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,v&&(ee-=v/m)):S==="mirror"&&(D=a)),O=qn(0,1,ee)*m}const C=A?{done:!1,value:u[0]}:D.next(O);c&&(C.value=c(C.value));let{done:L}=C;!A&&d!==null&&(L=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return j&&i!==void 0&&(C.value=Aa(u,this.options,i)),E&&E(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=On(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=fO,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const mO=new Set(["opacity","clipPath","filter","transform"]);function pO(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=pg(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const gO=au(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ma=10,yO=2e4;function vO(e){return fu(e.type)||e.type==="spring"||!mg(e.ease)}function bO(e,t){const n=new Zu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<yO;)r=n.sample(o),i.push(r.value),o+=Ma;return{times:void 0,keyframes:i,duration:o-Ma,ease:"linear"}}const B0={anticipate:n0,backInOut:t0,circInOut:i0};function xO(e){return e in B0}let U0=class extends O0{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new P0(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&va()&&xO(o)&&(o=B0[o]),vO(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=bO(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=pO(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(dg(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Aa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=On(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Rt;const{animation:r}=n;dg(r,t)}return Rt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new Zu({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=On(this.time);d.setWithVelocity(S.sample(v-Ma).value,S.sample(v).value,Ma)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return gO()&&r&&mO.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const wO={type:"spring",stiffness:500,damping:25,restSpeed:10},SO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TO={type:"keyframes",duration:.8},EO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CO=(e,{keyframes:t})=>t.length>2?TO:qr.has(e)?e.startsWith("scale")?SO(t[1]):wO:EO;function PO({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ju=(e,t,n,r={},i,o)=>a=>{const c=cu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};PO(c)||(h={...h,...CO(e,h)}),h.duration&&(h.duration=On(h.duration)),h.repeatDelay&&(h.repeatDelay=On(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=Aa(h.keyframes,c);if(g!==void 0)return Ye.update(()=>{h.onUpdate(g),h.onComplete()}),new JC([])}return!o&&U0.supports(h)?new U0(h):new Zu(h)};function AO({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function W0(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&AO(h,m))continue;const S={delay:n,...cu(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=Xg(e);if(w){const A=window.MotionHandoffAnimation(w,m,Ye);A!==null&&(S.startTime=A,v=!0)}}Du(e,m),g.start(Ju(m,g,y,e.shouldReduceMotion&&Kg.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&nA(e,c)})}),d}function Qu(e,t,n={}){var r;const i=Xs(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(W0(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return OO(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function OO(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(MO).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Qu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function MO(e,t){return e.sortNodePosition(t)}function _O(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Qu(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Qu(e,t,n);else{const i=typeof t=="function"?Xs(e,t,n.custom):t;r=Promise.all(W0(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function z0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const IO=bu.length;function G0(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<IO;n++){const r=bu[n],i=e.props[r];(Ys(i)||i===!1)&&(t[r]=i)}return t}const DO=[...vu].reverse(),$O=vu.length;function RO(e){return t=>Promise.all(t.map(({animation:n,options:r})=>_O(e,n,r)))}function LO(e){let t=RO(e),n=Y0(),r=!0;const i=u=>(d,h)=>{var m;const g=Xs(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=G0(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<$O;E++){const w=DO[E],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=Ys(O),C=w===u?A.isActive:null;C===!1&&(S=E);let L=O===h[w]&&O!==d[w]&&D;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),A.protectedKeys={...y},!A.isActive&&C===null||!O&&!A.prevProp||Ta(O)||typeof O=="boolean")continue;const j=NO(A.prevProp,O);let F=j||w===u&&A.isActive&&!L&&D||E>S&&D,Y=!1;const ee=Array.isArray(O)?O:[O];let te=ee.reduce(i(w),{});C===!1&&(te={});const{prevResolvedValues:me={}}=A,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),A.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;_u(U)&&_u(H)?M=!z0(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):A.protectedKeys[B]=!0}A.prevProp=O,A.prevResolvedValues=te,A.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&j)||Y)&&m.push(...ee.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=Xs(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=A??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Y0(),r=!0}}}function NO(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z0(t,e):!1}function Jr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Y0(){return{animate:Jr(!0),whileInView:Jr(),whileHover:Jr(),whileTap:Jr(),whileDrag:Jr(),whileFocus:Jr(),exit:Jr()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},kO=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=LO(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ta(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},FO=0;const jO={animation:{Feature:kO},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=FO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function no(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ro(e){return{point:{x:e.pageX,y:e.pageY}}}const VO=e=>t=>gu(t)&&e(t,ro(t));function io(e,t,n,r){return no(e,t,VO(n),r)}function H0({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BO({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function UO(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const q0=1e-4,WO=1-q0,zO=1+q0,K0=.01,GO=0-K0,YO=0+K0;function Mt(e){return e.max-e.min}function HO(e,t,n){return Math.abs(e-t)<=n}function X0(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=WO&&e.scale<=zO||isNaN(e.scale))&&(e.scale=1),(e.translate>=GO&&e.translate<=YO||isNaN(e.translate))&&(e.translate=0)}function so(e,t,n,r){X0(e.x,t.x,n.x,r?r.originX:void 0),X0(e.y,t.y,n.y,r?r.originY:void 0)}function Z0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function qO(e,t,n){Z0(e.x,t.x,n.x),Z0(e.y,t.y,n.y)}function J0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function oo(e,t,n){J0(e.x,t.x,n.x),J0(e.y,t.y,n.y)}const Q0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ji=()=>({x:Q0(),y:Q0()}),ey=()=>({min:0,max:0}),at=()=>({x:ey(),y:ey()});function tn(e){return[e("x"),e("y")]}function ef(e){return e===void 0||e===1}function tf({scale:e,scaleX:t,scaleY:n}){return!ef(e)||!ef(t)||!ef(n)}function Qr(e){return tf(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return ny(e.x)||ny(e.y)}function ny(e){return e&&e!=="0%"}function _a(e,t,n){const r=e-n,i=t*r;return n+i}function ry(e,t,n,r,i){return i!==void 0&&(e=_a(e,i,r)),_a(e,n,r)+t}function nf(e,t=0,n=1,r,i){e.min=ry(e.min,t,n,r,i),e.max=ry(e.max,t,n,r,i)}function iy(e,{x:t,y:n}){nf(e.x,t.translate,t.scale,t.originPoint),nf(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,oy=1.0000000000001;function KO(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Bi(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,iy(e,a)),r&&Qr(o.latestValues)&&Bi(e,o.latestValues))}t.x<oy&&t.x>sy&&(t.x=1),t.y<oy&&t.y>sy&&(t.y=1)}function Vi(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);nf(e,t,n,o,r)}function Bi(e,t){ay(e.x,t.x,t.scaleX,t.scale,t.originX),ay(e.y,t.y,t.scaleY,t.scale,t.originY)}function ly(e,t){return H0(UO(e.getBoundingClientRect(),t))}function XO(e,t,n){const r=ly(e,n),{scroll:i}=t;return i&&(Vi(r.x,i.offset.x),Vi(r.y,i.offset.y)),r}const cy=({current:e})=>e?e.ownerDocument.defaultView:null,uy=(e,t)=>Math.abs(e-t);function ZO(e,t){const n=uy(e.x,t.x),r=uy(e.y,t.y);return Math.sqrt(n**2+r**2)}let fy=class{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=sf(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=ZO(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=yt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=rf(g,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=sf(m.type==="pointercancel"?this.lastMoveEventInfo:rf(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!gu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=ro(t),c=rf(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,sf(c,this.history)),this.removeListeners=eo(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),br(this.updatePoint)}};function rf(e,t){return t?{point:t(e.point)}:e}function dy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sf({point:e},t){return{point:e,delta:dy(e,hy(t)),offset:dy(e,JO(t)),velocity:QO(t,.1)}}function JO(e){return e[0]}function hy(e){return e[e.length-1]}function QO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=hy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function eM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?tt(n,e,r.max):Math.min(e,n)),e}function my(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function tM(e,{top:t,left:n,bottom:r,right:i}){return{x:my(e.x,n,i),y:my(e.y,t,r)}}function py(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function nM(e,t){return{x:py(e.x,t.x),y:py(e.y,t.y)}}function rM(e,t){let n=.5;const r=Mt(e),i=Mt(t);return i>r?n=Di(t.min,t.max-r,e.min):r>i&&(n=Di(e.min,e.max-i,t.min)),qn(0,1,n)}function iM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const of=.35;function sM(e=of){return e===!1?e=0:e===!0&&(e=of),{x:gy(e,"left","right"),y:gy(e,"top","bottom")}}function gy(e,t,n){return{min:yy(e,t),max:yy(e,n)}}function yy(e,t){return typeof e=="number"?e:e[t]||0}const oM=new WeakMap;let aM=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(ro(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=iP(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(_n.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[E];O&&(w=Mt(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&Ye.postRender(()=>S(h,m)),Du(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=lM(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new fy(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:cy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ia(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=eM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ri(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=tM(i.layoutBox,n):this.constraints=!1,this.elastic=sM(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=iM(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ri(t))return!1;const r=t.current;vr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=XO(r,i.root,this.visualElement.getTransformPagePoint());let a=nM(i.layout.layoutBox,o);if(n){const c=n(BO(a));this.hasMutatedConstraints=!!c,c&&(a=H0(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Ia(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Du(this.visualElement,t),r.start(Ju(t,r,0,n,this.visualElement,!1))}stopAnimation(){tn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){tn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Ia(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-tt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ri(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=rM({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),tn(a=>{if(!Ia(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(tt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;oM.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Ri(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Ye.read(r);const a=no(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(tn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=of,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ia(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function lM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let cM=class extends Sr{constructor(t){super(t),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new aM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}};const vy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let uM=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(t){this.session=new fy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:cy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:vy(t),onStart:vy(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ye.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function by(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ao={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=by(e,t.target.x),r=by(e,t.target.y);return`${n}% ${r}%`}},fM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wr.parse(e);if(i.length>5)return r;const o=wr.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let dM=class extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_P(hM),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Da.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function xy(e){const[t,n]=ag(),r=I.useContext(tu);return x.jsx(dM,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Ig),isPresent:t,safeToRemove:n})}const hM={borderRadius:{...ao,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ao,borderTopRightRadius:ao,borderBottomLeftRadius:ao,borderBottomRightRadius:ao,boxShadow:fM};function mM(e,t,n){const r=St(e)?e:Gs(e);return r.start(Ju("",r,t,n)),r.animation}function pM(e){return e instanceof SVGElement&&e.tagName!=="svg"}const gM=(e,t)=>e.depth-t.depth;let yM=class{constructor(){this.children=[],this.isDirty=!1}add(t){su(this.children,t),this.isDirty=!0}remove(t){ou(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(gM),this.isDirty=!1,this.children.forEach(t)}};function vM(e,t){const n=Mn.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(br(r),e(o-t))};return Ye.read(r,!0),()=>br(r)}const wy=["TopLeft","TopRight","BottomLeft","BottomRight"],bM=wy.length,Sy=e=>typeof e=="string"?parseFloat(e):e,Ty=e=>typeof e=="number"||we.test(e);function xM(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,wM(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,SM(r))):o&&(e.opacity=tt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<bM;a++){const c=`border${wy[a]}Radius`;let u=Ey(t,c),d=Ey(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ty(u)===Ty(d)?(e[c]=Math.max(tt(Sy(u),Sy(d),r),0),(_n.test(d)||_n.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function Ey(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wM=Cy(0,.5,r0),SM=Cy(.5,.95,Rt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Di(e,t,r))}function Py(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Py(e.x,t.x),Py(e.y,t.y)}function Ay(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Oy(e,t,n,r,i){return e-=t,e=_a(e,1/n,r),i!==void 0&&(e=_a(e,1/i,r)),e}function TM(e,t=0,n=1,r=.5,i,o=e,a=e){if(_n.test(t)&&(t=parseFloat(t),t=tt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=tt(o.min,o.max,r);e===o&&(c-=t),e.min=Oy(e.min,t,n,c,i),e.max=Oy(e.max,t,n,c,i)}function My(e,t,[n,r,i],o,a){TM(e,t[n],t[r],t[i],t.scale,o,a)}const EM=["x","scaleX","originX"],CM=["y","scaleY","originY"];function _y(e,t,n,r){My(e.x,t,EM,n?n.x:void 0,r?r.x:void 0),My(e.y,t,CM,n?n.y:void 0,r?r.y:void 0)}function Iy(e){return e.translate===0&&e.scale===1}function Dy(e){return Iy(e.x)&&Iy(e.y)}function $y(e,t){return e.min===t.min&&e.max===t.max}function PM(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ly(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function Ny(e){return Mt(e.x)/Mt(e.y)}function ky(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let AM=class{constructor(){this.members=[]}add(t){su(this.members,t),t.scheduleRender()}remove(t){if(ou(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function OM(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const af=["","X","Y","Z"],MM={visibility:"hidden"},Fy=1e3;let _M=0;function lf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function jy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Xg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&jy(r)}function Vy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=_M++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach($M),this.nodes.forEach(FM),this.nodes.forEach(jM),this.nodes.forEach(RM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new yM)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lu),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=pM(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=vM(g,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Uy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||zM,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!Ly(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const D={...cu(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||Uy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(VM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(By);return}this.isUpdating||this.nodes.forEach(NM),this.isUpdating=!1,this.nodes.forEach(kM),this.nodes.forEach(IM),this.nodes.forEach(DM),this.clearAllSnapshots();const c=Mn.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,mu.update.process(yt),mu.preRender.process(yt),mu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LM),this.sharedNodes.forEach(BM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Mt(this.snapshot.measuredBox.x)&&!Mt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=at(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!Dy(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||Qr(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),GM(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return at();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(YM))){const{scroll:h}=this.root;h&&(Vi(u.x,h.offset.x),Vi(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=at();if(nn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&nn(u,a),Vi(u.x,m.offset.x),Vi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Bi(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Qr(h.latestValues)&&Bi(u,h.latestValues)}return Qr(this.latestValues)&&Bi(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!Qr(d.latestValues))continue;tf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),_y(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return Qr(this.latestValues)&&_y(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==yt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),qO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),iy(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),oo(this.relativeTargetOrigin,this.target,y.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tf(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;nn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;KO(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Ay(this.prevProjectionDelta.x,this.projectionDelta.x),Ay(this.prevProjectionDelta.y,this.projectionDelta.y)),so(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!ky(this.projectionDelta.x,this.prevProjectionDelta.x)||!ky(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ji(),this.projectionDelta=ji(),this.projectionDeltaWithTransform=ji()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ji();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=at(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,A=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(WM));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;Wy(m.x,a.x,C),Wy(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(oo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UM(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&PM(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=at()),nn(O,this.relativeTarget)),v&&(this.animationValues=h,xM(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=mM(0,Fy,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&qy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Mt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=Mt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}nn(c,u),Bi(c,h),so(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new AM),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&lf("z",a,d,this.animationValues);for(let h=0;h<af.length;h++)lf(`rotate${af[h]}`,a,d,this.animationValues),lf(`skew${af[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return MM;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Pa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Qr(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=OM(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in Hs){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:A}=Hs[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const D=w.length;for(let C=0;C<D;C++)d[w[C]]=O}else A?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Pa(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(By),this.root.sharedNodes.clear()}}}function IM(e){e.updateLayout()}function DM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(g);g.min=r[m].min,g.max=g.min+y}):qy(o,n.layoutBox,r)&&tn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=Mt(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=ji();so(c,r,n.layoutBox);const u=ji();a?so(u,e.applyTransform(i,!0),n.measuredBox):so(u,r,n.layoutBox);const d=!Dy(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=at();oo(S,n.layoutBox,g.layoutBox);const v=at();oo(v,r,y.layoutBox),Ly(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $M(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LM(e){e.clearSnapshot()}function By(e){e.clearMeasurements()}function NM(e){e.isLayoutDirty=!1}function kM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Uy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function FM(e){e.resolveTargetDelta()}function jM(e){e.calcProjection()}function VM(e){e.resetSkewAndRotation()}function BM(e){e.removeLeadSnapshot()}function Wy(e,t,n){e.translate=tt(t.translate,0,n),e.scale=tt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function UM(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function WM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zM={duration:.45,ease:[.4,0,.1,1]},Gy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Yy=Gy("applewebkit/")&&!Gy("chrome/")?Math.round:Rt;function Hy(e){e.min=Yy(e.min),e.max=Yy(e.max)}function GM(e){Hy(e.x),Hy(e.y)}function qy(e,t,n){return e==="position"||e==="preserve-aspect"&&!HO(Ny(t),Ny(n),.2)}function YM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const HM=Vy({attachResizeListener:(e,t)=>no(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},Ky=Vy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cf.current){const e=new HM({});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qM={pan:{Feature:uM},drag:{Feature:cM,ProjectionNode:Ky,MeasureLayout:xy}};function Xy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let KM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=oP(t,(n,r)=>(Xy(this.node,r,"Start"),i=>Xy(this.node,i,"End"))))}unmount(){}},XM=class extends Sr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eo(no(this.node.current,"focus",()=>this.onFocus()),no(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Zy(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Ye.postRender(()=>o(t,ro(t)))}let ZM=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=uP(t,(n,r)=>(Zy(this.node,r,"Start"),(i,{success:o})=>Zy(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const uf=new WeakMap,ff=new WeakMap,JM=e=>{const t=uf.get(e.target);t&&t(e)},QM=e=>{e.forEach(JM)};function e_({root:e,...t}){const n=e||document;ff.has(n)||ff.set(n,{});const r=ff.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QM,{root:e,...t})),r[i]}function t_(e,t,n){const r=e_(t);return uf.set(e,n),r.observe(e),()=>{uf.delete(e),r.unobserve(e)}}const n_={some:0,all:1};let r_=class extends Sr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:n_[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return t_(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(i_(t,n))&&this.startObserver()}unmount(){}};function i_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const s_={inView:{Feature:r_},tap:{Feature:ZM},focus:{Feature:XM},hover:{Feature:KM}},o_={layout:{ProjectionNode:Ky,MeasureLayout:xy}},df={current:null},Jy={current:!1};function a_(){if(Jy.current=!0,!!ru)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>df.current=e.matches;e.addListener(t),t()}else df.current=!1}const l_=[...E0,Tt,wr],c_=e=>l_.find(T0(e)),u_=new WeakMap;function f_(e,t,n){for(const r in t){const i=t[r],o=n[r];if(St(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&ya(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Gs(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Gs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let d_=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Gu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Mn.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Ea(n),this.isVariantNode=Og(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&St(S)&&S.set(u[y],!1)}}mount(t){this.current=t,u_.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Jy.current||a_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:df.current,process.env.NODE_ENV!=="production"&&ya(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),br(this.notifyUpdate),br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=qr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in $i){const n=$i[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qy.length;r++){const i=Qy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=f_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(w0(i)||s0(i))?i=parseFloat(i):!c_(i)&&wr.test(n)&&(i=h0(t,n)),this.setBaseTarget(t,St(i)?i.get():i)),St(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Mu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},ev=class extends d_{constructor(){super(...arguments),this.KeyframeResolver=P0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function h_(e){return window.getComputedStyle(e)}let m_=class extends ev{constructor(){super(...arguments),this.type="html",this.renderInstance=zg}readValueFromInstance(t,n){if(qr.has(n))return AA(t,n);{const r=h_(t),i=(wu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ly(t,n)}build(t,n,r){Eu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Iu(t,n,r)}},p_=class extends ev{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Wg(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qr.has(n)){const r=d0(n);return r&&r.default||0}return n=Gg.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Hg(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Au(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yg(t,n,r,i)}mount(t){this.isSVGTag=Ou(t.tagName),super.mount(t)}};const g_=(e,t)=>Pu(e)?new p_(t):new m_(t,{allowProjection:e!==I.Fragment}),y_=eA({...jO,...s_,...qM,...o_},g_),hf=yP(y_),v_=500,mf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=I.useState(!0);let c=Qc,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=kC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=WC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=LC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=Qc;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=Qc}I.useEffect(()=>{if(r===0)return;const g=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(g)},[r]),I.useEffect(()=>{if(!o){const g=setTimeout(i,v_);return()=>clearTimeout(g)}},[o,i]);const m={initial:{opacity:0,y:50,scale:.9},animate:{opacity:1,y:0,scale:1,transition:{duration:.3,type:"spring",stiffness:300,damping:20}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeOut"}}};return x.jsx(qC,{onExitComplete:i,children:o&&x.jsx(hf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${d} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:x.jsxs("div",{className:"flex justify-between items-center p-3",children:[x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(Ie,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),x.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),x.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:x.jsx(Ie,{icon:UC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},tv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=I.useState("loading"),[a,c]=I.useState(t.loading);return I.useEffect(()=>{e.then(()=>{console.log("promise resolved"),o("success"),c(t.success)}).catch(()=>{console.log("promise rejected"),o("error"),c(t.error)}).finally(()=>{console.log("promise finally"),setTimeout(()=>{r()},(n==null?void 0:n.duration)||3e3)})},[e]),x.jsx(mf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
622
622
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
623
623
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
624
624
  * Copyright 2024 Fonticons, Inc.
625
- */const r_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},i_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},s_={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},zy=6048e5,o_=864e5,Gy=Symbol.for("constructDateFrom");function Wt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Gy in e?e[Gy](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Wt(t||e,e)}function Yy(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Wt(e,NaN);if(!t)return r;const i=r.getDate(),o=Wt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const l=o.getDate();return i>=l?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let a_={};function Ks(){return a_}function Li(e,t){var c,u,d,h;const n=Ks(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),l=(o<r?7:0)+o-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function Pa(e,t){return Li(e,{...t,weekStartsOn:1})}function Hy(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Wt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Pa(i),l=Wt(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=Pa(l);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function qy(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Aa(e,...t){const n=Wt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Oa(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function l_(e,t,n){const[r,i]=Aa(n==null?void 0:n.in,e,t),o=Oa(r),l=Oa(i),c=+o-qy(o),u=+l-qy(l);return Math.round((c-u)/o_)}function c_(e,t){const n=Hy(e,t),r=Wt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Pa(r)}function u_(e){return Wt(e,Date.now())}function Ky(e,t,n){const[r,i]=Aa(n==null?void 0:n.in,e,t);return+Oa(r)==+Oa(i)}function f_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function d_(e){return!(!f_(e)&&typeof e!="number"||isNaN(+pt(e)))}function h_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function m_(e,t){const[n,r]=Aa(e,t.start,t.end);return{start:n,end:r}}function p_(e,t){const{start:n,end:r}=m_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,l=i?r:n;l.setHours(0,0,0,0);let c=1;const u=[];for(;+l<=o;)u.push(Wt(n,l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return i?u.reverse():u}function g_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function y_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function v_(e,t){var c,u;const n=Ks(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),l=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+l),i.setHours(23,59,59,999),i}const b_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},x_=(e,t,n)=>{let r;const i=b_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ki(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const w_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},T_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},E_={date:ki({formats:w_,defaultWidth:"full"}),time:ki({formats:S_,defaultWidth:"full"}),dateTime:ki({formats:T_,defaultWidth:"full"})},C_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},P_=(e,t,n,r)=>C_[e];function Mn(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):l;i=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const A_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},O_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},M_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},__={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},I_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},D_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Mn({values:A_,defaultWidth:"wide"}),quarter:Mn({values:O_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Mn({values:M_,defaultWidth:"wide"}),day:Mn({values:__,defaultWidth:"wide"}),dayPeriod:Mn({values:I_,defaultWidth:"wide",formattingValues:D_,defaultFormattingWidth:"wide"})};function _n(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const l=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?N_(c,m=>m.test(l)):R_(c,m=>m.test(l));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(l.length);return{value:d,rest:h}}}function R_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function N_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Xy(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(i.length);return{value:l,rest:c}}}const L_=/^(\d+)(th|st|nd|rd)?/i,k_=/\d+/i,F_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},j_={any:[/^b/i,/^(a|c)/i]},V_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},B_={any:[/1/i,/2/i,/3/i,/4/i]},U_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},G_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Y_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},H_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},q_={ordinalNumber:Xy({matchPattern:L_,parsePattern:k_,valueCallback:e=>parseInt(e,10)}),era:_n({matchPatterns:F_,defaultMatchWidth:"wide",parsePatterns:j_,defaultParseWidth:"any"}),quarter:_n({matchPatterns:V_,defaultMatchWidth:"wide",parsePatterns:B_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_n({matchPatterns:U_,defaultMatchWidth:"wide",parsePatterns:W_,defaultParseWidth:"any"}),day:_n({matchPatterns:z_,defaultMatchWidth:"wide",parsePatterns:G_,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:Y_,defaultMatchWidth:"any",parsePatterns:H_,defaultParseWidth:"any"})},Zy={code:"en-US",formatDistance:x_,formatLong:E_,formatRelative:P_,localize:$_,match:q_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function K_(e,t){const n=pt(e,t==null?void 0:t.in);return l_(n,y_(n))+1}function X_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Pa(n)-+c_(n);return Math.round(r/zy)+1}function Jy(e,t){var h,m,g,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ks(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(g=i.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,l=Wt((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,o),l.setHours(0,0,0,0);const c=Li(l,t),u=Wt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Li(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function Z_(e,t){var c,u,d,h;const n=Ks(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=Jy(e,t),o=Wt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Li(o,t)}function J_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Li(n,t)-+Z_(n,t);return Math.round(r/zy)+1}function Be(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const br={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Be(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Be(i,t.length)}},Fi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qy={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return br.y(e,t)},Y:function(e,t,n,r){const i=Jy(e,r),o=i>0?i:1-i;if(t==="YY"){const l=o%100;return Be(l,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Be(o,t.length)},R:function(e,t){const n=Hy(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return br.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=J_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Be(i,t.length)},I:function(e,t,n){const r=X_(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):br.d(e,t)},D:function(e,t,n){const r=K_(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Be(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Be(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Be(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Be(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Fi.noon:r===0?i=Fi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Fi.evening:r>=12?i=Fi.afternoon:r>=4?i=Fi.morning:i=Fi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return br.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):br.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):br.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):br.s(e,t)},S:function(e,t){return br.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return tv(r);case"XXXX":case"XX":return Xr(r);case"XXXXX":case"XXX":default:return Xr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return tv(r);case"xxxx":case"xx":return Xr(r);case"xxxxx":case"xxx":default:return Xr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ev(r,":");case"OOOO":default:return"GMT"+Xr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ev(r,":");case"zzzz":default:return"GMT"+Xr(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Be(r,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function ev(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Be(o,2)}function tv(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):Xr(e,t)}function Xr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Be(Math.trunc(r/60),2),o=Be(r%60,2);return n+i+t+o}const nv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Q_={p:rv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return nv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",nv(r,t)).replace("{{time}}",rv(i,t))}},eI=/^D+$/,tI=/^Y+$/,nI=["D","DD","YY","YYYY"];function rI(e){return eI.test(e)}function iI(e){return tI.test(e)}function sI(e,t,n){const r=oI(e,t,n);if(console.warn(r),nI.includes(e))throw new RangeError(r)}function oI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const aI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cI=/^'([^]*?)'?$/,uI=/''/g,fI=/[a-zA-Z]/;function Yn(e,t,n){var h,m,g,y,S,b,P,w;const r=Ks(),i=(n==null?void 0:n.locale)??r.locale??Zy,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,l=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((w=(P=r.locale)==null?void 0:P.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!d_(c))throw new RangeError("Invalid time value");let u=t.match(lI).map(A=>{const O=A[0];if(O==="p"||O==="P"){const D=Q_[O];return D(A,i.formatLong)}return A}).join("").match(aI).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const O=A[0];if(O==="'")return{isToken:!1,value:dI(A)};if(Qy[O])return{isToken:!0,value:A};if(O.match(fI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:l,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const O=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&iI(O)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&rI(O))&&sI(O,t,String(e));const D=Qy[O[0]];return D(c,O,i.localize,d)}).join("")}function dI(e){const t=e.match(cI);return t?t[1].replace(uI,"'"):e}function hI(e,t,n){const[r,i]=Aa(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function mI(e,t){return Ky(Wt(e,e),u_(e))}function iv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function ov(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function pI(e,t,n){return Yy(e,-1,n)}const gI={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},yI=(e,t,n)=>{let r;const i=gI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},vI={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},bI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wI={date:ki({formats:vI,defaultWidth:"full"}),time:ki({formats:bI,defaultWidth:"full"}),dateTime:ki({formats:xI,defaultWidth:"full"})},SI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},TI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},EI=(e,t,n,r)=>t.getHours()!==1?TI[e]:SI[e],CI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},PI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},AI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},OI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},MI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},_I={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},II={ordinalNumber:(e,t)=>Number(e)+"º",era:Mn({values:CI,defaultWidth:"wide"}),quarter:Mn({values:PI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:Mn({values:AI,defaultWidth:"wide"}),day:Mn({values:OI,defaultWidth:"wide"}),dayPeriod:Mn({values:MI,defaultWidth:"wide",formattingValues:_I,defaultFormattingWidth:"wide"})},DI=/^(\d+)(º)?/i,$I=/\d+/i,RI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},NI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},LI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},kI={any:[/1/i,/2/i,/3/i,/4/i]},FI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},jI={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},VI={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},BI={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},UI={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},WI={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},zI={ordinalNumber:Xy({matchPattern:DI,parsePattern:$I,valueCallback:function(e){return parseInt(e,10)}}),era:_n({matchPatterns:RI,defaultMatchWidth:"wide",parsePatterns:NI,defaultParseWidth:"any"}),quarter:_n({matchPatterns:LI,defaultMatchWidth:"wide",parsePatterns:kI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_n({matchPatterns:FI,defaultMatchWidth:"wide",parsePatterns:jI,defaultParseWidth:"any"}),day:_n({matchPatterns:VI,defaultMatchWidth:"wide",parsePatterns:BI,defaultParseWidth:"any"}),dayPeriod:_n({matchPatterns:UI,defaultMatchWidth:"any",parsePatterns:WI,defaultParseWidth:"any"})},ji={code:"es",formatDistance:yI,formatLong:wI,formatRelative:EI,localize:II,match:zI,options:{weekStartsOn:1,firstWeekContainsDate:1}},av=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),uf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},GI=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return av(Yn(r,t,{locale:{en:Zy,es:ji}[n]}))},YI=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function lv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const cv=e=>e;var Xs={exports:{}};/**
625
+ */const b_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},x_={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},nv={prefix:"fas",iconName:"x",icon:[384,512,[120],"58","M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z"]},rv=6048e5,w_=864e5,iv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iv in e?e[iv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function sv(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const i=r.getDate(),o=Gt(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}let S_={};function lo(){return S_}function Ui(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function $a(e,t){return Ui(e,{...t,weekStartsOn:1})}function ov(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Gt(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=$a(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=$a(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function av(e){const t=pt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ra(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function La(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function T_(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-av(o),u=+a-av(a);return Math.round((c-u)/w_)}function E_(e,t){const n=ov(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$a(r)}function C_(e){return Gt(e,Date.now())}function lv(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function P_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function A_(e){return!(!P_(e)&&typeof e!="number"||isNaN(+pt(e)))}function O_(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function M_(e,t){const[n,r]=Ra(e,t.start,t.end);return{start:n,end:r}}function __(e,t){const{start:n,end:r}=M_(t==null?void 0:t.in,e);let i=+n>+r;const o=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Gt(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return i?u.reverse():u}function I_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function D_(e,t){const n=pt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $_(e,t){var c,u;const n=lo(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=pt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?-7:0)+6-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const R_={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},L_=(e,t,n)=>{let r;const i=R_[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Wi(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const N_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},F_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},j_={date:Wi({formats:N_,defaultWidth:"full"}),time:Wi({formats:k_,defaultWidth:"full"}),dateTime:Wi({formats:F_,defaultWidth:"full"})},V_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},B_=(e,t,n,r)=>V_[e];function In(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;i=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const U_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},W_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},z_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Y_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},H_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},q_={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:In({values:U_,defaultWidth:"wide"}),quarter:In({values:W_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:In({values:z_,defaultWidth:"wide"}),day:In({values:G_,defaultWidth:"wide"}),dayPeriod:In({values:Y_,defaultWidth:"wide",formattingValues:H_,defaultFormattingWidth:"wide"})};function Dn(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?X_(c,m=>m.test(a)):K_(c,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(a.length);return{value:d,rest:h}}}function K_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function X_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cv(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const c=t.slice(i.length);return{value:a,rest:c}}}const Z_=/^(\d+)(th|st|nd|rd)?/i,J_=/\d+/i,Q_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},eI={any:[/^b/i,/^(a|c)/i]},tI={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nI={any:[/1/i,/2/i,/3/i,/4/i]},rI={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iI={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sI={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oI={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aI={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lI={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cI={ordinalNumber:cv({matchPattern:Z_,parsePattern:J_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:Q_,defaultMatchWidth:"wide",parsePatterns:eI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:tI,defaultMatchWidth:"wide",parsePatterns:nI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:rI,defaultMatchWidth:"wide",parsePatterns:iI,defaultParseWidth:"any"}),day:Dn({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:aI,defaultMatchWidth:"any",parsePatterns:lI,defaultParseWidth:"any"})},uv={code:"en-US",formatDistance:L_,formatLong:j_,formatRelative:B_,localize:q_,match:cI,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uI(e,t){const n=pt(e,t==null?void 0:t.in);return T_(n,D_(n))+1}function fI(e,t){const n=pt(e,t==null?void 0:t.in),r=+$a(n)-+E_(n);return Math.round(r/rv)+1}function fv(e,t){var h,m,g,y;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=lo(),o=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((y=(g=i.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ui(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ui(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function dI(e,t){var c,u,d,h;const n=lo(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,i=fv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ui(o,t)}function hI(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ui(n,t)-+dI(n,t);return Math.round(r/rv)+1}function Be(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Tr={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Be(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Be(n+1,2)},d(e,t){return Be(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Be(e.getHours()%12||12,t.length)},H(e,t){return Be(e.getHours(),t.length)},m(e,t){return Be(e.getMinutes(),t.length)},s(e,t){return Be(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Be(i,t.length)}},zi={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},dv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Tr.y(e,t)},Y:function(e,t,n,r){const i=fv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Be(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Be(o,t.length)},R:function(e,t){const n=ov(e);return Be(n,t.length)},u:function(e,t){const n=e.getFullYear();return Be(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Be(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Be(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Tr.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Be(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=hI(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Be(i,t.length)},I:function(e,t,n){const r=fI(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Be(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Tr.d(e,t)},D:function(e,t,n){const r=uI(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Be(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Be(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Be(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Be(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=zi.noon:r===0?i=zi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=zi.evening:r>=12?i=zi.afternoon:r>=4?i=zi.morning:i=zi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Tr.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Tr.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Be(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Tr.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Tr.s(e,t)},S:function(e,t){return Tr.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mv(r);case"XXXX":case"XX":return ei(r);case"XXXXX":case"XXX":default:return ei(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mv(r);case"xxxx":case"xx":return ei(r);case"xxxxx":case"xxx":default:return ei(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hv(r,":");case"OOOO":default:return"GMT"+ei(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hv(r,":");case"zzzz":default:return"GMT"+ei(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Be(r,t.length)},T:function(e,t,n){return Be(+e,t.length)}};function hv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Be(o,2)}function mv(e,t){return e%60===0?(e>0?"-":"+")+Be(Math.abs(e)/60,2):ei(e,t)}function ei(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Be(Math.trunc(r/60),2),o=Be(r%60,2);return n+i+t+o}const pv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},mI={p:gv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return pv(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pv(r,t)).replace("{{time}}",gv(i,t))}},pI=/^D+$/,gI=/^Y+$/,yI=["D","DD","YY","YYYY"];function vI(e){return pI.test(e)}function bI(e){return gI.test(e)}function xI(e,t,n){const r=wI(e,t,n);if(console.warn(r),yI.includes(e))throw new RangeError(r)}function wI(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const SI=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TI=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,EI=/^'([^]*?)'?$/,CI=/''/g,PI=/[a-zA-Z]/;function $n(e,t,n){var h,m,g,y,S,v,E,w;const r=lo(),i=(n==null?void 0:n.locale)??r.locale??uv,o=(n==null?void 0:n.firstWeekContainsDate)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??r.firstWeekContainsDate??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((v=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((w=(E=r.locale)==null?void 0:E.options)==null?void 0:w.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!A_(c))throw new RangeError("Invalid time value");let u=t.match(TI).map(A=>{const O=A[0];if(O==="p"||O==="P"){const D=mI[O];return D(A,i.formatLong)}return A}).join("").match(SI).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const O=A[0];if(O==="'")return{isToken:!1,value:AI(A)};if(dv[O])return{isToken:!0,value:A};if(O.match(PI))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return{isToken:!1,value:A}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(A=>{if(!A.isToken)return A.value;const O=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&bI(O)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&vI(O))&&xI(O,t,String(e));const D=dv[O[0]];return D(c,O,i.localize,d)}).join("")}function AI(e){const t=e.match(EI);return t?t[1].replace(CI,"'"):e}function OI(e,t,n){const[r,i]=Ra(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function MI(e,t){return lv(Gt(e,e),C_(e))}function yv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function vv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function bv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function _I(e,t,n){return sv(e,-1,n)}const II={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},DI=(e,t,n)=>{let r;const i=II[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},$I={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},RI={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LI={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NI={date:Wi({formats:$I,defaultWidth:"full"}),time:Wi({formats:RI,defaultWidth:"full"}),dateTime:Wi({formats:LI,defaultWidth:"full"})},kI={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},FI={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},jI=(e,t,n,r)=>t.getHours()!==1?FI[e]:kI[e],VI={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},BI={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},UI={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},WI={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},zI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},GI={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},YI={ordinalNumber:(e,t)=>Number(e)+"º",era:In({values:VI,defaultWidth:"wide"}),quarter:In({values:BI,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:In({values:UI,defaultWidth:"wide"}),day:In({values:WI,defaultWidth:"wide"}),dayPeriod:In({values:zI,defaultWidth:"wide",formattingValues:GI,defaultFormattingWidth:"wide"})},HI=/^(\d+)(º)?/i,qI=/\d+/i,KI={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},XI={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ZI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},JI={any:[/1/i,/2/i,/3/i,/4/i]},QI={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},eD={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},tD={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},nD={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},rD={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},iD={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},sD={ordinalNumber:cv({matchPattern:HI,parsePattern:qI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:KI,defaultMatchWidth:"wide",parsePatterns:XI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:ZI,defaultMatchWidth:"wide",parsePatterns:JI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:QI,defaultMatchWidth:"wide",parsePatterns:eD,defaultParseWidth:"any"}),day:Dn({matchPatterns:tD,defaultMatchWidth:"wide",parsePatterns:nD,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:rD,defaultMatchWidth:"any",parsePatterns:iD,defaultParseWidth:"any"})},Gi={code:"es",formatDistance:DI,formatLong:NI,formatRelative:jI,localize:YI,match:sD,options:{weekStartsOn:1,firstWeekContainsDate:1}},xv=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),pf=e=>{if(!e)return"#9CA1B6";let t=0,n;for(n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return r},oD=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return xv($n(r,t,{locale:{en:uv,es:Gi}[n]}))},aD=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=i=>n(i)});function wv(e,t){if(e<0)throw new Error("El valor en bytes no puede ser negativo");const r={b:{divisor:1,label:"B"},kb:{divisor:1024,label:"KB"},mb:{divisor:1024*1024,label:"MB"},gb:{divisor:1024*1024*1024,label:"GB"},tb:{divisor:1024*1024*1024*1024,label:"TB"},pb:{divisor:1024*1024*1024*1024*1024,label:"PB"}}[t];if(!r)throw new Error(`Unidad de medida '${t}' no reconocida`);return`${(e/r.divisor).toFixed(2).replace(/\.?0+$/,"")} ${r.label}`}const Sv=e=>e;var co={exports:{}};/**
626
626
  * @license
627
627
  * Lodash <https://lodash.com/>
628
628
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
629
629
  * Released under MIT license <https://lodash.com/license>
630
630
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
631
631
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
632
- */var 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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},L3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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
- /* [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??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+=`' +
632
+ */var lD=co.exports,Tv;function cD(){return Tv||(Tv=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,g=2,y=4,S=1,v=2,E=1,w=2,A=4,O=8,D=16,C=32,L=64,j=128,F=256,Y=512,ee=30,te="...",me=800,de=16,le=1,re=2,ie=3,B=1/0,U=9007199254740991,H=17976931348623157e292,M=NaN,N=4294967295,K=N-1,Q=N>>>1,ue=[["ary",j],["bind",E],["bindKey",w],["curry",O],["curryRight",D],["flip",Y],["partial",C],["partialRight",L],["rearg",F]],X="[object Arguments]",ce="[object Array]",he="[object AsyncFunction]",oe="[object Boolean]",ge="[object Date]",Ce="[object DOMException]",Ue="[object Error]",ne="[object Function]",ye="[object GeneratorFunction]",Ne="[object Map]",ft="[object Number]",mi="[object Null]",dt="[object Object]",vl="[object Promise]",bl="[object Proxy]",pi="[object RegExp]",qt="[object Set]",bn="[object String]",gi="[object Symbol]",xl="[object Undefined]",Lr="[object WeakMap]",wl="[object WeakSet]",be="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",rr="[object Int8Array]",fh="[object Int16Array]",dh="[object Int32Array]",hh="[object Uint8Array]",mh="[object Uint8ClampedArray]",ph="[object Uint16Array]",gh="[object Uint32Array]",dk=/\b__p \+= '';/g,hk=/\b(__p \+=) '' \+/g,mk=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Lw=/&(?:amp|lt|gt|quot|#39);/g,Nw=/[&<>"']/g,pk=RegExp(Lw.source),gk=RegExp(Nw.source),yk=/<%-([\s\S]+?)%>/g,vk=/<%([\s\S]+?)%>/g,kw=/<%=([\s\S]+?)%>/g,bk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xk=/^\w*$/,wk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yh=/[\\^$.*+?()[\]{}|]/g,Sk=RegExp(yh.source),vh=/^\s+/,Tk=/\s/,Ek=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ck=/\{\n\/\* \[wrapped with (.+)\] \*/,Pk=/,? & /,Ak=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ok=/[()=,{}\[\]\/\s]/,Mk=/\\(\\)?/g,_k=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fw=/\w*$/,Ik=/^[-+]0x[0-9a-f]+$/i,Dk=/^0b[01]+$/i,$k=/^\[object .+?Constructor\]$/,Rk=/^0o[0-7]+$/i,Lk=/^(?:0|[1-9]\d*)$/,Nk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sl=/($^)/,kk=/['\n\r\u2028\u2029\\]/g,Tl="\\ud800-\\udfff",Fk="\\u0300-\\u036f",jk="\\ufe20-\\ufe2f",Vk="\\u20d0-\\u20ff",jw=Fk+jk+Vk,Vw="\\u2700-\\u27bf",Bw="a-z\\xdf-\\xf6\\xf8-\\xff",Bk="\\xac\\xb1\\xd7\\xf7",Uk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Wk="\\u2000-\\u206f",zk=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Uw="A-Z\\xc0-\\xd6\\xd8-\\xde",Ww="\\ufe0e\\ufe0f",zw=Bk+Uk+Wk+zk,bh="['’]",Gk="["+Tl+"]",Gw="["+zw+"]",El="["+jw+"]",Yw="\\d+",Yk="["+Vw+"]",Hw="["+Bw+"]",qw="[^"+Tl+zw+Yw+Vw+Bw+Uw+"]",xh="\\ud83c[\\udffb-\\udfff]",Hk="(?:"+El+"|"+xh+")",Kw="[^"+Tl+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",xs="["+Uw+"]",Xw="\\u200d",Zw="(?:"+Hw+"|"+qw+")",qk="(?:"+xs+"|"+qw+")",Jw="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",Qw="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",eS=Hk+"?",tS="["+Ww+"]?",Kk="(?:"+Xw+"(?:"+[Kw,wh,Sh].join("|")+")"+tS+eS+")*",Xk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nS=tS+eS+Kk,Jk="(?:"+[Yk,wh,Sh].join("|")+")"+nS,Qk="(?:"+[Kw+El+"?",El,wh,Sh,Gk].join("|")+")",e3=RegExp(bh,"g"),t3=RegExp(El,"g"),Th=RegExp(xh+"(?="+xh+")|"+Qk+nS,"g"),n3=RegExp([xs+"?"+Hw+"+"+Jw+"(?="+[Gw,xs,"$"].join("|")+")",qk+"+"+Qw+"(?="+[Gw,xs+Zw,"$"].join("|")+")",xs+"?"+Zw+"+"+Jw,xs+"+"+Qw,Zk,Xk,Yw,Jk].join("|"),"g"),r3=RegExp("["+Xw+Tl+jw+Ww+"]"),i3=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,s3=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],o3=-1,Je={};Je[Pt]=Je[xn]=Je[rr]=Je[fh]=Je[dh]=Je[hh]=Je[mh]=Je[ph]=Je[gh]=!0,Je[X]=Je[ce]=Je[be]=Je[oe]=Je[Qe]=Je[ge]=Je[Ue]=Je[ne]=Je[Ne]=Je[ft]=Je[dt]=Je[pi]=Je[qt]=Je[bn]=Je[Lr]=!1;var Ke={};Ke[X]=Ke[ce]=Ke[be]=Ke[Qe]=Ke[oe]=Ke[ge]=Ke[Pt]=Ke[xn]=Ke[rr]=Ke[fh]=Ke[dh]=Ke[Ne]=Ke[ft]=Ke[dt]=Ke[pi]=Ke[qt]=Ke[bn]=Ke[gi]=Ke[hh]=Ke[mh]=Ke[ph]=Ke[gh]=!0,Ke[Ue]=Ke[ne]=Ke[Lr]=!1;var a3={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},l3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c3={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},u3={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},f3=parseFloat,d3=parseInt,rS=typeof Qo=="object"&&Qo&&Qo.Object===Object&&Qo,h3=typeof self=="object"&&self&&self.Object===Object&&self,bt=rS||h3||Function("return this")(),Eh=t&&!t.nodeType&&t,yi=Eh&&!0&&e&&!e.nodeType&&e,iS=yi&&yi.exports===Eh,Ch=iS&&rS.process,cn=function(){try{var R=yi&&yi.require&&yi.require("util").types;return R||Ch&&Ch.binding&&Ch.binding("util")}catch{}}(),sS=cn&&cn.isArrayBuffer,oS=cn&&cn.isDate,aS=cn&&cn.isMap,lS=cn&&cn.isRegExp,cS=cn&&cn.isSet,uS=cn&&cn.isTypedArray;function Kt(R,W,V){switch(V.length){case 0:return R.call(W);case 1:return R.call(W,V[0]);case 2:return R.call(W,V[0],V[1]);case 3:return R.call(W,V[0],V[1],V[2])}return R.apply(W,V)}function m3(R,W,V,fe){for(var Pe=-1,ke=R==null?0:R.length;++Pe<ke;){var ht=R[Pe];W(fe,ht,V(ht),R)}return fe}function un(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe&&W(R[V],V,R)!==!1;);return R}function p3(R,W){for(var V=R==null?0:R.length;V--&&W(R[V],V,R)!==!1;);return R}function fS(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe;)if(!W(R[V],V,R))return!1;return!0}function Nr(R,W){for(var V=-1,fe=R==null?0:R.length,Pe=0,ke=[];++V<fe;){var ht=R[V];W(ht,V,R)&&(ke[Pe++]=ht)}return ke}function Cl(R,W){var V=R==null?0:R.length;return!!V&&ws(R,W,0)>-1}function Ph(R,W,V){for(var fe=-1,Pe=R==null?0:R.length;++fe<Pe;)if(V(W,R[fe]))return!0;return!1}function et(R,W){for(var V=-1,fe=R==null?0:R.length,Pe=Array(fe);++V<fe;)Pe[V]=W(R[V],V,R);return Pe}function kr(R,W){for(var V=-1,fe=W.length,Pe=R.length;++V<fe;)R[Pe+V]=W[V];return R}function Ah(R,W,V,fe){var Pe=-1,ke=R==null?0:R.length;for(fe&&ke&&(V=R[++Pe]);++Pe<ke;)V=W(V,R[Pe],Pe,R);return V}function g3(R,W,V,fe){var Pe=R==null?0:R.length;for(fe&&Pe&&(V=R[--Pe]);Pe--;)V=W(V,R[Pe],Pe,R);return V}function Oh(R,W){for(var V=-1,fe=R==null?0:R.length;++V<fe;)if(W(R[V],V,R))return!0;return!1}var y3=Mh("length");function v3(R){return R.split("")}function b3(R){return R.match(Ak)||[]}function dS(R,W,V){var fe;return V(R,function(Pe,ke,ht){if(W(Pe,ke,ht))return fe=ke,!1}),fe}function Pl(R,W,V,fe){for(var Pe=R.length,ke=V+(fe?1:-1);fe?ke--:++ke<Pe;)if(W(R[ke],ke,R))return ke;return-1}function ws(R,W,V){return W===W?I3(R,W,V):Pl(R,hS,V)}function x3(R,W,V,fe){for(var Pe=V-1,ke=R.length;++Pe<ke;)if(fe(R[Pe],W))return Pe;return-1}function hS(R){return R!==R}function mS(R,W){var V=R==null?0:R.length;return V?Ih(R,W)/V:M}function Mh(R){return function(W){return W==null?n:W[R]}}function _h(R){return function(W){return R==null?n:R[W]}}function pS(R,W,V,fe,Pe){return Pe(R,function(ke,ht,Ge){V=fe?(fe=!1,ke):W(V,ke,ht,Ge)}),V}function w3(R,W){var V=R.length;for(R.sort(W);V--;)R[V]=R[V].value;return R}function Ih(R,W){for(var V,fe=-1,Pe=R.length;++fe<Pe;){var ke=W(R[fe]);ke!==n&&(V=V===n?ke:V+ke)}return V}function Dh(R,W){for(var V=-1,fe=Array(R);++V<R;)fe[V]=W(V);return fe}function S3(R,W){return et(W,function(V){return[V,R[V]]})}function gS(R){return R&&R.slice(0,xS(R)+1).replace(vh,"")}function Xt(R){return function(W){return R(W)}}function $h(R,W){return et(W,function(V){return R[V]})}function Fo(R,W){return R.has(W)}function yS(R,W){for(var V=-1,fe=R.length;++V<fe&&ws(W,R[V],0)>-1;);return V}function vS(R,W){for(var V=R.length;V--&&ws(W,R[V],0)>-1;);return V}function T3(R,W){for(var V=R.length,fe=0;V--;)R[V]===W&&++fe;return fe}var E3=_h(a3),C3=_h(l3);function P3(R){return"\\"+u3[R]}function A3(R,W){return R==null?n:R[W]}function Ss(R){return r3.test(R)}function O3(R){return i3.test(R)}function M3(R){for(var W,V=[];!(W=R.next()).done;)V.push(W.value);return V}function Rh(R){var W=-1,V=Array(R.size);return R.forEach(function(fe,Pe){V[++W]=[Pe,fe]}),V}function bS(R,W){return function(V){return R(W(V))}}function Fr(R,W){for(var V=-1,fe=R.length,Pe=0,ke=[];++V<fe;){var ht=R[V];(ht===W||ht===h)&&(R[V]=h,ke[Pe++]=V)}return ke}function Al(R){var W=-1,V=Array(R.size);return R.forEach(function(fe){V[++W]=fe}),V}function _3(R){var W=-1,V=Array(R.size);return R.forEach(function(fe){V[++W]=[fe,fe]}),V}function I3(R,W,V){for(var fe=V-1,Pe=R.length;++fe<Pe;)if(R[fe]===W)return fe;return-1}function D3(R,W,V){for(var fe=V+1;fe--;)if(R[fe]===W)return fe;return fe}function Ts(R){return Ss(R)?R3(R):y3(R)}function wn(R){return Ss(R)?L3(R):v3(R)}function xS(R){for(var W=R.length;W--&&Tk.test(R.charAt(W)););return W}var $3=_h(c3);function R3(R){for(var W=Th.lastIndex=0;Th.test(R);)++W;return W}function L3(R){return R.match(Th)||[]}function N3(R){return R.match(n3)||[]}var k3=function R(W){W=W==null?bt:Es.defaults(bt.Object(),W,Es.pick(bt,s3));var V=W.Array,fe=W.Date,Pe=W.Error,ke=W.Function,ht=W.Math,Ge=W.Object,Lh=W.RegExp,F3=W.String,fn=W.TypeError,Ol=V.prototype,j3=ke.prototype,Cs=Ge.prototype,Ml=W["__core-js_shared__"],_l=j3.toString,We=Cs.hasOwnProperty,V3=0,wS=function(){var s=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Il=Cs.toString,B3=_l.call(Ge),U3=bt._,W3=Lh("^"+_l.call(We).replace(yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=iS?W.Buffer:n,jr=W.Symbol,$l=W.Uint8Array,SS=Dl?Dl.allocUnsafe:n,Rl=bS(Ge.getPrototypeOf,Ge),TS=Ge.create,ES=Cs.propertyIsEnumerable,Ll=Ol.splice,CS=jr?jr.isConcatSpreadable:n,jo=jr?jr.iterator:n,vi=jr?jr.toStringTag:n,Nl=function(){try{var s=Ti(Ge,"defineProperty");return s({},"",{}),s}catch{}}(),z3=W.clearTimeout!==bt.clearTimeout&&W.clearTimeout,G3=fe&&fe.now!==bt.Date.now&&fe.now,Y3=W.setTimeout!==bt.setTimeout&&W.setTimeout,kl=ht.ceil,Fl=ht.floor,Nh=Ge.getOwnPropertySymbols,H3=Dl?Dl.isBuffer:n,PS=W.isFinite,q3=Ol.join,K3=bS(Ge.keys,Ge),mt=ht.max,At=ht.min,X3=fe.now,Z3=W.parseInt,AS=ht.random,J3=Ol.reverse,kh=Ti(W,"DataView"),Vo=Ti(W,"Map"),Fh=Ti(W,"Promise"),Ps=Ti(W,"Set"),Bo=Ti(W,"WeakMap"),Uo=Ti(Ge,"create"),jl=Bo&&new Bo,As={},Q3=Ei(kh),eF=Ei(Vo),tF=Ei(Fh),nF=Ei(Ps),rF=Ei(Bo),Vl=jr?jr.prototype:n,Wo=Vl?Vl.valueOf:n,OS=Vl?Vl.toString:n;function T(s){if(ot(s)&&!Ae(s)&&!(s instanceof Re)){if(s instanceof dn)return s;if(We.call(s,"__wrapped__"))return M2(s)}return new dn(s)}var Os=function(){function s(){}return function(l){if(!st(l))return{};if(TS)return TS(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Bl(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}T.templateSettings={escape:yk,evaluate:vk,interpolate:kw,variable:"",imports:{_:T}},T.prototype=Bl.prototype,T.prototype.constructor=T,dn.prototype=Os(Bl.prototype),dn.prototype.constructor=dn;function Re(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function iF(){var s=new Re(this.__wrapped__);return s.__actions__=Vt(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Vt(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Vt(this.__views__),s}function sF(){if(this.__filtered__){var s=new Re(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function oF(){var s=this.__wrapped__.value(),l=this.__dir__,f=Ae(s),p=l<0,b=f?s.length:0,P=vj(0,b,this.__views__),_=P.start,$=P.end,k=$-_,z=p?$:_-1,G=this.__iteratees__,q=G.length,se=0,pe=At(k,this.__takeCount__);if(!f||!p&&b==k&&pe==k)return JS(s,this.__actions__);var Te=[];e:for(;k--&&se<pe;){z+=l;for(var Me=-1,Ee=s[z];++Me<q;){var $e=G[Me],Le=$e.iteratee,Qt=$e.type,$t=Le(Ee);if(Qt==re)Ee=$t;else if(!$t){if(Qt==le)continue e;break e}}Te[se++]=Ee}return Te}Re.prototype=Os(Bl.prototype),Re.prototype.constructor=Re;function bi(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function aF(){this.__data__=Uo?Uo(null):{},this.size=0}function lF(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function cF(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return We.call(l,s)?l[s]:n}function uF(s){var l=this.__data__;return Uo?l[s]!==n:We.call(l,s)}function fF(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}bi.prototype.clear=aF,bi.prototype.delete=lF,bi.prototype.get=cF,bi.prototype.has=uF,bi.prototype.set=fF;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function dF(){this.__data__=[],this.size=0}function hF(s){var l=this.__data__,f=Ul(l,s);if(f<0)return!1;var p=l.length-1;return f==p?l.pop():Ll.call(l,f,1),--this.size,!0}function mF(s){var l=this.__data__,f=Ul(l,s);return f<0?n:l[f][1]}function pF(s){return Ul(this.__data__,s)>-1}function gF(s,l){var f=this.__data__,p=Ul(f,s);return p<0?(++this.size,f.push([s,l])):f[p][1]=l,this}ir.prototype.clear=dF,ir.prototype.delete=hF,ir.prototype.get=mF,ir.prototype.has=pF,ir.prototype.set=gF;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var p=s[l];this.set(p[0],p[1])}}function yF(){this.size=0,this.__data__={hash:new bi,map:new(Vo||ir),string:new bi}}function vF(s){var l=ec(this,s).delete(s);return this.size-=l?1:0,l}function bF(s){return ec(this,s).get(s)}function xF(s){return ec(this,s).has(s)}function wF(s,l){var f=ec(this,s),p=f.size;return f.set(s,l),this.size+=f.size==p?0:1,this}sr.prototype.clear=yF,sr.prototype.delete=vF,sr.prototype.get=bF,sr.prototype.has=xF,sr.prototype.set=wF;function xi(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function SF(s){return this.__data__.set(s,u),this}function TF(s){return this.__data__.has(s)}xi.prototype.add=xi.prototype.push=SF,xi.prototype.has=TF;function Sn(s){var l=this.__data__=new ir(s);this.size=l.size}function EF(){this.__data__=new ir,this.size=0}function CF(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function PF(s){return this.__data__.get(s)}function AF(s){return this.__data__.has(s)}function OF(s,l){var f=this.__data__;if(f instanceof ir){var p=f.__data__;if(!Vo||p.length<i-1)return p.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(p)}return f.set(s,l),this.size=f.size,this}Sn.prototype.clear=EF,Sn.prototype.delete=CF,Sn.prototype.get=PF,Sn.prototype.has=AF,Sn.prototype.set=OF;function MS(s,l){var f=Ae(s),p=!f&&Ci(s),b=!f&&!p&&zr(s),P=!f&&!p&&!b&&Ds(s),_=f||p||b||P,$=_?Dh(s.length,F3):[],k=$.length;for(var z in s)(l||We.call(s,z))&&!(_&&(z=="length"||b&&(z=="offset"||z=="parent")||P&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||cr(z,k)))&&$.push(z);return $}function _S(s){var l=s.length;return l?s[Kh(0,l-1)]:n}function MF(s,l){return tc(Vt(s),wi(l,0,s.length))}function _F(s){return tc(Vt(s))}function jh(s,l,f){(f!==n&&!Tn(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function zo(s,l,f){var p=s[l];(!(We.call(s,l)&&Tn(p,f))||f===n&&!(l in s))&&or(s,l,f)}function Ul(s,l){for(var f=s.length;f--;)if(Tn(s[f][0],l))return f;return-1}function IF(s,l,f,p){return Vr(s,function(b,P,_){l(p,b,f(b),_)}),p}function IS(s,l){return s&&Un(l,gt(l),s)}function DF(s,l){return s&&Un(l,Ut(l),s)}function or(s,l,f){l=="__proto__"&&Nl?Nl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Vh(s,l){for(var f=-1,p=l.length,b=V(p),P=s==null;++f<p;)b[f]=P?n:xm(s,l[f]);return b}function wi(s,l,f){return s===s&&(f!==n&&(s=s<=f?s:f),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,f,p,b,P){var _,$=l&m,k=l&g,z=l&y;if(f&&(_=b?f(s,p,b,P):f(s)),_!==n)return _;if(!st(s))return s;var G=Ae(s);if(G){if(_=xj(s),!$)return Vt(s,_)}else{var q=Ot(s),se=q==ne||q==ye;if(zr(s))return t2(s,$);if(q==dt||q==X||se&&!b){if(_=k||se?{}:x2(s),!$)return k?cj(s,DF(_,s)):lj(s,IS(_,s))}else{if(!Ke[q])return b?s:{};_=wj(s,q,$)}}P||(P=new Sn);var pe=P.get(s);if(pe)return pe;P.set(s,_),K2(s)?s.forEach(function(Ee){_.add(hn(Ee,l,f,Ee,s,P))}):H2(s)&&s.forEach(function(Ee,$e){_.set($e,hn(Ee,l,f,$e,s,P))});var Te=z?k?om:sm:k?Ut:gt,Me=G?n:Te(s);return un(Me||s,function(Ee,$e){Me&&($e=Ee,Ee=s[$e]),zo(_,$e,hn(Ee,l,f,$e,s,P))}),_}function $F(s){var l=gt(s);return function(f){return DS(f,s,l)}}function DS(s,l,f){var p=f.length;if(s==null)return!p;for(s=Ge(s);p--;){var b=f[p],P=l[b],_=s[b];if(_===n&&!(b in s)||!P(_))return!1}return!0}function $S(s,l,f){if(typeof s!="function")throw new fn(a);return Zo(function(){s.apply(n,f)},l)}function Go(s,l,f,p){var b=-1,P=Cl,_=!0,$=s.length,k=[],z=l.length;if(!$)return k;f&&(l=et(l,Xt(f))),p?(P=Ph,_=!1):l.length>=i&&(P=Fo,_=!1,l=new xi(l));e:for(;++b<$;){var G=s[b],q=f==null?G:f(G);if(G=p||G!==0?G:0,_&&q===q){for(var se=z;se--;)if(l[se]===q)continue e;k.push(G)}else P(l,q,p)||k.push(G)}return k}var Vr=o2(Bn),RS=o2(Uh,!0);function RF(s,l){var f=!0;return Vr(s,function(p,b,P){return f=!!l(p,b,P),f}),f}function Wl(s,l,f){for(var p=-1,b=s.length;++p<b;){var P=s[p],_=l(P);if(_!=null&&($===n?_===_&&!Jt(_):f(_,$)))var $=_,k=P}return k}function LF(s,l,f,p){var b=s.length;for(f=Oe(f),f<0&&(f=-f>b?0:b+f),p=p===n||p>b?b:Oe(p),p<0&&(p+=b),p=f>p?0:Z2(p);f<p;)s[f++]=l;return s}function LS(s,l){var f=[];return Vr(s,function(p,b,P){l(p,b,P)&&f.push(p)}),f}function xt(s,l,f,p,b){var P=-1,_=s.length;for(f||(f=Tj),b||(b=[]);++P<_;){var $=s[P];l>0&&f($)?l>1?xt($,l-1,f,p,b):kr(b,$):p||(b[b.length]=$)}return b}var Bh=a2(),NS=a2(!0);function Bn(s,l){return s&&Bh(s,l,gt)}function Uh(s,l){return s&&NS(s,l,gt)}function zl(s,l){return Nr(l,function(f){return ur(s[f])})}function Si(s,l){l=Ur(l,s);for(var f=0,p=l.length;s!=null&&f<p;)s=s[Wn(l[f++])];return f&&f==p?s:n}function kS(s,l,f){var p=l(s);return Ae(s)?p:kr(p,f(s))}function It(s){return s==null?s===n?xl:mi:vi&&vi in Ge(s)?yj(s):_j(s)}function Wh(s,l){return s>l}function NF(s,l){return s!=null&&We.call(s,l)}function kF(s,l){return s!=null&&l in Ge(s)}function FF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function zh(s,l,f){for(var p=f?Ph:Cl,b=s[0].length,P=s.length,_=P,$=V(P),k=1/0,z=[];_--;){var G=s[_];_&&l&&(G=et(G,Xt(l))),k=At(G.length,k),$[_]=!f&&(l||b>=120&&G.length>=120)?new xi(_&&G):n}G=s[0];var q=-1,se=$[0];e:for(;++q<b&&z.length<k;){var pe=G[q],Te=l?l(pe):pe;if(pe=f||pe!==0?pe:0,!(se?Fo(se,Te):p(z,Te,f))){for(_=P;--_;){var Me=$[_];if(!(Me?Fo(Me,Te):p(s[_],Te,f)))continue e}se&&se.push(Te),z.push(pe)}}return z}function jF(s,l,f,p){return Bn(s,function(b,P,_){l(p,f(b),P,_)}),p}function Yo(s,l,f){l=Ur(l,s),s=E2(s,l);var p=s==null?s:s[Wn(pn(l))];return p==null?n:Kt(p,s,f)}function FS(s){return ot(s)&&It(s)==X}function VF(s){return ot(s)&&It(s)==be}function BF(s){return ot(s)&&It(s)==ge}function Ho(s,l,f,p,b){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:UF(s,l,f,p,Ho,b)}function UF(s,l,f,p,b,P){var _=Ae(s),$=Ae(l),k=_?ce:Ot(s),z=$?ce:Ot(l);k=k==X?dt:k,z=z==X?dt:z;var G=k==dt,q=z==dt,se=k==z;if(se&&zr(s)){if(!zr(l))return!1;_=!0,G=!1}if(se&&!G)return P||(P=new Sn),_||Ds(s)?y2(s,l,f,p,b,P):pj(s,l,k,f,p,b,P);if(!(f&S)){var pe=G&&We.call(s,"__wrapped__"),Te=q&&We.call(l,"__wrapped__");if(pe||Te){var Me=pe?s.value():s,Ee=Te?l.value():l;return P||(P=new Sn),b(Me,Ee,f,p,P)}}return se?(P||(P=new Sn),gj(s,l,f,p,b,P)):!1}function WF(s){return ot(s)&&Ot(s)==Ne}function Gh(s,l,f,p){var b=f.length,P=b,_=!p;if(s==null)return!P;for(s=Ge(s);b--;){var $=f[b];if(_&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++b<P;){$=f[b];var k=$[0],z=s[k],G=$[1];if(_&&$[2]){if(z===n&&!(k in s))return!1}else{var q=new Sn;if(p)var se=p(z,G,k,s,l,q);if(!(se===n?Ho(G,z,S|v,p,q):se))return!1}}return!0}function jS(s){if(!st(s)||Cj(s))return!1;var l=ur(s)?W3:$k;return l.test(Ei(s))}function zF(s){return ot(s)&&It(s)==pi}function GF(s){return ot(s)&&Ot(s)==qt}function YF(s){return ot(s)&&ac(s.length)&&!!Je[It(s)]}function VS(s){return typeof s=="function"?s:s==null?Wt:typeof s=="object"?Ae(s)?WS(s[0],s[1]):US(s):lT(s)}function Yh(s){if(!Xo(s))return K3(s);var l=[];for(var f in Ge(s))We.call(s,f)&&f!="constructor"&&l.push(f);return l}function HF(s){if(!st(s))return Mj(s);var l=Xo(s),f=[];for(var p in s)p=="constructor"&&(l||!We.call(s,p))||f.push(p);return f}function Hh(s,l){return s<l}function BS(s,l){var f=-1,p=Bt(s)?V(s.length):[];return Vr(s,function(b,P,_){p[++f]=l(b,P,_)}),p}function US(s){var l=lm(s);return l.length==1&&l[0][2]?S2(l[0][0],l[0][1]):function(f){return f===s||Gh(f,s,l)}}function WS(s,l){return um(s)&&w2(l)?S2(Wn(s),l):function(f){var p=xm(f,s);return p===n&&p===l?wm(f,s):Ho(l,p,S|v)}}function Gl(s,l,f,p,b){s!==l&&Bh(l,function(P,_){if(b||(b=new Sn),st(P))qF(s,l,_,f,Gl,p,b);else{var $=p?p(dm(s,_),P,_+"",s,l,b):n;$===n&&($=P),jh(s,_,$)}},Ut)}function qF(s,l,f,p,b,P,_){var $=dm(s,f),k=dm(l,f),z=_.get(k);if(z){jh(s,f,z);return}var G=P?P($,k,f+"",s,l,_):n,q=G===n;if(q){var se=Ae(k),pe=!se&&zr(k),Te=!se&&!pe&&Ds(k);G=k,se||pe||Te?Ae($)?G=$:ct($)?G=Vt($):pe?(q=!1,G=t2(k,!0)):Te?(q=!1,G=n2(k,!0)):G=[]:Jo(k)||Ci(k)?(G=$,Ci($)?G=J2($):(!st($)||ur($))&&(G=x2(k))):q=!1}q&&(_.set(k,G),b(G,k,p,P,_),_.delete(k)),jh(s,f,G)}function zS(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function GS(s,l,f){l.length?l=et(l,function(P){return Ae(P)?function(_){return Si(_,P.length===1?P[0]:P)}:P}):l=[Wt];var p=-1;l=et(l,Xt(xe()));var b=BS(s,function(P,_,$){var k=et(l,function(z){return z(P)});return{criteria:k,index:++p,value:P}});return w3(b,function(P,_){return aj(P,_,f)})}function KF(s,l){return YS(s,l,function(f,p){return wm(s,p)})}function YS(s,l,f){for(var p=-1,b=l.length,P={};++p<b;){var _=l[p],$=Si(s,_);f($,_)&&qo(P,Ur(_,s),$)}return P}function XF(s){return function(l){return Si(l,s)}}function qh(s,l,f,p){var b=p?x3:ws,P=-1,_=l.length,$=s;for(s===l&&(l=Vt(l)),f&&($=et(s,Xt(f)));++P<_;)for(var k=0,z=l[P],G=f?f(z):z;(k=b($,G,k,p))>-1;)$!==s&&Ll.call($,k,1),Ll.call(s,k,1);return s}function HS(s,l){for(var f=s?l.length:0,p=f-1;f--;){var b=l[f];if(f==p||b!==P){var P=b;cr(b)?Ll.call(s,b,1):Jh(s,b)}}return s}function Kh(s,l){return s+Fl(AS()*(l-s+1))}function ZF(s,l,f,p){for(var b=-1,P=mt(kl((l-s)/(f||1)),0),_=V(P);P--;)_[p?P:++b]=s,s+=f;return _}function Xh(s,l){var f="";if(!s||l<1||l>U)return f;do l%2&&(f+=s),l=Fl(l/2),l&&(s+=s);while(l);return f}function _e(s,l){return hm(T2(s,l,Wt),s+"")}function JF(s){return _S($s(s))}function QF(s,l){var f=$s(s);return tc(f,wi(l,0,f.length))}function qo(s,l,f,p){if(!st(s))return s;l=Ur(l,s);for(var b=-1,P=l.length,_=P-1,$=s;$!=null&&++b<P;){var k=Wn(l[b]),z=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return s;if(b!=_){var G=$[k];z=p?p(G,k,$):n,z===n&&(z=st(G)?G:cr(l[b+1])?[]:{})}zo($,k,z),$=$[k]}return s}var qS=jl?function(s,l){return jl.set(s,l),s}:Wt,ej=Nl?function(s,l){return Nl(s,"toString",{configurable:!0,enumerable:!1,value:Tm(l),writable:!0})}:Wt;function tj(s){return tc($s(s))}function mn(s,l,f){var p=-1,b=s.length;l<0&&(l=-l>b?0:b+l),f=f>b?b:f,f<0&&(f+=b),b=l>f?0:f-l>>>0,l>>>=0;for(var P=V(b);++p<b;)P[p]=s[p+l];return P}function nj(s,l){var f;return Vr(s,function(p,b,P){return f=l(p,b,P),!f}),!!f}function Yl(s,l,f){var p=0,b=s==null?p:s.length;if(typeof l=="number"&&l===l&&b<=Q){for(;p<b;){var P=p+b>>>1,_=s[P];_!==null&&!Jt(_)&&(f?_<=l:_<l)?p=P+1:b=P}return b}return Zh(s,l,Wt,f)}function Zh(s,l,f,p){var b=0,P=s==null?0:s.length;if(P===0)return 0;l=f(l);for(var _=l!==l,$=l===null,k=Jt(l),z=l===n;b<P;){var G=Fl((b+P)/2),q=f(s[G]),se=q!==n,pe=q===null,Te=q===q,Me=Jt(q);if(_)var Ee=p||Te;else z?Ee=Te&&(p||se):$?Ee=Te&&se&&(p||!pe):k?Ee=Te&&se&&!pe&&(p||!Me):pe||Me?Ee=!1:Ee=p?q<=l:q<l;Ee?b=G+1:P=G}return At(P,K)}function KS(s,l){for(var f=-1,p=s.length,b=0,P=[];++f<p;){var _=s[f],$=l?l(_):_;if(!f||!Tn($,k)){var k=$;P[b++]=_===0?0:_}}return P}function XS(s){return typeof s=="number"?s:Jt(s)?M:+s}function Zt(s){if(typeof s=="string")return s;if(Ae(s))return et(s,Zt)+"";if(Jt(s))return OS?OS.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Br(s,l,f){var p=-1,b=Cl,P=s.length,_=!0,$=[],k=$;if(f)_=!1,b=Ph;else if(P>=i){var z=l?null:hj(s);if(z)return Al(z);_=!1,b=Fo,k=new xi}else k=l?[]:$;e:for(;++p<P;){var G=s[p],q=l?l(G):G;if(G=f||G!==0?G:0,_&&q===q){for(var se=k.length;se--;)if(k[se]===q)continue e;l&&k.push(q),$.push(G)}else b(k,q,f)||(k!==$&&k.push(q),$.push(G))}return $}function Jh(s,l){return l=Ur(l,s),s=E2(s,l),s==null||delete s[Wn(pn(l))]}function ZS(s,l,f,p){return qo(s,l,f(Si(s,l)),p)}function Hl(s,l,f,p){for(var b=s.length,P=p?b:-1;(p?P--:++P<b)&&l(s[P],P,s););return f?mn(s,p?0:P,p?P+1:b):mn(s,p?P+1:0,p?b:P)}function JS(s,l){var f=s;return f instanceof Re&&(f=f.value()),Ah(l,function(p,b){return b.func.apply(b.thisArg,kr([p],b.args))},f)}function Qh(s,l,f){var p=s.length;if(p<2)return p?Br(s[0]):[];for(var b=-1,P=V(p);++b<p;)for(var _=s[b],$=-1;++$<p;)$!=b&&(P[b]=Go(P[b]||_,s[$],l,f));return Br(xt(P,1),l,f)}function QS(s,l,f){for(var p=-1,b=s.length,P=l.length,_={};++p<b;){var $=p<P?l[p]:n;f(_,s[p],$)}return _}function em(s){return ct(s)?s:[]}function tm(s){return typeof s=="function"?s:Wt}function Ur(s,l){return Ae(s)?s:um(s,l)?[s]:O2(Ve(s))}var rj=_e;function Wr(s,l,f){var p=s.length;return f=f===n?p:f,!l&&f>=p?s:mn(s,l,f)}var e2=z3||function(s){return bt.clearTimeout(s)};function t2(s,l){if(l)return s.slice();var f=s.length,p=SS?SS(f):new s.constructor(f);return s.copy(p),p}function nm(s){var l=new s.constructor(s.byteLength);return new $l(l).set(new $l(s)),l}function ij(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function sj(s){var l=new s.constructor(s.source,Fw.exec(s));return l.lastIndex=s.lastIndex,l}function oj(s){return Wo?Ge(Wo.call(s)):{}}function n2(s,l){var f=l?nm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function r2(s,l){if(s!==l){var f=s!==n,p=s===null,b=s===s,P=Jt(s),_=l!==n,$=l===null,k=l===l,z=Jt(l);if(!$&&!z&&!P&&s>l||P&&_&&k&&!$&&!z||p&&_&&k||!f&&k||!b)return 1;if(!p&&!P&&!z&&s<l||z&&f&&b&&!p&&!P||$&&f&&b||!_&&b||!k)return-1}return 0}function aj(s,l,f){for(var p=-1,b=s.criteria,P=l.criteria,_=b.length,$=f.length;++p<_;){var k=r2(b[p],P[p]);if(k){if(p>=$)return k;var z=f[p];return k*(z=="desc"?-1:1)}}return s.index-l.index}function i2(s,l,f,p){for(var b=-1,P=s.length,_=f.length,$=-1,k=l.length,z=mt(P-_,0),G=V(k+z),q=!p;++$<k;)G[$]=l[$];for(;++b<_;)(q||b<P)&&(G[f[b]]=s[b]);for(;z--;)G[$++]=s[b++];return G}function s2(s,l,f,p){for(var b=-1,P=s.length,_=-1,$=f.length,k=-1,z=l.length,G=mt(P-$,0),q=V(G+z),se=!p;++b<G;)q[b]=s[b];for(var pe=b;++k<z;)q[pe+k]=l[k];for(;++_<$;)(se||b<P)&&(q[pe+f[_]]=s[b++]);return q}function Vt(s,l){var f=-1,p=s.length;for(l||(l=V(p));++f<p;)l[f]=s[f];return l}function Un(s,l,f,p){var b=!f;f||(f={});for(var P=-1,_=l.length;++P<_;){var $=l[P],k=p?p(f[$],s[$],$,f,s):n;k===n&&(k=s[$]),b?or(f,$,k):zo(f,$,k)}return f}function lj(s,l){return Un(s,cm(s),l)}function cj(s,l){return Un(s,v2(s),l)}function ql(s,l){return function(f,p){var b=Ae(f)?m3:IF,P=l?l():{};return b(f,s,xe(p,2),P)}}function Ms(s){return _e(function(l,f){var p=-1,b=f.length,P=b>1?f[b-1]:n,_=b>2?f[2]:n;for(P=s.length>3&&typeof P=="function"?(b--,P):n,_&&Dt(f[0],f[1],_)&&(P=b<3?n:P,b=1),l=Ge(l);++p<b;){var $=f[p];$&&s(l,$,p,P)}return l})}function o2(s,l){return function(f,p){if(f==null)return f;if(!Bt(f))return s(f,p);for(var b=f.length,P=l?b:-1,_=Ge(f);(l?P--:++P<b)&&p(_[P],P,_)!==!1;);return f}}function a2(s){return function(l,f,p){for(var b=-1,P=Ge(l),_=p(l),$=_.length;$--;){var k=_[s?$:++b];if(f(P[k],k,P)===!1)break}return l}}function uj(s,l,f){var p=l&E,b=Ko(s);function P(){var _=this&&this!==bt&&this instanceof P?b:s;return _.apply(p?f:this,arguments)}return P}function l2(s){return function(l){l=Ve(l);var f=Ss(l)?wn(l):n,p=f?f[0]:l.charAt(0),b=f?Wr(f,1).join(""):l.slice(1);return p[s]()+b}}function _s(s){return function(l){return Ah(oT(sT(l).replace(e3,"")),s,"")}}function Ko(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Os(s.prototype),p=s.apply(f,l);return st(p)?p:f}}function fj(s,l,f){var p=Ko(s);function b(){for(var P=arguments.length,_=V(P),$=P,k=Is(b);$--;)_[$]=arguments[$];var z=P<3&&_[0]!==k&&_[P-1]!==k?[]:Fr(_,k);if(P-=z.length,P<f)return h2(s,l,Kl,b.placeholder,n,_,z,n,n,f-P);var G=this&&this!==bt&&this instanceof b?p:s;return Kt(G,this,_)}return b}function c2(s){return function(l,f,p){var b=Ge(l);if(!Bt(l)){var P=xe(f,3);l=gt(l),f=function($){return P(b[$],$,b)}}var _=s(l,f,p);return _>-1?b[P?l[_]:_]:n}}function u2(s){return lr(function(l){var f=l.length,p=f,b=dn.prototype.thru;for(s&&l.reverse();p--;){var P=l[p];if(typeof P!="function")throw new fn(a);if(b&&!_&&Ql(P)=="wrapper")var _=new dn([],!0)}for(p=_?p:f;++p<f;){P=l[p];var $=Ql(P),k=$=="wrapper"?am(P):n;k&&fm(k[0])&&k[1]==(j|O|C|F)&&!k[4].length&&k[9]==1?_=_[Ql(k[0])].apply(_,k[3]):_=P.length==1&&fm(P)?_[$]():_.thru(P)}return function(){var z=arguments,G=z[0];if(_&&z.length==1&&Ae(G))return _.plant(G).value();for(var q=0,se=f?l[q].apply(this,z):G;++q<f;)se=l[q].call(this,se);return se}})}function Kl(s,l,f,p,b,P,_,$,k,z){var G=l&j,q=l&E,se=l&w,pe=l&(O|D),Te=l&Y,Me=se?n:Ko(s);function Ee(){for(var $e=arguments.length,Le=V($e),Qt=$e;Qt--;)Le[Qt]=arguments[Qt];if(pe)var $t=Is(Ee),en=T3(Le,$t);if(p&&(Le=i2(Le,p,b,pe)),P&&(Le=s2(Le,P,_,pe)),$e-=en,pe&&$e<z){var ut=Fr(Le,$t);return h2(s,l,Kl,Ee.placeholder,f,Le,ut,$,k,z-$e)}var En=q?f:this,dr=se?En[s]:s;return $e=Le.length,$?Le=Ij(Le,$):Te&&$e>1&&Le.reverse(),G&&k<$e&&(Le.length=k),this&&this!==bt&&this instanceof Ee&&(dr=Me||Ko(dr)),dr.apply(En,Le)}return Ee}function f2(s,l){return function(f,p){return jF(f,s,l(p),{})}}function Xl(s,l){return function(f,p){var b;if(f===n&&p===n)return l;if(f!==n&&(b=f),p!==n){if(b===n)return p;typeof f=="string"||typeof p=="string"?(f=Zt(f),p=Zt(p)):(f=XS(f),p=XS(p)),b=s(f,p)}return b}}function rm(s){return lr(function(l){return l=et(l,Xt(xe())),_e(function(f){var p=this;return s(l,function(b){return Kt(b,p,f)})})})}function Zl(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Xh(l,s):l;var p=Xh(l,kl(s/Ts(l)));return Ss(l)?Wr(wn(p),0,s).join(""):p.slice(0,s)}function dj(s,l,f,p){var b=l&E,P=Ko(s);function _(){for(var $=-1,k=arguments.length,z=-1,G=p.length,q=V(G+k),se=this&&this!==bt&&this instanceof _?P:s;++z<G;)q[z]=p[z];for(;k--;)q[z++]=arguments[++$];return Kt(se,b?f:this,q)}return _}function d2(s){return function(l,f,p){return p&&typeof p!="number"&&Dt(l,f,p)&&(f=p=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),p=p===n?l<f?1:-1:fr(p),ZF(l,f,p,s)}}function Jl(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function h2(s,l,f,p,b,P,_,$,k,z){var G=l&O,q=G?_:n,se=G?n:_,pe=G?P:n,Te=G?n:P;l|=G?C:L,l&=~(G?L:C),l&A||(l&=-4);var Me=[s,l,b,pe,q,Te,se,$,k,z],Ee=f.apply(n,Me);return fm(s)&&C2(Ee,Me),Ee.placeholder=p,P2(Ee,s,l)}function im(s){var l=ht[s];return function(f,p){if(f=gn(f),p=p==null?0:At(Oe(p),292),p&&PS(f)){var b=(Ve(f)+"e").split("e"),P=l(b[0]+"e"+(+b[1]+p));return b=(Ve(P)+"e").split("e"),+(b[0]+"e"+(+b[1]-p))}return l(f)}}var hj=Ps&&1/Al(new Ps([,-0]))[1]==B?function(s){return new Ps(s)}:Pm;function m2(s){return function(l){var f=Ot(l);return f==Ne?Rh(l):f==qt?_3(l):S3(l,s(l))}}function ar(s,l,f,p,b,P,_,$){var k=l&w;if(!k&&typeof s!="function")throw new fn(a);var z=p?p.length:0;if(z||(l&=-97,p=b=n),_=_===n?_:mt(Oe(_),0),$=$===n?$:Oe($),z-=b?b.length:0,l&L){var G=p,q=b;p=b=n}var se=k?n:am(s),pe=[s,l,f,p,b,G,q,P,_,$];if(se&&Oj(pe,se),s=pe[0],l=pe[1],f=pe[2],p=pe[3],b=pe[4],$=pe[9]=pe[9]===n?k?0:s.length:mt(pe[9]-z,0),!$&&l&(O|D)&&(l&=-25),!l||l==E)var Te=uj(s,l,f);else l==O||l==D?Te=fj(s,l,$):(l==C||l==(E|C))&&!b.length?Te=dj(s,l,f,p):Te=Kl.apply(n,pe);var Me=se?qS:C2;return P2(Me(Te,pe),s,l)}function p2(s,l,f,p){return s===n||Tn(s,Cs[f])&&!We.call(p,f)?l:s}function g2(s,l,f,p,b,P){return st(s)&&st(l)&&(P.set(l,s),Gl(s,l,n,g2,P),P.delete(l)),s}function mj(s){return Jo(s)?n:s}function y2(s,l,f,p,b,P){var _=f&S,$=s.length,k=l.length;if($!=k&&!(_&&k>$))return!1;var z=P.get(s),G=P.get(l);if(z&&G)return z==l&&G==s;var q=-1,se=!0,pe=f&v?new xi:n;for(P.set(s,l),P.set(l,s);++q<$;){var Te=s[q],Me=l[q];if(p)var Ee=_?p(Me,Te,q,l,s,P):p(Te,Me,q,s,l,P);if(Ee!==n){if(Ee)continue;se=!1;break}if(pe){if(!Oh(l,function($e,Le){if(!Fo(pe,Le)&&(Te===$e||b(Te,$e,f,p,P)))return pe.push(Le)})){se=!1;break}}else if(!(Te===Me||b(Te,Me,f,p,P))){se=!1;break}}return P.delete(s),P.delete(l),se}function pj(s,l,f,p,b,P,_){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case be:return!(s.byteLength!=l.byteLength||!P(new $l(s),new $l(l)));case oe:case ge:case ft:return Tn(+s,+l);case Ue:return s.name==l.name&&s.message==l.message;case pi:case bn:return s==l+"";case Ne:var $=Rh;case qt:var k=p&S;if($||($=Al),s.size!=l.size&&!k)return!1;var z=_.get(s);if(z)return z==l;p|=v,_.set(s,l);var G=y2($(s),$(l),p,b,P,_);return _.delete(s),G;case gi:if(Wo)return Wo.call(s)==Wo.call(l)}return!1}function gj(s,l,f,p,b,P){var _=f&S,$=sm(s),k=$.length,z=sm(l),G=z.length;if(k!=G&&!_)return!1;for(var q=k;q--;){var se=$[q];if(!(_?se in l:We.call(l,se)))return!1}var pe=P.get(s),Te=P.get(l);if(pe&&Te)return pe==l&&Te==s;var Me=!0;P.set(s,l),P.set(l,s);for(var Ee=_;++q<k;){se=$[q];var $e=s[se],Le=l[se];if(p)var Qt=_?p(Le,$e,se,l,s,P):p($e,Le,se,s,l,P);if(!(Qt===n?$e===Le||b($e,Le,f,p,P):Qt)){Me=!1;break}Ee||(Ee=se=="constructor")}if(Me&&!Ee){var $t=s.constructor,en=l.constructor;$t!=en&&"constructor"in s&&"constructor"in l&&!(typeof $t=="function"&&$t instanceof $t&&typeof en=="function"&&en instanceof en)&&(Me=!1)}return P.delete(s),P.delete(l),Me}function lr(s){return hm(T2(s,n,D2),s+"")}function sm(s){return kS(s,gt,cm)}function om(s){return kS(s,Ut,v2)}var am=jl?function(s){return jl.get(s)}:Pm;function Ql(s){for(var l=s.name+"",f=As[l],p=We.call(As,l)?f.length:0;p--;){var b=f[p],P=b.func;if(P==null||P==s)return b.name}return l}function Is(s){var l=We.call(T,"placeholder")?T:s;return l.placeholder}function xe(){var s=T.iteratee||Em;return s=s===Em?VS:s,arguments.length?s(arguments[0],arguments[1]):s}function ec(s,l){var f=s.__data__;return Ej(l)?f[typeof l=="string"?"string":"hash"]:f.map}function lm(s){for(var l=gt(s),f=l.length;f--;){var p=l[f],b=s[p];l[f]=[p,b,w2(b)]}return l}function Ti(s,l){var f=A3(s,l);return jS(f)?f:n}function yj(s){var l=We.call(s,vi),f=s[vi];try{s[vi]=n;var p=!0}catch{}var b=Il.call(s);return p&&(l?s[vi]=f:delete s[vi]),b}var cm=Nh?function(s){return s==null?[]:(s=Ge(s),Nr(Nh(s),function(l){return ES.call(s,l)}))}:Am,v2=Nh?function(s){for(var l=[];s;)kr(l,cm(s)),s=Rl(s);return l}:Am,Ot=It;(kh&&Ot(new kh(new ArrayBuffer(1)))!=Qe||Vo&&Ot(new Vo)!=Ne||Fh&&Ot(Fh.resolve())!=vl||Ps&&Ot(new Ps)!=qt||Bo&&Ot(new Bo)!=Lr)&&(Ot=function(s){var l=It(s),f=l==dt?s.constructor:n,p=f?Ei(f):"";if(p)switch(p){case Q3:return Qe;case eF:return Ne;case tF:return vl;case nF:return qt;case rF:return Lr}return l});function vj(s,l,f){for(var p=-1,b=f.length;++p<b;){var P=f[p],_=P.size;switch(P.type){case"drop":s+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,s+_);break;case"takeRight":s=mt(s,l-_);break}}return{start:s,end:l}}function bj(s){var l=s.match(Ck);return l?l[1].split(Pk):[]}function b2(s,l,f){l=Ur(l,s);for(var p=-1,b=l.length,P=!1;++p<b;){var _=Wn(l[p]);if(!(P=s!=null&&f(s,_)))break;s=s[_]}return P||++p!=b?P:(b=s==null?0:s.length,!!b&&ac(b)&&cr(_,b)&&(Ae(s)||Ci(s)))}function xj(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&We.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function x2(s){return typeof s.constructor=="function"&&!Xo(s)?Os(Rl(s)):{}}function wj(s,l,f){var p=s.constructor;switch(l){case be:return nm(s);case oe:case ge:return new p(+s);case Qe:return ij(s,f);case Pt:case xn:case rr:case fh:case dh:case hh:case mh:case ph:case gh:return n2(s,f);case Ne:return new p;case ft:case bn:return new p(s);case pi:return sj(s);case qt:return new p;case gi:return oj(s)}}function Sj(s,l){var f=l.length;if(!f)return s;var p=f-1;return l[p]=(f>1?"& ":"")+l[p],l=l.join(f>2?", ":" "),s.replace(Ek,`{
633
+ /* [wrapped with `+l+`] */
634
+ `)}function Tj(s){return Ae(s)||Ci(s)||!!(CS&&s&&s[CS])}function cr(s,l){var f=typeof s;return l=l??U,!!l&&(f=="number"||f!="symbol"&&Lk.test(s))&&s>-1&&s%1==0&&s<l}function Dt(s,l,f){if(!st(f))return!1;var p=typeof l;return(p=="number"?Bt(f)&&cr(l,f.length):p=="string"&&l in f)?Tn(f[l],s):!1}function um(s,l){if(Ae(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:xk.test(s)||!bk.test(s)||l!=null&&s in Ge(l)}function Ej(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function fm(s){var l=Ql(s),f=T[l];if(typeof f!="function"||!(l in Re.prototype))return!1;if(s===f)return!0;var p=am(f);return!!p&&s===p[0]}function Cj(s){return!!wS&&wS in s}var Pj=Ml?ur:Om;function Xo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||Cs;return s===f}function w2(s){return s===s&&!st(s)}function S2(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ge(f))}}function Aj(s){var l=sc(s,function(p){return f.size===d&&f.clear(),p}),f=l.cache;return l}function Oj(s,l){var f=s[1],p=l[1],b=f|p,P=b<(E|w|j),_=p==j&&f==O||p==j&&f==F&&s[7].length<=l[8]||p==(j|F)&&l[7].length<=l[8]&&f==O;if(!(P||_))return s;p&E&&(s[2]=l[2],b|=f&E?0:A);var $=l[3];if($){var k=s[3];s[3]=k?i2(k,$,l[4]):$,s[4]=k?Fr(s[3],h):l[4]}return $=l[5],$&&(k=s[5],s[5]=k?s2(k,$,l[6]):$,s[6]=k?Fr(s[5],h):l[6]),$=l[7],$&&(s[7]=$),p&j&&(s[8]=s[8]==null?l[8]:At(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=b,s}function Mj(s){var l=[];if(s!=null)for(var f in Ge(s))l.push(f);return l}function _j(s){return Il.call(s)}function T2(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var p=arguments,b=-1,P=mt(p.length-l,0),_=V(P);++b<P;)_[b]=p[l+b];b=-1;for(var $=V(l+1);++b<l;)$[b]=p[b];return $[l]=f(_),Kt(s,this,$)}}function E2(s,l){return l.length<2?s:Si(s,mn(l,0,-1))}function Ij(s,l){for(var f=s.length,p=At(l.length,f),b=Vt(s);p--;){var P=l[p];s[p]=cr(P,f)?b[P]:n}return s}function dm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var C2=A2(qS),Zo=Y3||function(s,l){return bt.setTimeout(s,l)},hm=A2(ej);function P2(s,l,f){var p=l+"";return hm(s,Sj(p,Dj(bj(p),f)))}function A2(s){var l=0,f=0;return function(){var p=X3(),b=de-(p-f);if(f=p,b>0){if(++l>=me)return arguments[0]}else l=0;return s.apply(n,arguments)}}function tc(s,l){var f=-1,p=s.length,b=p-1;for(l=l===n?p:l;++f<l;){var P=Kh(f,b),_=s[P];s[P]=s[f],s[f]=_}return s.length=l,s}var O2=Aj(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(wk,function(f,p,b,P){l.push(b?P.replace(Mk,"$1"):p||f)}),l});function Wn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ei(s){if(s!=null){try{return _l.call(s)}catch{}try{return s+""}catch{}}return""}function Dj(s,l){return un(ue,function(f){var p="_."+f[0];l&f[1]&&!Cl(s,p)&&s.push(p)}),s.sort()}function M2(s){if(s instanceof Re)return s.clone();var l=new dn(s.__wrapped__,s.__chain__);return l.__actions__=Vt(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function $j(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var p=s==null?0:s.length;if(!p||l<1)return[];for(var b=0,P=0,_=V(kl(p/l));b<p;)_[P++]=mn(s,b,b+=l);return _}function Rj(s){for(var l=-1,f=s==null?0:s.length,p=0,b=[];++l<f;){var P=s[l];P&&(b[p++]=P)}return b}function Lj(){var s=arguments.length;if(!s)return[];for(var l=V(s-1),f=arguments[0],p=s;p--;)l[p-1]=arguments[p];return kr(Ae(f)?Vt(f):[f],xt(l,1))}var Nj=_e(function(s,l){return ct(s)?Go(s,xt(l,1,ct,!0)):[]}),kj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),xe(f,2)):[]}),Fj=_e(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Go(s,xt(l,1,ct,!0),n,f):[]});function jj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,p)):[]}function Vj(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,0,l<0?0:l)):[]}function Bj(s,l){return s&&s.length?Hl(s,xe(l,3),!0,!0):[]}function Uj(s,l){return s&&s.length?Hl(s,xe(l,3),!0):[]}function Wj(s,l,f,p){var b=s==null?0:s.length;return b?(f&&typeof f!="number"&&Dt(s,l,f)&&(f=0,p=b),LF(s,l,f,p)):[]}function _2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=f==null?0:Oe(f);return b<0&&(b=mt(p+b,0)),Pl(s,xe(l,3),b)}function I2(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=p-1;return f!==n&&(b=Oe(f),b=f<0?mt(p+b,0):At(b,p-1)),Pl(s,xe(l,3),b,!0)}function D2(s){var l=s==null?0:s.length;return l?xt(s,1):[]}function zj(s){var l=s==null?0:s.length;return l?xt(s,B):[]}function Gj(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),xt(s,l)):[]}function Yj(s){for(var l=-1,f=s==null?0:s.length,p={};++l<f;){var b=s[l];p[b[0]]=b[1]}return p}function $2(s){return s&&s.length?s[0]:n}function Hj(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=f==null?0:Oe(f);return b<0&&(b=mt(p+b,0)),ws(s,l,b)}function qj(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var Kj=_e(function(s){var l=et(s,em);return l.length&&l[0]===s[0]?zh(l):[]}),Xj=_e(function(s){var l=pn(s),f=et(s,em);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?zh(f,xe(l,2)):[]}),Zj=_e(function(s){var l=pn(s),f=et(s,em);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?zh(f,n,l):[]});function Jj(s,l){return s==null?"":q3.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function Qj(s,l,f){var p=s==null?0:s.length;if(!p)return-1;var b=p;return f!==n&&(b=Oe(f),b=b<0?mt(p+b,0):At(b,p-1)),l===l?D3(s,l,b):Pl(s,hS,b,!0)}function eV(s,l){return s&&s.length?zS(s,Oe(l)):n}var tV=_e(R2);function R2(s,l){return s&&s.length&&l&&l.length?qh(s,l):s}function nV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,xe(f,2)):s}function rV(s,l,f){return s&&s.length&&l&&l.length?qh(s,l,n,f):s}var iV=lr(function(s,l){var f=s==null?0:s.length,p=Vh(s,l);return HS(s,et(l,function(b){return cr(b,f)?+b:b}).sort(r2)),p});function sV(s,l){var f=[];if(!(s&&s.length))return f;var p=-1,b=[],P=s.length;for(l=xe(l,3);++p<P;){var _=s[p];l(_,p,s)&&(f.push(_),b.push(p))}return HS(s,b),f}function mm(s){return s==null?s:J3.call(s)}function oV(s,l,f){var p=s==null?0:s.length;return p?(f&&typeof f!="number"&&Dt(s,l,f)?(l=0,f=p):(l=l==null?0:Oe(l),f=f===n?p:Oe(f)),mn(s,l,f)):[]}function aV(s,l){return Yl(s,l)}function lV(s,l,f){return Zh(s,l,xe(f,2))}function cV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l);if(p<f&&Tn(s[p],l))return p}return-1}function uV(s,l){return Yl(s,l,!0)}function fV(s,l,f){return Zh(s,l,xe(f,2),!0)}function dV(s,l){var f=s==null?0:s.length;if(f){var p=Yl(s,l,!0)-1;if(Tn(s[p],l))return p}return-1}function hV(s){return s&&s.length?KS(s):[]}function mV(s,l){return s&&s.length?KS(s,xe(l,2)):[]}function pV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function gV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function yV(s,l,f){var p=s==null?0:s.length;return p?(l=f||l===n?1:Oe(l),l=p-l,mn(s,l<0?0:l,p)):[]}function vV(s,l){return s&&s.length?Hl(s,xe(l,3),!1,!0):[]}function bV(s,l){return s&&s.length?Hl(s,xe(l,3)):[]}var xV=_e(function(s){return Br(xt(s,1,ct,!0))}),wV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Br(xt(s,1,ct,!0),xe(l,2))}),SV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Br(xt(s,1,ct,!0),n,l)});function TV(s){return s&&s.length?Br(s):[]}function EV(s,l){return s&&s.length?Br(s,xe(l,2)):[]}function CV(s,l){return l=typeof l=="function"?l:n,s&&s.length?Br(s,n,l):[]}function pm(s){if(!(s&&s.length))return[];var l=0;return s=Nr(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),Dh(l,function(f){return et(s,Mh(f))})}function L2(s,l){if(!(s&&s.length))return[];var f=pm(s);return l==null?f:et(f,function(p){return Kt(l,n,p)})}var PV=_e(function(s,l){return ct(s)?Go(s,l):[]}),AV=_e(function(s){return Qh(Nr(s,ct))}),OV=_e(function(s){var l=pn(s);return ct(l)&&(l=n),Qh(Nr(s,ct),xe(l,2))}),MV=_e(function(s){var l=pn(s);return l=typeof l=="function"?l:n,Qh(Nr(s,ct),n,l)}),_V=_e(pm);function IV(s,l){return QS(s||[],l||[],zo)}function DV(s,l){return QS(s||[],l||[],qo)}var $V=_e(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,L2(s,f)});function N2(s){var l=T(s);return l.__chain__=!0,l}function RV(s,l){return l(s),s}function nc(s,l){return l(s)}var LV=lr(function(s){var l=s.length,f=l?s[0]:0,p=this.__wrapped__,b=function(P){return Vh(P,s)};return l>1||this.__actions__.length||!(p instanceof Re)||!cr(f)?this.thru(b):(p=p.slice(f,+f+(l?1:0)),p.__actions__.push({func:nc,args:[b],thisArg:n}),new dn(p,this.__chain__).thru(function(P){return l&&!P.length&&P.push(n),P}))});function NV(){return N2(this)}function kV(){return new dn(this.value(),this.__chain__)}function FV(){this.__values__===n&&(this.__values__=X2(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function jV(){return this}function VV(s){for(var l,f=this;f instanceof Bl;){var p=M2(f);p.__index__=0,p.__values__=n,l?b.__wrapped__=p:l=p;var b=p;f=f.__wrapped__}return b.__wrapped__=s,l}function BV(){var s=this.__wrapped__;if(s instanceof Re){var l=s;return this.__actions__.length&&(l=new Re(this)),l=l.reverse(),l.__actions__.push({func:nc,args:[mm],thisArg:n}),new dn(l,this.__chain__)}return this.thru(mm)}function UV(){return JS(this.__wrapped__,this.__actions__)}var WV=ql(function(s,l,f){We.call(s,f)?++s[f]:or(s,f,1)});function zV(s,l,f){var p=Ae(s)?fS:RF;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}function GV(s,l){var f=Ae(s)?Nr:LS;return f(s,xe(l,3))}var YV=c2(_2),HV=c2(I2);function qV(s,l){return xt(rc(s,l),1)}function KV(s,l){return xt(rc(s,l),B)}function XV(s,l,f){return f=f===n?1:Oe(f),xt(rc(s,l),f)}function k2(s,l){var f=Ae(s)?un:Vr;return f(s,xe(l,3))}function F2(s,l){var f=Ae(s)?p3:RS;return f(s,xe(l,3))}var ZV=ql(function(s,l,f){We.call(s,f)?s[f].push(l):or(s,f,[l])});function JV(s,l,f,p){s=Bt(s)?s:$s(s),f=f&&!p?Oe(f):0;var b=s.length;return f<0&&(f=mt(b+f,0)),lc(s)?f<=b&&s.indexOf(l,f)>-1:!!b&&ws(s,l,f)>-1}var QV=_e(function(s,l,f){var p=-1,b=typeof l=="function",P=Bt(s)?V(s.length):[];return Vr(s,function(_){P[++p]=b?Kt(l,_,f):Yo(_,l,f)}),P}),eB=ql(function(s,l,f){or(s,f,l)});function rc(s,l){var f=Ae(s)?et:BS;return f(s,xe(l,3))}function tB(s,l,f,p){return s==null?[]:(Ae(l)||(l=l==null?[]:[l]),f=p?n:f,Ae(f)||(f=f==null?[]:[f]),GS(s,l,f))}var nB=ql(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function rB(s,l,f){var p=Ae(s)?Ah:pS,b=arguments.length<3;return p(s,xe(l,4),f,b,Vr)}function iB(s,l,f){var p=Ae(s)?g3:pS,b=arguments.length<3;return p(s,xe(l,4),f,b,RS)}function sB(s,l){var f=Ae(s)?Nr:LS;return f(s,oc(xe(l,3)))}function oB(s){var l=Ae(s)?_S:JF;return l(s)}function aB(s,l,f){(f?Dt(s,l,f):l===n)?l=1:l=Oe(l);var p=Ae(s)?MF:QF;return p(s,l)}function lB(s){var l=Ae(s)?_F:tj;return l(s)}function cB(s){if(s==null)return 0;if(Bt(s))return lc(s)?Ts(s):s.length;var l=Ot(s);return l==Ne||l==qt?s.size:Yh(s).length}function uB(s,l,f){var p=Ae(s)?Oh:nj;return f&&Dt(s,l,f)&&(l=n),p(s,xe(l,3))}var fB=_e(function(s,l){if(s==null)return[];var f=l.length;return f>1&&Dt(s,l[0],l[1])?l=[]:f>2&&Dt(l[0],l[1],l[2])&&(l=[l[0]]),GS(s,xt(l,1),[])}),ic=G3||function(){return bt.Date.now()};function dB(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function j2(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function V2(s,l){var f;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(f=l.apply(this,arguments)),s<=1&&(l=n),f}}var gm=_e(function(s,l,f){var p=E;if(f.length){var b=Fr(f,Is(gm));p|=C}return ar(s,p,l,f,b)}),B2=_e(function(s,l,f){var p=E|w;if(f.length){var b=Fr(f,Is(B2));p|=C}return ar(l,p,s,f,b)});function U2(s,l,f){l=f?n:l;var p=ar(s,O,n,n,n,n,n,l);return p.placeholder=U2.placeholder,p}function W2(s,l,f){l=f?n:l;var p=ar(s,D,n,n,n,n,n,l);return p.placeholder=W2.placeholder,p}function z2(s,l,f){var p,b,P,_,$,k,z=0,G=!1,q=!1,se=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(G=!!f.leading,q="maxWait"in f,P=q?mt(gn(f.maxWait)||0,l):P,se="trailing"in f?!!f.trailing:se);function pe(ut){var En=p,dr=b;return p=b=n,z=ut,_=s.apply(dr,En),_}function Te(ut){return z=ut,$=Zo($e,l),G?pe(ut):_}function Me(ut){var En=ut-k,dr=ut-z,cT=l-En;return q?At(cT,P-dr):cT}function Ee(ut){var En=ut-k,dr=ut-z;return k===n||En>=l||En<0||q&&dr>=P}function $e(){var ut=ic();if(Ee(ut))return Le(ut);$=Zo($e,Me(ut))}function Le(ut){return $=n,se&&p?pe(ut):(p=b=n,_)}function Qt(){$!==n&&e2($),z=0,p=k=b=$=n}function $t(){return $===n?_:Le(ic())}function en(){var ut=ic(),En=Ee(ut);if(p=arguments,b=this,k=ut,En){if($===n)return Te(k);if(q)return e2($),$=Zo($e,l),pe(k)}return $===n&&($=Zo($e,l)),_}return en.cancel=Qt,en.flush=$t,en}var hB=_e(function(s,l){return $S(s,1,l)}),mB=_e(function(s,l,f){return $S(s,gn(l)||0,f)});function pB(s){return ar(s,Y)}function sc(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var p=arguments,b=l?l.apply(this,p):p[0],P=f.cache;if(P.has(b))return P.get(b);var _=s.apply(this,p);return f.cache=P.set(b,_)||P,_};return f.cache=new(sc.Cache||sr),f}sc.Cache=sr;function oc(s){if(typeof s!="function")throw new fn(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function gB(s){return V2(2,s)}var yB=rj(function(s,l){l=l.length==1&&Ae(l[0])?et(l[0],Xt(xe())):et(xt(l,1),Xt(xe()));var f=l.length;return _e(function(p){for(var b=-1,P=At(p.length,f);++b<P;)p[b]=l[b].call(this,p[b]);return Kt(s,this,p)})}),ym=_e(function(s,l){var f=Fr(l,Is(ym));return ar(s,C,n,l,f)}),G2=_e(function(s,l){var f=Fr(l,Is(G2));return ar(s,L,n,l,f)}),vB=lr(function(s,l){return ar(s,F,n,n,n,l)});function bB(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),_e(s,l)}function xB(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var p=f[l],b=Wr(f,0,l);return p&&kr(b,p),Kt(s,this,b)})}function wB(s,l,f){var p=!0,b=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(p="leading"in f?!!f.leading:p,b="trailing"in f?!!f.trailing:b),z2(s,l,{leading:p,maxWait:l,trailing:b})}function SB(s){return j2(s,1)}function TB(s,l){return ym(tm(l),s)}function EB(){if(!arguments.length)return[];var s=arguments[0];return Ae(s)?s:[s]}function CB(s){return hn(s,y)}function PB(s,l){return l=typeof l=="function"?l:n,hn(s,y,l)}function AB(s){return hn(s,m|y)}function OB(s,l){return l=typeof l=="function"?l:n,hn(s,m|y,l)}function MB(s,l){return l==null||DS(s,l,gt(l))}function Tn(s,l){return s===l||s!==s&&l!==l}var _B=Jl(Wh),IB=Jl(function(s,l){return s>=l}),Ci=FS(function(){return arguments}())?FS:function(s){return ot(s)&&We.call(s,"callee")&&!ES.call(s,"callee")},Ae=V.isArray,DB=sS?Xt(sS):VF;function Bt(s){return s!=null&&ac(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function $B(s){return s===!0||s===!1||ot(s)&&It(s)==oe}var zr=H3||Om,RB=oS?Xt(oS):BF;function LB(s){return ot(s)&&s.nodeType===1&&!Jo(s)}function NB(s){if(s==null)return!0;if(Bt(s)&&(Ae(s)||typeof s=="string"||typeof s.splice=="function"||zr(s)||Ds(s)||Ci(s)))return!s.length;var l=Ot(s);if(l==Ne||l==qt)return!s.size;if(Xo(s))return!Yh(s).length;for(var f in s)if(We.call(s,f))return!1;return!0}function kB(s,l){return Ho(s,l)}function FB(s,l,f){f=typeof f=="function"?f:n;var p=f?f(s,l):n;return p===n?Ho(s,l,n,f):!!p}function vm(s){if(!ot(s))return!1;var l=It(s);return l==Ue||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Jo(s)}function jB(s){return typeof s=="number"&&PS(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ne||l==ye||l==he||l==bl}function Y2(s){return typeof s=="number"&&s==Oe(s)}function ac(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=U}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var H2=aS?Xt(aS):WF;function VB(s,l){return s===l||Gh(s,l,lm(l))}function BB(s,l,f){return f=typeof f=="function"?f:n,Gh(s,l,lm(l),f)}function UB(s){return q2(s)&&s!=+s}function WB(s){if(Pj(s))throw new Pe(o);return jS(s)}function zB(s){return s===null}function GB(s){return s==null}function q2(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Jo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Rl(s);if(l===null)return!0;var f=We.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&_l.call(f)==B3}var bm=lS?Xt(lS):zF;function YB(s){return Y2(s)&&s>=-9007199254740991&&s<=U}var K2=cS?Xt(cS):GF;function lc(s){return typeof s=="string"||!Ae(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==gi}var Ds=uS?Xt(uS):YF;function HB(s){return s===n}function qB(s){return ot(s)&&Ot(s)==Lr}function KB(s){return ot(s)&&It(s)==wl}var XB=Jl(Hh),ZB=Jl(function(s,l){return s<=l});function X2(s){if(!s)return[];if(Bt(s))return lc(s)?wn(s):Vt(s);if(jo&&s[jo])return M3(s[jo]());var l=Ot(s),f=l==Ne?Rh:l==qt?Al:$s;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===B||s===-1/0){var l=s<0?-1:1;return l*H}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function Z2(s){return s?wi(Oe(s),0,N):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return M;if(st(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=st(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=gS(s);var f=Dk.test(s);return f||Rk.test(s)?d3(s.slice(2),f?2:8):Ik.test(s)?M:+s}function J2(s){return Un(s,Ut(s))}function JB(s){return s?wi(Oe(s),-9007199254740991,U):s===0?s:0}function Ve(s){return s==null?"":Zt(s)}var QB=Ms(function(s,l){if(Xo(l)||Bt(l)){Un(l,gt(l),s);return}for(var f in l)We.call(l,f)&&zo(s,f,l[f])}),Q2=Ms(function(s,l){Un(l,Ut(l),s)}),cc=Ms(function(s,l,f,p){Un(l,Ut(l),s,p)}),e8=Ms(function(s,l,f,p){Un(l,gt(l),s,p)}),t8=lr(Vh);function n8(s,l){var f=Os(s);return l==null?f:IS(f,l)}var r8=_e(function(s,l){s=Ge(s);var f=-1,p=l.length,b=p>2?l[2]:n;for(b&&Dt(l[0],l[1],b)&&(p=1);++f<p;)for(var P=l[f],_=Ut(P),$=-1,k=_.length;++$<k;){var z=_[$],G=s[z];(G===n||Tn(G,Cs[z])&&!We.call(s,z))&&(s[z]=P[z])}return s}),i8=_e(function(s){return s.push(n,g2),Kt(eT,n,s)});function s8(s,l){return dS(s,xe(l,3),Bn)}function o8(s,l){return dS(s,xe(l,3),Uh)}function a8(s,l){return s==null?s:Bh(s,xe(l,3),Ut)}function l8(s,l){return s==null?s:NS(s,xe(l,3),Ut)}function c8(s,l){return s&&Bn(s,xe(l,3))}function u8(s,l){return s&&Uh(s,xe(l,3))}function f8(s){return s==null?[]:zl(s,gt(s))}function d8(s){return s==null?[]:zl(s,Ut(s))}function xm(s,l,f){var p=s==null?n:Si(s,l);return p===n?f:p}function h8(s,l){return s!=null&&b2(s,l,NF)}function wm(s,l){return s!=null&&b2(s,l,kF)}var m8=f2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),s[l]=f},Tm(Wt)),p8=f2(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Il.call(l)),We.call(s,l)?s[l].push(f):s[l]=[f]},xe),g8=_e(Yo);function gt(s){return Bt(s)?MS(s):Yh(s)}function Ut(s){return Bt(s)?MS(s,!0):HF(s)}function y8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,b,P){or(f,l(p,b,P),p)}),f}function v8(s,l){var f={};return l=xe(l,3),Bn(s,function(p,b,P){or(f,b,l(p,b,P))}),f}var b8=Ms(function(s,l,f){Gl(s,l,f)}),eT=Ms(function(s,l,f,p){Gl(s,l,f,p)}),x8=lr(function(s,l){var f={};if(s==null)return f;var p=!1;l=et(l,function(P){return P=Ur(P,s),p||(p=P.length>1),P}),Un(s,om(s),f),p&&(f=hn(f,m|g|y,mj));for(var b=l.length;b--;)Jh(f,l[b]);return f});function w8(s,l){return tT(s,oc(xe(l)))}var S8=lr(function(s,l){return s==null?{}:KF(s,l)});function tT(s,l){if(s==null)return{};var f=et(om(s),function(p){return[p]});return l=xe(l),YS(s,f,function(p,b){return l(p,b[0])})}function T8(s,l,f){l=Ur(l,s);var p=-1,b=l.length;for(b||(b=1,s=n);++p<b;){var P=s==null?n:s[Wn(l[p])];P===n&&(p=b,P=f),s=ur(P)?P.call(s):P}return s}function E8(s,l,f){return s==null?s:qo(s,l,f)}function C8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:qo(s,l,f,p)}var nT=m2(gt),rT=m2(Ut);function P8(s,l,f){var p=Ae(s),b=p||zr(s)||Ds(s);if(l=xe(l,4),f==null){var P=s&&s.constructor;b?f=p?new P:[]:st(s)?f=ur(P)?Os(Rl(s)):{}:f={}}return(b?un:Bn)(s,function(_,$,k){return l(f,_,$,k)}),f}function A8(s,l){return s==null?!0:Jh(s,l)}function O8(s,l,f){return s==null?s:ZS(s,l,tm(f))}function M8(s,l,f,p){return p=typeof p=="function"?p:n,s==null?s:ZS(s,l,tm(f),p)}function $s(s){return s==null?[]:$h(s,gt(s))}function _8(s){return s==null?[]:$h(s,Ut(s))}function I8(s,l,f){return f===n&&(f=l,l=n),f!==n&&(f=gn(f),f=f===f?f:0),l!==n&&(l=gn(l),l=l===l?l:0),wi(gn(s),l,f)}function D8(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),FF(s,l,f)}function $8(s,l,f){if(f&&typeof f!="boolean"&&Dt(s,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof s=="boolean"&&(f=s,s=n)),s===n&&l===n?(s=0,l=1):(s=fr(s),l===n?(l=s,s=0):l=fr(l)),s>l){var p=s;s=l,l=p}if(f||s%1||l%1){var b=AS();return At(s+b*(l-s+f3("1e-"+((b+"").length-1))),l)}return Kh(s,l)}var R8=_s(function(s,l,f){return l=l.toLowerCase(),s+(f?iT(l):l)});function iT(s){return Sm(Ve(s).toLowerCase())}function sT(s){return s=Ve(s),s&&s.replace(Nk,E3).replace(t3,"")}function L8(s,l,f){s=Ve(s),l=Zt(l);var p=s.length;f=f===n?p:wi(Oe(f),0,p);var b=f;return f-=l.length,f>=0&&s.slice(f,b)==l}function N8(s){return s=Ve(s),s&&gk.test(s)?s.replace(Nw,C3):s}function k8(s){return s=Ve(s),s&&Sk.test(s)?s.replace(yh,"\\$&"):s}var F8=_s(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),j8=_s(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),V8=l2("toLowerCase");function B8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;if(!l||p>=l)return s;var b=(l-p)/2;return Zl(Fl(b),f)+s+Zl(kl(b),f)}function U8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?s+Zl(l-p,f):s}function W8(s,l,f){s=Ve(s),l=Oe(l);var p=l?Ts(s):0;return l&&p<l?Zl(l-p,f)+s:s}function z8(s,l,f){return f||l==null?l=0:l&&(l=+l),Z3(Ve(s).replace(vh,""),l||0)}function G8(s,l,f){return(f?Dt(s,l,f):l===n)?l=1:l=Oe(l),Xh(Ve(s),l)}function Y8(){var s=arguments,l=Ve(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var H8=_s(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function q8(s,l,f){return f&&typeof f!="number"&&Dt(s,l,f)&&(l=f=n),f=f===n?N:f>>>0,f?(s=Ve(s),s&&(typeof l=="string"||l!=null&&!bm(l))&&(l=Zt(l),!l&&Ss(s))?Wr(wn(s),0,f):s.split(l,f)):[]}var K8=_s(function(s,l,f){return s+(f?" ":"")+Sm(l)});function X8(s,l,f){return s=Ve(s),f=f==null?0:wi(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function Z8(s,l,f){var p=T.templateSettings;f&&Dt(s,l,f)&&(l=n),s=Ve(s),l=cc({},l,p,p2);var b=cc({},l.imports,p.imports,p2),P=gt(b),_=$h(b,P),$,k,z=0,G=l.interpolate||Sl,q="__p += '",se=Lh((l.escape||Sl).source+"|"+G.source+"|"+(G===kw?_k:Sl).source+"|"+(l.evaluate||Sl).source+"|$","g"),pe="//# sourceURL="+(We.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++o3+"]")+`
635
+ `;s.replace(se,function(Ee,$e,Le,Qt,$t,en){return Le||(Le=Qt),q+=s.slice(z,en).replace(kk,P3),$e&&($=!0,q+=`' +
636
636
  __e(`+$e+`) +
637
- '`),$t&&(N=!0,G+=`';
637
+ '`),$t&&(k=!0,q+=`';
638
638
  `+$t+`;
639
- __p += '`),Ne&&(G+=`' +
640
- ((__t = (`+Ne+`)) == null ? '' : __t) +
641
- '`),U=en+Ee.length,Ee}),G+=`';
642
- `;var Te=We.call(a,"variable")&&a.variable;if(!Te)G=`with (obj) {
643
- `+G+`
639
+ __p += '`),Le&&(q+=`' +
640
+ ((__t = (`+Le+`)) == null ? '' : __t) +
641
+ '`),z=en+Ee.length,Ee}),q+=`';
642
+ `;var Te=We.call(l,"variable")&&l.variable;if(!Te)q=`with (obj) {
643
+ `+q+`
644
644
  }
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")+`) {
645
+ `;else if(Ok.test(Te))throw new Pe(c);q=(k?q.replace(dk,""):q).replace(hk,"$1").replace(mk,"$1;"),q="function("+(Te||"obj")+`) {
646
646
  `+(Te?"":`obj || (obj = {});
647
- `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
647
+ `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
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(`
650
+ `)+q+`return __p
651
+ }`;var Me=aT(function(){return ke(P,pe+"return "+q).apply(n,_)});if(Me.source=q,vm(Me))throw Me;return Me}function J8(s){return Ve(s).toLowerCase()}function Q8(s){return Ve(s).toUpperCase()}function e9(s,l,f){if(s=Ve(s),s&&(f||l===n))return gS(s);if(!s||!(l=Zt(l)))return s;var p=wn(s),b=wn(l),P=yS(p,b),_=vS(p,b)+1;return Wr(p,P,_).join("")}function t9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.slice(0,xS(s)+1);if(!s||!(l=Zt(l)))return s;var p=wn(s),b=vS(p,wn(l))+1;return Wr(p,0,b).join("")}function n9(s,l,f){if(s=Ve(s),s&&(f||l===n))return s.replace(vh,"");if(!s||!(l=Zt(l)))return s;var p=wn(s),b=yS(p,wn(l));return Wr(p,b).join("")}function r9(s,l){var f=ee,p=te;if(st(l)){var b="separator"in l?l.separator:b;f="length"in l?Oe(l.length):f,p="omission"in l?Zt(l.omission):p}s=Ve(s);var P=s.length;if(Ss(s)){var _=wn(s);P=_.length}if(f>=P)return s;var $=f-Ts(p);if($<1)return p;var k=_?Wr(_,0,$).join(""):s.slice(0,$);if(b===n)return k+p;if(_&&($+=k.length-$),bm(b)){if(s.slice($).search(b)){var z,G=k;for(b.global||(b=Lh(b.source,Ve(Fw.exec(b))+"g")),b.lastIndex=0;z=b.exec(G);)var q=z.index;k=k.slice(0,q===n?$:q)}}else if(s.indexOf(Zt(b),$)!=$){var se=k.lastIndexOf(b);se>-1&&(k=k.slice(0,se))}return k+p}function i9(s){return s=Ve(s),s&&pk.test(s)?s.replace(Lw,$3):s}var s9=_s(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Sm=l2("toUpperCase");function oT(s,l,f){return s=Ve(s),l=f?n:l,l===n?O3(s)?N3(s):b3(s):s.match(l)||[]}var aT=_e(function(s,l){try{return Kt(s,n,l)}catch(f){return vm(f)?f:new Pe(f)}}),o9=lr(function(s,l){return un(l,function(f){f=Wn(f),or(s,f,gm(s[f],s))}),s});function a9(s){var l=s==null?0:s.length,f=xe();return s=l?et(s,function(p){if(typeof p[1]!="function")throw new fn(a);return[f(p[0]),p[1]]}):[],_e(function(p){for(var b=-1;++b<l;){var P=s[b];if(Kt(P[0],this,p))return Kt(P[1],this,p)}})}function l9(s){return $F(hn(s,m))}function Tm(s){return function(){return s}}function c9(s,l){return s==null||s!==s?l:s}var u9=u2(),f9=u2(!0);function Wt(s){return s}function Em(s){return VS(typeof s=="function"?s:hn(s,m))}function d9(s){return US(hn(s,m))}function h9(s,l){return WS(s,hn(l,m))}var m9=_e(function(s,l){return function(f){return Yo(f,s,l)}}),p9=_e(function(s,l){return function(f){return Yo(s,f,l)}});function Cm(s,l,f){var p=gt(l),b=zl(l,p);f==null&&!(st(l)&&(b.length||!p.length))&&(f=l,l=s,s=this,b=zl(l,gt(l)));var P=!(st(f)&&"chain"in f)||!!f.chain,_=ur(s);return un(b,function($){var k=l[$];s[$]=k,_&&(s.prototype[$]=function(){var z=this.__chain__;if(P||z){var G=s(this.__wrapped__),q=G.__actions__=Vt(this.__actions__);return q.push({func:k,args:arguments,thisArg:s}),G.__chain__=z,G}return k.apply(s,kr([this.value()],arguments))})}),s}function g9(){return bt._===this&&(bt._=U3),this}function Pm(){}function y9(s){return s=Oe(s),_e(function(l){return zS(l,s)})}var v9=rm(et),b9=rm(fS),x9=rm(Oh);function lT(s){return um(s)?Mh(Wn(s)):XF(s)}function w9(s){return function(l){return s==null?n:Si(s,l)}}var S9=d2(),T9=d2(!0);function Am(){return[]}function Om(){return!1}function E9(){return{}}function C9(){return""}function P9(){return!0}function A9(s,l){if(s=Oe(s),s<1||s>U)return[];var f=N,p=At(s,N);l=xe(l),s-=N;for(var b=Dh(p,l);++f<s;)l(f);return b}function O9(s){return Ae(s)?et(s,Wn):Jt(s)?[s]:Vt(O2(Ve(s)))}function M9(s){var l=++V3;return Ve(s)+l}var _9=Xl(function(s,l){return s+l},0),I9=im("ceil"),D9=Xl(function(s,l){return s/l},1),$9=im("floor");function R9(s){return s&&s.length?Wl(s,Wt,Wh):n}function L9(s,l){return s&&s.length?Wl(s,xe(l,2),Wh):n}function N9(s){return mS(s,Wt)}function k9(s,l){return mS(s,xe(l,2))}function F9(s){return s&&s.length?Wl(s,Wt,Hh):n}function j9(s,l){return s&&s.length?Wl(s,xe(l,2),Hh):n}var V9=Xl(function(s,l){return s*l},1),B9=im("round"),U9=Xl(function(s,l){return s-l},0);function W9(s){return s&&s.length?Ih(s,Wt):0}function z9(s,l){return s&&s.length?Ih(s,xe(l,2)):0}return T.after=dB,T.ary=j2,T.assign=QB,T.assignIn=Q2,T.assignInWith=cc,T.assignWith=e8,T.at=t8,T.before=V2,T.bind=gm,T.bindAll=o9,T.bindKey=B2,T.castArray=EB,T.chain=N2,T.chunk=$j,T.compact=Rj,T.concat=Lj,T.cond=a9,T.conforms=l9,T.constant=Tm,T.countBy=WV,T.create=n8,T.curry=U2,T.curryRight=W2,T.debounce=z2,T.defaults=r8,T.defaultsDeep=i8,T.defer=hB,T.delay=mB,T.difference=Nj,T.differenceBy=kj,T.differenceWith=Fj,T.drop=jj,T.dropRight=Vj,T.dropRightWhile=Bj,T.dropWhile=Uj,T.fill=Wj,T.filter=GV,T.flatMap=qV,T.flatMapDeep=KV,T.flatMapDepth=XV,T.flatten=D2,T.flattenDeep=zj,T.flattenDepth=Gj,T.flip=pB,T.flow=u9,T.flowRight=f9,T.fromPairs=Yj,T.functions=f8,T.functionsIn=d8,T.groupBy=ZV,T.initial=qj,T.intersection=Kj,T.intersectionBy=Xj,T.intersectionWith=Zj,T.invert=m8,T.invertBy=p8,T.invokeMap=QV,T.iteratee=Em,T.keyBy=eB,T.keys=gt,T.keysIn=Ut,T.map=rc,T.mapKeys=y8,T.mapValues=v8,T.matches=d9,T.matchesProperty=h9,T.memoize=sc,T.merge=b8,T.mergeWith=eT,T.method=m9,T.methodOf=p9,T.mixin=Cm,T.negate=oc,T.nthArg=y9,T.omit=x8,T.omitBy=w8,T.once=gB,T.orderBy=tB,T.over=v9,T.overArgs=yB,T.overEvery=b9,T.overSome=x9,T.partial=ym,T.partialRight=G2,T.partition=nB,T.pick=S8,T.pickBy=tT,T.property=lT,T.propertyOf=w9,T.pull=tV,T.pullAll=R2,T.pullAllBy=nV,T.pullAllWith=rV,T.pullAt=iV,T.range=S9,T.rangeRight=T9,T.rearg=vB,T.reject=sB,T.remove=sV,T.rest=bB,T.reverse=mm,T.sampleSize=aB,T.set=E8,T.setWith=C8,T.shuffle=lB,T.slice=oV,T.sortBy=fB,T.sortedUniq=hV,T.sortedUniqBy=mV,T.split=q8,T.spread=xB,T.tail=pV,T.take=gV,T.takeRight=yV,T.takeRightWhile=vV,T.takeWhile=bV,T.tap=RV,T.throttle=wB,T.thru=nc,T.toArray=X2,T.toPairs=nT,T.toPairsIn=rT,T.toPath=O9,T.toPlainObject=J2,T.transform=P8,T.unary=SB,T.union=xV,T.unionBy=wV,T.unionWith=SV,T.uniq=TV,T.uniqBy=EV,T.uniqWith=CV,T.unset=A8,T.unzip=pm,T.unzipWith=L2,T.update=O8,T.updateWith=M8,T.values=$s,T.valuesIn=_8,T.without=PV,T.words=oT,T.wrap=TB,T.xor=AV,T.xorBy=OV,T.xorWith=MV,T.zip=_V,T.zipObject=IV,T.zipObjectDeep=DV,T.zipWith=$V,T.entries=nT,T.entriesIn=rT,T.extend=Q2,T.extendWith=cc,Cm(T,T),T.add=_9,T.attempt=aT,T.camelCase=R8,T.capitalize=iT,T.ceil=I9,T.clamp=I8,T.clone=CB,T.cloneDeep=AB,T.cloneDeepWith=OB,T.cloneWith=PB,T.conformsTo=MB,T.deburr=sT,T.defaultTo=c9,T.divide=D9,T.endsWith=L8,T.eq=Tn,T.escape=N8,T.escapeRegExp=k8,T.every=zV,T.find=YV,T.findIndex=_2,T.findKey=s8,T.findLast=HV,T.findLastIndex=I2,T.findLastKey=o8,T.floor=$9,T.forEach=k2,T.forEachRight=F2,T.forIn=a8,T.forInRight=l8,T.forOwn=c8,T.forOwnRight=u8,T.get=xm,T.gt=_B,T.gte=IB,T.has=h8,T.hasIn=wm,T.head=$2,T.identity=Wt,T.includes=JV,T.indexOf=Hj,T.inRange=D8,T.invoke=g8,T.isArguments=Ci,T.isArray=Ae,T.isArrayBuffer=DB,T.isArrayLike=Bt,T.isArrayLikeObject=ct,T.isBoolean=$B,T.isBuffer=zr,T.isDate=RB,T.isElement=LB,T.isEmpty=NB,T.isEqual=kB,T.isEqualWith=FB,T.isError=vm,T.isFinite=jB,T.isFunction=ur,T.isInteger=Y2,T.isLength=ac,T.isMap=H2,T.isMatch=VB,T.isMatchWith=BB,T.isNaN=UB,T.isNative=WB,T.isNil=GB,T.isNull=zB,T.isNumber=q2,T.isObject=st,T.isObjectLike=ot,T.isPlainObject=Jo,T.isRegExp=bm,T.isSafeInteger=YB,T.isSet=K2,T.isString=lc,T.isSymbol=Jt,T.isTypedArray=Ds,T.isUndefined=HB,T.isWeakMap=qB,T.isWeakSet=KB,T.join=Jj,T.kebabCase=F8,T.last=pn,T.lastIndexOf=Qj,T.lowerCase=j8,T.lowerFirst=V8,T.lt=XB,T.lte=ZB,T.max=R9,T.maxBy=L9,T.mean=N9,T.meanBy=k9,T.min=F9,T.minBy=j9,T.stubArray=Am,T.stubFalse=Om,T.stubObject=E9,T.stubString=C9,T.stubTrue=P9,T.multiply=V9,T.nth=eV,T.noConflict=g9,T.noop=Pm,T.now=ic,T.pad=B8,T.padEnd=U8,T.padStart=W8,T.parseInt=z8,T.random=$8,T.reduce=rB,T.reduceRight=iB,T.repeat=G8,T.replace=Y8,T.result=T8,T.round=B9,T.runInContext=R,T.sample=oB,T.size=cB,T.snakeCase=H8,T.some=uB,T.sortedIndex=aV,T.sortedIndexBy=lV,T.sortedIndexOf=cV,T.sortedLastIndex=uV,T.sortedLastIndexBy=fV,T.sortedLastIndexOf=dV,T.startCase=K8,T.startsWith=X8,T.subtract=U9,T.sum=W9,T.sumBy=z9,T.template=Z8,T.times=A9,T.toFinite=fr,T.toInteger=Oe,T.toLength=Z2,T.toLower=J8,T.toNumber=gn,T.toSafeInteger=JB,T.toString=Ve,T.toUpper=Q8,T.trim=e9,T.trimEnd=t9,T.trimStart=n9,T.truncate=r9,T.unescape=i9,T.uniqueId=M9,T.upperCase=s9,T.upperFirst=Sm,T.each=k2,T.eachRight=F2,T.first=$2,Cm(T,function(){var s={};return Bn(T,function(l,f){We.call(T.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),T.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){T[s].placeholder=T}),un(["drop","take"],function(s,l){Re.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var p=this.__filtered__&&!l?new Re(this):this.clone();return p.__filtered__?p.__takeCount__=At(f,p.__takeCount__):p.__views__.push({size:At(f,N),type:s+(p.__dir__<0?"Right":"")}),p},Re.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,p=f==le||f==ie;Re.prototype[s]=function(b){var P=this.clone();return P.__iteratees__.push({iteratee:xe(b,3),type:f}),P.__filtered__=P.__filtered__||p,P}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");Re.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");Re.prototype[s]=function(){return this.__filtered__?new Re(this):this[f](1)}}),Re.prototype.compact=function(){return this.filter(Wt)},Re.prototype.find=function(s){return this.filter(s).head()},Re.prototype.findLast=function(s){return this.reverse().find(s)},Re.prototype.invokeMap=_e(function(s,l){return typeof s=="function"?new Re(this):this.map(function(f){return Yo(f,s,l)})}),Re.prototype.reject=function(s){return this.filter(oc(xe(s)))},Re.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new Re(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-s)),f)},Re.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Re.prototype.toArray=function(){return this.take(N)},Bn(Re.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),p=/^(?:head|last)$/.test(l),b=T[p?"take"+(l=="last"?"Right":""):l],P=p||/^find/.test(l);b&&(T.prototype[l]=function(){var _=this.__wrapped__,$=p?[1]:arguments,k=_ instanceof Re,z=$[0],G=k||Ae(_),q=function($e){var Le=b.apply(T,kr([$e],$));return p&&se?Le[0]:Le};G&&f&&typeof z=="function"&&z.length!=1&&(k=G=!1);var se=this.__chain__,pe=!!this.__actions__.length,Te=P&&!se,Me=k&&!pe;if(!P&&G){_=Me?_:new Re(this);var Ee=s.apply(_,$);return Ee.__actions__.push({func:nc,args:[q],thisArg:n}),new dn(Ee,se)}return Te&&Me?s.apply(this,$):(Ee=this.thru(q),Te?p?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=Ol[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",p=/^(?:pop|shift)$/.test(s);T.prototype[s]=function(){var b=arguments;if(p&&!this.__chain__){var P=this.value();return l.apply(Ae(P)?P:[],b)}return this[f](function(_){return l.apply(Ae(_)?_:[],b)})}}),Bn(Re.prototype,function(s,l){var f=T[l];if(f){var p=f.name+"";We.call(As,p)||(As[p]=[]),As[p].push({name:l,func:f})}}),As[Kl(n,w).name]=[{name:"wrapper",func:n}],Re.prototype.clone=iF,Re.prototype.reverse=sF,Re.prototype.value=oF,T.prototype.at=LV,T.prototype.chain=NV,T.prototype.commit=kV,T.prototype.next=FV,T.prototype.plant=VV,T.prototype.reverse=BV,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=UV,T.prototype.first=T.prototype.head,jo&&(T.prototype[jo]=jV),T},Es=k3();yi?((yi.exports=Es)._=Es,Eh._=Es):bt._=Es}).call(lD)}(co,co.exports)),co.exports}var gf=cD();const yf=I.createContext({});function vf(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const bf=typeof window<"u",Ev=bf?I.useLayoutEffect:I.useEffect,Na=I.createContext(null),xf=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class uD extends Z.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function fD({children:e,isPresent:t,anchorX:n}){const r=I.useId(),i=I.useRef(null),o=I.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=I.useContext(xf);return I.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const g=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");return a&&(y.nonce=a),document.head.appendChild(y),y.sheet&&y.sheet.insertRule(`
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 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")})]})]})})})})})};/*!
659
+ `),()=>{document.head.removeChild(y)}},[t]),x.jsx(uD,{isPresent:t,childRef:i,sizeRef:o,children:Z.cloneElement(e,{ref:i})})}const dD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=vf(hD),d=I.useId(),h=I.useCallback(g=>{u.set(g,!0);for(const y of u.values())if(!y)return;r&&r()},[u,r]),m=I.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:g=>(u.set(g,!1),()=>u.delete(g))}),o?[Math.random(),h]:[n,h]);return I.useMemo(()=>{u.forEach((g,y)=>u.set(y,!1))},[n]),Z.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=x.jsx(fD,{isPresent:n,anchorX:c,children:e})),x.jsx(Na.Provider,{value:m,children:e})};function hD(){return new Map}function Cv(e=!0){const t=I.useContext(Na);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=I.useId();I.useEffect(()=>{if(e)return i(o)},[e]);const a=I.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ka=e=>e.key||"";function Pv(e){const t=[];return I.Children.forEach(e,n=>{I.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cv(a),h=I.useMemo(()=>Pv(e),[e]),m=a&&!u?[]:h.map(ka),g=I.useRef(!0),y=I.useRef(h),S=vf(()=>new Map),[v,E]=I.useState(h),[w,A]=I.useState(h);Ev(()=>{g.current=!1,y.current=h;for(let C=0;C<w.length;C++){const L=ka(w[C]);m.includes(L)?S.delete(L):S.get(L)!==!0&&S.set(L,!1)}},[w,m.length,m.join("-")]);const O=[];if(h!==v){let C=[...h];for(let L=0;L<w.length;L++){const j=w[L],F=ka(j);m.includes(F)||(C.splice(L,0,j),O.push(j))}return o==="wait"&&O.length&&(C=O),A(Pv(C)),E(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&w.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:D}=I.useContext(yf);return x.jsx(x.Fragment,{children:w.map(C=>{const L=ka(C),j=a&&!u?!1:h===w||m.includes(L),F=()=>{if(S.has(L))S.set(L,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(D==null||D(),A(y.current),a&&(d==null||d()),r&&r())};return x.jsx(dD,{isPresent:j,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:C},L)})})},Lt=e=>e;let Yi=Lt,Er=Lt;process.env.NODE_ENV!=="production"&&(Yi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const mD={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Av={value:null};function pD(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},u=0;function d(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,g=!1,y=!1)=>{const v=y&&i?n:r;return g&&a.add(m),v.has(m)||v.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(d),t&&Av.value&&Av.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const gD=40;function Ov(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((w,A)=>(w[A]=pD(o,t?A:void 0),w),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:g}=a,y=()=>{const w=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(w-i.timestamp,gD),1),i.timestamp=w,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},S=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:Fa.reduce((w,A)=>{const O=a[A];return w[A]=(D,C=!1,L=!1)=>(n||S(),O.schedule(D,C,L)),w},{}),cancel:w=>{for(let A=0;A<Fa.length;A++)a[Fa[A]].cancel(w)},state:i,steps:a}}const{schedule:He,cancel:Cr,state:vt,steps:wf}=Ov(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0),Mv=I.createContext({strict:!1}),_v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hi={};for(const e in _v)Hi[e]={isEnabled:t=>_v[e].some(n=>!!t[n])};function yD(e){for(const t in e)Hi[t]={...Hi[t],...e[t]}}const vD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ja(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vD.has(e)}let Iv=e=>!ja(e);function bD(e){e&&(Iv=t=>t.startsWith("on")?!ja(t):e(t))}try{bD(require("@emotion/is-prop-valid").default)}catch{}function xD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Iv(i)||n===!0&&ja(i)||!t&&!ja(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Dv=new Set;function Va(e,t,n){e||Dv.has(t)||(console.warn(t),Dv.add(t))}function wD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Va(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ba=I.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function uo(e){return typeof e=="string"||Array.isArray(e)}const Sf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tf=["initial",...Sf];function Wa(e){return Ua(e.animate)||Tf.some(t=>uo(e[t]))}function $v(e){return!!(Wa(e)||e.variants)}function SD(e,t){if(Wa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uo(n)?n:void 0,animate:uo(r)?r:void 0}}return e.inherit!==!1?t:{}}function TD(e){const{initial:t,animate:n}=SD(e,I.useContext(Ba));return I.useMemo(()=>({initial:t,animate:n}),[Rv(t),Rv(n)])}function Rv(e){return Array.isArray(e)?e.join(" "):e}const ED=Symbol.for("motionComponentSymbol");function qi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function CD(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qi(n)&&(n.current=r))},[t])}const{schedule:Ef}=Ov(queueMicrotask,!1),Cf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Lv="data-"+Cf("framerAppearId"),Nv=I.createContext({});function PD(e,t,n,r,i){var o,a;const{visualElement:c}=I.useContext(Ba),u=I.useContext(Mv),d=I.useContext(Na),h=I.useContext(xf).reducedMotion,m=I.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,y=I.useContext(Nv);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&AD(m.current,n,i,y);const S=I.useRef(!1);I.useInsertionEffect(()=>{g&&S.current&&g.update(n,d)});const v=n[Lv],E=I.useRef(!!v&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,v))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,v)));return Ev(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Ef.render(g.render),E.current&&g.animationState&&g.animationState.animateChanges())}),I.useEffect(()=>{g&&(!E.current&&g.animationState&&g.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,v)}),E.current=!1))}),g}function AD(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:kv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&qi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function kv(e){if(e)return e.options.allowProjection!==!1?e.projection:kv(e.parent)}function OD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&yD(e);function c(d,h){let m;const g={...I.useContext(xf),...d,layoutId:MD(d)},{isStatic:y}=g,S=TD(d),v=r(d,y);if(!y&&bf){_D(g,e);const E=ID(g);m=E.MeasureLayout,S.visualElement=PD(i,v,g,t,E.ProjectionNode)}return x.jsxs(Ba.Provider,{value:S,children:[m&&S.visualElement?x.jsx(m,{visualElement:S.visualElement,...g}):null,n(i,d,CD(v,S.visualElement,h),v,y,S.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const u=I.forwardRef(c);return u[ED]=i,u}function MD({layoutId:e}){const t=I.useContext(yf).id;return t&&e!==void 0?t+"-"+e:e}function _D(e,t){const n=I.useContext(Mv).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yi(!1,r):Er(!1,r)}}function ID(e){const{drag:t,layout:n}=Hi;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Fv=e=>t=>typeof t=="string"&&t.startsWith(e),Pf=Fv("--"),DD=Fv("var(--"),Af=e=>DD(e)?$D.test(e.split("/*")[0].trim()):!1,$D=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,fo={};function RD(e){for(const t in e)fo[t]=e[t],Pf(t)&&(fo[t].isCSSVariable=!0)}const Ki=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Ki);function jv(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!fo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),Vv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Xi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ho={...Xi,transform:e=>Xn(0,1,e)},za={...Xi,default:1},mo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=mo("deg"),Rn=mo("%"),Se=mo("px"),LD=mo("vh"),ND=mo("vw"),Bv={...Rn,parse:e=>Rn.parse(e)/100,transform:e=>Rn.transform(e*100)},kD={borderWidth:Se,borderTopWidth:Se,borderRightWidth:Se,borderBottomWidth:Se,borderLeftWidth:Se,borderRadius:Se,radius:Se,borderTopLeftRadius:Se,borderTopRightRadius:Se,borderBottomRightRadius:Se,borderBottomLeftRadius:Se,width:Se,maxWidth:Se,height:Se,maxHeight:Se,top:Se,right:Se,bottom:Se,left:Se,padding:Se,paddingTop:Se,paddingRight:Se,paddingBottom:Se,paddingLeft:Se,margin:Se,marginTop:Se,marginRight:Se,marginBottom:Se,marginLeft:Se,backgroundPositionX:Se,backgroundPositionY:Se},FD={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:za,scaleX:za,scaleY:za,scaleZ:za,skew:Pr,skewX:Pr,skewY:Pr,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:ho,originX:Bv,originY:Bv,originZ:Se},Uv={...Xi,transform:Math.round},Of={...kD,...FD,zIndex:Uv,size:Se,fillOpacity:ho,strokeOpacity:ho,numOctaves:Uv},jD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},VD=Ki.length;function BD(e,t,n){let r="",i=!0;for(let o=0;o<VD;o++){const a=Ki[o],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(a.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const d=Vv(c,Of[a]);if(!u){i=!1;const h=jD[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Mf(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ti.has(u)){a=!0;continue}else if(Pf(u)){i[u]=d;continue}else{const h=Vv(d,Of[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=BD(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${d} ${h}`}}const _f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wv(e,t,n){for(const r in t)!Et(t[r])&&!jv(r,n)&&(e[r]=t[r])}function UD({transformTemplate:e},t){return I.useMemo(()=>{const n=_f();return Mf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function WD(e,t){const n=e.style||{},r={};return Wv(r,n,e),Object.assign(r,UD(e,t)),r}function zD(e,t){const n={},r=WD(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const GD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function If(e){return typeof e!="string"||e.includes("-")?!1:!!(GD.indexOf(e)>-1||/[A-Z]/u.test(e))}const YD={offset:"stroke-dashoffset",array:"stroke-dasharray"},HD={offset:"strokeDashoffset",array:"strokeDasharray"};function qD(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?YD:HD;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function zv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function KD(e,t,n){const r=zv(t,e.x,e.width),i=zv(n,e.y,e.height);return`${r} ${i}`}function Df(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Mf(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:y,dimensions:S}=e;g.transform&&(S&&(y.transform=g.transform),delete g.transform),S&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=KD(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&qD(g,a,c,u,!1)}const Gv=()=>({..._f(),attrs:{}}),$f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XD(e,t,n,r){const i=I.useMemo(()=>{const o=Gv();return Df(o,t,$f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wv(o,e.style,e),i.style={...o,...i.style}}return i}function ZD(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(If(n)?XD:zD)(r,o,a,n),d=xD(r,typeof n=="string",e),h=n!==I.Fragment?{...d,...u,ref:i}:{},{children:m}=r,g=I.useMemo(()=>Et(m)?m.get():m,[m]);return I.createElement(n,{...h,children:g})}}function Yv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rf(e,t,n,r){if(typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Yv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lf=e=>Array.isArray(e),JD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QD=e=>Lf(e)?e[e.length-1]||0:e;function Ga(e){const t=Et(e)?e.get():e;return JD(t)?t.toValue():t}function e$({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:t$(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Hv=e=>(t,n)=>{const r=I.useContext(Ba),i=I.useContext(Na),o=()=>e$(e,t,r,i);return n?o():vf(o)};function t$(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=Ga(o[g]);let{initial:a,animate:c}=e;const u=Wa(e),d=$v(e);t&&d&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?c:a;if(m&&typeof m!="boolean"&&!Ua(m)){const g=Array.isArray(m)?m:[m];for(let y=0;y<g.length;y++){const S=Rf(e,g[y]);if(S){const{transitionEnd:v,transition:E,...w}=S;for(const A in w){let O=w[A];if(Array.isArray(O)){const D=h?O.length-1:0;O=O[D]}O!==null&&(i[A]=O)}for(const A in v)i[A]=v[A]}}}return i}function Nf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||jv(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}const n$={useVisualState:Hv({scrapeMotionValuesFromProps:Nf,createRenderState:_f})};function qv(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Kv(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Xv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Zv(e,t,n,r){Kv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Xv.has(i)?i:Cf(i),t.attrs[i])}function Jv(e,t,n){const r=Nf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=Ki.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const Qv=["x","y","width","height","cx","cy","r"],r$={useVisualState:Hv({scrapeMotionValuesFromProps:Jv,createRenderState:Gv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in i)if(ti.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Qv.length;c++){const u=Qv[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{qv(n,r),He.render(()=>{Df(r,i,$f(n.tagName),e.transformTemplate),Zv(n,r)})})}})};function i$(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...If(r)?r$:n$,preloadedFeatures:e,useRender:ZD(i),createVisualElement:t,Component:r};return OD(a)}}function po(e,t,n){const r=e.getProps();return Rf(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const eb=new Set(["width","height","top","left","right","bottom",...Ki]);function Ff(e,t){e.indexOf(t)===-1&&e.push(t)}function jf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vf{constructor(){this.subscriptions=[]}add(t){return Ff(this.subscriptions,t),()=>jf(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tb(e,t){return t?e*(1e3/t):0}let Ya;function s$(){Ya=void 0}const Ln={now:()=>(Ya===void 0&&Ln.set(vt.isProcessing||mD.useManualTiming?vt.timestamp:performance.now()),Ya),set:e=>{Ya=e,queueMicrotask(s$)}},nb=30,o$=e=>!isNaN(parseFloat(e));class a${constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ln.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ln.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=o$(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Va(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ln.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return tb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function go(e,t){return new a$(e,t)}function l$(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,go(n))}function c$(e,t){const n=po(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=QD(o[a]);l$(e,a,c)}}function u$(e){return!!(Et(e)&&e.add)}function Bf(e,t){const n=e.getValue("willChange");if(u$(n))return n.add(t)}function rb(e){return e.props[Lv]}function Uf(e){let t;return()=>(t===void 0&&(t=e()),t)}const f$=Uf(()=>window.ScrollTimeline!==void 0);class d${constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(f$()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class h$ extends d${then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Wf(e){return typeof e=="function"}function ib(e,t){e.timeline=t,e.onfinish=null}const zf=e=>Array.isArray(e)&&typeof e[0]=="number",m$={linearEasing:void 0};function p$(e,t){const n=Uf(e);return()=>{var r;return(r=m$[t])!==null&&r!==void 0?r:n()}}const Ha=p$(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Zi=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Zi(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ob(e){return!!(typeof e=="function"&&Ha()||!e||typeof e=="string"&&(e in Gf||Ha())||zf(e)||Array.isArray(e)&&e.every(ob))}const yo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yo([0,.65,.55,1]),circOut:yo([.55,0,1,.45]),backIn:yo([.31,.01,.66,-.59]),backOut:yo([.33,1.53,.69,.99])};function ab(e,t){if(e)return typeof e=="function"&&Ha()?sb(e,t):zf(e)?yo(e):Array.isArray(e)?e.map(n=>ab(n,t)||Gf.easeOut):Gf[e]}const lb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,g$=1e-7,y$=12;function v$(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=lb(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>g$&&++c<y$);return a}function vo(e,t,n,r){if(e===t&&n===r)return Lt;const i=o=>v$(o,0,1,e,n);return o=>o===0||o===1?o:lb(i(o),t,r)}const cb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ub=e=>t=>1-e(1-t),fb=vo(.33,1.53,.69,.99),Yf=ub(fb),db=cb(Yf),hb=e=>(e*=2)<1?.5*Yf(e):.5*(2-Math.pow(2,-10*(e-1))),Hf=e=>1-Math.sin(Math.acos(e)),mb=ub(Hf),pb=cb(Hf),gb=e=>/^0[^.\s]+$/u.test(e);function b$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gb(e):!0}const bo=e=>Math.round(e*1e5)/1e5,qf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function x$(e){return e==null}const w$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Kf=(e,t)=>n=>!!(typeof n=="string"&&w$.test(n)&&n.startsWith(e)||t&&!x$(n)&&Object.prototype.hasOwnProperty.call(n,t)),yb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(qf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},S$=e=>Xn(0,255,e),Xf={...Xi,transform:e=>Math.round(S$(e))},ni={test:Kf("rgb","red"),parse:yb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xf.transform(e)+", "+Xf.transform(t)+", "+Xf.transform(n)+", "+bo(ho.transform(r))+")"};function T$(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Zf={test:Kf("#"),parse:T$,transform:ni.transform},Ji={test:Kf("hsl","hue"),parse:yb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Rn.transform(bo(t))+", "+Rn.transform(bo(n))+", "+bo(ho.transform(r))+")"},Ct={test:e=>ni.test(e)||Zf.test(e)||Ji.test(e),parse:e=>ni.test(e)?ni.parse(e):Ji.test(e)?Ji.parse(e):Zf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):Ji.transform(e)},E$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function C$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(E$))===null||n===void 0?void 0:n.length)||0)>0}const vb="number",bb="color",P$="var",A$="var(",xb="${}",O$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(O$,u=>(Ct.test(u)?(r.color.push(o),i.push(bb),n.push(Ct.parse(u))):u.startsWith(A$)?(r.var.push(o),i.push(P$),n.push(u)):(r.number.push(o),i.push(vb),n.push(parseFloat(u))),++o,xb)).split(xb);return{values:n,split:c,indexes:r,types:i}}function wb(e){return xo(e).values}function Sb(e){const{split:t,types:n}=xo(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const c=n[a];c===vb?o+=bo(i[a]):c===bb?o+=Ct.transform(i[a]):o+=i[a]}return o}}const M$=e=>typeof e=="number"?0:e;function _$(e){const t=wb(e);return Sb(e)(t.map(M$))}const Ar={test:C$,parse:wb,createTransformer:Sb,getAnimatableNone:_$},I$=new Set(["brightness","contrast","saturate","opacity"]);function D$(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qf)||[];if(!r)return e;const i=n.replace(r,"");let o=I$.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $$=/\b([a-z-]*)\(.*?\)/gu,Jf={...Ar,getAnimatableNone:e=>{const t=e.match($$);return t?t.map(D$).join(" "):e}},R$={...Of,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Jf,WebkitFilter:Jf},Tb=e=>R$[e];function Eb(e,t){let n=Tb(e);return n!==Jf&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const L$=new Set(["auto","none","0"]);function N$(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!L$.has(o)&&xo(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Eb(n,i)}const ri=e=>e*180/Math.PI,Qf=e=>{const t=ri(Math.atan2(e[1],e[0]));return ed(t)},k$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qf,rotateZ:Qf,skewX:e=>ri(Math.atan(e[1])),skewY:e=>ri(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>(e=e%360,e<0&&(e+=360),e),Cb=Qf,Pb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ab=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),F$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Pb,scaleY:Ab,scale:e=>(Pb(e)+Ab(e))/2,rotateX:e=>ed(ri(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ri(Math.atan2(-e[2],e[0]))),rotateZ:Cb,rotate:Cb,skewX:e=>ri(Math.atan(e[4])),skewY:e=>ri(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ob(e){return e.includes("scale")?1:0}function td(e,t){if(!e||e==="none")return Ob(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=F$,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=k$,i=c}if(!i)return Ob(t);const o=r[t],a=i[1].split(",").map(V$);return typeof o=="function"?o(a):a[o]}const j$=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return td(n,t)};function V$(e){return parseFloat(e.trim())}const Mb=e=>e===Xi||e===Se,B$=new Set(["x","y","z"]),U$=Ki.filter(e=>!B$.has(e));function W$(e){const t=[];return U$.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>td(t,"x"),y:(e,{transform:t})=>td(t,"y")};Qi.translateX=Qi.x,Qi.translateY=Qi.y;const ii=new Set;let nd=!1,rd=!1;function _b(){if(rd){const e=Array.from(ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=W$(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rd=!1,nd=!1,ii.forEach(e=>e.complete()),ii.clear()}function Ib(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rd=!0)})}function z$(){Ib(),_b()}class id{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ii.add(this),nd||(nd=!0,He.read(Ib),He.resolveKeyframes(_b))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Db=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Y$(e){const t=G$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const H$=4;function $b(e,t,n=1){Er(n<=H$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Y$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Db(a)?parseFloat(a):a}return Af(i)?$b(i,t,n+1):i}const Rb=e=>t=>t.test(e),Lb=[Xi,Se,Rn,Pr,ND,LD,{test:e=>e==="auto",parse:e=>e}],Nb=e=>Lb.find(Rb(e));class kb extends id{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Af(d))){const h=$b(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!eb.has(r)||t.length!==2)return;const[i,o]=t,a=Nb(i),c=Nb(o);if(a!==c)if(Mb(a)&&Mb(c))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)b$(t[i])&&r.push(i);r.length&&N$(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Qi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Qi[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,d])=>{n.getValue(u).set(d)}),this.resolveNoneKeyframes()}}const Fb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function q$(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function K$(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Fb(i,t),c=Fb(o,t);return Yi(a===c,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:q$(e)||(n==="spring"||Wf(n))&&r}const X$=e=>e!==null;function qa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(X$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Z$=40;class jb{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ln.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Z$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&z$(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ln.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!K$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(qa(t,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const sd=2e4;function Vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<sd;)t+=n,r=e.next(t);return t>=sd?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function od(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function J$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;i=od(u,c,e+1/3),o=od(u,c,e),a=od(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ka(e,t){return n=>n>0?t:e}const ad=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Q$=[Zf,ni,Ji],eR=e=>Q$.find(t=>t.test(e));function Bb(e){const t=eR(e);if(Yi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ji&&(n=J$(n)),n}const Ub=(e,t)=>{const n=Bb(e),r=Bb(t);if(!n||!r)return Ka(e,t);const i={...n};return o=>(i.red=ad(n.red,r.red,o),i.green=ad(n.green,r.green,o),i.blue=ad(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ni.transform(i))},tR=(e,t)=>n=>t(e(n)),wo=(...e)=>e.reduce(tR),ld=new Set(["none","hidden"]);function nR(e,t){return ld.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rR(e,t){return n=>rt(e,t,n)}function cd(e){return typeof e=="number"?rR:typeof e=="string"?Af(e)?Ka:Ct.test(e)?Ub:oR:Array.isArray(e)?Wb:typeof e=="object"?Ct.test(e)?Ub:iR:Ka}function Wb(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>cd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function iR(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function sR(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][i[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,i[a]++}return r}const oR=(e,t)=>{const n=Ar.createTransformer(t),r=xo(e),i=xo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ld.has(e)&&!i.values.length||ld.has(t)&&!r.values.length?nR(e,t):wo(Wb(sR(r,i),i.values),n):(Yi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ka(e,t))};function zb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):cd(e)(e,t)}const aR=5;function Gb(e,t,n){const r=Math.max(t-aR,0);return tb(n-e(r),t-r)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Yb=.001;function lR({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;Yi(e<=Nn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(it.minDamping,it.maxDamping,a),e=Xn(it.minDuration,it.maxDuration,Zn(e)),a<1?(i=d=>{const h=d*a,m=h*e,g=h-n,y=ud(d,a),S=Math.exp(-m);return Yb-g/y*S},o=d=>{const m=d*a*e,g=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),v=ud(Math.pow(d,2),a);return(-i(d)+Yb>0?-1:1)*((g-y)*S)/v}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const c=5/e,u=uR(i,o,c);if(e=Nn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const cR=12;function uR(e,t,n){let r=n;for(let i=1;i<cR;i++)r=r-e(r)/t(r);return r}function ud(e,t){return e*Math.sqrt(1-t*t)}const fR=["duration","bounce"],dR=["stiffness","damping","mass"];function Hb(e,t){return t.some(n=>e[n]!==void 0)}function hR(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Hb(e,dR)&&Hb(e,fR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=lR(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function qb(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:u,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:y}=hR({...n,velocity:-Zn(n.velocity||0)}),S=g||0,v=d/(2*Math.sqrt(u*h)),E=a-o,w=Zn(Math.sqrt(u/h)),A=Math.abs(E)<5;r||(r=A?it.restSpeed.granular:it.restSpeed.default),i||(i=A?it.restDelta.granular:it.restDelta.default);let O;if(v<1){const C=ud(w,v);O=L=>{const j=Math.exp(-v*w*L);return a-j*((S+v*w*E)/C*Math.sin(C*L)+E*Math.cos(C*L))}}else if(v===1)O=C=>a-Math.exp(-w*C)*(E+(S+w*E)*C);else{const C=w*Math.sqrt(v*v-1);O=L=>{const j=Math.exp(-v*w*L),F=Math.min(C*L,300);return a-j*((S+v*w*E)*Math.sinh(F)+C*E*Math.cosh(F))/C}}const D={calculatedDuration:y&&m||null,next:C=>{const L=O(C);if(y)c.done=C>=m;else{let j=0;v<1&&(j=C===0?Nn(S):Gb(O,C,L));const F=Math.abs(j)<=r,Y=Math.abs(a-L)<=i;c.done=F&&Y}return c.value=c.done?a:L,c},toString:()=>{const C=Math.min(Vb(D),sd),L=sb(j=>D.next(C*j).value,C,30);return C+"ms "+L}};return D}function Kb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},y=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let v=n*t;const E=m+v,w=a===void 0?E:a(E);w!==E&&(v=w-m);const A=F=>-v*Math.exp(-F/r),O=F=>w+A(F),D=F=>{const Y=A(F),ee=O(F);g.done=Math.abs(Y)<=d,g.value=g.done?w:ee};let C,L;const j=F=>{y(g.value)&&(C=F,L=qb({keyframes:[g.value,S(g.value)],velocity:Gb(O,F,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let Y=!1;return!L&&C===void 0&&(Y=!0,D(F),j(F)),C!==void 0&&F>=C?L.next(F-C):(!Y&&D(F),g)}}}const mR=vo(.42,0,1,1),pR=vo(0,0,.58,1),Xb=vo(.42,0,.58,1),gR=e=>Array.isArray(e)&&typeof e[0]!="number",Zb={linear:Lt,easeIn:mR,easeInOut:Xb,easeOut:pR,circIn:Hf,circInOut:pb,circOut:mb,backIn:Yf,backInOut:db,backOut:fb,anticipate:hb},Jb=e=>{if(zf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return vo(t,n,r,i)}else if(typeof e=="string")return Er(Zb[e]!==void 0,`Invalid easing type '${e}'`),Zb[e];return e};function yR(e,t,n){const r=[],i=n||zb,o=e.length-1;for(let a=0;a<o;a++){let c=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Lt:t;c=wo(u,c)}r.push(c)}return r}function vR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Er(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=yR(t,r,i),u=c.length,d=h=>{if(a&&h<e[0])return t[0];let m=0;if(u>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Zi(e[m],e[m+1],h);return c[m](g)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function bR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zi(0,t,r);e.push(rt(n,1,i))}}function xR(e){const t=[0];return bR(t,e.length-1),t}function wR(e,t){return e.map(n=>n*t)}function SR(e,t){return e.map(()=>t||Xb).splice(0,e.length-1)}function So({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=gR(r)?r.map(Jb):Jb(r),o={done:!1,value:t[0]},a=wR(n&&n.length===t.length?n:xR(t),e),c=vR(a,t,{ease:Array.isArray(i)?i:SR(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const TR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},ER={decay:Kb,inertia:Kb,tween:So,keyframes:So,spring:qb},CR=e=>e/100;class fd extends jb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||id,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=Wf(n)?n:ER[n]||So;let u,d;process.env.NODE_ENV!=="production"&&c!==So&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==So&&typeof t[0]!="number"&&(u=wo(CR,zb(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(d=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=Vb(h));const{calculatedDuration:m}=h,g=m+i,y=g*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:g,totalDuration:y}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:u,calculatedDuration:d,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:y,repeatType:S,repeatDelay:v,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const w=this.currentTime-g*(this.speed>=0?1:-1),A=this.speed>=0?w<0:w>h;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let O=this.currentTime,D=o;if(y){const F=Math.min(this.currentTime,h)/m;let Y=Math.floor(F),ee=F%1;!ee&&F>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,y+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,v&&(ee-=v/m)):S==="mirror"&&(D=a)),O=Xn(0,1,ee)*m}const C=A?{done:!1,value:u[0]}:D.next(O);c&&(C.value=c(C.value));let{done:L}=C;!A&&d!==null&&(L=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return j&&i!==void 0&&(C.value=qa(u,this.options,i)),E&&E(C.value),j&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=TR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const PR=new Set(["opacity","clipPath","filter","transform"]);function AR(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=ab(c,i);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const OR=Uf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xa=10,MR=2e4;function _R(e){return Wf(e.type)||e.type==="spring"||!ob(e.ease)}function IR(e,t){const n=new fd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<MR;)r=n.sample(o),i.push(r.value),o+=Xa;return{times:void 0,keyframes:i,duration:o-Xa,ease:"linear"}}const Qb={anticipate:hb,backInOut:db,circInOut:pb};function DR(e){return e in Qb}class e1 extends jb{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new kb(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ha()&&DR(o)&&(o=Qb[o]),_R(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:S,...v}=this.options,E=IR(t,v);t=E.keyframes,t.length===1&&(t[1]=t[0]),r=E.duration,i=E.times,o=E.ease,a="keyframes"}const h=AR(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(ib(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(qa(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lt;const{animation:r}=n;ib(r,t)}return Lt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:g,...y}=this.options,S=new fd({...y,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),v=Nn(this.time);d.setWithVelocity(S.sample(v-Xa).value,S.sample(v).value,Xa)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=n.owner.getProps();return OR()&&r&&PR.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const $R={type:"spring",stiffness:500,damping:25,restSpeed:10},RR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LR={type:"keyframes",duration:.8},NR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kR=(e,{keyframes:t})=>t.length>2?LR:ti.has(e)?e.startsWith("scale")?RR(t[1]):$R:NR;function FR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const dd=(e,t,n,r={},i,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};FR(c)||(h={...h,...kR(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const g=qa(h.keyframes,c);if(g!==void 0)return He.update(()=>{h.onUpdate(g),h.onComplete()}),new h$([])}return!o&&e1.supports(h)?new e1(h):new fd(h)};function jR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function t1(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const g=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),y=u[m];if(y===void 0||h&&jR(h,m))continue;const S={delay:n,...kf(a||{},m)};let v=!1;if(window.MotionHandoffAnimation){const w=rb(e);if(w){const A=window.MotionHandoffAnimation(w,m,He);A!==null&&(S.startTime=A,v=!0)}}Bf(e,m),g.start(dd(m,g,y,e.shouldReduceMotion&&eb.has(m)?{type:!1}:S,e,v));const E=g.animation;E&&d.push(E)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&c$(e,c)})}),d}function hd(e,t,n={}){var r;const i=po(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(t1(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=o;return VR(e,t,h+d,m,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[d,h]=u==="beforeChildren"?[a,c]:[c,a];return d().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function VR(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(BR).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(hd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function BR(e,t){return e.sortNodePosition(t)}function UR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>hd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=hd(e,t,n);else{const i=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(t1(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function n1(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const WR=Tf.length;function r1(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r1(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<WR;n++){const r=Tf[n],i=e.props[r];(uo(i)||i===!1)&&(t[r]=i)}return t}const zR=[...Sf].reverse(),GR=Sf.length;function YR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UR(e,n,r)))}function HR(e){let t=YR(e),n=i1(),r=!0;const i=u=>(d,h)=>{var m;const g=po(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(g){const{transition:y,transitionEnd:S,...v}=g;d={...d,...v,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=r1(e.parent)||{},m=[],g=new Set;let y={},S=1/0;for(let E=0;E<GR;E++){const w=zR[E],A=n[w],O=d[w]!==void 0?d[w]:h[w],D=uo(O),C=w===u?A.isActive:null;C===!1&&(S=E);let L=O===h[w]&&O!==d[w]&&D;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),A.protectedKeys={...y},!A.isActive&&C===null||!O&&!A.prevProp||Ua(O)||typeof O=="boolean")continue;const j=qR(A.prevProp,O);let F=j||w===u&&A.isActive&&!L&&D||E>S&&D,Y=!1;const ee=Array.isArray(O)?O:[O];let te=ee.reduce(i(w),{});C===!1&&(te={});const{prevResolvedValues:me={}}=A,de={...me,...te},le=B=>{F=!0,g.has(B)&&(Y=!0,g.delete(B)),A.needsAnimating[B]=!0;const U=e.getValue(B);U&&(U.liveStyle=!1)};for(const B in de){const U=te[B],H=me[B];if(y.hasOwnProperty(B))continue;let M=!1;Lf(U)&&Lf(H)?M=!n1(U,H):M=U!==H,M?U!=null?le(B):g.add(B):U!==void 0&&g.has(B)?le(B):A.protectedKeys[B]=!0}A.prevProp=O,A.prevResolvedValues=te,A.isActive&&(y={...y,...te}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&j)||Y)&&m.push(...ee.map(B=>({animation:B,options:{type:w}})))}if(g.size){const E={};if(typeof d.initial!="boolean"){const w=po(e,Array.isArray(d.initial)?d.initial[0]:d.initial);w&&w.transition&&(E.transition=w.transition)}g.forEach(w=>{const A=e.getBaseTarget(w),O=e.getValue(w);O&&(O.liveStyle=!0),E[w]=A??null}),m.push({animation:E})}let v=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=i1(),r=!0}}}function qR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!n1(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function i1(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}class Or{constructor(t){this.isMounted=!1,this.node=t}update(){}}class KR extends Or{constructor(t){super(t),t.animationState||(t.animationState=HR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ua(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XR=0;class ZR extends Or{constructor(){super(...arguments),this.id=XR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const JR={animation:{Feature:KR},exit:{Feature:ZR}},vn={x:!1,y:!1};function s1(){return vn.x||vn.y}function QR(e){return e==="x"||e==="y"?vn[e]?null:(vn[e]=!0,()=>{vn[e]=!1}):vn.x||vn.y?null:(vn.x=vn.y=!0,()=>{vn.x=vn.y=!1})}function To(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const md=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const e4=e=>t=>md(t)&&e(t,Eo(t));function Co(e,t,n,r){return To(e,t,e4(n),r)}function o1({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function t4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function n4(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const a1=1e-4,r4=1-a1,i4=1+a1,l1=.01,s4=0-l1,o4=0+l1;function _t(e){return e.max-e.min}function a4(e,t,n){return Math.abs(e-t)<=n}function c1(e,t,n,r=.5){e.origin=r,e.originPoint=rt(t.min,t.max,e.origin),e.scale=_t(n)/_t(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=r4&&e.scale<=i4||isNaN(e.scale))&&(e.scale=1),(e.translate>=s4&&e.translate<=o4||isNaN(e.translate))&&(e.translate=0)}function Po(e,t,n,r){c1(e.x,t.x,n.x,r?r.originX:void 0),c1(e.y,t.y,n.y,r?r.originY:void 0)}function u1(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function l4(e,t,n){u1(e.x,t.x,n.x),u1(e.y,t.y,n.y)}function f1(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function Ao(e,t,n){f1(e.x,t.x,n.x),f1(e.y,t.y,n.y)}const d1=()=>({translate:0,scale:1,origin:0,originPoint:0}),es=()=>({x:d1(),y:d1()}),h1=()=>({min:0,max:0}),lt=()=>({x:h1(),y:h1()});function rn(e){return[e("x"),e("y")]}function pd(e){return e===void 0||e===1}function gd({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function oi(e){return gd(e)||m1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m1(e){return p1(e.x)||p1(e.y)}function p1(e){return e&&e!=="0%"}function Za(e,t,n){const r=e-n,i=t*r;return n+i}function g1(e,t,n,r,i){return i!==void 0&&(e=Za(e,i,r)),Za(e,n,r)+t}function yd(e,t=0,n=1,r,i){e.min=g1(e.min,t,n,r,i),e.max=g1(e.max,t,n,r,i)}function y1(e,{x:t,y:n}){yd(e.x,t.translate,t.scale,t.originPoint),yd(e.y,n.translate,n.scale,n.originPoint)}const v1=.999999999999,b1=1.0000000000001;function c4(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ns(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,y1(e,a)),r&&oi(o.latestValues)&&ns(e,o.latestValues))}t.x<b1&&t.x>v1&&(t.x=1),t.y<b1&&t.y>v1&&(t.y=1)}function ts(e,t){e.min=e.min+t,e.max=e.max+t}function x1(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);yd(e,t,n,o,r)}function ns(e,t){x1(e.x,t.x,t.scaleX,t.scale,t.originX),x1(e.y,t.y,t.scaleY,t.scale,t.originY)}function w1(e,t){return o1(n4(e.getBoundingClientRect(),t))}function u4(e,t,n){const r=w1(e,n),{scroll:i}=t;return i&&(ts(r.x,i.offset.x),ts(r.y,i.offset.y)),r}const S1=({current:e})=>e?e.ownerDocument.defaultView:null,T1=(e,t)=>Math.abs(e-t);function f4(e,t){const n=T1(e.x,t.x),r=T1(e.y,t.y);return Math.sqrt(n**2+r**2)}class E1{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=bd(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=f4(m.offset,{x:0,y:0})>=3;if(!g&&!y)return;const{point:S}=m,{timestamp:v}=vt;this.history.push({...S,timestamp:v});const{onStart:E,onMove:w}=this.handlers;g||(E&&E(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=vd(g,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:S,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=bd(m.type==="pointercancel"?this.lastMoveEventInfo:vd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,E),S&&S(m,E)},!md(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Eo(t),c=vd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,bd(c,this.history)),this.removeListeners=wo(Co(this.contextWindow,"pointermove",this.handlePointerMove),Co(this.contextWindow,"pointerup",this.handlePointerUp),Co(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function C1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bd({point:e},t){return{point:e,delta:C1(e,P1(t)),offset:C1(e,d4(t)),velocity:h4(t,.1)}}function d4(e){return e[0]}function P1(e){return e[e.length-1]}function h4(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=P1(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function m4(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rt(n,e,r.max):Math.min(e,n)),e}function A1(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function p4(e,{top:t,left:n,bottom:r,right:i}){return{x:A1(e.x,n,i),y:A1(e.y,t,r)}}function O1(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function g4(e,t){return{x:O1(e.x,t.x),y:O1(e.y,t.y)}}function y4(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=Zi(t.min,t.max-r,e.min):r>i&&(n=Zi(e.min,e.max-i,t.min)),Xn(0,1,n)}function v4(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function b4(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:M1(e,"left","right"),y:M1(e,"top","bottom")}}function M1(e,t,n){return{min:_1(e,t),max:_1(e,n)}}function _1(e,t){return typeof e=="number"?e:e[t]||0}const x4=new WeakMap;class w4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=lt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:g,dragPropagation:y,onDragStart:S}=this.getProps();if(g&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QR(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rn(E=>{let w=this.getAxisMotionValue(E).get()||0;if(Rn.test(w)){const{projection:A}=this.visualElement;if(A&&A.layout){const O=A.layout.layoutBox[E];O&&(w=_t(O)*(parseFloat(w)/100))}}this.originPoint[E]=w}),S&&He.postRender(()=>S(h,m)),Bf(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:g,dragDirectionLock:y,onDirectionLock:S,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:E}=m;if(y&&this.currentDirection===null){this.currentDirection=S4(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,E),this.updateAxis("y",m.point,E),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new E1(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S1(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&He.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ja(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=m4(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&qi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=p4(i.layoutBox,n):this.constraints=!1,this.elastic=b4(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=v4(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qi(t))return!1;const r=t.current;Er(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=u4(r,i.root,this.visualElement.getTransformPagePoint());let a=g4(i.layout.layoutBox,o);if(n){const c=n(t4(a));this.hasMutatedConstraints=!!c,c&&(a=o1(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=rn(h=>{if(!Ja(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const g=i?200:1e6,y=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Bf(this.visualElement,t),r.start(dd(t,r,0,n,this.visualElement,!1))}stopAnimation(){rn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rn(n=>{const{drag:r}=this.getProps();if(!Ja(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(t[n]-rt(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();i[a]=y4({min:u,max:u},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rn(a=>{if(!Ja(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(rt(u,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;x4.set(this.visualElement,this);const t=this.visualElement.current,n=Co(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();qi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),He.read(r);const a=To(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(rn(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=u[h].translate,m.set(m.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Ja(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function S4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class T4 extends Or{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new w4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}unmount(){this.removeGroupControls(),this.removeListeners()}}const I1=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class E4 extends Or{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new E1(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S1(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I1(t),onStart:I1(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&He.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Co(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Qa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function D1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=D1(e,t.target.x),r=D1(e,t.target.y);return`${n}% ${r}%`}},C4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ar.parse(e);if(i.length>5)return r;const o=Ar.createTransformer(e),a=typeof i[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;i[0+a]/=c,i[1+a]/=u;const d=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class P4 extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;RD(A4),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ef.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $1(e){const[t,n]=Cv(),r=I.useContext(yf);return x.jsx(P4,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(Nv),isPresent:t,safeToRemove:n})}const A4={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:C4};function O4(e,t,n){const r=Et(e)?e:go(e);return r.start(dd("",r,t,n)),r.animation}function M4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const _4=(e,t)=>e.depth-t.depth;class I4{constructor(){this.children=[],this.isDirty=!1}add(t){Ff(this.children,t),this.isDirty=!0}remove(t){jf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_4),this.isDirty=!1,this.children.forEach(t)}}function D4(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return He.read(r,!0),()=>Cr(r)}const R1=["TopLeft","TopRight","BottomLeft","BottomRight"],$4=R1.length,L1=e=>typeof e=="string"?parseFloat(e):e,N1=e=>typeof e=="number"||Se.test(e);function R4(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,L4(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,N4(r))):o&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<$4;a++){const c=`border${R1[a]}Radius`;let u=k1(t,c),d=k1(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||N1(u)===N1(d)?(e[c]=Math.max(rt(L1(u),L1(d),r),0),(Rn.test(d)||Rn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function k1(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const L4=F1(0,.5,mb),N4=F1(.5,.95,Lt);function F1(e,t,n){return r=>r<e?0:r>t?1:n(Zi(e,t,r))}function j1(e,t){e.min=t.min,e.max=t.max}function sn(e,t){j1(e.x,t.x),j1(e.y,t.y)}function V1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function B1(e,t,n,r,i){return e-=t,e=Za(e,1/n,r),i!==void 0&&(e=Za(e,1/i,r)),e}function k4(e,t=0,n=1,r=.5,i,o=e,a=e){if(Rn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=rt(o.min,o.max,r);e===o&&(c-=t),e.min=B1(e.min,t,n,c,i),e.max=B1(e.max,t,n,c,i)}function U1(e,t,[n,r,i],o,a){k4(e,t[n],t[r],t[i],t.scale,o,a)}const F4=["x","scaleX","originX"],j4=["y","scaleY","originY"];function W1(e,t,n,r){U1(e.x,t,F4,n?n.x:void 0,r?r.x:void 0),U1(e.y,t,j4,n?n.y:void 0,r?r.y:void 0)}function z1(e){return e.translate===0&&e.scale===1}function G1(e){return z1(e.x)&&z1(e.y)}function Y1(e,t){return e.min===t.min&&e.max===t.max}function V4(e,t){return Y1(e.x,t.x)&&Y1(e.y,t.y)}function H1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function q1(e,t){return H1(e.x,t.x)&&H1(e.y,t.y)}function K1(e){return _t(e.x)/_t(e.y)}function X1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class B4{constructor(){this.members=[]}add(t){Ff(this.members,t),t.scheduleRender()}remove(t){if(jf(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function U4(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:y,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),y&&(r+=`skewX(${y}deg) `),S&&(r+=`skewY(${S}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const wd=["","X","Y","Z"],W4={visibility:"hidden"},Z1=1e3;let z4=0;function Sd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function J1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&J1(r)}function Q1({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=z4++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(H4),this.nodes.forEach(J4),this.nodes.forEach(Q4),this.nodes.forEach(q4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new I4)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=M4(a),this.instance=a;const{layoutId:u,layout:d,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const g=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=D4(g,250),Qa.hasAnimatedSinceResize&&(Qa.hasAnimatedSinceResize=!1,this.nodes.forEach(tx))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||h.getDefaultTransition()||i5,{onLayoutAnimationStart:E,onLayoutAnimationComplete:w}=h.getProps(),A=!this.targetLayout||!q1(this.targetLayout,S),O=!g&&y;if(this.options.layoutRoot||this.resumeFrom||O||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,O);const D={...kf(v,"layout"),onPlay:E,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else g||tx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(e5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&J1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ex);return}this.isUpdating||this.nodes.forEach(X4),this.isUpdating=!1,this.nodes.forEach(Z4),this.nodes.forEach(G4),this.nodes.forEach(Y4),this.clearAllSnapshots();const c=Ln.now();vt.delta=Xn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,wf.update.process(vt),wf.preRender.process(vt),wf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ef.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(K4),this.sharedNodes.forEach(t5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_t(this.snapshot.measuredBox.x)&&!_t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!G1(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),s5(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return lt();const u=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(o5))){const{scroll:h}=this.root;h&&(ts(u.x,h.offset.x),ts(u.y,h.offset.y))}return u}removeElementScroll(a){var c;const u=lt();if(sn(u,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&sn(u,a),ts(u.x,m.offset.x),ts(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let d=0;d<this.path.length;d++){const h=this.path[d];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&ns(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&ns(u,h.latestValues)}return oi(this.latestValues)&&ns(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];if(!d.instance||!oi(d.latestValues))continue;gd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),W1(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&W1(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:g}=this.options;if(!(!this.layout||!(m||g))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const y=this.getClosestProjectingParent();y&&y.layout&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.layout.layoutBox,y.layout.layoutBox),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=lt(),this.targetWithTransforms=lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),l4(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),y1(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const y=this.getClosestProjectingParent();y&&!!y.resumingFrom==!!this.resumingFrom&&!y.options.layoutScroll&&y.target&&this.animationProgress!==1?(this.relativeParent=y,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Ao(this.relativeTargetOrigin,this.target,y.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||gd(this.parent.latestValues)||m1(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),u=!!this.resumingFrom||this!==c;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(d=!1),d)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;sn(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,y=this.treeScale.y;c4(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=lt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(V1(this.prevProjectionDelta.x,this.projectionDelta.x),V1(this.prevProjectionDelta.y,this.projectionDelta.y)),Po(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==y||!X1(this.projectionDelta.x,this.prevProjectionDelta.x)||!X1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=es(),this.projectionDelta=es(),this.projectionDeltaWithTransform=es()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=es();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const g=lt(),y=u?u.source:void 0,S=this.layout?this.layout.source:void 0,v=y!==S,E=this.getStack(),w=!E||E.members.length<=1,A=!!(v&&!w&&this.options.crossfade===!0&&!this.path.some(r5));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const C=D/1e3;nx(m.x,a.x,C),nx(m.y,a.y,C),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ao(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n5(this.relativeTarget,this.relativeTargetOrigin,g,C),O&&V4(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=lt()),sn(O,this.relativeTarget)),v&&(this.animationValues=h,R4(h,d,this.latestValues,C,A,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Qa.hasAnimatedSinceResize=!0,this.currentAnimation=O4(0,Z1,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Z1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:d,latestValues:h}=a;if(!(!c||!u||!d)){if(this!==a&&this.layout&&d&&ax(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||lt();const m=_t(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const g=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+g}sn(c,u),ns(c,h),Po(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new B4),this.sharedNodes.get(a).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const d=this.getStack();d&&d.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const d={};u.z&&Sd("z",a,d,this.animationValues);for(let h=0;h<wd.length;h++)Sd(`rotate${wd[h]}`,a,d,this.animationValues),Sd(`skew${wd[h]}`,a,d,this.animationValues);a.render();for(const h in d)a.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return W4;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||"",d.transform=h?h(this.latestValues,""):"none",d;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=Ga(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(v.transform=h?h({},""):"none",this.hasProjected=!1),v}const g=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=U4(this.projectionDeltaWithTransform,this.treeScale,g),h&&(d.transform=h(g,d.transform));const{x:y,y:S}=this.projectionDelta;d.transformOrigin=`${y.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=g.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:d.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const v in fo){if(g[v]===void 0)continue;const{correct:E,applyTo:w,isCSSVariable:A}=fo[v],O=d.transform==="none"?g[v]:E(g[v],m);if(w){const D=w.length;for(let C=0;C<D;C++)d[w[C]]=O}else A?this.options.visualElement.renderState.vars[v]=O:d[v]=O}return this.options.layoutId&&(d.pointerEvents=m===this?Ga(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(ex),this.root.sharedNodes.clear()}}}function G4(e){e.updateLayout()}function Y4(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(g);g.min=r[m].min,g.max=g.min+y}):ax(o,n.layoutBox,r)&&rn(m=>{const g=a?n.measuredBox[m]:n.layoutBox[m],y=_t(r[m]);g.max=g.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const c=es();Po(c,r,n.layoutBox);const u=es();a?Po(u,e.applyTransform(i,!0),n.measuredBox):Po(u,r,n.layoutBox);const d=!G1(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:y}=m;if(g&&y){const S=lt();Ao(S,n.layoutBox,g.layoutBox);const v=lt();Ao(v,r,y.layoutBox),q1(S,v)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function H4(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function q4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function K4(e){e.clearSnapshot()}function ex(e){e.clearMeasurements()}function X4(e){e.isLayoutDirty=!1}function Z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tx(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function J4(e){e.resolveTargetDelta()}function Q4(e){e.calcProjection()}function e5(e){e.resetSkewAndRotation()}function t5(e){e.removeLeadSnapshot()}function nx(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rx(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function n5(e,t,n,r){rx(e.x,t.x,n.x,r),rx(e.y,t.y,n.y,r)}function r5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const i5={duration:.45,ease:[.4,0,.1,1]},ix=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sx=ix("applewebkit/")&&!ix("chrome/")?Math.round:Lt;function ox(e){e.min=sx(e.min),e.max=sx(e.max)}function s5(e){ox(e.x),ox(e.y)}function ax(e,t,n){return e==="position"||e==="preserve-aspect"&&!a4(K1(t),K1(n),.2)}function o5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const a5=Q1({attachResizeListener:(e,t)=>To(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Td={current:void 0},lx=Q1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Td.current){const e=new a5({});e.mount(window),e.setOptions({layoutScroll:!0}),Td.current=e}return Td.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),l5={pan:{Feature:E4},drag:{Feature:T4,ProjectionNode:lx,MeasureLayout:$1}};function c5(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function cx(e,t){const n=c5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function ux(e){return!(e.pointerType==="touch"||s1())}function u5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{if(!ux(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{ux(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function fx(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class f5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=u5(t,(n,r)=>(fx(this.node,r,"Start"),i=>fx(this.node,i,"End"))))}unmount(){}}class d5 extends Or{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=wo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dx=(e,t)=>t?e===t?!0:dx(e,t.parentElement):!1,h5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function m5(e){return h5.has(e.tagName)||e.tabIndex!==-1}const Mo=new WeakSet;function hx(e){return t=>{t.key==="Enter"&&e(t)}}function Ed(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const p5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hx(()=>{if(Mo.has(n))return;Ed(n,"down");const i=hx(()=>{Ed(n,"up")}),o=()=>Ed(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function mx(e){return md(e)&&!s1()}function g5(e,t,n={}){const[r,i,o]=cx(e,n),a=c=>{const u=c.currentTarget;if(!mx(c)||Mo.has(u))return;Mo.add(u);const d=t(u,c),h=(y,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),!(!mx(y)||!Mo.has(u))&&(Mo.delete(u),typeof d=="function"&&d(y,{success:S}))},m=y=>{h(y,u===window||u===document||n.useGlobalTarget||dx(u,y.target))},g=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>p5(d,i)),!m5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function px(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&He.postRender(()=>o(t,Eo(t)))}class y5 extends Or{mount(){const{current:t}=this.node;t&&(this.unmount=g5(t,(n,r)=>(px(this.node,r,"Start"),(i,{success:o})=>px(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cd=new WeakMap,Pd=new WeakMap,v5=e=>{const t=Cd.get(e.target);t&&t(e)},b5=e=>{e.forEach(v5)};function x5({root:e,...t}){const n=e||document;Pd.has(n)||Pd.set(n,{});const r=Pd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(b5,{root:e,...t})),r[i]}function w5(e,t,n){const r=x5(t);return Cd.set(e,n),r.observe(e),()=>{Cd.delete(e),r.unobserve(e)}}const S5={some:0,all:1};class T5 extends Or{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:S5[i]},c=u=>{const{isIntersecting:d}=u;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(u)};return w5(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(E5(t,n))&&this.startObserver()}unmount(){}}function E5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const C5={inView:{Feature:T5},tap:{Feature:y5},focus:{Feature:d5},hover:{Feature:f5}},P5={layout:{ProjectionNode:lx,MeasureLayout:$1}},Ad={current:null},gx={current:!1};function A5(){if(gx.current=!0,!!bf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ad.current=e.matches;e.addListener(t),t()}else Ad.current=!1}const O5=[...Lb,Ct,Ar],M5=e=>O5.find(Rb(e)),_5=new WeakMap;function I5(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Et(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Va(i.version==="12.6.2",`Attempting to mix Motion versions ${i.version} with 12.6.2 may not work as expected.`);else if(Et(o))e.addValue(r,go(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,go(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class D5{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=id,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const y=Ln.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,He.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Wa(n),this.isVariantNode=$v(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const y in g){const S=g[y];u[y]!==void 0&&Et(S)&&S.set(u[y],!1)}}mount(t){this.current=t,_5.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),gx.current||A5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ad.current,process.env.NODE_ENV!=="production"&&Va(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ti.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&He.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hi){const n=Hi[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yx.length;r++){const i=yx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=I5(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=go(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Db(i)||gb(i))?i=parseFloat(i):!M5(i)&&Ar.test(n)&&(i=Eb(t,n)),this.setBaseTarget(t,Et(i)?i.get():i)),Et(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=Rf(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Et(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vx extends D5{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $5(e){return window.getComputedStyle(e)}class R5 extends vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kv}readValueFromInstance(t,n){if(ti.has(n))return j$(t,n);{const r=$5(t),i=(Pf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return w1(t,n)}build(t,n,r){Mf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class L5 extends vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&qv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=Tb(n);return r&&r.default||0}return n=Xv.has(n)?n:Cf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Jv(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Df(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Zv(t,n,r,i)}mount(t){this.isSVGTag=$f(t.tagName),super.mount(t)}}const N5=(e,t)=>If(e)?new L5(t):new R5(t,{allowProjection:e!==I.Fragment}),k5=i$({...JR,...C5,...l5,...P5},N5),Ze=wD(k5),Od={defaultColorScheme:"aqua",t:e=>e},bx=I.createContext(Od),ze=()=>I.useContext(bx),xx=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o})=>{const{t:a}=ze(),c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o(),r()};return x.jsx(Kn,{children:n&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:x.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:m=>m.stopPropagation(),children:x.jsxs(ys,{className:"flex flex-col gap-16 p-32",children:[x.jsxs("div",{className:"flex justify-between items-center gap-16",children:[x.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),x.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),x.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),x.jsxs("div",{className:"flex justify-end w-full gap-16",children:[x.jsx(ko,{onClick:h,variant:"transparent",className:"px-24 py-10! text-lg!",children:a("cancel")}),x.jsx(ko,{onClick:d,className:"px-24 py-16 text-lg!",children:a("confirm")})]})]})})})})})};/*!
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,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`});/*!
663
+ */const F5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},j5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},V5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},B5={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},U5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};function el(){return typeof window<"u"}function rs(e){return wx(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wx(e){return el()?e instanceof Node||e instanceof Nt(e).Node:!1}function qe(e){return el()?e instanceof Element||e instanceof Nt(e).Element:!1}function kt(e){return el()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function Md(e){return!el()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function W5(e){return["table","td","th"].includes(rs(e))}function tl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function _d(e){const t=nl(),n=qe(e)?on(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function z5(e){let t=Qn(e);for(;kt(t)&&!Jn(t);){if(_d(t))return t;if(tl(t))return null;t=Qn(t)}return null}function nl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(rs(e))}function on(e){return Nt(e).getComputedStyle(e)}function rl(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(rs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Md(e)&&e.host||kn(e);return Md(t)?t.host:t}function Sx(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&_o(t)?t:Sx(t)}function Mr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Sx(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Nt(i);if(o){const c=Id(a);return t.concat(a,a.visualViewport||[],_o(i)?i:[],c&&n?Mr(c):[])}return t.concat(i,Mr(i,[],n))}function Id(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tx(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Io(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Md(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ex(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Cx(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function G5(e){return q5()?!1:!Px()&&e.width===0&&e.height===0||Px()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Y5(){return/apple/i.test(navigator.vendor)}function Px(){const e=/android/i;return e.test(Ex())||e.test(Cx())}function H5(){return Ex().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function q5(){return Cx().includes("jsdom/")}function Do(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function K5(e){return"nativeEvent"in e}function X5(e){return e.matches("html,body")}function ai(e){return(e==null?void 0:e.ownerDocument)||document}function Dd(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function is(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Z5="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ax(e){return kt(e)&&e.matches(Z5)}const _r=Math.min,Yt=Math.max,il=Math.round,sl=Math.floor,Fn=e=>({x:e,y:e}),J5={left:"right",right:"left",bottom:"top",top:"bottom"},Q5={start:"end",end:"start"};function $d(e,t,n){return Yt(e,_r(t,n))}function ss(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Rd(e){return e==="y"?"height":"width"}function li(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Ld(e){return Ox(li(e))}function e6(e,t,n){n===void 0&&(n=!1);const r=os(e),i=Ld(e),o=Rd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ol(a)),[a,ol(a)]}function t6(e){const t=ol(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>Q5[t])}function n6(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function r6(e,t,n,r){const i=os(e);let o=n6(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Nd)))),o}function ol(e){return e.replace(/left|right|bottom|top/g,t=>J5[t])}function i6(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mx(e){return typeof e!="number"?i6(e):{top:e,right:e,bottom:e,left:e}}function al(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _x(e,t,n){let{reference:r,floating:i}=e;const o=li(t),a=Ld(t),c=Rd(a),u=Ir(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,g=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(os(t)){case"start":y[a]-=g*(n&&d?-1:1);break;case"end":y[a]+=g*(n&&d?-1:1);break}return y}const s6=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,c=o.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=_x(d,r,u),g=r,y={},S=0;for(let v=0;v<c.length;v++){const{name:E,fn:w}=c[v],{x:A,y:O,data:D,reset:C}=await w({x:h,y:m,initialPlacement:r,placement:g,strategy:i,middlewareData:y,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,m=O??m,y={...y,[E]:{...y[E],...D}},C&&S<=50&&(S++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(d=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:h,y:m}=_x(d,g,u)),v=-1)}return{x:h,y:m,placement:g,strategy:i,middlewareData:y}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:y=0}=ss(t,e),S=Mx(y),E=c[g?m==="floating"?"reference":"floating":m],w=al(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(E)))==null||n?E:E.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),A=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),D=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},C=al(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:O,strategy:u}):A);return{top:(w.top-C.top+S.top)/D.y,bottom:(C.bottom-w.bottom+S.bottom)/D.y,left:(w.left-C.left+S.left)/D.x,right:(C.right-w.right+S.right)/D.x}}const o6=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=ss(e,t)||{};if(d==null)return{};const m=Mx(h),g={x:n,y:r},y=Ld(i),S=Rd(y),v=await a.getDimensions(d),E=y==="y",w=E?"top":"left",A=E?"bottom":"right",O=E?"clientHeight":"clientWidth",D=o.reference[S]+o.reference[y]-g[y]-o.floating[S],C=g[y]-o.reference[y],L=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let j=L?L[O]:0;(!j||!await(a.isElement==null?void 0:a.isElement(L)))&&(j=c.floating[O]||o.floating[S]);const F=D/2-C/2,Y=j/2-v[S]/2-1,ee=_r(m[w],Y),te=_r(m[A],Y),me=ee,de=j-v[S]-te,le=j/2-v[S]/2+F,re=$d(me,le,de),ie=!u.arrow&&os(i)!=null&&le!==re&&o.reference[S]/2-(le<me?ee:te)-v[S]/2<0,B=ie?le<me?le-me:le-de:0;return{[y]:g[y]+B,data:{[y]:re,centerOffset:le-re-B,...ie&&{alignmentOffset:B}},reset:ie}}}),a6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...E}=ss(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=Ir(i),A=li(c),O=Ir(c)===c,D=await(u.isRTL==null?void 0:u.isRTL(d.floating)),C=g||(O||!v?[ol(c)]:t6(c)),L=S!=="none";!g&&L&&C.push(...r6(c,v,S,D));const j=[c,...C],F=await kd(t,E),Y=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&Y.push(F[w]),m){const le=e6(i,a,D);Y.push(F[le[0]],F[le[1]])}if(ee=[...ee,{placement:i,overflows:Y}],!Y.every(le=>le<=0)){var te,me;const le=(((te=o.flip)==null?void 0:te.index)||0)+1,re=j[le];if(re)return{data:{index:le,overflows:ee},reset:{placement:re}};let ie=(me=ee.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:me.placement;if(!ie)switch(y){case"bestFit":{var de;const B=(de=ee.filter(U=>{if(L){const H=li(U.placement);return H===A||H==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(H=>H>0).reduce((H,M)=>H+M,0)]).sort((U,H)=>U[1]-H[1])[0])==null?void 0:de[0];B&&(ie=B);break}case"initialPlacement":ie=c;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}};async function l6(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Ir(n),c=os(n),u=li(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=ss(t,e);let{mainAxis:g,crossAxis:y,alignmentAxis:S}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return c&&typeof S=="number"&&(y=c==="end"?S*-1:S),u?{x:y*h,y:g*d}:{x:g*d,y:y*h}}const c6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:c}=t,u=await l6(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},u6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:E=>{let{x:w,y:A}=E;return{x:w,y:A}}},...u}=ss(e,t),d={x:n,y:r},h=await kd(t,u),m=li(Ir(i)),g=Ox(m);let y=d[g],S=d[m];if(o){const E=g==="y"?"top":"left",w=g==="y"?"bottom":"right",A=y+h[E],O=y-h[w];y=$d(A,y,O)}if(a){const E=m==="y"?"top":"left",w=m==="y"?"bottom":"right",A=S+h[E],O=S-h[w];S=$d(A,S,O)}const v=c.fn({...t,[g]:y,[m]:S});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:o,[m]:a}}}}}},f6=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=ss(e,t),h=await kd(t,d),m=Ir(i),g=os(i),y=li(i)==="y",{width:S,height:v}=o.floating;let E,w;m==="top"||m==="bottom"?(E=m,w=g===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(w=m,E=g==="end"?"top":"bottom");const A=v-h.top-h.bottom,O=S-h.left-h.right,D=_r(v-h[E],A),C=_r(S-h[w],O),L=!t.middlewareData.shift;let j=D,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=A),L&&!g){const ee=Yt(h.left,0),te=Yt(h.right,0),me=Yt(h.top,0),de=Yt(h.bottom,0);y?F=S-2*(ee!==0||te!==0?ee+te:Yt(h.left,h.right)):j=v-2*(me!==0||de!==0?me+de:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const Y=await a.getDimensions(c.floating);return S!==Y.width||v!==Y.height?{reset:{rects:!0}}:{}}}};function Ix(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=kt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=il(n)!==o||il(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Fd(e){return qe(e)?e:e.contextElement}function as(e){const t=Fd(e);if(!kt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ix(t);let a=(o?il(n.width):n.width)/r,c=(o?il(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const d6=Fn(0);function Dx(e){const t=Nt(e);return!nl()||!t.visualViewport?d6:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h6(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Nt(e)?!1:t}function ci(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Fd(e);let a=Fn(1);t&&(r?qe(r)&&(a=as(r)):a=as(e));const c=h6(o,n,r)?Dx(o):Fn(0);let u=(i.left+c.x)/a.x,d=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const g=Nt(o),y=r&&qe(r)?Nt(r):r;let S=g,v=Id(S);for(;v&&r&&y!==S;){const E=as(v),w=v.getBoundingClientRect(),A=on(v),O=w.left+(v.clientLeft+parseFloat(A.paddingLeft))*E.x,D=w.top+(v.clientTop+parseFloat(A.paddingTop))*E.y;u*=E.x,d*=E.y,h*=E.x,m*=E.y,u+=O,d+=D,S=Nt(v),v=Id(S)}}return al({width:h,height:m,x:u,y:d})}function jd(e,t){const n=rl(e).scrollLeft;return t?t.left+n:ci(kn(e)).left+n}function $x(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:jd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function m6(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=kn(r),c=t?tl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=kt(r);if((m||!m&&!o)&&((rs(r)!=="body"||_o(a))&&(u=rl(r)),kt(r))){const y=ci(r);d=as(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const g=a&&!m&&!o?$x(a,u,!0):Fn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-u.scrollTop*d.y+h.y+g.y}}function p6(e){return Array.from(e.getClientRects())}function g6(e){const t=kn(e),n=rl(e),r=e.ownerDocument.body,i=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+jd(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}function y6(e,t){const n=Nt(e),r=kn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const d=nl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function v6(e,t){const n=ci(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=kt(e)?as(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Rx(e,t,n){let r;if(t==="viewport")r=y6(e,n);else if(t==="document")r=g6(kn(e));else if(qe(t))r=v6(t,n);else{const i=Dx(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return al(r)}function Lx(e,t){const n=Qn(e);return n===t||!qe(n)||Jn(n)?!1:on(n).position==="fixed"||Lx(n,t)}function b6(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(c=>qe(c)&&rs(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;qe(a)&&!Jn(a);){const c=on(a),u=_d(a);!u&&c.position==="fixed"&&(i=null),(o?!u&&!i:!u&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_o(a)&&!u&&Lx(e,a))?r=r.filter(h=>h!==a):i=c,a=Qn(a)}return t.set(e,r),r}function x6(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?tl(t)?[]:b6(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Rx(t,h,i);return d.top=Yt(m.top,d.top),d.right=_r(m.right,d.right),d.bottom=_r(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Rx(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function w6(e){const{width:t,height:n}=Ix(e);return{width:t,height:n}}function S6(e,t,n){const r=kt(t),i=kn(t),o=n==="fixed",a=ci(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((rs(t)!=="body"||_o(i))&&(c=rl(t)),r){const g=ci(t,!0,o,t);u.x=g.x+t.clientLeft,u.y=g.y+t.clientTop}else i&&(u.x=jd(i));const d=i&&!r&&!o?$x(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Vd(e){return on(e).position==="static"}function Nx(e,t){if(!kt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kx(e,t){const n=Nt(e);if(tl(e))return n;if(!kt(e)){let i=Qn(e);for(;i&&!Jn(i);){if(qe(i)&&!Vd(i))return i;i=Qn(i)}return n}let r=Nx(e,t);for(;r&&W5(r)&&Vd(r);)r=Nx(r,t);return r&&Jn(r)&&Vd(r)&&!_d(r)?n:r||z5(e)||n}const T6=async function(e){const t=this.getOffsetParent||kx,n=this.getDimensions,r=await n(e.floating);return{reference:S6(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function E6(e){return on(e).direction==="rtl"}const C6={convertOffsetParentRelativeRectToViewportRelativeRect:m6,getDocumentElement:kn,getClippingRect:x6,getOffsetParent:kx,getElementRects:T6,getClientRects:p6,getDimensions:w6,getScale:as,isElement:qe,isRTL:E6};function Fx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P6(e,t){let n=null,r;const i=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:g,height:y}=d;if(c||t(),!g||!y)return;const S=sl(m),v=sl(i.clientWidth-(h+g)),E=sl(i.clientHeight-(m+y)),w=sl(h),O={rootMargin:-S+"px "+-v+"px "+-E+"px "+-w+"px",threshold:Yt(0,_r(1,u))||1};let D=!0;function C(L){const j=L[0].intersectionRatio;if(j!==u){if(!D)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Fx(d,e.getBoundingClientRect())&&a(),D=!1}try{n=new IntersectionObserver(C,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,O)}n.observe(e)}return a(!0),o}function ls(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=Fd(e),h=i||o?[...d?Mr(d):[],...Mr(t)]:[];h.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const m=d&&c?P6(d,n):null;let g=-1,y=null;a&&(y=new ResizeObserver(w=>{let[A]=w;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),n()}),d&&!u&&y.observe(d),y.observe(t));let S,v=u?ci(e):null;u&&E();function E(){const w=ci(e);v&&!Fx(v,w)&&n(),v=w,S=requestAnimationFrame(E)}return n(),()=>{var w;h.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(w=y)==null||w.disconnect(),y=null,u&&cancelAnimationFrame(S)}}const A6=c6,O6=u6,M6=a6,_6=f6,jx=o6,I6=(e,t,n)=>{const r=new Map,i={platform:C6,...n},o={...i.platform,_c:r};return s6(e,t,{...i,platform:o})};var ll=typeof document<"u"?I.useLayoutEffect:I.useEffect;function cl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!cl(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Vx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bx(e,t){const n=Vx(e);return Math.round(t*n)/n}function Bd(e){const t=Z.useRef(e);return ll(()=>{t.current=e}),t}function D6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=Z.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,y]=Z.useState(r);cl(g,r)||y(r);const[S,v]=Z.useState(null),[E,w]=Z.useState(null),A=Z.useCallback(U=>{U!==L.current&&(L.current=U,v(U))},[]),O=Z.useCallback(U=>{U!==j.current&&(j.current=U,w(U))},[]),D=o||S,C=a||E,L=Z.useRef(null),j=Z.useRef(null),F=Z.useRef(h),Y=u!=null,ee=Bd(u),te=Bd(i),me=Bd(d),de=Z.useCallback(()=>{if(!L.current||!j.current)return;const U={placement:t,strategy:n,middleware:g};te.current&&(U.platform=te.current),I6(L.current,j.current,U).then(H=>{const M={...H,isPositioned:me.current!==!1};le.current&&!cl(F.current,M)&&(F.current=M,fT.flushSync(()=>{m(M)}))})},[g,t,n,te,me]);ll(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[d]);const le=Z.useRef(!1);ll(()=>(le.current=!0,()=>{le.current=!1}),[]),ll(()=>{if(D&&(L.current=D),C&&(j.current=C),D&&C){if(ee.current)return ee.current(D,C,de);de()}},[D,C,de,ee,Y]);const re=Z.useMemo(()=>({reference:L,floating:j,setReference:A,setFloating:O}),[A,O]),ie=Z.useMemo(()=>({reference:D,floating:C}),[D,C]),B=Z.useMemo(()=>{const U={position:n,left:0,top:0};if(!ie.floating)return U;const H=Bx(ie.floating,h.x),M=Bx(ie.floating,h.y);return c?{...U,transform:"translate("+H+"px, "+M+"px)",...Vx(ie.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:M}},[n,c,ie.floating,h.x,h.y]);return Z.useMemo(()=>({...h,update:de,refs:re,elements:ie,floatingStyles:B}),[h,de,re,ie,B])}const $6=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jx({element:r.current,padding:i}).fn(n):{}:r?jx({element:r,padding:i}).fn(n):{}}}},cs=(e,t)=>({...A6(e),options:[e,t]}),us=(e,t)=>({...O6(e),options:[e,t]}),fs=(e,t)=>({...M6(e),options:[e,t]}),ul=(e,t)=>({..._6(e),options:[e,t]}),$o=(e,t)=>({...$6(e),options:[e,t]}),Ux={...Z},R6=Ux.useInsertionEffect||(e=>e());function er(e){const t=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return R6(()=>{t.current=e}),Z.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Dr=typeof document<"u"?I.useLayoutEffect:I.useEffect;let Wx=!1,L6=0;const zx=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+L6++;function N6(){const[e,t]=Z.useState(()=>Wx?zx():void 0);return Dr(()=>{e==null&&t(zx())},[]),Z.useEffect(()=>{Wx=!0},[]),e}const Gx=Ux.useId||N6;let Ud;process.env.NODE_ENV!=="production"&&(Ud=new Set);function k6(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i="Floating UI: "+n.join(" ");if(!((e=Ud)!=null&&e.has(i))){var o;(o=Ud)==null||o.add(i),console.error(i)}}function F6(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const j6=Z.createContext(null),V6=Z.createContext(null),Wd=()=>{var e;return((e=Z.useContext(j6))==null?void 0:e.id)||null},zd=()=>Z.useContext(V6);function Gd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function ui(e){const t=I.useRef(e);return Dr(()=>{t.current=e}),t}const Yx=Gd("safe-polygon");function Yd(e,t,n){return n&&!Do(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function B6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:h=!1,restMs:m=0,move:g=!0}=t,y=zd(),S=Wd(),v=ui(d),E=ui(u),w=ui(n),A=Z.useRef(),O=Z.useRef(-1),D=Z.useRef(),C=Z.useRef(-1),L=Z.useRef(!0),j=Z.useRef(!1),F=Z.useRef(()=>{}),Y=Z.useRef(!1),ee=Z.useCallback(()=>{var B;const U=(B=i.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[i]);Z.useEffect(()=>{if(!c)return;function B(U){let{open:H}=U;H||(an(O),an(C),L.current=!0,Y.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[c,o]),Z.useEffect(()=>{if(!c||!v.current||!n)return;function B(H){ee()&&r(!1,H,"hover")}const U=ai(a.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[a.floating,n,r,c,v,ee]);const te=Z.useCallback(function(B,U,H){U===void 0&&(U=!0),H===void 0&&(H="hover");const M=Yd(E.current,"close",A.current);M&&!D.current?(an(O),O.current=window.setTimeout(()=>r(!1,B,H),M)):U&&(an(O),r(!1,B,H))},[E,r]),me=er(()=>{F.current(),D.current=void 0}),de=er(()=>{if(j.current){const B=ai(a.floating).body;B.style.pointerEvents="",B.removeAttribute(Yx),j.current=!1}}),le=er(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Z.useEffect(()=>{if(!c)return;function B(N){if(an(O),L.current=!1,h&&!Do(A.current)||m>0&&!Yd(E.current,"open"))return;const K=Yd(E.current,"open",A.current);K?O.current=window.setTimeout(()=>{w.current||r(!0,N,"hover")},K):n||r(!0,N,"hover")}function U(N){if(le())return;F.current();const K=ai(a.floating);if(an(C),Y.current=!1,v.current&&i.current.floatingContext){n||an(O),D.current=v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N,!0,"safe-polygon")}});const ue=D.current;K.addEventListener("mousemove",ue),F.current=()=>{K.removeEventListener("mousemove",ue)};return}(A.current==="touch"?!Io(a.floating,N.relatedTarget):!0)&&te(N)}function H(N){le()||i.current.floatingContext&&(v.current==null||v.current({...i.current.floatingContext,tree:y,x:N.clientX,y:N.clientY,onClose(){de(),me(),le()||te(N)}})(N))}if(qe(a.domReference)){var M;const N=a.domReference;return n&&N.addEventListener("mouseleave",H),(M=a.floating)==null||M.addEventListener("mouseleave",H),g&&N.addEventListener("mousemove",B,{once:!0}),N.addEventListener("mouseenter",B),N.addEventListener("mouseleave",U),()=>{var K;n&&N.removeEventListener("mouseleave",H),(K=a.floating)==null||K.removeEventListener("mouseleave",H),g&&N.removeEventListener("mousemove",B),N.removeEventListener("mouseenter",B),N.removeEventListener("mouseleave",U)}}},[a,c,e,h,m,g,te,me,de,r,n,w,y,E,v,i,le]),Dr(()=>{var B;if(c&&n&&(B=v.current)!=null&&B.__options.blockPointerEvents&&ee()){j.current=!0;const H=a.floating;if(qe(a.domReference)&&H){var U;const M=ai(a.floating).body;M.setAttribute(Yx,"");const N=a.domReference,K=y==null||(U=y.nodesRef.current.find(Q=>Q.id===S))==null||(U=U.context)==null?void 0:U.elements.floating;return K&&(K.style.pointerEvents=""),M.style.pointerEvents="none",N.style.pointerEvents="auto",H.style.pointerEvents="auto",()=>{M.style.pointerEvents="",N.style.pointerEvents="",H.style.pointerEvents=""}}}},[c,n,S,a,y,v,ee]),Dr(()=>{n||(A.current=void 0,Y.current=!1,me(),de())},[n,me,de]),Z.useEffect(()=>()=>{me(),an(O),an(C),de()},[c,a.domReference,me,de]);const re=Z.useMemo(()=>{function B(U){A.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:H}=U;function M(){!L.current&&!w.current&&r(!0,H,"hover")}h&&!Do(A.current)||n||m===0||Y.current&&U.movementX**2+U.movementY**2<2||(an(C),A.current==="touch"?M():(Y.current=!0,C.current=window.setTimeout(M,m)))}}},[h,r,n,w,m]),ie=Z.useMemo(()=>({onMouseEnter(){an(O)},onMouseLeave(B){le()||te(B.nativeEvent,!1)}}),[te,le]);return Z.useMemo(()=>c?{reference:re,floating:ie}:{},[c,re,ie])}function Hd(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return i.parentId===a.id&&((c=i.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const U6="data-floating-ui-focusable";function Hx(e){return kt(e.target)&&e.target.tagName==="BUTTON"}function qx(e){return Ax(e)}function Ro(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,g=Z.useRef(),y=Z.useRef(!1),S=Z.useMemo(()=>({onPointerDown(v){g.current=v.pointerType},onMouseDown(v){const E=g.current;v.button===0&&c!=="click"&&(Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,v.nativeEvent,"click"):(v.preventDefault(),r(!0,v.nativeEvent,"click"))))},onClick(v){const E=g.current;if(c==="mousedown"&&g.current){g.current=void 0;return}Do(E,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,v.nativeEvent,"click"):r(!0,v.nativeEvent,"click"))},onKeyDown(v){g.current=void 0,!(v.defaultPrevented||!h||Hx(v))&&(v.key===" "&&!qx(o)&&(v.preventDefault(),y.current=!0),v.key==="Enter"&&r(!(n&&u),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!h||Hx(v)||qx(o)||v.key===" "&&y.current&&(y.current=!1,r(!(n&&u),v.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Z.useMemo(()=>a?{reference:S}:{},[a,S])}const W6={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},z6={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Kx=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function ds(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:d="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:y,capture:S}=t,v=zd(),E=er(typeof u=="function"?u:()=>!1),w=typeof u=="function"?E:u,A=Z.useRef(!1),O=Z.useRef(!1),{escapeKey:D,outsidePress:C}=Kx(y),{escapeKey:L,outsidePress:j}=Kx(S),F=Z.useRef(!1),Y=er(re=>{var ie;if(!n||!a||!c||re.key!=="Escape"||F.current)return;const B=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,U=v?Hd(v.nodesRef.current,B):[];if(!D&&(re.stopPropagation(),U.length>0)){let H=!0;if(U.forEach(M=>{var N;if((N=M.context)!=null&&N.open&&!M.context.dataRef.current.__escapeKeyBubbles){H=!1;return}}),!H)return}r(!1,K5(re)?re.nativeEvent:re,"escape-key")}),ee=er(re=>{var ie;const B=()=>{var U;Y(re),(U=is(re))==null||U.removeEventListener("keydown",B)};(ie=is(re))==null||ie.addEventListener("keydown",B)}),te=er(re=>{var ie;const B=A.current;A.current=!1;const U=O.current;if(O.current=!1,d==="click"&&U||B||typeof w=="function"&&!w(re))return;const H=is(re),M="["+Gd("inert")+"]",N=ai(i.floating).querySelectorAll(M);let K=qe(H)?H:null;for(;K&&!Jn(K);){const ce=Qn(K);if(Jn(ce)||!qe(ce))break;K=ce}if(N.length&&qe(H)&&!X5(H)&&!Io(H,i.floating)&&Array.from(N).every(ce=>!Io(K,ce)))return;if(kt(H)&&le){const ce=Jn(H),he=on(H),oe=/auto|scroll/,ge=ce||oe.test(he.overflowX),Ce=ce||oe.test(he.overflowY),Ue=ge&&H.clientWidth>0&&H.scrollWidth>H.clientWidth,ne=Ce&&H.clientHeight>0&&H.scrollHeight>H.clientHeight,ye=he.direction==="rtl",Ne=ne&&(ye?re.offsetX<=H.offsetWidth-H.clientWidth:re.offsetX>H.clientWidth),ft=Ue&&re.offsetY>H.clientHeight;if(Ne||ft)return}const Q=(ie=o.current.floatingContext)==null?void 0:ie.nodeId,ue=v&&Hd(v.nodesRef.current,Q).some(ce=>{var he;return Dd(re,(he=ce.context)==null?void 0:he.elements.floating)});if(Dd(re,i.floating)||Dd(re,i.domReference)||ue)return;const X=v?Hd(v.nodesRef.current,Q):[];if(X.length>0){let ce=!0;if(X.forEach(he=>{var oe;if((oe=he.context)!=null&&oe.open&&!he.context.dataRef.current.__outsidePressBubbles){ce=!1;return}}),!ce)return}r(!1,re,"outside-press")}),me=er(re=>{var ie;const B=()=>{var U;te(re),(U=is(re))==null||U.removeEventListener(d,B)};(ie=is(re))==null||ie.addEventListener(d,B)});Z.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=D,o.current.__outsidePressBubbles=C;let re=-1;function ie(N){r(!1,N,"ancestor-scroll")}function B(){window.clearTimeout(re),F.current=!0}function U(){re=window.setTimeout(()=>{F.current=!1},nl()?5:0)}const H=ai(i.floating);c&&(H.addEventListener("keydown",L?ee:Y,L),H.addEventListener("compositionstart",B),H.addEventListener("compositionend",U)),w&&H.addEventListener(d,j?me:te,j);let M=[];return g&&(qe(i.domReference)&&(M=Mr(i.domReference)),qe(i.floating)&&(M=M.concat(Mr(i.floating))),!qe(i.reference)&&i.reference&&i.reference.contextElement&&(M=M.concat(Mr(i.reference.contextElement)))),M=M.filter(N=>{var K;return N!==((K=H.defaultView)==null?void 0:K.visualViewport)}),M.forEach(N=>{N.addEventListener("scroll",ie,{passive:!0})}),()=>{c&&(H.removeEventListener("keydown",L?ee:Y,L),H.removeEventListener("compositionstart",B),H.removeEventListener("compositionend",U)),w&&H.removeEventListener(d,j?me:te,j),M.forEach(N=>{N.removeEventListener("scroll",ie)}),window.clearTimeout(re)}},[o,i,c,w,d,n,r,g,a,D,C,Y,L,ee,te,j,me]),Z.useEffect(()=>{A.current=!1},[w,d]);const de=Z.useMemo(()=>({onKeyDown:Y,...h&&{[W6[m]]:re=>{r(!1,re.nativeEvent,"reference-press")},...m!=="click"&&{onClick(re){r(!1,re.nativeEvent,"reference-press")}}}}),[Y,r,h,m]),le=Z.useMemo(()=>({onKeyDown:Y,onMouseDown(){O.current=!0},onMouseUp(){O.current=!0},[z6[d]]:()=>{A.current=!0}}),[Y,d]);return Z.useMemo(()=>a?{reference:de,floating:le}:{},[a,de,le])}function G6(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Gx(),o=Z.useRef({}),[a]=Z.useState(()=>F6()),c=Wd()!=null;if(process.env.NODE_ENV!=="production"){const y=r.reference;y&&!qe(y)&&k6("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,d]=Z.useState(r.reference),h=er((y,S,v)=>{o.current.openEvent=y?S:void 0,a.emit("openchange",{open:y,event:S,reason:v,nested:c}),n==null||n(y,S,v)}),m=Z.useMemo(()=>({setPositionReference:d}),[]),g=Z.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Z.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:g,events:a,floatingId:i,refs:m}),[t,h,g,a,i,m])}function hs(e){e===void 0&&(e={});const{nodeId:t}=e,n=G6({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Z.useState(null),[c,u]=Z.useState(null),h=(i==null?void 0:i.domReference)||o,m=Z.useRef(null),g=zd();Dr(()=>{h&&(m.current=h)},[h]);const y=D6({...e,elements:{...i,...c&&{reference:c}}}),S=Z.useCallback(O=>{const D=qe(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;u(D),y.refs.setReference(D)},[y.refs]),v=Z.useCallback(O=>{(qe(O)||O===null)&&(m.current=O,a(O)),(qe(y.refs.reference.current)||y.refs.reference.current===null||O!==null&&!qe(O))&&y.refs.setReference(O)},[y.refs]),E=Z.useMemo(()=>({...y.refs,setReference:v,setPositionReference:S,domReference:m}),[y.refs,v,S]),w=Z.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),A=Z.useMemo(()=>({...y,...r,refs:E,elements:w,nodeId:t}),[y,E,w,t,r]);return Dr(()=>{r.dataRef.current.floatingContext=A;const O=g==null?void 0:g.nodesRef.current.find(D=>D.id===t);O&&(O.context=A)}),Z.useMemo(()=>({...y,context:A,refs:E,elements:w}),[y,E,w,A])}function Y6(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:c=!0,visibleOnly:u=!0}=t,d=Z.useRef(!1),h=Z.useRef(-1),m=Z.useRef(!0);Z.useEffect(()=>{if(!c)return;const y=Nt(a.domReference);function S(){!n&&kt(a.domReference)&&a.domReference===Tx(ai(a.domReference))&&(d.current=!0)}function v(){m.current=!0}return y.addEventListener("blur",S),y.addEventListener("keydown",v,!0),()=>{y.removeEventListener("blur",S),y.removeEventListener("keydown",v,!0)}},[a.domReference,n,c]),Z.useEffect(()=>{if(!c)return;function y(S){let{reason:v}=S;(v==="reference-press"||v==="escape-key")&&(d.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),Z.useEffect(()=>()=>{an(h)},[]);const g=Z.useMemo(()=>({onPointerDown(y){G5(y.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(y){if(d.current)return;const S=is(y.nativeEvent);if(u&&qe(S))try{if(Y5()&&H5())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ax(S))return}r(!0,y.nativeEvent,"focus")},onBlur(y){d.current=!1;const S=y.relatedTarget,v=y.nativeEvent,E=qe(S)&&S.hasAttribute(Gd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var w;const A=Tx(a.domReference?a.domReference.ownerDocument:document);!S&&A===a.domReference||Io((w=o.current.floatingContext)==null?void 0:w.refs.floating.current,A)||Io(a.domReference,A)||E||r(!1,v,"focus")})}}),[o,a.domReference,r,u]);return Z.useMemo(()=>c?{reference:g}:{},[c,g])}const Xx="active",Zx="selected";function qd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Xx]:a,[Zx]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[U6]:""},...o,...t.map(a=>{const c=a?a[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((a,c)=>(c&&Object.entries(c).forEach(u=>{let[d,h]=u;if(!(i&&[Xx,Zx].includes(d)))if(d.indexOf("on")===0){if(r.has(d)||r.set(d,[]),typeof h=="function"){var m;(m=r.get(d))==null||m.push(h),a[d]=function(){for(var g,y=arguments.length,S=new Array(y),v=0;v<y;v++)S[v]=arguments[v];return(g=r.get(d))==null?void 0:g.map(E=>E(...S)).find(E=>E!==void 0)}}}else a[d]=h}),a),{})}}function ms(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),i=Z.useCallback(c=>qd(c,e,"reference"),t),o=Z.useCallback(c=>qd(c,e,"floating"),n),a=Z.useCallback(c=>qd(c,e,"item"),r);return Z.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const H6=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function q6(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=H6.get(a))!=null?n:a,u=Gx(),h=Wd()!=null,m=Z.useMemo(()=>c==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?i:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&h&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[c,i,h,r,u,a]),g=Z.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),y=Z.useCallback(S=>{let{active:v,selected:E}=S;const w={role:"option",...v&&{id:i+"-option"}};switch(a){case"select":return{...w,"aria-selected":v&&E};case"combobox":return{...w,...v&&{"aria-selected":!0}}}return{}},[i,a]);return Z.useMemo(()=>o?{reference:m,floating:g,item:y}:{},[o,m,g,y])}const Jx=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ps(e,t){return typeof e=="function"?e(t):e}function K6(e,t){const[n,r]=Z.useState(e);return e&&!n&&r(!0),Z.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function X6(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,a=(typeof i=="number"?i:i.close)||0,[c,u]=Z.useState("unmounted"),d=K6(n,a);return!d&&c==="close"&&u("unmounted"),Dr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function Lo(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=Z.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,g=(h?a:a.close)||0,[y,S]=Z.useState(()=>({...ps(o,d),...ps(n,d)})),{isMounted:v,status:E}=X6(e,{duration:a}),w=ui(n),A=ui(r),O=ui(i),D=ui(o);return Dr(()=>{const C=ps(w.current,d),L=ps(O.current,d),j=ps(D.current,d),F=ps(A.current,d)||Object.keys(C).reduce((Y,ee)=>(Y[ee]="",Y),{});if(E==="initial"&&S(Y=>({transitionProperty:Y.transitionProperty,...j,...C})),E==="open"&&S({transitionProperty:Object.keys(F).map(Jx).join(","),transitionDuration:m+"ms",...j,...F}),E==="close"){const Y=L||C;S({transitionProperty:Object.keys(Y).map(Jx).join(","),transitionDuration:g+"ms",...j,...Y})}},[g,O,w,A,D,m,E,d]),{isMounted:v,styles:y}}const gs=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",offset:c=8,padding:u=8})=>{const[d,h]=I.useState(e);I.useEffect(()=>{h(e)},[e]);const m=()=>{h(!1),t==null||t()},{x:g,y,strategy:S,refs:v,context:E}=hs({strategy:a,open:d,onOpenChange:j=>{j||m()},middleware:[cs(c),fs(),us({padding:u})],whileElementsMounted:ls,placement:i}),w=Ro(E),A=ds(E),{getReferenceProps:O,getFloatingProps:D}=ms([w,A]),{isMounted:C,styles:L}=Lo(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return x.jsxs("div",{className:"relative",children:[x.jsx("div",{ref:v.setReference,...O(),className:"reference-element",children:r}),C&&x.jsx("div",{ref:v.setFloating,style:{position:S,top:y??0,left:g??0,...L,zIndex:9999},...D(),className:"floating-element",children:x.jsx(ys,{className:o,children:typeof n=="function"?I.createElement(n):n})})]})},Qx={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:"#dee7fc",color:"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}},Z6=({selectedPeriod:e,handlePeriodChange:t})=>x.jsxs("div",{className:"flex border border-blue-100 rounded-xl p-6 gap-2",children:[x.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="AM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("AM"),disabled:e==="AM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"AM"}),x.jsx(Ze.button,{variants:Qx,initial:"initial",animate:e==="PM"?"active":"initial",exit:"exit",transition:{duration:.2},onClick:()=>t("PM"),disabled:e==="PM",className:"flex items-center justify-center font-500 px-10 py-2 rounded-lg",children:"PM"})]}),J6=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>x.jsx("button",{onClick:()=>e(!t),className:"flex justify-center items-center w-72 h-full border py-8 px-14 rounded-xl border-blue-100 text-gray-600 font-500",children:`${String(n).padStart(2,"0")}:00`});/*!
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,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:`
667
+ */const Q6={prefix:"far",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Kd={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},eL={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},Xd=({date:e,onDateChange:t,showTimeSelector:n=!0,maxDate:r})=>{const[i,o]=I.useState(e),[a,c]=I.useState(e),[u,d]=I.useState(e.getHours()%12||12),[h,m]=I.useState(e.getHours()>=12?"PM":"AM"),[g,y]=I.useState(0),{t:S}=ze(),[v,E]=I.useState(!1),[w,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(_I(i))},10)},D=()=>{y(1),setTimeout(()=>{o(sv(i,1))},10)},C=de=>{if(r&&de>r)return;const le=yv(vv(bv(de,0),0),h==="AM"?u%12:u%12+12);c(le),t(le)},L=de=>{d(de);const le=yv(vv(bv(a,0),0),h==="AM"?de%12:de%12+12);c(le),t(le),E(!1)},j=de=>{m(de)},F=()=>{const de=new Date,le=20,re=5,[ie,B]=I.useState(()=>Array.from({length:le+1},(N,K)=>{const Q=new Date(de.getFullYear(),de.getMonth()-K,1);return{name:$n(Q,"MMMM",{locale:Gi}).replace(/^./,ue=>ue.toUpperCase()),index:Q.getMonth(),year:Q.getFullYear(),displayName:`${$n(Q,"MMMM",{locale:Gi}).replace(/^./,ue=>ue.toUpperCase())} ${Q.getFullYear()}`}})),U=I.useRef(null),H=I.useRef(null);I.useEffect(()=>{U.current&&U.current.disconnect(),U.current=new IntersectionObserver(N=>{N[0].isIntersecting&&B(K=>{const Q=K[K.length-1],ue=new Date(Q.year,Q.index-1,1),X=Array.from({length:re},(ce,he)=>{const oe=new Date(ue.getFullYear(),ue.getMonth()-he,1);return{name:$n(oe,"MMMM",{locale:Gi}).replace(/^./,ge=>ge.toUpperCase()),index:oe.getMonth(),year:oe.getFullYear(),displayName:`${$n(oe,"MMMM",{locale:Gi}).replace(/^./,ge=>ge.toUpperCase())} ${oe.getFullYear()}`}});return[...K,...X]})}),H.current&&U.current.observe(H.current)},[ie]);const M=(N,K)=>{const Q=new Date(i);Q.setMonth(N),Q.setFullYear(K),o(Q),A(!1)};return x.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:ie.map((N,K)=>{const Q=K===ie.length-1;return x.jsx("button",{ref:Q?H:null,onClick:()=>M(N.index,N.year),className:`text-start p-6 font-600 transition-all duration-100 rounded-lg hover:bg-gray-100 ${i.getMonth()===N.index&&i.getFullYear()===N.year?"bg-blue-100":""}`,children:N.displayName},`${N.name}-${N.year}-${K}`)})})},Y=()=>x.jsxs("div",{className:"flex justify-between items-center mb-8",children:[x.jsx(gs,{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:$n(i,"MMMM yyyy",{locale:Gi}).replace(/^./,de=>de.toUpperCase())}),x.jsx(Ie,{icon:Kd,className:"w-12 h-12"})]})}),x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx(uh,{variant:"transparent",color:"gray",icon:B5,onClick:O}),x.jsx(uh,{variant:"transparent",color:"gray",icon:x_,onClick:D})]})]}),ee=()=>{const de=Ui(I_(i)),le=$_(O_(i)),re=__({start:de,end:le});return x.jsx("div",{className:"grid grid-cols-7 gap-2",children:re.map((ie,B)=>{const U=lv(ie,a),H=OI(ie,i),M=MI(ie),N=r?ie>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
- ${!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:`
669
+ ${!H||N?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
+ ${M&&!U?"text-blue-600":""}
671
+ `,onClick:()=>C(ie),initial:!1,animate:{backgroundColor:U?"#93C5FD":"transparent",color:U?"#FFFFFF":M?"#2563EB":H&&!N?"#000000":"#9CA3AF"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:H&&!U&&!N?{backgroundColor:"#E5E7EB"}:{},whileTap:H&&!N?{backgroundColor:U?"#7AA5E0":"#D1D5DB"}:{},children:$n(ie,"d")},B)})})},te=()=>{const de=Array.from({length:12},(re,ie)=>ie+1),le=()=>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:de.map(re=>x.jsxs("button",{onClick:()=>L(re),className:`w-full text-center py-2 transition-all duration-100 rounded-lg hover:bg-gray-100 ${re===u?"text-blue-500 font-medium":""}`,children:[String(re).padStart(2,"0"),":00"]},re))});return 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(gs,{open:v,onClose:()=>E(!1),component:le,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:x.jsx(J6,{setHourMenuOpen:E,hourMenuOpen:v,selectedHour:u})}),x.jsx(Z6,{selectedPeriod:h,handlePeriodChange:j})]})]})},me={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return x.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[Y(),x.jsx(Kn,{initial:!1,mode:"popLayout",children:x.jsx(Ze.div,{variants:me,initial:g===1?"slideNextEnter":g===-1?"slidePrevEnter":!1,animate:"center",exit:g===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ee()},$n(i,"yyyy-MM"))}),n&&te()]})},Zd=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,leftSide:d,rightSide:h,...m})=>{const{t:g}=ze();return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${c&&"cursor-not-allowed"} ${a}`,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"}
@@ -684,23 +684,14 @@ function print() { __p += __j.call(arguments, '') }
684
684
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
685
685
  ${u&&"hover:!cursor-pointer"}
686
686
  group-disabled:bg-gray-500
687
- `,children:[d&&d,x.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&g(i||"",{x:g(r)})})]})},Vx=e=>Yn(e,"dd/MM/yyyy"),Bx=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},L6=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o})=>{const{field:{value:l,onChange:c,onBlur:u},fieldState:{error:d}}=cr.useController({name:t,control:e}),{t:h}=ze(),m=h(t),g=h(i),[y,S]=I.useState(!1),[b,P]=I.useState("");I.useEffect(()=>{l instanceof Date&&!isNaN(l.getTime())?P(Vx(l)):P("")},[l]);const w=Bx(b),A=D=>{const C=D.replace(/\D/g,"").slice(0,8),L=[];C.length>0&&L.push(C.slice(0,2)),C.length>2&&L.push(C.slice(2,4)),C.length>4&&L.push(C.slice(4,8));const V=L.join("/");if(P(V),S(!1),V.length===10){const F=Bx(V);c(F)}},O=()=>{c(null),P("")};return x.jsx(Oo,{open:y,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:x.jsx(Fx,{date:w||new Date,onDateChange:D=>{P(Vx(D)),c(D),S(!1)},showTimeSelector:n,maxDate:new Date}),children:x.jsx(jx,{onBlur:u,name:g||m,label:r,value:b,onFocus:D=>{D.preventDefault(),S(!0)},disabledInput:!0,onChange:D=>A(D),placeholder:o,error:d==null?void 0:d.message,rightSide:!!w&&x.jsx(De,{icon:s_,className:"text-gray-500 cursor-pointer",onClick:O})})})},Ux=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:l=AR})=>{const c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o==null||o(),r()},{t:m}=ze();return 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-sm mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:g=>g.stopPropagation(),children:x.jsxs(is,{className:"flex flex-col gap-20 p-32",children:[x.jsxs("div",{className:"flex flex-col",children:[x.jsx("div",{className:"flex justify-end",children: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("div",{className:"flex justify-center",children:x.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:x.jsx(De,{icon:l,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),x.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[x.jsxs("div",{className:"text-center w-full",children:[x.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),x.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),x.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&x.jsx(_o,{size:"lg",onClick:h,variant:"transparent",children:m("cancel")}),x.jsx(_o,{size:"lg",onClick:d,children:m("confirm")})]})]})]})})})})})},Wx={duration:.3,ease:[.32,.72,0,1]},k6={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},F6=({isOpen:e})=>x.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:x.jsx(De,{icon:ER,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),j6=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:l=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return x.jsxs(Ze.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[x.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
687
+ `,children:[d&&d,x.jsx("input",{...m,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:y=>{t(y.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),h&&h]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:i&&g(i||"",{x:g(r)})})]})},ew=e=>$n(e,"dd/MM/yyyy"),tw=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null},tL=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o})=>{const{field:{value:a,onChange:c,onBlur:u},fieldState:{error:d}}=hr.useController({name:t,control:e}),{t:h}=ze(),m=h(t),g=h(i),[y,S]=I.useState(!1),[v,E]=I.useState("");I.useEffect(()=>{a instanceof Date&&!isNaN(a.getTime())?E(ew(a)):E("")},[a]);const w=tw(v),A=D=>{const C=D.replace(/\D/g,"").slice(0,8),L=[];C.length>0&&L.push(C.slice(0,2)),C.length>2&&L.push(C.slice(2,4)),C.length>4&&L.push(C.slice(4,8));const j=L.join("/");if(E(j),S(!1),j.length===10){const F=tw(j);c(F)}},O=()=>{c(null),E("")};return x.jsx(gs,{open:y,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:x.jsx(Xd,{date:w||new Date,onDateChange:D=>{E(ew(D)),c(D),S(!1)},showTimeSelector:n,maxDate:new Date}),children:x.jsx(Zd,{onBlur:u,name:g||m,label:r,value:v,onFocus:D=>{D.preventDefault(),S(!0)},disabledInput:!0,onChange:D=>A(D),placeholder:o,error:d==null?void 0:d.message,rightSide:!!w&&x.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:O})})})},nw=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=U5})=>{const c={hidden:{opacity:0},visible:{opacity:1}},u={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},d=()=>{i(),r()},h=()=>{o==null||o(),r()},{t:m}=ze();return x.jsx(Kn,{children:n&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:c,onClick:r,children:x.jsx(Ze.div,{className:"w-full max-w-sm mx-16 z-50",variants:u,initial:"hidden",animate:"visible",exit:"exit",onClick:g=>g.stopPropagation(),children:x.jsxs(ys,{className:"flex flex-col gap-20 p-32",children:[x.jsxs("div",{className:"flex flex-col",children:[x.jsx("div",{className:"flex justify-end",children:x.jsx(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),x.jsx("div",{className:"flex justify-center",children:x.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:x.jsx(Ie,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),x.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[x.jsxs("div",{className:"text-center w-full",children:[x.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),x.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),x.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&x.jsx(ko,{size:"lg",onClick:h,variant:"transparent",children:m("cancel")}),x.jsx(ko,{size:"lg",onClick:d,children:m("confirm")})]})]})]})})})})})},rw={duration:.3,ease:[.32,.72,0,1]},nL={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},rL=({isOpen:e})=>x.jsx(Ze.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:x.jsx(Ie,{icon:j5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),iL=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=ze(),[u,d]=I.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return x.jsxs(Ze.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[x.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
688
688
  ${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
689
- transition-all duration-200 ease-in-out ${l} focus:outline-none hover:bg-gray-50/50
690
- flex items-center gap-2 group w-full justify-between`,children:[x.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),x.jsxs("div",{className:"flex gap-10 items-center",children:[x.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),x.jsx(F6,{isOpen:h})]})]}),x.jsx(xr,{mode:"wait",children:h&&x.jsx(Ze.div,{...k6,transition:{height:{duration:Wx.duration,ease:Wx.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},V6=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[l,c]=I.useState(o()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const b=o();c(b);let P;if(b===Ht.LOADING&&u<100){const O=100/(r/100);P=setInterval(()=>{d(D=>{const C=Math.min(D+O,99),L=Math.max(0,Math.round((100-C)/10));return m(L),C})},100)}else b===Ht.COMPLETE&&u<100&&d(100);return()=>{P&&clearInterval(P)}},[e.loading,e.error,r,o,u]);const g=()=>{switch(l){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(l){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return x.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(De,{icon:CC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),x.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),l===Ht.COMPLETE&&x.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:x.jsx(De,{icon:EC})}),l===Ht.ERROR&&x.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:x.jsx(De,{icon:SC})})]}),x.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),x.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):x.jsxs("div",{className:"text-sm",children:[x.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",x.jsx("span",{className:y(),children:g()})]})}),l===Ht.LOADING&&x.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:x.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},is=({children:e,className:t,element:n="div"})=>{const r=n;return x.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},B6=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return x.jsx(xr,{children:e&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:x.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:x.jsx(is,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:x.jsx(x.Fragment,{})})})})})})},U6={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},W6={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Bd=e=>{switch(e){case"aqua":return W6;case"blue":default:return U6}},z6=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",l=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Bd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:l?"1px":"0px",borderColor:l?u:d},animate:{backgroundColor:o?c:"white",borderWidth:l||!o?"1px":"0px",borderColor:l?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:x.jsx(Ze.div,{initial:n?!1:{color:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||l?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(xr,{mode:"wait",children:o||l?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(De,{icon:Hp,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(De,{icon:Yp,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o?"text-black":"text-gray-400"}`,children:i(t)})]})},G6=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",l=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Bd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:l||!o?"1px":"0px",borderColor:l?u:d},animate:{backgroundColor:o?c:"white",borderWidth:l||!o?"1px":"0px",borderColor:l?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:x.jsx(Ze.div,{initial:n?!1:{color:l||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:l||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(xr,{mode:"wait",children:o||l?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(De,{icon:Hp,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(De,{icon:Yp,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||l?"text-black":"text-gray-400"}`,children:i(t)})]})},Y6=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:o,lineGradientFrom:l}=Bd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,g]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((A,O)=>S(O)?"focus":A.completed?"done":"pending");if(!m)u(w),g(!0),h(null);else{const A=w.findIndex((O,D)=>O!==c[D]);h(A!==-1?A:null),u(w)}},[e,y]);const b=()=>x.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,A)=>{var L;const O=S(A-1)?"focus":(L=e[A-1])!=null&&L.completed?"done":"pending",D=S(A)?"focus":w.completed?"done":"pending",C=m&&d===A;return x.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&x.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${D==="done"||D==="focus"?o:O==="done"||O==="focus"?`bg-gradient-to-b ${l} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),x.jsx(z6,{status:D,shouldAnimate:C,label:w.label,color:i})]},A)})}),P=()=>x.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,A)=>{const O=S(A)?"focus":w.completed?"done":"pending",D=m&&d===A;return x.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:x.jsx(G6,{status:O,shouldAnimate:D,label:w.label,color:i})},A)})});return t==="horizontal"?x.jsx(P,{}):x.jsx(b,{})},H6=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:l="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:g}=ze(),y=t||g,S=()=>{const b=n.findIndex(P=>P.id===r);if(b>=0&&u.current[b]){const P=u.current[b];if(P&&m.current){const w=m.current.getBoundingClientRect(),A=P.getBoundingClientRect();h({left:A.left-w.left,width:A.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const b=()=>{S()};return window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[r,n]),x.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((b,P)=>x.jsx(lf.div,{ref:w=>{u.current[P]=w},className:"w-full",children:x.jsx(yw,{href:b.href,label:c?b.label:"",icon:b.icon,direction:l,isSelected:r===b.id,onClick:()=>i(b.id),variant:e})},b.id)),x.jsx(lf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},q6=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(l=>{const c={...l,id:(l==null?void 0:l.id)||ff.uniqueId(),open:!0,type:(l==null?void 0:l.type)||"center",props:{...l.props,open:!0,onClose:()=>o(l.id||ff.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(l=>{const c=ff.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:l};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(l=>{n.current=n.current.map(c=>c.id===l?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==l),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),x.jsx(x.Fragment,{children:e.map(l=>{if(l.type==="custom"&&(l!=null&&l.component)){const{open:u,onClose:d,component:h}=l;return h(u,d)}if(l.type==="dialog"){const{props:u}=l;return x.jsx(Ux,{...u,open:l.open,onClose:()=>o(l.id)},l.id)}if(l.type==="alert"){const{props:u}=l;return x.jsx(ax,{...u,open:l.open,onClose:()=>o(l.id)},l.id)}const{props:c}=l;return x.jsx(Qx,{...c,open:l.open,onClose:()=>o(l.id),children:typeof c.children=="function"?c.children(()=>o(l.id)):c.children},l.id)})})};function K6(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function X6(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function Z6(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function J6(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return x.jsx(i,{...n})}return r??x.jsx("div",{children:"no content"})}const Ud=[];function zx(e="bottom-center"){var t;if(!Ud.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}Ud.push({id:e,element:n}),document.body.appendChild(n)}return(t=Ud.find(n=>n.id===e))==null?void 0:t.element}function ol(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=zx(n);if(!o)return;const l=document.createElement("div"),c=i(l),u=()=>{c.unmount(),o.removeChild(l)};c.render(x.jsx(cf,{content:e,type:t,duration:r,onClose:u})),o.prepend(l),setTimeout(()=>{l.classList.add("mt-[0.5rem]")},10)})}const Wd=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=zx(n.position);if(!i)return;const o=document.createElement("div"),l=r(o),c=()=>{l.unmount(),i.removeChild(o)};l.render(x.jsx(Wy,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},Gx=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,l)=>{n=o,r=l});return Wd(i,e,t),{resolve:n,reject:r}},Q6={success:(e,t={})=>ol(e,"success",t),error:(e,t={})=>ol(e,"error",t),warning:(e,t={})=>ol(e,"warning",t),info:(e,t={})=>ol(e,"info",t),async:(e,t,n={})=>Wd(e,t,n),loading:(e,t={})=>Gx(e,t)},Yx=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:l=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",g=i*.4+"px",[y,S]=I.useState(!1),b=()=>r?uf(r):o?uf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",P=C=>{try{return C?(new URL(C),!0):!1}catch(L){return console.log(L),!1}},w=()=>P(n)?n:o!=null&&o.image&&P(o.image)?o.image:o!=null&&o.image?cv(o.image):"",A=()=>r?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:r}):o?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):x.jsx(De,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:r_,className:"w-full text-white"}),O=()=>{S(!0)},D=w();return x.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+l,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:b()},...c,children:[D&&!y&&x.jsx("img",{src:D,alt:r,className:`
691
- object-cover w-full h-full text-center indent-[10000px] absolute
692
- z-10
693
- ${u}
694
- `,onError:O,...d}),x.jsx("div",{className:`
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 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
-
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,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:`
689
+ transition-all duration-200 ease-in-out ${a} focus:outline-none hover:bg-gray-50/50
690
+ flex items-center gap-2 group w-full justify-between`,children:[x.jsx("span",{className:"truncate text-nowrap text-lg md:text-xl font-700",children:c(e)}),x.jsxs("div",{className:"flex gap-10 items-center",children:[x.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),x.jsx(rL,{isOpen:h})]})]}),x.jsx(Kn,{mode:"wait",children:h&&x.jsx(Ze.div,{...nL,transition:{height:{duration:rw.duration,ease:rw.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},sL=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=ze(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=I.useState(o()),[u,d]=I.useState(0),[h,m]=I.useState(10);I.useEffect(()=>{const v=o();c(v);let E;if(v===Ht.LOADING&&u<100){const O=100/(r/100);E=setInterval(()=>{d(D=>{const C=Math.min(D+O,99),L=Math.max(0,Math.round((100-C)/10));return m(L),C})},100)}else v===Ht.COMPLETE&&u<100&&d(100);return()=>{E&&clearInterval(E)}},[e.loading,e.error,r,o,u]);const g=()=>{switch(a){case Ht.LOADING:return`${Math.round(u)}% (${h} ${i("seconds_left")})`;case Ht.COMPLETE:return i("file_uploaded");case Ht.ERROR:return i("upload_error");default:return""}},y=()=>{switch(a){case Ht.COMPLETE:return"text-green-500 font-600";case Ht.ERROR:return"text-red-500 font-600";default:return"text-gray-300 font-400"}},S=()=>{if(!(e!=null&&e.file_size))return i("unknown");const v=e.file_size/1024;return v<1024?`${v.toFixed(1)} KB`:`${(v/1024).toFixed(1)} MB`};return x.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[x.jsx(Ie,{icon:BC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),x.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&x.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:x.jsx(Ie,{icon:VC})}),a===Ht.ERROR&&x.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:x.jsx(Ie,{icon:FC})})]}),x.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(Ze.div,{className:"h-14 w-14 rounded-full border-2 border-t-blue-500 border-r-blue-300 border-b-blue-200 border-l-blue-400",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),x.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):x.jsxs("div",{className:"text-sm",children:[x.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",x.jsx("span",{className:y(),children:g()})]})}),a===Ht.LOADING&&x.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:x.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},iw=({index:e,label:t,active:n,completed:r})=>x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx("div",{className:`
700
691
  size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
701
692
  ${n&&"border-blue-500! text-blue-500!"}
702
693
  ${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
703
- `,children:r?x.jsx(De,{icon:N6,className:`
694
+ `,children:r?x.jsx(Ie,{icon:eL,className:`
704
695
  text-blue-500
705
696
  size-16
706
697
  `}):e}),x.jsx("h6",{className:`
@@ -708,7 +699,16 @@ attempted value: ${l}
708
699
  ${n||r?"text-blue-500":"text-gray-300"}
709
700
  ${n&&"font-600"}
710
701
  ${r&&"font-500"}
711
- `,children:t})]}),KN=({imageUrl:e,title:t,subtitle:n})=>x.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[x.jsx("img",{src:e,alt:t,width:100,height:100}),x.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),x.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),XN=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},ZN=({description:e,title:t,className:n,icon:r,type:i="informative"})=>x.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${XN(i)} rounded-lg ${n}`,children:[r?x.jsx(De,{icon:r,className:"text-blue-500 min-h-20 h-20"}):x.jsx(De,{icon:R6,className:"text-blue-500 min-h-20 h-20"}),x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),x.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),JN=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:l="",...c}=r;return x.jsx("div",{...c,className:`relative flex items-center justify-center ${l}`,children:x.jsx("svg",{height:e,width:e,className:"animate-spin",children:x.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},QN=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:l})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=cr.useController({name:n,control:t}),[g,y]=I.useState(!1),{t:S}=ze();return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:n,className:`
702
+ `,children:t})]}),oL=({currentStep:e,steps:t})=>x.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>x.jsx(iw,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),aL=({label:e,value:t})=>x.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[x.jsx("h4",{className:"text-body-m font-600",children:e}),x.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||I.isValidElement(t)?t:null})]}),sw=({title:e,children:t,className:n=""})=>x.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[x.jsx("h4",{className:"text-body-m font-600",children:e}),x.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});sw.Entry=aL;const ys=({children:e,className:t,element:n="div"})=>{const r=n;return x.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},lL=({isOpen:e,onClose:t})=>{const n={hidden:{opacity:0},visible:{opacity:1}},r={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}};return x.jsx(Kn,{children:e&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:n,onClick:t,children:x.jsx(Ze.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:x.jsx(ys,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:x.jsx(x.Fragment,{})})})})})})},cL={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},uL={completedBgColor:"#C7F9F5",focusBorderColor:"#1DA696",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-aqua-500",lineActiveColor:"bg-aqua-500",lineGradientFrom:"from-aqua-500"},Jd=e=>{switch(e){case"aqua":return uL;case"blue":default:return cL}},fL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-28 min-h-28 rounded-full flex items-center justify-center text-xl font-bold border-[1px]",children:x.jsx(Ze.div,{initial:n?!1:{color:o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:o||a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(Kn,{mode:"wait",children:o||a?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o?"text-black":"text-gray-400"}`,children:i(t)})]})},dL=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=ze(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return x.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[x.jsx(Ze.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:d},transition:{duration:n?.3:0,ease:"easeOut"},className:"min-w-24 min-h-24 rounded-full flex items-center justify-center text-xs font-bold z-10",children:x.jsx(Ze.div,{initial:n?!1:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||o?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:x.jsx(Kn,{mode:"wait",children:o||a?x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:sg,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):x.jsx(Ze.div,{initial:n?{opacity:0,scale:.8,rotate:-180}:{opacity:1,scale:1,rotate:0},animate:{opacity:1,scale:1,rotate:0},exit:{opacity:0,scale:.8,rotate:180},transition:{duration:n?.3:0},className:"flex items-center justify-center",children:x.jsx(Ie,{icon:ig,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),x.jsx("span",{className:`text-body-s font-medium transition-all duration-300 text-center w-full ${o||a?"text-black":"text-gray-400"}`,children:i(t)})]})},hL=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=ze(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=I.useState([]),[d,h]=I.useState(null),[m,g]=I.useState(!1),y=e.findIndex(w=>!w.completed),S=w=>y===w;I.useEffect(()=>{const w=e.map((A,O)=>S(O)?"focus":A.completed?"done":"pending");if(!m)u(w),g(!0),h(null);else{const A=w.findIndex((O,D)=>O!==c[D]);h(A!==-1?A:null),u(w)}},[e,y]);const v=()=>x.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((w,A)=>{var L;const O=S(A-1)?"focus":(L=e[A-1])!=null&&L.completed?"done":"pending",D=S(A)?"focus":w.completed?"done":"pending",C=m&&d===A;return x.jsxs("div",{className:"flex items-center gap-10 relative",children:[A!==0&&x.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${D==="done"||D==="focus"?o:O==="done"||O==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),x.jsx(fL,{status:D,shouldAnimate:C,label:w.label,color:i})]},A)})}),E=()=>x.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((w,A)=>{const O=S(A)?"focus":w.completed?"done":"pending",D=m&&d===A;return x.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:x.jsx(dL,{status:O,shouldAnimate:D,label:w.label,color:i})},A)})});return t==="horizontal"?x.jsx(E,{}):x.jsx(v,{})},mL=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0})=>{const u=I.useRef([]),[d,h]=I.useState({left:0,width:0}),m=I.useRef(null),{defaultColorScheme:g}=ze(),y=t||g,S=()=>{const v=n.findIndex(E=>E.id===r);if(v>=0&&u.current[v]){const E=u.current[v];if(E&&m.current){const w=m.current.getBoundingClientRect(),A=E.getBoundingClientRect();h({left:A.left-w.left,width:A.width})}}};return I.useEffect(()=>{S()},[r,n]),I.useEffect(()=>{const v=()=>{S()};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[r,n]),x.jsxs("div",{ref:m,className:`flex items-center relative ${o}`,children:[n.map((v,E)=>x.jsx(hf.div,{ref:w=>{u.current[E]=w},className:"w-full",children:x.jsx($w,{href:v.href,label:c?v.label:"",icon:v.icon,direction:a,isSelected:r===v.id,onClick:()=>i(v.id),variant:e})},v.id)),x.jsx(hf.div,{className:`absolute bottom-0 h-2 bg-${y}-500`,initial:!1,animate:{left:d.left,width:d.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>$n(e,"dd/MM/yyyy"),pL=e=>{const[t,n,r]=e.split("/");if((t==null?void 0:t.length)===2&&(n==null?void 0:n.length)===2&&(r==null?void 0:r.length)===4){const i=new Date(Number(r),Number(n)-1,Number(t));return isNaN(i.getTime())?null:i}return null};function gL({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1}){const[c,u]=I.useState(!1),[d,h]=I.useState(e?Qd(e):"");I.useEffect(()=>{h(e?Qd(e):"")},[e]);const m=y=>{const S=y.replace(/\D/g,"").slice(0,8),v=[];S.length>0&&v.push(S.slice(0,2)),S.length>2&&v.push(S.slice(2,4)),S.length>4&&v.push(S.slice(4,8));const E=v.join("/");if(h(E),u(!1),E.length===10){const w=pL(E);w&&t(w)}},g=()=>{t(null),h("")};return x.jsx(gs,{open:c,strategy:"fixed",padding:0,offset:0,onClose:()=>u(!1),className:"p-0!",component:x.jsx(Xd,{date:e||new Date,onDateChange:y=>{t(y),h(Qd(y)),u(!1)},showTimeSelector:a,maxDate:new Date}),children:x.jsx(Zd,{name:o,label:n,value:d,onClick:y=>{y.preventDefault(),u(!0)},onChange:y=>m(y),placeholder:r,error:i,rightSide:e&&x.jsx(Ie,{icon:nv,className:"text-gray-500 cursor-pointer",onClick:g})})})}const yL=()=>{const[e,t]=I.useState([]),n=I.useRef([]),r=I.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||gf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||gf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=I.useCallback(a=>{const c=gf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=I.useCallback(a=>{n.current=n.current.map(c=>c.id===a?{...c,open:!1}:c),t(n.current),setTimeout(()=>{n.current=n.current.filter(c=>c.id!==a),t(n.current)},150)},[]);return I.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),x.jsx(x.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:d,component:h}=a;return h(u,d)}if(a.type==="dialog"){const{props:u}=a;return x.jsx(nw,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return x.jsx(xx,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return x.jsx(pw,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function vL(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function bL(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function xL(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function wL(e,t,n){const r=t[e];if(I.isValidElement(r)&&typeof r.type!="string")return I.cloneElement(r,n);if(typeof r=="function"){const i=r;return x.jsx(i,{...n})}return r??x.jsx("div",{children:"no content"})}const eh=[];function ow(e="bottom-center"){var t;if(!eh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-50","flex","flex-col","items-center","w-fit","min-w-[18rem]"),e){case"top-left":n.classList.add("top-8","left-8");break;case"top-right":n.classList.add("top-8","right-8");break;case"bottom-left":n.classList.add("bottom-8","left-8");break;case"bottom-right":n.classList.add("bottom-8","right-8");break;case"top-center":n.classList.add("top-8","left-1/2","-translate-x-1/2");break;case"bottom-center":default:n.classList.add("bottom-8","left-1/2","-translate-x-1/2")}eh.push({id:e,element:n}),document.body.appendChild(n)}return(t=eh.find(n=>n.id===e))==null?void 0:t.element}function fl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=ow(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(x.jsx(mf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const th=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=ow(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(x.jsx(tv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},aw=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return th(i,e,t),{resolve:n,reject:r}},SL={success:(e,t={})=>fl(e,"success",t),error:(e,t={})=>fl(e,"error",t),warning:(e,t={})=>fl(e,"warning",t),info:(e,t={})=>fl(e,"info",t),async:(e,t,n={})=>th(e,t,n),loading:(e,t={})=>aw(e,t)},lw=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:i=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=i+"px",m=i*.5+"px",g=i*.4+"px",[y,S]=I.useState(!1),v=()=>r?pf(r):o?pf(o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||"")+" "+((o==null?void 0:o.last_name)||""):o==null?void 0:o.email):"#9CA1B6",E=C=>{try{return C?(new URL(C),!0):!1}catch(L){return console.log(L),!1}},w=()=>E(n)?n:o!=null&&o.image&&E(o.image)?o.image:o!=null&&o.image?Sv(o.image):"",A=()=>r?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:r}):o?x.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:g},children:o!=null&&o.first_name||o!=null&&o.last_name?((o==null?void 0:o.first_name)||" ")[0]+((o==null?void 0:o.last_name)||" ")[0]:((o==null?void 0:o.email)||" ")[0]}):x.jsx(Ie,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:b_,className:"w-full text-white"}),O=()=>{S(!0)},D=w();return x.jsxs("div",{className:"flex items-center justify-center rounded-full overflow-hidden h-full relative "+a,style:{maxWidth:h,maxHeight:h,minWidth:h,minHeight:h,backgroundColor:v()},...c,children:[D&&!y&&x.jsx("img",{src:D,alt:r,className:`
703
+ object-cover w-full h-full text-center indent-[10000px] absolute
704
+ z-10
705
+ ${u}
706
+ `,onError:O,...d}),x.jsx("div",{className:`
707
+ flex items-center justify-center leading-none text-center absolute
708
+ `,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:A()})]})};function cw(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=cw(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cw(e))&&(r&&(r+=" "),r+=t);return r}const uw={filled:"bg-blue-500 text-white hover:bg-blue-600 hover:text-white active:bg-blue-700 active:text-white",transparent:"bg-blue-100 text-blue-500 hover:bg-blue-200 hover:text-blue-600 active:bg-blue-300/80 active:text-blue-700",outline:"bg-transparent border-1 border-blue-500 text-blue-500 hover:text-blue-600 hover:border-blue-600 active:text-blue-700 active:border-blue-700",invisible:"text-blue-500 hover:text-blue-600 active:text-blue-700"},fw={filled:"bg-aqua-500 text-white hover:bg-aqua-600 hover:text-white active:bg-aqua-700 active:text-white",transparent:"bg-aqua-100 text-aqua-500 hover:bg-aqua-200/50 hover:text-aqua-600 active:bg-aqua-200/70 active:text-aqua-700",outline:"bg-transparent border-1 border-aqua-500 text-aqua-500 hover:text-aqua-600 hover:border-aqua-600 active:text-aqua-700 active:border-aqua-700",invisible:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700"},dw={filled:"bg-red-500 text-white hover:bg-red-600 hover:text-white active:bg-red-700 active:text-white",transparent:"bg-red-500/20 text-error hover:bg-red-500/30 hover:text-red-600 active:text-red-700 active:bg-red-700/40",outline:"bg-transparent border-1 border-red-500 text-error hover:text-red-600 hover:border-red-600 active:text-red-700 active:border-red-700",invisible:"text-red-500 hover:text-red-600 active:text-red-700"},hw={filled:"bg-gray-500 text-white hover:bg-gray-600 hover:text-white active:bg-gray-700 active:text-white",transparent:"bg-gray-100 text-gray-500 hover:bg-gray-200 hover:text-gray-600 active:text-gray-700 active:bg-gray-300",outline:"bg-transparent border-1 border-gray-500 text-gray-500 hover:text-gray-600 hover:border-gray-600 active:text-gray-700 active:border-gray-700",invisible:"text-gray-500 hover:text-gray-600 active:text-gray-700"},TL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 text-body-s disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",EL={lg:"gap-12 px-24 py-8 text-lg",base:"gap-8 px-20 py-7",md:"gap-8 px-16 py-6",sm:"gap-4 px-12 py-5",xs:"gap-4 px-6 py-3"},CL=(e="filled",t="blue",n="base")=>{const r=tr(TL,EL[n]),i={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(r,i)},PL="transition-colors ease-in-out duration-200 flex items-center justify-center rounded-full w-fit font-600 leading-normal disabled:bg-gray-100 disabled:cursor-not-allowed disabled:text-gray-300",AL={lg:"min-h-[46px] max-h-[46px] min-w-[46px] max-w-[46px]",base:"min-h-[40px] max-h-[40px] min-w-[40px] max-w-[40px]",md:"min-h-[28px] max-h-[28px] min-w-[28px] max-w-[28px]",sm:"min-h-[20px] max-h-[20px] min-w-[16px] max-w-[16px]",xs:"min-h-[12px] max-h-[12px] min-w-[12px] max-w-[12px]"},OL={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},ML=(e="filled",t="blue",n="base",r="none")=>{const i=tr(PL,AL[n],OL[r]),o={blue:uw[e],aqua:fw[e],red:dw[e],gray:hw[e]}[t];return tr(i,o)},_L={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},No=(e="base")=>_L[e],ko=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=ze(),d=n||u;return x.jsxs("button",{type:"button",className:CL(r,d,i)+" "+a,...c,children:[e&&x.jsx(Ie,{icon:e,className:No(i)}),o,t&&x.jsx(Ie,{icon:t,className:No(i)})]})},mw=({className:e="",direction:t="horizontal"})=>t==="horizontal"?x.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):x.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),pw=({open:e,onClose:t,title:n,children:r})=>{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(Kn,{children:e&&x.jsx(x.Fragment,{children:x.jsx(Ze.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants: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:a=>a.stopPropagation(),children:x.jsxs(ys,{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(Ie,{icon:eu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&x.jsx(mw,{className:"bg-gray-100!"})]}),x.jsx("div",{className:"flex flex-col gap-16 md:gap-24 p-16 pt-0 md:p-32 md:pt-4",children:typeof r=="function"?r(t):r})]})})})})})},IL=({active:e,color:t="blue",variant:n="rounded",className:r,size:i=16,...o})=>{const a={blue:"border-blue-500 bg-blue-500",aqua:"border-aqua-500 bg-aqua-500",red:"border-red-500 bg-red-500",gray:"border-gray-500 bg-gray-500"}[t],c={rounded:"rounded-full",square:"rounded-md"}[n],u=d=>({width:`${d}px`,height:`${d}px`,minWidth:`${d}px`,minHeight:`${d}px`});return x.jsx("div",{className:`relative transition-colors ease-in-out duration-150 flex items-center justify-center ${c} border-[1.5px] bg-white ${e?a:"border-gray-400"} ${r}`,style:u(i),...o,children:x.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var nh,gw;function DL(){if(gw)return nh;gw=1;function e(w){this._maxSize=w,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(w){return this._values[w]},e.prototype.set=function(w,A){return this._size>=this._maxSize&&this.clear(),w in this._values||this._size++,this._values[w]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);nh={Cache:e,split:m,normalizePath:h,setter:function(w){var A=h(w);return u.get(w)||u.set(w,function(D,C){for(var L=0,j=A.length,F=D;L<j-1;){var Y=A[L];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return D;F=F[A[L++]]}F[A[L]]=C})},getter:function(w,A){var O=h(w);return d.get(w)||d.set(w,function(C){for(var L=0,j=O.length;L<j;)if(C!=null||!A)C=C[O[L++]];else return;return C})},join:function(w){return w.reduce(function(A,O){return A+(y(O)||n.test(O)?"["+O+"]":(A?".":"")+O)},"")},forEach:function(w,A,O){g(Array.isArray(w)?w:m(w),A,O)}};function h(w){return c.get(w)||c.set(w,m(w).map(function(A){return A.replace(o,"$2")}))}function m(w){return w.match(t)||[""]}function g(w,A,O){var D=w.length,C,L,j,F;for(L=0;L<D;L++)C=w[L],C&&(E(C)&&(C='"'+C+'"'),F=y(C),j=!F&&/^\d+$/.test(C),A.call(O,C,F,j,L,w))}function y(w){return typeof w=="string"&&w&&["'",'"'].indexOf(w.charAt(0))!==-1}function S(w){return w.match(r)&&!w.match(n)}function v(w){return i.test(w)}function E(w){return!y(w)&&(S(w)||v(w))}return nh}var fi=DL(),rh,yw;function $L(){if(yw)return rh;yw=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=h=>h.match(e)||[],n=h=>h[0].toUpperCase()+h.slice(1),r=(h,m)=>t(h).join(m).toLowerCase(),i=h=>t(h).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return rh={words:t,upperFirst:n,camelCase:i,pascalCase:h=>n(i(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},rh}var ih=$L(),dl={exports:{}},vw;function RL(){if(vw)return dl.exports;vw=1,dl.exports=function(i){return e(t(i),i)},dl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},d=a,h=n(o),m=r(i);for(o.forEach(function(y){if(!m.has(y[0])||!m.has(y[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||g(i[d],d,new Set);return c;function g(y,S,v){if(v.has(y)){var E;try{E=", node was:"+JSON.stringify(y)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(y))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(y));if(!u[S]){u[S]=!0;var w=h.get(y)||new Set;if(w=Array.from(w),S=w.length){v.add(y);do{var A=w[--S];g(A,m.get(A),v)}while(S);v.delete(y)}c[--a]=y}}}function t(i){for(var o=new Set,a=0,c=i.length;a<c;a++){var u=i[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(i){for(var o=new Map,a=0,c=i.length;a<c;a++){var u=i[a];o.has(u[0])||o.set(u[0],new Set),o.has(u[1])||o.set(u[1],new Set),o.get(u[0]).add(u[1])}return o}function r(i){for(var o=new Map,a=0,c=i.length;a<c;a++)o.set(i[a],a);return o}return dl.exports}var LL=RL();const NL=_m(LL),kL=Object.prototype.toString,FL=Error.prototype.toString,jL=RegExp.prototype.toString,VL=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",BL=/^Symbol\((.*)\)(.*)$/;function UL(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function bw(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return UL(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return VL.call(e).replace(BL,"Symbol($1)");const r=kL.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+FL.call(e)+"]":r==="RegExp"?jL.call(e):null}function $r(e,t){let n=bw(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=bw(this[r],t);return o!==null?o:i},2)}function xw(e){return e==null?[]:[].concat(e)}let ww,Sw,Tw,WL=/\$\{\s*(\w+)\s*\}/g;ww=Symbol.toStringTag;class Ew{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[ww]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],xw(t).forEach(o=>{if(Ft.isError(o)){this.errors.push(...o.errors);const a=o.inner.length?o.inner:[o];this.inner.push(...a)}else this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Sw=Symbol.hasInstance,Tw=Symbol.toStringTag;class Ft extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(WL,(i,o)=>$r(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,o){const a=new Ew(t,n,r,i);if(o)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Tw]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ft)}static[Sw](t){return Ew[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let jn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${$r(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${$r(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${$r(n,!0)}\``+i}},jt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},zL={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},sh={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},GL={isValue:"${path} field must be ${value}"},hl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:jn,string:jt,number:zL,date:sh,object:hl,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:GL,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${$r(n,!0)}\``}return Ft.formatError(jn.notType,e)}}});const oh=e=>e&&e.__isYupSchema__;class ml{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new ml(t,(c,u)=>{var d;let h=a(...c)?i:o;return(d=h==null?void 0:h(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!oh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const pl={context:"$",value:"."};class di{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===pl.context,this.isValue=this.key[0]===pl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?pl.context:this.isValue?pl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&fi.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}di.prototype.__isYupRef=!0;const hi=e=>e==null;function vs(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:g,skipAbsent:y}=e;let{parent:S,context:v,abortEarly:E=a.spec.abortEarly,disableStackTrace:w=a.spec.disableStackTrace}=i;function A(te){return di.isRef(te)?te.getValue(n,S,v):te}function O(te={}){const me=Object.assign({value:n,originalValue:o,label:a.spec.label,path:te.path||r,spec:a.spec,disableStackTrace:te.disableStackTrace||w},m,te.params);for(const le of Object.keys(me))me[le]=A(me[le]);const de=new Ft(Ft.formatError(te.message||g,me),n,me.path,te.type||d,me.disableStackTrace);return de.params=me,de}const D=E?c:u;let C={path:r,parent:S,type:d,from:i.from,createError:O,resolve:A,options:i,originalValue:o,schema:a};const L=te=>{Ft.isError(te)?D(te):te?u(null):D(O())},j=te=>{Ft.isError(te)?D(te):c(te)};if(y&&hi(n))return L(!0);let Y;try{var ee;if(Y=h.call(C,n,C),typeof((ee=Y)==null?void 0:ee.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${C.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(L,j)}}catch(te){j(te);return}L(Y)}return t.OPTIONS=e,t}function YL(e,t,n,r=n){let i,o,a;return t?(fi.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",g=d?parseInt(h,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[g],e=m?e.spec.types[g]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class gl extends Set{describe(){const t=[];for(const n of this.values())t.push(di.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new gl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function bs(e,t=new Map){if(oh(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=bs(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,bs(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(bs(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=bs(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Vn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new gl,this._blacklist=new gl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(jn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=bs(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,o;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&hi(o))return o;let a=$r(t),c=$r(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
709
+
710
+ attempted value: ${a}
711
+ `+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:d},r,h=>{if(h.length)return i(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=v=>{i||(i=!0,n(v,a))},m=v=>{i||(i=!0,r(v,a))},g=o.length,y=[];if(!g)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let v=0;v<o.length;v++){const E=o[v];E(S,h,function(A){A&&(Array.isArray(A)?y.push(...A):y.push(A)),--g<=0&&m(y)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof c=="number";let d=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,g,y)=>this.resolve(h)._validate(d,h,g,y)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,c)=>i._validate(t,n,(u,d)=>{Ft.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new Ft(u,d,void 0,void 0,o)):a(d)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(c,u)=>{throw Ft.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new Ft(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Ft.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Ft.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):bs(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=vs({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=vs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=jn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=jn.notNull){return this.nullability(!1,t)}required(t=jn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=jn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=vs(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=xw(t).map(o=>new di(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new ml(i,n):ml.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=vs({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=jn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=vs({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=jn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=vs({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,h)=>h.findIndex(m=>m.name===u.name)===d)}}}Vn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Vn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=YL(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Vn.prototype[e]=Vn.prototype.oneOf;for(const e of["not","nope"])Vn.prototype[e]=Vn.prototype.notOneOf;const HL=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function qL(e){const t=ah(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ah(e){var t,n;const r=HL.exec(e);return r?{year:nr(r[1]),month:nr(r[2],1)-1,day:nr(r[3],1),hour:nr(r[4]),minute:nr(r[5]),second:nr(r[6]),millisecond:r[7]?nr(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nr(r[10]),minuteOffset:nr(r[11])}:null}function nr(e,t=0){return Number(e)||t}let KL=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,XL=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ZL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,JL="^\\d{4}-\\d{2}-\\d{2}",QL="\\d{2}:\\d{2}:\\d{2}",eN="(([+-]\\d{2}(:?\\d{2})?)|Z)",tN=new RegExp(`${JL}T${QL}(\\.\\d+)?${eN}$`),nN=e=>hi(e)||e===e.trim(),rN={}.toString();function Rr(){return new Cw}class Cw extends Vn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===rN?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||jn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||jt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=jt.email){return this.matches(KL,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(XL,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(ZL,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(tN,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ah(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ah(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:nN})}lowercase(t=jt.lowercase){return this.transform(n=>hi(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>hi(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>hi(n)||n===n.toUpperCase()})}}Rr.prototype=Cw.prototype;let iN=new Date(""),sN=e=>Object.prototype.toString.call(e)==="[object Date]";class lh extends Vn{constructor(){super({type:"date",check(t){return sN(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=qL(t),isNaN(t)?lh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(di.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=sh.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=sh.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}lh.INVALID_DATE=iN;function oN(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=fi.split(a)[0];r.add(u),i.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),di.isRef(c)&&c.isSibling?o(c.path,a):oh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return NL.array(Array.from(r),n).reverse()}function Pw(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function Aw(e){return(t,n)=>Pw(e,t)-Pw(e,n)}const aN=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function yl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=yl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=yl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(yl)}):"optional"in e?e.optional():e}const lN=(e,t)=>{const n=[...fi.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=fi.getter(fi.join(n),!0)(e);return!!(i&&r in i)};let Ow=e=>Object.prototype.toString.call(e)==="[object Object]";function Mw(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const cN=Aw([]);function ch(e){return new _w(e)}class _w extends Vn{constructor(t){super({type:"object",check(n){return Ow(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=cN,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(i).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let g=o[m],y=m in i;if(g){let S,v=i[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:v,context:n.context,parent:u});let E=g instanceof Vn?g.spec:void 0,w=E==null?void 0:E.strict;if(E!=null&&E.strip){h=h||m in i;continue}S=!n.__validating||!w?g.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else y&&!a&&(u[m]=i[m]);(y!==m in u||u[m]!==i[m])&&(h=!0)}return h?u:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!c||!Ow(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let g=this.fields[m];!g||di.isRef(g)||h.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:d,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const o=this.fields[r];let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=o&&"getDefault"in o?o.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=oN(t,n),r._sortErrors=Aw(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return yl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=fi.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return lN(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(aN)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||hl.exact,test(n){if(n==null)return!0;const r=Mw(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=hl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=Mw(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=hl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ih.camelCase)}snakeCase(){return this.transformKeys(ih.snakeCase)}constantCase(){return this.transformKeys(t=>ih.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[o,a]of Object.entries(n.fields)){var i;let c=t;(i=c)!=null&&i.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}ch.prototype=_w.prototype,ch().shape({labelES:Rr().required(),label:Rr().required(),code:Rr().required(),codeISO2:Rr().required(),phone:Rr().required()});const Iw=[{labelES:"Afganistán",label:"Afghanistan",codeISO2:"AF",code:"AFG",phone:"93"},{labelES:"Albania",label:"Albania",codeISO2:"AL",code:"ALB",phone:"355"},{labelES:"Alemania",label:"Germany",codeISO2:"DE",code:"DEU",phone:"49"},{labelES:"Andorra",label:"Andorra",codeISO2:"AD",code:"AND",phone:"376"},{labelES:"Angola",label:"Angola",codeISO2:"AO",code:"AGO",phone:"244"},{labelES:"Anguila",label:"Anguilla",codeISO2:"AI",code:"AIA",phone:"1 264"},{labelES:"Antártida",label:"Antarctica",codeISO2:"AQ",code:"ATA",phone:"672"},{labelES:"Antigua y Barbuda",label:"Antigua and Barbuda",codeISO2:"AG",code:"ATG",phone:"1 268"},{labelES:"Arabia Saudita",label:"Saudi Arabia",codeISO2:"SA",code:"SAU",phone:"966"},{labelES:"Argelia",label:"Algeria",codeISO2:"DZ",code:"DZA",phone:"213"},{labelES:"Argentina",label:"Argentina",codeISO2:"AR",code:"ARG",phone:"54"},{labelES:"Armenia",label:"Armenia",codeISO2:"AM",code:"ARM",phone:"374"},{labelES:"Aruba",label:"Aruba",codeISO2:"AW",code:"ABW",phone:"297"},{labelES:"Australia",label:"Australia",codeISO2:"AU",code:"AUS",phone:"61"},{labelES:"Austria",label:"Austria",codeISO2:"AT",code:"AUT",phone:"43"},{labelES:"Azerbaiyán",label:"Azerbaijan",codeISO2:"AZ",code:"AZE",phone:"994"},{labelES:"Bélgica",label:"Belgium",codeISO2:"BE",code:"BEL",phone:"32"},{labelES:"Bahamas",label:"Bahamas",codeISO2:"BS",code:"BHS",phone:"1 242"},{labelES:"Bahrein",label:"Bahrain",codeISO2:"BH",code:"BHR",phone:"973"},{labelES:"Bangladesh",label:"Bangladesh",codeISO2:"BD",code:"BGD",phone:"880"},{labelES:"Barbados",label:"Barbados",codeISO2:"BB",code:"BRB",phone:"1 246"},{labelES:"Belice",label:"Belize",codeISO2:"BZ",code:"BLZ",phone:"501"},{labelES:"Benín",label:"Benin",codeISO2:"BJ",code:"BEN",phone:"229"},{labelES:"Bhután",label:"Bhutan",codeISO2:"BT",code:"BTN",phone:"975"},{labelES:"Bielorrusia",label:"Belarus",codeISO2:"BY",code:"BLR",phone:"375"},{labelES:"Birmania",label:"Myanmar",codeISO2:"MM",code:"MMR",phone:"95"},{labelES:"Bolivia",label:"Bolivia",codeISO2:"BO",code:"BOL",phone:"591"},{labelES:"Bosnia y Herzegovina",label:"Bosnia and Herzegovina",codeISO2:"BA",code:"BIH",phone:"387"},{labelES:"Botsuana",label:"Botswana",codeISO2:"BW",code:"BWA",phone:"267"},{labelES:"Brasil",label:"Brazil",codeISO2:"BR",code:"BRA",phone:"55"},{labelES:"Brunéi",label:"Brunei",codeISO2:"BN",code:"BRN",phone:"673"},{labelES:"Bulgaria",label:"Bulgaria",codeISO2:"BG",code:"BGR",phone:"359"},{labelES:"Burkina Faso",label:"Burkina Faso",codeISO2:"BF",code:"BFA",phone:"226"},{labelES:"Burundi",label:"Burundi",codeISO2:"BI",code:"BDI",phone:"257"},{labelES:"Cabo Verde",label:"Cape Verde",codeISO2:"CV",code:"CPV",phone:"238"},{labelES:"Camboya",label:"Cambodia",codeISO2:"KH",code:"KHM",phone:"855"},{labelES:"Camerún",label:"Cameroon",codeISO2:"CM",code:"CMR",phone:"237"},{labelES:"Canadá",label:"Canada",codeISO2:"CA",code:"CAN",phone:"1"},{labelES:"Chad",label:"Chad",codeISO2:"TD",code:"TCD",phone:"235"},{labelES:"Chile",label:"Chile",codeISO2:"CL",code:"CHL",phone:"56"},{labelES:"China",label:"China",codeISO2:"CN",code:"CHN",phone:"86"},{labelES:"Chipre",label:"Cyprus",codeISO2:"CY",code:"CYP",phone:"357"},{labelES:"Ciudad del Vaticano",label:"Vatican City State",codeISO2:"VA",code:"VAT",phone:"39"},{labelES:"Colombia",label:"Colombia",codeISO2:"CO",code:"COL",phone:"57"},{labelES:"Comoras",label:"Comoros",codeISO2:"KM",code:"COM",phone:"269"},{labelES:"República del Congo",label:"Republic of the Congo",codeISO2:"CG",code:"COG",phone:"242"},{labelES:"República Democrática del Congo",label:"Democratic Republic of the Congo",codeISO2:"CD",code:"COD",phone:"243"},{labelES:"Corea del Norte",label:"North Korea",codeISO2:"KP",code:"PRK",phone:"850"},{labelES:"Corea del Sur",label:"South Korea",codeISO2:"KR",code:"KOR",phone:"82"},{labelES:"Costa de Marfil",label:"Ivory Coast",codeISO2:"CI",code:"CIV",phone:"225"},{labelES:"Costa Rica",label:"Costa Rica",codeISO2:"CR",code:"CRI",phone:"506"},{labelES:"Croacia",label:"Croatia",codeISO2:"HR",code:"HRV",phone:"385"},{labelES:"Cuba",label:"Cuba",codeISO2:"CU",code:"CUB",phone:"53"},{labelES:"Curazao",label:"Curaçao",codeISO2:"CW",code:"CWU",phone:"5999"},{labelES:"Dinamarca",label:"Denmark",codeISO2:"DK",code:"DNK",phone:"45"},{labelES:"Dominica",label:"Dominica",codeISO2:"DM",code:"DMA",phone:"1 767"},{labelES:"Ecuador",label:"Ecuador",codeISO2:"EC",code:"ECU",phone:"593"},{labelES:"Egipto",label:"Egypt",codeISO2:"EG",code:"EGY",phone:"20"},{labelES:"El Salvador",label:"El Salvador",codeISO2:"SV",code:"SLV",phone:"503"},{labelES:"Emiratos Árabes Unidos",label:"United Arab Emirates",codeISO2:"AE",code:"ARE",phone:"971"},{labelES:"Eritrea",label:"Eritrea",codeISO2:"ER",code:"ERI",phone:"291"},{labelES:"Eslovaquia",label:"Slovakia",codeISO2:"SK",code:"SVK",phone:"421"},{labelES:"Eslovenia",label:"Slovenia",codeISO2:"SI",code:"SVN",phone:"386"},{labelES:"España",label:"Spain",codeISO2:"ES",code:"ESP",phone:"34"},{labelES:"Estados Unidos de América",label:"United States of America",codeISO2:"US",code:"USA",phone:"1"},{labelES:"Estonia",label:"Estonia",codeISO2:"EE",code:"EST",phone:"372"},{labelES:"Etiopía",label:"Ethiopia",codeISO2:"ET",code:"ETH",phone:"251"},{labelES:"Filipinas",label:"Philippines",codeISO2:"PH",code:"PHL",phone:"63"},{labelES:"Finlandia",label:"Finland",codeISO2:"FI",code:"FIN",phone:"358"},{labelES:"Fiyi",label:"Fiji",codeISO2:"FJ",code:"FJI",phone:"679"},{labelES:"Francia",label:"France",codeISO2:"FR",code:"FRA",phone:"33"},{labelES:"Gabón",label:"Gabon",codeISO2:"GA",code:"GAB",phone:"241"},{labelES:"Gambia",label:"Gambia",codeISO2:"GM",code:"GMB",phone:"220"},{labelES:"Georgia",label:"Georgia",codeISO2:"GE",code:"GEO",phone:"995"},{labelES:"Ghana",label:"Ghana",codeISO2:"GH",code:"GHA",phone:"233"},{labelES:"Gibraltar",label:"Gibraltar",codeISO2:"GI",code:"GIB",phone:"350"},{labelES:"Granada",label:"Grenada",codeISO2:"GD",code:"GRD",phone:"1 473"},{labelES:"Grecia",label:"Greece",codeISO2:"GR",code:"GRC",phone:"30"},{labelES:"Groenlandia",label:"Greenland",codeISO2:"GL",code:"GRL",phone:"299"},{labelES:"Guadalupe",label:"Guadeloupe",codeISO2:"GP",code:"GLP",phone:"590"},{labelES:"Guam",label:"Guam",codeISO2:"GU",code:"GUM",phone:"1 671"},{labelES:"Guatemala",label:"Guatemala",codeISO2:"GT",code:"GTM",phone:"502"},{labelES:"Guayana Francesa",label:"French Guiana",codeISO2:"GF",code:"GUF",phone:"594"},{labelES:"Guernsey",label:"Guernsey",codeISO2:"GG",code:"GGY",phone:"44"},{labelES:"Guinea",label:"Guinea",codeISO2:"GN",code:"GIN",phone:"224"},{labelES:"Guinea Ecuatorial",label:"Equatorial Guinea",codeISO2:"GQ",code:"GNQ",phone:"240"},{labelES:"Guinea-Bissau",label:"Guinea-Bissau",codeISO2:"GW",code:"GNB",phone:"245"},{labelES:"Guyana",label:"Guyana",codeISO2:"GY",code:"GUY",phone:"592"},{labelES:"Haití",label:"Haiti",codeISO2:"HT",code:"HTI",phone:"509"},{labelES:"Honduras",label:"Honduras",codeISO2:"HN",code:"HND",phone:"504"},{labelES:"Hong kong",label:"Hong Kong",codeISO2:"HK",code:"HKG",phone:"852"},{labelES:"Hungría",label:"Hungary",codeISO2:"HU",code:"HUN",phone:"36"},{labelES:"India",label:"India",codeISO2:"IN",code:"IND",phone:"91"},{labelES:"Indonesia",label:"Indonesia",codeISO2:"ID",code:"IDN",phone:"62"},{labelES:"Irán",label:"Iran",codeISO2:"IR",code:"IRN",phone:"98"},{labelES:"Irak",label:"Iraq",codeISO2:"IQ",code:"IRQ",phone:"964"},{labelES:"Irlanda",label:"Ireland",codeISO2:"IE",code:"IRL",phone:"353"},{labelES:"Isla Bouvet",label:"Bouvet Island",codeISO2:"BV",code:"BVT",phone:""},{labelES:"Isla de Man",label:"Isle of Man",codeISO2:"IM",code:"IMN",phone:"44"},{labelES:"Isla de Navidad",label:"Christmas Island",codeISO2:"CX",code:"CXR",phone:"61"},{labelES:"Isla Norfolk",label:"Norfolk Island",codeISO2:"NF",code:"NFK",phone:"672"},{labelES:"Islandia",label:"Iceland",codeISO2:"IS",code:"ISL",phone:"354"},{labelES:"Islas Bermudas",label:"Bermuda Islands",codeISO2:"BM",code:"BMU",phone:"1 441"},{labelES:"Islas Caimán",label:"Cayman Islands",codeISO2:"KY",code:"CYM",phone:"1 345"},{labelES:"Islas Cocos (Keeling)",label:"Cocos (Keeling) Islands",codeISO2:"CC",code:"CCK",phone:"61"},{labelES:"Islas Cook",label:"Cook Islands",codeISO2:"CK",code:"COK",phone:"682"},{labelES:"Islas de Åland",label:"Åland Islands",codeISO2:"AX",code:"ALA",phone:"358"},{labelES:"Islas Feroe",label:"Faroe Islands",codeISO2:"FO",code:"FRO",phone:"298"},{labelES:"Islas Georgias del Sur y Sandwich del Sur",label:"South Georgia and the South Sandwich Islands",codeISO2:"GS",code:"SGS",phone:"500"},{labelES:"Islas Heard y McDonald",label:"Heard Island and McDonald Islands",codeISO2:"HM",code:"HMD",phone:""},{labelES:"Islas Maldivas",label:"Maldives",codeISO2:"MV",code:"MDV",phone:"960"},{labelES:"Islas Malvinas",label:"Falkland Islands (Malvinas)",codeISO2:"FK",code:"FLK",phone:"500"},{labelES:"Islas Marianas del Norte",label:"Northern Mariana Islands",codeISO2:"MP",code:"MNP",phone:"1 670"},{labelES:"Islas Marshall",label:"Marshall Islands",codeISO2:"MH",code:"MHL",phone:"692"},{labelES:"Islas Pitcairn",label:"Pitcairn Islands",codeISO2:"PN",code:"PCN",phone:"870"},{labelES:"Islas Salomón",label:"Solomon Islands",codeISO2:"SB",code:"SLB",phone:"677"},{labelES:"Islas Turcas y Caicos",label:"Turks and Caicos Islands",codeISO2:"TC",code:"TCA",phone:"1 649"},{labelES:"Islas Ultramarinas Menores de Estados Unidos",label:"United States Minor Outlying Islands",codeISO2:"UM",code:"UMI",phone:"246"},{labelES:"Islas Vírgenes Británicas",label:"Virgin Islands",codeISO2:"VG",code:"VGB",phone:"1 284"},{labelES:"Islas Vírgenes de los Estados Unidos",label:"United States Virgin Islands",codeISO2:"VI",code:"VIR",phone:"1 340"},{labelES:"Israel",label:"Israel",codeISO2:"IL",code:"ISR",phone:"972"},{labelES:"Italia",label:"Italy",codeISO2:"IT",code:"ITA",phone:"39"},{labelES:"Jamaica",label:"Jamaica",codeISO2:"JM",code:"JAM",phone:"1 876"},{labelES:"Japón",label:"Japan",codeISO2:"JP",code:"JPN",phone:"81"},{labelES:"Jersey",label:"Jersey",codeISO2:"JE",code:"JEY",phone:"44"},{labelES:"Jordania",label:"Jordan",codeISO2:"JO",code:"JOR",phone:"962"},{labelES:"Kazajistán",label:"Kazakhstan",codeISO2:"KZ",code:"KAZ",phone:"7"},{labelES:"Kenia",label:"Kenya",codeISO2:"KE",code:"KEN",phone:"254"},{labelES:"Kirguistán",label:"Kyrgyzstan",codeISO2:"KG",code:"KGZ",phone:"996"},{labelES:"Kiribati",label:"Kiribati",codeISO2:"KI",code:"KIR",phone:"686"},{labelES:"Kuwait",label:"Kuwait",codeISO2:"KW",code:"KWT",phone:"965"},{labelES:"Líbano",label:"Lebanon",codeISO2:"LB",code:"LBN",phone:"961"},{labelES:"Laos",label:"Laos",codeISO2:"LA",code:"LAO",phone:"856"},{labelES:"Lesoto",label:"Lesotho",codeISO2:"LS",code:"LSO",phone:"266"},{labelES:"Letonia",label:"Latvia",codeISO2:"LV",code:"LVA",phone:"371"},{labelES:"Liberia",label:"Liberia",codeISO2:"LR",code:"LBR",phone:"231"},{labelES:"Libia",label:"Libya",codeISO2:"LY",code:"LBY",phone:"218"},{labelES:"Liechtenstein",label:"Liechtenstein",codeISO2:"LI",code:"LIE",phone:"423"},{labelES:"Lituania",label:"Lithuania",codeISO2:"LT",code:"LTU",phone:"370"},{labelES:"Luxemburgo",label:"Luxembourg",codeISO2:"LU",code:"LUX",phone:"352"},{labelES:"México",label:"Mexico",codeISO2:"MX",code:"MEX",phone:"52"},{labelES:"Mónaco",label:"Monaco",codeISO2:"MC",code:"MCO",phone:"377"},{labelES:"Macao",label:"Macao",codeISO2:"MO",code:"MAC",phone:"853"},{labelES:"Macedônia",label:"Macedonia",codeISO2:"MK",code:"MKD",phone:"389"},{labelES:"Madagascar",label:"Madagascar",codeISO2:"MG",code:"MDG",phone:"261"},{labelES:"Malasia",label:"Malaysia",codeISO2:"MY",code:"MYS",phone:"60"},{labelES:"Malawi",label:"Malawi",codeISO2:"MW",code:"MWI",phone:"265"},{labelES:"Mali",label:"Mali",codeISO2:"ML",code:"MLI",phone:"223"},{labelES:"Malta",label:"Malta",codeISO2:"MT",code:"MLT",phone:"356"},{labelES:"Marruecos",label:"Morocco",codeISO2:"MA",code:"MAR",phone:"212"},{labelES:"Martinica",label:"Martinique",codeISO2:"MQ",code:"MTQ",phone:"596"},{labelES:"Mauricio",label:"Mauritius",codeISO2:"MU",code:"MUS",phone:"230"},{labelES:"Mauritania",label:"Mauritania",codeISO2:"MR",code:"MRT",phone:"222"},{labelES:"Mayotte",label:"Mayotte",codeISO2:"YT",code:"MYT",phone:"262"},{labelES:"Micronesia",label:"Estados Federados de",codeISO2:"FM",code:"FSM",phone:"691"},{labelES:"Moldavia",label:"Moldova",codeISO2:"MD",code:"MDA",phone:"373"},{labelES:"Mongolia",label:"Mongolia",codeISO2:"MN",code:"MNG",phone:"976"},{labelES:"Montenegro",label:"Montenegro",codeISO2:"ME",code:"MNE",phone:"382"},{labelES:"Montserrat",label:"Montserrat",codeISO2:"MS",code:"MSR",phone:"1 664"},{labelES:"Mozambique",label:"Mozambique",codeISO2:"MZ",code:"MOZ",phone:"258"},{labelES:"Namibia",label:"Namibia",codeISO2:"NA",code:"NAM",phone:"264"},{labelES:"Nauru",label:"Nauru",codeISO2:"NR",code:"NRU",phone:"674"},{labelES:"Nepal",label:"Nepal",codeISO2:"NP",code:"NPL",phone:"977"},{labelES:"Nicaragua",label:"Nicaragua",codeISO2:"NI",code:"NIC",phone:"505"},{labelES:"Niger",label:"Niger",codeISO2:"NE",code:"NER",phone:"227"},{labelES:"Nigeria",label:"Nigeria",codeISO2:"NG",code:"NGA",phone:"234"},{labelES:"Niue",label:"Niue",codeISO2:"NU",code:"NIU",phone:"683"},{labelES:"Noruega",label:"Norway",codeISO2:"NO",code:"NOR",phone:"47"},{labelES:"Nueva Caledonia",label:"New Caledonia",codeISO2:"NC",code:"NCL",phone:"687"},{labelES:"Nueva Zelanda",label:"New Zealand",codeISO2:"NZ",code:"NZL",phone:"64"},{labelES:"Omán",label:"Oman",codeISO2:"OM",code:"OMN",phone:"968"},{labelES:"Países Bajos",label:"Netherlands",codeISO2:"NL",code:"NLD",phone:"31"},{labelES:"Pakistán",label:"Pakistan",codeISO2:"PK",code:"PAK",phone:"92"},{labelES:"Palau",label:"Palau",codeISO2:"PW",code:"PLW",phone:"680"},{labelES:"Palestina",label:"Palestine",codeISO2:"PS",code:"PSE",phone:"970"},{labelES:"Panamá",label:"Panama",codeISO2:"PA",code:"PAN",phone:"507"},{labelES:"Papúa Nueva Guinea",label:"Papua New Guinea",codeISO2:"PG",code:"PNG",phone:"675"},{labelES:"Paraguay",label:"Paraguay",codeISO2:"PY",code:"PRY",phone:"595"},{labelES:"Perú",label:"Peru",codeISO2:"PE",code:"PER",phone:"51"},{labelES:"Polinesia Francesa",label:"French Polynesia",codeISO2:"PF",code:"PYF",phone:"689"},{labelES:"Polonia",label:"Poland",codeISO2:"PL",code:"POL",phone:"48"},{labelES:"Portugal",label:"Portugal",codeISO2:"PT",code:"PRT",phone:"351"},{labelES:"Puerto Rico",label:"Puerto Rico",codeISO2:"PR",code:"PRI",phone:"1"},{labelES:"Qatar",label:"Qatar",codeISO2:"QA",code:"QAT",phone:"974"},{labelES:"Reino Unido",label:"United Kingdom",codeISO2:"GB",code:"GBR",phone:"44"},{labelES:"República Centroafricana",label:"Central African Republic",codeISO2:"CF",code:"CAF",phone:"236"},{labelES:"República Checa",label:"Czech Republic",codeISO2:"CZ",code:"CZE",phone:"420"},{labelES:"República Dominicana",label:"Dominican Republic",codeISO2:"DO",code:"DOM",phone:"1 809"},{labelES:"República de Sudán del Sur",label:"South Sudan",codeISO2:"SS",code:"SSD",phone:"211"},{labelES:"Reunión",label:"Réunion",codeISO2:"RE",code:"REU",phone:"262"},{labelES:"Ruanda",label:"Rwanda",codeISO2:"RW",code:"RWA",phone:"250"},{labelES:"Rumanía",label:"Romania",codeISO2:"RO",code:"ROU",phone:"40"},{labelES:"Rusia",label:"Russia",codeISO2:"RU",code:"RUS",phone:"7"},{labelES:"Sahara Occidental",label:"Western Sahara",codeISO2:"EH",code:"ESH",phone:"212"},{labelES:"Samoa",label:"Samoa",codeISO2:"WS",code:"WSM",phone:"685"},{labelES:"Samoa Americana",label:"American Samoa",codeISO2:"AS",code:"ASM",phone:"1 684"},{labelES:"San Bartolomé",label:"Saint Barthélemy",codeISO2:"BL",code:"BLM",phone:"590"},{labelES:"San Cristóbal y Nieves",label:"Saint Kitts and Nevis",codeISO2:"KN",code:"KNA",phone:"1 869"},{labelES:"San Marino",label:"San Marino",codeISO2:"SM",code:"SMR",phone:"378"},{labelES:"San Martín (Francia)",label:"Saint Martin (French part)",codeISO2:"MF",code:"MAF",phone:"1 599"},{labelES:"San Pedro y Miquelón",label:"Saint Pierre and Miquelon",codeISO2:"PM",code:"SPM",phone:"508"},{labelES:"San Vicente y las Granadinas",label:"Saint Vincent and the Grenadines",codeISO2:"VC",code:"VCT",phone:"1 784"},{labelES:"Santa Elena",label:"Ascensión y Tristán de Acuña",codeISO2:"SH",code:"SHN",phone:"290"},{labelES:"Santa Lucía",label:"Saint Lucia",codeISO2:"LC",code:"LCA",phone:"1 758"},{labelES:"Santo Tomé y Príncipe",label:"Sao Tome and Principe",codeISO2:"ST",code:"STP",phone:"239"},{labelES:"Senegal",label:"Senegal",codeISO2:"SN",code:"SEN",phone:"221"},{labelES:"Serbia",label:"Serbia",codeISO2:"RS",code:"SRB",phone:"381"},{labelES:"Seychelles",label:"Seychelles",codeISO2:"SC",code:"SYC",phone:"248"},{labelES:"Sierra Leona",label:"Sierra Leone",codeISO2:"SL",code:"SLE",phone:"232"},{labelES:"Singapur",label:"Singapore",codeISO2:"SG",code:"SGP",phone:"65"},{labelES:"Sint Maarten",label:"Sint Maarten",codeISO2:"SX",code:"SMX",phone:"1 721"},{labelES:"Siria",label:"Syria",codeISO2:"SY",code:"SYR",phone:"963"},{labelES:"Somalia",label:"Somalia",codeISO2:"SO",code:"SOM",phone:"252"},{labelES:"Sri lanka",label:"Sri Lanka",codeISO2:"LK",code:"LKA",phone:"94"},{labelES:"Sudáfrica",label:"South Africa",codeISO2:"ZA",code:"ZAF",phone:"27"},{labelES:"Sudán",label:"Sudan",codeISO2:"SD",code:"SDN",phone:"249"},{labelES:"Suecia",label:"Sweden",codeISO2:"SE",code:"SWE",phone:"46"},{labelES:"Suiza",label:"Switzerland",codeISO2:"CH",code:"CHE",phone:"41"},{labelES:"Surinám",label:"Suriname",codeISO2:"SR",code:"SUR",phone:"597"},{labelES:"Svalbard y Jan Mayen",label:"Svalbard and Jan Mayen",codeISO2:"SJ",code:"SJM",phone:"47"},{labelES:"Swazilandia",label:"Swaziland",codeISO2:"SZ",code:"SWZ",phone:"268"},{labelES:"Tayikistán",label:"Tajikistan",codeISO2:"TJ",code:"TJK",phone:"992"},{labelES:"Tailandia",label:"Thailand",codeISO2:"TH",code:"THA",phone:"66"},{labelES:"Taiwán",label:"Taiwan",codeISO2:"TW",code:"TWN",phone:"886"},{labelES:"Tanzania",label:"Tanzania",codeISO2:"TZ",code:"TZA",phone:"255"},{labelES:"Territorio Británico del Océano Índico",label:"British Indian Ocean Territory",codeISO2:"IO",code:"IOT",phone:"246"},{labelES:"Territorios Australes y Antárticas Franceses",label:"French Southern Territories",codeISO2:"TF",code:"ATF",phone:""},{labelES:"Timor Oriental",label:"East Timor",codeISO2:"TL",code:"TLS",phone:"670"},{labelES:"Togo",label:"Togo",codeISO2:"TG",code:"TGO",phone:"228"},{labelES:"Tokelau",label:"Tokelau",codeISO2:"TK",code:"TKL",phone:"690"},{labelES:"Tonga",label:"Tonga",codeISO2:"TO",code:"TON",phone:"676"},{labelES:"Trinidad y Tobago",label:"Trinidad and Tobago",codeISO2:"TT",code:"TTO",phone:"1 868"},{labelES:"Tunez",label:"Tunisia",codeISO2:"TN",code:"TUN",phone:"216"},{labelES:"Turkmenistán",label:"Turkmenistan",codeISO2:"TM",code:"TKM",phone:"993"},{labelES:"Turquía",label:"Turkey",codeISO2:"TR",code:"TUR",phone:"90"},{labelES:"Tuvalu",label:"Tuvalu",codeISO2:"TV",code:"TUV",phone:"688"},{labelES:"Ucrania",label:"Ukraine",codeISO2:"UA",code:"UKR",phone:"380"},{labelES:"Uganda",label:"Uganda",codeISO2:"UG",code:"UGA",phone:"256"},{labelES:"Uruguay",label:"Uruguay",codeISO2:"UY",code:"URY",phone:"598"},{labelES:"Uzbekistán",label:"Uzbekistan",codeISO2:"UZ",code:"UZB",phone:"998"},{labelES:"Vanuatu",label:"Vanuatu",codeISO2:"VU",code:"VUT",phone:"678"},{labelES:"Venezuela",label:"Venezuela",codeISO2:"VE",code:"VEN",phone:"58"},{labelES:"Vietnam",label:"Vietnam",codeISO2:"VN",code:"VNM",phone:"84"},{labelES:"Wallis y Futuna",label:"Wallis and Futuna",codeISO2:"WF",code:"WLF",phone:"681"},{labelES:"Yemen",label:"Yemen",codeISO2:"YE",code:"YEM",phone:"967"},{labelES:"Yibuti",label:"Djibouti",codeISO2:"DJ",code:"DJI",phone:"253"},{labelES:"Zambia",label:"Zambia",codeISO2:"ZM",code:"ZMB",phone:"260"},{labelES:"Zimbabue",label:"Zimbabwe",codeISO2:"ZW",code:"ZWE",phone:"263"}],uN=({countries:e=Iw,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ue,ne;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,g]=I.useState(!1),[y,S]=I.useState(""),[v,E]=I.useState(d.value||null),w=I.useRef(null),A=I.useRef(null),O=I.useRef(null),{x:D,y:C,strategy:L,refs:j,context:F,placement:Y,middlewareData:ee}=hs({open:m,onOpenChange:g,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:ye,elements:Ne}){Object.assign(Ne.floating.style,{maxHeight:`${Math.min(ye-10,300)}px`})},padding:8}),$o({element:A})],placement:"bottom-start",whileElementsMounted:ls}),te=Ro(F),me=ds(F),{getReferenceProps:de,getFloatingProps:le}=ms([te,me]),{isMounted:re,styles:ie}=Lo(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(Array.isArray(e)?e:[]).filter(ye=>{if(!y.trim())return!0;const Ne=o==="es"&&ye.labelES?ye.labelES.toLowerCase():ye.label.toLowerCase(),ft=ye.code?ye.code.toLowerCase():"";return Ne.includes(y.toLowerCase())||ft.includes(y.toLowerCase())}),H=ye=>{E(ye),g(!1),S(""),d.onChange(ye)},M=()=>{g(!m),!m&&w.current&&setTimeout(()=>{var ye;(ye=w.current)==null||ye.focus()},100)},N=()=>{setTimeout(()=>{m||d.onBlur()},200)};I.useEffect(()=>{E(d.value)},[d.value]),I.useEffect(()=>{const ye=Ne=>{O.current&&!O.current.contains(Ne.target)&&d.onBlur()};return document.addEventListener("mousedown",ye),()=>{document.removeEventListener("mousedown",ye)}},[d]);const K=ye=>{var Ne;return ye?ye.codeISO2?ye.codeISO2.toLowerCase():((Ne=ye.code)==null?void 0:Ne.toLowerCase())||"":""},Q=(Ce=ee.arrow)==null?void 0:Ce.x,ue=(Ue=ee.arrow)==null?void 0:Ue.y,X={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],ce=de({onClick:M,onBlur:N}),he=u(r),oe=u(i),ge=(ne=h.error)==null?void 0:ne.message;return x.jsxs("div",{ref:O,className:`w-full relative flex flex-col gap-8 ${a}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${ge&&"!text-red-500"} text-label`,children:he}),x.jsxs("div",{ref:j.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${ge&&"border-red-500 hover:border-red-600"} ${re?"border-blue-400":"border-blue-100"}`,...ce,tabIndex:0,children:[v!=null&&v.code?x.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(v)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(v)}.png`,srcSet:`https://flagcdn.com/w40/${K(v)}.png 2x`,alt:v.label,onError:ye=>{ye.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:oe}),x.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ge&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(ge,{x:u(c||"")||u(t)})}),re&&x.jsxs("div",{ref:j.setFloating,style:{position:L,top:C??0,left:D??0,...ie},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...le(),children:[x.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Q!=null?`${Q}px`:"",top:ue!=null?`${ue}px`:"",right:"",bottom:"",[X]:"-2px",borderRight:X==="left"?"1px solid":"none",borderBottom:X==="top"?"1px solid":"none",borderLeft:X==="right"?"1px solid":"none",borderTop:X==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:w,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:y,onChange:ye=>S(ye.target.value),onClick:ye=>ye.stopPropagation(),onBlur:ye=>{ye.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:U.length>0?x.jsx("ul",{className:"flex flex-col",children:U.map((ye,Ne)=>{var mi;const ft=ye.codeISO2?ye.codeISO2.toLowerCase():((mi=ye.code)==null?void 0:mi.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:dt=>{dt.stopPropagation(),H(ye)},children:[ft&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ft}.png`,srcSet:`https://flagcdn.com/w40/${ft}.png 2x`,alt:ye.label,onError:dt=>{dt.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&ye.labelES?ye.labelES:ye.label,ye.code?` (${ye.code})`:"Country not found"]})]},`${ye.code}-${Ne}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},fN=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return x.jsxs("div",{className:"flex items-center gap-8",children:[x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${t(e)}.png`,srcSet:`https://flagcdn.com/w40/${t(e)}.png 2x`,alt:e.label,onError:n=>{n.currentTarget.style.display="none"}}),x.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},dN=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=ze();return x.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>x.jsx(hN,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},hN=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var Q,ue;const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C,placement:L,middlewareData:j}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:X,elements:ce}){Object.assign(ce.floating.style,{maxHeight:`${Math.min(X-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),F=Ro(C),Y=ds(C),{getReferenceProps:ee,getFloatingProps:te}=ms([F,Y]),{isMounted:me,styles:de}=Lo(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),re=(Array.isArray(e)?e:[]).filter(X=>{if(!m.trim())return!0;const ce=o==="es"&&X.labelES?X.labelES.toLowerCase():X.label.toLowerCase(),he=X.code?X.code.toLowerCase():"";return ce.includes(m.toLowerCase())||he.includes(m.toLowerCase())}),ie=X=>{S(X),h(!1),g(""),n(X)},B=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var X;(X=v.current)==null||X.focus()},100)};I.useEffect(()=>{S(t)},[t]);const U=X=>{var ce;return X?X.codeISO2?X.codeISO2.toLowerCase():((ce=X.code)==null?void 0:ce.toLowerCase())||"":""},H=(Q=j.arrow)==null?void 0:Q.x,M=(ue=j.arrow)==null?void 0:ue.y,N={top:"bottom",right:"left",bottom:"top",left:"right"}[L.split("-")[0]],K=ee({onClick:B});return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${me?"border-blue-400":"border-blue-100"}`,...K,children:[y!=null&&y.code?x.jsxs("div",{className:"flex items-center w-full",children:[U(y)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${U(y)}.png`,srcSet:`https://flagcdn.com/w40/${U(y)}.png 2x`,alt:y.label,onError:X=>{X.currentTarget.style.display="none"}}),x.jsxs("span",{className:"flex-grow",children:[o==="es"&&y.labelES?y.labelES:y.label,y.code?` (${y.code})`:u("select_country")]})]}):x.jsx("span",{className:"text-gray-500",children:i}),x.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),me&&x.jsxs("div",{ref:D.setFloating,style:{position:O,top:A??0,left:w??0,...de},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...te(),children:[x.jsx("div",{ref:E,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:M!=null?`${M}px`:"",right:"",bottom:"",[N]:"-2px",borderRight:N==="left"?"1px solid":"none",borderBottom:N==="top"?"1px solid":"none",borderLeft:N==="right"?"1px solid":"none",borderTop:N==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:v,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:X=>g(X.target.value),onClick:X=>X.stopPropagation(),autoFocus:!0})}),x.jsx("div",{children:re.length>0?x.jsx("ul",{className:"flex flex-col",children:re.map((X,ce)=>{var oe;const he=X.codeISO2?X.codeISO2.toLowerCase():((oe=X.code)==null?void 0:oe.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:ge=>{ge.stopPropagation(),ie(X)},children:[he&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${he}.png`,srcSet:`https://flagcdn.com/w40/${he}.png 2x`,alt:X.label,onError:ge=>{ge.currentTarget.style.display="none"}}),x.jsxs("span",{children:[o==="es"&&X.labelES?X.labelES:X.label,X.code?` (${X.code})`:"Country not found"]})]},`${X.code}-${ce}`)})}):x.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},uh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=ze(),h=t||d;return x.jsx("button",{...u,className:`${ML(e,h,n,r)} ${c}`,children:i?x.jsx(Ie,{...o,className:No(n),icon:i}):a})};function mN(e){return e!==null&&typeof e=="object"&&"name"in e&&"size"in e&&"type"in e&&typeof e.name=="string"&&typeof e.size=="number"&&typeof e.type=="string"}const pN=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=I.useState(e||null),[h,m]=I.useState(!!e),g=I.useRef(null),y=hr.useController({name:o,control:a}),S=!!a;I.useEffect(()=>{if(S){const A=y==null?void 0:y.field.value;if(mN(A)){const O=URL.createObjectURL(A);return d(O),m(!0),()=>URL.revokeObjectURL(O)}else typeof A=="string"&&A&&A!==e?(d(A),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[y==null?void 0:y.field.value,e]);const v=()=>{var A;n&&((A=g.current)==null||A.click())},E=A=>{var D;const O=(D=A.target.files)==null?void 0:D[0];if(O){const C=URL.createObjectURL(O);d(C),m(!0),S&&(y==null||y.field.onChange(O)),r&&r(O)}},w=A=>{A.stopPropagation(),d(null),m(!1),g.current&&(g.current.value=""),S&&(y==null||y.field.onChange(null)),r&&r(null)};return x.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&x.jsx("button",{type:"button",onClick:w,className:"bg-red-500 text-white rounded-full w-20 h-20 flex items-center justify-center hover:bg-red-600 focus:outline-none","aria-label":"Eliminar imagen",children:x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[x.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),x.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),x.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:v,children:[u?x.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):x.jsx(lw,{size:60,user:c}),n&&x.jsxs(x.Fragment,{children:[x.jsx("input",{type:"file",ref:A=>{g.current=A,y&&y.field.ref(A)},onChange:E,onBlur:y==null?void 0:y.field.onBlur,accept:"image/*",className:"hidden"}),!h&&x.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:x.jsx(Ie,{icon:V5,className:"text-blue-500"})})]})]})]})},gN=ch({name:Rr(),base64:Rr()}),yN=({imageUrl:e,title:t,subtitle:n})=>x.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[x.jsx("img",{src:e,alt:t,width:100,height:100}),x.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),x.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),vN=e=>{switch(e){case"warning":return"bg-yellow-50 border-2 border-yellow-500";case"error":return"bg-red-50 border-2 border-red-500";default:return"bg-blue-50 border-2 border-blue-500"}},bN=({description:e,title:t,className:n,icon:r,type:i="informative"})=>x.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${vN(i)} rounded-lg ${n}`,children:[r?x.jsx(Ie,{icon:r,className:"text-blue-500 min-h-20 h-20"}):x.jsx(Ie,{icon:Q6,className:"text-blue-500 min-h-20 h-20"}),x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),x.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),xN=({size:e=16,strokeWidth:t=2,color:n="#1DA696",...r})=>{const i=(e-t)/2,o=2*Math.PI*i,{className:a="",...c}=r;return x.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:x.jsx("svg",{height:e,width:e,className:"animate-spin",children:x.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},wN=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:d,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[g,y]=I.useState(!1),{t:S}=ze();return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:n,className:`
712
712
  flex items-center justify-between gap-8 p-16
713
713
 
714
714
  ${m&&"!border-red-500"}
@@ -724,13 +724,13 @@ attempted value: ${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]||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
727
+ `,children:[a&&a,x.jsx("input",{id:n,type:g?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:v=>u(v.target.value),onBlur:h,ref:d,className:"group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none"}),x.jsx(Ie,{icon:g?jC:NC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>y(!g)})]}),x.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},SN=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=Iw})=>{var gi,xl,Lr,wl;const{t:u}=ze(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((gi=d.value)==null?void 0:gi.split(" "))||[],g=m[0]||null,y=m[1]||"",S=c.find(be=>g===be.phone),[v,E]=I.useState(!1),[w,A]=I.useState(""),[O,D]=I.useState(S||null),[C,L]=I.useState(y),[j,F]=I.useState(!1),Y=I.useRef(null),ee=I.useRef(null),te=I.useRef(null),me=I.useRef(null),{x:de,y:le,strategy:re,refs:ie,context:B,placement:U,middlewareData:H}=hs({open:v,onOpenChange:E,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:be,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(be-10,300)}px`})},padding:8}),$o({element:ee})],placement:"bottom-start",whileElementsMounted:ls}),M=Ro(B),N=ds(B),{getReferenceProps:K,getFloatingProps:Q}=ms([M,N]),{isMounted:ue,styles:X}=Lo(B,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),he=(Array.isArray(c)?c:[]).filter(be=>{if(!w.trim())return!0;const Qe=i==="es"&&be.labelES?be.labelES.toLowerCase():be.label.toLowerCase(),Pt=be.code?be.code.toLowerCase():"",xn=be.phone?be.phone.toLowerCase():"";return Qe.includes(w.toLowerCase())||Pt.includes(w.toLowerCase())||xn.includes(w.toLowerCase())}),oe=be=>{D(be),E(!1),A("");const Qe=`${be.phone} ${C}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=te.current)==null||Pt.focus()},100)},ge=be=>{const Qe=be.target.value;if(L(Qe),O){const Pt=`${O.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{E(!v),!v&&Y.current&&setTimeout(()=>{var be;(be=Y.current)==null||be.focus()},100)},Ue=()=>{setTimeout(()=>{v||d.onBlur()},200)},ne=()=>{F(!0)},ye=()=>{F(!1)};I.useEffect(()=>{if(d.value){const be=d.value.split(" "),Qe=be[0]||"",Pt=be[1]||"",xn=c.find(rr=>rr.phone===Qe);xn&&D(xn),L(Pt)}},[d.value,c]),I.useEffect(()=>{const be=Qe=>{me.current&&!me.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",be),()=>{document.removeEventListener("mousedown",be)}},[d]);const Ne=be=>{var Qe;return be?be.codeISO2?be.codeISO2.toLowerCase():((Qe=be.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(xl=H.arrow)==null?void 0:xl.x,mi=(Lr=H.arrow)==null?void 0:Lr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],vl=K({onClick:Ce,onBlur:Ue}),bl=()=>h.error?"border-red-500":j||v?"border-blue-400":"border-blue-100",pi=u(n),qt=u(r),bn=(wl=h.error)==null?void 0:wl.message;return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:pi}),x.jsxs("div",{ref:me,className:"flex items-center w-full",onMouseEnter:ne,onMouseLeave:ye,children:[x.jsxs("div",{ref:ie.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${bn?"border-red-500":bl()}`,style:{minWidth:"140px"},...vl,tabIndex:0,children:[O!=null&&O.code?x.jsxs("div",{className:"flex items-center truncate",children:[Ne(O)&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Ne(O)}.png`,srcSet:`https://flagcdn.com/w40/${Ne(O)}.png 2x`,alt:O.label,onError:be=>{be.currentTarget.style.display="none"}}),x.jsxs("span",{children:["+",O.phone]})]}):x.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),x.jsx(Ie,{icon:Kd,className:"w-14 h-14 min-w-14 min-h-14"})]}),x.jsx("input",{ref:te,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${bn?"border-red-500":bl()}`,placeholder:qt,value:C,onChange:ge,onBlur:Ue})]}),bn&&x.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ue&&x.jsxs("div",{ref:ie.setFloating,style:{position:re,top:le??0,left:de??0,...X},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...Q(),children:[x.jsx("div",{ref:ee,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:mi!=null?`${mi}px`:"",right:"",bottom:"",[dt]:"-2px",borderRight:dt==="left"?"1px solid":"none",borderBottom:dt==="top"?"1px solid":"none",borderLeft:dt==="right"?"1px solid":"none",borderTop:dt==="bottom"?"1px solid":"none"}}),x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:x.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:w,onChange:be=>A(be.target.value),onClick:be=>be.stopPropagation(),onBlur:be=>{be.stopPropagation()},autoFocus:!0})}),x.jsx("div",{children:he.length>0?x.jsx("ul",{className:"flex flex-col",children:he.map((be,Qe)=>{var xn;const Pt=be.codeISO2?be.codeISO2.toLowerCase():((xn=be.code)==null?void 0:xn.toLowerCase())||"";return x.jsxs("li",{className:"flex items-center justify-between gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:rr=>{rr.stopPropagation(),oe(be)},children:[Pt&&x.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${Pt}.png`,srcSet:`https://flagcdn.com/w40/${Pt}.png 2x`,alt:be.label,onError:rr=>{rr.currentTarget.style.display="none"}}),x.jsxs("span",{className:"text-gray-500",children:["+",be.phone]})]},`${be.code}-${Qe}`)})}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},TN={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},EN={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},CN=e=>{switch(e){case"aqua":return EN;case"blue":default:return TN}},PN=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=ze(),a=n||o,{bgColor:c,fillColor:u}=CN(a),d=Math.min(Math.max(e,0),100);return x.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[x.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:x.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&x.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},AN=()=>{const[e,t]=I.useState(!1),n=I.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return x.jsx("div",{className:"relative flex items-center",children:x.jsxs("div",{className:`flex items-center justify-center bg-white shadow-md rounded-full transition-all duration-300 ease-in-out ${e?"w-[200px] h-[40px]":"size-[40px]"}`,children:[x.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:x.jsx(Ie,{icon:F5})}),x.jsx("input",{ref:n,type:"text",className:`w-full outline-none bg-transparent transition-all ${e?"w-full pr-[10px]":"w-0"}`,placeholder:"Buscar...",onBlur:i,style:{border:"none",outline:"none"}})]})})},ON="w-fit transition-colors ease-in-out duration-200 flex items-center justify-center gap-12 px-24 py-7 text-base rounded-full font-600 bg-transparent",MN={true:"bg-blue-100 text-blue-500 hover:bg-blue-100/80 active:bg-blue-100/50 !bg-blue-100",false:"text-gray-800 hover:bg-blue-100/40 hover:text-blue-500 active:bg-blue-100/20 active:text-blue-500"},_N={true:"bg-aqua-100 text-aqua-500 hover:bg-aqua-100/80 active:bg-aqua-100/50 !bg-aqua-100",false:"text-gray-800 hover:bg-aqua-100/40 hover:text-aqua-500 active:bg-aqua-100/20 active:text-aqua-500"},IN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=_N[n];break;case"blue":default:r=MN[n];break}return tr(ON,r)},DN=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${IN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&x.jsx(Ie,{icon:a,className:No()}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&x.jsx(Ie,{icon:a,className:No()}),e]})},$N="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",RN={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},LN={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},NN="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",kN={true:"text-blue-500 bg-blue-100 rounded-full",false:"text-gray-800 hover:text-blue-500 active:text-blue-500 group-hover:bg-blue-100 group-hover:text-blue-500"},FN={true:"text-aqua-500 bg-aqua-100 rounded-full",false:"text-gray-800 hover:text-aqua-500 active:text-aqua-500 group-hover:bg-aqua-100 group-hover:text-aqua-500"},Dw=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=kN[n];break;case"aqua":default:r=FN[n];break}return tr(NN,r)},jN=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=LN[n];break;case"blue":default:r=RN[n];break}return tr($N,r)},VN=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=ze(),d=c||u,h=g=>{if(i){g.preventDefault();return}n==null||n(g)},m=`${jN(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?x.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&x.jsx("div",{className:Dw(r,d),children:x.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):x.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&x.jsx("div",{className:Dw(r,d),children:x.jsx(Ie,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},BN=e=>{const{display:t,...n}=e;return t==="desktop"?x.jsx(DN,{...n}):t==="mobile"?x.jsx(VN,{...n}):null},UN=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>x.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:d}})=>x.jsx(WN,{options:e,value:u,onChange:c,label:r,placeholder:i,error:d==null?void 0:d.message,className:o,input:a})}),WN=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,className:a="",input:c=!0})=>{const{t:u}=ze(),[d,h]=I.useState(!1),[m,g]=I.useState(""),[y,S]=I.useState(t||null),v=I.useRef(null),E=I.useRef(null),{x:w,y:A,strategy:O,refs:D,context:C}=hs({open:d,onOpenChange:h,middleware:[cs(8),fs(),us({padding:8}),ul({apply({availableHeight:B,elements:U}){Object.assign(U.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),$o({element:E})],placement:"bottom-start",whileElementsMounted:ls}),L=Ro(C),j=ds(C),{getReferenceProps:F,getFloatingProps:Y}=ms([L,j]),{isMounted:ee,styles:te}=Lo(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),me=(()=>{const B=Array.isArray(e)?e:[];if(!m.trim())return B;const U=m.toLowerCase();return B.filter(H=>{const M=H.label.toLowerCase(),N=H.key.toLowerCase();return M.includes(U)||N.includes(U)})})(),de=B=>{S(B),h(!1),g(""),n(B)},le=()=>{h(!d),!d&&v.current&&setTimeout(()=>{var B;return(B=v.current)==null?void 0:B.focus()},100)};I.useEffect(()=>{S(t)},[t]);const re=F({onClick:le}),ie=u(i);return x.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[x.jsx("label",{className:`text-gray-600 font-600 group ${o&&"!text-red-500"} text-label`,children:r}),x.jsxs("div",{ref:D.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
728
728
  border transition-all duration-200 hover:border-blue-400
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:`
729
+ ${o&&"border-red-500 hover:border-red-600"} ${ee?"border-blue-400":"border-blue-100"}`,...re,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:ie}),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,...te},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...Y(),children:[c&&x.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:x.jsx("input",{ref:v,type:"text",className:"w-full p-16",placeholder:"Search...",value:m,onChange:B=>g(B.target.value),onClick:B=>B.stopPropagation(),autoFocus:!0})}),x.jsx("div",{className:"",children:me.length>0?x.jsx("ul",{children:me.map((B,U)=>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:H=>{H.stopPropagation(),de(B)},children:x.jsx("span",{children:u(B.label)})},`${B.key}-${U}`))}):x.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_options_found")})})]})]})},zN={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},GN={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},YN=e=>{switch(e){case"aqua":return GN;case"blue":default:return zN}},HN=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=ze(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:g}=YN(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}`}
733
- ${e?`${d} ${h}`:"bg-transparent"}`,children:[x.jsx(De,{icon:t,className:e?g:"text-gray-900",style:{height:"16px"}}),x.jsx("h4",{className:`
733
+ ${e?`${d} ${h}`:"bg-transparent"}`,children:[x.jsx(Ie,{icon:t,className:e?g:"text-gray-900",style:{height:"16px"}}),x.jsx("h4",{className:`
734
734
  text-md
735
735
  leading-none
736
736
  font-600
@@ -739,7 +739,7 @@ attempted value: ${l}
739
739
  transition-all duration-100 ease-in-out
740
740
  opacity-0 capitalize
741
741
  ${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
742
- ${e&&d}`,children:n})]})},PL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",AL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},OL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},ML=(e="underline",t=!1)=>Zn(PL,AL[e],OL[String(t)]),yw=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>x.jsxs("button",{className:`${ML(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&x.jsx(De,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),x.jsx("span",{className:"text-lg font-500",children:e})]}),_L="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",IL={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},DL=(e="blue")=>Zn(_L,IL[e]),vw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),o=e||i;return x.jsx("button",{type:"button",className:DL(o)+" "+n,...r,children:t})},$L=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:l,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:g,onBlur:y},fieldState:{error:S}}=cr.useController({name:n,control:t}),{t:b}=ze(),P=b(n),w=b(u);return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:n,className:`
742
+ ${e&&d}`,children:n})]})},qN="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",KN={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},XN={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},ZN=(e="underline",t=!1)=>tr(qN,KN[e],XN[String(t)]),$w=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row"})=>x.jsxs("button",{className:`${ZN(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&x.jsx(Ie,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),x.jsx("span",{className:"text-lg font-500",children:e})]}),JN="transition-colors ease-in-out duration-200 flex items-center justify-center text-body-m rounded-full w-fit font-600 leading-normal disabled:cursor-not-allowed disabled:text-gray-300",QN={blue:"text-blue-500 hover:text-blue-600 active:text-blue-700",aqua:"text-aqua-500 hover:text-aqua-600 active:text-aqua-700",red:"text-red-500 hover:text-red-600 active:text-red-700",gray:"text-gray-500 hover:text-gray-600 active:text-gray-700"},ek=(e="blue")=>tr(JN,QN[e]),Rw=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=ze(),o=e||i;return x.jsx("button",{type:"button",className:ek(o)+" "+n,...r,children:t})},tk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",...d})=>{const{field:{value:h="",onChange:m,ref:g,onBlur:y},fieldState:{error:S}}=hr.useController({name:n,control:t}),{t:v}=ze(),E=v(n),w=v(u);return x.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[x.jsx("h6",{className:`text-gray-600 font-600 group ${S&&"text-red-500!"} text-label ${o&&"text-gray-300"}`,children:e}),x.jsxs("label",{htmlFor:n,className:`
743
743
  flex items-center justify-between gap-8 p-16
744
744
 
745
745
  ${S&&"border-red-500!"}
@@ -755,4 +755,4 @@ attempted value: ${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 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"})});
758
+ `,children:[a&&a,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)&&v(S.message,{x:w||E})})]})},nk=({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})]}),rk=({options:e,onChange:t,value:n,disabled:r,error:i,label:o,placeholder:a})=>{var d;const[c,u]=I.useState(!1);return x.jsx(gs,{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:a}),x.jsx(Ie,{icon:Kd,className:`text-gray-400 transition-all duration-150 ease-in-out ${c?"rotate-180":""}`})]})]})})},ik=({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:a}=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(j=>{var Y;const F=((Y=j.name.split(".").pop())==null?void 0:Y.toLowerCase())||"";if(!i.includes(F)){h(`El archivo ${j.name} tiene una extensión no permitida.`),L=!0;return}if(j.size>o*1024){h(`El archivo ${j.name} excede el tamaño máximo de ${o}KB.`),L=!0;return}C.push(j)}),!L&&C.length>0&&(h(""),r(C))},S=()=>{m.current&&m.current.click()},v=D=>{const C=D.target.files;C&&C.length>0&&y(C),D.target.value=""},E=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:E,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:a(e)}),t&&x.jsx("p",{className:"font-400 text-lg text-gray-500",children:a(t)}),x.jsx(Rw,{color:"blue",children:a(n)}),x.jsx("input",{type:"file",ref:m,className:"hidden",multiple:!0,accept:g,onChange:v})]})]}),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:"," ",wv(o,"mb")]})})]})},ln=8,sk=1e3,ok="300px",ak={top:"bottom",right:"left",bottom:"top",left:"right"},lk={top:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderTop:`${ln}px solid #C7C8CA`},bottom:{borderLeft:`${ln}px solid transparent`,borderRight:`${ln}px solid transparent`,borderBottom:`${ln}px solid #C7C8CA`},left:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderLeft:`${ln}px solid #C7C8CA`},right:{borderTop:`${ln}px solid transparent`,borderBottom:`${ln}px solid transparent`,borderRight:`${ln}px solid #C7C8CA`}},ck=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=I.useState(!1),u=I.useRef(null),{x:d,y:h,strategy:m,placement:g,refs:y,context:S,middlewareData:v}=hs({open:a,onOpenChange:c,placement:r,middleware:[cs(i),fs(),us({padding:8}),$o({element:u})],whileElementsMounted:ls}),E=B6(S,{delay:o}),w=Y6(S),A=ds(S),O=q6(S,{role:"tooltip"}),{getReferenceProps:D,getFloatingProps:C}=ms([E,w,A,O]),L=g.split("-")[0],j=ak[L],{x:F,y:Y}=v.arrow||{x:0,y:0},ee=I.cloneElement(e,{ref:y.setReference,...D()});return x.jsxs(x.Fragment,{children:[ee,x.jsx(Kn,{children:a&&x.jsx("div",{ref:y.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:sk,width:"max-content",maxWidth:ok},...C(),children:x.jsxs(Ze.div,{className:`py-10 px-16 rounded-xl text-md bg-gray-200 text-gray-800 font-600 shadow-lg ${n} relative`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[t,x.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:Y!=null?`${Y}px`:"",[j]:"-7px",...lk[L]}})]})})})]})},uk="Alejo",fk=({theme:e={},children:t})=>{const n={...Od,...e};return x.jsx(bx.Provider,{value:n,children:t})};ae.ActionButton=RC,ae.AlertModal=xx,ae.AsyncToast=tv,ae.Avatar=lw,ae.BoxContainer=ys,ae.Button=ko,ae.CalendarSelector=Xd,ae.CenterModal=pw,ae.Checkbox=IL,ae.CountryDropdown=dN,ae.CountryInput=uN,ae.CountryLabel=fN,ae.DateInput=tL,ae.DialogModal=nw,ae.Divider=mw,ae.Dropdown=iL,ae.FileUpload=sL,ae.FloatingMenu=gs,ae.IconButton=uh,ae.ImageProfileInput=pN,ae.IndexedStep=iw,ae.IndexedStepper=oL,ae.InfoCard=yN,ae.InformationContainer=sw,ae.InformationDisclaimer=bN,ae.LoadingSpinner=xN,ae.ModalContainer=yL,ae.Organism=uk,ae.PasswordInput=wN,ae.PhoneInput=SN,ae.ProgressBar=PN,ae.SearchBar=AN,ae.SearchModal=lL,ae.SectionButton=BN,ae.SelectInput=UN,ae.SidebarButton=HN,ae.Stepper=hL,ae.Tab=$w,ae.Tabs=mL,ae.TextButton=Rw,ae.TextInput=tk,ae.TextStaticInput=nk,ae.ThemeProvider=fk,ae.Toast=mf,ae.Tooltip=ck,ae.UncontrolledDateInput=gL,ae.UncontrolledSelector=rk,ae.UncontrolledTextInput=Zd,ae.UploadContainer=ik,ae.capitalizeFirstLetter=xv,ae.closeModal=xL,ae.defaultTheme=Od,ae.formatLocalizedDate=oD,ae.getImageUrl=Sv,ae.openCustomModal=bL,ae.openModal=vL,ae.renderTabContent=wL,ae.showToastAsync=th,ae.showToastLoading=aw,ae.stringToColor=pf,ae.toBase64=aD,ae.toast=SL,ae.translateBytes=wv,ae.useTheme=ze,ae.yupImageProfileValidator=gN,Object.defineProperty(ae,Symbol.toStringTag,{value:"Module"})});