lawgic-dev-kit 0.20.8 → 0.21.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.
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.js +81 -74
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +7 -2
- package/dist/components/atoms/SidebarButton/SidebarButton.js +7 -7
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +5 -2
- package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +56 -53
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +44 -44
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +4 -0
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +29 -0
- package/dist/src/components/atoms/UncontrolledSelector/UncontrolledSelector.d.ts +21 -0
- package/dist/src/types/toast.d.ts +26 -0
- package/dist/types/toast.d.ts +2 -2
- package/dist/utils/toast.js +44 -40
- package/package.json +1 -1
|
@@ -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 Lm;function wT(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case x:return"Fragment";case b:return"Profiler";case T:return"StrictMode";case
|
|
17
|
+
*/var Lm;function wT(){return Lm||(Lm=1,process.env.NODE_ENV!=="production"&&function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===Z?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case x:return"Fragment";case b:return"Profiler";case T:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList";case B:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case S:return"Portal";case E:return(O.displayName||"Context")+".Provider";case C:return(O._context.displayName||"Context")+".Consumer";case $:var k=O.render;return O=O.displayName,O||(O=k.displayName||k.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case R:return k=O.displayName||null,k!==null?k:e(O.type)||"Memo";case F:k=O._payload,O=O._init;try{return e(O(k))}catch{}}return null}function t(O){return""+O}function n(O){try{t(O);var k=!1}catch{k=!0}if(k){k=console;var K=k.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return K.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(O)}}function r(O){if(O===x)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===F)return"<...>";try{var k=e(O);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function i(){var O=ee.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function a(O){if(se.call(O,"key")){var k=Object.getOwnPropertyDescriptor(O,"key").get;if(k&&k.isReactWarning)return!1}return O.key!==void 0}function c(O,k){function K(){fe||(fe=!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))}K.isReactWarning=!0,Object.defineProperty(O,"key",{get:K,configurable:!0})}function u(){var O=e(this.type);return he[O]||(he[O]=!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.")),O=this.props.ref,O!==void 0?O:null}function d(O,k,K,ae,ce,z,J,oe){return K=z.ref,O={$$typeof:v,type:O,key:k,props:z,_owner:ce},(K!==void 0?K:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:u}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function h(O,k,K,ae,ce,z,J,oe){var re=k.children;if(re!==void 0)if(ae)if(ge(re)){for(ae=0;ae<re.length;ae++)m(re[ae]);Object.freeze&&Object.freeze(re)}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(re);if(se.call(k,"key")){re=e(O);var de=Object.keys(k).filter(function(Ve){return Ve!=="key"});ae=0<de.length?"{key: someKey, "+de.join(": ..., ")+": ...}":"{key: someKey}",V[re+ae]||(de=0<de.length?"{"+de.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} />`,ae,re,de,re),
|
|
22
|
+
<%s key={someKey} {...props} />`,ae,re,de,re),V[re+ae]=!0)}if(re=null,K!==void 0&&(n(K),re=""+K),a(k)&&(n(k.key),re=""+k.key),"key"in k){K={};for(var Ce in k)Ce!=="key"&&(K[Ce]=k[Ce])}else K=k;return re&&c(K,typeof O=="function"?O.displayName||O.name||"Unknown":O),d(O,re,z,ce,i(),K,J,oe)}function m(O){typeof O=="object"&&O!==null&&O.$$typeof===v&&O._store&&(O._store.validated=1)}var p=_,v=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ge=Array.isArray,le=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(O){return O()}};var fe,he={},Y=p["react-stack-bottom-frame"].bind(p,o)(),U=le(r(o)),V={};Vs.Fragment=x,Vs.jsx=function(O,k,K,ae,ce){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!1,ae,ce,z?Error("react-stack-top-frame"):Y,z?le(r(O)):U)},Vs.jsxs=function(O,k,K,ae,ce){var z=1e4>ee.recentlyCreatedOwnerStacks++;return h(O,k,K,!0,ae,ce,z?Error("react-stack-top-frame"):Y,z?le(r(O)):U)}}()),Vs}var Rm;function ST(){return Rm||(Rm=1,process.env.NODE_ENV==="production"?ta.exports=bT():ta.exports=wT()),ta.exports}var y=ST();/*!
|
|
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 TT(e,t,n){return(t=CT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(n),!0).forEach(function(r){TT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(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 CT(e){var t=ET(e,"string");return typeof t=="symbol"?t:t+""}const Fm=()=>{};let dc={},Vm={},Bm=null,Wm={mark:Fm,measure:Fm};try{typeof window<"u"&&(dc=window),typeof document<"u"&&(Vm=document),typeof MutationObserver<"u"&&(Bm=MutationObserver),typeof performance<"u"&&(Wm=performance)}catch{}const{userAgent:Um=""}=dc.navigator||{},mr=dc,Ze=Vm,zm=Bm,na=Wm;mr.document;const Yn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",Gm=~Um.indexOf("MSIE")||~Um.indexOf("Trident/");var PT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,AT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ym={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"}},MT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Hm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",OT="sharp",_T="sharp-duotone",qm=[wt,ra,OT,_T],IT={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"}},$T={"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"}},DT=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}]]),NT={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"}},kT=["fak","fa-kit","fakd","fa-kit-duotone"],Km={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},LT=["kit"],RT={kit:{"fa-kit":"fak"}},jT=["fak","fakd"],FT={kit:{fak:"fa-kit"}},Xm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},VT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],BT=["fak","fa-kit","fakd","fa-kit-duotone"],WT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},UT={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"}},zT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},hc={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"}},GT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],mc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...VT,...GT],YT=["solid","regular","light","thin","duotone","brands"],Zm=[1,2,3,4,5,6,7,8,9,10],HT=Zm.concat([11,12,13,14,15,16,17,18,19,20]),qT=[...Object.keys(zT),...YT,"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",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Zm.map(e=>"".concat(e,"x"))).concat(HT.map(e=>"w-".concat(e))),KT={"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 Hn="___FONT_AWESOME___",pc=16,Jm="fa",Qm="svg-inline--fa",Jr="data-fa-i2svg",gc="data-fa-pseudo-element",XT="data-fa-pseudo-element-pending",yc="data-prefix",vc="data-icon",ep="fontawesome-i2svg",ZT="async",JT=["HTML","HEAD","STYLE","SCRIPT"],tp=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Bs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const np=te({},Ym);np[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Ym[wt]),Km.kit),Km["kit-duotone"]);const QT=Bs(np),xc=te({},NT);xc[wt]=te(te(te(te({},{duotone:"fad"}),xc[wt]),Xm.kit),Xm["kit-duotone"]);const rp=Bs(xc),bc=te({},hc);bc[wt]=te(te({},bc[wt]),FT.kit);const wc=Bs(bc),Sc=te({},UT);Sc[wt]=te(te({},Sc[wt]),RT.kit),Bs(Sc);const eE=PT,ip="fa-layers-text",tE=AT,nE=te({},IT);Bs(nE);const rE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tc=MT,iE=[...LT,...qT],Ws=mr.FontAwesomeConfig||{};function sE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function oE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.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=oE(sE(n));i!=null&&(Ws[r]=i)});const sp={styleDefault:"solid",familyDefault:wt,cssPrefix:Jm,replacementClass:Qm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ws.familyPrefix&&(Ws.cssPrefix=Ws.familyPrefix);const Ri=te(te({},sp),Ws);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const ve={};Object.keys(sp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ri[e]=t,Us.forEach(n=>n(ve))},get:function(){return Ri[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Us.forEach(t=>t(ve))},get:function(){return Ri.cssPrefix}}),mr.FontAwesomeConfig=ve;const Us=[];function aE(e){return Us.push(e),()=>{Us.splice(Us.indexOf(e),1)}}const pr=pc,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function lE(e){if(!e||!Yn)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.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 Ze.head.insertBefore(t,r),e}const cE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zs(){let e=12,t="";for(;e-- >0;)t+=cE[Math.random()*62|0];return t}function ji(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ec(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function op(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(op(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Cc(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function fE(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)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:u,path:f}}function dE(e){let{transform:t,width:n=pc,height:r=pc,startCentered:i=!1}=e,o="";return i&&Gm?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 hE=`:root, :host {
|
|
26
|
+
*/function TT(e,t,n){return(t=CT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jm(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(n),!0).forEach(function(r){TT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(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 CT(e){var t=ET(e,"string");return typeof t=="symbol"?t:t+""}const Fm=()=>{};let dc={},Vm={},Bm=null,Wm={mark:Fm,measure:Fm};try{typeof window<"u"&&(dc=window),typeof document<"u"&&(Vm=document),typeof MutationObserver<"u"&&(Bm=MutationObserver),typeof performance<"u"&&(Wm=performance)}catch{}const{userAgent:Um=""}=dc.navigator||{},mr=dc,Ze=Vm,zm=Bm,na=Wm;mr.document;const Yn=!!Ze.documentElement&&!!Ze.head&&typeof Ze.addEventListener=="function"&&typeof Ze.createElement=="function",Gm=~Um.indexOf("MSIE")||~Um.indexOf("Trident/");var PT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,AT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ym={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"}},MT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Hm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",ra="duotone",OT="sharp",_T="sharp-duotone",qm=[wt,ra,OT,_T],IT={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"}},$T={"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"}},DT=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}]]),NT={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"}},kT=["fak","fa-kit","fakd","fa-kit-duotone"],Km={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},LT=["kit"],RT={kit:{"fa-kit":"fak"}},jT=["fak","fakd"],FT={kit:{fak:"fa-kit"}},Xm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ia={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},VT=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],BT=["fak","fa-kit","fakd","fa-kit-duotone"],WT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},UT={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"}},zT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},hc={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"}},GT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],mc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...VT,...GT],YT=["solid","regular","light","thin","duotone","brands"],Zm=[1,2,3,4,5,6,7,8,9,10],HT=Zm.concat([11,12,13,14,15,16,17,18,19,20]),qT=[...Object.keys(zT),...YT,"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",ia.GROUP,ia.SWAP_OPACITY,ia.PRIMARY,ia.SECONDARY].concat(Zm.map(e=>"".concat(e,"x"))).concat(HT.map(e=>"w-".concat(e))),KT={"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 Hn="___FONT_AWESOME___",pc=16,Jm="fa",Qm="svg-inline--fa",Jr="data-fa-i2svg",gc="data-fa-pseudo-element",XT="data-fa-pseudo-element-pending",yc="data-prefix",vc="data-icon",ep="fontawesome-i2svg",ZT="async",JT=["HTML","HEAD","STYLE","SCRIPT"],tp=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function Bs(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const np=te({},Ym);np[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Ym[wt]),Km.kit),Km["kit-duotone"]);const QT=Bs(np),xc=te({},NT);xc[wt]=te(te(te(te({},{duotone:"fad"}),xc[wt]),Xm.kit),Xm["kit-duotone"]);const rp=Bs(xc),bc=te({},hc);bc[wt]=te(te({},bc[wt]),FT.kit);const wc=Bs(bc),Sc=te({},UT);Sc[wt]=te(te({},Sc[wt]),RT.kit),Bs(Sc);const eE=PT,ip="fa-layers-text",tE=AT,nE=te({},IT);Bs(nE);const rE=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Tc=MT,iE=[...LT,...qT],Ws=mr.FontAwesomeConfig||{};function sE(e){var t=Ze.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function oE(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ze&&typeof Ze.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=oE(sE(n));i!=null&&(Ws[r]=i)});const sp={styleDefault:"solid",familyDefault:wt,cssPrefix:Jm,replacementClass:Qm,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ws.familyPrefix&&(Ws.cssPrefix=Ws.familyPrefix);const Ri=te(te({},sp),Ws);Ri.autoReplaceSvg||(Ri.observeMutations=!1);const ve={};Object.keys(sp).forEach(e=>{Object.defineProperty(ve,e,{enumerable:!0,set:function(t){Ri[e]=t,Us.forEach(n=>n(ve))},get:function(){return Ri[e]}})}),Object.defineProperty(ve,"familyPrefix",{enumerable:!0,set:function(e){Ri.cssPrefix=e,Us.forEach(t=>t(ve))},get:function(){return Ri.cssPrefix}}),mr.FontAwesomeConfig=ve;const Us=[];function aE(e){return Us.push(e),()=>{Us.splice(Us.indexOf(e),1)}}const pr=pc,Pn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function lE(e){if(!e||!Yn)return;const t=Ze.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ze.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 Ze.head.insertBefore(t,r),e}const cE="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zs(){let e=12,t="";for(;e-- >0;)t+=cE[Math.random()*62|0];return t}function ji(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ec(e){return e.classList?ji(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function op(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function uE(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(op(e[n]),'" '),"").trim()}function sa(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Cc(e){return e.size!==Pn.size||e.x!==Pn.x||e.y!==Pn.y||e.rotate!==Pn.rotate||e.flipX||e.flipY}function fE(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 dE(e){let{transform:t,width:n=pc,height:r=pc,startCentered:i=!1}=e,o="";return i&&Gm?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 hE=`: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,29 +576,29 @@ 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 ap(){const e=Jm,t=Qm,n=ve.cssPrefix,r=ve.replacementClass;let i=hE;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 lp=!1;function Pc(){ve.autoAddCss&&!lp&&(lE(ap()),lp=!0)}var mE={mixout(){return{dom:{css:ap,insertCss:Pc}}},hooks(){return{beforeDOMElementCreation(){Pc()},beforeI2svg(){Pc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var An=qn[Hn];const cp=[],up=function(){Ze.removeEventListener("DOMContentLoaded",up),oa=1,cp.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",up));function pE(e){Yn&&(oa?setTimeout(e,0):cp.push(e))}function Gs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?op(e):"<".concat(t," ").concat(uE(n),">").concat(r.map(Gs).join(""),"</").concat(t,">")}function fp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ac=function(t,n,r,i){var o=Object.keys(t),a=o.length,c=n,u,f,h;for(r===void 0?(u=1,h=t[o[0]]):(u=0,h=r);u<a;u++)f=o[u],h=c(h,t[f],f,t);return h};function gE(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 Mc(e){const t=gE(e);return t.length===1?t[0].toString(16):null}function yE(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 dp(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 Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=dp(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,dp(t)):An.styles[e]=te(te({},An.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Ys,shims:vE}=An,hp=Object.keys(wc),xE=hp.reduce((e,t)=>(e[t]=Object.keys(wc[t]),e),{});let _c=null,mp={},pp={},gp={},yp={},vp={};function bE(e){return~iE.indexOf(e)}function wE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!bE(i)?i:null}const xp=()=>{const e=r=>Ac(Ys,(i,o,a)=>(i[a]=Ac(o,r,{}),i),{});mp=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)),pp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),vp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Ys||ve.autoFetchSvg,n=Ac(vE,(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:{}});gp=n.names,yp=n.unicodes,_c=aa(ve.styleDefault,{family:ve.familyDefault})};aE(e=>{_c=aa(e.styleDefault,{family:ve.familyDefault})}),xp();function Ic(e,t){return(mp[e]||{})[t]}function SE(e,t){return(pp[e]||{})[t]}function Qr(e,t){return(vp[e]||{})[t]}function bp(e){return gp[e]||{prefix:null,iconName:null}}function TE(e){const t=yp[e],n=Ic("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return _c}const wp=()=>({prefix:null,iconName:null,rest:[]});function EE(e){let t=wt;const n=hp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return qm.forEach(r=>{(e.includes(n[r])||e.some(i=>xE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=QT[n][e];if(n===ra&&!e)return"fad";const i=rp[n][e]||rp[n][r],o=e in An.styles?e:null;return i||o||null}function CE(e){let t=[],n=null;return e.forEach(r=>{const i=wE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Sp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=mc.concat(BT),o=Sp(e.filter(m=>i.includes(m))),a=Sp(e.filter(m=>!mc.includes(m))),c=o.filter(m=>(r=m,!Hm.includes(m))),[u=null]=c,f=EE(o),h=te(te({},CE(a)),{},{prefix:aa(u,{family:f})});return te(te(te({},h),OE({values:e,family:f,styles:Ys,config:ve,canonical:h,givenPrefix:r})),PE(n,r,h))}function PE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?bp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ys.far&&Ys.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const AE=qm.filter(e=>e!==wt||e!==ra),ME=Object.keys(hc).filter(e=>e!==wt).map(e=>Object.keys(hc[e])).flat();function OE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,u=t.includes("fa-duotone")||t.includes("fad"),f=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!c&&(u||f||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&AE.includes(n)&&(Object.keys(o).find(p=>ME.includes(p))||a.autoFetchSvg)){const p=DT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class _E{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]=te(te({},this.definitions[o]||{}),i[o]),Oc(o,i[o]);const a=wc[wt][o];a&&Oc(a,i[o]),xp()})}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(f=>{typeof f=="string"&&(t[o][f]=c)}),t[o][a]=c}),t}}let Tp=[],Fi={};const Vi={},IE=Object.keys(Vi);function $E(e,t){let{mixoutsTo:n}=t;return Tp=e,Fi={},Object.keys(Vi).forEach(r=>{IE.indexOf(r)===-1&&delete Vi[r]}),Tp.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=>{Fi[a]||(Fi[a]=[]),Fi[a].push(o[a])})}r.provides&&r.provides(Vi)}),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(Fi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Fi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vi[e]?Vi[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,fp(Ep.definitions,n,t)||fp(An.styles,n,t)}const Ep=new _E,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(ei("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,pE(()=>{DE({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(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=aa(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(eE))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:Ep,findIconDefinition:Dc,toHtml:Gs},DE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(An.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Gs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function NE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Cc(a)&&n.found&&!r.found){const{width:c,height:u}=n,f={x:c/u/2,y:.5};i.style=sa(te(te({},o),{},{"transform-origin":"".concat(f.x+a.x/16,"em ").concat(f.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function kE(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:te(te({},i),{},{id:a}),children:r}]}]}function Nc(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:c,maskId:u,titleId:f,extra:h,watchable:m=!1}=e,{width:p,height:v}=n.found?n:t,S=jT.includes(r),x=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(f||zs())},children:[c]}),delete T.attributes.title);const C=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},b),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=E,C.attributes=$,a?kE(C):NE(C)}function Cp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const f=te({},a.styles);Cc(i)&&(f.transform=dE({transform:i,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);const h=sa(f);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 LE(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(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:kc}=An;function Lc(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(Tc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const RE={found:!1,width:512,height:512};function jE(e,t){!tp&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=bp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const o=kc[t][e];return r(Lc(o))}jE(e,t),r(te(te({},RE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Pp=()=>{},jc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Pp,measure:Pp},Hs='FA "6.7.2"',FE=e=>(jc.mark("".concat(Hs," ").concat(e," begins")),()=>Ap(e)),Ap=e=>{jc.mark("".concat(Hs," ").concat(e," ends")),jc.measure("".concat(Hs," ").concat(e),"".concat(Hs," ").concat(e," begins"),"".concat(Hs," ").concat(e," ends"))};var Fc={begin:FE,end:Ap};const ua=()=>{};function Mp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function VE(e){const t=e.getAttribute?e.getAttribute(yc):null,n=e.getAttribute?e.getAttribute(vc):null;return t&&n}function BE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function WE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function UE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function zE(e){return Ze.createElement(e)}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?UE:zE}=t;if(typeof e=="string")return Ze.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(Op(o,{ceFn:n}))}),r}function GE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Op(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(GE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ec(t).indexOf(ve.replacementClass))return fa.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=>Gs(o)).join(`
|
|
580
|
-
`);t.setAttribute(Jr,""),t.innerHTML=i}};function _p(e){e()}function Ip(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=_p;ve.mutateApproach===ZT&&(r=mr.requestAnimationFrame||_p),r(()=>{const i=WE(),o=Fc.begin("mutate");e.map(i),o(),n()})}}let Vc=!1;function $p(){Vc=!0}function Bc(){Vc=!1}let da=null;function Dp(e){if(!zm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new zm(o=>{if(Vc)return;const a=gr();ji(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Mp(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"&&Mp(c.target)&&~rE.indexOf(c.attributeName))if(c.attributeName==="class"&&VE(c.target)){const{prefix:u,iconName:
|
|
581
|
-
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uC(e){return Promise.all([Fp(e,"::before"),Fp(e,"::after")])}function fC(e){return e.parentNode!==document.head&&!~JT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Vp(e){if(Yn)return new Promise((t,n)=>{const r=ji(e.querySelectorAll("*")).filter(fC).map(uC),i=Fc.begin("searchPseudoElements");$p(),Promise.all(r).then(()=>{i(),Bc(),t()}).catch(()=>{i(),Bc(),n()})})}var dC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Vp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&Vp(n)}}};let Bp=!1;var hC={mixout(){return{dom:{unwatch(){$p(),Bp=!0}}}},hooks(){return{bootstrap(){Dp($c("mutationObserverCallbacks",{}))},noAuto(){YE()},watch(e){const{observeMutationsRoot:t}=e;Bp?Bc():Dp($c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Wp=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 mC={mixout(){return{parse:{transform:e=>Wp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Wp(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),") "),
|
|
579
|
+
}`;function ap(){const e=Jm,t=Qm,n=ve.cssPrefix,r=ve.replacementClass;let i=hE;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 lp=!1;function Pc(){ve.autoAddCss&&!lp&&(lE(ap()),lp=!0)}var mE={mixout(){return{dom:{css:ap,insertCss:Pc}}},hooks(){return{beforeDOMElementCreation(){Pc()},beforeI2svg(){Pc()}}}};const qn=mr||{};qn[Hn]||(qn[Hn]={}),qn[Hn].styles||(qn[Hn].styles={}),qn[Hn].hooks||(qn[Hn].hooks={}),qn[Hn].shims||(qn[Hn].shims=[]);var An=qn[Hn];const cp=[],up=function(){Ze.removeEventListener("DOMContentLoaded",up),oa=1,cp.map(e=>e())};let oa=!1;Yn&&(oa=(Ze.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ze.readyState),oa||Ze.addEventListener("DOMContentLoaded",up));function pE(e){Yn&&(oa?setTimeout(e,0):cp.push(e))}function Gs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?op(e):"<".concat(t," ").concat(uE(n),">").concat(r.map(Gs).join(""),"</").concat(t,">")}function fp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Ac=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 gE(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 Mc(e){const t=gE(e);return t.length===1?t[0].toString(16):null}function yE(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 dp(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 Oc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=dp(t);typeof An.hooks.addPack=="function"&&!r?An.hooks.addPack(e,dp(t)):An.styles[e]=te(te({},An.styles[e]||{}),i),e==="fas"&&Oc("fa",t)}const{styles:Ys,shims:vE}=An,hp=Object.keys(wc),xE=hp.reduce((e,t)=>(e[t]=Object.keys(wc[t]),e),{});let _c=null,mp={},pp={},gp={},yp={},vp={};function bE(e){return~iE.indexOf(e)}function wE(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!bE(i)?i:null}const xp=()=>{const e=r=>Ac(Ys,(i,o,a)=>(i[a]=Ac(o,r,{}),i),{});mp=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)),pp=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),vp=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Ys||ve.autoFetchSvg,n=Ac(vE,(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:{}});gp=n.names,yp=n.unicodes,_c=aa(ve.styleDefault,{family:ve.familyDefault})};aE(e=>{_c=aa(e.styleDefault,{family:ve.familyDefault})}),xp();function Ic(e,t){return(mp[e]||{})[t]}function SE(e,t){return(pp[e]||{})[t]}function Qr(e,t){return(vp[e]||{})[t]}function bp(e){return gp[e]||{prefix:null,iconName:null}}function TE(e){const t=yp[e],n=Ic("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function gr(){return _c}const wp=()=>({prefix:null,iconName:null,rest:[]});function EE(e){let t=wt;const n=hp.reduce((r,i)=>(r[i]="".concat(ve.cssPrefix,"-").concat(i),r),{});return qm.forEach(r=>{(e.includes(n[r])||e.some(i=>xE[r].includes(i)))&&(t=r)}),t}function aa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=QT[n][e];if(n===ra&&!e)return"fad";const i=rp[n][e]||rp[n][r],o=e in An.styles?e:null;return i||o||null}function CE(e){let t=[],n=null;return e.forEach(r=>{const i=wE(ve.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Sp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function la(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=mc.concat(BT),o=Sp(e.filter(m=>i.includes(m))),a=Sp(e.filter(m=>!mc.includes(m))),c=o.filter(m=>(r=m,!Hm.includes(m))),[u=null]=c,d=EE(o),h=te(te({},CE(a)),{},{prefix:aa(u,{family:d})});return te(te(te({},h),OE({values:e,family:d,styles:Ys,config:ve,canonical:h,givenPrefix:r})),PE(n,r,h))}function PE(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?bp(i):{},a=Qr(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Ys.far&&Ys.fas&&!ve.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const AE=qm.filter(e=>e!==wt||e!==ra),ME=Object.keys(hc).filter(e=>e!==wt).map(e=>Object.keys(hc[e])).flat();function OE(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,c=n===ra,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&&AE.includes(n)&&(Object.keys(o).find(p=>ME.includes(p))||a.autoFetchSvg)){const p=DT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=gr()||"fas"),r}class _E{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]=te(te({},this.definitions[o]||{}),i[o]),Oc(o,i[o]);const a=wc[wt][o];a&&Oc(a,i[o]),xp()})}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 Tp=[],Fi={};const Vi={},IE=Object.keys(Vi);function $E(e,t){let{mixoutsTo:n}=t;return Tp=e,Fi={},Object.keys(Vi).forEach(r=>{IE.indexOf(r)===-1&&delete Vi[r]}),Tp.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=>{Fi[a]||(Fi[a]=[]),Fi[a].push(o[a])})}r.provides&&r.provides(Vi)}),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(Fi[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Fi[e]||[]).forEach(o=>{o.apply(null,n)})}function yr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vi[e]?Vi[e].apply(null,t):void 0}function Dc(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||gr();if(t)return t=Qr(n,t)||t,fp(Ep.definitions,n,t)||fp(An.styles,n,t)}const Ep=new _E,zt={noAuto:()=>{ve.autoReplaceSvg=!1,ve.observeMutations=!1,ei("noAuto")},config:ve,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(ei("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,pE(()=>{DE({autoReplaceSvgRoot:t}),ei("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Qr(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=aa(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ve.cssPrefix,"-"))>-1||e.match(eE))){const t=la(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||gr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=gr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:Ep,findIconDefinition:Dc,toHtml:Gs},DE=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ze}=e;(Object.keys(An.styles).length>0||ve.autoFetchSvg)&&Yn&&ve.autoReplaceSvg&&zt.dom.i2svg({node:t})};function ca(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Gs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Ze.createElement("div");return n.innerHTML=e.html,n.children}}),e}function NE(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Cc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};i.style=sa(te(te({},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 kE(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:te(te({},i),{},{id:a}),children:r}]}]}function Nc(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:p,height:v}=n.found?n:t,S=jT.includes(r),x=[ve.replacementClass,i?"".concat(ve.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(v)})};const b=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/v*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||zs())},children:[c]}),delete T.attributes.title);const C=te(te({},T),{},{prefix:r,iconName:i,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},b),h.styles)}),{children:E,attributes:$}=n.found&&t.found?yr("generateAbstractMask",C)||{children:[],attributes:{}}:yr("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=E,C.attributes=$,a?kE(C):NE(C)}function Cp(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:c=!1}=e,u=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},a.styles);Cc(i)&&(d.transform=dE({transform:i,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=sa(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 LE(e){const{content:t,title:n,extra:r}=e,i=te(te(te({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=sa(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:kc}=An;function Lc(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(Tc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ve.cssPrefix,"-").concat(Tc.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const RE={found:!1,width:512,height:512};function jE(e,t){!tp&&!ve.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rc(e,t){let n=t;return t==="fa"&&ve.styleDefault!==null&&(t=gr()),new Promise((r,i)=>{if(n==="fa"){const o=bp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&kc[t]&&kc[t][e]){const o=kc[t][e];return r(Lc(o))}jE(e,t),r(te(te({},RE),{},{icon:ve.showMissingIcons&&e?yr("missingIconAbstract")||{}:{}}))})}const Pp=()=>{},jc=ve.measurePerformance&&na&&na.mark&&na.measure?na:{mark:Pp,measure:Pp},Hs='FA "6.7.2"',FE=e=>(jc.mark("".concat(Hs," ").concat(e," begins")),()=>Ap(e)),Ap=e=>{jc.mark("".concat(Hs," ").concat(e," ends")),jc.measure("".concat(Hs," ").concat(e),"".concat(Hs," ").concat(e," begins"),"".concat(Hs," ").concat(e," ends"))};var Fc={begin:FE,end:Ap};const ua=()=>{};function Mp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function VE(e){const t=e.getAttribute?e.getAttribute(yc):null,n=e.getAttribute?e.getAttribute(vc):null;return t&&n}function BE(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ve.replacementClass)}function WE(){return ve.autoReplaceSvg===!0?fa.replace:fa[ve.autoReplaceSvg]||fa.replace}function UE(e){return Ze.createElementNS("http://www.w3.org/2000/svg",e)}function zE(e){return Ze.createElement(e)}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?UE:zE}=t;if(typeof e=="string")return Ze.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(Op(o,{ceFn:n}))}),r}function GE(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const fa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Op(n),t)}),t.getAttribute(Jr)===null&&ve.keepOriginalSource){let n=Ze.createComment(GE(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ec(t).indexOf(ve.replacementClass))return fa.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=>Gs(o)).join(`
|
|
580
|
+
`);t.setAttribute(Jr,""),t.innerHTML=i}};function _p(e){e()}function Ip(e,t){const n=typeof t=="function"?t:ua;if(e.length===0)n();else{let r=_p;ve.mutateApproach===ZT&&(r=mr.requestAnimationFrame||_p),r(()=>{const i=WE(),o=Fc.begin("mutate");e.map(i),o(),n()})}}let Vc=!1;function $p(){Vc=!0}function Bc(){Vc=!1}let da=null;function Dp(e){if(!zm||!ve.observeMutations)return;const{treeCallback:t=ua,nodeCallback:n=ua,pseudoElementsCallback:r=ua,observeMutationsRoot:i=Ze}=e;da=new zm(o=>{if(Vc)return;const a=gr();ji(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!Mp(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"&&Mp(c.target)&&~rE.indexOf(c.attributeName))if(c.attributeName==="class"&&VE(c.target)){const{prefix:u,iconName:d}=la(Ec(c.target));c.target.setAttribute(yc,u||a),d&&c.target.setAttribute(vc,d)}else BE(c.target)&&n(c.target)})}),Yn&&da.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function YE(){da&&da.disconnect()}function HE(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 qE(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=la(Ec(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=SE(i.prefix,e.innerText)||Ic(i.prefix,Mc(e.innerText))),!i.iconName&&ve.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function KE(e){const t=ji(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||zs()):(t["aria-hidden"]="true",t.focusable="false")),t}function XE(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Pn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Np(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=qE(e),o=KE(e),a=$c("parseNodeAttributes",{},e);let c=t.styleParser?HE(e):[];return te({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Pn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:c,attributes:o}},a)}const{styles:ZE}=An;function kp(e){const t=ve.autoReplaceSvg==="nest"?Np(e,{styleParser:!1}):Np(e);return~t.extra.classes.indexOf(ip)?yr("generateLayersText",e,t):yr("generateSvgReplacementMutation",e,t)}function JE(){return[...kT,...mc]}function Lp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Ze.documentElement.classList,r=h=>n.add("".concat(ep,"-").concat(h)),i=h=>n.remove("".concat(ep,"-").concat(h)),o=ve.autoFetchSvg?JE():Hm.concat(Object.keys(ZE));o.includes("fa")||o.push("fa");const a=[".".concat(ip,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=ji(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),i("complete");else return Promise.resolve();const u=Fc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=kp(m);p&&h.push(p)}catch(p){tp||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Ip(p,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function QE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;kp(e).then(n=>{n&&Ip([n],t)})}function eC(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:Dc(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Dc(i||{})),e(r,te(te({},n),{},{mask:i}))}}const tC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,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:p,icon:v}=e;return ca(te({type:"icon"},e),()=>(ei("beforeDOMElementCreation",{iconDefinition:e,params:t}),ve.autoA11y&&(a?d["aria-labelledby"]="".concat(ve.replacementClass,"-title-").concat(c||zs()):(d["aria-hidden"]="true",d.focusable="false")),Nc({icons:{main:Lc(v),mask:i?Lc(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:te(te({},Pn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var nC={mixout(){return{icon:eC(tC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Lp,e.nodeCallback=QE,e}}},provides(e){e.i2svg=function(t){const{node:n=Ze,callback:r=()=>{}}=t;return Lp(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((p,v)=>{Promise.all([Rc(r,a),d.iconName?Rc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[x,T]=S;p([t,Nc({icons:{main:x,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:i,titleId:o,extra:m,watchable:!0})])}).catch(v)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const c=sa(a);c.length>0&&(r.style=c);let u;return Cc(o)&&(u=yr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(u||i.icon),{children:n,attributes:r}}}},rC={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return ca({type:"layer"},()=>{ei("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}]})}}}},iC={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 ca({type:"counter",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),LE({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(ve.cssPrefix,"-layers-counter"),...r]}})))}}}},sC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Pn,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return ca({type:"text",content:e},()=>(ei("beforeDOMElementCreation",{content:e,params:t}),Cp({content:e,transform:te(te({},Pn),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(Gm){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,Cp({content:t.innerHTML,width:a,height:c,transform:i,title:r,extra:o,watchable:!0})])}}};const oC=new RegExp('"',"ug"),Rp=[1105920,1112319],jp=te(te(te(te({},{FontAwesome:{normal:"fas",400:"fas"}}),$T),KT),WT),Wc=Object.keys(jp).reduce((e,t)=>(e[t.toLowerCase()]=jp[t],e),{}),aC=Object.keys(Wc).reduce((e,t)=>{const n=Wc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function lC(e){const t=e.replace(oC,""),n=yE(t,0),r=n>=Rp[0]&&n<=Rp[1],i=t.length===2?t[0]===t[1]:!1;return{value:Mc(i?t[0]:t),isSecondary:r||i}}function cC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Wc[n]||{})[i]||aC[n]}function Fp(e,t){const n="".concat(XT).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=ji(e.children).filter(p=>p.getAttribute(gc)===t)[0],c=mr.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(tE),h=c.getPropertyValue("font-weight"),m=c.getPropertyValue("content");if(a&&!d)return e.removeChild(a),r();if(d&&m!=="none"&&m!==""){const p=c.getPropertyValue("content");let v=cC(u,h);const{value:S,isSecondary:x}=lC(p),T=d[0].startsWith("FontAwesome");let b=Ic(v,S),C=b;if(T){const E=TE(S);E.iconName&&E.prefix&&(b=E.iconName,v=E.prefix)}if(b&&!x&&(!a||a.getAttribute(yc)!==v||a.getAttribute(vc)!==C)){e.setAttribute(n,C),a&&e.removeChild(a);const E=XE(),{extra:$}=E;$.attributes[gc]=t,Rc(b,v).then(A=>{const D=Nc(te(te({},E),{},{icons:{main:A,mask:wp()},prefix:v,iconName:C,extra:$,watchable:!0})),R=Ze.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=D.map(F=>Gs(F)).join(`
|
|
581
|
+
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function uC(e){return Promise.all([Fp(e,"::before"),Fp(e,"::after")])}function fC(e){return e.parentNode!==document.head&&!~JT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(gc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Vp(e){if(Yn)return new Promise((t,n)=>{const r=ji(e.querySelectorAll("*")).filter(fC).map(uC),i=Fc.begin("searchPseudoElements");$p(),Promise.all(r).then(()=>{i(),Bc(),t()}).catch(()=>{i(),Bc(),n()})})}var dC={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Vp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ze}=t;ve.searchPseudoElements&&Vp(n)}}};let Bp=!1;var hC={mixout(){return{dom:{unwatch(){$p(),Bp=!0}}}},hooks(){return{bootstrap(){Dp($c("mutationObserverCallbacks",{}))},noAuto(){YE()},watch(e){const{observeMutationsRoot:t}=e;Bp?Bc():Dp($c("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Wp=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 mC={mixout(){return{parse:{transform:e=>Wp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Wp(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)")},p={outer:a,inner:h,path:m};return{tag:"g",attributes:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const Uc={x:0,y:0,width:"100%",height:"100%"};function Up(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 pC(e){return e.tag==="g"?e.children:[e]}var gC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?la(n.split(" ").map(i=>i.trim())):wp();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,p=fE({transform:c,containerWidth:h,iconWidth:u}),v={tag:"rect",attributes:te(te({},Uc),{},{fill:"white"})},S=d.children?{children:d.children.map(Up)}:{},x={tag:"g",attributes:te({},p.inner),children:[Up(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[x]},b="mask-".concat(a||zs()),C="clip-".concat(a||zs()),E={tag:"mask",attributes:te(te({},Uc),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[v,T]},$={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:pC(m)},E]};return n.push($,{tag:"rect",attributes:te({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(b,")")},Uc)}),{children:n,attributes:r}}}},yC={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:te(te({},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=te(te({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},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:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},vC={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},xC=[mE,nC,rC,iC,sC,dC,hC,mC,gC,yC,vC];$E(xC,{mixoutsTo:zt}),zt.noAuto,zt.config,zt.library,zt.dom;const zc=zt.parse;zt.findIconDefinition,zt.toHtml;const bC=zt.icon;zt.layer,zt.text,zt.counter;var ha={exports:{}},ma={exports:{}},je={};/** @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 zp;function wC(){if(zp)return je;zp=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,
|
|
588
|
+
*/var zp;function wC(){if(zp)return je;zp=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,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case u:case d:case r:case o:case i:case m:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case S:case v:case a:return A;default:return D}}case n:return D}}}function $(A){return E(A)===d}return je.AsyncMode=u,je.ConcurrentMode=d,je.ContextConsumer=c,je.ContextProvider=a,je.Element=t,je.ForwardRef=h,je.Fragment=r,je.Lazy=S,je.Memo=v,je.Portal=n,je.Profiler=o,je.StrictMode=i,je.Suspense=m,je.isAsyncMode=function(A){return $(A)||E(A)===u},je.isConcurrentMode=$,je.isContextConsumer=function(A){return E(A)===c},je.isContextProvider=function(A){return E(A)===a},je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},je.isForwardRef=function(A){return E(A)===h},je.isFragment=function(A){return E(A)===r},je.isLazy=function(A){return E(A)===S},je.isMemo=function(A){return E(A)===v},je.isPortal=function(A){return E(A)===n},je.isProfiler=function(A){return E(A)===o},je.isStrictMode=function(A){return E(A)===i},je.isSuspense=function(A){return E(A)===m},je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===d||A===o||A===i||A===m||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===S||A.$$typeof===v||A.$$typeof===a||A.$$typeof===c||A.$$typeof===h||A.$$typeof===T||A.$$typeof===b||A.$$typeof===C||A.$$typeof===x)},je.typeOf=E,je}var Fe={};/** @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 Gp;function SC(){return Gp||(Gp=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,
|
|
595
|
+
*/var Gp;function SC(){return Gp||(Gp=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,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===i||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===v||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===b||ie.$$typeof===C||ie.$$typeof===x)}function $(ie){if(typeof ie=="object"&&ie!==null){var pe=ie.$$typeof;switch(pe){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case i:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case v:case a:return ft;default:return pe}}case n:return pe}}}var A=u,D=d,R=c,F=a,B=t,Z=h,ee=r,se=S,ge=v,le=n,fe=o,he=i,Y=m,U=!1;function V(ie){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.")),O(ie)||$(ie)===u}function O(ie){return $(ie)===d}function k(ie){return $(ie)===c}function K(ie){return $(ie)===a}function ae(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ce(ie){return $(ie)===h}function z(ie){return $(ie)===r}function J(ie){return $(ie)===S}function oe(ie){return $(ie)===v}function re(ie){return $(ie)===n}function de(ie){return $(ie)===o}function Ce(ie){return $(ie)===i}function Ve(ie){return $(ie)===m}Fe.AsyncMode=A,Fe.ConcurrentMode=D,Fe.ContextConsumer=R,Fe.ContextProvider=F,Fe.Element=B,Fe.ForwardRef=Z,Fe.Fragment=ee,Fe.Lazy=se,Fe.Memo=ge,Fe.Portal=le,Fe.Profiler=fe,Fe.StrictMode=he,Fe.Suspense=Y,Fe.isAsyncMode=V,Fe.isConcurrentMode=O,Fe.isContextConsumer=k,Fe.isContextProvider=K,Fe.isElement=ae,Fe.isForwardRef=ce,Fe.isFragment=z,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=re,Fe.isProfiler=de,Fe.isStrictMode=Ce,Fe.isSuspense=Ve,Fe.isValidElementType=E,Fe.typeOf=$}()),Fe}var Yp;function Hp(){return Yp||(Yp=1,process.env.NODE_ENV==="production"?ma.exports=wC():ma.exports=SC()),ma.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var Gc,qp;function TC(){if(qp)return Gc;qp=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
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,
|
|
601
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kC(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,c=e.flash,u=e.spin,
|
|
599
|
+
*/var Gc,qp;function TC(){if(qp)return Gc;qp=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 Gc=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 p=0;p<d.length;p++)n.call(c,d[p])&&(u[d[p]]=c[d[p]])}}return u},Gc}var Yc,Kp;function Hc(){if(Kp)return Yc;Kp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Yc=e,Yc}var qc,Xp;function Zp(){return Xp||(Xp=1,qc=Function.call.bind(Object.prototype.hasOwnProperty)),qc}var Kc,Jp;function EC(){if(Jp)return Kc;Jp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hc(),n={},r=Zp();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 p=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 p.name="Invariant Violation",p}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 v=d?d():"";e("Failed "+c+" type: "+m.message+(v??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Kc=i,Kc}var Xc,Qp;function CC(){if(Qp)return Xc;Qp=1;var e=Hp(),t=TC(),n=Hc(),r=Zp(),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 a(){return null}return Xc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(O){var k=O&&(d&&O[d]||O[h]);if(typeof k=="function")return k}var p="<<anonymous>>",v={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:C(),arrayOf:E,element:$(),elementType:A(),instanceOf:D,node:Z(),objectOf:F,oneOf:R,oneOfType:B,shape:se,exact:ge};function S(O,k){return O===k?O!==0||1/O===1/k:O!==O&&k!==k}function x(O,k){this.message=O,this.data=k&&typeof k=="object"?k:{},this.stack=""}x.prototype=Error.prototype;function T(O){if(process.env.NODE_ENV!=="production")var k={},K=0;function ae(z,J,oe,re,de,Ce,Ve){if(re=re||p,Ce=Ce||oe,Ve!==n){if(u){var ie=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 ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=re+":"+oe;!k[pe]&&K<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+re+"`. 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,K++)}}return J[oe]==null?z?J[oe]===null?new x("The "+de+" `"+Ce+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new x("The "+de+" `"+Ce+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:O(J,oe,re,de,Ce)}var ce=ae.bind(null,!1);return ce.isRequired=ae.bind(null,!0),ce}function b(O){function k(K,ae,ce,z,J,oe){var re=K[ae],de=he(re);if(de!==O){var Ce=Y(re);return new x("Invalid "+z+" `"+J+"` of type "+("`"+Ce+"` supplied to `"+ce+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return T(k)}function C(){return T(a)}function E(O){function k(K,ae,ce,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var oe=K[ae];if(!Array.isArray(oe)){var re=he(oe);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+ce+"`, expected an array."))}for(var de=0;de<oe.length;de++){var Ce=O(oe,de,ce,z,J+"["+de+"]",n);if(Ce instanceof Error)return Ce}return null}return T(k)}function $(){function O(k,K,ae,ce,z){var J=k[K];if(!c(J)){var oe=he(J);return new x("Invalid "+ce+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement."))}return null}return T(O)}function A(){function O(k,K,ae,ce,z){var J=k[K];if(!e.isValidElementType(J)){var oe=he(J);return new x("Invalid "+ce+" `"+z+"` of type "+("`"+oe+"` supplied to `"+ae+"`, expected a single ReactElement type."))}return null}return T(O)}function D(O){function k(K,ae,ce,z,J){if(!(K[ae]instanceof O)){var oe=O.name||p,re=V(K[ae]);return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+ce+"`, expected ")+("instance of `"+oe+"`."))}return null}return T(k)}function R(O){if(!Array.isArray(O))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 k(K,ae,ce,z,J){for(var oe=K[ae],re=0;re<O.length;re++)if(S(oe,O[re]))return null;var de=JSON.stringify(O,function(Ve,ie){var pe=Y(ie);return pe==="symbol"?String(ie):ie});return new x("Invalid "+z+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+ce+"`, expected one of "+de+"."))}return T(k)}function F(O){function k(K,ae,ce,z,J){if(typeof O!="function")return new x("Property `"+J+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type "+("`"+re+"` supplied to `"+ce+"`, expected an object."));for(var de in oe)if(r(oe,de)){var Ce=O(oe,de,ce,z,J+"."+de,n);if(Ce instanceof Error)return Ce}return null}return T(k)}function B(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<O.length;k++){var K=O[k];if(typeof K!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+U(K)+" at index "+k+"."),a}function ae(ce,z,J,oe,re){for(var de=[],Ce=0;Ce<O.length;Ce++){var Ve=O[Ce],ie=Ve(ce,z,J,oe,re,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&de.push(ie.data.expectedType)}var pe=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new x("Invalid "+oe+" `"+re+"` supplied to "+("`"+J+"`"+pe+"."))}return T(ae)}function Z(){function O(k,K,ae,ce,z){return le(k[K])?null:new x("Invalid "+ce+" `"+z+"` supplied to "+("`"+ae+"`, expected a ReactNode."))}return T(O)}function ee(O,k,K,ae,ce){return new x((O||"React class")+": "+k+" type `"+K+"."+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function se(O){function k(K,ae,ce,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+ce+"`, expected `object`."));for(var de in O){var Ce=O[de];if(typeof Ce!="function")return ee(ce,z,J,de,Y(Ce));var Ve=Ce(oe,de,ce,z,J+"."+de,n);if(Ve)return Ve}return null}return T(k)}function ge(O){function k(K,ae,ce,z,J){var oe=K[ae],re=he(oe);if(re!=="object")return new x("Invalid "+z+" `"+J+"` of type `"+re+"` "+("supplied to `"+ce+"`, expected `object`."));var de=t({},K[ae],O);for(var Ce in de){var Ve=O[Ce];if(r(O,Ce)&&typeof Ve!="function")return ee(ce,z,J,Ce,Y(Ve));if(!Ve)return new x("Invalid "+z+" `"+J+"` key `"+Ce+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(K[ae],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var ie=Ve(oe,Ce,ce,z,J+"."+Ce,n);if(ie)return ie}return null}return T(k)}function le(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(le);if(O===null||c(O))return!0;var k=m(O);if(k){var K=k.call(O),ae;if(k!==O.entries){for(;!(ae=K.next()).done;)if(!le(ae.value))return!1}else for(;!(ae=K.next()).done;){var ce=ae.value;if(ce&&!le(ce[1]))return!1}}else return!1;return!0;default:return!1}}function fe(O,k){return O==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function he(O){var k=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":fe(k,O)?"symbol":k}function Y(O){if(typeof O>"u"||O===null)return""+O;var k=he(O);if(k==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return k}function U(O){var k=Y(O);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function V(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return v.checkPropTypes=i,v.resetWarningCache=i.resetWarningCache,v.PropTypes=v,v},Xc}var Zc,e0;function PC(){if(e0)return Zc;e0=1;var e=Hc();function t(){}function n(){}return n.resetWarningCache=t,Zc=function(){function r(a,c,u,d,h,m){if(m!==e){var p=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 p.name="Invariant Violation",p}}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 t0;function AC(){if(t0)return ha.exports;if(t0=1,process.env.NODE_ENV!=="production"){var e=Hp(),t=!0;ha.exports=CC()(e.isElement,t)}else ha.exports=PC()();return ha.exports}var MC=AC();const $e=Nm(MC);function n0(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 Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(n),!0).forEach(function(r){Bi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function Bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OC(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 _C(e,t){if(e==null)return{};var n=OC(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 Jc(e){return IC(e)||$C(e)||DC(e)||NC()}function IC(e){if(Array.isArray(e))return Qc(e)}function $C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DC(e,t){if(e){if(typeof e=="string")return Qc(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 Qc(e,t)}}function Qc(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 NC(){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 kC(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,p=e.fixedWidth,v=e.inverse,S=e.border,x=e.listItem,T=e.flip,b=e.size,C=e.rotation,E=e.pull,$=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":c,"fa-spin":u,"fa-spin-reverse":h,"fa-spin-pulse":d,"fa-pulse":m,"fa-fw":p,"fa-inverse":v,"fa-border":S,"fa-li":x,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Bi(t,"fa-".concat(b),typeof b<"u"&&b!==null),Bi(t,"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),Bi(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Bi(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys($).map(function(A){return $[A]?A:null}).filter(function(A){return A})}function LC(e){return e=e-0,e===e}function r0(e){return LC(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var RC=["style"];function jC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function FC(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=r0(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[jC(i)]=o:t[i]=o,t},{})}function i0(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 i0(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=FC(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[r0(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=_C(n,RC);return i.attrs.style=Mn(Mn({},i.attrs.style),a),e.apply(void 0,[t.tag,Mn(Mn({},i.attrs),c)].concat(Jc(r)))}var s0=!1;try{s0=process.env.NODE_ENV==="production"}catch{}function VC(){if(!s0&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function o0(e){if(e&&pa(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(zc.icon)return zc.icon(e);if(e===null)return null;if(e&&pa(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 eu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Bi({},e,t):{}}var a0={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},Pe=_.forwardRef(function(e,t){var n=Mn(Mn({},a0),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=o0(r),m=eu("classes",[].concat(Jc(kC(n)),Jc((a||"").split(" ")))),p=eu("transform",typeof n.transform=="string"?zc.transform(n.transform):n.transform),v=eu("mask",o0(i)),S=bC(h,Mn(Mn(Mn(Mn({},m),p),v),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return VC("Could not find icon",h),null;var x=S.abstract,T={ref:t};return Object.keys(n).forEach(function(b){a0.hasOwnProperty(b)||(T[b]=n[b])}),BC(x[0],T)});Pe.displayName="FontAwesomeIcon",Pe.propTypes={beat:$e.bool,border:$e.bool,beatFade:$e.bool,bounce:$e.bool,className:$e.string,fade:$e.bool,flash:$e.bool,mask:$e.oneOfType([$e.object,$e.array,$e.string]),maskId:$e.string,fixedWidth:$e.bool,inverse:$e.bool,flip:$e.oneOf([!0,!1,"horizontal","vertical","both"]),icon:$e.oneOfType([$e.object,$e.array,$e.string]),listItem:$e.bool,pull:$e.oneOf(["right","left"]),pulse:$e.bool,rotation:$e.oneOf([0,90,180,270]),shake:$e.bool,size:$e.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:$e.bool,spinPulse:$e.bool,spinReverse:$e.bool,symbol:$e.oneOfType([$e.bool,$e.string]),title:$e.string,titleId:$e.string,transform:$e.oneOfType([$e.string,$e.object]),swapOpacity:$e.bool};var BC=i0.bind(null,_.createElement);const WC=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:i=!1})=>y.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
|
|
@@ -610,31 +610,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
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 UC={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"]},zC={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"]},GC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},YC={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"]},HC={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"]},qC={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"]},KC={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"]},l0={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"]},tu={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"]},XC={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"]},ZC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},JC={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"]},c0={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"]},QC={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"]},nu={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"]},ru=_.createContext({});function iu(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const su=typeof window<"u",u0=su?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),ou=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let eP=class extends Q.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 tP({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(ou);return _.useInsertionEffect(()=>{const{width:c,height:u,top:
|
|
613
|
+
*/const UC={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"]},zC={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"]},GC={prefix:"fal",iconName:"chevron-up",icon:[512,512,[],"f077","M244.7 116.7c6.2-6.2 16.4-6.2 22.6 0l192 192c6.2 6.2 6.2 16.4 0 22.6s-16.4 6.2-22.6 0L256 150.6 75.3 331.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l192-192z"]},YC={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"]},HC={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"]},qC={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"]},KC={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"]},l0={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"]},tu={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"]},XC={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"]},ZC={prefix:"fal",iconName:"chevron-down",icon:[512,512,[],"f078","M267.3 395.3c-6.2 6.2-16.4 6.2-22.6 0l-192-192c-6.2-6.2-6.2-16.4 0-22.6s16.4-6.2 22.6 0L256 361.4 436.7 180.7c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6l-192 192z"]},JC={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"]},c0={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"]},QC={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"]},nu={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"]},ru=_.createContext({});function iu(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const su=typeof window<"u",u0=su?_.useLayoutEffect:_.useEffect,ga=_.createContext(null),ou=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});let eP=class extends Q.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 tP({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(ou);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
614
614
|
[data-motion-pop-id="${r}"] {
|
|
615
615
|
position: absolute !important;
|
|
616
616
|
width: ${c}px !important;
|
|
617
617
|
height: ${u}px !important;
|
|
618
618
|
${p}px !important;
|
|
619
|
-
top: ${
|
|
619
|
+
top: ${d}px !important;
|
|
620
620
|
}
|
|
621
|
-
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(eP,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const nP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=iu(rP),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(tP,{isPresent:n,anchorX:c,children:e})),y.jsx(ga.Provider,{value:m,children:e})};function rP(){return new Map}function f0(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function d0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const iP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=f0(a),h=_.useMemo(()=>d0(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),v=_.useRef(h),S=iu(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);u0(()=>{p.current=!1,v.current=h;for(let P=0;P<b.length;P++){const D=ya(b[P]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let P=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ya(j);m.includes(F)||(P.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(P=E),C(d0(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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:$}=_.useContext(ru);return y.jsx(y.Fragment,{children:b.map(P=>{const D=ya(P),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Z=>{Z||(W=!1)}),W&&($==null||$(),C(v.current),a&&(f==null||f()),r&&r())};return y.jsx(nP,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:P},D)})})};function au(e,t){e.indexOf(t)===-1&&e.push(t)}function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Wi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Wi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const sP={useManualTiming:!1};function cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ui=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let uu=class{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>lu(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,Kn=e=>e/1e3;function h0(e,t){return t?e*(1e3/t):0}const m0=new Set;function va(e,t,n){e||m0.has(t)||(console.warn(t),m0.add(t))}const oP=cu(()=>window.ScrollTimeline!==void 0);let aP=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(oP()&&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")}},lP=class extends aP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fu(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function p0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function hu(e){return typeof e=="function"}function g0(e,t){e.timeline=t,e.onfinish=null}const mu=e=>Array.isArray(e)&&typeof e[0]=="number",cP={linearEasing:void 0};function uP(e,t){const n=cu(e);return()=>{var r;return(r=cP[t])!==null&&r!==void 0?r:n()}}const xa=uP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),y0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ui(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function v0(e){return!!(typeof e=="function"&&xa()||!e||typeof e=="string"&&(e in pu||xa())||mu(e)||Array.isArray(e)&&e.every(v0))}const qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function x0(e,t){if(e)return typeof e=="function"&&xa()?y0(e,t):mu(e)?qs(e):Array.isArray(e)?e.map(n=>x0(n,t)||pu.easeOut):pu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],b0={value:null};function fP(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&b0.value&&b0.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const dP=40;function w0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((b,C)=>(b[C]=fP(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,dP),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ba.reduce((b,C)=>{const E=a[C];return b[C]=($,P=!1,D=!1)=>(n||S(),E.schedule($,P,D)),b},{}),cancel:b=>{for(let C=0;C<ba.length;C++)a[ba[C]].cancel(b)},state:i,steps:a}}const{schedule:He,cancel:xr,state:yt,steps:gu}=w0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:yu}=w0(queueMicrotask,!1);let wa;function hP(){wa=void 0}const _n={now:()=>(wa===void 0&&_n.set(yt.isProcessing||sP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(hP)}},yn={x:!1,y:!1};function S0(){return yn.x||yn.y}function mP(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 pP(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 T0(e,t){const n=pP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function E0(e){return!(e.pointerType==="touch"||S0())}function gP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{if(!E0(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{E0(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const C0=(e,t)=>t?e===t?!0:C0(e,t.parentElement):!1,vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vP(e){return yP.has(e.tagName)||e.tabIndex!==-1}const Ks=new WeakSet;function P0(e){return t=>{t.key==="Enter"&&e(t)}}function xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P0(()=>{if(Ks.has(n))return;xu(n,"down");const i=P0(()=>{xu(n,"up")}),o=()=>xu(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 A0(e){return vu(e)&&!S0()}function bP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{const u=c.currentTarget;if(!A0(c)||Ks.has(u))return;Ks.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!A0(v)||!Ks.has(u))&&(Ks.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||C0(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",f=>xP(f,i)),!vP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const M0=30,wP=e=>!isNaN(parseFloat(e));let SP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=_n.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=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wP(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 uu);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=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return h0(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 Xs(e,t){return new SP(e,t)}const O0=_.createContext({strict:!1}),_0={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"]},zi={};for(const e in _0)zi[e]={isEnabled:t=>_0[e].some(n=>!!t[n])};function TP(e){for(const t in e)zi[t]={...zi[t],...e[t]}}const EP=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 Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EP.has(e)}let I0=e=>!Sa(e);function CP(e){e&&(I0=t=>t.startsWith("on")?!Sa(t):e(t))}try{CP(require("@emotion/is-prop-valid").default)}catch{}function PP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(I0(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AP(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 Ta=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...bu];function Ca(e){return Ea(e.animate)||wu.some(t=>Zs(e[t]))}function $0(e){return!!(Ca(e)||e.variants)}function MP(e,t){if(Ca(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 OP(e){const{initial:t,animate:n}=MP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[D0(t),D0(n)])}function D0(e){return Array.isArray(e)?e.join(" "):e}const _P=Symbol.for("motionComponentSymbol");function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gi(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N0="data-"+Su("framerAppearId"),k0=_.createContext({});function $P(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(O0),f=_.useContext(ga),h=_.useContext(ou).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(k0);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&DP(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[N0],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return u0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),yu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function DP(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:L0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Gi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function L0(e){if(e)return e.options.allowProjection!==!1?e.projection:L0(e.parent)}function NP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&TP(e);function c(f,h){let m;const p={..._.useContext(ou),...f,layoutId:kP(f)},{isStatic:v}=p,S=OP(f),x=r(f,v);if(!v&&su){LP(p,e);const T=RP(p);m=T.MeasureLayout,S.visualElement=$P(i,x,p,t,T.ProjectionNode)}return y.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,IP(x,S.visualElement,h),x,v,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=_.forwardRef(c);return u[_P]=i,u}function kP({layoutId:e}){const t=_.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function LP(e,t){const n=_.useContext(O0).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?Wi(!1,r):vr(!1,r)}}function RP(e){const{drag:t,layout:n}=zi;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 R0=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=R0("--"),jP=R0("var(--"),Eu=e=>jP(e)?FP.test(e.split("/*")[0].trim()):!1,FP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function VP(e){for(const t in e)Js[t]=e[t],Tu(t)&&(Js[t].isCSSVariable=!0)}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Yi);function j0(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),F0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...Hi,transform:e=>Xn(0,1,e)},Pa={...Hi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),br=eo("deg"),In=eo("%"),we=eo("px"),BP=eo("vh"),WP=eo("vw"),V0={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},UP={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},zP={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:br,skewX:br,skewY:br,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Qs,originX:V0,originY:V0,originZ:we},B0={...Hi,transform:Math.round},Cu={...UP,...zP,zIndex:B0,size:we,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:B0},GP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YP=Yi.length;function HP(e,t,n){let r="",i=!0;for(let o=0;o<YP;o++){const a=Yi[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 f=F0(c,Cu[a]);if(!u){i=!1;const h=GP[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Pu(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(ti.has(u)){a=!0;continue}else if(Tu(u)){i[u]=f;continue}else{const h=F0(f,Cu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=HP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W0(e,t,n){for(const r in t)!St(t[r])&&!j0(r,n)&&(e[r]=t[r])}function qP({transformTemplate:e},t){return _.useMemo(()=>{const n=Au();return Pu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KP(e,t){const n=e.style||{},r={};return W0(r,n,e),Object.assign(r,qP(e,t)),r}function XP(e,t){const n={},r=KP(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 ZP=["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 Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(ZP.indexOf(e)>-1||/[A-Z]/u.test(e))}const JP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function eA(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JP:QP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function U0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function tA(e,t,n){const r=U0(t,e.x,e.width),i=U0(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(Pu(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=tA(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&eA(p,a,c,u,!1)}const z0=()=>({...Au(),attrs:{}}),_u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nA(e,t,n,r){const i=_.useMemo(()=>{const o=z0();return Ou(o,t,_u(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};W0(o,e.style,e),i.style={...o,...i.style}}return i}function rA(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Mu(n)?nA:XP)(r,o,a,n),f=PP(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function G0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Iu(e,t,n,r){if(typeof t=="function"){const[i,o]=G0(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]=G0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $u=e=>Array.isArray(e),iA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sA=e=>$u(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return iA(t)?t.toValue():t}function oA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:aA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Y0=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>oA(e,t,r,i);return n?o():iu(o)};function aA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),f=$0(e);t&&f&&!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"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Iu(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||j0(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 lA={useVisualState:Y0({scrapeMotionValuesFromProps:Du,createRenderState:Au})};function H0(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 q0(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 K0=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 X0(e,t,n,r){q0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(K0.has(i)?i:Su(i),t.attrs[i])}function Z0(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const J0=["x","y","width","height","cx","cy","r"],cA={useVisualState:Y0({scrapeMotionValuesFromProps:Z0,createRenderState:z0,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<J0.length;c++){const u=J0[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{H0(n,r),He.render(()=>{Ou(r,i,_u(n.tagName),e.transformTemplate),X0(n,r)})})}})};function uA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Mu(r)?cA:lA,preloadedFeatures:e,useRender:rA(i),createVisualElement:t,Component:r};return NP(a)}}function to(e,t,n){const r=e.getProps();return Iu(r,t,n!==void 0?n:r.custom,e)}const Q0=new Set(["width","height","top","left","right","bottom",...Yi]);function fA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xs(n))}function dA(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=sA(o[a]);fA(e,a,c)}}function hA(e){return!!(St(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(hA(n))return n.add(t)}function eg(e){return e.props[N0]}const tg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mA=1e-7,pA=12;function gA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=tg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>mA&&++c<pA);return a}function no(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>gA(o,0,1,e,n);return o=>o===0||o===1?o:tg(i(o),t,r)}const ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=no(.33,1.53,.69,.99),ku=rg(ig),sg=ng(ku),og=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Lu=e=>1-Math.sin(Math.acos(e)),ag=rg(Lu),lg=ng(Lu),cg=e=>/^0[^.\s]+$/u.test(e);function yA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cg(e):!0}const ro=e=>Math.round(e*1e5)/1e5,Ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vA(e){return e==null}const xA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&xA.test(n)&&n.startsWith(e)||t&&!vA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ug=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ru);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},bA=e=>Xn(0,255,e),Fu={...Hi,transform:e=>Math.round(bA(e))},ni={test:ju("rgb","red"),parse:ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fu.transform(e)+", "+Fu.transform(t)+", "+Fu.transform(n)+", "+ro(Qs.transform(r))+")"};function wA(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 Vu={test:ju("#"),parse:wA,transform:ni.transform},qi={test:ju("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(ro(t))+", "+In.transform(ro(n))+", "+ro(Qs.transform(r))+")"},Tt={test:e=>ni.test(e)||Vu.test(e)||qi.test(e),parse:e=>ni.test(e)?ni.parse(e):qi.test(e)?qi.parse(e):Vu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):qi.transform(e)},SA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function TA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ru))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SA))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",dg="color",EA="var",CA="var(",hg="${}",PA=/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 io(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(PA,u=>(Tt.test(u)?(r.color.push(o),i.push(dg),n.push(Tt.parse(u))):u.startsWith(CA)?(r.var.push(o),i.push(EA),n.push(u)):(r.number.push(o),i.push(fg),n.push(parseFloat(u))),++o,hg)).split(hg);return{values:n,split:c,indexes:r,types:i}}function mg(e){return io(e).values}function pg(e){const{split:t,types:n}=io(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===fg?o+=ro(i[a]):c===dg?o+=Tt.transform(i[a]):o+=i[a]}return o}}const AA=e=>typeof e=="number"?0:e;function MA(e){const t=mg(e);return pg(e)(t.map(AA))}const wr={test:TA,parse:mg,createTransformer:pg,getAnimatableNone:MA},OA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ru)||[];if(!r)return e;const i=n.replace(r,"");let o=OA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Bu={...wr,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},$A={...Cu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Bu,WebkitFilter:Bu},gg=e=>$A[e];function yg(e,t){let n=gg(e);return n!==Bu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DA=new Set(["auto","none","0"]);function NA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!DA.has(o)&&io(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=yg(n,i)}const ri=e=>e*180/Math.PI,Wu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Uu(t)},kA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wu,rotateZ:Wu,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},Uu=e=>(e=e%360,e<0&&(e+=360),e),vg=Wu,xg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xg,scaleY:bg,scale:e=>(xg(e)+bg(e))/2,rotateX:e=>Uu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Uu(ri(Math.atan2(-e[2],e[0]))),rotateZ:vg,rotate:vg,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 wg(e){return e.includes("scale")?1:0}function zu(e,t){if(!e||e==="none")return wg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=LA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kA,i=c}if(!i)return wg(t);const o=r[t],a=i[1].split(",").map(jA);return typeof o=="function"?o(a):a[o]}const RA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zu(n,t)};function jA(e){return parseFloat(e.trim())}const Sg=e=>e===Hi||e===we,FA=new Set(["x","y","z"]),VA=Yi.filter(e=>!FA.has(e));function BA(e){const t=[];return VA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ki={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})=>zu(t,"x"),y:(e,{transform:t})=>zu(t,"y")};Ki.translateX=Ki.x,Ki.translateY=Ki.y;const ii=new Set;let Gu=!1,Yu=!1;function Tg(){if(Yu){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=BA(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)})}Yu=!1,Gu=!1,ii.forEach(e=>e.complete()),ii.clear()}function Eg(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yu=!0)})}function WA(){Eg(),Tg()}let Hu=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?(ii.add(this),Gu||(Gu=!0,He.read(Eg),He.resolveKeyframes(Tg))):(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 Cg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),UA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zA(e){const t=UA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const GA=4;function Pg(e,t,n=1){vr(n<=GA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=zA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Cg(a)?parseFloat(a):a}return Eu(i)?Pg(i,t,n+1):i}const Ag=e=>t=>t.test(e),Mg=[Hi,we,In,br,WP,BP,{test:e=>e==="auto",parse:e=>e}],Og=e=>Mg.find(Ag(e));let _g=class extends Hu{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Eu(f))){const h=Pg(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Q0.has(r)||t.length!==2)return;const[i,o]=t,a=Og(i),c=Og(o);if(a!==c)if(Sg(a)&&Sg(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)yA(t[i])&&r.push(i);r.length&&NA(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=Ki[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]=Ki[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}};const Ig=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function YA(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 HA(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=Ig(i,t),c=Ig(o,t);return Wi(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:YA(e)||(n==="spring"||hu(n))&&r}const qA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const KA=40;let $g=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=_n.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>KA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&WA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:f}=this.options;if(!f&&!HA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(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 qu(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 XA({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=qu(u,c,e+1/3),o=qu(u,c,e),a=qu(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 Ku=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ZA=[Vu,ni,qi],JA=e=>ZA.find(t=>t.test(e));function Dg(e){const t=JA(e);if(Wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===qi&&(n=XA(n)),n}const Ng=(e,t)=>{const n=Dg(e),r=Dg(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Ku(n.red,r.red,o),i.green=Ku(n.green,r.green,o),i.blue=Ku(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},QA=(e,t)=>n=>t(e(n)),so=(...e)=>e.reduce(QA),Xu=new Set(["none","hidden"]);function eM(e,t){return Xu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tM(e,t){return n=>tt(e,t,n)}function Zu(e){return typeof e=="number"?tM:typeof e=="string"?Eu(e)?Oa:Tt.test(e)?Ng:iM:Array.isArray(e)?kg:typeof e=="object"?Tt.test(e)?Ng:nM:Oa}function kg(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Zu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function nM(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 rM(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 iM=(e,t)=>{const n=wr.createTransformer(t),r=io(e),i=io(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?Xu.has(e)&&!i.values.length||Xu.has(t)&&!r.values.length?eM(e,t):so(kg(rM(r,i),i.values),n):(Wi(!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 Lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Zu(e)(e,t)}const sM=5;function Rg(e,t,n){const r=Math.max(t-sM,0);return h0(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},jg=.001;function oM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Wi(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=Ju(f,a),S=Math.exp(-m);return jg-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=Ju(Math.pow(f,2),a);return(-i(f)+jg>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=lM(i,o,c);if(e=On(e),isNaN(u))return{stiffness:nt.stiffness,damping:nt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const aM=12;function lM(e,t,n){let r=n;for(let i=1;i<aM;i++)r=r-e(r)/t(r);return r}function Ju(e,t){return e*Math.sqrt(1-t*t)}const cM=["duration","bounce"],uM=["stiffness","damping","mass"];function Fg(e,t){return t.some(n=>e[n]!==void 0)}function fM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Fg(e,uM)&&Fg(e,cM))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:nt.mass,stiffness:i,damping:o}}else{const n=oM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function Vg(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=fM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Kn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let E;if(x<1){const P=Ju(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(x===1)E=P=>a-Math.exp(-b*P)*(T+(S+b*T)*P);else{const P=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(P*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:v&&m||null,next:P=>{const D=E(P);if(v)c.done=P>=m;else{let j=0;x<1&&(j=P===0?On(S):Rg(E,P,D));const F=Math.abs(j)<=r,W=Math.abs(a-D)<=i;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(p0($),du),D=y0(j=>$.next(P*j).value,P,30);return P+"ms "+D}};return $}function Bg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=F=>-x*Math.exp(-F/r),E=F=>b+C(F),$=F=>{const W=C(F),Z=E(F);p.done=Math.abs(W)<=f,p.value=p.done?b:Z};let P,D;const j=F=>{v(p.value)&&(P=F,D=Vg({keyframes:[p.value,S(p.value)],velocity:Rg(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let W=!1;return!D&&P===void 0&&(W=!0,$(F),j(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&$(F),p)}}}const dM=no(.42,0,1,1),hM=no(0,0,.58,1),Wg=no(.42,0,.58,1),mM=e=>Array.isArray(e)&&typeof e[0]!="number",Ug={linear:Nt,easeIn:dM,easeInOut:Wg,easeOut:hM,circIn:Lu,circInOut:lg,circOut:ag,backIn:ku,backInOut:sg,backOut:ig,anticipate:og},zg=e=>{if(mu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return no(t,n,r,i)}else if(typeof e=="string")return vr(Ug[e]!==void 0,`Invalid easing type '${e}'`),Ug[e];return e};function pM(e,t,n){const r=[],i=n||Lg,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]||Nt:t;c=so(u,c)}r.push(c)}return r}function gM(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=pM(t,r,i),u=c.length,f=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 p=Ui(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Xn(e[0],e[o-1],h)):f}function yM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ui(0,t,r);e.push(tt(n,1,i))}}function vM(e){const t=[0];return yM(t,e.length-1),t}function xM(e,t){return e.map(n=>n*t)}function bM(e,t){return e.map(()=>t||Wg).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=mM(r)?r.map(zg):zg(r),o={done:!1,value:t[0]},a=xM(n&&n.length===t.length?n:vM(t),e),c=gM(a,t,{ease:Array.isArray(i)?i:bM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const wM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>xr(t),now:()=>yt.isProcessing?yt.timestamp:_n.now()}},SM={decay:Bg,inertia:Bg,tween:oo,keyframes:oo,spring:Vg},TM=e=>e/100;let Qu=class extends $g{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)||Hu,c=(u,f)=>this.onKeyframesResolved(u,f);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=hu(n)?n:SM[n]||oo;let u,f;process.env.NODE_ENV!=="production"&&c!==oo&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==oo&&typeof t[0]!="number"&&(u=so(TM,Lg(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=p0(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=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 b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let W=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&W--,W=Math.min(W,v+1),!!(W%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const P=C?{done:!1,value:u[0]}:$.next(E);c&&(P.value=c(P.value));let{done:D}=P;!C&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(P.value=Ma(u,this.options,i)),T&&T(P.value),j&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(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=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wM,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 EM=new Set(["opacity","clipPath","filter","transform"]);function CM(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=x0(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const PM=cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,AM=2e4;function MM(e){return hu(e.type)||e.type==="spring"||!v0(e.ease)}function OM(e,t){const n=new Qu({...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<AM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const Gg={anticipate:og,backInOut:sg,circInOut:lg};function _M(e){return e in Gg}let Yg=class extends $g{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new _g(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&xa()&&_M(o)&&(o=Gg[o]),MM(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=OM(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=CM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(g0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(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 Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(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 Nt;const{animation:r}=n;g0(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:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new Qu({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=On(this.time);f.setWithVelocity(S.sample(x-_a).value,S.sample(x).value,_a)}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:f}=n.owner.getProps();return PM()&&r&&EM.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const IM={type:"spring",stiffness:500,damping:25,restSpeed:10},$M=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DM={type:"keyframes",duration:.8},NM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kM=(e,{keyframes:t})=>t.length>2?DM:ti.has(e)?e.startsWith("scale")?$M(t[1]):IM:NM;function LM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const ef=(e,t,n,r={},i,o)=>a=>{const c=fu(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-On(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};LM(c)||(h={...h,...kM(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 p=Ma(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new lP([])}return!o&&Yg.supports(h)?new Yg(h):new Qu(h)};function RM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hg(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&RM(h,m))continue;const S={delay:n,...fu(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=eg(e);if(b){const C=window.MotionHandoffAnimation(b,m,He);C!==null&&(S.startTime=C,x=!0)}}Nu(e,m),p.start(ef(m,p,v,e.shouldReduceMotion&&Q0.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{He.update(()=>{c&&dA(e,c)})}),f}function tf(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 a=i?()=>Promise.all(Hg(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return jM(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function jM(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(FM).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(tf(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function FM(e,t){return e.sortNodePosition(t)}function VM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tf(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Hg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qg(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 BM=wu.length;function Kg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<BM;n++){const r=wu[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const WM=[...bu].reverse(),UM=bu.length;function zM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VM(e,n,r)))}function GM(e){let t=zM(e),n=Xg(),r=!0;const i=u=>(f,h)=>{var m;const p=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=Kg(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<UM;T++){const b=WM[T],C=n[b],E=f[b]!==void 0?f[b]:h[b],$=Zs(E),P=b===u?C.isActive:null;P===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&P===null||!E&&!C.prevProp||Ea(E)||typeof E=="boolean")continue;const j=YM(C.prevProp,E);let F=j||b===u&&C.isActive&&!D&&$||T>S&&$,W=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});P===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(W=!0,p.delete(V)),C.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;$u(B)&&$u(Y)?O=!qg(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||W)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=to(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xg(),r=!0}}}function YM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qg(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xg(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},HM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=GM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(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)}},qM=0;const KM={animation:{Feature:HM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=qM++}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 ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lo(e){return{point:{x:e.pageX,y:e.pageY}}}const XM=e=>t=>vu(t)&&e(t,lo(t));function co(e,t,n,r){return ao(e,t,XM(n),r)}function Zg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function JM(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 Jg=1e-4,QM=1-Jg,eO=1+Jg,Qg=.01,tO=0-Qg,nO=0+Qg;function Ot(e){return e.max-e.min}function rO(e,t,n){return Math.abs(e-t)<=n}function ey(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QM&&e.scale<=eO||isNaN(e.scale))&&(e.scale=1),(e.translate>=tO&&e.translate<=nO||isNaN(e.translate))&&(e.translate=0)}function uo(e,t,n,r){ey(e.x,t.x,n.x,r?r.originX:void 0),ey(e.y,t.y,n.y,r?r.originY:void 0)}function ty(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function iO(e,t,n){ty(e.x,t.x,n.x),ty(e.y,t.y,n.y)}function ny(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function fo(e,t,n){ny(e.x,t.x,n.x),ny(e.y,t.y,n.y)}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:ry(),y:ry()}),iy=()=>({min:0,max:0}),at=()=>({x:iy(),y:iy()});function tn(e){return[e("x"),e("y")]}function nf(e){return e===void 0||e===1}function rf({scale:e,scaleX:t,scaleY:n}){return!nf(e)||!nf(t)||!nf(n)}function oi(e){return rf(e)||sy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sy(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ay(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function sf(e,t=0,n=1,r,i){e.min=ay(e.min,t,n,r,i),e.max=ay(e.max,t,n,r,i)}function ly(e,{x:t,y:n}){sf(e.x,t.translate,t.scale,t.originPoint),sf(e.y,n.translate,n.scale,n.originPoint)}const cy=.999999999999,uy=1.0000000000001;function sO(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&&Ji(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ly(e,a)),r&&oi(o.latestValues)&&Ji(e,o.latestValues))}t.x<uy&&t.x>cy&&(t.x=1),t.y<uy&&t.y>cy&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function fy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);sf(e,t,n,o,r)}function Ji(e,t){fy(e.x,t.x,t.scaleX,t.scale,t.originX),fy(e.y,t.y,t.scaleY,t.scale,t.originY)}function dy(e,t){return Zg(JM(e.getBoundingClientRect(),t))}function oO(e,t,n){const r=dy(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const hy=({current:e})=>e?e.ownerDocument.defaultView:null,my=(e,t)=>Math.abs(e-t);function aO(e,t){const n=my(e.x,t.x),r=my(e.y,t.y);return Math.sqrt(n**2+r**2)}let py=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=af(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=aO(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=yt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=of(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=af(m.type==="pointercancel"?this.lastMoveEventInfo:of(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!vu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=lo(t),c=of(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=yt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,af(c,this.history)),this.removeListeners=so(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(),xr(this.updatePoint)}};function of(e,t){return t?{point:t(e.point)}:e}function gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:gy(e,yy(t)),offset:gy(e,lO(t)),velocity:cO(t,.1)}}function lO(e){return e[0]}function yy(e){return e[e.length-1]}function cO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(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 uO(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 vy(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 fO(e,{top:t,left:n,bottom:r,right:i}){return{x:vy(e.x,n,i),y:vy(e.y,t,r)}}function xy(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 dO(e,t){return{x:xy(e.x,t.x),y:xy(e.y,t.y)}}function hO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Ui(t.min,t.max-r,e.min):r>i&&(n=Ui(e.min,e.max-i,t.min)),Xn(0,1,n)}function mO(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 lf=.35;function pO(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:by(e,"left","right"),y:by(e,"top","bottom")}}function by(e,t,n){return{min:wy(e,t),max:wy(e,n)}}function wy(e,t){return typeof e=="number"?e:e[t]||0}const gO=new WeakMap;let yO=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(lo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mP(p),!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(T=>{let b=this.getAxisMotionValue(T).get()||0;if(In.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=Ot(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&He.postRender(()=>S(h,m)),Nu(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=vO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new py(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:hy(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||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=uO(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&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=fO(i.layoutBox,n):this.constraints=!1,this.elastic=pO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=mO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(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=oO(r,i.root,this.visualElement.getTransformPagePoint());let a=dO(i.layout.layoutBox,o);if(n){const c=n(ZM(a));this.hasMutatedConstraints=!!c,c&&(a=Zg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=tn(h=>{if(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Nu(this.visualElement,t),r.start(ef(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(!$a(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(!Gi(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]=hO({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(!$a(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:f}=this.constraints[a];c.set(tt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;gO.set(this.visualElement,this);const t=this.visualElement.current,n=co(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Gi(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=ao(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(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=lf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let xO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new yO(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 Sy=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};let bO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new py(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sy(t),onStart:Sy(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 Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=Ty(e,t.target.x),r=Ty(e,t.target.y);return`${n}% ${r}%`}},wO={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 f=tt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};let SO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;VP(TO),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()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yu.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 Ey(e){const[t,n]=f0(),r=_.useContext(ru);return y.jsx(SO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(k0),isPresent:t,safeToRemove:n})}const TO={borderRadius:{...ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:wO};function EO(e,t,n){const r=St(e)?e:Xs(e);return r.start(ef("",r,t,n)),r.animation}function CO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const PO=(e,t)=>e.depth-t.depth;let AO=class{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PO),this.isDirty=!1,this.children.forEach(t)}};function MO(e,t){const n=_n.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xr(r),e(o-t))};return He.read(r,!0),()=>xr(r)}const Cy=["TopLeft","TopRight","BottomLeft","BottomRight"],OO=Cy.length,Py=e=>typeof e=="string"?parseFloat(e):e,Ay=e=>typeof e=="number"||we.test(e);function _O(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,IO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,$O(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<OO;a++){const c=`border${Cy[a]}Radius`;let u=My(t,c),f=My(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Ay(u)===Ay(f)?(e[c]=Math.max(tt(Py(u),Py(f),r),0),(In.test(f)||In.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function My(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const IO=Oy(0,.5,ag),$O=Oy(.5,.95,Nt);function Oy(e,t,n){return r=>r<e?0:r>t?1:n(Ui(e,t,r))}function _y(e,t){e.min=t.min,e.max=t.max}function nn(e,t){_y(e.x,t.x),_y(e.y,t.y)}function Iy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $y(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function DO(e,t=0,n=1,r=.5,i,o=e,a=e){if(In.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=$y(e.min,t,n,c,i),e.max=$y(e.max,t,n,c,i)}function Dy(e,t,[n,r,i],o,a){DO(e,t[n],t[r],t[i],t.scale,o,a)}const NO=["x","scaleX","originX"],kO=["y","scaleY","originY"];function Ny(e,t,n,r){Dy(e.x,t,NO,n?n.x:void 0,r?r.x:void 0),Dy(e.y,t,kO,n?n.y:void 0,r?r.y:void 0)}function ky(e){return e.translate===0&&e.scale===1}function Ly(e){return ky(e.x)&&ky(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function LO(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function jy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fy(e,t){return jy(e.x,t.x)&&jy(e.y,t.y)}function Vy(e){return Ot(e.x)/Ot(e.y)}function By(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let RO=class{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(lu(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 jO(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 cf=["","X","Y","Z"],FO={visibility:"hidden"},Wy=1e3;let VO=0;function uf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Uy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eg(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&&Uy(r)}function zy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=VO++,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(UO),this.nodes.forEach(qO),this.nodes.forEach(KO),this.nodes.forEach(zO)},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 AO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uu),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=CO(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=MO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||e4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Fy(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...fu(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Yy(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,xr(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(XO),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&&Uy(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Gy);return}this.isUpdating||this.nodes.forEach(YO),this.isUpdating=!1,this.nodes.forEach(HO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.clearAllSnapshots();const c=_n.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,gu.update.process(yt),gu.preRender.process(yt),gu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(GO),this.sharedNodes.forEach(ZO)}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&&!Ot(this.snapshot.measuredBox.x)&&!Ot(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&&!Ly(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||oi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),t4(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(n4))){const{scroll:h}=this.root;h&&(Zi(u.x,h.offset.x),Zi(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Zi(u.x,m.offset.x),Zi(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=at();nn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Ji(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Ji(u,h.latestValues)}return oi(this.latestValues)&&Ji(u,this.latestValues),u}removeTransform(a){const c=at();nn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!oi(f.latestValues))continue;rf(f.latestValues)&&f.updateSnapshot();const h=at(),m=f.measurePageBox();nn(h,m),Ny(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Ny(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),iO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ly(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.target,v.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||sy(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===yt.timestamp&&(f=!1),f)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 p=this.treeScale.x,v=this.treeScale.y;sO(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():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!By(this.projectionDelta.x,this.prevProjectionDelta.x)||!By(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=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(QO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const P=$/1e3;Hy(m.x,a.x,P),Hy(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),JO(this.relativeTarget,this.relativeTargetOrigin,p,P),E&&LO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),x&&(this.animationValues=h,_O(h,f,this.latestValues,P,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=EO(0,Wy,{...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(Wy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&Jy(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Ji(c,h),uo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new RO),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&uf("z",a,f,this.animationValues);for(let h=0;h<cf.length;h++)uf(`rotate${cf[h]}`,a,f,this.animationValues),uf(`skew${cf[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return FO;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=jO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Js){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=Js[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let P=0;P<$;P++)f[b[P]]=E}else C?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Aa(a==null?void 0:a.pointerEvents)||"":"none"),f}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(Gy),this.root.sharedNodes.clear()}}}function BO(e){e.updateLayout()}function WO(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 p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(p);p.min=r[m].min,p.max=p.min+v}):Jy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=Xi();uo(c,r,n.layoutBox);const u=Xi();a?uo(u,e.applyTransform(i,!0),n.measuredBox):uo(u,r,n.layoutBox);const f=!Ly(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=at();fo(S,n.layoutBox,p.layoutBox);const x=at();fo(x,r,v.layoutBox),Fy(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function UO(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 zO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GO(e){e.clearSnapshot()}function Gy(e){e.clearMeasurements()}function YO(e){e.isLayoutDirty=!1}function HO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qO(e){e.resolveTargetDelta()}function KO(e){e.calcProjection()}function XO(e){e.resetSkewAndRotation()}function ZO(e){e.removeLeadSnapshot()}function Hy(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 qy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function JO(e,t,n,r){qy(e.x,t.x,n.x,r),qy(e.y,t.y,n.y,r)}function QO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e4={duration:.45,ease:[.4,0,.1,1]},Ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xy=Ky("applewebkit/")&&!Ky("chrome/")?Math.round:Nt;function Zy(e){e.min=Xy(e.min),e.max=Xy(e.max)}function t4(e){Zy(e.x),Zy(e.y)}function Jy(e,t,n){return e==="position"||e==="preserve-aspect"&&!rO(Vy(t),Vy(n),.2)}function n4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r4=zy({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Qy=zy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new r4({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),i4={pan:{Feature:bO},drag:{Feature:xO,ProjectionNode:Qy,MeasureLayout:Ey}};function ev(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,lo(t)))}let s4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=gP(t,(n,r)=>(ev(this.node,r,"Start"),i=>ev(this.node,i,"End"))))}unmount(){}},o4=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=so(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function tv(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,lo(t)))}let a4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=bP(t,(n,r)=>(tv(this.node,r,"Start"),(i,{success:o})=>tv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const df=new WeakMap,hf=new WeakMap,l4=e=>{const t=df.get(e.target);t&&t(e)},c4=e=>{e.forEach(l4)};function u4({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const r=hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(c4,{root:e,...t})),r[i]}function f4(e,t,n){const r=u4(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const d4={some:0,all:1};let h4=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:d4[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return f4(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(m4(t,n))&&this.startObserver()}unmount(){}};function m4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p4={inView:{Feature:h4},tap:{Feature:a4},focus:{Feature:o4},hover:{Feature:s4}},g4={layout:{ProjectionNode:Qy,MeasureLayout:Ey}},mf={current:null},nv={current:!1};function y4(){if(nv.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}const v4=[...Mg,Tt,wr],x4=e=>v4.find(Ag(e)),b4=new WeakMap;function w4(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"&&va(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,Xs(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,Xs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let S4=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=Hu,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 v=_n.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,He.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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=Ca(n),this.isVariantNode=$0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&St(S)&&S.set(u[v],!1)}}mount(t){this.current=t,b4.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)),nv.current||y4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.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(),xr(this.notifyUpdate),xr(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 zi){const n=zi[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<rv.length;r++){const i=rv[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=w4(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=Xs(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"&&(Cg(i)||cg(i))?i=parseFloat(i):!x4(i)&&wr.test(n)&&(i=yg(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=Iu(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 uu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},iv=class extends S4{constructor(){super(...arguments),this.KeyframeResolver=_g}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 T4(e){return window.getComputedStyle(e)}let E4=class extends iv{constructor(){super(...arguments),this.type="html",this.renderInstance=q0}readValueFromInstance(t,n){if(ti.has(n))return RA(t,n);{const r=T4(t),i=(Tu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dy(t,n)}build(t,n,r){Pu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},C4=class extends iv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&H0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=gg(n);return r&&r.default||0}return n=K0.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){X0(t,n,r,i)}mount(t){this.isSVGTag=_u(t.tagName),super.mount(t)}};const P4=(e,t)=>Mu(e)?new C4(t):new E4(t,{allowProjection:e!==_.Fragment}),A4=uA({...KM,...p4,...i4,...g4},P4),pf=AP(A4),M4=500,gf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=tu,u,f,h;switch(n){case"success":u="text-green-500",f="bg-green-50",h="border-green-500",c=YC;break;case"error":u="text-red-500",f="bg-red-50",h="border-red-500",c=QC;break;case"warning":u="text-yellow-500",f="bg-yellow-50",h="border-yellow-500",c=UC;break;case"loading":u="text-gray-500",f="bg-gray-50",h="border-gray-500",c=tu;break;case"info":default:u="text-blue-500",f="bg-blue-50",h="border-blue-500",c=tu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,M4);return()=>clearTimeout(p)}},[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 y.jsx(iP,{onExitComplete:i,children:o&&y.jsx(pf.div,{id:e,className:`toast w-[320px] rounded-xl border-[1.5px] p-8 shadow-md ${f} ${h}`,initial:"initial",animate:"animate",exit:"exit",variants:m,layout:!0,children:y.jsxs("div",{className:"flex justify-between items-center p-3",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Pe,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),y.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),y.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:y.jsx(Pe,{icon:JC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},sv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.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]),y.jsx(gf,{content:a,type:i,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(eP,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const nP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=iu(rP),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(tP,{isPresent:n,anchorX:c,children:e})),y.jsx(ga.Provider,{value:m,children:e})};function rP(){return new Map}function f0(e=!0){const t=_.useContext(ga);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ya=e=>e.key||"";function d0(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const iP=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=f0(a),h=_.useMemo(()=>d0(e),[e]),m=a&&!u?[]:h.map(ya),p=_.useRef(!0),v=_.useRef(h),S=iu(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);u0(()=>{p.current=!1,v.current=h;for(let A=0;A<b.length;A++){const D=ya(b[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let A=[...h];for(let D=0;D<b.length;D++){const R=b[D],F=ya(R);m.includes(F)||(A.splice(D,0,R),E.push(R))}return o==="wait"&&E.length&&(A=E),C(d0(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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:$}=_.useContext(ru);return y.jsx(y.Fragment,{children:b.map(A=>{const D=ya(A),R=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let B=!0;S.forEach(Z=>{Z||(B=!1)}),B&&($==null||$(),C(v.current),a&&(d==null||d()),r&&r())};return y.jsx(nP,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:A},D)})})};function au(e,t){e.indexOf(t)===-1&&e.push(t)}function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Wi=Nt,vr=Nt;process.env.NODE_ENV!=="production"&&(Wi=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vr=(e,t)=>{if(!e)throw new Error(t)});const sP={useManualTiming:!1};function cu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ui=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let uu=class{constructor(){this.subscriptions=[]}add(t){return au(this.subscriptions,t),()=>lu(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,Kn=e=>e/1e3;function h0(e,t){return t?e*(1e3/t):0}const m0=new Set;function va(e,t,n){e||m0.has(t)||(console.warn(t),m0.add(t))}const oP=cu(()=>window.ScrollTimeline!==void 0);let aP=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(oP()&&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")}},lP=class extends aP{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function fu(e,t){return e?e[t]||e.default||e:void 0}const du=2e4;function p0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<du;)t+=n,r=e.next(t);return t>=du?1/0:t}function hu(e){return typeof e=="function"}function g0(e,t){e.timeline=t,e.onfinish=null}const mu=e=>Array.isArray(e)&&typeof e[0]=="number",cP={linearEasing:void 0};function uP(e,t){const n=cu(e);return()=>{var r;return(r=cP[t])!==null&&r!==void 0?r:n()}}const xa=uP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),y0=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ui(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function v0(e){return!!(typeof e=="function"&&xa()||!e||typeof e=="string"&&(e in pu||xa())||mu(e)||Array.isArray(e)&&e.every(v0))}const qs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qs([0,.65,.55,1]),circOut:qs([.55,0,1,.45]),backIn:qs([.31,.01,.66,-.59]),backOut:qs([.33,1.53,.69,.99])};function x0(e,t){if(e)return typeof e=="function"&&xa()?y0(e,t):mu(e)?qs(e):Array.isArray(e)?e.map(n=>x0(n,t)||pu.easeOut):pu[e]}const ba=["read","resolveKeyframes","update","preRender","render","postRender"],b0={value:null};function fP(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,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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&&b0.value&&b0.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const dP=40;function w0(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ba.reduce((b,C)=>(b[C]=fP(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,dP),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ba.reduce((b,C)=>{const E=a[C];return b[C]=($,A=!1,D=!1)=>(n||S(),E.schedule($,A,D)),b},{}),cancel:b=>{for(let C=0;C<ba.length;C++)a[ba[C]].cancel(b)},state:i,steps:a}}const{schedule:He,cancel:xr,state:yt,steps:gu}=w0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:yu}=w0(queueMicrotask,!1);let wa;function hP(){wa=void 0}const _n={now:()=>(wa===void 0&&_n.set(yt.isProcessing||sP.useManualTiming?yt.timestamp:performance.now()),wa),set:e=>{wa=e,queueMicrotask(hP)}},yn={x:!1,y:!1};function S0(){return yn.x||yn.y}function mP(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 pP(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 T0(e,t){const n=pP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function E0(e){return!(e.pointerType==="touch"||S0())}function gP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{if(!E0(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{E0(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const C0=(e,t)=>t?e===t?!0:C0(e,t.parentElement):!1,vu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,yP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vP(e){return yP.has(e.tagName)||e.tabIndex!==-1}const Ks=new WeakSet;function P0(e){return t=>{t.key==="Enter"&&e(t)}}function xu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P0(()=>{if(Ks.has(n))return;xu(n,"down");const i=P0(()=>{xu(n,"up")}),o=()=>xu(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 A0(e){return vu(e)&&!S0()}function bP(e,t,n={}){const[r,i,o]=T0(e,n),a=c=>{const u=c.currentTarget;if(!A0(c)||Ks.has(u))return;Ks.add(u);const d=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!A0(v)||!Ks.has(u))&&(Ks.delete(u),typeof d=="function"&&d(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||C0(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>xP(d,i)),!vP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const M0=30,wP=e=>!isNaN(parseFloat(e));let SP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=_n.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=_n.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wP(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 uu);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=_n.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>M0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,M0);return h0(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 Xs(e,t){return new SP(e,t)}const O0=_.createContext({strict:!1}),_0={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"]},zi={};for(const e in _0)zi[e]={isEnabled:t=>_0[e].some(n=>!!t[n])};function TP(e){for(const t in e)zi[t]={...zi[t],...e[t]}}const EP=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 Sa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EP.has(e)}let I0=e=>!Sa(e);function CP(e){e&&(I0=t=>t.startsWith("on")?!Sa(t):e(t))}try{CP(require("@emotion/is-prop-valid").default)}catch{}function PP(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(I0(i)||n===!0&&Sa(i)||!t&&!Sa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function AP(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 Ta=_.createContext({});function Ea(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zs(e){return typeof e=="string"||Array.isArray(e)}const bu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wu=["initial",...bu];function Ca(e){return Ea(e.animate)||wu.some(t=>Zs(e[t]))}function $0(e){return!!(Ca(e)||e.variants)}function MP(e,t){if(Ca(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 OP(e){const{initial:t,animate:n}=MP(e,_.useContext(Ta));return _.useMemo(()=>({initial:t,animate:n}),[D0(t),D0(n)])}function D0(e){return Array.isArray(e)?e.join(" "):e}const _P=Symbol.for("motionComponentSymbol");function Gi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function IP(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Gi(n)&&(n.current=r))},[t])}const Su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N0="data-"+Su("framerAppearId"),k0=_.createContext({});function $P(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Ta),u=_.useContext(O0),d=_.useContext(ga),h=_.useContext(ou).reducedMotion,m=_.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 p=m.current,v=_.useContext(k0);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&DP(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const x=n[N0],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return u0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),yu.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function DP(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:L0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&Gi(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function L0(e){if(e)return e.options.allowProjection!==!1?e.projection:L0(e.parent)}function NP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&TP(e);function c(d,h){let m;const p={..._.useContext(ou),...d,layoutId:kP(d)},{isStatic:v}=p,S=OP(d),x=r(d,v);if(!v&&su){LP(p,e);const T=RP(p);m=T.MeasureLayout,S.visualElement=$P(i,x,p,t,T.ProjectionNode)}return y.jsxs(Ta.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,IP(x,S.visualElement,h),x,v,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=_.forwardRef(c);return u[_P]=i,u}function kP({layoutId:e}){const t=_.useContext(ru).id;return t&&e!==void 0?t+"-"+e:e}function LP(e,t){const n=_.useContext(O0).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?Wi(!1,r):vr(!1,r)}}function RP(e){const{drag:t,layout:n}=zi;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 R0=e=>t=>typeof t=="string"&&t.startsWith(e),Tu=R0("--"),jP=R0("var(--"),Eu=e=>jP(e)?FP.test(e.split("/*")[0].trim()):!1,FP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js={};function VP(e){for(const t in e)Js[t]=e[t],Tu(t)&&(Js[t].isCSSVariable=!0)}const Yi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ti=new Set(Yi);function j0(e,{layout:t,layoutId:n}){return ti.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Js[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),F0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,Hi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Qs={...Hi,transform:e=>Xn(0,1,e)},Pa={...Hi,default:1},eo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),br=eo("deg"),In=eo("%"),we=eo("px"),BP=eo("vh"),WP=eo("vw"),V0={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},UP={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},zP={rotate:br,rotateX:br,rotateY:br,rotateZ:br,scale:Pa,scaleX:Pa,scaleY:Pa,scaleZ:Pa,skew:br,skewX:br,skewY:br,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Qs,originX:V0,originY:V0,originZ:we},B0={...Hi,transform:Math.round},Cu={...UP,...zP,zIndex:B0,size:we,fillOpacity:Qs,strokeOpacity:Qs,numOctaves:B0},GP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YP=Yi.length;function HP(e,t,n){let r="",i=!0;for(let o=0;o<YP;o++){const a=Yi[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=F0(c,Cu[a]);if(!u){i=!1;const h=GP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Pu(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(Tu(u)){i[u]=d;continue}else{const h=F0(d,Cu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=HP(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 Au=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function W0(e,t,n){for(const r in t)!St(t[r])&&!j0(r,n)&&(e[r]=t[r])}function qP({transformTemplate:e},t){return _.useMemo(()=>{const n=Au();return Pu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KP(e,t){const n=e.style||{},r={};return W0(r,n,e),Object.assign(r,qP(e,t)),r}function XP(e,t){const n={},r=KP(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 ZP=["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 Mu(e){return typeof e!="string"||e.includes("-")?!1:!!(ZP.indexOf(e)>-1||/[A-Z]/u.test(e))}const JP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function eA(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?JP:QP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function U0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function tA(e,t,n){const r=U0(t,e.x,e.width),i=U0(n,e.y,e.height);return`${r} ${i}`}function Ou(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Pu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=tA(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&eA(p,a,c,u,!1)}const z0=()=>({...Au(),attrs:{}}),_u=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nA(e,t,n,r){const i=_.useMemo(()=>{const o=z0();return Ou(o,t,_u(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};W0(o,e.style,e),i.style={...o,...i.style}}return i}function rA(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Mu(n)?nA:XP)(r,o,a,n),d=PP(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>St(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function G0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Iu(e,t,n,r){if(typeof t=="function"){const[i,o]=G0(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]=G0(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const $u=e=>Array.isArray(e),iA=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sA=e=>$u(e)?e[e.length-1]||0:e;function Aa(e){const t=St(e)?e.get():e;return iA(t)?t.toValue():t}function oA({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:aA(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Y0=e=>(t,n)=>{const r=_.useContext(Ta),i=_.useContext(ga),o=()=>oA(e,t,r,i);return n?o():iu(o)};function aA(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Aa(o[p]);let{initial:a,animate:c}=e;const u=Ca(e),d=$0(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"&&!Ea(m)){const p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Iu(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function Du(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(St(i[a])||t.style&&St(t.style[a])||j0(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 lA={useVisualState:Y0({scrapeMotionValuesFromProps:Du,createRenderState:Au})};function H0(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 q0(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 K0=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 X0(e,t,n,r){q0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(K0.has(i)?i:Su(i),t.attrs[i])}function Z0(e,t,n){const r=Du(e,t,n);for(const i in e)if(St(e[i])||St(t[i])){const o=Yi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const J0=["x","y","width","height","cx","cy","r"],cA={useVisualState:Y0({scrapeMotionValuesFromProps:Z0,createRenderState:z0,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<J0.length;c++){const u=J0[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{H0(n,r),He.render(()=>{Ou(r,i,_u(n.tagName),e.transformTemplate),X0(n,r)})})}})};function uA(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Mu(r)?cA:lA,preloadedFeatures:e,useRender:rA(i),createVisualElement:t,Component:r};return NP(a)}}function to(e,t,n){const r=e.getProps();return Iu(r,t,n!==void 0?n:r.custom,e)}const Q0=new Set(["width","height","top","left","right","bottom",...Yi]);function fA(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xs(n))}function dA(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=sA(o[a]);fA(e,a,c)}}function hA(e){return!!(St(e)&&e.add)}function Nu(e,t){const n=e.getValue("willChange");if(hA(n))return n.add(t)}function eg(e){return e.props[N0]}const tg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mA=1e-7,pA=12;function gA(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=tg(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>mA&&++c<pA);return a}function no(e,t,n,r){if(e===t&&n===r)return Nt;const i=o=>gA(o,0,1,e,n);return o=>o===0||o===1?o:tg(i(o),t,r)}const ng=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rg=e=>t=>1-e(1-t),ig=no(.33,1.53,.69,.99),ku=rg(ig),sg=ng(ku),og=e=>(e*=2)<1?.5*ku(e):.5*(2-Math.pow(2,-10*(e-1))),Lu=e=>1-Math.sin(Math.acos(e)),ag=rg(Lu),lg=ng(Lu),cg=e=>/^0[^.\s]+$/u.test(e);function yA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cg(e):!0}const ro=e=>Math.round(e*1e5)/1e5,Ru=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vA(e){return e==null}const xA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ju=(e,t)=>n=>!!(typeof n=="string"&&xA.test(n)&&n.startsWith(e)||t&&!vA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ug=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Ru);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},bA=e=>Xn(0,255,e),Fu={...Hi,transform:e=>Math.round(bA(e))},ni={test:ju("rgb","red"),parse:ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fu.transform(e)+", "+Fu.transform(t)+", "+Fu.transform(n)+", "+ro(Qs.transform(r))+")"};function wA(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 Vu={test:ju("#"),parse:wA,transform:ni.transform},qi={test:ju("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(ro(t))+", "+In.transform(ro(n))+", "+ro(Qs.transform(r))+")"},Tt={test:e=>ni.test(e)||Vu.test(e)||qi.test(e),parse:e=>ni.test(e)?ni.parse(e):qi.test(e)?qi.parse(e):Vu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ni.transform(e):qi.transform(e)},SA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function TA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ru))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(SA))===null||n===void 0?void 0:n.length)||0)>0}const fg="number",dg="color",EA="var",CA="var(",hg="${}",PA=/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 io(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(PA,u=>(Tt.test(u)?(r.color.push(o),i.push(dg),n.push(Tt.parse(u))):u.startsWith(CA)?(r.var.push(o),i.push(EA),n.push(u)):(r.number.push(o),i.push(fg),n.push(parseFloat(u))),++o,hg)).split(hg);return{values:n,split:c,indexes:r,types:i}}function mg(e){return io(e).values}function pg(e){const{split:t,types:n}=io(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===fg?o+=ro(i[a]):c===dg?o+=Tt.transform(i[a]):o+=i[a]}return o}}const AA=e=>typeof e=="number"?0:e;function MA(e){const t=mg(e);return pg(e)(t.map(AA))}const wr={test:TA,parse:mg,createTransformer:pg,getAnimatableNone:MA},OA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ru)||[];if(!r)return e;const i=n.replace(r,"");let o=OA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Bu={...wr,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},$A={...Cu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:Bu,WebkitFilter:Bu},gg=e=>$A[e];function yg(e,t){let n=gg(e);return n!==Bu&&(n=wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const DA=new Set(["auto","none","0"]);function NA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!DA.has(o)&&io(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=yg(n,i)}const ri=e=>e*180/Math.PI,Wu=e=>{const t=ri(Math.atan2(e[1],e[0]));return Uu(t)},kA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wu,rotateZ:Wu,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},Uu=e=>(e=e%360,e<0&&(e+=360),e),vg=Wu,xg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),LA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xg,scaleY:bg,scale:e=>(xg(e)+bg(e))/2,rotateX:e=>Uu(ri(Math.atan2(e[6],e[5]))),rotateY:e=>Uu(ri(Math.atan2(-e[2],e[0]))),rotateZ:vg,rotate:vg,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 wg(e){return e.includes("scale")?1:0}function zu(e,t){if(!e||e==="none")return wg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=LA,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kA,i=c}if(!i)return wg(t);const o=r[t],a=i[1].split(",").map(jA);return typeof o=="function"?o(a):a[o]}const RA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zu(n,t)};function jA(e){return parseFloat(e.trim())}const Sg=e=>e===Hi||e===we,FA=new Set(["x","y","z"]),VA=Yi.filter(e=>!FA.has(e));function BA(e){const t=[];return VA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ki={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})=>zu(t,"x"),y:(e,{transform:t})=>zu(t,"y")};Ki.translateX=Ki.x,Ki.translateY=Ki.y;const ii=new Set;let Gu=!1,Yu=!1;function Tg(){if(Yu){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=BA(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)})}Yu=!1,Gu=!1,ii.forEach(e=>e.complete()),ii.clear()}function Eg(){ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yu=!0)})}function WA(){Eg(),Tg()}let Hu=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?(ii.add(this),Gu||(Gu=!0,He.read(Eg),He.resolveKeyframes(Tg))):(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 Cg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),UA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zA(e){const t=UA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const GA=4;function Pg(e,t,n=1){vr(n<=GA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=zA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Cg(a)?parseFloat(a):a}return Eu(i)?Pg(i,t,n+1):i}const Ag=e=>t=>t.test(e),Mg=[Hi,we,In,br,WP,BP,{test:e=>e==="auto",parse:e=>e}],Og=e=>Mg.find(Ag(e));let _g=class extends Hu{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(),Eu(d))){const h=Pg(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Q0.has(r)||t.length!==2)return;const[i,o]=t,a=Og(i),c=Og(o);if(a!==c)if(Sg(a)&&Sg(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++)yA(t[i])&&r.push(i);r.length&&NA(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=Ki[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]=Ki[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 Ig=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function YA(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 HA(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=Ig(i,t),c=Ig(o,t);return Wi(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:YA(e)||(n==="spring"||hu(n))&&r}const qA=e=>e!==null;function Ma(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const KA=40;let $g=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=_n.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>KA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&WA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=_n.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!HA(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ma(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 qu(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 XA({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=qu(u,c,e+1/3),o=qu(u,c,e),a=qu(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 Ku=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ZA=[Vu,ni,qi],JA=e=>ZA.find(t=>t.test(e));function Dg(e){const t=JA(e);if(Wi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===qi&&(n=XA(n)),n}const Ng=(e,t)=>{const n=Dg(e),r=Dg(t);if(!n||!r)return Oa(e,t);const i={...n};return o=>(i.red=Ku(n.red,r.red,o),i.green=Ku(n.green,r.green,o),i.blue=Ku(n.blue,r.blue,o),i.alpha=tt(n.alpha,r.alpha,o),ni.transform(i))},QA=(e,t)=>n=>t(e(n)),so=(...e)=>e.reduce(QA),Xu=new Set(["none","hidden"]);function eM(e,t){return Xu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tM(e,t){return n=>tt(e,t,n)}function Zu(e){return typeof e=="number"?tM:typeof e=="string"?Eu(e)?Oa:Tt.test(e)?Ng:iM:Array.isArray(e)?kg:typeof e=="object"?Tt.test(e)?Ng:nM:Oa}function kg(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Zu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function nM(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 rM(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 iM=(e,t)=>{const n=wr.createTransformer(t),r=io(e),i=io(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?Xu.has(e)&&!i.values.length||Xu.has(t)&&!r.values.length?eM(e,t):so(kg(rM(r,i),i.values),n):(Wi(!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 Lg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):Zu(e)(e,t)}const sM=5;function Rg(e,t,n){const r=Math.max(t-sM,0);return h0(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},jg=.001;function oM({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let i,o;Wi(e<=On(nt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Xn(nt.minDamping,nt.maxDamping,a),e=Xn(nt.minDuration,nt.maxDuration,Kn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,v=Ju(d,a),S=Math.exp(-m);return jg-p/v*S},o=d=>{const m=d*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),x=Ju(Math.pow(d,2),a);return(-i(d)+jg>0?-1:1)*((p-v)*S)/x}):(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=lM(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 aM=12;function lM(e,t,n){let r=n;for(let i=1;i<aM;i++)r=r-e(r)/t(r);return r}function Ju(e,t){return e*Math.sqrt(1-t*t)}const cM=["duration","bounce"],uM=["stiffness","damping","mass"];function Fg(e,t){return t.some(n=>e[n]!==void 0)}function fM(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Fg(e,uM)&&Fg(e,cM))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:nt.mass,stiffness:i,damping:o}}else{const n=oM(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function Vg(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:p,isResolvedFromDuration:v}=fM({...n,velocity:-Kn(n.velocity||0)}),S=p||0,x=d/(2*Math.sqrt(u*h)),T=a-o,b=Kn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?nt.restSpeed.granular:nt.restSpeed.default),i||(i=C?nt.restDelta.granular:nt.restDelta.default);let E;if(x<1){const A=Ju(b,x);E=D=>{const R=Math.exp(-x*b*D);return a-R*((S+x*b*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(x===1)E=A=>a-Math.exp(-b*A)*(T+(S+b*T)*A);else{const A=b*Math.sqrt(x*x-1);E=D=>{const R=Math.exp(-x*b*D),F=Math.min(A*D,300);return a-R*((S+x*b*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:v&&m||null,next:A=>{const D=E(A);if(v)c.done=A>=m;else{let R=0;x<1&&(R=A===0?On(S):Rg(E,A,D));const F=Math.abs(R)<=r,B=Math.abs(a-D)<=i;c.done=F&&B}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(p0($),du),D=y0(R=>$.next(A*R).value,A,30);return A+"ms "+D}};return $}function Bg({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],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=F=>-x*Math.exp(-F/r),E=F=>b+C(F),$=F=>{const B=C(F),Z=E(F);p.done=Math.abs(B)<=d,p.value=p.done?b:Z};let A,D;const R=F=>{v(p.value)&&(A=F,D=Vg({keyframes:[p.value,S(p.value)],velocity:Rg(E,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let B=!1;return!D&&A===void 0&&(B=!0,$(F),R(F)),A!==void 0&&F>=A?D.next(F-A):(!B&&$(F),p)}}}const dM=no(.42,0,1,1),hM=no(0,0,.58,1),Wg=no(.42,0,.58,1),mM=e=>Array.isArray(e)&&typeof e[0]!="number",Ug={linear:Nt,easeIn:dM,easeInOut:Wg,easeOut:hM,circIn:Lu,circInOut:lg,circOut:ag,backIn:ku,backInOut:sg,backOut:ig,anticipate:og},zg=e=>{if(mu(e)){vr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return no(t,n,r,i)}else if(typeof e=="string")return vr(Ug[e]!==void 0,`Invalid easing type '${e}'`),Ug[e];return e};function pM(e,t,n){const r=[],i=n||Lg,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]||Nt:t;c=so(u,c)}r.push(c)}return r}function gM(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=pM(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 p=Ui(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function yM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ui(0,t,r);e.push(tt(n,1,i))}}function vM(e){const t=[0];return yM(t,e.length-1),t}function xM(e,t){return e.map(n=>n*t)}function bM(e,t){return e.map(()=>t||Wg).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=mM(r)?r.map(zg):zg(r),o={done:!1,value:t[0]},a=xM(n&&n.length===t.length?n:vM(t),e),c=gM(a,t,{ease:Array.isArray(i)?i:bM(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const wM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>xr(t),now:()=>yt.isProcessing?yt.timestamp:_n.now()}},SM={decay:Bg,inertia:Bg,tween:oo,keyframes:oo,spring:Vg},TM=e=>e/100;let Qu=class extends $g{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)||Hu,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=hu(n)?n:SM[n]||oo;let u,d;process.env.NODE_ENV!=="production"&&c!==oo&&vr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==oo&&typeof t[0]!="number"&&(u=so(TM,Lg(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=p0(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=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 b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let B=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&B--,B=Math.min(B,v+1),!!(B%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Xn(0,1,Z)*m}const A=C?{done:!1,value:u[0]}:$.next(E);c&&(A.value=c(A.value));let{done:D}=A;!C&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&i!==void 0&&(A.value=Ma(u,this.options,i)),T&&T(A.value),R&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Kn(t.calculatedDuration):0}get time(){return Kn(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=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wM,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 EM=new Set(["opacity","clipPath","filter","transform"]);function CM(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=x0(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 PM=cu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_a=10,AM=2e4;function MM(e){return hu(e.type)||e.type==="spring"||!v0(e.ease)}function OM(e,t){const n=new Qu({...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<AM;)r=n.sample(o),i.push(r.value),o+=_a;return{times:void 0,keyframes:i,duration:o-_a,ease:"linear"}}const Gg={anticipate:og,backInOut:sg,circInOut:lg};function _M(e){return e in Gg}let Yg=class extends $g{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new _g(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"&&xa()&&_M(o)&&(o=Gg[o]),MM(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=OM(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=CM(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(g0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ma(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 Kn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Kn(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 Nt;const{animation:r}=n;g0(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:a,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new Qu({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=On(this.time);d.setWithVelocity(S.sample(x-_a).value,S.sample(x).value,_a)}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 PM()&&r&&EM.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}};const IM={type:"spring",stiffness:500,damping:25,restSpeed:10},$M=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),DM={type:"keyframes",duration:.8},NM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kM=(e,{keyframes:t})=>t.length>2?DM:ti.has(e)?e.startsWith("scale")?$M(t[1]):IM:NM;function LM({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 ef=(e,t,n,r={},i,o)=>a=>{const c=fu(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:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};LM(c)||(h={...h,...kM(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 p=Ma(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new lP([])}return!o&&Yg.supports(h)?new Yg(h):new Qu(h)};function RM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Hg(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 p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&RM(h,m))continue;const S={delay:n,...fu(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=eg(e);if(b){const C=window.MotionHandoffAnimation(b,m,He);C!==null&&(S.startTime=C,x=!0)}}Nu(e,m),p.start(ef(m,p,v,e.shouldReduceMotion&&Q0.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&dA(e,c)})}),d}function tf(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 a=i?()=>Promise.all(Hg(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return jM(e,t,h+d,m,p,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 jM(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(FM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(tf(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function FM(e,t){return e.sortNodePosition(t)}function VM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>tf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=tf(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(Hg(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qg(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 BM=wu.length;function Kg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<BM;n++){const r=wu[n],i=e.props[r];(Zs(i)||i===!1)&&(t[r]=i)}return t}const WM=[...bu].reverse(),UM=bu.length;function zM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>VM(e,n,r)))}function GM(e){let t=zM(e),n=Xg(),r=!0;const i=u=>(d,h)=>{var m;const p=to(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;d={...d,...x,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=Kg(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<UM;T++){const b=WM[T],C=n[b],E=d[b]!==void 0?d[b]:h[b],$=Zs(E),A=b===u?C.isActive:null;A===!1&&(S=T);let D=E===h[b]&&E!==d[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&A===null||!E&&!C.prevProp||Ea(E)||typeof E=="boolean")continue;const R=YM(C.prevProp,E);let F=R||b===u&&C.isActive&&!D&&$||T>S&&$,B=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},le=Y=>{F=!0,p.has(Y)&&(B=!0,p.delete(Y)),C.needsAnimating[Y]=!0;const U=e.getValue(Y);U&&(U.liveStyle=!1)};for(const Y in ge){const U=ee[Y],V=se[Y];if(v.hasOwnProperty(Y))continue;let O=!1;$u(U)&&$u(V)?O=!qg(U,V):O=U!==V,O?U!=null?le(Y):p.add(Y):U!==void 0&&p.has(Y)?le(Y):C.protectedKeys[Y]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||B)&&m.push(...Z.map(Y=>({animation:Y,options:{type:b}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const b=to(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xg(),r=!0}}}function YM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qg(t,e):!1}function si(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xg(){return{animate:si(!0),whileInView:si(),whileHover:si(),whileTap:si(),whileDrag:si(),whileFocus:si(),exit:si()}}let Sr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},HM=class extends Sr{constructor(t){super(t),t.animationState||(t.animationState=GM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ea(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)}},qM=0;const KM={animation:{Feature:HM},exit:{Feature:class extends Sr{constructor(){super(...arguments),this.id=qM++}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 ao(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function lo(e){return{point:{x:e.pageX,y:e.pageY}}}const XM=e=>t=>vu(t)&&e(t,lo(t));function co(e,t,n,r){return ao(e,t,XM(n),r)}function Zg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ZM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function JM(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 Jg=1e-4,QM=1-Jg,eO=1+Jg,Qg=.01,tO=0-Qg,nO=0+Qg;function Ot(e){return e.max-e.min}function rO(e,t,n){return Math.abs(e-t)<=n}function ey(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=QM&&e.scale<=eO||isNaN(e.scale))&&(e.scale=1),(e.translate>=tO&&e.translate<=nO||isNaN(e.translate))&&(e.translate=0)}function uo(e,t,n,r){ey(e.x,t.x,n.x,r?r.originX:void 0),ey(e.y,t.y,n.y,r?r.originY:void 0)}function ty(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function iO(e,t,n){ty(e.x,t.x,n.x),ty(e.y,t.y,n.y)}function ny(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function fo(e,t,n){ny(e.x,t.x,n.x),ny(e.y,t.y,n.y)}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xi=()=>({x:ry(),y:ry()}),iy=()=>({min:0,max:0}),at=()=>({x:iy(),y:iy()});function tn(e){return[e("x"),e("y")]}function nf(e){return e===void 0||e===1}function rf({scale:e,scaleX:t,scaleY:n}){return!nf(e)||!nf(t)||!nf(n)}function oi(e){return rf(e)||sy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function sy(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function Ia(e,t,n){const r=e-n,i=t*r;return n+i}function ay(e,t,n,r,i){return i!==void 0&&(e=Ia(e,i,r)),Ia(e,n,r)+t}function sf(e,t=0,n=1,r,i){e.min=ay(e.min,t,n,r,i),e.max=ay(e.max,t,n,r,i)}function ly(e,{x:t,y:n}){sf(e.x,t.translate,t.scale,t.originPoint),sf(e.y,n.translate,n.scale,n.originPoint)}const cy=.999999999999,uy=1.0000000000001;function sO(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&&Ji(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ly(e,a)),r&&oi(o.latestValues)&&Ji(e,o.latestValues))}t.x<uy&&t.x>cy&&(t.x=1),t.y<uy&&t.y>cy&&(t.y=1)}function Zi(e,t){e.min=e.min+t,e.max=e.max+t}function fy(e,t,n,r,i=.5){const o=tt(e.min,e.max,i);sf(e,t,n,o,r)}function Ji(e,t){fy(e.x,t.x,t.scaleX,t.scale,t.originX),fy(e.y,t.y,t.scaleY,t.scale,t.originY)}function dy(e,t){return Zg(JM(e.getBoundingClientRect(),t))}function oO(e,t,n){const r=dy(e,n),{scroll:i}=t;return i&&(Zi(r.x,i.offset.x),Zi(r.y,i.offset.y)),r}const hy=({current:e})=>e?e.ownerDocument.defaultView:null,my=(e,t)=>Math.abs(e-t);function aO(e,t){const n=my(e.x,t.x),r=my(e.y,t.y);return Math.sqrt(n**2+r**2)}let py=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=af(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=aO(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=yt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=of(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=af(m.type==="pointercancel"?this.lastMoveEventInfo:of(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!vu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=lo(t),c=of(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,af(c,this.history)),this.removeListeners=so(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(),xr(this.updatePoint)}};function of(e,t){return t?{point:t(e.point)}:e}function gy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function af({point:e},t){return{point:e,delta:gy(e,yy(t)),offset:gy(e,lO(t)),velocity:cO(t,.1)}}function lO(e){return e[0]}function yy(e){return e[e.length-1]}function cO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>On(t)));)n--;if(!r)return{x:0,y:0};const o=Kn(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 uO(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 vy(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 fO(e,{top:t,left:n,bottom:r,right:i}){return{x:vy(e.x,n,i),y:vy(e.y,t,r)}}function xy(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 dO(e,t){return{x:xy(e.x,t.x),y:xy(e.y,t.y)}}function hO(e,t){let n=.5;const r=Ot(e),i=Ot(t);return i>r?n=Ui(t.min,t.max-r,e.min):r>i&&(n=Ui(e.min,e.max-i,t.min)),Xn(0,1,n)}function mO(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 lf=.35;function pO(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:by(e,"left","right"),y:by(e,"top","bottom")}}function by(e,t,n){return{min:wy(e,t),max:wy(e,n)}}function wy(e,t){return typeof e=="number"?e:e[t]||0}const gO=new WeakMap;let yO=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(lo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mP(p),!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(T=>{let b=this.getAxisMotionValue(T).get()||0;if(In.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=Ot(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&He.postRender(()=>S(h,m)),Nu(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=vO(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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 py(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:hy(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||!$a(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=uO(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&&Gi(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=fO(i.layoutBox,n):this.constraints=!1,this.elastic=pO(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=mO(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gi(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=oO(r,i.root,this.visualElement.getTransformPagePoint());let a=dO(i.layout.layoutBox,o);if(n){const c=n(ZM(a));this.hasMutatedConstraints=!!c,c&&(a=Zg(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(!$a(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,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 Nu(this.visualElement,t),r.start(ef(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(!$a(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(!Gi(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]=hO({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(!$a(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;gO.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();Gi(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=ao(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=lf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function $a(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let xO=class extends Sr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new yO(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 Sy=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};let bO=class extends Sr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new py(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Sy(t),onStart:Sy(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 Da={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ty(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ho={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=Ty(e,t.target.x),r=Ty(e,t.target.y);return`${n}% ${r}%`}},wO={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 SO=class extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;VP(TO),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()||He.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),yu.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 Ey(e){const[t,n]=f0(),r=_.useContext(ru);return y.jsx(SO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(k0),isPresent:t,safeToRemove:n})}const TO={borderRadius:{...ho,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ho,borderTopRightRadius:ho,borderBottomLeftRadius:ho,borderBottomRightRadius:ho,boxShadow:wO};function EO(e,t,n){const r=St(e)?e:Xs(e);return r.start(ef("",r,t,n)),r.animation}function CO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const PO=(e,t)=>e.depth-t.depth;let AO=class{constructor(){this.children=[],this.isDirty=!1}add(t){au(this.children,t),this.isDirty=!0}remove(t){lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PO),this.isDirty=!1,this.children.forEach(t)}};function MO(e,t){const n=_n.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(xr(r),e(o-t))};return He.read(r,!0),()=>xr(r)}const Cy=["TopLeft","TopRight","BottomLeft","BottomRight"],OO=Cy.length,Py=e=>typeof e=="string"?parseFloat(e):e,Ay=e=>typeof e=="number"||we.test(e);function _O(e,t,n,r,i,o){i?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,IO(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,$O(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<OO;a++){const c=`border${Cy[a]}Radius`;let u=My(t,c),d=My(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Ay(u)===Ay(d)?(e[c]=Math.max(tt(Py(u),Py(d),r),0),(In.test(d)||In.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=tt(t.rotate||0,n.rotate||0,r))}function My(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const IO=Oy(0,.5,ag),$O=Oy(.5,.95,Nt);function Oy(e,t,n){return r=>r<e?0:r>t?1:n(Ui(e,t,r))}function _y(e,t){e.min=t.min,e.max=t.max}function nn(e,t){_y(e.x,t.x),_y(e.y,t.y)}function Iy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $y(e,t,n,r,i){return e-=t,e=Ia(e,1/n,r),i!==void 0&&(e=Ia(e,1/i,r)),e}function DO(e,t=0,n=1,r=.5,i,o=e,a=e){if(In.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=$y(e.min,t,n,c,i),e.max=$y(e.max,t,n,c,i)}function Dy(e,t,[n,r,i],o,a){DO(e,t[n],t[r],t[i],t.scale,o,a)}const NO=["x","scaleX","originX"],kO=["y","scaleY","originY"];function Ny(e,t,n,r){Dy(e.x,t,NO,n?n.x:void 0,r?r.x:void 0),Dy(e.y,t,kO,n?n.y:void 0,r?r.y:void 0)}function ky(e){return e.translate===0&&e.scale===1}function Ly(e){return ky(e.x)&&ky(e.y)}function Ry(e,t){return e.min===t.min&&e.max===t.max}function LO(e,t){return Ry(e.x,t.x)&&Ry(e.y,t.y)}function jy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Fy(e,t){return jy(e.x,t.x)&&jy(e.y,t.y)}function Vy(e){return Ot(e.x)/Ot(e.y)}function By(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let RO=class{constructor(){this.members=[]}add(t){au(this.members,t),t.scheduleRender()}remove(t){if(lu(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 jO(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:p,skewX:v,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 cf=["","X","Y","Z"],FO={visibility:"hidden"},Wy=1e3;let VO=0;function uf(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Uy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eg(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&&Uy(r)}function zy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=VO++,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(UO),this.nodes.forEach(qO),this.nodes.forEach(KO),this.nodes.forEach(zO)},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 AO)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uu),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=CO(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 p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=MO(p,250),Da.hasAnimatedSinceResize&&(Da.hasAnimatedSinceResize=!1,this.nodes.forEach(Yy))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||e4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Fy(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...fu(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||Yy(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,xr(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(XO),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&&Uy(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(Gy);return}this.isUpdating||this.nodes.forEach(YO),this.isUpdating=!1,this.nodes.forEach(HO),this.nodes.forEach(BO),this.nodes.forEach(WO),this.clearAllSnapshots();const c=_n.now();yt.delta=Xn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,gu.update.process(yt),gu.preRender.process(yt),gu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,yu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(GO),this.sharedNodes.forEach(ZO)}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&&!Ot(this.snapshot.measuredBox.x)&&!Ot(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&&!Ly(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)),t4(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(n4))){const{scroll:h}=this.root;h&&(Zi(u.x,h.offset.x),Zi(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:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&nn(u,a),Zi(u.x,m.offset.x),Zi(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&&Ji(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),oi(h.latestValues)&&Ji(u,h.latestValues)}return oi(this.latestValues)&&Ji(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||!oi(d.latestValues))continue;rf(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),Ny(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return oi(this.latestValues)&&Ny(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:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=yt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),iO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ly(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),fo(this.relativeTargetOrigin,this.target,v.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||rf(this.parent.latestValues)||sy(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 p=this.treeScale.x,v=this.treeScale.y;sO(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():(Iy(this.prevProjectionDelta.x,this.projectionDelta.x),Iy(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!By(this.projectionDelta.x,this.prevProjectionDelta.x)||!By(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=Xi(),this.projectionDelta=Xi(),this.projectionDeltaWithTransform=Xi()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Xi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(QO));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const A=$/1e3;Hy(m.x,a.x,A),Hy(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),JO(this.relativeTarget,this.relativeTargetOrigin,p,A),E&&LO(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=at()),nn(E,this.relativeTarget)),x&&(this.animationValues=h,_O(h,d,this.latestValues,A,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Da.hasAnimatedSinceResize=!0,this.currentAnimation=EO(0,Wy,{...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(Wy),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&&Jy(this.options.animationType,this.layout.layoutBox,d.layoutBox)){u=this.target||at();const m=Ot(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+m;const p=Ot(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}nn(c,u),Ji(c,h),uo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new RO),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&&uf("z",a,d,this.animationValues);for(let h=0;h<cf.length;h++)uf(`rotate${cf[h]}`,a,d,this.animationValues),uf(`skew${cf[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 FO;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Aa(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 x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Aa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!oi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=jO(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:v,y:S}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in Js){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=Js[x],E=d.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let A=0;A<$;A++)d[b[A]]=E}else C?this.options.visualElement.renderState.vars[x]=E:d[x]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Aa(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(Gy),this.root.sharedNodes.clear()}}}function BO(e){e.updateLayout()}function WO(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 p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(p);p.min=r[m].min,p.max=p.min+v}):Jy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=Ot(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=Xi();uo(c,r,n.layoutBox);const u=Xi();a?uo(u,e.applyTransform(i,!0),n.measuredBox):uo(u,r,n.layoutBox);const d=!Ly(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=at();fo(S,n.layoutBox,p.layoutBox);const x=at();fo(x,r,v.layoutBox),Fy(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,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 UO(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 zO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GO(e){e.clearSnapshot()}function Gy(e){e.clearMeasurements()}function YO(e){e.isLayoutDirty=!1}function HO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qO(e){e.resolveTargetDelta()}function KO(e){e.calcProjection()}function XO(e){e.resetSkewAndRotation()}function ZO(e){e.removeLeadSnapshot()}function Hy(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 qy(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function JO(e,t,n,r){qy(e.x,t.x,n.x,r),qy(e.y,t.y,n.y,r)}function QO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const e4={duration:.45,ease:[.4,0,.1,1]},Ky=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Xy=Ky("applewebkit/")&&!Ky("chrome/")?Math.round:Nt;function Zy(e){e.min=Xy(e.min),e.max=Xy(e.max)}function t4(e){Zy(e.x),Zy(e.y)}function Jy(e,t,n){return e==="position"||e==="preserve-aspect"&&!rO(Vy(t),Vy(n),.2)}function n4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const r4=zy({attachResizeListener:(e,t)=>ao(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},Qy=zy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ff.current){const e=new r4({});e.mount(window),e.setOptions({layoutScroll:!0}),ff.current=e}return ff.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),i4={pan:{Feature:bO},drag:{Feature:xO,ProjectionNode:Qy,MeasureLayout:Ey}};function ev(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,lo(t)))}let s4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=gP(t,(n,r)=>(ev(this.node,r,"Start"),i=>ev(this.node,i,"End"))))}unmount(){}},o4=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=so(ao(this.node.current,"focus",()=>this.onFocus()),ao(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function tv(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,lo(t)))}let a4=class extends Sr{mount(){const{current:t}=this.node;t&&(this.unmount=bP(t,(n,r)=>(tv(this.node,r,"Start"),(i,{success:o})=>tv(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const df=new WeakMap,hf=new WeakMap,l4=e=>{const t=df.get(e.target);t&&t(e)},c4=e=>{e.forEach(l4)};function u4({root:e,...t}){const n=e||document;hf.has(n)||hf.set(n,{});const r=hf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(c4,{root:e,...t})),r[i]}function f4(e,t,n){const r=u4(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const d4={some:0,all:1};let h4=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:d4[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(),p=d?h:m;p&&p(u)};return f4(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(m4(t,n))&&this.startObserver()}unmount(){}};function m4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const p4={inView:{Feature:h4},tap:{Feature:a4},focus:{Feature:o4},hover:{Feature:s4}},g4={layout:{ProjectionNode:Qy,MeasureLayout:Ey}},mf={current:null},nv={current:!1};function y4(){if(nv.current=!0,!!su)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}const v4=[...Mg,Tt,wr],x4=e=>v4.find(Ag(e)),b4=new WeakMap;function w4(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"&&va(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,Xs(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,Xs(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let S4=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=Hu,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 v=_n.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,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=Ca(n),this.isVariantNode=$0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&St(S)&&S.set(u[v],!1)}}mount(t){this.current=t,b4.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)),nv.current||y4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.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(),xr(this.notifyUpdate),xr(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 zi){const n=zi[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<rv.length;r++){const i=rv[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=w4(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=Xs(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"&&(Cg(i)||cg(i))?i=parseFloat(i):!x4(i)&&wr.test(n)&&(i=yg(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=Iu(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 uu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},iv=class extends S4{constructor(){super(...arguments),this.KeyframeResolver=_g}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 T4(e){return window.getComputedStyle(e)}let E4=class extends iv{constructor(){super(...arguments),this.type="html",this.renderInstance=q0}readValueFromInstance(t,n){if(ti.has(n))return RA(t,n);{const r=T4(t),i=(Tu(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dy(t,n)}build(t,n,r){Pu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Du(t,n,r)}},C4=class extends iv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&H0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ti.has(n)){const r=gg(n);return r&&r.default||0}return n=K0.has(n)?n:Su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Z0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){Ou(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){X0(t,n,r,i)}mount(t){this.isSVGTag=_u(t.tagName),super.mount(t)}};const P4=(e,t)=>Mu(e)?new C4(t):new E4(t,{allowProjection:e!==_.Fragment}),A4=uA({...KM,...p4,...i4,...g4},P4),pf=AP(A4),M4=500,gf=({id:e,content:t,type:n="info",duration:r=0,onClose:i})=>{const[o,a]=_.useState(!0);let c=tu,u,d,h;switch(n){case"success":u="text-green-500",d="bg-green-50",h="border-green-500",c=YC;break;case"error":u="text-red-500",d="bg-red-50",h="border-red-500",c=QC;break;case"warning":u="text-yellow-500",d="bg-yellow-50",h="border-yellow-500",c=UC;break;case"loading":u="text-gray-500",d="bg-gray-50",h="border-gray-500",c=tu;break;case"info":default:u="text-blue-500",d="bg-blue-50",h="border-blue-500",c=tu}_.useEffect(()=>{if(r===0)return;const p=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(p)},[r]),_.useEffect(()=>{if(!o){const p=setTimeout(i,M4);return()=>clearTimeout(p)}},[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 y.jsx(iP,{onExitComplete:i,children:o&&y.jsx(pf.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:y.jsxs("div",{className:"flex justify-between items-center p-3",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Pe,{icon:c,className:`w-20 h-20 min-h-20 min-w-20 ${u}`}),y.jsx("span",{className:"text-gray-800 font-medium text-base",children:t})]}),y.jsx("button",{onClick:()=>a(!1),className:"text-gray-500 transition-all hover:text-gray-700 flex items-center",children:y.jsx(Pe,{icon:JC,className:"w-20 h-20 min-h-20 min-w-20"})})]})})})},sv=({promise:e,messages:t,options:n,onClose:r})=>{const[i,o]=_.useState("loading"),[a,c]=_.useState(t.loading);return _.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]),y.jsx(gf,{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 O4={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"]},_4={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"]},ov={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"]},av=6048e5,I4=864e5,lv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&lv in e?e[lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function cv(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 $4={};function mo(){return $4}function Qi(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.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 Na(e,t){return Qi(e,{...t,weekStartsOn:1})}function uv(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=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fv(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 ka(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 D4(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-fv(o),u=+a-fv(a);return Math.round((c-u)/I4)}function N4(e,t){const n=uv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function k4(e){return Gt(e,Date.now())}function dv(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function L4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function R4(e){return!(!L4(e)&&typeof e!="number"||isNaN(+pt(e)))}function j4(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 F4(e,t){const[n,r]=ka(e,t.start,t.end);return{start:n,end:r}}function V4(e,t){const{start:n,end:r}=F4(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 B4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function W4(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 U4(e,t){var c,u;const n=mo(),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 z4={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"}},G4=(e,t,n)=>{let r;const i=z4[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 es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Y4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},q4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},K4={date:es({formats:Y4,defaultWidth:"full"}),time:es({formats:H4,defaultWidth:"full"}),dateTime:es({formats:q4,defaultWidth:"full"})},X4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z4=(e,t,n,r)=>X4[e];function $n(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 J4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e_={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"]},t_={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"]},n_={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"}},r_={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"}},i_={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:$n({values:J4,defaultWidth:"wide"}),quarter:$n({values:Q4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:e_,defaultWidth:"wide"}),day:$n({values:t_,defaultWidth:"wide"}),dayPeriod:$n({values:n_,defaultWidth:"wide",formattingValues:r_,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)?o_(c,m=>m.test(a)):s_(c,m=>m.test(a));let f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const h=t.slice(a.length);return{value:f,rest:h}}}function s_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function o_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hv(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 a_=/^(\d+)(th|st|nd|rd)?/i,l_=/\d+/i,c_={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},u_={any:[/^b/i,/^(a|c)/i]},f_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d_={any:[/1/i,/2/i,/3/i,/4/i]},h_={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},m_={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]},p_={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},v_={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}},x_={ordinalNumber:hv({matchPattern:a_,parsePattern:l_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:c_,defaultMatchWidth:"wide",parsePatterns:u_,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:f_,defaultMatchWidth:"wide",parsePatterns:d_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:h_,defaultMatchWidth:"wide",parsePatterns:m_,defaultParseWidth:"any"}),day:Dn({matchPatterns:p_,defaultMatchWidth:"wide",parsePatterns:g_,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:y_,defaultMatchWidth:"any",parsePatterns:v_,defaultParseWidth:"any"})},mv={code:"en-US",formatDistance:G4,formatLong:K4,formatRelative:Z4,localize:i_,match:x_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function b_(e,t){const n=pt(e,t==null?void 0:t.in);return D4(n,W4(n))+1}function w_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+N4(n);return Math.round(r/av)+1}function pv(e,t){var h,m,p,v;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=mo(),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??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.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=Qi(a,t),u=Gt((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const f=Qi(u,t);return+n>=+c?r+1:+n>=+f?r:r-1}function S_(e,t){var c,u,f,h;const n=mo(),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=(f=n.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,i=pv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qi(o,t)}function T_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Qi(n,t)-+S_(n,t);return Math.round(r/av)+1}function We(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 We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(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 We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},ts={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={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=pv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=uv(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(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 We(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 We(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 We(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=T_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=w_(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(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=b_(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(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 We(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 We(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 We(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=ts.noon:r===0?i=ts.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=ts.evening:r>=12?i=ts.afternoon:r>=4?i=ts.morning:i=ts.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"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(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 vv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return vv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yv(r,":");case"zzzz":default:return"GMT"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function yv(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+We(o,2)}function vv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const xv=(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"})}},bv=(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"})}},E_={p:bv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xv(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}}",xv(r,t)).replace("{{time}}",bv(i,t))}},C_=/^D+$/,P_=/^Y+$/,A_=["D","DD","YY","YYYY"];function M_(e){return C_.test(e)}function O_(e){return P_.test(e)}function __(e,t,n){const r=I_(e,t,n);if(console.warn(r),A_.includes(e))throw new RangeError(r)}function I_(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 $_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N_=/^'([^]*?)'?$/,k_=/''/g,L_=/[a-zA-Z]/;function Nn(e,t,n){var h,m,p,v,S,x,T,b;const r=mo(),i=(n==null?void 0:n.locale)??r.locale??mv,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??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((x=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(T=r.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!R4(c))throw new RangeError("Invalid time value");let u=t.match(D_).map(C=>{const E=C[0];if(E==="p"||E==="P"){const $=E_[E];return $(C,i.formatLong)}return C}).join("").match($_).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const E=C[0];if(E==="'")return{isToken:!1,value:R_(C)};if(gv[E])return{isToken:!0,value:C};if(E.match(L_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const f={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const E=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&O_(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&M_(E))&&__(E,t,String(e));const $=gv[E[0]];return $(c,E,i.localize,f)}).join("")}function R_(e){const t=e.match(N_);return t?t[1].replace(k_,"'"):e}function j_(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function F_(e,t){return dv(Gt(e,e),k4(e))}function wv(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 Tv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function V_(e,t,n){return cv(e,-1,n)}const B_={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"}},W_=(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?"en "+r:"hace "+r:r},U_={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},z_={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},G_={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y_={date:es({formats:U_,defaultWidth:"full"}),time:es({formats:z_,defaultWidth:"full"}),dateTime:es({formats:G_,defaultWidth:"full"})},H_={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"},q_={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"},K_=(e,t,n,r)=>t.getHours()!==1?q_[e]:H_[e],X_={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Z_={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},J_={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"]},Q_={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"]},eI={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"}},tI={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"}},nI={ordinalNumber:(e,t)=>Number(e)+"º",era:$n({values:X_,defaultWidth:"wide"}),quarter:$n({values:Z_,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:$n({values:J_,defaultWidth:"wide"}),day:$n({values:Q_,defaultWidth:"wide"}),dayPeriod:$n({values:eI,defaultWidth:"wide",formattingValues:tI,defaultFormattingWidth:"wide"})},rI=/^(\d+)(º)?/i,iI=/\d+/i,sI={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},oI={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]},aI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},lI={any:[/1/i,/2/i,/3/i,/4/i]},cI={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},uI={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]},fI={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},dI={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]},hI={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},mI={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}},pI={ordinalNumber:hv({matchPattern:rI,parsePattern:iI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:cI,defaultMatchWidth:"wide",parsePatterns:uI,defaultParseWidth:"any"}),day:Dn({matchPatterns:fI,defaultMatchWidth:"wide",parsePatterns:dI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:hI,defaultMatchWidth:"any",parsePatterns:mI,defaultParseWidth:"any"})},ns={code:"es",formatDistance:W_,formatLong:Y_,formatRelative:K_,localize:nI,match:pI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),yf=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 Ev(Nn(r,t,{locale:{en:mv,es:ns}[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 Cv(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 Pv=e=>e;var po={exports:{}};/**
|
|
625
|
+
*/const O4={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"]},_4={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"]},ov={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"]},av=6048e5,I4=864e5,lv=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&lv in e?e[lv](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Gt(t||e,e)}function cv(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 $4={};function mo(){return $4}function Qi(e,t){var c,u,d,h;const n=mo(),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 Na(e,t){return Qi(e,{...t,weekStartsOn:1})}function uv(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=Na(i),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Na(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function fv(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 ka(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 D4(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t),o=La(r),a=La(i),c=+o-fv(o),u=+a-fv(a);return Math.round((c-u)/I4)}function N4(e,t){const n=uv(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Na(r)}function k4(e){return Gt(e,Date.now())}function dv(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return+La(r)==+La(i)}function L4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function R4(e){return!(!L4(e)&&typeof e!="number"||isNaN(+pt(e)))}function j4(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 F4(e,t){const[n,r]=ka(e,t.start,t.end);return{start:n,end:r}}function V4(e,t){const{start:n,end:r}=F4(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 B4(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function W4(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 U4(e,t){var c,u;const n=mo(),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 z4={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"}},G4=(e,t,n)=>{let r;const i=z4[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 es(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Y4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},H4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},q4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},K4={date:es({formats:Y4,defaultWidth:"full"}),time:es({formats:H4,defaultWidth:"full"}),dateTime:es({formats:q4,defaultWidth:"full"})},X4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z4=(e,t,n,r)=>X4[e];function $n(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 J4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Q4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e_={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"]},t_={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"]},n_={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"}},r_={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"}},i_={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:$n({values:J4,defaultWidth:"wide"}),quarter:$n({values:Q4,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$n({values:e_,defaultWidth:"wide"}),day:$n({values:t_,defaultWidth:"wide"}),dayPeriod:$n({values:n_,defaultWidth:"wide",formattingValues:r_,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)?o_(c,m=>m.test(a)):s_(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 s_(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function o_(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hv(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 a_=/^(\d+)(th|st|nd|rd)?/i,l_=/\d+/i,c_={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},u_={any:[/^b/i,/^(a|c)/i]},f_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},d_={any:[/1/i,/2/i,/3/i,/4/i]},h_={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},m_={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]},p_={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},v_={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}},x_={ordinalNumber:hv({matchPattern:a_,parsePattern:l_,valueCallback:e=>parseInt(e,10)}),era:Dn({matchPatterns:c_,defaultMatchWidth:"wide",parsePatterns:u_,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:f_,defaultMatchWidth:"wide",parsePatterns:d_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:h_,defaultMatchWidth:"wide",parsePatterns:m_,defaultParseWidth:"any"}),day:Dn({matchPatterns:p_,defaultMatchWidth:"wide",parsePatterns:g_,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:y_,defaultMatchWidth:"any",parsePatterns:v_,defaultParseWidth:"any"})},mv={code:"en-US",formatDistance:G4,formatLong:K4,formatRelative:Z4,localize:i_,match:x_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function b_(e,t){const n=pt(e,t==null?void 0:t.in);return D4(n,W4(n))+1}function w_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Na(n)-+N4(n);return Math.round(r/av)+1}function pv(e,t){var h,m,p,v;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),i=mo(),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??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.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=Qi(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=Qi(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function S_(e,t){var c,u,d,h;const n=mo(),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=pv(e,t),o=Gt((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Qi(o,t)}function T_(e,t){const n=pt(e,t==null?void 0:t.in),r=+Qi(n,t)-+S_(n,t);return Math.round(r/av)+1}function We(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 We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(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 We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return We(i,t.length)}},ts={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={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=pv(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=uv(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(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 We(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 We(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 We(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=T_(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):We(i,t.length)},I:function(e,t,n){const r=w_(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(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=b_(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(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 We(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 We(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 We(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=ts.noon:r===0?i=ts.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=ts.evening:r>=12?i=ts.afternoon:r>=4?i=ts.morning:i=ts.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"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(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 vv(r);case"XXXX":case"XX":return ai(r);case"XXXXX":case"XXX":default:return ai(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return vv(r);case"xxxx":case"xx":return ai(r);case"xxxxx":case"xxx":default:return ai(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yv(r,":");case"OOOO":default:return"GMT"+ai(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yv(r,":");case"zzzz":default:return"GMT"+ai(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function yv(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+We(o,2)}function vv(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):ai(e,t)}function ai(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=We(Math.trunc(r/60),2),o=We(r%60,2);return n+i+t+o}const xv=(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"})}},bv=(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"})}},E_={p:bv,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return xv(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}}",xv(r,t)).replace("{{time}}",bv(i,t))}},C_=/^D+$/,P_=/^Y+$/,A_=["D","DD","YY","YYYY"];function M_(e){return C_.test(e)}function O_(e){return P_.test(e)}function __(e,t,n){const r=I_(e,t,n);if(console.warn(r),A_.includes(e))throw new RangeError(r)}function I_(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 $_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,N_=/^'([^]*?)'?$/,k_=/''/g,L_=/[a-zA-Z]/;function Nn(e,t,n){var h,m,p,v,S,x,T,b;const r=mo(),i=(n==null?void 0:n.locale)??r.locale??mv,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??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((x=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:x.weekStartsOn)??r.weekStartsOn??((b=(T=r.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!R4(c))throw new RangeError("Invalid time value");let u=t.match(D_).map(C=>{const E=C[0];if(E==="p"||E==="P"){const $=E_[E];return $(C,i.formatLong)}return C}).join("").match($_).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const E=C[0];if(E==="'")return{isToken:!1,value:R_(C)};if(gv[E])return{isToken:!0,value:C};if(E.match(L_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return{isToken:!1,value:C}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return u.map(C=>{if(!C.isToken)return C.value;const E=C.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&O_(E)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&M_(E))&&__(E,t,String(e));const $=gv[E[0]];return $(c,E,i.localize,d)}).join("")}function R_(e){const t=e.match(N_);return t?t[1].replace(k_,"'"):e}function j_(e,t,n){const[r,i]=ka(n==null?void 0:n.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function F_(e,t){return dv(Gt(e,e),k4(e))}function wv(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 Tv(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function V_(e,t,n){return cv(e,-1,n)}const B_={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"}},W_=(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?"en "+r:"hace "+r:r},U_={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},z_={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},G_={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Y_={date:es({formats:U_,defaultWidth:"full"}),time:es({formats:z_,defaultWidth:"full"}),dateTime:es({formats:G_,defaultWidth:"full"})},H_={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"},q_={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"},K_=(e,t,n,r)=>t.getHours()!==1?q_[e]:H_[e],X_={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Z_={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},J_={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"]},Q_={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"]},eI={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"}},tI={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"}},nI={ordinalNumber:(e,t)=>Number(e)+"º",era:$n({values:X_,defaultWidth:"wide"}),quarter:$n({values:Z_,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:$n({values:J_,defaultWidth:"wide"}),day:$n({values:Q_,defaultWidth:"wide"}),dayPeriod:$n({values:eI,defaultWidth:"wide",formattingValues:tI,defaultFormattingWidth:"wide"})},rI=/^(\d+)(º)?/i,iI=/\d+/i,sI={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},oI={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]},aI={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},lI={any:[/1/i,/2/i,/3/i,/4/i]},cI={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},uI={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]},fI={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},dI={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]},hI={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},mI={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}},pI={ordinalNumber:hv({matchPattern:rI,parsePattern:iI,valueCallback:function(e){return parseInt(e,10)}}),era:Dn({matchPatterns:sI,defaultMatchWidth:"wide",parsePatterns:oI,defaultParseWidth:"any"}),quarter:Dn({matchPatterns:aI,defaultMatchWidth:"wide",parsePatterns:lI,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Dn({matchPatterns:cI,defaultMatchWidth:"wide",parsePatterns:uI,defaultParseWidth:"any"}),day:Dn({matchPatterns:fI,defaultMatchWidth:"wide",parsePatterns:dI,defaultParseWidth:"any"}),dayPeriod:Dn({matchPatterns:hI,defaultMatchWidth:"any",parsePatterns:mI,defaultParseWidth:"any"})},ns={code:"es",formatDistance:W_,formatLong:Y_,formatRelative:K_,localize:nI,match:pI,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ev=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),yf=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 Ev(Nn(r,t,{locale:{en:mv,es:ns}[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 Cv(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 Pv=e=>e;var po={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 vI=po.exports,Av;function xI(){return Av||(Av=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__",f=500,h="__lodash_placeholder__",m=1,p=2,v=4,S=1,x=2,T=1,b=2,C=4,E=8,$=16,P=32,D=64,j=128,F=256,W=512,Z=30,ee="...",se=800,ge=16,ue=1,fe=2,he=3,V=1/0,B=9007199254740991,Y=17976931348623157e292,O=NaN,k=4294967295,K=k-1,ae=k>>>1,le=[["ary",j],["bind",T],["bindKey",b],["curry",E],["curryRight",$],["flip",W],["partial",P],["partialRight",D],["rearg",F]],z="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",re="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ci="[object Null]",dt="[object Object]",bl="[object Promise]",wl="[object Proxy]",Pi="[object RegExp]",qt="[object Set]",bn="[object String]",Ai="[object Symbol]",Sl="[object Undefined]",Wr="[object WeakMap]",Tl="[object WeakSet]",xe="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",wn="[object Float64Array]",rr="[object Int8Array]",mh="[object Int16Array]",ph="[object Int32Array]",gh="[object Uint8Array]",yh="[object Uint8ClampedArray]",vh="[object Uint16Array]",xh="[object Uint32Array]",jL=/\b__p \+= '';/g,FL=/\b(__p \+=) '' \+/g,VL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U2=/&(?:amp|lt|gt|quot|#39);/g,z2=/[&<>"']/g,BL=RegExp(U2.source),WL=RegExp(z2.source),UL=/<%-([\s\S]+?)%>/g,zL=/<%([\s\S]+?)%>/g,G2=/<%=([\s\S]+?)%>/g,GL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YL=/^\w*$/,HL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,qL=RegExp(bh.source),wh=/^\s+/,KL=/\s/,XL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ZL=/\{\n\/\* \[wrapped with (.+)\] \*/,JL=/,? & /,QL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Y2=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,iR=/^0b[01]+$/i,sR=/^\[object .+?Constructor\]$/,oR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,El=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",uR="\\u0300-\\u036f",fR="\\ufe20-\\ufe2f",dR="\\u20d0-\\u20ff",H2=uR+fR+dR,q2="\\u2700-\\u27bf",K2="a-z\\xdf-\\xf6\\xf8-\\xff",hR="\\xac\\xb1\\xd7\\xf7",mR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pR="\\u2000-\\u206f",gR=" \\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",X2="A-Z\\xc0-\\xd6\\xd8-\\xde",Z2="\\ufe0e\\ufe0f",J2=hR+mR+pR+gR,Sh="['’]",yR="["+Cl+"]",Q2="["+J2+"]",Pl="["+H2+"]",ew="\\d+",vR="["+q2+"]",tw="["+K2+"]",nw="[^"+Cl+J2+ew+q2+K2+X2+"]",Th="\\ud83c[\\udffb-\\udfff]",xR="(?:"+Pl+"|"+Th+")",rw="[^"+Cl+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Cs="["+X2+"]",iw="\\u200d",sw="(?:"+tw+"|"+nw+")",bR="(?:"+Cs+"|"+nw+")",ow="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",aw="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",lw=xR+"?",cw="["+Z2+"]?",wR="(?:"+iw+"(?:"+[rw,Eh,Ch].join("|")+")"+cw+lw+")*",SR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uw=cw+lw+wR,ER="(?:"+[vR,Eh,Ch].join("|")+")"+uw,CR="(?:"+[rw+Pl+"?",Pl,Eh,Ch,yR].join("|")+")",PR=RegExp(Sh,"g"),AR=RegExp(Pl,"g"),Ph=RegExp(Th+"(?="+Th+")|"+CR+uw,"g"),MR=RegExp([Cs+"?"+tw+"+"+ow+"(?="+[Q2,Cs,"$"].join("|")+")",bR+"+"+aw+"(?="+[Q2,Cs+sw,"$"].join("|")+")",Cs+"?"+sw+"+"+ow,Cs+"+"+aw,TR,SR,ew,ER].join("|"),"g"),OR=RegExp("["+iw+Cl+H2+Z2+"]"),_R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IR=["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"],$R=-1,Je={};Je[Pt]=Je[wn]=Je[rr]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=Je[xh]=!0,Je[z]=Je[J]=Je[xe]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Pi]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[J]=Xe[xe]=Xe[Qe]=Xe[re]=Xe[de]=Xe[Pt]=Xe[wn]=Xe[rr]=Xe[mh]=Xe[ph]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Pi]=Xe[qt]=Xe[bn]=Xe[Ai]=Xe[gh]=Xe[yh]=Xe[vh]=Xe[xh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var DR={À:"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"},NR={"&":"&","<":"<",">":">",'"':""","'":"'"},kR={"&":"&","<":"<",">":">",""":'"',"'":"'"},LR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RR=parseFloat,jR=parseInt,fw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,FR=typeof self=="object"&&self&&self.Object===Object&&self,xt=fw||FR||Function("return this")(),Ah=t&&!t.nodeType&&t,Mi=Ah&&!0&&e&&!e.nodeType&&e,dw=Mi&&Mi.exports===Ah,Mh=dw&&fw.process,cn=function(){try{var L=Mi&&Mi.require&&Mi.require("util").types;return L||Mh&&Mh.binding&&Mh.binding("util")}catch{}}(),hw=cn&&cn.isArrayBuffer,mw=cn&&cn.isDate,pw=cn&&cn.isMap,gw=cn&&cn.isRegExp,yw=cn&&cn.isSet,vw=cn&&cn.isTypedArray;function Kt(L,G,U){switch(U.length){case 0:return L.call(G);case 1:return L.call(G,U[0]);case 2:return L.call(G,U[0],U[1]);case 3:return L.call(G,U[0],U[1],U[2])}return L.apply(G,U)}function VR(L,G,U,me){for(var Ae=-1,Re=L==null?0:L.length;++Ae<Re;){var ht=L[Ae];G(me,ht,U(ht),L)}return me}function un(L,G){for(var U=-1,me=L==null?0:L.length;++U<me&&G(L[U],U,L)!==!1;);return L}function BR(L,G){for(var U=L==null?0:L.length;U--&&G(L[U],U,L)!==!1;);return L}function xw(L,G){for(var U=-1,me=L==null?0:L.length;++U<me;)if(!G(L[U],U,L))return!1;return!0}function Ur(L,G){for(var U=-1,me=L==null?0:L.length,Ae=0,Re=[];++U<me;){var ht=L[U];G(ht,U,L)&&(Re[Ae++]=ht)}return Re}function Al(L,G){var U=L==null?0:L.length;return!!U&&Ps(L,G,0)>-1}function Oh(L,G,U){for(var me=-1,Ae=L==null?0:L.length;++me<Ae;)if(U(G,L[me]))return!0;return!1}function et(L,G){for(var U=-1,me=L==null?0:L.length,Ae=Array(me);++U<me;)Ae[U]=G(L[U],U,L);return Ae}function zr(L,G){for(var U=-1,me=G.length,Ae=L.length;++U<me;)L[Ae+U]=G[U];return L}function _h(L,G,U,me){var Ae=-1,Re=L==null?0:L.length;for(me&&Re&&(U=L[++Ae]);++Ae<Re;)U=G(U,L[Ae],Ae,L);return U}function WR(L,G,U,me){var Ae=L==null?0:L.length;for(me&&Ae&&(U=L[--Ae]);Ae--;)U=G(U,L[Ae],Ae,L);return U}function Ih(L,G){for(var U=-1,me=L==null?0:L.length;++U<me;)if(G(L[U],U,L))return!0;return!1}var UR=$h("length");function zR(L){return L.split("")}function GR(L){return L.match(QL)||[]}function bw(L,G,U){var me;return U(L,function(Ae,Re,ht){if(G(Ae,Re,ht))return me=Re,!1}),me}function Ml(L,G,U,me){for(var Ae=L.length,Re=U+(me?1:-1);me?Re--:++Re<Ae;)if(G(L[Re],Re,L))return Re;return-1}function Ps(L,G,U){return G===G?rj(L,G,U):Ml(L,ww,U)}function YR(L,G,U,me){for(var Ae=U-1,Re=L.length;++Ae<Re;)if(me(L[Ae],G))return Ae;return-1}function ww(L){return L!==L}function Sw(L,G){var U=L==null?0:L.length;return U?Nh(L,G)/U:O}function $h(L){return function(G){return G==null?n:G[L]}}function Dh(L){return function(G){return L==null?n:L[G]}}function Tw(L,G,U,me,Ae){return Ae(L,function(Re,ht,Ye){U=me?(me=!1,Re):G(U,Re,ht,Ye)}),U}function HR(L,G){var U=L.length;for(L.sort(G);U--;)L[U]=L[U].value;return L}function Nh(L,G){for(var U,me=-1,Ae=L.length;++me<Ae;){var Re=G(L[me]);Re!==n&&(U=U===n?Re:U+Re)}return U}function kh(L,G){for(var U=-1,me=Array(L);++U<L;)me[U]=G(U);return me}function qR(L,G){return et(G,function(U){return[U,L[U]]})}function Ew(L){return L&&L.slice(0,Mw(L)+1).replace(wh,"")}function Xt(L){return function(G){return L(G)}}function Lh(L,G){return et(G,function(U){return L[U]})}function Fo(L,G){return L.has(G)}function Cw(L,G){for(var U=-1,me=L.length;++U<me&&Ps(G,L[U],0)>-1;);return U}function Pw(L,G){for(var U=L.length;U--&&Ps(G,L[U],0)>-1;);return U}function KR(L,G){for(var U=L.length,me=0;U--;)L[U]===G&&++me;return me}var XR=Dh(DR),ZR=Dh(NR);function JR(L){return"\\"+LR[L]}function QR(L,G){return L==null?n:L[G]}function As(L){return OR.test(L)}function ej(L){return _R.test(L)}function tj(L){for(var G,U=[];!(G=L.next()).done;)U.push(G.value);return U}function Rh(L){var G=-1,U=Array(L.size);return L.forEach(function(me,Ae){U[++G]=[Ae,me]}),U}function Aw(L,G){return function(U){return L(G(U))}}function Gr(L,G){for(var U=-1,me=L.length,Ae=0,Re=[];++U<me;){var ht=L[U];(ht===G||ht===h)&&(L[U]=h,Re[Ae++]=U)}return Re}function Ol(L){var G=-1,U=Array(L.size);return L.forEach(function(me){U[++G]=me}),U}function nj(L){var G=-1,U=Array(L.size);return L.forEach(function(me){U[++G]=[me,me]}),U}function rj(L,G,U){for(var me=U-1,Ae=L.length;++me<Ae;)if(L[me]===G)return me;return-1}function ij(L,G,U){for(var me=U+1;me--;)if(L[me]===G)return me;return me}function Ms(L){return As(L)?oj(L):UR(L)}function Sn(L){return As(L)?aj(L):zR(L)}function Mw(L){for(var G=L.length;G--&&KL.test(L.charAt(G)););return G}var sj=Dh(kR);function oj(L){for(var G=Ph.lastIndex=0;Ph.test(L);)++G;return G}function aj(L){return L.match(Ph)||[]}function lj(L){return L.match(MR)||[]}var cj=function L(G){G=G==null?xt:Os.defaults(xt.Object(),G,Os.pick(xt,IR));var U=G.Array,me=G.Date,Ae=G.Error,Re=G.Function,ht=G.Math,Ye=G.Object,jh=G.RegExp,uj=G.String,fn=G.TypeError,_l=U.prototype,fj=Re.prototype,_s=Ye.prototype,Il=G["__core-js_shared__"],$l=fj.toString,ze=_s.hasOwnProperty,dj=0,Ow=function(){var s=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=_s.toString,hj=$l.call(Ye),mj=xt._,pj=jh("^"+$l.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=dw?G.Buffer:n,Yr=G.Symbol,kl=G.Uint8Array,_w=Nl?Nl.allocUnsafe:n,Ll=Aw(Ye.getPrototypeOf,Ye),Iw=Ye.create,$w=_s.propertyIsEnumerable,Rl=_l.splice,Dw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Oi=Yr?Yr.toStringTag:n,jl=function(){try{var s=Ni(Ye,"defineProperty");return s({},"",{}),s}catch{}}(),gj=G.clearTimeout!==xt.clearTimeout&&G.clearTimeout,yj=me&&me.now!==xt.Date.now&&me.now,vj=G.setTimeout!==xt.setTimeout&&G.setTimeout,Fl=ht.ceil,Vl=ht.floor,Fh=Ye.getOwnPropertySymbols,xj=Nl?Nl.isBuffer:n,Nw=G.isFinite,bj=_l.join,wj=Aw(Ye.keys,Ye),mt=ht.max,At=ht.min,Sj=me.now,Tj=G.parseInt,kw=ht.random,Ej=_l.reverse,Vh=Ni(G,"DataView"),Bo=Ni(G,"Map"),Bh=Ni(G,"Promise"),Is=Ni(G,"Set"),Wo=Ni(G,"WeakMap"),Uo=Ni(Ye,"create"),Bl=Wo&&new Wo,$s={},Cj=ki(Vh),Pj=ki(Bo),Aj=ki(Bh),Mj=ki(Is),Oj=ki(Wo),Wl=Yr?Yr.prototype:n,zo=Wl?Wl.valueOf:n,Lw=Wl?Wl.toString:n;function A(s){if(ot(s)&&!Me(s)&&!(s instanceof ke)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return RS(s)}return new dn(s)}var Ds=function(){function s(){}return function(l){if(!st(l))return{};if(Iw)return Iw(l);s.prototype=l;var d=new s;return s.prototype=n,d}}();function Ul(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}A.templateSettings={escape:UL,evaluate:zL,interpolate:G2,variable:"",imports:{_:A}},A.prototype=Ul.prototype,A.prototype.constructor=A,dn.prototype=Ds(Ul.prototype),dn.prototype.constructor=dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function _j(){var s=new ke(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 Ij(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $j(){var s=this.__wrapped__.value(),l=this.__dir__,d=Me(s),g=l<0,w=d?s.length:0,M=zF(0,w,this.__views__),I=M.start,N=M.end,R=N-I,H=g?N:I-1,q=this.__iteratees__,X=q.length,ce=0,ye=At(R,this.__takeCount__);if(!d||!g&&w==R&&ye==R)return oS(s,this.__actions__);var Te=[];e:for(;R--&&ce<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[ce++]=Ee}return Te}ke.prototype=Ds(Ul.prototype),ke.prototype.constructor=ke;function _i(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Dj(){this.__data__=Uo?Uo(null):{},this.size=0}function Nj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function kj(s){var l=this.__data__;if(Uo){var d=l[s];return d===u?n:d}return ze.call(l,s)?l[s]:n}function Lj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Rj(s,l){var d=this.__data__;return this.size+=this.has(s)?0:1,d[s]=Uo&&l===n?u:l,this}_i.prototype.clear=Dj,_i.prototype.delete=Nj,_i.prototype.get=kj,_i.prototype.has=Lj,_i.prototype.set=Rj;function ir(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function jj(){this.__data__=[],this.size=0}function Fj(s){var l=this.__data__,d=zl(l,s);if(d<0)return!1;var g=l.length-1;return d==g?l.pop():Rl.call(l,d,1),--this.size,!0}function Vj(s){var l=this.__data__,d=zl(l,s);return d<0?n:l[d][1]}function Bj(s){return zl(this.__data__,s)>-1}function Wj(s,l){var d=this.__data__,g=zl(d,s);return g<0?(++this.size,d.push([s,l])):d[g][1]=l,this}ir.prototype.clear=jj,ir.prototype.delete=Fj,ir.prototype.get=Vj,ir.prototype.has=Bj,ir.prototype.set=Wj;function sr(s){var l=-1,d=s==null?0:s.length;for(this.clear();++l<d;){var g=s[l];this.set(g[0],g[1])}}function Uj(){this.size=0,this.__data__={hash:new _i,map:new(Bo||ir),string:new _i}}function zj(s){var l=nc(this,s).delete(s);return this.size-=l?1:0,l}function Gj(s){return nc(this,s).get(s)}function Yj(s){return nc(this,s).has(s)}function Hj(s,l){var d=nc(this,s),g=d.size;return d.set(s,l),this.size+=d.size==g?0:1,this}sr.prototype.clear=Uj,sr.prototype.delete=zj,sr.prototype.get=Gj,sr.prototype.has=Yj,sr.prototype.set=Hj;function Ii(s){var l=-1,d=s==null?0:s.length;for(this.__data__=new sr;++l<d;)this.add(s[l])}function qj(s){return this.__data__.set(s,u),this}function Kj(s){return this.__data__.has(s)}Ii.prototype.add=Ii.prototype.push=qj,Ii.prototype.has=Kj;function Tn(s){var l=this.__data__=new ir(s);this.size=l.size}function Xj(){this.__data__=new ir,this.size=0}function Zj(s){var l=this.__data__,d=l.delete(s);return this.size=l.size,d}function Jj(s){return this.__data__.get(s)}function Qj(s){return this.__data__.has(s)}function eF(s,l){var d=this.__data__;if(d instanceof ir){var g=d.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++d.size,this;d=this.__data__=new sr(g)}return d.set(s,l),this.size=d.size,this}Tn.prototype.clear=Xj,Tn.prototype.delete=Zj,Tn.prototype.get=Jj,Tn.prototype.has=Qj,Tn.prototype.set=eF;function Rw(s,l){var d=Me(s),g=!d&&Li(s),w=!d&&!g&&Zr(s),M=!d&&!g&&!w&&Rs(s),I=d||g||w||M,N=I?kh(s.length,uj):[],R=N.length;for(var H in s)(l||ze.call(s,H))&&!(I&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,R)))&&N.push(H);return N}function jw(s){var l=s.length;return l?s[Jh(0,l-1)]:n}function tF(s,l){return rc(Vt(s),$i(l,0,s.length))}function nF(s){return rc(Vt(s))}function Wh(s,l,d){(d!==n&&!En(s[l],d)||d===n&&!(l in s))&&or(s,l,d)}function Go(s,l,d){var g=s[l];(!(ze.call(s,l)&&En(g,d))||d===n&&!(l in s))&&or(s,l,d)}function zl(s,l){for(var d=s.length;d--;)if(En(s[d][0],l))return d;return-1}function rF(s,l,d,g){return Hr(s,function(w,M,I){l(g,w,d(w),I)}),g}function Fw(s,l){return s&&zn(l,gt(l),s)}function iF(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,d){l=="__proto__"&&jl?jl(s,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[l]=d}function Uh(s,l){for(var d=-1,g=l.length,w=U(g),M=s==null;++d<g;)w[d]=M?n:Tm(s,l[d]);return w}function $i(s,l,d){return s===s&&(d!==n&&(s=s<=d?s:d),l!==n&&(s=s>=l?s:l)),s}function hn(s,l,d,g,w,M){var I,N=l&m,R=l&p,H=l&v;if(d&&(I=w?d(s,g,w,M):d(s)),I!==n)return I;if(!st(s))return s;var q=Me(s);if(q){if(I=YF(s),!N)return Vt(s,I)}else{var X=Mt(s),ce=X==ie||X==pe;if(Zr(s))return cS(s,N);if(X==dt||X==z||ce&&!w){if(I=R||ce?{}:MS(s),!N)return R?kF(s,iF(I,s)):NF(s,Fw(I,s))}else{if(!Xe[X])return w?s:{};I=HF(s,X,N)}}M||(M=new Tn);var ye=M.get(s);if(ye)return ye;M.set(s,I),rT(s)?s.forEach(function(Ee){I.add(hn(Ee,l,d,Ee,s,M))}):tT(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,d,Ne,s,M))});var Te=H?R?cm:lm:R?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,d,Ne,s,M))}),I}function sF(s){var l=gt(s);return function(d){return Vw(d,s,l)}}function Vw(s,l,d){var g=d.length;if(s==null)return!g;for(s=Ye(s);g--;){var w=d[g],M=l[w],I=s[w];if(I===n&&!(w in s)||!M(I))return!1}return!0}function Bw(s,l,d){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,d)},l)}function Yo(s,l,d,g){var w=-1,M=Al,I=!0,N=s.length,R=[],H=l.length;if(!N)return R;d&&(l=et(l,Xt(d))),g?(M=Oh,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Ii(l));e:for(;++w<N;){var q=s[w],X=d==null?q:d(q);if(q=g||q!==0?q:0,I&&X===X){for(var ce=H;ce--;)if(l[ce]===X)continue e;R.push(q)}else M(l,X,g)||R.push(q)}return R}var Hr=mS(Un),Ww=mS(Gh,!0);function oF(s,l){var d=!0;return Hr(s,function(g,w,M){return d=!!l(g,w,M),d}),d}function Gl(s,l,d){for(var g=-1,w=s.length;++g<w;){var M=s[g],I=l(M);if(I!=null&&(N===n?I===I&&!Jt(I):d(I,N)))var N=I,R=M}return R}function aF(s,l,d,g){var w=s.length;for(d=Oe(d),d<0&&(d=-d>w?0:w+d),g=g===n||g>w?w:Oe(g),g<0&&(g+=w),g=d>g?0:sT(g);d<g;)s[d++]=l;return s}function Uw(s,l){var d=[];return Hr(s,function(g,w,M){l(g,w,M)&&d.push(g)}),d}function bt(s,l,d,g,w){var M=-1,I=s.length;for(d||(d=KF),w||(w=[]);++M<I;){var N=s[M];l>0&&d(N)?l>1?bt(N,l-1,d,g,w):zr(w,N):g||(w[w.length]=N)}return w}var zh=pS(),zw=pS(!0);function Un(s,l){return s&&zh(s,l,gt)}function Gh(s,l){return s&&zw(s,l,gt)}function Yl(s,l){return Ur(l,function(d){return ur(s[d])})}function Di(s,l){l=Kr(l,s);for(var d=0,g=l.length;s!=null&&d<g;)s=s[Gn(l[d++])];return d&&d==g?s:n}function Gw(s,l,d){var g=l(s);return Me(s)?g:zr(g,d(s))}function It(s){return s==null?s===n?Sl:Ci:Oi&&Oi in Ye(s)?UF(s):nV(s)}function Yh(s,l){return s>l}function lF(s,l){return s!=null&&ze.call(s,l)}function cF(s,l){return s!=null&&l in Ye(s)}function uF(s,l,d){return s>=At(l,d)&&s<mt(l,d)}function Hh(s,l,d){for(var g=d?Oh:Al,w=s[0].length,M=s.length,I=M,N=U(M),R=1/0,H=[];I--;){var q=s[I];I&&l&&(q=et(q,Xt(l))),R=At(q.length,R),N[I]=!d&&(l||w>=120&&q.length>=120)?new Ii(I&&q):n}q=s[0];var X=-1,ce=N[0];e:for(;++X<w&&H.length<R;){var ye=q[X],Te=l?l(ye):ye;if(ye=d||ye!==0?ye:0,!(ce?Fo(ce,Te):g(H,Te,d))){for(I=M;--I;){var _e=N[I];if(!(_e?Fo(_e,Te):g(s[I],Te,d)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function fF(s,l,d,g){return Un(s,function(w,M,I){l(g,d(w),M,I)}),g}function Ho(s,l,d){l=Kr(l,s),s=$S(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,d)}function Yw(s){return ot(s)&&It(s)==z}function dF(s){return ot(s)&&It(s)==xe}function hF(s){return ot(s)&&It(s)==de}function qo(s,l,d,g,w){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:mF(s,l,d,g,qo,w)}function mF(s,l,d,g,w,M){var I=Me(s),N=Me(l),R=I?J:Mt(s),H=N?J:Mt(l);R=R==z?dt:R,H=H==z?dt:H;var q=R==dt,X=H==dt,ce=R==H;if(ce&&Zr(s)){if(!Zr(l))return!1;I=!0,q=!1}if(ce&&!q)return M||(M=new Tn),I||Rs(s)?CS(s,l,d,g,w,M):BF(s,l,R,d,g,w,M);if(!(d&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Tn),w(_e,Ee,d,g,M)}}return ce?(M||(M=new Tn),WF(s,l,d,g,w,M)):!1}function pF(s){return ot(s)&&Mt(s)==De}function qh(s,l,d,g){var w=d.length,M=w,I=!g;if(s==null)return!M;for(s=Ye(s);w--;){var N=d[w];if(I&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++w<M;){N=d[w];var R=N[0],H=s[R],q=N[1];if(I&&N[2]){if(H===n&&!(R in s))return!1}else{var X=new Tn;if(g)var ce=g(H,q,R,s,l,X);if(!(ce===n?qo(q,H,S|x,g,X):ce))return!1}}return!0}function Hw(s){if(!st(s)||ZF(s))return!1;var l=ur(s)?pj:sR;return l.test(ki(s))}function gF(s){return ot(s)&&It(s)==Pi}function yF(s){return ot(s)&&Mt(s)==qt}function vF(s){return ot(s)&&cc(s.length)&&!!Je[It(s)]}function qw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Me(s)?Zw(s[0],s[1]):Xw(s):gT(s)}function Kh(s){if(!Zo(s))return wj(s);var l=[];for(var d in Ye(s))ze.call(s,d)&&d!="constructor"&&l.push(d);return l}function xF(s){if(!st(s))return tV(s);var l=Zo(s),d=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||d.push(g);return d}function Xh(s,l){return s<l}function Kw(s,l){var d=-1,g=Bt(s)?U(s.length):[];return Hr(s,function(w,M,I){g[++d]=l(w,M,I)}),g}function Xw(s){var l=fm(s);return l.length==1&&l[0][2]?_S(l[0][0],l[0][1]):function(d){return d===s||qh(d,s,l)}}function Zw(s,l){return hm(s)&&OS(l)?_S(Gn(s),l):function(d){var g=Tm(d,s);return g===n&&g===l?Em(d,s):qo(l,g,S|x)}}function Hl(s,l,d,g,w){s!==l&&zh(l,function(M,I){if(w||(w=new Tn),st(M))bF(s,l,I,d,Hl,g,w);else{var N=g?g(pm(s,I),M,I+"",s,l,w):n;N===n&&(N=M),Wh(s,I,N)}},Wt)}function bF(s,l,d,g,w,M,I){var N=pm(s,d),R=pm(l,d),H=I.get(R);if(H){Wh(s,d,H);return}var q=M?M(N,R,d+"",s,l,I):n,X=q===n;if(X){var ce=Me(R),ye=!ce&&Zr(R),Te=!ce&&!ye&&Rs(R);q=R,ce||ye||Te?Me(N)?q=N:ct(N)?q=Vt(N):ye?(X=!1,q=cS(R,!0)):Te?(X=!1,q=uS(R,!0)):q=[]:Qo(R)||Li(R)?(q=N,Li(N)?q=oT(N):(!st(N)||ur(N))&&(q=MS(R))):X=!1}X&&(I.set(R,q),w(q,R,g,M,I),I.delete(R)),Wh(s,d,q)}function Jw(s,l){var d=s.length;if(d)return l+=l<0?d:0,cr(l,d)?s[l]:n}function Qw(s,l,d){l.length?l=et(l,function(M){return Me(M)?function(I){return Di(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(be()));var w=Kw(s,function(M,I,N){var R=et(l,function(H){return H(M)});return{criteria:R,index:++g,value:M}});return HR(w,function(M,I){return DF(M,I,d)})}function wF(s,l){return eS(s,l,function(d,g){return Em(s,g)})}function eS(s,l,d){for(var g=-1,w=l.length,M={};++g<w;){var I=l[g],N=Di(s,I);d(N,I)&&Ko(M,Kr(I,s),N)}return M}function SF(s){return function(l){return Di(l,s)}}function Zh(s,l,d,g){var w=g?YR:Ps,M=-1,I=l.length,N=s;for(s===l&&(l=Vt(l)),d&&(N=et(s,Xt(d)));++M<I;)for(var R=0,H=l[M],q=d?d(H):H;(R=w(N,q,R,g))>-1;)N!==s&&Rl.call(N,R,1),Rl.call(s,R,1);return s}function tS(s,l){for(var d=s?l.length:0,g=d-1;d--;){var w=l[d];if(d==g||w!==M){var M=w;cr(w)?Rl.call(s,w,1):tm(s,w)}}return s}function Jh(s,l){return s+Vl(kw()*(l-s+1))}function TF(s,l,d,g){for(var w=-1,M=mt(Fl((l-s)/(d||1)),0),I=U(M);M--;)I[g?M:++w]=s,s+=d;return I}function Qh(s,l){var d="";if(!s||l<1||l>B)return d;do l%2&&(d+=s),l=Vl(l/2),l&&(s+=s);while(l);return d}function Ie(s,l){return gm(IS(s,l,Ut),s+"")}function EF(s){return jw(js(s))}function CF(s,l){var d=js(s);return rc(d,$i(l,0,d.length))}function Ko(s,l,d,g){if(!st(s))return s;l=Kr(l,s);for(var w=-1,M=l.length,I=M-1,N=s;N!=null&&++w<M;){var R=Gn(l[w]),H=d;if(R==="__proto__"||R==="constructor"||R==="prototype")return s;if(w!=I){var q=N[R];H=g?g(q,R,N):n,H===n&&(H=st(q)?q:cr(l[w+1])?[]:{})}Go(N,R,H),N=N[R]}return s}var nS=Bl?function(s,l){return Bl.set(s,l),s}:Ut,PF=jl?function(s,l){return jl(s,"toString",{configurable:!0,enumerable:!1,value:Pm(l),writable:!0})}:Ut;function AF(s){return rc(js(s))}function mn(s,l,d){var g=-1,w=s.length;l<0&&(l=-l>w?0:w+l),d=d>w?w:d,d<0&&(d+=w),w=l>d?0:d-l>>>0,l>>>=0;for(var M=U(w);++g<w;)M[g]=s[g+l];return M}function MF(s,l){var d;return Hr(s,function(g,w,M){return d=l(g,w,M),!d}),!!d}function ql(s,l,d){var g=0,w=s==null?g:s.length;if(typeof l=="number"&&l===l&&w<=ae){for(;g<w;){var M=g+w>>>1,I=s[M];I!==null&&!Jt(I)&&(d?I<=l:I<l)?g=M+1:w=M}return w}return em(s,l,Ut,d)}function em(s,l,d,g){var w=0,M=s==null?0:s.length;if(M===0)return 0;l=d(l);for(var I=l!==l,N=l===null,R=Jt(l),H=l===n;w<M;){var q=Vl((w+M)/2),X=d(s[q]),ce=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else H?Ee=Te&&(g||ce):N?Ee=Te&&ce&&(g||!ye):R?Ee=Te&&ce&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?w=q+1:M=q}return At(M,K)}function rS(s,l){for(var d=-1,g=s.length,w=0,M=[];++d<g;){var I=s[d],N=l?l(I):I;if(!d||!En(N,R)){var R=N;M[w++]=I===0?0:I}}return M}function iS(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Me(s))return et(s,Zt)+"";if(Jt(s))return Lw?Lw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,d){var g=-1,w=Al,M=s.length,I=!0,N=[],R=N;if(d)I=!1,w=Oh;else if(M>=i){var H=l?null:FF(s);if(H)return Ol(H);I=!1,w=Fo,R=new Ii}else R=l?[]:N;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=d||q!==0?q:0,I&&X===X){for(var ce=R.length;ce--;)if(R[ce]===X)continue e;l&&R.push(X),N.push(q)}else w(R,X,d)||(R!==N&&R.push(X),N.push(q))}return N}function tm(s,l){return l=Kr(l,s),s=$S(s,l),s==null||delete s[Gn(pn(l))]}function sS(s,l,d,g){return Ko(s,l,d(Di(s,l)),g)}function Kl(s,l,d,g){for(var w=s.length,M=g?w:-1;(g?M--:++M<w)&&l(s[M],M,s););return d?mn(s,g?0:M,g?M+1:w):mn(s,g?M+1:0,g?w:M)}function oS(s,l){var d=s;return d instanceof ke&&(d=d.value()),_h(l,function(g,w){return w.func.apply(w.thisArg,zr([g],w.args))},d)}function nm(s,l,d){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var w=-1,M=U(g);++w<g;)for(var I=s[w],N=-1;++N<g;)N!=w&&(M[w]=Yo(M[w]||I,s[N],l,d));return qr(bt(M,1),l,d)}function aS(s,l,d){for(var g=-1,w=s.length,M=l.length,I={};++g<w;){var N=g<M?l[g]:n;d(I,s[g],N)}return I}function rm(s){return ct(s)?s:[]}function im(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Me(s)?s:hm(s,l)?[s]:LS(Be(s))}var OF=Ie;function Xr(s,l,d){var g=s.length;return d=d===n?g:d,!l&&d>=g?s:mn(s,l,d)}var lS=gj||function(s){return xt.clearTimeout(s)};function cS(s,l){if(l)return s.slice();var d=s.length,g=_w?_w(d):new s.constructor(d);return s.copy(g),g}function sm(s){var l=new s.constructor(s.byteLength);return new kl(l).set(new kl(s)),l}function _F(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function IF(s){var l=new s.constructor(s.source,Y2.exec(s));return l.lastIndex=s.lastIndex,l}function $F(s){return zo?Ye(zo.call(s)):{}}function uS(s,l){var d=l?sm(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function fS(s,l){if(s!==l){var d=s!==n,g=s===null,w=s===s,M=Jt(s),I=l!==n,N=l===null,R=l===l,H=Jt(l);if(!N&&!H&&!M&&s>l||M&&I&&R&&!N&&!H||g&&I&&R||!d&&R||!w)return 1;if(!g&&!M&&!H&&s<l||H&&d&&w&&!g&&!M||N&&d&&w||!I&&w||!R)return-1}return 0}function DF(s,l,d){for(var g=-1,w=s.criteria,M=l.criteria,I=w.length,N=d.length;++g<I;){var R=fS(w[g],M[g]);if(R){if(g>=N)return R;var H=d[g];return R*(H=="desc"?-1:1)}}return s.index-l.index}function dS(s,l,d,g){for(var w=-1,M=s.length,I=d.length,N=-1,R=l.length,H=mt(M-I,0),q=U(R+H),X=!g;++N<R;)q[N]=l[N];for(;++w<I;)(X||w<M)&&(q[d[w]]=s[w]);for(;H--;)q[N++]=s[w++];return q}function hS(s,l,d,g){for(var w=-1,M=s.length,I=-1,N=d.length,R=-1,H=l.length,q=mt(M-N,0),X=U(q+H),ce=!g;++w<q;)X[w]=s[w];for(var ye=w;++R<H;)X[ye+R]=l[R];for(;++I<N;)(ce||w<M)&&(X[ye+d[I]]=s[w++]);return X}function Vt(s,l){var d=-1,g=s.length;for(l||(l=U(g));++d<g;)l[d]=s[d];return l}function zn(s,l,d,g){var w=!d;d||(d={});for(var M=-1,I=l.length;++M<I;){var N=l[M],R=g?g(d[N],s[N],N,d,s):n;R===n&&(R=s[N]),w?or(d,N,R):Go(d,N,R)}return d}function NF(s,l){return zn(s,dm(s),l)}function kF(s,l){return zn(s,PS(s),l)}function Xl(s,l){return function(d,g){var w=Me(d)?VR:rF,M=l?l():{};return w(d,s,be(g,2),M)}}function Ns(s){return Ie(function(l,d){var g=-1,w=d.length,M=w>1?d[w-1]:n,I=w>2?d[2]:n;for(M=s.length>3&&typeof M=="function"?(w--,M):n,I&&$t(d[0],d[1],I)&&(M=w<3?n:M,w=1),l=Ye(l);++g<w;){var N=d[g];N&&s(l,N,g,M)}return l})}function mS(s,l){return function(d,g){if(d==null)return d;if(!Bt(d))return s(d,g);for(var w=d.length,M=l?w:-1,I=Ye(d);(l?M--:++M<w)&&g(I[M],M,I)!==!1;);return d}}function pS(s){return function(l,d,g){for(var w=-1,M=Ye(l),I=g(l),N=I.length;N--;){var R=I[s?N:++w];if(d(M[R],R,M)===!1)break}return l}}function LF(s,l,d){var g=l&T,w=Xo(s);function M(){var I=this&&this!==xt&&this instanceof M?w:s;return I.apply(g?d:this,arguments)}return M}function gS(s){return function(l){l=Be(l);var d=As(l)?Sn(l):n,g=d?d[0]:l.charAt(0),w=d?Xr(d,1).join(""):l.slice(1);return g[s]()+w}}function ks(s){return function(l){return _h(mT(hT(l).replace(PR,"")),s,"")}}function Xo(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 d=Ds(s.prototype),g=s.apply(d,l);return st(g)?g:d}}function RF(s,l,d){var g=Xo(s);function w(){for(var M=arguments.length,I=U(M),N=M,R=Ls(w);N--;)I[N]=arguments[N];var H=M<3&&I[0]!==R&&I[M-1]!==R?[]:Gr(I,R);if(M-=H.length,M<d)return wS(s,l,Zl,w.placeholder,n,I,H,n,n,d-M);var q=this&&this!==xt&&this instanceof w?g:s;return Kt(q,this,I)}return w}function yS(s){return function(l,d,g){var w=Ye(l);if(!Bt(l)){var M=be(d,3);l=gt(l),d=function(N){return M(w[N],N,w)}}var I=s(l,d,g);return I>-1?w[M?l[I]:I]:n}}function vS(s){return lr(function(l){var d=l.length,g=d,w=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(w&&!I&&tc(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:d;++g<d;){M=l[g];var N=tc(M),R=N=="wrapper"?um(M):n;R&&mm(R[0])&&R[1]==(j|E|P|F)&&!R[4].length&&R[9]==1?I=I[tc(R[0])].apply(I,R[3]):I=M.length==1&&mm(M)?I[N]():I.thru(M)}return function(){var H=arguments,q=H[0];if(I&&H.length==1&&Me(q))return I.plant(q).value();for(var X=0,ce=d?l[X].apply(this,H):q;++X<d;)ce=l[X].call(this,ce);return ce}})}function Zl(s,l,d,g,w,M,I,N,R,H){var q=l&j,X=l&T,ce=l&b,ye=l&(E|$),Te=l&W,_e=ce?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=U(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ls(Ee),en=KR(Le,Dt);if(g&&(Le=dS(Le,g,w,ye)),M&&(Le=hS(Le,M,I,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return wS(s,l,Zl,Ee.placeholder,d,Le,ut,N,R,H-Ne)}var Cn=X?d:this,dr=ce?Cn[s]:s;return Ne=Le.length,N?Le=rV(Le,N):Te&&Ne>1&&Le.reverse(),q&&R<Ne&&(Le.length=R),this&&this!==xt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(Cn,Le)}return Ee}function xS(s,l){return function(d,g){return fF(d,s,l(g),{})}}function Jl(s,l){return function(d,g){var w;if(d===n&&g===n)return l;if(d!==n&&(w=d),g!==n){if(w===n)return g;typeof d=="string"||typeof g=="string"?(d=Zt(d),g=Zt(g)):(d=iS(d),g=iS(g)),w=s(d,g)}return w}}function om(s){return lr(function(l){return l=et(l,Xt(be())),Ie(function(d){var g=this;return s(l,function(w){return Kt(w,g,d)})})})}function Ql(s,l){l=l===n?" ":Zt(l);var d=l.length;if(d<2)return d?Qh(l,s):l;var g=Qh(l,Fl(s/Ms(l)));return As(l)?Xr(Sn(g),0,s).join(""):g.slice(0,s)}function jF(s,l,d,g){var w=l&T,M=Xo(s);function I(){for(var N=-1,R=arguments.length,H=-1,q=g.length,X=U(q+R),ce=this&&this!==xt&&this instanceof I?M:s;++H<q;)X[H]=g[H];for(;R--;)X[H++]=arguments[++N];return Kt(ce,w?d:this,X)}return I}function bS(s){return function(l,d,g){return g&&typeof g!="number"&&$t(l,d,g)&&(d=g=n),l=fr(l),d===n?(d=l,l=0):d=fr(d),g=g===n?l<d?1:-1:fr(g),TF(l,d,g,s)}}function ec(s){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gn(l),d=gn(d)),s(l,d)}}function wS(s,l,d,g,w,M,I,N,R,H){var q=l&E,X=q?I:n,ce=q?n:I,ye=q?M:n,Te=q?n:M;l|=q?P:D,l&=~(q?D:P),l&C||(l&=-4);var _e=[s,l,w,ye,X,Te,ce,N,R,H],Ee=d.apply(n,_e);return mm(s)&&DS(Ee,_e),Ee.placeholder=g,NS(Ee,s,l)}function am(s){var l=ht[s];return function(d,g){if(d=gn(d),g=g==null?0:At(Oe(g),292),g&&Nw(d)){var w=(Be(d)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+g));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(d)}}var FF=Is&&1/Ol(new Is([,-0]))[1]==V?function(s){return new Is(s)}:Om;function SS(s){return function(l){var d=Mt(l);return d==De?Rh(l):d==qt?nj(l):qR(l,s(l))}}function ar(s,l,d,g,w,M,I,N){var R=l&b;if(!R&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=w=n),I=I===n?I:mt(Oe(I),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=g,X=w;g=w=n}var ce=R?n:um(s),ye=[s,l,d,g,w,q,X,M,I,N];if(ce&&eV(ye,ce),s=ye[0],l=ye[1],d=ye[2],g=ye[3],w=ye[4],N=ye[9]=ye[9]===n?R?0:s.length:mt(ye[9]-H,0),!N&&l&(E|$)&&(l&=-25),!l||l==T)var Te=LF(s,l,d);else l==E||l==$?Te=RF(s,l,N):(l==P||l==(T|P))&&!w.length?Te=jF(s,l,d,g):Te=Zl.apply(n,ye);var _e=ce?nS:DS;return NS(_e(Te,ye),s,l)}function TS(s,l,d,g){return s===n||En(s,_s[d])&&!ze.call(g,d)?l:s}function ES(s,l,d,g,w,M){return st(s)&&st(l)&&(M.set(l,s),Hl(s,l,n,ES,M),M.delete(l)),s}function VF(s){return Qo(s)?n:s}function CS(s,l,d,g,w,M){var I=d&S,N=s.length,R=l.length;if(N!=R&&!(I&&R>N))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ce=!0,ye=d&x?new Ii:n;for(M.set(s,l),M.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ce=!1;break}if(ye){if(!Ih(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||w(Te,Ne,d,g,M)))return ye.push(Le)})){ce=!1;break}}else if(!(Te===_e||w(Te,_e,d,g,M))){ce=!1;break}}return M.delete(s),M.delete(l),ce}function BF(s,l,d,g,w,M,I){switch(d){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case xe:return!(s.byteLength!=l.byteLength||!M(new kl(s),new kl(l)));case re:case de:case ft:return En(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Pi:case bn:return s==l+"";case De:var N=Rh;case qt:var R=g&S;if(N||(N=Ol),s.size!=l.size&&!R)return!1;var H=I.get(s);if(H)return H==l;g|=x,I.set(s,l);var q=CS(N(s),N(l),g,w,M,I);return I.delete(s),q;case Ai:if(zo)return zo.call(s)==zo.call(l)}return!1}function WF(s,l,d,g,w,M){var I=d&S,N=lm(s),R=N.length,H=lm(l),q=H.length;if(R!=q&&!I)return!1;for(var X=R;X--;){var ce=N[X];if(!(I?ce in l:ze.call(l,ce)))return!1}var ye=M.get(s),Te=M.get(l);if(ye&&Te)return ye==l&&Te==s;var _e=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<R;){ce=N[X];var Ne=s[ce],Le=l[ce];if(g)var Qt=I?g(Le,Ne,ce,l,s,M):g(Ne,Le,ce,s,l,M);if(!(Qt===n?Ne===Le||w(Ne,Le,d,g,M):Qt)){_e=!1;break}Ee||(Ee=ce=="constructor")}if(_e&&!Ee){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return gm(IS(s,n,VS),s+"")}function lm(s){return Gw(s,gt,dm)}function cm(s){return Gw(s,Wt,PS)}var um=Bl?function(s){return Bl.get(s)}:Om;function tc(s){for(var l=s.name+"",d=$s[l],g=ze.call($s,l)?d.length:0;g--;){var w=d[g],M=w.func;if(M==null||M==s)return w.name}return l}function Ls(s){var l=ze.call(A,"placeholder")?A:s;return l.placeholder}function be(){var s=A.iteratee||Am;return s=s===Am?qw:s,arguments.length?s(arguments[0],arguments[1]):s}function nc(s,l){var d=s.__data__;return XF(l)?d[typeof l=="string"?"string":"hash"]:d.map}function fm(s){for(var l=gt(s),d=l.length;d--;){var g=l[d],w=s[g];l[d]=[g,w,OS(w)]}return l}function Ni(s,l){var d=QR(s,l);return Hw(d)?d:n}function UF(s){var l=ze.call(s,Oi),d=s[Oi];try{s[Oi]=n;var g=!0}catch{}var w=Dl.call(s);return g&&(l?s[Oi]=d:delete s[Oi]),w}var dm=Fh?function(s){return s==null?[]:(s=Ye(s),Ur(Fh(s),function(l){return $w.call(s,l)}))}:_m,PS=Fh?function(s){for(var l=[];s;)zr(l,dm(s)),s=Ll(s);return l}:_m,Mt=It;(Vh&&Mt(new Vh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Bh&&Mt(Bh.resolve())!=bl||Is&&Mt(new Is)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),d=l==dt?s.constructor:n,g=d?ki(d):"";if(g)switch(g){case Cj:return Qe;case Pj:return De;case Aj:return bl;case Mj:return qt;case Oj:return Wr}return l});function zF(s,l,d){for(var g=-1,w=d.length;++g<w;){var M=d[g],I=M.size;switch(M.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function GF(s){var l=s.match(ZL);return l?l[1].split(JL):[]}function AS(s,l,d){l=Kr(l,s);for(var g=-1,w=l.length,M=!1;++g<w;){var I=Gn(l[g]);if(!(M=s!=null&&d(s,I)))break;s=s[I]}return M||++g!=w?M:(w=s==null?0:s.length,!!w&&cc(w)&&cr(I,w)&&(Me(s)||Li(s)))}function YF(s){var l=s.length,d=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(d.index=s.index,d.input=s.input),d}function MS(s){return typeof s.constructor=="function"&&!Zo(s)?Ds(Ll(s)):{}}function HF(s,l,d){var g=s.constructor;switch(l){case xe:return sm(s);case re:case de:return new g(+s);case Qe:return _F(s,d);case Pt:case wn:case rr:case mh:case ph:case gh:case yh:case vh:case xh:return uS(s,d);case De:return new g;case ft:case bn:return new g(s);case Pi:return IF(s);case qt:return new g;case Ai:return $F(s)}}function qF(s,l){var d=l.length;if(!d)return s;var g=d-1;return l[g]=(d>1?"& ":"")+l[g],l=l.join(d>2?", ":" "),s.replace(XL,`{
|
|
632
|
+
*/var vI=po.exports,Av;function xI(){return Av||(Av=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,p=2,v=4,S=1,x=2,T=1,b=2,C=4,E=8,$=16,A=32,D=64,R=128,F=256,B=512,Z=30,ee="...",se=800,ge=16,le=1,fe=2,he=3,Y=1/0,U=9007199254740991,V=17976931348623157e292,O=NaN,k=4294967295,K=k-1,ae=k>>>1,ce=[["ary",R],["bind",T],["bindKey",b],["curry",E],["curryRight",$],["flip",B],["partial",A],["partialRight",D],["rearg",F]],z="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",re="[object Boolean]",de="[object Date]",Ce="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ci="[object Null]",dt="[object Object]",bl="[object Promise]",wl="[object Proxy]",Pi="[object RegExp]",qt="[object Set]",bn="[object String]",Ai="[object Symbol]",Sl="[object Undefined]",Wr="[object WeakMap]",Tl="[object WeakSet]",xe="[object ArrayBuffer]",Qe="[object DataView]",Pt="[object Float32Array]",wn="[object Float64Array]",rr="[object Int8Array]",mh="[object Int16Array]",ph="[object Int32Array]",gh="[object Uint8Array]",yh="[object Uint8ClampedArray]",vh="[object Uint16Array]",xh="[object Uint32Array]",jL=/\b__p \+= '';/g,FL=/\b(__p \+=) '' \+/g,VL=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U2=/&(?:amp|lt|gt|quot|#39);/g,z2=/[&<>"']/g,BL=RegExp(U2.source),WL=RegExp(z2.source),UL=/<%-([\s\S]+?)%>/g,zL=/<%([\s\S]+?)%>/g,G2=/<%=([\s\S]+?)%>/g,GL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,YL=/^\w*$/,HL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,qL=RegExp(bh.source),wh=/^\s+/,KL=/\s/,XL=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ZL=/\{\n\/\* \[wrapped with (.+)\] \*/,JL=/,? & /,QL=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eR=/[()=,{}\[\]\/\s]/,tR=/\\(\\)?/g,nR=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Y2=/\w*$/,rR=/^[-+]0x[0-9a-f]+$/i,iR=/^0b[01]+$/i,sR=/^\[object .+?Constructor\]$/,oR=/^0o[0-7]+$/i,aR=/^(?:0|[1-9]\d*)$/,lR=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,El=/($^)/,cR=/['\n\r\u2028\u2029\\]/g,Cl="\\ud800-\\udfff",uR="\\u0300-\\u036f",fR="\\ufe20-\\ufe2f",dR="\\u20d0-\\u20ff",H2=uR+fR+dR,q2="\\u2700-\\u27bf",K2="a-z\\xdf-\\xf6\\xf8-\\xff",hR="\\xac\\xb1\\xd7\\xf7",mR="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",pR="\\u2000-\\u206f",gR=" \\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",X2="A-Z\\xc0-\\xd6\\xd8-\\xde",Z2="\\ufe0e\\ufe0f",J2=hR+mR+pR+gR,Sh="['’]",yR="["+Cl+"]",Q2="["+J2+"]",Pl="["+H2+"]",ew="\\d+",vR="["+q2+"]",tw="["+K2+"]",nw="[^"+Cl+J2+ew+q2+K2+X2+"]",Th="\\ud83c[\\udffb-\\udfff]",xR="(?:"+Pl+"|"+Th+")",rw="[^"+Cl+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Cs="["+X2+"]",iw="\\u200d",sw="(?:"+tw+"|"+nw+")",bR="(?:"+Cs+"|"+nw+")",ow="(?:"+Sh+"(?:d|ll|m|re|s|t|ve))?",aw="(?:"+Sh+"(?:D|LL|M|RE|S|T|VE))?",lw=xR+"?",cw="["+Z2+"]?",wR="(?:"+iw+"(?:"+[rw,Eh,Ch].join("|")+")"+cw+lw+")*",SR="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TR="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uw=cw+lw+wR,ER="(?:"+[vR,Eh,Ch].join("|")+")"+uw,CR="(?:"+[rw+Pl+"?",Pl,Eh,Ch,yR].join("|")+")",PR=RegExp(Sh,"g"),AR=RegExp(Pl,"g"),Ph=RegExp(Th+"(?="+Th+")|"+CR+uw,"g"),MR=RegExp([Cs+"?"+tw+"+"+ow+"(?="+[Q2,Cs,"$"].join("|")+")",bR+"+"+aw+"(?="+[Q2,Cs+sw,"$"].join("|")+")",Cs+"?"+sw+"+"+ow,Cs+"+"+aw,TR,SR,ew,ER].join("|"),"g"),OR=RegExp("["+iw+Cl+H2+Z2+"]"),_R=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,IR=["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"],$R=-1,Je={};Je[Pt]=Je[wn]=Je[rr]=Je[mh]=Je[ph]=Je[gh]=Je[yh]=Je[vh]=Je[xh]=!0,Je[z]=Je[J]=Je[xe]=Je[re]=Je[Qe]=Je[de]=Je[Ve]=Je[ie]=Je[De]=Je[ft]=Je[dt]=Je[Pi]=Je[qt]=Je[bn]=Je[Wr]=!1;var Xe={};Xe[z]=Xe[J]=Xe[xe]=Xe[Qe]=Xe[re]=Xe[de]=Xe[Pt]=Xe[wn]=Xe[rr]=Xe[mh]=Xe[ph]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Pi]=Xe[qt]=Xe[bn]=Xe[Ai]=Xe[gh]=Xe[yh]=Xe[vh]=Xe[xh]=!0,Xe[Ve]=Xe[ie]=Xe[Wr]=!1;var DR={À:"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"},NR={"&":"&","<":"<",">":">",'"':""","'":"'"},kR={"&":"&","<":"<",">":">",""":'"',"'":"'"},LR={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},RR=parseFloat,jR=parseInt,fw=typeof ea=="object"&&ea&&ea.Object===Object&&ea,FR=typeof self=="object"&&self&&self.Object===Object&&self,xt=fw||FR||Function("return this")(),Ah=t&&!t.nodeType&&t,Mi=Ah&&!0&&e&&!e.nodeType&&e,dw=Mi&&Mi.exports===Ah,Mh=dw&&fw.process,cn=function(){try{var L=Mi&&Mi.require&&Mi.require("util").types;return L||Mh&&Mh.binding&&Mh.binding("util")}catch{}}(),hw=cn&&cn.isArrayBuffer,mw=cn&&cn.isDate,pw=cn&&cn.isMap,gw=cn&&cn.isRegExp,yw=cn&&cn.isSet,vw=cn&&cn.isTypedArray;function Kt(L,G,W){switch(W.length){case 0:return L.call(G);case 1:return L.call(G,W[0]);case 2:return L.call(G,W[0],W[1]);case 3:return L.call(G,W[0],W[1],W[2])}return L.apply(G,W)}function VR(L,G,W,me){for(var Ae=-1,Re=L==null?0:L.length;++Ae<Re;){var ht=L[Ae];G(me,ht,W(ht),L)}return me}function un(L,G){for(var W=-1,me=L==null?0:L.length;++W<me&&G(L[W],W,L)!==!1;);return L}function BR(L,G){for(var W=L==null?0:L.length;W--&&G(L[W],W,L)!==!1;);return L}function xw(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(!G(L[W],W,L))return!1;return!0}function Ur(L,G){for(var W=-1,me=L==null?0:L.length,Ae=0,Re=[];++W<me;){var ht=L[W];G(ht,W,L)&&(Re[Ae++]=ht)}return Re}function Al(L,G){var W=L==null?0:L.length;return!!W&&Ps(L,G,0)>-1}function Oh(L,G,W){for(var me=-1,Ae=L==null?0:L.length;++me<Ae;)if(W(G,L[me]))return!0;return!1}function et(L,G){for(var W=-1,me=L==null?0:L.length,Ae=Array(me);++W<me;)Ae[W]=G(L[W],W,L);return Ae}function zr(L,G){for(var W=-1,me=G.length,Ae=L.length;++W<me;)L[Ae+W]=G[W];return L}function _h(L,G,W,me){var Ae=-1,Re=L==null?0:L.length;for(me&&Re&&(W=L[++Ae]);++Ae<Re;)W=G(W,L[Ae],Ae,L);return W}function WR(L,G,W,me){var Ae=L==null?0:L.length;for(me&&Ae&&(W=L[--Ae]);Ae--;)W=G(W,L[Ae],Ae,L);return W}function Ih(L,G){for(var W=-1,me=L==null?0:L.length;++W<me;)if(G(L[W],W,L))return!0;return!1}var UR=$h("length");function zR(L){return L.split("")}function GR(L){return L.match(QL)||[]}function bw(L,G,W){var me;return W(L,function(Ae,Re,ht){if(G(Ae,Re,ht))return me=Re,!1}),me}function Ml(L,G,W,me){for(var Ae=L.length,Re=W+(me?1:-1);me?Re--:++Re<Ae;)if(G(L[Re],Re,L))return Re;return-1}function Ps(L,G,W){return G===G?rj(L,G,W):Ml(L,ww,W)}function YR(L,G,W,me){for(var Ae=W-1,Re=L.length;++Ae<Re;)if(me(L[Ae],G))return Ae;return-1}function ww(L){return L!==L}function Sw(L,G){var W=L==null?0:L.length;return W?Nh(L,G)/W:O}function $h(L){return function(G){return G==null?n:G[L]}}function Dh(L){return function(G){return L==null?n:L[G]}}function Tw(L,G,W,me,Ae){return Ae(L,function(Re,ht,Ye){W=me?(me=!1,Re):G(W,Re,ht,Ye)}),W}function HR(L,G){var W=L.length;for(L.sort(G);W--;)L[W]=L[W].value;return L}function Nh(L,G){for(var W,me=-1,Ae=L.length;++me<Ae;){var Re=G(L[me]);Re!==n&&(W=W===n?Re:W+Re)}return W}function kh(L,G){for(var W=-1,me=Array(L);++W<L;)me[W]=G(W);return me}function qR(L,G){return et(G,function(W){return[W,L[W]]})}function Ew(L){return L&&L.slice(0,Mw(L)+1).replace(wh,"")}function Xt(L){return function(G){return L(G)}}function Lh(L,G){return et(G,function(W){return L[W]})}function Fo(L,G){return L.has(G)}function Cw(L,G){for(var W=-1,me=L.length;++W<me&&Ps(G,L[W],0)>-1;);return W}function Pw(L,G){for(var W=L.length;W--&&Ps(G,L[W],0)>-1;);return W}function KR(L,G){for(var W=L.length,me=0;W--;)L[W]===G&&++me;return me}var XR=Dh(DR),ZR=Dh(NR);function JR(L){return"\\"+LR[L]}function QR(L,G){return L==null?n:L[G]}function As(L){return OR.test(L)}function ej(L){return _R.test(L)}function tj(L){for(var G,W=[];!(G=L.next()).done;)W.push(G.value);return W}function Rh(L){var G=-1,W=Array(L.size);return L.forEach(function(me,Ae){W[++G]=[Ae,me]}),W}function Aw(L,G){return function(W){return L(G(W))}}function Gr(L,G){for(var W=-1,me=L.length,Ae=0,Re=[];++W<me;){var ht=L[W];(ht===G||ht===h)&&(L[W]=h,Re[Ae++]=W)}return Re}function Ol(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=me}),W}function nj(L){var G=-1,W=Array(L.size);return L.forEach(function(me){W[++G]=[me,me]}),W}function rj(L,G,W){for(var me=W-1,Ae=L.length;++me<Ae;)if(L[me]===G)return me;return-1}function ij(L,G,W){for(var me=W+1;me--;)if(L[me]===G)return me;return me}function Ms(L){return As(L)?oj(L):UR(L)}function Sn(L){return As(L)?aj(L):zR(L)}function Mw(L){for(var G=L.length;G--&&KL.test(L.charAt(G)););return G}var sj=Dh(kR);function oj(L){for(var G=Ph.lastIndex=0;Ph.test(L);)++G;return G}function aj(L){return L.match(Ph)||[]}function lj(L){return L.match(MR)||[]}var cj=function L(G){G=G==null?xt:Os.defaults(xt.Object(),G,Os.pick(xt,IR));var W=G.Array,me=G.Date,Ae=G.Error,Re=G.Function,ht=G.Math,Ye=G.Object,jh=G.RegExp,uj=G.String,fn=G.TypeError,_l=W.prototype,fj=Re.prototype,_s=Ye.prototype,Il=G["__core-js_shared__"],$l=fj.toString,ze=_s.hasOwnProperty,dj=0,Ow=function(){var s=/[^.]+$/.exec(Il&&Il.keys&&Il.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Dl=_s.toString,hj=$l.call(Ye),mj=xt._,pj=jh("^"+$l.call(ze).replace(bh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nl=dw?G.Buffer:n,Yr=G.Symbol,kl=G.Uint8Array,_w=Nl?Nl.allocUnsafe:n,Ll=Aw(Ye.getPrototypeOf,Ye),Iw=Ye.create,$w=_s.propertyIsEnumerable,Rl=_l.splice,Dw=Yr?Yr.isConcatSpreadable:n,Vo=Yr?Yr.iterator:n,Oi=Yr?Yr.toStringTag:n,jl=function(){try{var s=Ni(Ye,"defineProperty");return s({},"",{}),s}catch{}}(),gj=G.clearTimeout!==xt.clearTimeout&&G.clearTimeout,yj=me&&me.now!==xt.Date.now&&me.now,vj=G.setTimeout!==xt.setTimeout&&G.setTimeout,Fl=ht.ceil,Vl=ht.floor,Fh=Ye.getOwnPropertySymbols,xj=Nl?Nl.isBuffer:n,Nw=G.isFinite,bj=_l.join,wj=Aw(Ye.keys,Ye),mt=ht.max,At=ht.min,Sj=me.now,Tj=G.parseInt,kw=ht.random,Ej=_l.reverse,Vh=Ni(G,"DataView"),Bo=Ni(G,"Map"),Bh=Ni(G,"Promise"),Is=Ni(G,"Set"),Wo=Ni(G,"WeakMap"),Uo=Ni(Ye,"create"),Bl=Wo&&new Wo,$s={},Cj=ki(Vh),Pj=ki(Bo),Aj=ki(Bh),Mj=ki(Is),Oj=ki(Wo),Wl=Yr?Yr.prototype:n,zo=Wl?Wl.valueOf:n,Lw=Wl?Wl.toString:n;function P(s){if(ot(s)&&!Me(s)&&!(s instanceof ke)){if(s instanceof dn)return s;if(ze.call(s,"__wrapped__"))return RS(s)}return new dn(s)}var Ds=function(){function s(){}return function(l){if(!st(l))return{};if(Iw)return Iw(l);s.prototype=l;var f=new s;return s.prototype=n,f}}();function Ul(){}function dn(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:UL,evaluate:zL,interpolate:G2,variable:"",imports:{_:P}},P.prototype=Ul.prototype,P.prototype.constructor=P,dn.prototype=Ds(Ul.prototype),dn.prototype.constructor=dn;function ke(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function _j(){var s=new ke(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 Ij(){if(this.__filtered__){var s=new ke(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function $j(){var s=this.__wrapped__.value(),l=this.__dir__,f=Me(s),g=l<0,w=f?s.length:0,M=zF(0,w,this.__views__),I=M.start,N=M.end,j=N-I,H=g?N:I-1,q=this.__iteratees__,X=q.length,ue=0,ye=At(j,this.__takeCount__);if(!f||!g&&w==j&&ye==j)return oS(s,this.__actions__);var Te=[];e:for(;j--&&ue<ye;){H+=l;for(var _e=-1,Ee=s[H];++_e<X;){var Ne=q[_e],Le=Ne.iteratee,Qt=Ne.type,Dt=Le(Ee);if(Qt==fe)Ee=Dt;else if(!Dt){if(Qt==le)continue e;break e}}Te[ue++]=Ee}return Te}ke.prototype=Ds(Ul.prototype),ke.prototype.constructor=ke;function _i(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Dj(){this.__data__=Uo?Uo(null):{},this.size=0}function Nj(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function kj(s){var l=this.__data__;if(Uo){var f=l[s];return f===u?n:f}return ze.call(l,s)?l[s]:n}function Lj(s){var l=this.__data__;return Uo?l[s]!==n:ze.call(l,s)}function Rj(s,l){var f=this.__data__;return this.size+=this.has(s)?0:1,f[s]=Uo&&l===n?u:l,this}_i.prototype.clear=Dj,_i.prototype.delete=Nj,_i.prototype.get=kj,_i.prototype.has=Lj,_i.prototype.set=Rj;function ir(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function jj(){this.__data__=[],this.size=0}function Fj(s){var l=this.__data__,f=zl(l,s);if(f<0)return!1;var g=l.length-1;return f==g?l.pop():Rl.call(l,f,1),--this.size,!0}function Vj(s){var l=this.__data__,f=zl(l,s);return f<0?n:l[f][1]}function Bj(s){return zl(this.__data__,s)>-1}function Wj(s,l){var f=this.__data__,g=zl(f,s);return g<0?(++this.size,f.push([s,l])):f[g][1]=l,this}ir.prototype.clear=jj,ir.prototype.delete=Fj,ir.prototype.get=Vj,ir.prototype.has=Bj,ir.prototype.set=Wj;function sr(s){var l=-1,f=s==null?0:s.length;for(this.clear();++l<f;){var g=s[l];this.set(g[0],g[1])}}function Uj(){this.size=0,this.__data__={hash:new _i,map:new(Bo||ir),string:new _i}}function zj(s){var l=nc(this,s).delete(s);return this.size-=l?1:0,l}function Gj(s){return nc(this,s).get(s)}function Yj(s){return nc(this,s).has(s)}function Hj(s,l){var f=nc(this,s),g=f.size;return f.set(s,l),this.size+=f.size==g?0:1,this}sr.prototype.clear=Uj,sr.prototype.delete=zj,sr.prototype.get=Gj,sr.prototype.has=Yj,sr.prototype.set=Hj;function Ii(s){var l=-1,f=s==null?0:s.length;for(this.__data__=new sr;++l<f;)this.add(s[l])}function qj(s){return this.__data__.set(s,u),this}function Kj(s){return this.__data__.has(s)}Ii.prototype.add=Ii.prototype.push=qj,Ii.prototype.has=Kj;function Tn(s){var l=this.__data__=new ir(s);this.size=l.size}function Xj(){this.__data__=new ir,this.size=0}function Zj(s){var l=this.__data__,f=l.delete(s);return this.size=l.size,f}function Jj(s){return this.__data__.get(s)}function Qj(s){return this.__data__.has(s)}function eF(s,l){var f=this.__data__;if(f instanceof ir){var g=f.__data__;if(!Bo||g.length<i-1)return g.push([s,l]),this.size=++f.size,this;f=this.__data__=new sr(g)}return f.set(s,l),this.size=f.size,this}Tn.prototype.clear=Xj,Tn.prototype.delete=Zj,Tn.prototype.get=Jj,Tn.prototype.has=Qj,Tn.prototype.set=eF;function Rw(s,l){var f=Me(s),g=!f&&Li(s),w=!f&&!g&&Zr(s),M=!f&&!g&&!w&&Rs(s),I=f||g||w||M,N=I?kh(s.length,uj):[],j=N.length;for(var H in s)(l||ze.call(s,H))&&!(I&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||cr(H,j)))&&N.push(H);return N}function jw(s){var l=s.length;return l?s[Jh(0,l-1)]:n}function tF(s,l){return rc(Vt(s),$i(l,0,s.length))}function nF(s){return rc(Vt(s))}function Wh(s,l,f){(f!==n&&!En(s[l],f)||f===n&&!(l in s))&&or(s,l,f)}function Go(s,l,f){var g=s[l];(!(ze.call(s,l)&&En(g,f))||f===n&&!(l in s))&&or(s,l,f)}function zl(s,l){for(var f=s.length;f--;)if(En(s[f][0],l))return f;return-1}function rF(s,l,f,g){return Hr(s,function(w,M,I){l(g,w,f(w),I)}),g}function Fw(s,l){return s&&zn(l,gt(l),s)}function iF(s,l){return s&&zn(l,Wt(l),s)}function or(s,l,f){l=="__proto__"&&jl?jl(s,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):s[l]=f}function Uh(s,l){for(var f=-1,g=l.length,w=W(g),M=s==null;++f<g;)w[f]=M?n:Tm(s,l[f]);return w}function $i(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,g,w,M){var I,N=l&m,j=l&p,H=l&v;if(f&&(I=w?f(s,g,w,M):f(s)),I!==n)return I;if(!st(s))return s;var q=Me(s);if(q){if(I=YF(s),!N)return Vt(s,I)}else{var X=Mt(s),ue=X==ie||X==pe;if(Zr(s))return cS(s,N);if(X==dt||X==z||ue&&!w){if(I=j||ue?{}:MS(s),!N)return j?kF(s,iF(I,s)):NF(s,Fw(I,s))}else{if(!Xe[X])return w?s:{};I=HF(s,X,N)}}M||(M=new Tn);var ye=M.get(s);if(ye)return ye;M.set(s,I),rT(s)?s.forEach(function(Ee){I.add(hn(Ee,l,f,Ee,s,M))}):tT(s)&&s.forEach(function(Ee,Ne){I.set(Ne,hn(Ee,l,f,Ne,s,M))});var Te=H?j?cm:lm:j?Wt:gt,_e=q?n:Te(s);return un(_e||s,function(Ee,Ne){_e&&(Ne=Ee,Ee=s[Ne]),Go(I,Ne,hn(Ee,l,f,Ne,s,M))}),I}function sF(s){var l=gt(s);return function(f){return Vw(f,s,l)}}function Vw(s,l,f){var g=f.length;if(s==null)return!g;for(s=Ye(s);g--;){var w=f[g],M=l[w],I=s[w];if(I===n&&!(w in s)||!M(I))return!1}return!0}function Bw(s,l,f){if(typeof s!="function")throw new fn(a);return Jo(function(){s.apply(n,f)},l)}function Yo(s,l,f,g){var w=-1,M=Al,I=!0,N=s.length,j=[],H=l.length;if(!N)return j;f&&(l=et(l,Xt(f))),g?(M=Oh,I=!1):l.length>=i&&(M=Fo,I=!1,l=new Ii(l));e:for(;++w<N;){var q=s[w],X=f==null?q:f(q);if(q=g||q!==0?q:0,I&&X===X){for(var ue=H;ue--;)if(l[ue]===X)continue e;j.push(q)}else M(l,X,g)||j.push(q)}return j}var Hr=mS(Un),Ww=mS(Gh,!0);function oF(s,l){var f=!0;return Hr(s,function(g,w,M){return f=!!l(g,w,M),f}),f}function Gl(s,l,f){for(var g=-1,w=s.length;++g<w;){var M=s[g],I=l(M);if(I!=null&&(N===n?I===I&&!Jt(I):f(I,N)))var N=I,j=M}return j}function aF(s,l,f,g){var w=s.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),g=g===n||g>w?w:Oe(g),g<0&&(g+=w),g=f>g?0:sT(g);f<g;)s[f++]=l;return s}function Uw(s,l){var f=[];return Hr(s,function(g,w,M){l(g,w,M)&&f.push(g)}),f}function bt(s,l,f,g,w){var M=-1,I=s.length;for(f||(f=KF),w||(w=[]);++M<I;){var N=s[M];l>0&&f(N)?l>1?bt(N,l-1,f,g,w):zr(w,N):g||(w[w.length]=N)}return w}var zh=pS(),zw=pS(!0);function Un(s,l){return s&&zh(s,l,gt)}function Gh(s,l){return s&&zw(s,l,gt)}function Yl(s,l){return Ur(l,function(f){return ur(s[f])})}function Di(s,l){l=Kr(l,s);for(var f=0,g=l.length;s!=null&&f<g;)s=s[Gn(l[f++])];return f&&f==g?s:n}function Gw(s,l,f){var g=l(s);return Me(s)?g:zr(g,f(s))}function It(s){return s==null?s===n?Sl:Ci:Oi&&Oi in Ye(s)?UF(s):nV(s)}function Yh(s,l){return s>l}function lF(s,l){return s!=null&&ze.call(s,l)}function cF(s,l){return s!=null&&l in Ye(s)}function uF(s,l,f){return s>=At(l,f)&&s<mt(l,f)}function Hh(s,l,f){for(var g=f?Oh:Al,w=s[0].length,M=s.length,I=M,N=W(M),j=1/0,H=[];I--;){var q=s[I];I&&l&&(q=et(q,Xt(l))),j=At(q.length,j),N[I]=!f&&(l||w>=120&&q.length>=120)?new Ii(I&&q):n}q=s[0];var X=-1,ue=N[0];e:for(;++X<w&&H.length<j;){var ye=q[X],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(ue?Fo(ue,Te):g(H,Te,f))){for(I=M;--I;){var _e=N[I];if(!(_e?Fo(_e,Te):g(s[I],Te,f)))continue e}ue&&ue.push(Te),H.push(ye)}}return H}function fF(s,l,f,g){return Un(s,function(w,M,I){l(g,f(w),M,I)}),g}function Ho(s,l,f){l=Kr(l,s),s=$S(s,l);var g=s==null?s:s[Gn(pn(l))];return g==null?n:Kt(g,s,f)}function Yw(s){return ot(s)&&It(s)==z}function dF(s){return ot(s)&&It(s)==xe}function hF(s){return ot(s)&&It(s)==de}function qo(s,l,f,g,w){return s===l?!0:s==null||l==null||!ot(s)&&!ot(l)?s!==s&&l!==l:mF(s,l,f,g,qo,w)}function mF(s,l,f,g,w,M){var I=Me(s),N=Me(l),j=I?J:Mt(s),H=N?J:Mt(l);j=j==z?dt:j,H=H==z?dt:H;var q=j==dt,X=H==dt,ue=j==H;if(ue&&Zr(s)){if(!Zr(l))return!1;I=!0,q=!1}if(ue&&!q)return M||(M=new Tn),I||Rs(s)?CS(s,l,f,g,w,M):BF(s,l,j,f,g,w,M);if(!(f&S)){var ye=q&&ze.call(s,"__wrapped__"),Te=X&&ze.call(l,"__wrapped__");if(ye||Te){var _e=ye?s.value():s,Ee=Te?l.value():l;return M||(M=new Tn),w(_e,Ee,f,g,M)}}return ue?(M||(M=new Tn),WF(s,l,f,g,w,M)):!1}function pF(s){return ot(s)&&Mt(s)==De}function qh(s,l,f,g){var w=f.length,M=w,I=!g;if(s==null)return!M;for(s=Ye(s);w--;){var N=f[w];if(I&&N[2]?N[1]!==s[N[0]]:!(N[0]in s))return!1}for(;++w<M;){N=f[w];var j=N[0],H=s[j],q=N[1];if(I&&N[2]){if(H===n&&!(j in s))return!1}else{var X=new Tn;if(g)var ue=g(H,q,j,s,l,X);if(!(ue===n?qo(q,H,S|x,g,X):ue))return!1}}return!0}function Hw(s){if(!st(s)||ZF(s))return!1;var l=ur(s)?pj:sR;return l.test(ki(s))}function gF(s){return ot(s)&&It(s)==Pi}function yF(s){return ot(s)&&Mt(s)==qt}function vF(s){return ot(s)&&cc(s.length)&&!!Je[It(s)]}function qw(s){return typeof s=="function"?s:s==null?Ut:typeof s=="object"?Me(s)?Zw(s[0],s[1]):Xw(s):gT(s)}function Kh(s){if(!Zo(s))return wj(s);var l=[];for(var f in Ye(s))ze.call(s,f)&&f!="constructor"&&l.push(f);return l}function xF(s){if(!st(s))return tV(s);var l=Zo(s),f=[];for(var g in s)g=="constructor"&&(l||!ze.call(s,g))||f.push(g);return f}function Xh(s,l){return s<l}function Kw(s,l){var f=-1,g=Bt(s)?W(s.length):[];return Hr(s,function(w,M,I){g[++f]=l(w,M,I)}),g}function Xw(s){var l=fm(s);return l.length==1&&l[0][2]?_S(l[0][0],l[0][1]):function(f){return f===s||qh(f,s,l)}}function Zw(s,l){return hm(s)&&OS(l)?_S(Gn(s),l):function(f){var g=Tm(f,s);return g===n&&g===l?Em(f,s):qo(l,g,S|x)}}function Hl(s,l,f,g,w){s!==l&&zh(l,function(M,I){if(w||(w=new Tn),st(M))bF(s,l,I,f,Hl,g,w);else{var N=g?g(pm(s,I),M,I+"",s,l,w):n;N===n&&(N=M),Wh(s,I,N)}},Wt)}function bF(s,l,f,g,w,M,I){var N=pm(s,f),j=pm(l,f),H=I.get(j);if(H){Wh(s,f,H);return}var q=M?M(N,j,f+"",s,l,I):n,X=q===n;if(X){var ue=Me(j),ye=!ue&&Zr(j),Te=!ue&&!ye&&Rs(j);q=j,ue||ye||Te?Me(N)?q=N:ct(N)?q=Vt(N):ye?(X=!1,q=cS(j,!0)):Te?(X=!1,q=uS(j,!0)):q=[]:Qo(j)||Li(j)?(q=N,Li(N)?q=oT(N):(!st(N)||ur(N))&&(q=MS(j))):X=!1}X&&(I.set(j,q),w(q,j,g,M,I),I.delete(j)),Wh(s,f,q)}function Jw(s,l){var f=s.length;if(f)return l+=l<0?f:0,cr(l,f)?s[l]:n}function Qw(s,l,f){l.length?l=et(l,function(M){return Me(M)?function(I){return Di(I,M.length===1?M[0]:M)}:M}):l=[Ut];var g=-1;l=et(l,Xt(be()));var w=Kw(s,function(M,I,N){var j=et(l,function(H){return H(M)});return{criteria:j,index:++g,value:M}});return HR(w,function(M,I){return DF(M,I,f)})}function wF(s,l){return eS(s,l,function(f,g){return Em(s,g)})}function eS(s,l,f){for(var g=-1,w=l.length,M={};++g<w;){var I=l[g],N=Di(s,I);f(N,I)&&Ko(M,Kr(I,s),N)}return M}function SF(s){return function(l){return Di(l,s)}}function Zh(s,l,f,g){var w=g?YR:Ps,M=-1,I=l.length,N=s;for(s===l&&(l=Vt(l)),f&&(N=et(s,Xt(f)));++M<I;)for(var j=0,H=l[M],q=f?f(H):H;(j=w(N,q,j,g))>-1;)N!==s&&Rl.call(N,j,1),Rl.call(s,j,1);return s}function tS(s,l){for(var f=s?l.length:0,g=f-1;f--;){var w=l[f];if(f==g||w!==M){var M=w;cr(w)?Rl.call(s,w,1):tm(s,w)}}return s}function Jh(s,l){return s+Vl(kw()*(l-s+1))}function TF(s,l,f,g){for(var w=-1,M=mt(Fl((l-s)/(f||1)),0),I=W(M);M--;)I[g?M:++w]=s,s+=f;return I}function Qh(s,l){var f="";if(!s||l<1||l>U)return f;do l%2&&(f+=s),l=Vl(l/2),l&&(s+=s);while(l);return f}function Ie(s,l){return gm(IS(s,l,Ut),s+"")}function EF(s){return jw(js(s))}function CF(s,l){var f=js(s);return rc(f,$i(l,0,f.length))}function Ko(s,l,f,g){if(!st(s))return s;l=Kr(l,s);for(var w=-1,M=l.length,I=M-1,N=s;N!=null&&++w<M;){var j=Gn(l[w]),H=f;if(j==="__proto__"||j==="constructor"||j==="prototype")return s;if(w!=I){var q=N[j];H=g?g(q,j,N):n,H===n&&(H=st(q)?q:cr(l[w+1])?[]:{})}Go(N,j,H),N=N[j]}return s}var nS=Bl?function(s,l){return Bl.set(s,l),s}:Ut,PF=jl?function(s,l){return jl(s,"toString",{configurable:!0,enumerable:!1,value:Pm(l),writable:!0})}:Ut;function AF(s){return rc(js(s))}function mn(s,l,f){var g=-1,w=s.length;l<0&&(l=-l>w?0:w+l),f=f>w?w:f,f<0&&(f+=w),w=l>f?0:f-l>>>0,l>>>=0;for(var M=W(w);++g<w;)M[g]=s[g+l];return M}function MF(s,l){var f;return Hr(s,function(g,w,M){return f=l(g,w,M),!f}),!!f}function ql(s,l,f){var g=0,w=s==null?g:s.length;if(typeof l=="number"&&l===l&&w<=ae){for(;g<w;){var M=g+w>>>1,I=s[M];I!==null&&!Jt(I)&&(f?I<=l:I<l)?g=M+1:w=M}return w}return em(s,l,Ut,f)}function em(s,l,f,g){var w=0,M=s==null?0:s.length;if(M===0)return 0;l=f(l);for(var I=l!==l,N=l===null,j=Jt(l),H=l===n;w<M;){var q=Vl((w+M)/2),X=f(s[q]),ue=X!==n,ye=X===null,Te=X===X,_e=Jt(X);if(I)var Ee=g||Te;else H?Ee=Te&&(g||ue):N?Ee=Te&&ue&&(g||!ye):j?Ee=Te&&ue&&!ye&&(g||!_e):ye||_e?Ee=!1:Ee=g?X<=l:X<l;Ee?w=q+1:M=q}return At(M,K)}function rS(s,l){for(var f=-1,g=s.length,w=0,M=[];++f<g;){var I=s[f],N=l?l(I):I;if(!f||!En(N,j)){var j=N;M[w++]=I===0?0:I}}return M}function iS(s){return typeof s=="number"?s:Jt(s)?O:+s}function Zt(s){if(typeof s=="string")return s;if(Me(s))return et(s,Zt)+"";if(Jt(s))return Lw?Lw.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function qr(s,l,f){var g=-1,w=Al,M=s.length,I=!0,N=[],j=N;if(f)I=!1,w=Oh;else if(M>=i){var H=l?null:FF(s);if(H)return Ol(H);I=!1,w=Fo,j=new Ii}else j=l?[]:N;e:for(;++g<M;){var q=s[g],X=l?l(q):q;if(q=f||q!==0?q:0,I&&X===X){for(var ue=j.length;ue--;)if(j[ue]===X)continue e;l&&j.push(X),N.push(q)}else w(j,X,f)||(j!==N&&j.push(X),N.push(q))}return N}function tm(s,l){return l=Kr(l,s),s=$S(s,l),s==null||delete s[Gn(pn(l))]}function sS(s,l,f,g){return Ko(s,l,f(Di(s,l)),g)}function Kl(s,l,f,g){for(var w=s.length,M=g?w:-1;(g?M--:++M<w)&&l(s[M],M,s););return f?mn(s,g?0:M,g?M+1:w):mn(s,g?M+1:0,g?w:M)}function oS(s,l){var f=s;return f instanceof ke&&(f=f.value()),_h(l,function(g,w){return w.func.apply(w.thisArg,zr([g],w.args))},f)}function nm(s,l,f){var g=s.length;if(g<2)return g?qr(s[0]):[];for(var w=-1,M=W(g);++w<g;)for(var I=s[w],N=-1;++N<g;)N!=w&&(M[w]=Yo(M[w]||I,s[N],l,f));return qr(bt(M,1),l,f)}function aS(s,l,f){for(var g=-1,w=s.length,M=l.length,I={};++g<w;){var N=g<M?l[g]:n;f(I,s[g],N)}return I}function rm(s){return ct(s)?s:[]}function im(s){return typeof s=="function"?s:Ut}function Kr(s,l){return Me(s)?s:hm(s,l)?[s]:LS(Be(s))}var OF=Ie;function Xr(s,l,f){var g=s.length;return f=f===n?g:f,!l&&f>=g?s:mn(s,l,f)}var lS=gj||function(s){return xt.clearTimeout(s)};function cS(s,l){if(l)return s.slice();var f=s.length,g=_w?_w(f):new s.constructor(f);return s.copy(g),g}function sm(s){var l=new s.constructor(s.byteLength);return new kl(l).set(new kl(s)),l}function _F(s,l){var f=l?sm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function IF(s){var l=new s.constructor(s.source,Y2.exec(s));return l.lastIndex=s.lastIndex,l}function $F(s){return zo?Ye(zo.call(s)):{}}function uS(s,l){var f=l?sm(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function fS(s,l){if(s!==l){var f=s!==n,g=s===null,w=s===s,M=Jt(s),I=l!==n,N=l===null,j=l===l,H=Jt(l);if(!N&&!H&&!M&&s>l||M&&I&&j&&!N&&!H||g&&I&&j||!f&&j||!w)return 1;if(!g&&!M&&!H&&s<l||H&&f&&w&&!g&&!M||N&&f&&w||!I&&w||!j)return-1}return 0}function DF(s,l,f){for(var g=-1,w=s.criteria,M=l.criteria,I=w.length,N=f.length;++g<I;){var j=fS(w[g],M[g]);if(j){if(g>=N)return j;var H=f[g];return j*(H=="desc"?-1:1)}}return s.index-l.index}function dS(s,l,f,g){for(var w=-1,M=s.length,I=f.length,N=-1,j=l.length,H=mt(M-I,0),q=W(j+H),X=!g;++N<j;)q[N]=l[N];for(;++w<I;)(X||w<M)&&(q[f[w]]=s[w]);for(;H--;)q[N++]=s[w++];return q}function hS(s,l,f,g){for(var w=-1,M=s.length,I=-1,N=f.length,j=-1,H=l.length,q=mt(M-N,0),X=W(q+H),ue=!g;++w<q;)X[w]=s[w];for(var ye=w;++j<H;)X[ye+j]=l[j];for(;++I<N;)(ue||w<M)&&(X[ye+f[I]]=s[w++]);return X}function Vt(s,l){var f=-1,g=s.length;for(l||(l=W(g));++f<g;)l[f]=s[f];return l}function zn(s,l,f,g){var w=!f;f||(f={});for(var M=-1,I=l.length;++M<I;){var N=l[M],j=g?g(f[N],s[N],N,f,s):n;j===n&&(j=s[N]),w?or(f,N,j):Go(f,N,j)}return f}function NF(s,l){return zn(s,dm(s),l)}function kF(s,l){return zn(s,PS(s),l)}function Xl(s,l){return function(f,g){var w=Me(f)?VR:rF,M=l?l():{};return w(f,s,be(g,2),M)}}function Ns(s){return Ie(function(l,f){var g=-1,w=f.length,M=w>1?f[w-1]:n,I=w>2?f[2]:n;for(M=s.length>3&&typeof M=="function"?(w--,M):n,I&&$t(f[0],f[1],I)&&(M=w<3?n:M,w=1),l=Ye(l);++g<w;){var N=f[g];N&&s(l,N,g,M)}return l})}function mS(s,l){return function(f,g){if(f==null)return f;if(!Bt(f))return s(f,g);for(var w=f.length,M=l?w:-1,I=Ye(f);(l?M--:++M<w)&&g(I[M],M,I)!==!1;);return f}}function pS(s){return function(l,f,g){for(var w=-1,M=Ye(l),I=g(l),N=I.length;N--;){var j=I[s?N:++w];if(f(M[j],j,M)===!1)break}return l}}function LF(s,l,f){var g=l&T,w=Xo(s);function M(){var I=this&&this!==xt&&this instanceof M?w:s;return I.apply(g?f:this,arguments)}return M}function gS(s){return function(l){l=Be(l);var f=As(l)?Sn(l):n,g=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return g[s]()+w}}function ks(s){return function(l){return _h(mT(hT(l).replace(PR,"")),s,"")}}function Xo(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=Ds(s.prototype),g=s.apply(f,l);return st(g)?g:f}}function RF(s,l,f){var g=Xo(s);function w(){for(var M=arguments.length,I=W(M),N=M,j=Ls(w);N--;)I[N]=arguments[N];var H=M<3&&I[0]!==j&&I[M-1]!==j?[]:Gr(I,j);if(M-=H.length,M<f)return wS(s,l,Zl,w.placeholder,n,I,H,n,n,f-M);var q=this&&this!==xt&&this instanceof w?g:s;return Kt(q,this,I)}return w}function yS(s){return function(l,f,g){var w=Ye(l);if(!Bt(l)){var M=be(f,3);l=gt(l),f=function(N){return M(w[N],N,w)}}var I=s(l,f,g);return I>-1?w[M?l[I]:I]:n}}function vS(s){return lr(function(l){var f=l.length,g=f,w=dn.prototype.thru;for(s&&l.reverse();g--;){var M=l[g];if(typeof M!="function")throw new fn(a);if(w&&!I&&tc(M)=="wrapper")var I=new dn([],!0)}for(g=I?g:f;++g<f;){M=l[g];var N=tc(M),j=N=="wrapper"?um(M):n;j&&mm(j[0])&&j[1]==(R|E|A|F)&&!j[4].length&&j[9]==1?I=I[tc(j[0])].apply(I,j[3]):I=M.length==1&&mm(M)?I[N]():I.thru(M)}return function(){var H=arguments,q=H[0];if(I&&H.length==1&&Me(q))return I.plant(q).value();for(var X=0,ue=f?l[X].apply(this,H):q;++X<f;)ue=l[X].call(this,ue);return ue}})}function Zl(s,l,f,g,w,M,I,N,j,H){var q=l&R,X=l&T,ue=l&b,ye=l&(E|$),Te=l&B,_e=ue?n:Xo(s);function Ee(){for(var Ne=arguments.length,Le=W(Ne),Qt=Ne;Qt--;)Le[Qt]=arguments[Qt];if(ye)var Dt=Ls(Ee),en=KR(Le,Dt);if(g&&(Le=dS(Le,g,w,ye)),M&&(Le=hS(Le,M,I,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(Le,Dt);return wS(s,l,Zl,Ee.placeholder,f,Le,ut,N,j,H-Ne)}var Cn=X?f:this,dr=ue?Cn[s]:s;return Ne=Le.length,N?Le=rV(Le,N):Te&&Ne>1&&Le.reverse(),q&&j<Ne&&(Le.length=j),this&&this!==xt&&this instanceof Ee&&(dr=_e||Xo(dr)),dr.apply(Cn,Le)}return Ee}function xS(s,l){return function(f,g){return fF(f,s,l(g),{})}}function Jl(s,l){return function(f,g){var w;if(f===n&&g===n)return l;if(f!==n&&(w=f),g!==n){if(w===n)return g;typeof f=="string"||typeof g=="string"?(f=Zt(f),g=Zt(g)):(f=iS(f),g=iS(g)),w=s(f,g)}return w}}function om(s){return lr(function(l){return l=et(l,Xt(be())),Ie(function(f){var g=this;return s(l,function(w){return Kt(w,g,f)})})})}function Ql(s,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Qh(l,s):l;var g=Qh(l,Fl(s/Ms(l)));return As(l)?Xr(Sn(g),0,s).join(""):g.slice(0,s)}function jF(s,l,f,g){var w=l&T,M=Xo(s);function I(){for(var N=-1,j=arguments.length,H=-1,q=g.length,X=W(q+j),ue=this&&this!==xt&&this instanceof I?M:s;++H<q;)X[H]=g[H];for(;j--;)X[H++]=arguments[++N];return Kt(ue,w?f:this,X)}return I}function bS(s){return function(l,f,g){return g&&typeof g!="number"&&$t(l,f,g)&&(f=g=n),l=fr(l),f===n?(f=l,l=0):f=fr(f),g=g===n?l<f?1:-1:fr(g),TF(l,f,g,s)}}function ec(s){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=gn(l),f=gn(f)),s(l,f)}}function wS(s,l,f,g,w,M,I,N,j,H){var q=l&E,X=q?I:n,ue=q?n:I,ye=q?M:n,Te=q?n:M;l|=q?A:D,l&=~(q?D:A),l&C||(l&=-4);var _e=[s,l,w,ye,X,Te,ue,N,j,H],Ee=f.apply(n,_e);return mm(s)&&DS(Ee,_e),Ee.placeholder=g,NS(Ee,s,l)}function am(s){var l=ht[s];return function(f,g){if(f=gn(f),g=g==null?0:At(Oe(g),292),g&&Nw(f)){var w=(Be(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+g));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-g))}return l(f)}}var FF=Is&&1/Ol(new Is([,-0]))[1]==Y?function(s){return new Is(s)}:Om;function SS(s){return function(l){var f=Mt(l);return f==De?Rh(l):f==qt?nj(l):qR(l,s(l))}}function ar(s,l,f,g,w,M,I,N){var j=l&b;if(!j&&typeof s!="function")throw new fn(a);var H=g?g.length:0;if(H||(l&=-97,g=w=n),I=I===n?I:mt(Oe(I),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=g,X=w;g=w=n}var ue=j?n:um(s),ye=[s,l,f,g,w,q,X,M,I,N];if(ue&&eV(ye,ue),s=ye[0],l=ye[1],f=ye[2],g=ye[3],w=ye[4],N=ye[9]=ye[9]===n?j?0:s.length:mt(ye[9]-H,0),!N&&l&(E|$)&&(l&=-25),!l||l==T)var Te=LF(s,l,f);else l==E||l==$?Te=RF(s,l,N):(l==A||l==(T|A))&&!w.length?Te=jF(s,l,f,g):Te=Zl.apply(n,ye);var _e=ue?nS:DS;return NS(_e(Te,ye),s,l)}function TS(s,l,f,g){return s===n||En(s,_s[f])&&!ze.call(g,f)?l:s}function ES(s,l,f,g,w,M){return st(s)&&st(l)&&(M.set(l,s),Hl(s,l,n,ES,M),M.delete(l)),s}function VF(s){return Qo(s)?n:s}function CS(s,l,f,g,w,M){var I=f&S,N=s.length,j=l.length;if(N!=j&&!(I&&j>N))return!1;var H=M.get(s),q=M.get(l);if(H&&q)return H==l&&q==s;var X=-1,ue=!0,ye=f&x?new Ii:n;for(M.set(s,l),M.set(l,s);++X<N;){var Te=s[X],_e=l[X];if(g)var Ee=I?g(_e,Te,X,l,s,M):g(Te,_e,X,s,l,M);if(Ee!==n){if(Ee)continue;ue=!1;break}if(ye){if(!Ih(l,function(Ne,Le){if(!Fo(ye,Le)&&(Te===Ne||w(Te,Ne,f,g,M)))return ye.push(Le)})){ue=!1;break}}else if(!(Te===_e||w(Te,_e,f,g,M))){ue=!1;break}}return M.delete(s),M.delete(l),ue}function BF(s,l,f,g,w,M,I){switch(f){case Qe:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case xe:return!(s.byteLength!=l.byteLength||!M(new kl(s),new kl(l)));case re:case de:case ft:return En(+s,+l);case Ve:return s.name==l.name&&s.message==l.message;case Pi:case bn:return s==l+"";case De:var N=Rh;case qt:var j=g&S;if(N||(N=Ol),s.size!=l.size&&!j)return!1;var H=I.get(s);if(H)return H==l;g|=x,I.set(s,l);var q=CS(N(s),N(l),g,w,M,I);return I.delete(s),q;case Ai:if(zo)return zo.call(s)==zo.call(l)}return!1}function WF(s,l,f,g,w,M){var I=f&S,N=lm(s),j=N.length,H=lm(l),q=H.length;if(j!=q&&!I)return!1;for(var X=j;X--;){var ue=N[X];if(!(I?ue in l:ze.call(l,ue)))return!1}var ye=M.get(s),Te=M.get(l);if(ye&&Te)return ye==l&&Te==s;var _e=!0;M.set(s,l),M.set(l,s);for(var Ee=I;++X<j;){ue=N[X];var Ne=s[ue],Le=l[ue];if(g)var Qt=I?g(Le,Ne,ue,l,s,M):g(Ne,Le,ue,s,l,M);if(!(Qt===n?Ne===Le||w(Ne,Le,f,g,M):Qt)){_e=!1;break}Ee||(Ee=ue=="constructor")}if(_e&&!Ee){var Dt=s.constructor,en=l.constructor;Dt!=en&&"constructor"in s&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&(_e=!1)}return M.delete(s),M.delete(l),_e}function lr(s){return gm(IS(s,n,VS),s+"")}function lm(s){return Gw(s,gt,dm)}function cm(s){return Gw(s,Wt,PS)}var um=Bl?function(s){return Bl.get(s)}:Om;function tc(s){for(var l=s.name+"",f=$s[l],g=ze.call($s,l)?f.length:0;g--;){var w=f[g],M=w.func;if(M==null||M==s)return w.name}return l}function Ls(s){var l=ze.call(P,"placeholder")?P:s;return l.placeholder}function be(){var s=P.iteratee||Am;return s=s===Am?qw:s,arguments.length?s(arguments[0],arguments[1]):s}function nc(s,l){var f=s.__data__;return XF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function fm(s){for(var l=gt(s),f=l.length;f--;){var g=l[f],w=s[g];l[f]=[g,w,OS(w)]}return l}function Ni(s,l){var f=QR(s,l);return Hw(f)?f:n}function UF(s){var l=ze.call(s,Oi),f=s[Oi];try{s[Oi]=n;var g=!0}catch{}var w=Dl.call(s);return g&&(l?s[Oi]=f:delete s[Oi]),w}var dm=Fh?function(s){return s==null?[]:(s=Ye(s),Ur(Fh(s),function(l){return $w.call(s,l)}))}:_m,PS=Fh?function(s){for(var l=[];s;)zr(l,dm(s)),s=Ll(s);return l}:_m,Mt=It;(Vh&&Mt(new Vh(new ArrayBuffer(1)))!=Qe||Bo&&Mt(new Bo)!=De||Bh&&Mt(Bh.resolve())!=bl||Is&&Mt(new Is)!=qt||Wo&&Mt(new Wo)!=Wr)&&(Mt=function(s){var l=It(s),f=l==dt?s.constructor:n,g=f?ki(f):"";if(g)switch(g){case Cj:return Qe;case Pj:return De;case Aj:return bl;case Mj:return qt;case Oj:return Wr}return l});function zF(s,l,f){for(var g=-1,w=f.length;++g<w;){var M=f[g],I=M.size;switch(M.type){case"drop":s+=I;break;case"dropRight":l-=I;break;case"take":l=At(l,s+I);break;case"takeRight":s=mt(s,l-I);break}}return{start:s,end:l}}function GF(s){var l=s.match(ZL);return l?l[1].split(JL):[]}function AS(s,l,f){l=Kr(l,s);for(var g=-1,w=l.length,M=!1;++g<w;){var I=Gn(l[g]);if(!(M=s!=null&&f(s,I)))break;s=s[I]}return M||++g!=w?M:(w=s==null?0:s.length,!!w&&cc(w)&&cr(I,w)&&(Me(s)||Li(s)))}function YF(s){var l=s.length,f=new s.constructor(l);return l&&typeof s[0]=="string"&&ze.call(s,"index")&&(f.index=s.index,f.input=s.input),f}function MS(s){return typeof s.constructor=="function"&&!Zo(s)?Ds(Ll(s)):{}}function HF(s,l,f){var g=s.constructor;switch(l){case xe:return sm(s);case re:case de:return new g(+s);case Qe:return _F(s,f);case Pt:case wn:case rr:case mh:case ph:case gh:case yh:case vh:case xh:return uS(s,f);case De:return new g;case ft:case bn:return new g(s);case Pi:return IF(s);case qt:return new g;case Ai:return $F(s)}}function qF(s,l){var f=l.length;if(!f)return s;var g=f-1;return l[g]=(f>1?"& ":"")+l[g],l=l.join(f>2?", ":" "),s.replace(XL,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
|
-
`)}function KF(s){return Me(s)||Li(s)||!!(Dw&&s&&s[Dw])}function cr(s,l){var d=typeof s;return l=l??B,!!l&&(d=="number"||d!="symbol"&&aR.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,d){if(!st(d))return!1;var g=typeof l;return(g=="number"?Bt(d)&&cr(l,d.length):g=="string"&&l in d)?En(d[l],s):!1}function hm(s,l){if(Me(s))return!1;var d=typeof s;return d=="number"||d=="symbol"||d=="boolean"||s==null||Jt(s)?!0:YL.test(s)||!GL.test(s)||l!=null&&s in Ye(l)}function XF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function mm(s){var l=tc(s),d=A[l];if(typeof d!="function"||!(l in ke.prototype))return!1;if(s===d)return!0;var g=um(d);return!!g&&s===g[0]}function ZF(s){return!!Ow&&Ow in s}var JF=Il?ur:Im;function Zo(s){var l=s&&s.constructor,d=typeof l=="function"&&l.prototype||_s;return s===d}function OS(s){return s===s&&!st(s)}function _S(s,l){return function(d){return d==null?!1:d[s]===l&&(l!==n||s in Ye(d))}}function QF(s){var l=ac(s,function(g){return d.size===f&&d.clear(),g}),d=l.cache;return l}function eV(s,l){var d=s[1],g=l[1],w=d|g,M=w<(T|b|j),I=g==j&&d==E||g==j&&d==F&&s[7].length<=l[8]||g==(j|F)&&l[7].length<=l[8]&&d==E;if(!(M||I))return s;g&T&&(s[2]=l[2],w|=d&T?0:C);var N=l[3];if(N){var R=s[3];s[3]=R?dS(R,N,l[4]):N,s[4]=R?Gr(s[3],h):l[4]}return N=l[5],N&&(R=s[5],s[5]=R?hS(R,N,l[6]):N,s[6]=R?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&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]=w,s}function tV(s){var l=[];if(s!=null)for(var d in Ye(s))l.push(d);return l}function nV(s){return Dl.call(s)}function IS(s,l,d){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,w=-1,M=mt(g.length-l,0),I=U(M);++w<M;)I[w]=g[l+w];w=-1;for(var N=U(l+1);++w<l;)N[w]=g[w];return N[l]=d(I),Kt(s,this,N)}}function $S(s,l){return l.length<2?s:Di(s,mn(l,0,-1))}function rV(s,l){for(var d=s.length,g=At(l.length,d),w=Vt(s);g--;){var M=l[g];s[g]=cr(M,d)?w[M]:n}return s}function pm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var DS=kS(nS),Jo=vj||function(s,l){return xt.setTimeout(s,l)},gm=kS(PF);function NS(s,l,d){var g=l+"";return gm(s,qF(g,iV(GF(g),d)))}function kS(s){var l=0,d=0;return function(){var g=Sj(),w=ge-(g-d);if(d=g,w>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function rc(s,l){var d=-1,g=s.length,w=g-1;for(l=l===n?g:l;++d<l;){var M=Jh(d,w),I=s[M];s[M]=s[d],s[d]=I}return s.length=l,s}var LS=QF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(HL,function(d,g,w,M){l.push(w?M.replace(tR,"$1"):g||d)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function ki(s){if(s!=null){try{return $l.call(s)}catch{}try{return s+""}catch{}}return""}function iV(s,l){return un(le,function(d){var g="_."+d[0];l&d[1]&&!Al(s,g)&&s.push(g)}),s.sort()}function RS(s){if(s instanceof ke)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 sV(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var w=0,M=0,I=U(Fl(g/l));w<g;)I[M++]=mn(s,w,w+=l);return I}function oV(s){for(var l=-1,d=s==null?0:s.length,g=0,w=[];++l<d;){var M=s[l];M&&(w[g++]=M)}return w}function aV(){var s=arguments.length;if(!s)return[];for(var l=U(s-1),d=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Me(d)?Vt(d):[d],bt(l,1))}var lV=Ie(function(s,l){return ct(s)?Yo(s,bt(l,1,ct,!0)):[]}),cV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),be(d,2)):[]}),uV=Ie(function(s,l){var d=pn(l);return ct(d)&&(d=n),ct(s)?Yo(s,bt(l,1,ct,!0),n,d):[]});function fV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function dV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function hV(s,l){return s&&s.length?Kl(s,be(l,3),!0,!0):[]}function mV(s,l){return s&&s.length?Kl(s,be(l,3),!0):[]}function pV(s,l,d,g){var w=s==null?0:s.length;return w?(d&&typeof d!="number"&&$t(s,l,d)&&(d=0,g=w),aF(s,l,d,g)):[]}function jS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ml(s,be(l,3),w)}function FS(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g-1;return d!==n&&(w=Oe(d),w=d<0?mt(g+w,0):At(w,g-1)),Ml(s,be(l,3),w,!0)}function VS(s){var l=s==null?0:s.length;return l?bt(s,1):[]}function gV(s){var l=s==null?0:s.length;return l?bt(s,V):[]}function yV(s,l){var d=s==null?0:s.length;return d?(l=l===n?1:Oe(l),bt(s,l)):[]}function vV(s){for(var l=-1,d=s==null?0:s.length,g={};++l<d;){var w=s[l];g[w[0]]=w[1]}return g}function BS(s){return s&&s.length?s[0]:n}function xV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=d==null?0:Oe(d);return w<0&&(w=mt(g+w,0)),Ps(s,l,w)}function bV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var wV=Ie(function(s){var l=et(s,rm);return l.length&&l[0]===s[0]?Hh(l):[]}),SV=Ie(function(s){var l=pn(s),d=et(s,rm);return l===pn(d)?l=n:d.pop(),d.length&&d[0]===s[0]?Hh(d,be(l,2)):[]}),TV=Ie(function(s){var l=pn(s),d=et(s,rm);return l=typeof l=="function"?l:n,l&&d.pop(),d.length&&d[0]===s[0]?Hh(d,n,l):[]});function EV(s,l){return s==null?"":bj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function CV(s,l,d){var g=s==null?0:s.length;if(!g)return-1;var w=g;return d!==n&&(w=Oe(d),w=w<0?mt(g+w,0):At(w,g-1)),l===l?ij(s,l,w):Ml(s,ww,w,!0)}function PV(s,l){return s&&s.length?Jw(s,Oe(l)):n}var AV=Ie(WS);function WS(s,l){return s&&s.length&&l&&l.length?Zh(s,l):s}function MV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,be(d,2)):s}function OV(s,l,d){return s&&s.length&&l&&l.length?Zh(s,l,n,d):s}var _V=lr(function(s,l){var d=s==null?0:s.length,g=Uh(s,l);return tS(s,et(l,function(w){return cr(w,d)?+w:w}).sort(fS)),g});function IV(s,l){var d=[];if(!(s&&s.length))return d;var g=-1,w=[],M=s.length;for(l=be(l,3);++g<M;){var I=s[g];l(I,g,s)&&(d.push(I),w.push(g))}return tS(s,w),d}function ym(s){return s==null?s:Ej.call(s)}function $V(s,l,d){var g=s==null?0:s.length;return g?(d&&typeof d!="number"&&$t(s,l,d)?(l=0,d=g):(l=l==null?0:Oe(l),d=d===n?g:Oe(d)),mn(s,l,d)):[]}function DV(s,l){return ql(s,l)}function NV(s,l,d){return em(s,l,be(d,2))}function kV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l);if(g<d&&En(s[g],l))return g}return-1}function LV(s,l){return ql(s,l,!0)}function RV(s,l,d){return em(s,l,be(d,2),!0)}function jV(s,l){var d=s==null?0:s.length;if(d){var g=ql(s,l,!0)-1;if(En(s[g],l))return g}return-1}function FV(s){return s&&s.length?rS(s):[]}function VV(s,l){return s&&s.length?rS(s,be(l,2)):[]}function BV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function WV(s,l,d){return s&&s.length?(l=d||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function UV(s,l,d){var g=s==null?0:s.length;return g?(l=d||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function zV(s,l){return s&&s.length?Kl(s,be(l,3),!1,!0):[]}function GV(s,l){return s&&s.length?Kl(s,be(l,3)):[]}var YV=Ie(function(s){return qr(bt(s,1,ct,!0))}),HV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(bt(s,1,ct,!0),be(l,2))}),qV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(bt(s,1,ct,!0),n,l)});function KV(s){return s&&s.length?qr(s):[]}function XV(s,l){return s&&s.length?qr(s,be(l,2)):[]}function ZV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function vm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(d){if(ct(d))return l=mt(d.length,l),!0}),kh(l,function(d){return et(s,$h(d))})}function US(s,l){if(!(s&&s.length))return[];var d=vm(s);return l==null?d:et(d,function(g){return Kt(l,n,g)})}var JV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),QV=Ie(function(s){return nm(Ur(s,ct))}),e8=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),nm(Ur(s,ct),be(l,2))}),t8=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,nm(Ur(s,ct),n,l)}),n8=Ie(vm);function r8(s,l){return aS(s||[],l||[],Go)}function i8(s,l){return aS(s||[],l||[],Ko)}var s8=Ie(function(s){var l=s.length,d=l>1?s[l-1]:n;return d=typeof d=="function"?(s.pop(),d):n,US(s,d)});function zS(s){var l=A(s);return l.__chain__=!0,l}function o8(s,l){return l(s),s}function ic(s,l){return l(s)}var a8=lr(function(s){var l=s.length,d=l?s[0]:0,g=this.__wrapped__,w=function(M){return Uh(M,s)};return l>1||this.__actions__.length||!(g instanceof ke)||!cr(d)?this.thru(w):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:ic,args:[w],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function l8(){return zS(this)}function c8(){return new dn(this.value(),this.__chain__)}function u8(){this.__values__===n&&(this.__values__=iT(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function f8(){return this}function d8(s){for(var l,d=this;d instanceof Ul;){var g=RS(d);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;d=d.__wrapped__}return w.__wrapped__=s,l}function h8(){var s=this.__wrapped__;if(s instanceof ke){var l=s;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:ic,args:[ym],thisArg:n}),new dn(l,this.__chain__)}return this.thru(ym)}function m8(){return oS(this.__wrapped__,this.__actions__)}var p8=Xl(function(s,l,d){ze.call(s,d)?++s[d]:or(s,d,1)});function g8(s,l,d){var g=Me(s)?xw:oF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}function y8(s,l){var d=Me(s)?Ur:Uw;return d(s,be(l,3))}var v8=yS(jS),x8=yS(FS);function b8(s,l){return bt(sc(s,l),1)}function w8(s,l){return bt(sc(s,l),V)}function S8(s,l,d){return d=d===n?1:Oe(d),bt(sc(s,l),d)}function GS(s,l){var d=Me(s)?un:Hr;return d(s,be(l,3))}function YS(s,l){var d=Me(s)?BR:Ww;return d(s,be(l,3))}var T8=Xl(function(s,l,d){ze.call(s,d)?s[d].push(l):or(s,d,[l])});function E8(s,l,d,g){s=Bt(s)?s:js(s),d=d&&!g?Oe(d):0;var w=s.length;return d<0&&(d=mt(w+d,0)),uc(s)?d<=w&&s.indexOf(l,d)>-1:!!w&&Ps(s,l,d)>-1}var C8=Ie(function(s,l,d){var g=-1,w=typeof l=="function",M=Bt(s)?U(s.length):[];return Hr(s,function(I){M[++g]=w?Kt(l,I,d):Ho(I,l,d)}),M}),P8=Xl(function(s,l,d){or(s,d,l)});function sc(s,l){var d=Me(s)?et:Kw;return d(s,be(l,3))}function A8(s,l,d,g){return s==null?[]:(Me(l)||(l=l==null?[]:[l]),d=g?n:d,Me(d)||(d=d==null?[]:[d]),Qw(s,l,d))}var M8=Xl(function(s,l,d){s[d?0:1].push(l)},function(){return[[],[]]});function O8(s,l,d){var g=Me(s)?_h:Tw,w=arguments.length<3;return g(s,be(l,4),d,w,Hr)}function _8(s,l,d){var g=Me(s)?WR:Tw,w=arguments.length<3;return g(s,be(l,4),d,w,Ww)}function I8(s,l){var d=Me(s)?Ur:Uw;return d(s,lc(be(l,3)))}function $8(s){var l=Me(s)?jw:EF;return l(s)}function D8(s,l,d){(d?$t(s,l,d):l===n)?l=1:l=Oe(l);var g=Me(s)?tF:CF;return g(s,l)}function N8(s){var l=Me(s)?nF:AF;return l(s)}function k8(s){if(s==null)return 0;if(Bt(s))return uc(s)?Ms(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Kh(s).length}function L8(s,l,d){var g=Me(s)?Ih:MF;return d&&$t(s,l,d)&&(l=n),g(s,be(l,3))}var R8=Ie(function(s,l){if(s==null)return[];var d=l.length;return d>1&&$t(s,l[0],l[1])?l=[]:d>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),Qw(s,bt(l,1),[])}),oc=yj||function(){return xt.Date.now()};function j8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function HS(s,l,d){return l=d?n:l,l=s&&l==null?s.length:l,ar(s,j,n,n,n,n,l)}function qS(s,l){var d;if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){return--s>0&&(d=l.apply(this,arguments)),s<=1&&(l=n),d}}var xm=Ie(function(s,l,d){var g=T;if(d.length){var w=Gr(d,Ls(xm));g|=P}return ar(s,g,l,d,w)}),KS=Ie(function(s,l,d){var g=T|b;if(d.length){var w=Gr(d,Ls(KS));g|=P}return ar(l,g,s,d,w)});function XS(s,l,d){l=d?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=XS.placeholder,g}function ZS(s,l,d){l=d?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=ZS.placeholder,g}function JS(s,l,d){var g,w,M,I,N,R,H=0,q=!1,X=!1,ce=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(d)&&(q=!!d.leading,X="maxWait"in d,M=X?mt(gn(d.maxWait)||0,l):M,ce="trailing"in d?!!d.trailing:ce);function ye(ut){var Cn=g,dr=w;return g=w=n,H=ut,I=s.apply(dr,Cn),I}function Te(ut){return H=ut,N=Jo(Ne,l),q?ye(ut):I}function _e(ut){var Cn=ut-R,dr=ut-H,yT=l-Cn;return X?At(yT,M-dr):yT}function Ee(ut){var Cn=ut-R,dr=ut-H;return R===n||Cn>=l||Cn<0||X&&dr>=M}function Ne(){var ut=oc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ce&&g?ye(ut):(g=w=n,I)}function Qt(){N!==n&&lS(N),H=0,g=R=w=N=n}function Dt(){return N===n?I:Le(oc())}function en(){var ut=oc(),Cn=Ee(ut);if(g=arguments,w=this,R=ut,Cn){if(N===n)return Te(R);if(X)return lS(N),N=Jo(Ne,l),ye(R)}return N===n&&(N=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var F8=Ie(function(s,l){return Bw(s,1,l)}),V8=Ie(function(s,l,d){return Bw(s,gn(l)||0,d)});function B8(s){return ar(s,W)}function ac(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var d=function(){var g=arguments,w=l?l.apply(this,g):g[0],M=d.cache;if(M.has(w))return M.get(w);var I=s.apply(this,g);return d.cache=M.set(w,I)||M,I};return d.cache=new(ac.Cache||sr),d}ac.Cache=sr;function lc(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 W8(s){return qS(2,s)}var U8=OF(function(s,l){l=l.length==1&&Me(l[0])?et(l[0],Xt(be())):et(bt(l,1),Xt(be()));var d=l.length;return Ie(function(g){for(var w=-1,M=At(g.length,d);++w<M;)g[w]=l[w].call(this,g[w]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var d=Gr(l,Ls(bm));return ar(s,P,n,l,d)}),QS=Ie(function(s,l){var d=Gr(l,Ls(QS));return ar(s,D,n,l,d)}),z8=lr(function(s,l){return ar(s,F,n,n,n,l)});function G8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function Y8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(d){var g=d[l],w=Xr(d,0,l);return g&&zr(w,g),Kt(s,this,w)})}function H8(s,l,d){var g=!0,w=!0;if(typeof s!="function")throw new fn(a);return st(d)&&(g="leading"in d?!!d.leading:g,w="trailing"in d?!!d.trailing:w),JS(s,l,{leading:g,maxWait:l,trailing:w})}function q8(s){return HS(s,1)}function K8(s,l){return bm(im(l),s)}function X8(){if(!arguments.length)return[];var s=arguments[0];return Me(s)?s:[s]}function Z8(s){return hn(s,v)}function J8(s,l){return l=typeof l=="function"?l:n,hn(s,v,l)}function Q8(s){return hn(s,m|v)}function eB(s,l){return l=typeof l=="function"?l:n,hn(s,m|v,l)}function tB(s,l){return l==null||Vw(s,l,gt(l))}function En(s,l){return s===l||s!==s&&l!==l}var nB=ec(Yh),rB=ec(function(s,l){return s>=l}),Li=Yw(function(){return arguments}())?Yw:function(s){return ot(s)&&ze.call(s,"callee")&&!$w.call(s,"callee")},Me=U.isArray,iB=hw?Xt(hw):dF;function Bt(s){return s!=null&&cc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function sB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=xj||Im,oB=mw?Xt(mw):hF;function aB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function lB(s){if(s==null)return!0;if(Bt(s)&&(Me(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Rs(s)||Li(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Kh(s).length;for(var d in s)if(ze.call(s,d))return!1;return!0}function cB(s,l){return qo(s,l)}function uB(s,l,d){d=typeof d=="function"?d:n;var g=d?d(s,l):n;return g===n?qo(s,l,n,d):!!g}function wm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function fB(s){return typeof s=="number"&&Nw(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==wl}function eT(s){return typeof s=="number"&&s==Oe(s)}function cc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=B}function st(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function ot(s){return s!=null&&typeof s=="object"}var tT=pw?Xt(pw):pF;function dB(s,l){return s===l||qh(s,l,fm(l))}function hB(s,l,d){return d=typeof d=="function"?d:n,qh(s,l,fm(l),d)}function mB(s){return nT(s)&&s!=+s}function pB(s){if(JF(s))throw new Ae(o);return Hw(s)}function gB(s){return s===null}function yB(s){return s==null}function nT(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Ll(s);if(l===null)return!0;var d=ze.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&$l.call(d)==hj}var Sm=gw?Xt(gw):gF;function vB(s){return eT(s)&&s>=-9007199254740991&&s<=B}var rT=yw?Xt(yw):yF;function uc(s){return typeof s=="string"||!Me(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ai}var Rs=vw?Xt(vw):vF;function xB(s){return s===n}function bB(s){return ot(s)&&Mt(s)==Wr}function wB(s){return ot(s)&&It(s)==Tl}var SB=ec(Xh),TB=ec(function(s,l){return s<=l});function iT(s){if(!s)return[];if(Bt(s))return uc(s)?Sn(s):Vt(s);if(Vo&&s[Vo])return tj(s[Vo]());var l=Mt(s),d=l==De?Rh:l==qt?Ol:js;return d(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===V||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function Oe(s){var l=fr(s),d=l%1;return l===l?d?l-d:l:0}function sT(s){return s?$i(Oe(s),0,k):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return O;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=Ew(s);var d=iR.test(s);return d||oR.test(s)?jR(s.slice(2),d?2:8):rR.test(s)?O:+s}function oT(s){return zn(s,Wt(s))}function EB(s){return s?$i(Oe(s),-9007199254740991,B):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var CB=Ns(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var d in l)ze.call(l,d)&&Go(s,d,l[d])}),aT=Ns(function(s,l){zn(l,Wt(l),s)}),fc=Ns(function(s,l,d,g){zn(l,Wt(l),s,g)}),PB=Ns(function(s,l,d,g){zn(l,gt(l),s,g)}),AB=lr(Uh);function MB(s,l){var d=Ds(s);return l==null?d:Fw(d,l)}var OB=Ie(function(s,l){s=Ye(s);var d=-1,g=l.length,w=g>2?l[2]:n;for(w&&$t(l[0],l[1],w)&&(g=1);++d<g;)for(var M=l[d],I=Wt(M),N=-1,R=I.length;++N<R;){var H=I[N],q=s[H];(q===n||En(q,_s[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),_B=Ie(function(s){return s.push(n,ES),Kt(lT,n,s)});function IB(s,l){return bw(s,be(l,3),Un)}function $B(s,l){return bw(s,be(l,3),Gh)}function DB(s,l){return s==null?s:zh(s,be(l,3),Wt)}function NB(s,l){return s==null?s:zw(s,be(l,3),Wt)}function kB(s,l){return s&&Un(s,be(l,3))}function LB(s,l){return s&&Gh(s,be(l,3))}function RB(s){return s==null?[]:Yl(s,gt(s))}function jB(s){return s==null?[]:Yl(s,Wt(s))}function Tm(s,l,d){var g=s==null?n:Di(s,l);return g===n?d:g}function FB(s,l){return s!=null&&AS(s,l,lF)}function Em(s,l){return s!=null&&AS(s,l,cF)}var VB=xS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=d},Pm(Ut)),BB=xS(function(s,l,d){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),ze.call(s,l)?s[l].push(d):s[l]=[d]},be),WB=Ie(Ho);function gt(s){return Bt(s)?Rw(s):Kh(s)}function Wt(s){return Bt(s)?Rw(s,!0):xF(s)}function UB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,l(g,w,M),g)}),d}function zB(s,l){var d={};return l=be(l,3),Un(s,function(g,w,M){or(d,w,l(g,w,M))}),d}var GB=Ns(function(s,l,d){Hl(s,l,d)}),lT=Ns(function(s,l,d,g){Hl(s,l,d,g)}),YB=lr(function(s,l){var d={};if(s==null)return d;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,cm(s),d),g&&(d=hn(d,m|p|v,VF));for(var w=l.length;w--;)tm(d,l[w]);return d});function HB(s,l){return cT(s,lc(be(l)))}var qB=lr(function(s,l){return s==null?{}:wF(s,l)});function cT(s,l){if(s==null)return{};var d=et(cm(s),function(g){return[g]});return l=be(l),eS(s,d,function(g,w){return l(g,w[0])})}function KB(s,l,d){l=Kr(l,s);var g=-1,w=l.length;for(w||(w=1,s=n);++g<w;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=w,M=d),s=ur(M)?M.call(s):M}return s}function XB(s,l,d){return s==null?s:Ko(s,l,d)}function ZB(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,d,g)}var uT=SS(gt),fT=SS(Wt);function JB(s,l,d){var g=Me(s),w=g||Zr(s)||Rs(s);if(l=be(l,4),d==null){var M=s&&s.constructor;w?d=g?new M:[]:st(s)?d=ur(M)?Ds(Ll(s)):{}:d={}}return(w?un:Un)(s,function(I,N,R){return l(d,I,N,R)}),d}function QB(s,l){return s==null?!0:tm(s,l)}function e9(s,l,d){return s==null?s:sS(s,l,im(d))}function t9(s,l,d,g){return g=typeof g=="function"?g:n,s==null?s:sS(s,l,im(d),g)}function js(s){return s==null?[]:Lh(s,gt(s))}function n9(s){return s==null?[]:Lh(s,Wt(s))}function r9(s,l,d){return d===n&&(d=l,l=n),d!==n&&(d=gn(d),d=d===d?d:0),l!==n&&(l=gn(l),l=l===l?l:0),$i(gn(s),l,d)}function i9(s,l,d){return l=fr(l),d===n?(d=l,l=0):d=fr(d),s=gn(s),uF(s,l,d)}function s9(s,l,d){if(d&&typeof d!="boolean"&&$t(s,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof s=="boolean"&&(d=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 g=s;s=l,l=g}if(d||s%1||l%1){var w=kw();return At(s+w*(l-s+RR("1e-"+((w+"").length-1))),l)}return Jh(s,l)}var o9=ks(function(s,l,d){return l=l.toLowerCase(),s+(d?dT(l):l)});function dT(s){return Cm(Be(s).toLowerCase())}function hT(s){return s=Be(s),s&&s.replace(lR,XR).replace(AR,"")}function a9(s,l,d){s=Be(s),l=Zt(l);var g=s.length;d=d===n?g:$i(Oe(d),0,g);var w=d;return d-=l.length,d>=0&&s.slice(d,w)==l}function l9(s){return s=Be(s),s&&WL.test(s)?s.replace(z2,ZR):s}function c9(s){return s=Be(s),s&&qL.test(s)?s.replace(bh,"\\$&"):s}var u9=ks(function(s,l,d){return s+(d?"-":"")+l.toLowerCase()}),f9=ks(function(s,l,d){return s+(d?" ":"")+l.toLowerCase()}),d9=gS("toLowerCase");function h9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;if(!l||g>=l)return s;var w=(l-g)/2;return Ql(Vl(w),d)+s+Ql(Fl(w),d)}function m9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?s+Ql(l-g,d):s}function p9(s,l,d){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?Ql(l-g,d)+s:s}function g9(s,l,d){return d||l==null?l=0:l&&(l=+l),Tj(Be(s).replace(wh,""),l||0)}function y9(s,l,d){return(d?$t(s,l,d):l===n)?l=1:l=Oe(l),Qh(Be(s),l)}function v9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var x9=ks(function(s,l,d){return s+(d?"_":"")+l.toLowerCase()});function b9(s,l,d){return d&&typeof d!="number"&&$t(s,l,d)&&(l=d=n),d=d===n?k:d>>>0,d?(s=Be(s),s&&(typeof l=="string"||l!=null&&!Sm(l))&&(l=Zt(l),!l&&As(s))?Xr(Sn(s),0,d):s.split(l,d)):[]}var w9=ks(function(s,l,d){return s+(d?" ":"")+Cm(l)});function S9(s,l,d){return s=Be(s),d=d==null?0:$i(Oe(d),0,s.length),l=Zt(l),s.slice(d,d+l.length)==l}function T9(s,l,d){var g=A.templateSettings;d&&$t(s,l,d)&&(l=n),s=Be(s),l=fc({},l,g,TS);var w=fc({},l.imports,g.imports,TS),M=gt(w),I=Lh(w,M),N,R,H=0,q=l.interpolate||El,X="__p += '",ce=jh((l.escape||El).source+"|"+q.source+"|"+(q===G2?nR:El).source+"|"+(l.evaluate||El).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$R+"]")+`
|
|
635
|
-
`;s.replace(
|
|
634
|
+
`)}function KF(s){return Me(s)||Li(s)||!!(Dw&&s&&s[Dw])}function cr(s,l){var f=typeof s;return l=l??U,!!l&&(f=="number"||f!="symbol"&&aR.test(s))&&s>-1&&s%1==0&&s<l}function $t(s,l,f){if(!st(f))return!1;var g=typeof l;return(g=="number"?Bt(f)&&cr(l,f.length):g=="string"&&l in f)?En(f[l],s):!1}function hm(s,l){if(Me(s))return!1;var f=typeof s;return f=="number"||f=="symbol"||f=="boolean"||s==null||Jt(s)?!0:YL.test(s)||!GL.test(s)||l!=null&&s in Ye(l)}function XF(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function mm(s){var l=tc(s),f=P[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(s===f)return!0;var g=um(f);return!!g&&s===g[0]}function ZF(s){return!!Ow&&Ow in s}var JF=Il?ur:Im;function Zo(s){var l=s&&s.constructor,f=typeof l=="function"&&l.prototype||_s;return s===f}function OS(s){return s===s&&!st(s)}function _S(s,l){return function(f){return f==null?!1:f[s]===l&&(l!==n||s in Ye(f))}}function QF(s){var l=ac(s,function(g){return f.size===d&&f.clear(),g}),f=l.cache;return l}function eV(s,l){var f=s[1],g=l[1],w=f|g,M=w<(T|b|R),I=g==R&&f==E||g==R&&f==F&&s[7].length<=l[8]||g==(R|F)&&l[7].length<=l[8]&&f==E;if(!(M||I))return s;g&T&&(s[2]=l[2],w|=f&T?0:C);var N=l[3];if(N){var j=s[3];s[3]=j?dS(j,N,l[4]):N,s[4]=j?Gr(s[3],h):l[4]}return N=l[5],N&&(j=s[5],s[5]=j?hS(j,N,l[6]):N,s[6]=j?Gr(s[5],h):l[6]),N=l[7],N&&(s[7]=N),g&R&&(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]=w,s}function tV(s){var l=[];if(s!=null)for(var f in Ye(s))l.push(f);return l}function nV(s){return Dl.call(s)}function IS(s,l,f){return l=mt(l===n?s.length-1:l,0),function(){for(var g=arguments,w=-1,M=mt(g.length-l,0),I=W(M);++w<M;)I[w]=g[l+w];w=-1;for(var N=W(l+1);++w<l;)N[w]=g[w];return N[l]=f(I),Kt(s,this,N)}}function $S(s,l){return l.length<2?s:Di(s,mn(l,0,-1))}function rV(s,l){for(var f=s.length,g=At(l.length,f),w=Vt(s);g--;){var M=l[g];s[g]=cr(M,f)?w[M]:n}return s}function pm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var DS=kS(nS),Jo=vj||function(s,l){return xt.setTimeout(s,l)},gm=kS(PF);function NS(s,l,f){var g=l+"";return gm(s,qF(g,iV(GF(g),f)))}function kS(s){var l=0,f=0;return function(){var g=Sj(),w=ge-(g-f);if(f=g,w>0){if(++l>=se)return arguments[0]}else l=0;return s.apply(n,arguments)}}function rc(s,l){var f=-1,g=s.length,w=g-1;for(l=l===n?g:l;++f<l;){var M=Jh(f,w),I=s[M];s[M]=s[f],s[f]=I}return s.length=l,s}var LS=QF(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(HL,function(f,g,w,M){l.push(w?M.replace(tR,"$1"):g||f)}),l});function Gn(s){if(typeof s=="string"||Jt(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function ki(s){if(s!=null){try{return $l.call(s)}catch{}try{return s+""}catch{}}return""}function iV(s,l){return un(ce,function(f){var g="_."+f[0];l&f[1]&&!Al(s,g)&&s.push(g)}),s.sort()}function RS(s){if(s instanceof ke)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 sV(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=mt(Oe(l),0);var g=s==null?0:s.length;if(!g||l<1)return[];for(var w=0,M=0,I=W(Fl(g/l));w<g;)I[M++]=mn(s,w,w+=l);return I}function oV(s){for(var l=-1,f=s==null?0:s.length,g=0,w=[];++l<f;){var M=s[l];M&&(w[g++]=M)}return w}function aV(){var s=arguments.length;if(!s)return[];for(var l=W(s-1),f=arguments[0],g=s;g--;)l[g-1]=arguments[g];return zr(Me(f)?Vt(f):[f],bt(l,1))}var lV=Ie(function(s,l){return ct(s)?Yo(s,bt(l,1,ct,!0)):[]}),cV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,bt(l,1,ct,!0),be(f,2)):[]}),uV=Ie(function(s,l){var f=pn(l);return ct(f)&&(f=n),ct(s)?Yo(s,bt(l,1,ct,!0),n,f):[]});function fV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),mn(s,l<0?0:l,g)):[]}function dV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,0,l<0?0:l)):[]}function hV(s,l){return s&&s.length?Kl(s,be(l,3),!0,!0):[]}function mV(s,l){return s&&s.length?Kl(s,be(l,3),!0):[]}function pV(s,l,f,g){var w=s==null?0:s.length;return w?(f&&typeof f!="number"&&$t(s,l,f)&&(f=0,g=w),aF(s,l,f,g)):[]}function jS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(g+w,0)),Ml(s,be(l,3),w)}function FS(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=g-1;return f!==n&&(w=Oe(f),w=f<0?mt(g+w,0):At(w,g-1)),Ml(s,be(l,3),w,!0)}function VS(s){var l=s==null?0:s.length;return l?bt(s,1):[]}function gV(s){var l=s==null?0:s.length;return l?bt(s,Y):[]}function yV(s,l){var f=s==null?0:s.length;return f?(l=l===n?1:Oe(l),bt(s,l)):[]}function vV(s){for(var l=-1,f=s==null?0:s.length,g={};++l<f;){var w=s[l];g[w[0]]=w[1]}return g}function BS(s){return s&&s.length?s[0]:n}function xV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(g+w,0)),Ps(s,l,w)}function bV(s){var l=s==null?0:s.length;return l?mn(s,0,-1):[]}var wV=Ie(function(s){var l=et(s,rm);return l.length&&l[0]===s[0]?Hh(l):[]}),SV=Ie(function(s){var l=pn(s),f=et(s,rm);return l===pn(f)?l=n:f.pop(),f.length&&f[0]===s[0]?Hh(f,be(l,2)):[]}),TV=Ie(function(s){var l=pn(s),f=et(s,rm);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===s[0]?Hh(f,n,l):[]});function EV(s,l){return s==null?"":bj.call(s,l)}function pn(s){var l=s==null?0:s.length;return l?s[l-1]:n}function CV(s,l,f){var g=s==null?0:s.length;if(!g)return-1;var w=g;return f!==n&&(w=Oe(f),w=w<0?mt(g+w,0):At(w,g-1)),l===l?ij(s,l,w):Ml(s,ww,w,!0)}function PV(s,l){return s&&s.length?Jw(s,Oe(l)):n}var AV=Ie(WS);function WS(s,l){return s&&s.length&&l&&l.length?Zh(s,l):s}function MV(s,l,f){return s&&s.length&&l&&l.length?Zh(s,l,be(f,2)):s}function OV(s,l,f){return s&&s.length&&l&&l.length?Zh(s,l,n,f):s}var _V=lr(function(s,l){var f=s==null?0:s.length,g=Uh(s,l);return tS(s,et(l,function(w){return cr(w,f)?+w:w}).sort(fS)),g});function IV(s,l){var f=[];if(!(s&&s.length))return f;var g=-1,w=[],M=s.length;for(l=be(l,3);++g<M;){var I=s[g];l(I,g,s)&&(f.push(I),w.push(g))}return tS(s,w),f}function ym(s){return s==null?s:Ej.call(s)}function $V(s,l,f){var g=s==null?0:s.length;return g?(f&&typeof f!="number"&&$t(s,l,f)?(l=0,f=g):(l=l==null?0:Oe(l),f=f===n?g:Oe(f)),mn(s,l,f)):[]}function DV(s,l){return ql(s,l)}function NV(s,l,f){return em(s,l,be(f,2))}function kV(s,l){var f=s==null?0:s.length;if(f){var g=ql(s,l);if(g<f&&En(s[g],l))return g}return-1}function LV(s,l){return ql(s,l,!0)}function RV(s,l,f){return em(s,l,be(f,2),!0)}function jV(s,l){var f=s==null?0:s.length;if(f){var g=ql(s,l,!0)-1;if(En(s[g],l))return g}return-1}function FV(s){return s&&s.length?rS(s):[]}function VV(s,l){return s&&s.length?rS(s,be(l,2)):[]}function BV(s){var l=s==null?0:s.length;return l?mn(s,1,l):[]}function WV(s,l,f){return s&&s.length?(l=f||l===n?1:Oe(l),mn(s,0,l<0?0:l)):[]}function UV(s,l,f){var g=s==null?0:s.length;return g?(l=f||l===n?1:Oe(l),l=g-l,mn(s,l<0?0:l,g)):[]}function zV(s,l){return s&&s.length?Kl(s,be(l,3),!1,!0):[]}function GV(s,l){return s&&s.length?Kl(s,be(l,3)):[]}var YV=Ie(function(s){return qr(bt(s,1,ct,!0))}),HV=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),qr(bt(s,1,ct,!0),be(l,2))}),qV=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,qr(bt(s,1,ct,!0),n,l)});function KV(s){return s&&s.length?qr(s):[]}function XV(s,l){return s&&s.length?qr(s,be(l,2)):[]}function ZV(s,l){return l=typeof l=="function"?l:n,s&&s.length?qr(s,n,l):[]}function vm(s){if(!(s&&s.length))return[];var l=0;return s=Ur(s,function(f){if(ct(f))return l=mt(f.length,l),!0}),kh(l,function(f){return et(s,$h(f))})}function US(s,l){if(!(s&&s.length))return[];var f=vm(s);return l==null?f:et(f,function(g){return Kt(l,n,g)})}var JV=Ie(function(s,l){return ct(s)?Yo(s,l):[]}),QV=Ie(function(s){return nm(Ur(s,ct))}),e8=Ie(function(s){var l=pn(s);return ct(l)&&(l=n),nm(Ur(s,ct),be(l,2))}),t8=Ie(function(s){var l=pn(s);return l=typeof l=="function"?l:n,nm(Ur(s,ct),n,l)}),n8=Ie(vm);function r8(s,l){return aS(s||[],l||[],Go)}function i8(s,l){return aS(s||[],l||[],Ko)}var s8=Ie(function(s){var l=s.length,f=l>1?s[l-1]:n;return f=typeof f=="function"?(s.pop(),f):n,US(s,f)});function zS(s){var l=P(s);return l.__chain__=!0,l}function o8(s,l){return l(s),s}function ic(s,l){return l(s)}var a8=lr(function(s){var l=s.length,f=l?s[0]:0,g=this.__wrapped__,w=function(M){return Uh(M,s)};return l>1||this.__actions__.length||!(g instanceof ke)||!cr(f)?this.thru(w):(g=g.slice(f,+f+(l?1:0)),g.__actions__.push({func:ic,args:[w],thisArg:n}),new dn(g,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function l8(){return zS(this)}function c8(){return new dn(this.value(),this.__chain__)}function u8(){this.__values__===n&&(this.__values__=iT(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function f8(){return this}function d8(s){for(var l,f=this;f instanceof Ul;){var g=RS(f);g.__index__=0,g.__values__=n,l?w.__wrapped__=g:l=g;var w=g;f=f.__wrapped__}return w.__wrapped__=s,l}function h8(){var s=this.__wrapped__;if(s instanceof ke){var l=s;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:ic,args:[ym],thisArg:n}),new dn(l,this.__chain__)}return this.thru(ym)}function m8(){return oS(this.__wrapped__,this.__actions__)}var p8=Xl(function(s,l,f){ze.call(s,f)?++s[f]:or(s,f,1)});function g8(s,l,f){var g=Me(s)?xw:oF;return f&&$t(s,l,f)&&(l=n),g(s,be(l,3))}function y8(s,l){var f=Me(s)?Ur:Uw;return f(s,be(l,3))}var v8=yS(jS),x8=yS(FS);function b8(s,l){return bt(sc(s,l),1)}function w8(s,l){return bt(sc(s,l),Y)}function S8(s,l,f){return f=f===n?1:Oe(f),bt(sc(s,l),f)}function GS(s,l){var f=Me(s)?un:Hr;return f(s,be(l,3))}function YS(s,l){var f=Me(s)?BR:Ww;return f(s,be(l,3))}var T8=Xl(function(s,l,f){ze.call(s,f)?s[f].push(l):or(s,f,[l])});function E8(s,l,f,g){s=Bt(s)?s:js(s),f=f&&!g?Oe(f):0;var w=s.length;return f<0&&(f=mt(w+f,0)),uc(s)?f<=w&&s.indexOf(l,f)>-1:!!w&&Ps(s,l,f)>-1}var C8=Ie(function(s,l,f){var g=-1,w=typeof l=="function",M=Bt(s)?W(s.length):[];return Hr(s,function(I){M[++g]=w?Kt(l,I,f):Ho(I,l,f)}),M}),P8=Xl(function(s,l,f){or(s,f,l)});function sc(s,l){var f=Me(s)?et:Kw;return f(s,be(l,3))}function A8(s,l,f,g){return s==null?[]:(Me(l)||(l=l==null?[]:[l]),f=g?n:f,Me(f)||(f=f==null?[]:[f]),Qw(s,l,f))}var M8=Xl(function(s,l,f){s[f?0:1].push(l)},function(){return[[],[]]});function O8(s,l,f){var g=Me(s)?_h:Tw,w=arguments.length<3;return g(s,be(l,4),f,w,Hr)}function _8(s,l,f){var g=Me(s)?WR:Tw,w=arguments.length<3;return g(s,be(l,4),f,w,Ww)}function I8(s,l){var f=Me(s)?Ur:Uw;return f(s,lc(be(l,3)))}function $8(s){var l=Me(s)?jw:EF;return l(s)}function D8(s,l,f){(f?$t(s,l,f):l===n)?l=1:l=Oe(l);var g=Me(s)?tF:CF;return g(s,l)}function N8(s){var l=Me(s)?nF:AF;return l(s)}function k8(s){if(s==null)return 0;if(Bt(s))return uc(s)?Ms(s):s.length;var l=Mt(s);return l==De||l==qt?s.size:Kh(s).length}function L8(s,l,f){var g=Me(s)?Ih:MF;return f&&$t(s,l,f)&&(l=n),g(s,be(l,3))}var R8=Ie(function(s,l){if(s==null)return[];var f=l.length;return f>1&&$t(s,l[0],l[1])?l=[]:f>2&&$t(l[0],l[1],l[2])&&(l=[l[0]]),Qw(s,bt(l,1),[])}),oc=yj||function(){return xt.Date.now()};function j8(s,l){if(typeof l!="function")throw new fn(a);return s=Oe(s),function(){if(--s<1)return l.apply(this,arguments)}}function HS(s,l,f){return l=f?n:l,l=s&&l==null?s.length:l,ar(s,R,n,n,n,n,l)}function qS(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 xm=Ie(function(s,l,f){var g=T;if(f.length){var w=Gr(f,Ls(xm));g|=A}return ar(s,g,l,f,w)}),KS=Ie(function(s,l,f){var g=T|b;if(f.length){var w=Gr(f,Ls(KS));g|=A}return ar(l,g,s,f,w)});function XS(s,l,f){l=f?n:l;var g=ar(s,E,n,n,n,n,n,l);return g.placeholder=XS.placeholder,g}function ZS(s,l,f){l=f?n:l;var g=ar(s,$,n,n,n,n,n,l);return g.placeholder=ZS.placeholder,g}function JS(s,l,f){var g,w,M,I,N,j,H=0,q=!1,X=!1,ue=!0;if(typeof s!="function")throw new fn(a);l=gn(l)||0,st(f)&&(q=!!f.leading,X="maxWait"in f,M=X?mt(gn(f.maxWait)||0,l):M,ue="trailing"in f?!!f.trailing:ue);function ye(ut){var Cn=g,dr=w;return g=w=n,H=ut,I=s.apply(dr,Cn),I}function Te(ut){return H=ut,N=Jo(Ne,l),q?ye(ut):I}function _e(ut){var Cn=ut-j,dr=ut-H,yT=l-Cn;return X?At(yT,M-dr):yT}function Ee(ut){var Cn=ut-j,dr=ut-H;return j===n||Cn>=l||Cn<0||X&&dr>=M}function Ne(){var ut=oc();if(Ee(ut))return Le(ut);N=Jo(Ne,_e(ut))}function Le(ut){return N=n,ue&&g?ye(ut):(g=w=n,I)}function Qt(){N!==n&&lS(N),H=0,g=j=w=N=n}function Dt(){return N===n?I:Le(oc())}function en(){var ut=oc(),Cn=Ee(ut);if(g=arguments,w=this,j=ut,Cn){if(N===n)return Te(j);if(X)return lS(N),N=Jo(Ne,l),ye(j)}return N===n&&(N=Jo(Ne,l)),I}return en.cancel=Qt,en.flush=Dt,en}var F8=Ie(function(s,l){return Bw(s,1,l)}),V8=Ie(function(s,l,f){return Bw(s,gn(l)||0,f)});function B8(s){return ar(s,B)}function ac(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new fn(a);var f=function(){var g=arguments,w=l?l.apply(this,g):g[0],M=f.cache;if(M.has(w))return M.get(w);var I=s.apply(this,g);return f.cache=M.set(w,I)||M,I};return f.cache=new(ac.Cache||sr),f}ac.Cache=sr;function lc(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 W8(s){return qS(2,s)}var U8=OF(function(s,l){l=l.length==1&&Me(l[0])?et(l[0],Xt(be())):et(bt(l,1),Xt(be()));var f=l.length;return Ie(function(g){for(var w=-1,M=At(g.length,f);++w<M;)g[w]=l[w].call(this,g[w]);return Kt(s,this,g)})}),bm=Ie(function(s,l){var f=Gr(l,Ls(bm));return ar(s,A,n,l,f)}),QS=Ie(function(s,l){var f=Gr(l,Ls(QS));return ar(s,D,n,l,f)}),z8=lr(function(s,l){return ar(s,F,n,n,n,l)});function G8(s,l){if(typeof s!="function")throw new fn(a);return l=l===n?l:Oe(l),Ie(s,l)}function Y8(s,l){if(typeof s!="function")throw new fn(a);return l=l==null?0:mt(Oe(l),0),Ie(function(f){var g=f[l],w=Xr(f,0,l);return g&&zr(w,g),Kt(s,this,w)})}function H8(s,l,f){var g=!0,w=!0;if(typeof s!="function")throw new fn(a);return st(f)&&(g="leading"in f?!!f.leading:g,w="trailing"in f?!!f.trailing:w),JS(s,l,{leading:g,maxWait:l,trailing:w})}function q8(s){return HS(s,1)}function K8(s,l){return bm(im(l),s)}function X8(){if(!arguments.length)return[];var s=arguments[0];return Me(s)?s:[s]}function Z8(s){return hn(s,v)}function J8(s,l){return l=typeof l=="function"?l:n,hn(s,v,l)}function Q8(s){return hn(s,m|v)}function eB(s,l){return l=typeof l=="function"?l:n,hn(s,m|v,l)}function tB(s,l){return l==null||Vw(s,l,gt(l))}function En(s,l){return s===l||s!==s&&l!==l}var nB=ec(Yh),rB=ec(function(s,l){return s>=l}),Li=Yw(function(){return arguments}())?Yw:function(s){return ot(s)&&ze.call(s,"callee")&&!$w.call(s,"callee")},Me=W.isArray,iB=hw?Xt(hw):dF;function Bt(s){return s!=null&&cc(s.length)&&!ur(s)}function ct(s){return ot(s)&&Bt(s)}function sB(s){return s===!0||s===!1||ot(s)&&It(s)==re}var Zr=xj||Im,oB=mw?Xt(mw):hF;function aB(s){return ot(s)&&s.nodeType===1&&!Qo(s)}function lB(s){if(s==null)return!0;if(Bt(s)&&(Me(s)||typeof s=="string"||typeof s.splice=="function"||Zr(s)||Rs(s)||Li(s)))return!s.length;var l=Mt(s);if(l==De||l==qt)return!s.size;if(Zo(s))return!Kh(s).length;for(var f in s)if(ze.call(s,f))return!1;return!0}function cB(s,l){return qo(s,l)}function uB(s,l,f){f=typeof f=="function"?f:n;var g=f?f(s,l):n;return g===n?qo(s,l,n,f):!!g}function wm(s){if(!ot(s))return!1;var l=It(s);return l==Ve||l==Ce||typeof s.message=="string"&&typeof s.name=="string"&&!Qo(s)}function fB(s){return typeof s=="number"&&Nw(s)}function ur(s){if(!st(s))return!1;var l=It(s);return l==ie||l==pe||l==oe||l==wl}function eT(s){return typeof s=="number"&&s==Oe(s)}function cc(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 tT=pw?Xt(pw):pF;function dB(s,l){return s===l||qh(s,l,fm(l))}function hB(s,l,f){return f=typeof f=="function"?f:n,qh(s,l,fm(l),f)}function mB(s){return nT(s)&&s!=+s}function pB(s){if(JF(s))throw new Ae(o);return Hw(s)}function gB(s){return s===null}function yB(s){return s==null}function nT(s){return typeof s=="number"||ot(s)&&It(s)==ft}function Qo(s){if(!ot(s)||It(s)!=dt)return!1;var l=Ll(s);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&$l.call(f)==hj}var Sm=gw?Xt(gw):gF;function vB(s){return eT(s)&&s>=-9007199254740991&&s<=U}var rT=yw?Xt(yw):yF;function uc(s){return typeof s=="string"||!Me(s)&&ot(s)&&It(s)==bn}function Jt(s){return typeof s=="symbol"||ot(s)&&It(s)==Ai}var Rs=vw?Xt(vw):vF;function xB(s){return s===n}function bB(s){return ot(s)&&Mt(s)==Wr}function wB(s){return ot(s)&&It(s)==Tl}var SB=ec(Xh),TB=ec(function(s,l){return s<=l});function iT(s){if(!s)return[];if(Bt(s))return uc(s)?Sn(s):Vt(s);if(Vo&&s[Vo])return tj(s[Vo]());var l=Mt(s),f=l==De?Rh:l==qt?Ol:js;return f(s)}function fr(s){if(!s)return s===0?s:0;if(s=gn(s),s===Y||s===-1/0){var l=s<0?-1:1;return l*V}return s===s?s:0}function Oe(s){var l=fr(s),f=l%1;return l===l?f?l-f:l:0}function sT(s){return s?$i(Oe(s),0,k):0}function gn(s){if(typeof s=="number")return s;if(Jt(s))return O;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=Ew(s);var f=iR.test(s);return f||oR.test(s)?jR(s.slice(2),f?2:8):rR.test(s)?O:+s}function oT(s){return zn(s,Wt(s))}function EB(s){return s?$i(Oe(s),-9007199254740991,U):s===0?s:0}function Be(s){return s==null?"":Zt(s)}var CB=Ns(function(s,l){if(Zo(l)||Bt(l)){zn(l,gt(l),s);return}for(var f in l)ze.call(l,f)&&Go(s,f,l[f])}),aT=Ns(function(s,l){zn(l,Wt(l),s)}),fc=Ns(function(s,l,f,g){zn(l,Wt(l),s,g)}),PB=Ns(function(s,l,f,g){zn(l,gt(l),s,g)}),AB=lr(Uh);function MB(s,l){var f=Ds(s);return l==null?f:Fw(f,l)}var OB=Ie(function(s,l){s=Ye(s);var f=-1,g=l.length,w=g>2?l[2]:n;for(w&&$t(l[0],l[1],w)&&(g=1);++f<g;)for(var M=l[f],I=Wt(M),N=-1,j=I.length;++N<j;){var H=I[N],q=s[H];(q===n||En(q,_s[H])&&!ze.call(s,H))&&(s[H]=M[H])}return s}),_B=Ie(function(s){return s.push(n,ES),Kt(lT,n,s)});function IB(s,l){return bw(s,be(l,3),Un)}function $B(s,l){return bw(s,be(l,3),Gh)}function DB(s,l){return s==null?s:zh(s,be(l,3),Wt)}function NB(s,l){return s==null?s:zw(s,be(l,3),Wt)}function kB(s,l){return s&&Un(s,be(l,3))}function LB(s,l){return s&&Gh(s,be(l,3))}function RB(s){return s==null?[]:Yl(s,gt(s))}function jB(s){return s==null?[]:Yl(s,Wt(s))}function Tm(s,l,f){var g=s==null?n:Di(s,l);return g===n?f:g}function FB(s,l){return s!=null&&AS(s,l,lF)}function Em(s,l){return s!=null&&AS(s,l,cF)}var VB=xS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),s[l]=f},Pm(Ut)),BB=xS(function(s,l,f){l!=null&&typeof l.toString!="function"&&(l=Dl.call(l)),ze.call(s,l)?s[l].push(f):s[l]=[f]},be),WB=Ie(Ho);function gt(s){return Bt(s)?Rw(s):Kh(s)}function Wt(s){return Bt(s)?Rw(s,!0):xF(s)}function UB(s,l){var f={};return l=be(l,3),Un(s,function(g,w,M){or(f,l(g,w,M),g)}),f}function zB(s,l){var f={};return l=be(l,3),Un(s,function(g,w,M){or(f,w,l(g,w,M))}),f}var GB=Ns(function(s,l,f){Hl(s,l,f)}),lT=Ns(function(s,l,f,g){Hl(s,l,f,g)}),YB=lr(function(s,l){var f={};if(s==null)return f;var g=!1;l=et(l,function(M){return M=Kr(M,s),g||(g=M.length>1),M}),zn(s,cm(s),f),g&&(f=hn(f,m|p|v,VF));for(var w=l.length;w--;)tm(f,l[w]);return f});function HB(s,l){return cT(s,lc(be(l)))}var qB=lr(function(s,l){return s==null?{}:wF(s,l)});function cT(s,l){if(s==null)return{};var f=et(cm(s),function(g){return[g]});return l=be(l),eS(s,f,function(g,w){return l(g,w[0])})}function KB(s,l,f){l=Kr(l,s);var g=-1,w=l.length;for(w||(w=1,s=n);++g<w;){var M=s==null?n:s[Gn(l[g])];M===n&&(g=w,M=f),s=ur(M)?M.call(s):M}return s}function XB(s,l,f){return s==null?s:Ko(s,l,f)}function ZB(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:Ko(s,l,f,g)}var uT=SS(gt),fT=SS(Wt);function JB(s,l,f){var g=Me(s),w=g||Zr(s)||Rs(s);if(l=be(l,4),f==null){var M=s&&s.constructor;w?f=g?new M:[]:st(s)?f=ur(M)?Ds(Ll(s)):{}:f={}}return(w?un:Un)(s,function(I,N,j){return l(f,I,N,j)}),f}function QB(s,l){return s==null?!0:tm(s,l)}function e9(s,l,f){return s==null?s:sS(s,l,im(f))}function t9(s,l,f,g){return g=typeof g=="function"?g:n,s==null?s:sS(s,l,im(f),g)}function js(s){return s==null?[]:Lh(s,gt(s))}function n9(s){return s==null?[]:Lh(s,Wt(s))}function r9(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),$i(gn(s),l,f)}function i9(s,l,f){return l=fr(l),f===n?(f=l,l=0):f=fr(f),s=gn(s),uF(s,l,f)}function s9(s,l,f){if(f&&typeof f!="boolean"&&$t(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 g=s;s=l,l=g}if(f||s%1||l%1){var w=kw();return At(s+w*(l-s+RR("1e-"+((w+"").length-1))),l)}return Jh(s,l)}var o9=ks(function(s,l,f){return l=l.toLowerCase(),s+(f?dT(l):l)});function dT(s){return Cm(Be(s).toLowerCase())}function hT(s){return s=Be(s),s&&s.replace(lR,XR).replace(AR,"")}function a9(s,l,f){s=Be(s),l=Zt(l);var g=s.length;f=f===n?g:$i(Oe(f),0,g);var w=f;return f-=l.length,f>=0&&s.slice(f,w)==l}function l9(s){return s=Be(s),s&&WL.test(s)?s.replace(z2,ZR):s}function c9(s){return s=Be(s),s&&qL.test(s)?s.replace(bh,"\\$&"):s}var u9=ks(function(s,l,f){return s+(f?"-":"")+l.toLowerCase()}),f9=ks(function(s,l,f){return s+(f?" ":"")+l.toLowerCase()}),d9=gS("toLowerCase");function h9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;if(!l||g>=l)return s;var w=(l-g)/2;return Ql(Vl(w),f)+s+Ql(Fl(w),f)}function m9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?s+Ql(l-g,f):s}function p9(s,l,f){s=Be(s),l=Oe(l);var g=l?Ms(s):0;return l&&g<l?Ql(l-g,f)+s:s}function g9(s,l,f){return f||l==null?l=0:l&&(l=+l),Tj(Be(s).replace(wh,""),l||0)}function y9(s,l,f){return(f?$t(s,l,f):l===n)?l=1:l=Oe(l),Qh(Be(s),l)}function v9(){var s=arguments,l=Be(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var x9=ks(function(s,l,f){return s+(f?"_":"")+l.toLowerCase()});function b9(s,l,f){return f&&typeof f!="number"&&$t(s,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(s=Be(s),s&&(typeof l=="string"||l!=null&&!Sm(l))&&(l=Zt(l),!l&&As(s))?Xr(Sn(s),0,f):s.split(l,f)):[]}var w9=ks(function(s,l,f){return s+(f?" ":"")+Cm(l)});function S9(s,l,f){return s=Be(s),f=f==null?0:$i(Oe(f),0,s.length),l=Zt(l),s.slice(f,f+l.length)==l}function T9(s,l,f){var g=P.templateSettings;f&&$t(s,l,f)&&(l=n),s=Be(s),l=fc({},l,g,TS);var w=fc({},l.imports,g.imports,TS),M=gt(w),I=Lh(w,M),N,j,H=0,q=l.interpolate||El,X="__p += '",ue=jh((l.escape||El).source+"|"+q.source+"|"+(q===G2?nR:El).source+"|"+(l.evaluate||El).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$R+"]")+`
|
|
635
|
+
`;s.replace(ue,function(Ee,Ne,Le,Qt,Dt,en){return Le||(Le=Qt),X+=s.slice(H,en).replace(cR,JR),Ne&&(N=!0,X+=`' +
|
|
636
636
|
__e(`+Ne+`) +
|
|
637
|
-
'`),Dt&&(
|
|
637
|
+
'`),Dt&&(j=!0,X+=`';
|
|
638
638
|
`+Dt+`;
|
|
639
639
|
__p += '`),Le&&(X+=`' +
|
|
640
640
|
((__t = (`+Le+`)) == null ? '' : __t) +
|
|
@@ -642,32 +642,32 @@ __p += '`),Le&&(X+=`' +
|
|
|
642
642
|
`;var Te=ze.call(l,"variable")&&l.variable;if(!Te)X=`with (obj) {
|
|
643
643
|
`+X+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(eR.test(Te))throw new Ae(c);X=(
|
|
645
|
+
`;else if(eR.test(Te))throw new Ae(c);X=(j?X.replace(jL,""):X).replace(FL,"$1").replace(VL,"$1;"),X="function("+(Te||"obj")+`) {
|
|
646
646
|
`+(Te?"":`obj || (obj = {});
|
|
647
|
-
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(
|
|
647
|
+
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
650
|
`)+X+`return __p
|
|
651
|
-
}`;var _e=pT(function(){return Re(M,ye+"return "+X).apply(n,I)});if(_e.source=X,wm(_e))throw _e;return _e}function E9(s){return Be(s).toLowerCase()}function C9(s){return Be(s).toUpperCase()}function P9(s,l,d){if(s=Be(s),s&&(d||l===n))return Ew(s);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Sn(l),M=Cw(g,w),I=Pw(g,w)+1;return Xr(g,M,I).join("")}function A9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.slice(0,Mw(s)+1);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Pw(g,Sn(l))+1;return Xr(g,0,w).join("")}function M9(s,l,d){if(s=Be(s),s&&(d||l===n))return s.replace(wh,"");if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Cw(g,Sn(l));return Xr(g,w).join("")}function O9(s,l){var d=Z,g=ee;if(st(l)){var w="separator"in l?l.separator:w;d="length"in l?Oe(l.length):d,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(As(s)){var I=Sn(s);M=I.length}if(d>=M)return s;var N=d-Ms(g);if(N<1)return g;var R=I?Xr(I,0,N).join(""):s.slice(0,N);if(w===n)return R+g;if(I&&(N+=R.length-N),Sm(w)){if(s.slice(N).search(w)){var H,q=R;for(w.global||(w=jh(w.source,Be(Y2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var X=H.index;R=R.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(w),N)!=N){var ce=R.lastIndexOf(w);ce>-1&&(R=R.slice(0,ce))}return R+g}function _9(s){return s=Be(s),s&&BL.test(s)?s.replace(U2,sj):s}var I9=ks(function(s,l,d){return s+(d?" ":"")+l.toUpperCase()}),Cm=gS("toUpperCase");function mT(s,l,d){return s=Be(s),l=d?n:l,l===n?ej(s)?lj(s):GR(s):s.match(l)||[]}var pT=Ie(function(s,l){try{return Kt(s,n,l)}catch(d){return wm(d)?d:new Ae(d)}}),$9=lr(function(s,l){return un(l,function(d){d=Gn(d),or(s,d,xm(s[d],s))}),s});function D9(s){var l=s==null?0:s.length,d=be();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[d(g[0]),g[1]]}):[],Ie(function(g){for(var w=-1;++w<l;){var M=s[w];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function N9(s){return sF(hn(s,m))}function Pm(s){return function(){return s}}function k9(s,l){return s==null||s!==s?l:s}var L9=vS(),R9=vS(!0);function Ut(s){return s}function Am(s){return qw(typeof s=="function"?s:hn(s,m))}function j9(s){return Xw(hn(s,m))}function F9(s,l){return Zw(s,hn(l,m))}var V9=Ie(function(s,l){return function(d){return Ho(d,s,l)}}),B9=Ie(function(s,l){return function(d){return Ho(s,d,l)}});function Mm(s,l,d){var g=gt(l),w=Yl(l,g);d==null&&!(st(l)&&(w.length||!g.length))&&(d=l,l=s,s=this,w=Yl(l,gt(l)));var M=!(st(d)&&"chain"in d)||!!d.chain,I=ur(s);return un(w,function(N){var R=l[N];s[N]=R,I&&(s.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:R,args:arguments,thisArg:s}),q.__chain__=H,q}return R.apply(s,zr([this.value()],arguments))})}),s}function W9(){return xt._===this&&(xt._=mj),this}function Om(){}function U9(s){return s=Oe(s),Ie(function(l){return Jw(l,s)})}var z9=om(et),G9=om(xw),Y9=om(Ih);function gT(s){return hm(s)?$h(Gn(s)):SF(s)}function H9(s){return function(l){return s==null?n:Di(s,l)}}var q9=bS(),K9=bS(!0);function _m(){return[]}function Im(){return!1}function X9(){return{}}function Z9(){return""}function J9(){return!0}function Q9(s,l){if(s=Oe(s),s<1||s>B)return[];var d=k,g=At(s,k);l=be(l),s-=k;for(var w=kh(g,l);++d<s;)l(d);return w}function e7(s){return Me(s)?et(s,Gn):Jt(s)?[s]:Vt(LS(Be(s)))}function t7(s){var l=++dj;return Be(s)+l}var n7=Jl(function(s,l){return s+l},0),r7=am("ceil"),i7=Jl(function(s,l){return s/l},1),s7=am("floor");function o7(s){return s&&s.length?Gl(s,Ut,Yh):n}function a7(s,l){return s&&s.length?Gl(s,be(l,2),Yh):n}function l7(s){return Sw(s,Ut)}function c7(s,l){return Sw(s,be(l,2))}function u7(s){return s&&s.length?Gl(s,Ut,Xh):n}function f7(s,l){return s&&s.length?Gl(s,be(l,2),Xh):n}var d7=Jl(function(s,l){return s*l},1),h7=am("round"),m7=Jl(function(s,l){return s-l},0);function p7(s){return s&&s.length?Nh(s,Ut):0}function g7(s,l){return s&&s.length?Nh(s,be(l,2)):0}return A.after=j8,A.ary=HS,A.assign=CB,A.assignIn=aT,A.assignInWith=fc,A.assignWith=PB,A.at=AB,A.before=qS,A.bind=xm,A.bindAll=$9,A.bindKey=KS,A.castArray=X8,A.chain=zS,A.chunk=sV,A.compact=oV,A.concat=aV,A.cond=D9,A.conforms=N9,A.constant=Pm,A.countBy=p8,A.create=MB,A.curry=XS,A.curryRight=ZS,A.debounce=JS,A.defaults=OB,A.defaultsDeep=_B,A.defer=F8,A.delay=V8,A.difference=lV,A.differenceBy=cV,A.differenceWith=uV,A.drop=fV,A.dropRight=dV,A.dropRightWhile=hV,A.dropWhile=mV,A.fill=pV,A.filter=y8,A.flatMap=b8,A.flatMapDeep=w8,A.flatMapDepth=S8,A.flatten=VS,A.flattenDeep=gV,A.flattenDepth=yV,A.flip=B8,A.flow=L9,A.flowRight=R9,A.fromPairs=vV,A.functions=RB,A.functionsIn=jB,A.groupBy=T8,A.initial=bV,A.intersection=wV,A.intersectionBy=SV,A.intersectionWith=TV,A.invert=VB,A.invertBy=BB,A.invokeMap=C8,A.iteratee=Am,A.keyBy=P8,A.keys=gt,A.keysIn=Wt,A.map=sc,A.mapKeys=UB,A.mapValues=zB,A.matches=j9,A.matchesProperty=F9,A.memoize=ac,A.merge=GB,A.mergeWith=lT,A.method=V9,A.methodOf=B9,A.mixin=Mm,A.negate=lc,A.nthArg=U9,A.omit=YB,A.omitBy=HB,A.once=W8,A.orderBy=A8,A.over=z9,A.overArgs=U8,A.overEvery=G9,A.overSome=Y9,A.partial=bm,A.partialRight=QS,A.partition=M8,A.pick=qB,A.pickBy=cT,A.property=gT,A.propertyOf=H9,A.pull=AV,A.pullAll=WS,A.pullAllBy=MV,A.pullAllWith=OV,A.pullAt=_V,A.range=q9,A.rangeRight=K9,A.rearg=z8,A.reject=I8,A.remove=IV,A.rest=G8,A.reverse=ym,A.sampleSize=D8,A.set=XB,A.setWith=ZB,A.shuffle=N8,A.slice=$V,A.sortBy=R8,A.sortedUniq=FV,A.sortedUniqBy=VV,A.split=b9,A.spread=Y8,A.tail=BV,A.take=WV,A.takeRight=UV,A.takeRightWhile=zV,A.takeWhile=GV,A.tap=o8,A.throttle=H8,A.thru=ic,A.toArray=iT,A.toPairs=uT,A.toPairsIn=fT,A.toPath=e7,A.toPlainObject=oT,A.transform=JB,A.unary=q8,A.union=YV,A.unionBy=HV,A.unionWith=qV,A.uniq=KV,A.uniqBy=XV,A.uniqWith=ZV,A.unset=QB,A.unzip=vm,A.unzipWith=US,A.update=e9,A.updateWith=t9,A.values=js,A.valuesIn=n9,A.without=JV,A.words=mT,A.wrap=K8,A.xor=QV,A.xorBy=e8,A.xorWith=t8,A.zip=n8,A.zipObject=r8,A.zipObjectDeep=i8,A.zipWith=s8,A.entries=uT,A.entriesIn=fT,A.extend=aT,A.extendWith=fc,Mm(A,A),A.add=n7,A.attempt=pT,A.camelCase=o9,A.capitalize=dT,A.ceil=r7,A.clamp=r9,A.clone=Z8,A.cloneDeep=Q8,A.cloneDeepWith=eB,A.cloneWith=J8,A.conformsTo=tB,A.deburr=hT,A.defaultTo=k9,A.divide=i7,A.endsWith=a9,A.eq=En,A.escape=l9,A.escapeRegExp=c9,A.every=g8,A.find=v8,A.findIndex=jS,A.findKey=IB,A.findLast=x8,A.findLastIndex=FS,A.findLastKey=$B,A.floor=s7,A.forEach=GS,A.forEachRight=YS,A.forIn=DB,A.forInRight=NB,A.forOwn=kB,A.forOwnRight=LB,A.get=Tm,A.gt=nB,A.gte=rB,A.has=FB,A.hasIn=Em,A.head=BS,A.identity=Ut,A.includes=E8,A.indexOf=xV,A.inRange=i9,A.invoke=WB,A.isArguments=Li,A.isArray=Me,A.isArrayBuffer=iB,A.isArrayLike=Bt,A.isArrayLikeObject=ct,A.isBoolean=sB,A.isBuffer=Zr,A.isDate=oB,A.isElement=aB,A.isEmpty=lB,A.isEqual=cB,A.isEqualWith=uB,A.isError=wm,A.isFinite=fB,A.isFunction=ur,A.isInteger=eT,A.isLength=cc,A.isMap=tT,A.isMatch=dB,A.isMatchWith=hB,A.isNaN=mB,A.isNative=pB,A.isNil=yB,A.isNull=gB,A.isNumber=nT,A.isObject=st,A.isObjectLike=ot,A.isPlainObject=Qo,A.isRegExp=Sm,A.isSafeInteger=vB,A.isSet=rT,A.isString=uc,A.isSymbol=Jt,A.isTypedArray=Rs,A.isUndefined=xB,A.isWeakMap=bB,A.isWeakSet=wB,A.join=EV,A.kebabCase=u9,A.last=pn,A.lastIndexOf=CV,A.lowerCase=f9,A.lowerFirst=d9,A.lt=SB,A.lte=TB,A.max=o7,A.maxBy=a7,A.mean=l7,A.meanBy=c7,A.min=u7,A.minBy=f7,A.stubArray=_m,A.stubFalse=Im,A.stubObject=X9,A.stubString=Z9,A.stubTrue=J9,A.multiply=d7,A.nth=PV,A.noConflict=W9,A.noop=Om,A.now=oc,A.pad=h9,A.padEnd=m9,A.padStart=p9,A.parseInt=g9,A.random=s9,A.reduce=O8,A.reduceRight=_8,A.repeat=y9,A.replace=v9,A.result=KB,A.round=h7,A.runInContext=L,A.sample=$8,A.size=k8,A.snakeCase=x9,A.some=L8,A.sortedIndex=DV,A.sortedIndexBy=NV,A.sortedIndexOf=kV,A.sortedLastIndex=LV,A.sortedLastIndexBy=RV,A.sortedLastIndexOf=jV,A.startCase=w9,A.startsWith=S9,A.subtract=m7,A.sum=p7,A.sumBy=g7,A.template=T9,A.times=Q9,A.toFinite=fr,A.toInteger=Oe,A.toLength=sT,A.toLower=E9,A.toNumber=gn,A.toSafeInteger=EB,A.toString=Be,A.toUpper=C9,A.trim=P9,A.trimEnd=A9,A.trimStart=M9,A.truncate=O9,A.unescape=_9,A.uniqueId=t7,A.upperCase=I9,A.upperFirst=Cm,A.each=GS,A.eachRight=YS,A.first=BS,Mm(A,function(){var s={};return Un(A,function(l,d){ze.call(A.prototype,d)||(s[d]=l)}),s}(),{chain:!1}),A.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){A[s].placeholder=A}),un(["drop","take"],function(s,l){ke.prototype[s]=function(d){d=d===n?1:mt(Oe(d),0);var g=this.__filtered__&&!l?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=At(d,g.__takeCount__):g.__views__.push({size:At(d,k),type:s+(g.__dir__<0?"Right":"")}),g},ke.prototype[s+"Right"]=function(d){return this.reverse()[s](d).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var d=l+1,g=d==ue||d==he;ke.prototype[s]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:d}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var d="take"+(l?"Right":"");ke.prototype[s]=function(){return this[d](1).value()[0]}}),un(["initial","tail"],function(s,l){var d="drop"+(l?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[d](1)}}),ke.prototype.compact=function(){return this.filter(Ut)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new ke(this):this.map(function(d){return Ho(d,s,l)})}),ke.prototype.reject=function(s){return this.filter(lc(be(s)))},ke.prototype.slice=function(s,l){s=Oe(s);var d=this;return d.__filtered__&&(s>0||l<0)?new ke(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),l!==n&&(l=Oe(l),d=l<0?d.dropRight(-l):d.take(l-s)),d)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(k)},Un(ke.prototype,function(s,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=A[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);w&&(A.prototype[l]=function(){var I=this.__wrapped__,N=g?[1]:arguments,R=I instanceof ke,H=N[0],q=R||Me(I),X=function(Ne){var Le=w.apply(A,zr([Ne],N));return g&&ce?Le[0]:Le};q&&d&&typeof H=="function"&&H.length!=1&&(R=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,_e=R&&!ye;if(!M&&q){I=_e?I:new ke(this);var Ee=s.apply(I,N);return Ee.__actions__.push({func:ic,args:[X],thisArg:n}),new dn(Ee,ce)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=_l[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);A.prototype[s]=function(){var w=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[d](function(I){return l.apply(Me(I)?I:[],w)})}}),Un(ke.prototype,function(s,l){var d=A[l];if(d){var g=d.name+"";ze.call($s,g)||($s[g]=[]),$s[g].push({name:l,func:d})}}),$s[Zl(n,b).name]=[{name:"wrapper",func:n}],ke.prototype.clone=_j,ke.prototype.reverse=Ij,ke.prototype.value=$j,A.prototype.at=a8,A.prototype.chain=l8,A.prototype.commit=c8,A.prototype.next=u8,A.prototype.plant=d8,A.prototype.reverse=h8,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=m8,A.prototype.first=A.prototype.head,Vo&&(A.prototype[Vo]=f8),A},Os=cj();Mi?((Mi.exports=Os)._=Os,Ah._=Os):xt._=Os}).call(vI)}(po,po.exports)),po.exports}var vf=xI();const xf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wf=typeof window<"u",Mv=wf?_.useLayoutEffect:_.useEffect,Ra=_.createContext(null),Sf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class bI extends Q.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 wI({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(Sf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:f,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
651
|
+
}`;var _e=pT(function(){return Re(M,ye+"return "+X).apply(n,I)});if(_e.source=X,wm(_e))throw _e;return _e}function E9(s){return Be(s).toLowerCase()}function C9(s){return Be(s).toUpperCase()}function P9(s,l,f){if(s=Be(s),s&&(f||l===n))return Ew(s);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Sn(l),M=Cw(g,w),I=Pw(g,w)+1;return Xr(g,M,I).join("")}function A9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.slice(0,Mw(s)+1);if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Pw(g,Sn(l))+1;return Xr(g,0,w).join("")}function M9(s,l,f){if(s=Be(s),s&&(f||l===n))return s.replace(wh,"");if(!s||!(l=Zt(l)))return s;var g=Sn(s),w=Cw(g,Sn(l));return Xr(g,w).join("")}function O9(s,l){var f=Z,g=ee;if(st(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,g="omission"in l?Zt(l.omission):g}s=Be(s);var M=s.length;if(As(s)){var I=Sn(s);M=I.length}if(f>=M)return s;var N=f-Ms(g);if(N<1)return g;var j=I?Xr(I,0,N).join(""):s.slice(0,N);if(w===n)return j+g;if(I&&(N+=j.length-N),Sm(w)){if(s.slice(N).search(w)){var H,q=j;for(w.global||(w=jh(w.source,Be(Y2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var X=H.index;j=j.slice(0,X===n?N:X)}}else if(s.indexOf(Zt(w),N)!=N){var ue=j.lastIndexOf(w);ue>-1&&(j=j.slice(0,ue))}return j+g}function _9(s){return s=Be(s),s&&BL.test(s)?s.replace(U2,sj):s}var I9=ks(function(s,l,f){return s+(f?" ":"")+l.toUpperCase()}),Cm=gS("toUpperCase");function mT(s,l,f){return s=Be(s),l=f?n:l,l===n?ej(s)?lj(s):GR(s):s.match(l)||[]}var pT=Ie(function(s,l){try{return Kt(s,n,l)}catch(f){return wm(f)?f:new Ae(f)}}),$9=lr(function(s,l){return un(l,function(f){f=Gn(f),or(s,f,xm(s[f],s))}),s});function D9(s){var l=s==null?0:s.length,f=be();return s=l?et(s,function(g){if(typeof g[1]!="function")throw new fn(a);return[f(g[0]),g[1]]}):[],Ie(function(g){for(var w=-1;++w<l;){var M=s[w];if(Kt(M[0],this,g))return Kt(M[1],this,g)}})}function N9(s){return sF(hn(s,m))}function Pm(s){return function(){return s}}function k9(s,l){return s==null||s!==s?l:s}var L9=vS(),R9=vS(!0);function Ut(s){return s}function Am(s){return qw(typeof s=="function"?s:hn(s,m))}function j9(s){return Xw(hn(s,m))}function F9(s,l){return Zw(s,hn(l,m))}var V9=Ie(function(s,l){return function(f){return Ho(f,s,l)}}),B9=Ie(function(s,l){return function(f){return Ho(s,f,l)}});function Mm(s,l,f){var g=gt(l),w=Yl(l,g);f==null&&!(st(l)&&(w.length||!g.length))&&(f=l,l=s,s=this,w=Yl(l,gt(l)));var M=!(st(f)&&"chain"in f)||!!f.chain,I=ur(s);return un(w,function(N){var j=l[N];s[N]=j,I&&(s.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=s(this.__wrapped__),X=q.__actions__=Vt(this.__actions__);return X.push({func:j,args:arguments,thisArg:s}),q.__chain__=H,q}return j.apply(s,zr([this.value()],arguments))})}),s}function W9(){return xt._===this&&(xt._=mj),this}function Om(){}function U9(s){return s=Oe(s),Ie(function(l){return Jw(l,s)})}var z9=om(et),G9=om(xw),Y9=om(Ih);function gT(s){return hm(s)?$h(Gn(s)):SF(s)}function H9(s){return function(l){return s==null?n:Di(s,l)}}var q9=bS(),K9=bS(!0);function _m(){return[]}function Im(){return!1}function X9(){return{}}function Z9(){return""}function J9(){return!0}function Q9(s,l){if(s=Oe(s),s<1||s>U)return[];var f=k,g=At(s,k);l=be(l),s-=k;for(var w=kh(g,l);++f<s;)l(f);return w}function e7(s){return Me(s)?et(s,Gn):Jt(s)?[s]:Vt(LS(Be(s)))}function t7(s){var l=++dj;return Be(s)+l}var n7=Jl(function(s,l){return s+l},0),r7=am("ceil"),i7=Jl(function(s,l){return s/l},1),s7=am("floor");function o7(s){return s&&s.length?Gl(s,Ut,Yh):n}function a7(s,l){return s&&s.length?Gl(s,be(l,2),Yh):n}function l7(s){return Sw(s,Ut)}function c7(s,l){return Sw(s,be(l,2))}function u7(s){return s&&s.length?Gl(s,Ut,Xh):n}function f7(s,l){return s&&s.length?Gl(s,be(l,2),Xh):n}var d7=Jl(function(s,l){return s*l},1),h7=am("round"),m7=Jl(function(s,l){return s-l},0);function p7(s){return s&&s.length?Nh(s,Ut):0}function g7(s,l){return s&&s.length?Nh(s,be(l,2)):0}return P.after=j8,P.ary=HS,P.assign=CB,P.assignIn=aT,P.assignInWith=fc,P.assignWith=PB,P.at=AB,P.before=qS,P.bind=xm,P.bindAll=$9,P.bindKey=KS,P.castArray=X8,P.chain=zS,P.chunk=sV,P.compact=oV,P.concat=aV,P.cond=D9,P.conforms=N9,P.constant=Pm,P.countBy=p8,P.create=MB,P.curry=XS,P.curryRight=ZS,P.debounce=JS,P.defaults=OB,P.defaultsDeep=_B,P.defer=F8,P.delay=V8,P.difference=lV,P.differenceBy=cV,P.differenceWith=uV,P.drop=fV,P.dropRight=dV,P.dropRightWhile=hV,P.dropWhile=mV,P.fill=pV,P.filter=y8,P.flatMap=b8,P.flatMapDeep=w8,P.flatMapDepth=S8,P.flatten=VS,P.flattenDeep=gV,P.flattenDepth=yV,P.flip=B8,P.flow=L9,P.flowRight=R9,P.fromPairs=vV,P.functions=RB,P.functionsIn=jB,P.groupBy=T8,P.initial=bV,P.intersection=wV,P.intersectionBy=SV,P.intersectionWith=TV,P.invert=VB,P.invertBy=BB,P.invokeMap=C8,P.iteratee=Am,P.keyBy=P8,P.keys=gt,P.keysIn=Wt,P.map=sc,P.mapKeys=UB,P.mapValues=zB,P.matches=j9,P.matchesProperty=F9,P.memoize=ac,P.merge=GB,P.mergeWith=lT,P.method=V9,P.methodOf=B9,P.mixin=Mm,P.negate=lc,P.nthArg=U9,P.omit=YB,P.omitBy=HB,P.once=W8,P.orderBy=A8,P.over=z9,P.overArgs=U8,P.overEvery=G9,P.overSome=Y9,P.partial=bm,P.partialRight=QS,P.partition=M8,P.pick=qB,P.pickBy=cT,P.property=gT,P.propertyOf=H9,P.pull=AV,P.pullAll=WS,P.pullAllBy=MV,P.pullAllWith=OV,P.pullAt=_V,P.range=q9,P.rangeRight=K9,P.rearg=z8,P.reject=I8,P.remove=IV,P.rest=G8,P.reverse=ym,P.sampleSize=D8,P.set=XB,P.setWith=ZB,P.shuffle=N8,P.slice=$V,P.sortBy=R8,P.sortedUniq=FV,P.sortedUniqBy=VV,P.split=b9,P.spread=Y8,P.tail=BV,P.take=WV,P.takeRight=UV,P.takeRightWhile=zV,P.takeWhile=GV,P.tap=o8,P.throttle=H8,P.thru=ic,P.toArray=iT,P.toPairs=uT,P.toPairsIn=fT,P.toPath=e7,P.toPlainObject=oT,P.transform=JB,P.unary=q8,P.union=YV,P.unionBy=HV,P.unionWith=qV,P.uniq=KV,P.uniqBy=XV,P.uniqWith=ZV,P.unset=QB,P.unzip=vm,P.unzipWith=US,P.update=e9,P.updateWith=t9,P.values=js,P.valuesIn=n9,P.without=JV,P.words=mT,P.wrap=K8,P.xor=QV,P.xorBy=e8,P.xorWith=t8,P.zip=n8,P.zipObject=r8,P.zipObjectDeep=i8,P.zipWith=s8,P.entries=uT,P.entriesIn=fT,P.extend=aT,P.extendWith=fc,Mm(P,P),P.add=n7,P.attempt=pT,P.camelCase=o9,P.capitalize=dT,P.ceil=r7,P.clamp=r9,P.clone=Z8,P.cloneDeep=Q8,P.cloneDeepWith=eB,P.cloneWith=J8,P.conformsTo=tB,P.deburr=hT,P.defaultTo=k9,P.divide=i7,P.endsWith=a9,P.eq=En,P.escape=l9,P.escapeRegExp=c9,P.every=g8,P.find=v8,P.findIndex=jS,P.findKey=IB,P.findLast=x8,P.findLastIndex=FS,P.findLastKey=$B,P.floor=s7,P.forEach=GS,P.forEachRight=YS,P.forIn=DB,P.forInRight=NB,P.forOwn=kB,P.forOwnRight=LB,P.get=Tm,P.gt=nB,P.gte=rB,P.has=FB,P.hasIn=Em,P.head=BS,P.identity=Ut,P.includes=E8,P.indexOf=xV,P.inRange=i9,P.invoke=WB,P.isArguments=Li,P.isArray=Me,P.isArrayBuffer=iB,P.isArrayLike=Bt,P.isArrayLikeObject=ct,P.isBoolean=sB,P.isBuffer=Zr,P.isDate=oB,P.isElement=aB,P.isEmpty=lB,P.isEqual=cB,P.isEqualWith=uB,P.isError=wm,P.isFinite=fB,P.isFunction=ur,P.isInteger=eT,P.isLength=cc,P.isMap=tT,P.isMatch=dB,P.isMatchWith=hB,P.isNaN=mB,P.isNative=pB,P.isNil=yB,P.isNull=gB,P.isNumber=nT,P.isObject=st,P.isObjectLike=ot,P.isPlainObject=Qo,P.isRegExp=Sm,P.isSafeInteger=vB,P.isSet=rT,P.isString=uc,P.isSymbol=Jt,P.isTypedArray=Rs,P.isUndefined=xB,P.isWeakMap=bB,P.isWeakSet=wB,P.join=EV,P.kebabCase=u9,P.last=pn,P.lastIndexOf=CV,P.lowerCase=f9,P.lowerFirst=d9,P.lt=SB,P.lte=TB,P.max=o7,P.maxBy=a7,P.mean=l7,P.meanBy=c7,P.min=u7,P.minBy=f7,P.stubArray=_m,P.stubFalse=Im,P.stubObject=X9,P.stubString=Z9,P.stubTrue=J9,P.multiply=d7,P.nth=PV,P.noConflict=W9,P.noop=Om,P.now=oc,P.pad=h9,P.padEnd=m9,P.padStart=p9,P.parseInt=g9,P.random=s9,P.reduce=O8,P.reduceRight=_8,P.repeat=y9,P.replace=v9,P.result=KB,P.round=h7,P.runInContext=L,P.sample=$8,P.size=k8,P.snakeCase=x9,P.some=L8,P.sortedIndex=DV,P.sortedIndexBy=NV,P.sortedIndexOf=kV,P.sortedLastIndex=LV,P.sortedLastIndexBy=RV,P.sortedLastIndexOf=jV,P.startCase=w9,P.startsWith=S9,P.subtract=m7,P.sum=p7,P.sumBy=g7,P.template=T9,P.times=Q9,P.toFinite=fr,P.toInteger=Oe,P.toLength=sT,P.toLower=E9,P.toNumber=gn,P.toSafeInteger=EB,P.toString=Be,P.toUpper=C9,P.trim=P9,P.trimEnd=A9,P.trimStart=M9,P.truncate=O9,P.unescape=_9,P.uniqueId=t7,P.upperCase=I9,P.upperFirst=Cm,P.each=GS,P.eachRight=YS,P.first=BS,Mm(P,function(){var s={};return Un(P,function(l,f){ze.call(P.prototype,f)||(s[f]=l)}),s}(),{chain:!1}),P.VERSION=r,un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){P[s].placeholder=P}),un(["drop","take"],function(s,l){ke.prototype[s]=function(f){f=f===n?1:mt(Oe(f),0);var g=this.__filtered__&&!l?new ke(this):this.clone();return g.__filtered__?g.__takeCount__=At(f,g.__takeCount__):g.__views__.push({size:At(f,k),type:s+(g.__dir__<0?"Right":"")}),g},ke.prototype[s+"Right"]=function(f){return this.reverse()[s](f).reverse()}}),un(["filter","map","takeWhile"],function(s,l){var f=l+1,g=f==le||f==he;ke.prototype[s]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||g,M}}),un(["head","last"],function(s,l){var f="take"+(l?"Right":"");ke.prototype[s]=function(){return this[f](1).value()[0]}}),un(["initial","tail"],function(s,l){var f="drop"+(l?"":"Right");ke.prototype[s]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Ut)},ke.prototype.find=function(s){return this.filter(s).head()},ke.prototype.findLast=function(s){return this.reverse().find(s)},ke.prototype.invokeMap=Ie(function(s,l){return typeof s=="function"?new ke(this):this.map(function(f){return Ho(f,s,l)})}),ke.prototype.reject=function(s){return this.filter(lc(be(s)))},ke.prototype.slice=function(s,l){s=Oe(s);var f=this;return f.__filtered__&&(s>0||l<0)?new ke(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)},ke.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ke.prototype.toArray=function(){return this.take(k)},Un(ke.prototype,function(s,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),w=P[g?"take"+(l=="last"?"Right":""):l],M=g||/^find/.test(l);w&&(P.prototype[l]=function(){var I=this.__wrapped__,N=g?[1]:arguments,j=I instanceof ke,H=N[0],q=j||Me(I),X=function(Ne){var Le=w.apply(P,zr([Ne],N));return g&&ue?Le[0]:Le};q&&f&&typeof H=="function"&&H.length!=1&&(j=q=!1);var ue=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ue,_e=j&&!ye;if(!M&&q){I=_e?I:new ke(this);var Ee=s.apply(I,N);return Ee.__actions__.push({func:ic,args:[X],thisArg:n}),new dn(Ee,ue)}return Te&&_e?s.apply(this,N):(Ee=this.thru(X),Te?g?Ee.value()[0]:Ee.value():Ee)})}),un(["pop","push","shift","sort","splice","unshift"],function(s){var l=_l[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var w=arguments;if(g&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(I){return l.apply(Me(I)?I:[],w)})}}),Un(ke.prototype,function(s,l){var f=P[l];if(f){var g=f.name+"";ze.call($s,g)||($s[g]=[]),$s[g].push({name:l,func:f})}}),$s[Zl(n,b).name]=[{name:"wrapper",func:n}],ke.prototype.clone=_j,ke.prototype.reverse=Ij,ke.prototype.value=$j,P.prototype.at=a8,P.prototype.chain=l8,P.prototype.commit=c8,P.prototype.next=u8,P.prototype.plant=d8,P.prototype.reverse=h8,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=m8,P.prototype.first=P.prototype.head,Vo&&(P.prototype[Vo]=f8),P},Os=cj();Mi?((Mi.exports=Os)._=Os,Ah._=Os):xt._=Os}).call(vI)}(po,po.exports)),po.exports}var vf=xI();const xf=_.createContext({});function bf(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const wf=typeof window<"u",Mv=wf?_.useLayoutEffect:_.useEffect,Ra=_.createContext(null),Sf=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class bI extends Q.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 wI({children:e,isPresent:t,anchorX:n}){const r=_.useId(),i=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=_.useContext(Sf);return _.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!i.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;i.current.dataset.motionPopId=r;const v=document.createElement("style");return a&&(v.nonce=a),document.head.appendChild(v),v.sheet&&v.sheet.insertRule(`
|
|
652
652
|
[data-motion-pop-id="${r}"] {
|
|
653
653
|
position: absolute !important;
|
|
654
654
|
width: ${c}px !important;
|
|
655
655
|
height: ${u}px !important;
|
|
656
656
|
${p}px !important;
|
|
657
|
-
top: ${
|
|
657
|
+
top: ${d}px !important;
|
|
658
658
|
}
|
|
659
|
-
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(bI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const SI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(TI),f=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:f,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(wI,{isPresent:n,anchorX:c,children:e})),y.jsx(Ra.Provider,{value:m,children:e})};function TI(){return new Map}function Ov(e=!0){const t=_.useContext(Ra);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function _v(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,f]=Ov(a),h=_.useMemo(()=>_v(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),v=_.useRef(h),S=bf(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);Mv(()=>{p.current=!1,v.current=h;for(let P=0;P<b.length;P++){const D=ja(b[P]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let P=[...h];for(let D=0;D<b.length;D++){const j=b[D],F=ja(j);m.includes(F)||(P.splice(D,0,j),E.push(j))}return o==="wait"&&E.length&&(P=E),C(_v(P)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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:$}=_.useContext(xf);return y.jsx(y.Fragment,{children:b.map(P=>{const D=ja(P),j=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Z=>{Z||(W=!1)}),W&&($==null||$(),C(v.current),a&&(f==null||f()),r&&r())};return y.jsx(SI,{isPresent:j,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:j?void 0:F,anchorX:c,children:P},D)})})},kt=e=>e;let rs=kt,Er=kt;process.env.NODE_ENV!=="production"&&(rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const EI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Iv={value:null};function CI(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 f(m){a.has(m)&&(h.schedule(m),e()),u++,m(c)}const h={schedule:(m,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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(f),t&&Iv.value&&Iv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const PI=40;function $v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((b,C)=>(b[C]=CI(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:f,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,PI),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),f.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Fa.reduce((b,C)=>{const E=a[C];return b[C]=($,P=!1,D=!1)=>(n||S(),E.schedule($,P,D)),b},{}),cancel:b=>{for(let C=0;C<Fa.length;C++)a[Fa[C]].cancel(b)},state:i,steps:a}}const{schedule:qe,cancel:Cr,state:vt,steps:Tf}=$v(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Dv=_.createContext({strict:!1}),Nv={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"]},is={};for(const e in Nv)is[e]={isEnabled:t=>Nv[e].some(n=>!!t[n])};function AI(e){for(const t in e)is[t]={...is[t],...e[t]}}const MI=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 Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MI.has(e)}let kv=e=>!Va(e);function OI(e){e&&(kv=t=>t.startsWith("on")?!Va(t):e(t))}try{OI(require("@emotion/is-prop-valid").default)}catch{}function _I(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Lv=new Set;function Ba(e,t,n){e||Lv.has(t)||(console.warn(t),Lv.add(t))}function II(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!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 Wa=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function go(e){return typeof e=="string"||Array.isArray(e)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function za(e){return Ua(e.animate)||Cf.some(t=>go(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function $I(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||go(n)?n:void 0,animate:go(r)?r:void 0}}return e.inherit!==!1?t:{}}function DI(e){const{initial:t,animate:n}=$I(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const NI=Symbol.for("motionComponentSymbol");function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kI(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ss(n)&&(n.current=r))},[t])}const{schedule:Pf}=$v(queueMicrotask,!1),Af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fv="data-"+Af("framerAppearId"),Vv=_.createContext({});function LI(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Dv),f=_.useContext(Ra),h=_.useContext(Sf).reducedMotion,m=_.useRef(null);r=r||u.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const p=m.current,v=_.useContext(Vv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&RI(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,f)});const x=n[Fv],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return Mv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Pf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function RI(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ss(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function Bv(e){if(e)return e.options.allowProjection!==!1?e.projection:Bv(e.parent)}function jI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&AI(e);function c(f,h){let m;const p={..._.useContext(Sf),...f,layoutId:FI(f)},{isStatic:v}=p,S=DI(f),x=r(f,v);if(!v&&wf){VI(p,e);const T=BI(p);m=T.MeasureLayout,S.visualElement=LI(i,x,p,t,T.ProjectionNode)}return y.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,f,kI(x,S.visualElement,h),x,v,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=_.forwardRef(c);return u[NI]=i,u}function FI({layoutId:e}){const t=_.useContext(xf).id;return t&&e!==void 0?t+"-"+e:e}function VI(e,t){const n=_.useContext(Dv).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?rs(!1,r):Er(!1,r)}}function BI(e){const{drag:t,layout:n}=is;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 Wv=e=>t=>typeof t=="string"&&t.startsWith(e),Mf=Wv("--"),WI=Wv("var(--"),Of=e=>WI(e)?UI.test(e.split("/*")[0].trim()):!1,UI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yo={};function zI(e){for(const t in e)yo[t]=e[t],Mf(t)&&(yo[t].isCSSVariable=!0)}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(os);function Uv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),zv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...as,transform:e=>Zn(0,1,e)},Ga={...as,default:1},xo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=xo("deg"),kn=xo("%"),Se=xo("px"),GI=xo("vh"),YI=xo("vw"),Gv={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},HI={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},qI={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,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:vo,originX:Gv,originY:Gv,originZ:Se},Yv={...as,transform:Math.round},_f={...HI,...qI,zIndex:Yv,size:Se,fillOpacity:vo,strokeOpacity:vo,numOctaves:Yv},KI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XI=os.length;function ZI(e,t,n){let r="",i=!0;for(let o=0;o<XI;o++){const a=os[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 f=zv(c,_f[a]);if(!u){i=!1;const h=KI[a]||a;r+=`${h}(${f}) `}n&&(t[a]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function If(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const f=t[u];if(li.has(u)){a=!0;continue}else if(Mf(u)){i[u]=f;continue}else{const h=zv(f,_f[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=ZI(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const $f=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hv(e,t,n){for(const r in t)!Et(t[r])&&!Uv(r,n)&&(e[r]=t[r])}function JI({transformTemplate:e},t){return _.useMemo(()=>{const n=$f();return If(n,t,e),Object.assign({},n.vars,n.style)},[t])}function QI(e,t){const n=e.style||{},r={};return Hv(r,n,e),Object.assign(r,JI(e,t)),r}function e6(e,t){const n={},r=QI(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 t6=["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 Df(e){return typeof e!="string"||e.includes("-")?!1:!!(t6.indexOf(e)>-1||/[A-Z]/u.test(e))}const n6={offset:"stroke-dashoffset",array:"stroke-dasharray"},r6={offset:"strokeDashoffset",array:"strokeDasharray"};function i6(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?n6:r6;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function qv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function s6(e,t,n){const r=qv(t,e.x,e.width),i=qv(n,e.y,e.height);return`${r} ${i}`}function Nf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...f},h,m){if(If(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=s6(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&i6(p,a,c,u,!1)}const Kv=()=>({...$f(),attrs:{}}),kf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o6(e,t,n,r){const i=_.useMemo(()=>{const o=Kv();return Nf(o,t,kf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Hv(o,e.style,e),i.style={...o,...i.style}}return i}function a6(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?o6:e6)(r,o,a,n),f=_I(r,typeof n=="string",e),h=n!==_.Fragment?{...f,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Xv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lf(e,t,n,r){if(typeof t=="function"){const[i,o]=Xv(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]=Xv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rf=e=>Array.isArray(e),l6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),c6=e=>Rf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return l6(t)?t.toValue():t}function u6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:f6(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Zv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(Ra),o=()=>u6(e,t,r,i);return n?o():bf(o)};function f6(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),f=Rv(e);t&&f&&!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 p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Lf(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function jf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Uv(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 d6={useVisualState:Zv({scrapeMotionValuesFromProps:jf,createRenderState:$f})};function Jv(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 Qv(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 e1=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 t1(e,t,n,r){Qv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e1.has(i)?i:Af(i),t.attrs[i])}function n1(e,t,n){const r=jf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=os.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const r1=["x","y","width","height","cx","cy","r"],h6={useVisualState:Zv({scrapeMotionValuesFromProps:n1,createRenderState:Kv,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(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<r1.length;c++){const u=r1[c];e[u]!==t[u]&&(a=!0)}a&&qe.read(()=>{Jv(n,r),qe.render(()=>{Nf(r,i,kf(n.tagName),e.transformTemplate),t1(n,r)})})}})};function m6(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?h6:d6,preloadedFeatures:e,useRender:a6(i),createVisualElement:t,Component:r};return jI(a)}}function bo(e,t,n){const r=e.getProps();return Lf(r,t,n!==void 0?n:r.custom,e)}function Ff(e,t){return e?e[t]||e.default||e:void 0}const i1=new Set(["width","height","top","left","right","bottom",...os]);function Vf(e,t){e.indexOf(t)===-1&&e.push(t)}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wf{constructor(){this.subscriptions=[]}add(t){return Vf(this.subscriptions,t),()=>Bf(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 s1(e,t){return t?e*(1e3/t):0}let Ha;function p6(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||EI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(p6)}},o1=30,g6=e=>!isNaN(parseFloat(e));class y6{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=g6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!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 Wf);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.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>o1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o1);return s1(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 wo(e,t){return new y6(e,t)}function v6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function x6(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=c6(o[a]);v6(e,a,c)}}function b6(e){return!!(Et(e)&&e.add)}function Uf(e,t){const n=e.getValue("willChange");if(b6(n))return n.add(t)}function a1(e){return e.props[Fv]}function zf(e){let t;return()=>(t===void 0&&(t=e()),t)}const w6=zf(()=>window.ScrollTimeline!==void 0);class S6{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(w6()&&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 T6 extends S6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Rn=e=>e*1e3,Jn=e=>e/1e3;function Gf(e){return typeof e=="function"}function l1(e,t){e.timeline=t,e.onfinish=null}const Yf=e=>Array.isArray(e)&&typeof e[0]=="number",E6={linearEasing:void 0};function C6(e,t){const n=zf(e);return()=>{var r;return(r=E6[t])!==null&&r!==void 0?r:n()}}const qa=C6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},c1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ls(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Hf||qa())||Yf(e)||Array.isArray(e)&&e.every(u1))}const So=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:So([0,.65,.55,1]),circOut:So([.55,0,1,.45]),backIn:So([.31,.01,.66,-.59]),backOut:So([.33,1.53,.69,.99])};function f1(e,t){if(e)return typeof e=="function"&&qa()?c1(e,t):Yf(e)?So(e):Array.isArray(e)?e.map(n=>f1(n,t)||Hf.easeOut):Hf[e]}const d1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,P6=1e-7,A6=12;function M6(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=d1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>P6&&++c<A6);return a}function To(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>M6(o,0,1,e,n);return o=>o===0||o===1?o:d1(i(o),t,r)}const h1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,m1=e=>t=>1-e(1-t),p1=To(.33,1.53,.69,.99),qf=m1(p1),g1=h1(qf),y1=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Kf=e=>1-Math.sin(Math.acos(e)),v1=m1(Kf),x1=h1(Kf),b1=e=>/^0[^.\s]+$/u.test(e);function O6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||b1(e):!0}const Eo=e=>Math.round(e*1e5)/1e5,Xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _6(e){return e==null}const I6=/^(?:#[\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"&&I6.test(n)&&n.startsWith(e)||t&&!_6(n)&&Object.prototype.hasOwnProperty.call(n,t)),w1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Xf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},$6=e=>Zn(0,255,e),Jf={...as,transform:e=>Math.round($6(e))},ci={test:Zf("rgb","red"),parse:w1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(n)+", "+Eo(vo.transform(r))+")"};function D6(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 Qf={test:Zf("#"),parse:D6,transform:ci.transform},cs={test:Zf("hsl","hue"),parse:w1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Eo(t))+", "+kn.transform(Eo(n))+", "+Eo(vo.transform(r))+")"},Ct={test:e=>ci.test(e)||Qf.test(e)||cs.test(e),parse:e=>ci.test(e)?ci.parse(e):cs.test(e)?cs.parse(e):Qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):cs.transform(e)},N6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N6))===null||n===void 0?void 0:n.length)||0)>0}const S1="number",T1="color",L6="var",R6="var(",E1="${}",j6=/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 Co(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(j6,u=>(Ct.test(u)?(r.color.push(o),i.push(T1),n.push(Ct.parse(u))):u.startsWith(R6)?(r.var.push(o),i.push(L6),n.push(u)):(r.number.push(o),i.push(S1),n.push(parseFloat(u))),++o,E1)).split(E1);return{values:n,split:c,indexes:r,types:i}}function C1(e){return Co(e).values}function P1(e){const{split:t,types:n}=Co(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===S1?o+=Eo(i[a]):c===T1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const F6=e=>typeof e=="number"?0:e;function V6(e){const t=C1(e);return P1(e)(t.map(F6))}const Ar={test:k6,parse:C1,createTransformer:P1,getAnimatableNone:V6},B6=new Set(["brightness","contrast","saturate","opacity"]);function W6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xf)||[];if(!r)return e;const i=n.replace(r,"");let o=B6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const U6=/\b([a-z-]*)\(.*?\)/gu,ed={...Ar,getAnimatableNone:e=>{const t=e.match(U6);return t?t.map(W6).join(" "):e}},z6={..._f,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ed,WebkitFilter:ed},A1=e=>z6[e];function M1(e,t){let n=A1(e);return n!==ed&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=new Set(["auto","none","0"]);function Y6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!G6.has(o)&&Co(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=M1(n,i)}const ui=e=>e*180/Math.PI,td=e=>{const t=ui(Math.atan2(e[1],e[0]));return nd(t)},H6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,skewX:e=>ui(Math.atan(e[1])),skewY:e=>ui(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nd=e=>(e=e%360,e<0&&(e+=360),e),O1=td,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),I1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:I1,scale:e=>(_1(e)+I1(e))/2,rotateX:e=>nd(ui(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ui(Math.atan2(-e[2],e[0]))),rotateZ:O1,rotate:O1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $1(e){return e.includes("scale")?1:0}function rd(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=q6,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=H6,i=c}if(!i)return $1(t);const o=r[t],a=i[1].split(",").map(X6);return typeof o=="function"?o(a):a[o]}const K6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rd(n,t)};function X6(e){return parseFloat(e.trim())}const D1=e=>e===as||e===Se,Z6=new Set(["x","y","z"]),J6=os.filter(e=>!Z6.has(e));function Q6(e){const t=[];return J6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={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})=>rd(t,"x"),y:(e,{transform:t})=>rd(t,"y")};us.translateX=us.x,us.translateY=us.y;const fi=new Set;let id=!1,sd=!1;function N1(){if(sd){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Q6(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)})}sd=!1,id=!1,fi.forEach(e=>e.complete()),fi.clear()}function k1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sd=!0)})}function e$(){k1(),N1()}class od{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?(fi.add(this),id||(id=!0,qe.read(k1),qe.resolveKeyframes(N1))):(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),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const L1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n$(e){const t=t$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const r$=4;function R1(e,t,n=1){Er(n<=r$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=n$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return L1(a)?parseFloat(a):a}return Of(i)?R1(i,t,n+1):i}const j1=e=>t=>t.test(e),F1=[as,Se,kn,Pr,YI,GI,{test:e=>e==="auto",parse:e=>e}],V1=e=>F1.find(j1(e));class B1 extends od{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 f=t[u];if(typeof f=="string"&&(f=f.trim(),Of(f))){const h=R1(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!i1.has(r)||t.length!==2)return;const[i,o]=t,a=V1(i),c=V1(o);if(a!==c)if(D1(a)&&D1(c))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)O6(t[i])&&r.push(i);r.length&&Y6(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=us[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]=us[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,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const W1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function i$(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 s$(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=W1(i,t),c=W1(o,t);return rs(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:i$(e)||(n==="spring"||Gf(n))&&r}const o$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(o$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const a$=40;class U1{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>a$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e$(),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:f}=this.options;if(!f&&!s$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(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 ad=2e4;function z1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ad;)t+=n,r=e.next(t);return t>=ad?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ld(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 l$({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=ld(u,c,e+1/3),o=ld(u,c,e),a=ld(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const cd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},c$=[Qf,ci,cs],u$=e=>c$.find(t=>t.test(e));function G1(e){const t=u$(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===cs&&(n=l$(n)),n}const Y1=(e,t)=>{const n=G1(e),r=G1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=cd(n.red,r.red,o),i.green=cd(n.green,r.green,o),i.blue=cd(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},f$=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(f$),ud=new Set(["none","hidden"]);function d$(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h$(e,t){return n=>rt(e,t,n)}function fd(e){return typeof e=="number"?h$:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Y1:g$:Array.isArray(e)?H1:typeof e=="object"?Ct.test(e)?Y1:m$:Xa}function H1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>fd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function m$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function p$(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 g$=(e,t)=>{const n=Ar.createTransformer(t),r=Co(e),i=Co(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?ud.has(e)&&!i.values.length||ud.has(t)&&!r.values.length?d$(e,t):Po(H1(p$(r,i),i.values),n):(rs(!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.`),Xa(e,t))};function q1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):fd(e)(e,t)}const y$=5;function K1(e,t,n){const r=Math.max(t-y$,0);return s1(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},X1=.001;function v$({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;rs(e<=Rn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=f=>{const h=f*a,m=h*e,p=h-n,v=dd(f,a),S=Math.exp(-m);return X1-p/v*S},o=f=>{const m=f*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(f,2)*e,S=Math.exp(-m),x=dd(Math.pow(f,2),a);return(-i(f)+X1>0?-1:1)*((p-v)*S)/x}):(i=f=>{const h=Math.exp(-f*e),m=(f-n)*e+1;return-.001+h*m},o=f=>{const h=Math.exp(-f*e),m=(n-f)*(e*e);return h*m});const c=5/e,u=b$(i,o,c);if(e=Rn(e),isNaN(u))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const x$=12;function b$(e,t,n){let r=n;for(let i=1;i<x$;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const w$=["duration","bounce"],S$=["stiffness","damping","mass"];function Z1(e,t){return t.some(n=>e[n]!==void 0)}function T$(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Z1(e,S$)&&Z1(e,w$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=v$(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function J1(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:f,mass:h,duration:m,velocity:p,isResolvedFromDuration:v}=T$({...n,velocity:-Jn(n.velocity||0)}),S=p||0,x=f/(2*Math.sqrt(u*h)),T=a-o,b=Jn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let E;if(x<1){const P=dd(b,x);E=D=>{const j=Math.exp(-x*b*D);return a-j*((S+x*b*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(x===1)E=P=>a-Math.exp(-b*P)*(T+(S+b*T)*P);else{const P=b*Math.sqrt(x*x-1);E=D=>{const j=Math.exp(-x*b*D),F=Math.min(P*D,300);return a-j*((S+x*b*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const $={calculatedDuration:v&&m||null,next:P=>{const D=E(P);if(v)c.done=P>=m;else{let j=0;x<1&&(j=P===0?Rn(S):K1(E,P,D));const F=Math.abs(j)<=r,W=Math.abs(a-D)<=i;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(z1($),ad),D=c1(j=>$.next(P*j).value,P,30);return P+"ms "+D}};return $}function Q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:f=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=F=>-x*Math.exp(-F/r),E=F=>b+C(F),$=F=>{const W=C(F),Z=E(F);p.done=Math.abs(W)<=f,p.value=p.done?b:Z};let P,D;const j=F=>{v(p.value)&&(P=F,D=J1({keyframes:[p.value,S(p.value)],velocity:K1(E,F,p.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return j(0),{calculatedDuration:null,next:F=>{let W=!1;return!D&&P===void 0&&(W=!0,$(F),j(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&$(F),p)}}}const E$=To(.42,0,1,1),C$=To(0,0,.58,1),ex=To(.42,0,.58,1),P$=e=>Array.isArray(e)&&typeof e[0]!="number",tx={linear:kt,easeIn:E$,easeInOut:ex,easeOut:C$,circIn:Kf,circInOut:x1,circOut:v1,backIn:qf,backInOut:g1,backOut:p1,anticipate:y1},nx=e=>{if(Yf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return To(t,n,r,i)}else if(typeof e=="string")return Er(tx[e]!==void 0,`Invalid easing type '${e}'`),tx[e];return e};function A$(e,t,n){const r=[],i=n||q1,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]||kt:t;c=Po(u,c)}r.push(c)}return r}function M$(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=A$(t,r,i),u=c.length,f=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 p=ls(e[m],e[m+1],h);return c[m](p)};return n?h=>f(Zn(e[0],e[o-1],h)):f}function O$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ls(0,t,r);e.push(rt(n,1,i))}}function _$(e){const t=[0];return O$(t,e.length-1),t}function I$(e,t){return e.map(n=>n*t)}function $$(e,t){return e.map(()=>t||ex).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=P$(r)?r.map(nx):nx(r),o={done:!1,value:t[0]},a=I$(n&&n.length===t.length?n:_$(t),e),c=M$(a,t,{ease:Array.isArray(i)?i:$$(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const D$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},N$={decay:Q1,inertia:Q1,tween:Ao,keyframes:Ao,spring:J1},k$=e=>e/100;class hd extends U1{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)||od,c=(u,f)=>this.onKeyframesResolved(u,f);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=Gf(n)?n:N$[n]||Ao;let u,f;process.env.NODE_ENV!=="production"&&c!==Ao&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Ao&&typeof t[0]!="number"&&(u=Po(k$,q1(t[0],t[1])),t=[0,100]);const h=c({...this.options,keyframes:t});o==="mirror"&&(f=c({...this.options,keyframes:[...t].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=z1(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:f,totalDuration:h,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=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 b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let W=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&W--,W=Math.min(W,v+1),!!(W%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const P=C?{done:!1,value:u[0]}:$.next(E);c&&(P.value=c(P.value));let{done:D}=P;!C&&f!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return j&&i!==void 0&&(P.value=Ka(u,this.options,i)),T&&T(P.value),j&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=Rn(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=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=D$,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 L$=new Set(["opacity","clipPath","filter","transform"]);function R$(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const f={[t]:n};u&&(f.offset=u);const h=f1(c,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const j$=zf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,F$=2e4;function V$(e){return Gf(e.type)||e.type==="spring"||!u1(e.ease)}function B$(e,t){const n=new hd({...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<F$;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const rx={anticipate:y1,backInOut:g1,circInOut:x1};function W$(e){return e in rx}class ix extends U1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new B1(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:f}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&qa()&&W$(o)&&(o=rx[o]),V$(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=B$(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=R$(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(l1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(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 Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rn(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 kt;const{animation:r}=n;l1(r,t)}return kt}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:f,onUpdate:h,onComplete:m,element:p,...v}=this.options,S=new hd({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=Rn(this.time);f.setWithVelocity(S.sample(x-Za).value,S.sample(x).value,Za)}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:f}=n.owner.getProps();return j$()&&r&&L$.has(r)&&(r!=="transform"||!f)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const U$={type:"spring",stiffness:500,damping:25,restSpeed:10},z$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G$={type:"keyframes",duration:.8},Y$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H$=(e,{keyframes:t})=>t.length>2?G$:li.has(e)?e.startsWith("scale")?z$(t[1]):U$:Y$;function q$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const md=(e,t,n,r={},i,o)=>a=>{const c=Ff(r,e)||{},u=c.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Rn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};q$(c)||(h={...h,...H$(e,h)}),h.duration&&(h.duration=Rn(h.duration)),h.repeatDelay&&(h.repeatDelay=Rn(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 p=Ka(h.keyframes,c);if(p!==void 0)return qe.update(()=>{h.onUpdate(p),h.onComplete()}),new T6([])}return!o&&ix.supports(h)?new ix(h):new hd(h)};function K$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&K$(h,m))continue;const S={delay:n,...Ff(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=a1(e);if(b){const C=window.MotionHandoffAnimation(b,m,qe);C!==null&&(S.startTime=C,x=!0)}}Uf(e,m),p.start(md(m,p,v,e.shouldReduceMotion&&i1.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&f.push(T)}return c&&Promise.all(f).then(()=>{qe.update(()=>{c&&x6(e,c)})}),f}function pd(e,t,n={}){var r;const i=bo(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(sx(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return X$(e,t,h+f,m,p,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[a,c]:[c,a];return f().then(()=>h())}else return Promise.all([a(),c(n.delay)])}function X$(e,t,n=0,r=0,i=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>c-f*r;return Array.from(e.variantChildren).sort(Z$).forEach((f,h)=>{f.notify("AnimationStart",t),a.push(pd(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(a)}function Z$(e,t){return e.sortNodePosition(t)}function J$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(sx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ox(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 Q$=Cf.length;function ax(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ax(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Q$;n++){const r=Cf[n],i=e.props[r];(go(i)||i===!1)&&(t[r]=i)}return t}const eD=[...Ef].reverse(),tD=Ef.length;function nD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J$(e,n,r)))}function rD(e){let t=nD(e),n=lx(),r=!0;const i=u=>(f,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;f={...f,...x,...S}}return f};function o(u){t=u(e)}function a(u){const{props:f}=e,h=ax(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<tD;T++){const b=eD[T],C=n[b],E=f[b]!==void 0?f[b]:h[b],$=go(E),P=b===u?C.isActive:null;P===!1&&(S=T);let D=E===h[b]&&E!==f[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&P===null||!E&&!C.prevProp||Ua(E)||typeof E=="boolean")continue;const j=iD(C.prevProp,E);let F=j||b===u&&C.isActive&&!D&&$||T>S&&$,W=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});P===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},ue=V=>{F=!0,p.has(V)&&(W=!0,p.delete(V)),C.needsAnimating[V]=!0;const B=e.getValue(V);B&&(B.liveStyle=!1)};for(const V in ge){const B=ee[V],Y=se[V];if(v.hasOwnProperty(V))continue;let O=!1;Rf(B)&&Rf(Y)?O=!ox(B,Y):O=B!==Y,O?B!=null?ue(V):p.add(V):B!==void 0&&p.has(V)?ue(V):C.protectedKeys[V]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&j)||W)&&m.push(...Z.map(V=>({animation:V,options:{type:b}})))}if(p.size){const T={};if(typeof f.initial!="boolean"){const b=bo(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function c(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lx(),r=!0}}}function iD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ox(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lx(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=rD(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 oD=0;class aD extends Mr{constructor(){super(...arguments),this.id=oD++}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 lD={animation:{Feature:sD},exit:{Feature:aD}},xn={x:!1,y:!1};function cx(){return xn.x||xn.y}function cD(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oo(e){return{point:{x:e.pageX,y:e.pageY}}}const uD=e=>t=>gd(t)&&e(t,Oo(t));function _o(e,t,n,r){return Mo(e,t,uD(n),r)}function ux({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dD(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 fx=1e-4,hD=1-fx,mD=1+fx,dx=.01,pD=0-dx,gD=0+dx;function _t(e){return e.max-e.min}function yD(e,t,n){return Math.abs(e-t)<=n}function hx(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>=hD&&e.scale<=mD||isNaN(e.scale))&&(e.scale=1),(e.translate>=pD&&e.translate<=gD||isNaN(e.translate))&&(e.translate=0)}function Io(e,t,n,r){hx(e.x,t.x,n.x,r?r.originX:void 0),hx(e.y,t.y,n.y,r?r.originY:void 0)}function mx(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function vD(e,t,n){mx(e.x,t.x,n.x),mx(e.y,t.y,n.y)}function px(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function $o(e,t,n){px(e.x,t.x,n.x),px(e.y,t.y,n.y)}const gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:gx(),y:gx()}),yx=()=>({min:0,max:0}),lt=()=>({x:yx(),y:yx()});function rn(e){return[e("x"),e("y")]}function yd(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!yd(e)||!yd(t)||!yd(n)}function hi(e){return vd(e)||vx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vx(e){return xx(e.x)||xx(e.y)}function xx(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function bx(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function xd(e,t=0,n=1,r,i){e.min=bx(e.min,t,n,r,i),e.max=bx(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xd(e.x,t.translate,t.scale,t.originPoint),xd(e.y,n.translate,n.scale,n.originPoint)}const Sx=.999999999999,Tx=1.0000000000001;function xD(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&&hs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wx(e,a)),r&&hi(o.latestValues)&&hs(e,o.latestValues))}t.x<Tx&&t.x>Sx&&(t.x=1),t.y<Tx&&t.y>Sx&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Ex(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);xd(e,t,n,o,r)}function hs(e,t){Ex(e.x,t.x,t.scaleX,t.scale,t.originX),Ex(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cx(e,t){return ux(dD(e.getBoundingClientRect(),t))}function bD(e,t,n){const r=Cx(e,n),{scroll:i}=t;return i&&(ds(r.x,i.offset.x),ds(r.y,i.offset.y)),r}const Px=({current:e})=>e?e.ownerDocument.defaultView:null,Ax=(e,t)=>Math.abs(e-t);function wD(e,t){const n=Ax(e.x,t.x),r=Ax(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mx{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=wd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=wD(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=vt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!gd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Oo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:f}=vt;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,wd(c,this.history)),this.removeListeners=Po(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Ox(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:Ox(e,_x(t)),offset:Ox(e,SD(t)),velocity:TD(t,.1)}}function SD(e){return e[0]}function _x(e){return e[e.length-1]}function TD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_x(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Rn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(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 ED(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 Ix(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 CD(e,{top:t,left:n,bottom:r,right:i}){return{x:Ix(e.x,n,i),y:Ix(e.y,t,r)}}function $x(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 PD(e,t){return{x:$x(e.x,t.x),y:$x(e.y,t.y)}}function AD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=ls(t.min,t.max-r,e.min):r>i&&(n=ls(e.min,e.max-i,t.min)),Zn(0,1,n)}function MD(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 Sd=.35;function OD(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:Dx(e,"left","right"),y:Dx(e,"top","bottom")}}function Dx(e,t,n){return{min:Nx(e,t),max:Nx(e,n)}}function Nx(e,t){return typeof e=="number"?e:e[t]||0}const _D=new WeakMap;class ID{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(Oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cD(p),!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(T=>{let b=this.getAxisMotionValue(T).get()||0;if(kn.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=_t(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&qe.postRender(()=>S(h,m)),Uf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=$D(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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:f}=this.getProps();this.panSession=new Mx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Px(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&&qe.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||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ED(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&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=CD(i.layoutBox,n):this.constraints=!1,this.elastic=OD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=MD(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(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=bD(r,i.root,this.visualElement.getTransformPagePoint());let a=PD(i.layout.layoutBox,o);if(n){const c=n(fD(a));this.hasMutatedConstraints=!!c,c&&(a=ux(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},f=rn(h=>{if(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,S)});return Promise.all(f).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Uf(this.visualElement,t),r.start(md(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(!Qa(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(!ss(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]=AD({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(!Qa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:f}=this.constraints[a];c.set(rt(u,f,i[a]))})}addListeners(){if(!this.visualElement.current)return;_D.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(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()),qe.read(r);const a=Mo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(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=Sd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $D(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DD extends Mr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new ID(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kx=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class ND extends Mr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Mx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kx(t),onStart:kx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&qe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=_o(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 el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Lx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Lx(e,t.target.x),r=Lx(e,t.target.y);return`${n}% ${r}%`}},kD={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 f=rt(c,u,.5);return typeof i[2+a]=="number"&&(i[2+a]/=f),typeof i[3+a]=="number"&&(i[3+a]/=f),o(i)}};class LD extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;zI(RD),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()})),el.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()||qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pf.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 Rx(e){const[t,n]=Ov(),r=_.useContext(xf);return y.jsx(LD,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Vv),isPresent:t,safeToRemove:n})}const RD={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:kD};function jD(e,t,n){const r=Et(e)?e:wo(e);return r.start(md("",r,t,n)),r.animation}function FD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VD=(e,t)=>e.depth-t.depth;class BD{constructor(){this.children=[],this.isDirty=!1}add(t){Vf(this.children,t),this.isDirty=!0}remove(t){Bf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VD),this.isDirty=!1,this.children.forEach(t)}}function WD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return qe.read(r,!0),()=>Cr(r)}const jx=["TopLeft","TopRight","BottomLeft","BottomRight"],UD=jx.length,Fx=e=>typeof e=="string"?parseFloat(e):e,Vx=e=>typeof e=="number"||Se.test(e);function zD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,GD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,YD(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<UD;a++){const c=`border${jx[a]}Radius`;let u=Bx(t,c),f=Bx(n,c);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Vx(u)===Vx(f)?(e[c]=Math.max(rt(Fx(u),Fx(f),r),0),(kn.test(f)||kn.test(u))&&(e[c]+="%")):e[c]=f}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Bx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GD=Wx(0,.5,v1),YD=Wx(.5,.95,kt);function Wx(e,t,n){return r=>r<e?0:r>t?1:n(ls(e,t,r))}function Ux(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Ux(e.x,t.x),Ux(e.y,t.y)}function zx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gx(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function HD(e,t=0,n=1,r=.5,i,o=e,a=e){if(kn.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=Gx(e.min,t,n,c,i),e.max=Gx(e.max,t,n,c,i)}function Yx(e,t,[n,r,i],o,a){HD(e,t[n],t[r],t[i],t.scale,o,a)}const qD=["x","scaleX","originX"],KD=["y","scaleY","originY"];function Hx(e,t,n,r){Yx(e.x,t,qD,n?n.x:void 0,r?r.x:void 0),Yx(e.y,t,KD,n?n.y:void 0,r?r.y:void 0)}function qx(e){return e.translate===0&&e.scale===1}function Kx(e){return qx(e.x)&&qx(e.y)}function Xx(e,t){return e.min===t.min&&e.max===t.max}function XD(e,t){return Xx(e.x,t.x)&&Xx(e.y,t.y)}function Zx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jx(e,t){return Zx(e.x,t.x)&&Zx(e.y,t.y)}function Qx(e){return _t(e.x)/_t(e.y)}function eb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZD{constructor(){this.members=[]}add(t){Vf(this.members,t),t.scheduleRender()}remove(t){if(Bf(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 JD(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:f,rotate:h,rotateX:m,rotateY:p,skewX:v,skewY:S}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 Td=["","X","Y","Z"],QD={visibility:"hidden"},tb=1e3;let e5=0;function Ed(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nb(r)}function rb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=e5++,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(r5),this.nodes.forEach(l5),this.nodes.forEach(c5),this.nodes.forEach(i5)},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 BD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Wf),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=FD(a),this.instance=a;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(f||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=WD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(sb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||m5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Jx(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...Ff(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||sb(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(u5),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&&nb(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 f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ib);return}this.isUpdating||this.nodes.forEach(o5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(t5),this.nodes.forEach(n5),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Tf.update.process(vt),Tf.preRender.process(vt),Tf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s5),this.sharedNodes.forEach(f5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.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&&!Kx(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;a&&(c||hi(this.latestValues)||h)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),p5(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(g5))){const{scroll:h}=this.root;h&&(ds(u.x,h.offset.x),ds(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 f=0;f<this.path.length;f++){const h=this.path[f],{scroll:m,options:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ds(u.x,m.offset.x),ds(u.y,m.offset.y))}return u}applyTransform(a,c=!1){const u=lt();sn(u,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];!c&&h.options.layoutScroll&&h.scroll&&h!==h.root&&hs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&hs(u,h.latestValues)}return hi(this.latestValues)&&hs(u,this.latestValues),u}removeTransform(a){const c=lt();sn(c,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!hi(f.latestValues))continue;vd(f.latestValues)&&f.updateSnapshot();const h=lt(),m=f.measurePageBox();sn(h,m),Hx(c,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Hx(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 f=!!this.resumingFrom||this!==u;if(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),vD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),wx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.target,v.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||vx(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 f=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(f=!1),f)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 p=this.treeScale.x,v=this.treeScale.y;xD(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():(zx(this.prevProjectionDelta.x,this.projectionDelta.x),zx(this.prevProjectionDelta.y,this.projectionDelta.y)),Io(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!eb(this.projectionDelta.x,this.prevProjectionDelta.x)||!eb(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=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},m=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(h5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const P=$/1e3;ob(m.x,a.x,P),ob(m.y,a.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d5(this.relativeTarget,this.relativeTargetOrigin,p,P),E&&XD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),x&&(this.animationValues=h,zD(h,f,this.latestValues,P,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},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=qe.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=jD(0,tb,{...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(tb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:f,latestValues:h}=a;if(!(!c||!u||!f)){if(this!==a&&this.layout&&f&&fb(this.options.animationType,this.layout.layoutBox,f.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 p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),hs(c,h),Io(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ZD),this.sharedNodes.get(a).add(c);const f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.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 f=this.getStack();f&&f.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 f={};u.z&&Ed("z",a,f,this.animationValues);for(let h=0;h<Td.length;h++)Ed(`rotate${Td[h]}`,a,f,this.animationValues),Ed(`skew${Td[h]}`,a,f,this.animationValues);a.render();for(const h in f)a.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);a.scheduleRender()}getProjectionStyles(a){var c,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return QD;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),f.transform=JD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(f.transform=h(p,f.transform));const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?f.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in yo){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=yo[x],E=f.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let P=0;P<$;P++)f[b[P]]=E}else C?this.options.visualElement.renderState.vars[x]=E:f[x]=E}return this.options.layoutId&&(f.pointerEvents=m===this?Ya(a==null?void 0:a.pointerEvents)||"":"none"),f}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(ib),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(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 p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(p);p.min=r[m].min,p.max=p.min+v}):fb(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=fs();Io(c,r,n.layoutBox);const u=fs();a?Io(u,e.applyTransform(i,!0),n.measuredBox):Io(u,r,n.layoutBox);const f=!Kx(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=lt();$o(S,n.layoutBox,p.layoutBox);const x=lt();$o(x,r,v.layoutBox),Jx(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function r5(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 i5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s5(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function o5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l5(e){e.resolveTargetDelta()}function c5(e){e.calcProjection()}function u5(e){e.resetSkewAndRotation()}function f5(e){e.removeLeadSnapshot()}function ob(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 ab(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function d5(e,t,n,r){ab(e.x,t.x,n.x,r),ab(e.y,t.y,n.y,r)}function h5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const m5={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cb=lb("applewebkit/")&&!lb("chrome/")?Math.round:kt;function ub(e){e.min=cb(e.min),e.max=cb(e.max)}function p5(e){ub(e.x),ub(e.y)}function fb(e,t,n){return e==="position"||e==="preserve-aspect"&&!yD(Qx(t),Qx(n),.2)}function g5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const y5=rb({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},db=rb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new y5({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v5={pan:{Feature:ND},drag:{Feature:DD,ProjectionNode:db,MeasureLayout:Rx}};function x5(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 hb(e,t){const n=x5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function mb(e){return!(e.pointerType==="touch"||cx())}function b5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{if(!mb(c))return;const{target:u}=c,f=t(u,c);if(typeof f!="function"||!u)return;const h=m=>{mb(m)&&(f(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function pb(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&&qe.postRender(()=>o(t,Oo(t)))}class w5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b5(t,(n,r)=>(pb(this.node,r,"Start"),i=>pb(this.node,i,"End"))))}unmount(){}}class S5 extends Mr{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=Po(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gb=(e,t)=>t?e===t?!0:gb(e,t.parentElement):!1,T5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function E5(e){return T5.has(e.tagName)||e.tabIndex!==-1}const No=new WeakSet;function yb(e){return t=>{t.key==="Enter"&&e(t)}}function Pd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const C5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yb(()=>{if(No.has(n))return;Pd(n,"down");const i=yb(()=>{Pd(n,"up")}),o=()=>Pd(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 vb(e){return gd(e)&&!cx()}function P5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{const u=c.currentTarget;if(!vb(c)||No.has(u))return;No.add(u);const f=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!vb(v)||!No.has(u))&&(No.delete(u),typeof f=="function"&&f(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||gb(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",f=>C5(f,i)),!E5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function xb(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&&qe.postRender(()=>o(t,Oo(t)))}class A5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=P5(t,(n,r)=>(xb(this.node,r,"Start"),(i,{success:o})=>xb(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ad=new WeakMap,Md=new WeakMap,M5=e=>{const t=Ad.get(e.target);t&&t(e)},O5=e=>{e.forEach(M5)};function _5({root:e,...t}){const n=e||document;Md.has(n)||Md.set(n,{});const r=Md.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(O5,{root:e,...t})),r[i]}function I5(e,t,n){const r=_5(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}const $5={some:0,all:1};class D5 extends Mr{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:$5[i]},c=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),p=f?h:m;p&&p(u)};return I5(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(N5(t,n))&&this.startObserver()}unmount(){}}function N5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const k5={inView:{Feature:D5},tap:{Feature:A5},focus:{Feature:S5},hover:{Feature:w5}},L5={layout:{ProjectionNode:db,MeasureLayout:Rx}},Od={current:null},bb={current:!1};function R5(){if(bb.current=!0,!!wf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const j5=[...F1,Ct,Ar],F5=e=>j5.find(j1(e)),V5=new WeakMap;function B5(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"&&Ba(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,wo(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,wo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W5{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=od,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 v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,qe.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,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=za(n),this.isVariantNode=Rv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&Et(S)&&S.set(u[v],!1)}}mount(t){this.current=t,V5.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)),bb.current||R5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(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=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&qe.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 is){const n=is[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<wb.length;r++){const i=wb[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=B5(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=wo(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"&&(L1(i)||b1(i))?i=parseFloat(i):!F5(i)&&Ar.test(n)&&(i=M1(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=Lf(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 Wf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sb extends W5{constructor(){super(...arguments),this.KeyframeResolver=B1}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 U5(e){return window.getComputedStyle(e)}class z5 extends Sb{constructor(){super(...arguments),this.type="html",this.renderInstance=Qv}readValueFromInstance(t,n){if(li.has(n))return K6(t,n);{const r=U5(t),i=(Mf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cx(t,n)}build(t,n,r){If(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class G5 extends Sb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Jv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=A1(n);return r&&r.default||0}return n=e1.has(n)?n:Af(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&qe.postRender(this.updateDimensions)}build(t,n,r){Nf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){t1(t,n,r,i)}mount(t){this.isSVGTag=kf(t.tagName),super.mount(t)}}const Y5=(e,t)=>Df(e)?new G5(t):new z5(t,{allowProjection:e!==_.Fragment}),H5=m6({...lD,...k5,...v5,...L5},Y5),Ge=II(H5),_d={defaultColorScheme:"aqua",t:e=>e},Tb=_.createContext(_d),Ue=()=>_.useContext(Tb),q5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function K5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:v,icon:S,options:x})=>{if(n.find(C=>C.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let b;typeof t=="string"?b=q5[t]:b=t[h]||t[h],r(C=>[...C,{key:h,value:m,label:p,type:v,icon:S,options:x,fn:b}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(v=>v.key===h?{...v,value:m}:v))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),f=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:f}}const Eb=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},f={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}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:f,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-16 p-32",children:[y.jsxs("div",{className:"flex justify-between items-center gap-16",children:[y.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),y.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),y.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&y.jsx(wi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&y.jsx(wi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
659
|
+
`),()=>{document.head.removeChild(v)}},[t]),y.jsx(bI,{isPresent:t,childRef:i,sizeRef:o,children:Q.cloneElement(e,{ref:i})})}const SI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=bf(TI),d=_.useId(),h=_.useCallback(p=>{u.set(p,!0);for(const v of u.values())if(!v)return;r&&r()},[u,r]),m=_.useMemo(()=>({id:d,initial:t,isPresent:n,custom:i,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return _.useMemo(()=>{u.forEach((p,v)=>u.set(v,!1))},[n]),Q.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=y.jsx(wI,{isPresent:n,anchorX:c,children:e})),y.jsx(Ra.Provider,{value:m,children:e})};function TI(){return new Map}function Ov(e=!0){const t=_.useContext(Ra);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=_.useId();_.useEffect(()=>{if(e)return i(o)},[e]);const a=_.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const ja=e=>e.key||"";function _v(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const vn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Ov(a),h=_.useMemo(()=>_v(e),[e]),m=a&&!u?[]:h.map(ja),p=_.useRef(!0),v=_.useRef(h),S=bf(()=>new Map),[x,T]=_.useState(h),[b,C]=_.useState(h);Mv(()=>{p.current=!1,v.current=h;for(let A=0;A<b.length;A++){const D=ja(b[A]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[b,m.length,m.join("-")]);const E=[];if(h!==x){let A=[...h];for(let D=0;D<b.length;D++){const R=b[D],F=ja(R);m.includes(F)||(A.splice(D,0,R),E.push(R))}return o==="wait"&&E.length&&(A=E),C(_v(A)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&b.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:$}=_.useContext(xf);return y.jsx(y.Fragment,{children:b.map(A=>{const D=ja(A),R=a&&!u?!1:h===b||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let B=!0;S.forEach(Z=>{Z||(B=!1)}),B&&($==null||$(),C(v.current),a&&(d==null||d()),r&&r())};return y.jsx(SI,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:A},D)})})},kt=e=>e;let rs=kt,Er=kt;process.env.NODE_ENV!=="production"&&(rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Er=(e,t)=>{if(!e)throw new Error(t)});const EI={useManualTiming:!1},Fa=["read","resolveKeyframes","update","preRender","render","postRender"],Iv={value:null};function CI(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,p=!1,v=!1)=>{const x=v&&i?n:r;return p&&a.add(m),x.has(m)||x.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&&Iv.value&&Iv.value.frameloop[t].push(u),u=0,n.clear(),i=!1,o&&(o=!1,h.process(m))}};return h}const PI=40;function $v(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Fa.reduce((b,C)=>(b[C]=CI(o,t?C:void 0),b),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,v=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,PI),1),i.timestamp=b,i.isProcessing=!0,c.process(i),u.process(i),d.process(i),h.process(i),m.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},S=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:Fa.reduce((b,C)=>{const E=a[C];return b[C]=($,A=!1,D=!1)=>(n||S(),E.schedule($,A,D)),b},{}),cancel:b=>{for(let C=0;C<Fa.length;C++)a[Fa[C]].cancel(b)},state:i,steps:a}}const{schedule:qe,cancel:Cr,state:vt,steps:Tf}=$v(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Dv=_.createContext({strict:!1}),Nv={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"]},is={};for(const e in Nv)is[e]={isEnabled:t=>Nv[e].some(n=>!!t[n])};function AI(e){for(const t in e)is[t]={...is[t],...e[t]}}const MI=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 Va(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||MI.has(e)}let kv=e=>!Va(e);function OI(e){e&&(kv=t=>t.startsWith("on")?!Va(t):e(t))}try{OI(require("@emotion/is-prop-valid").default)}catch{}function _I(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kv(i)||n===!0&&Va(i)||!t&&!Va(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Lv=new Set;function Ba(e,t,n){e||Lv.has(t)||(console.warn(t),Lv.add(t))}function II(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ba(!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 Wa=_.createContext({});function Ua(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function go(e){return typeof e=="string"||Array.isArray(e)}const Ef=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cf=["initial",...Ef];function za(e){return Ua(e.animate)||Cf.some(t=>go(e[t]))}function Rv(e){return!!(za(e)||e.variants)}function $I(e,t){if(za(e)){const{initial:n,animate:r}=e;return{initial:n===!1||go(n)?n:void 0,animate:go(r)?r:void 0}}return e.inherit!==!1?t:{}}function DI(e){const{initial:t,animate:n}=$I(e,_.useContext(Wa));return _.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const NI=Symbol.for("motionComponentSymbol");function ss(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kI(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ss(n)&&(n.current=r))},[t])}const{schedule:Pf}=$v(queueMicrotask,!1),Af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Fv="data-"+Af("framerAppearId"),Vv=_.createContext({});function LI(e,t,n,r,i){var o,a;const{visualElement:c}=_.useContext(Wa),u=_.useContext(Dv),d=_.useContext(Ra),h=_.useContext(Sf).reducedMotion,m=_.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 p=m.current,v=_.useContext(Vv);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&RI(m.current,n,i,v);const S=_.useRef(!1);_.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const x=n[Fv],T=_.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,x)));return Mv(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Pf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,x)}),T.current=!1))}),p}function RI(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:Bv(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&ss(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function Bv(e){if(e)return e.options.allowProjection!==!1?e.projection:Bv(e.parent)}function jI({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&AI(e);function c(d,h){let m;const p={..._.useContext(Sf),...d,layoutId:FI(d)},{isStatic:v}=p,S=DI(d),x=r(d,v);if(!v&&wf){VI(p,e);const T=BI(p);m=T.MeasureLayout,S.visualElement=LI(i,x,p,t,T.ProjectionNode)}return y.jsxs(Wa.Provider,{value:S,children:[m&&S.visualElement?y.jsx(m,{visualElement:S.visualElement,...p}):null,n(i,d,kI(x,S.visualElement,h),x,v,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=_.forwardRef(c);return u[NI]=i,u}function FI({layoutId:e}){const t=_.useContext(xf).id;return t&&e!==void 0?t+"-"+e:e}function VI(e,t){const n=_.useContext(Dv).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?rs(!1,r):Er(!1,r)}}function BI(e){const{drag:t,layout:n}=is;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 Wv=e=>t=>typeof t=="string"&&t.startsWith(e),Mf=Wv("--"),WI=Wv("var(--"),Of=e=>WI(e)?UI.test(e.split("/*")[0].trim()):!1,UI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yo={};function zI(e){for(const t in e)yo[t]=e[t],Mf(t)&&(yo[t].isCSSVariable=!0)}const os=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],li=new Set(os);function Uv(e,{layout:t,layoutId:n}){return li.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yo[e]||e==="opacity")}const Et=e=>!!(e&&e.getVelocity),zv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zn=(e,t,n)=>n>t?t:n<e?e:n,as={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...as,transform:e=>Zn(0,1,e)},Ga={...as,default:1},xo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=xo("deg"),kn=xo("%"),Se=xo("px"),GI=xo("vh"),YI=xo("vw"),Gv={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},HI={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},qI={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:Ga,scaleX:Ga,scaleY:Ga,scaleZ:Ga,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:vo,originX:Gv,originY:Gv,originZ:Se},Yv={...as,transform:Math.round},_f={...HI,...qI,zIndex:Yv,size:Se,fillOpacity:vo,strokeOpacity:vo,numOctaves:Yv},KI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XI=os.length;function ZI(e,t,n){let r="",i=!0;for(let o=0;o<XI;o++){const a=os[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=zv(c,_f[a]);if(!u){i=!1;const h=KI[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function If(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(li.has(u)){a=!0;continue}else if(Mf(u)){i[u]=d;continue}else{const h=zv(d,_f[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=ZI(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 Hv(e,t,n){for(const r in t)!Et(t[r])&&!Uv(r,n)&&(e[r]=t[r])}function JI({transformTemplate:e},t){return _.useMemo(()=>{const n=$f();return If(n,t,e),Object.assign({},n.vars,n.style)},[t])}function QI(e,t){const n=e.style||{},r={};return Hv(r,n,e),Object.assign(r,JI(e,t)),r}function e6(e,t){const n={},r=QI(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 t6=["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 Df(e){return typeof e!="string"||e.includes("-")?!1:!!(t6.indexOf(e)>-1||/[A-Z]/u.test(e))}const n6={offset:"stroke-dashoffset",array:"stroke-dasharray"},r6={offset:"strokeDashoffset",array:"strokeDasharray"};function i6(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?n6:r6;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function qv(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function s6(e,t,n){const r=qv(t,e.x,e.width),i=qv(n,e.y,e.height);return`${r} ${i}`}function Nf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(If(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v,dimensions:S}=e;p.transform&&(S&&(v.transform=p.transform),delete p.transform),S&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=s6(S,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&i6(p,a,c,u,!1)}const Kv=()=>({...$f(),attrs:{}}),kf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function o6(e,t,n,r){const i=_.useMemo(()=>{const o=Kv();return Nf(o,t,kf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Hv(o,e.style,e),i.style={...o,...i.style}}return i}function a6(e=!1){return(n,r,i,{latestValues:o},a)=>{const u=(Df(n)?o6:e6)(r,o,a,n),d=_I(r,typeof n=="string",e),h=n!==_.Fragment?{...d,...u,ref:i}:{},{children:m}=r,p=_.useMemo(()=>Et(m)?m.get():m,[m]);return _.createElement(n,{...h,children:p})}}function Xv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lf(e,t,n,r){if(typeof t=="function"){const[i,o]=Xv(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]=Xv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Rf=e=>Array.isArray(e),l6=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),c6=e=>Rf(e)?e[e.length-1]||0:e;function Ya(e){const t=Et(e)?e.get():e;return l6(t)?t.toValue():t}function u6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:f6(r,i,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Zv=e=>(t,n)=>{const r=_.useContext(Wa),i=_.useContext(Ra),o=()=>u6(e,t,r,i);return n?o():bf(o)};function f6(e,t,n,r){const i={},o=r(e,{});for(const p in o)i[p]=Ya(o[p]);let{initial:a,animate:c}=e;const u=za(e),d=Rv(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 p=Array.isArray(m)?m:[m];for(let v=0;v<p.length;v++){const S=Lf(e,p[v]);if(S){const{transitionEnd:x,transition:T,...b}=S;for(const C in b){let E=b[C];if(Array.isArray(E)){const $=h?E.length-1:0;E=E[$]}E!==null&&(i[C]=E)}for(const C in x)i[C]=x[C]}}}return i}function jf(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Et(i[a])||t.style&&Et(t.style[a])||Uv(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 d6={useVisualState:Zv({scrapeMotionValuesFromProps:jf,createRenderState:$f})};function Jv(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 Qv(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 e1=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 t1(e,t,n,r){Qv(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(e1.has(i)?i:Af(i),t.attrs[i])}function n1(e,t,n){const r=jf(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const o=os.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const r1=["x","y","width","height","cx","cy","r"],h6={useVisualState:Zv({scrapeMotionValuesFromProps:n1,createRenderState:Kv,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(li.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<r1.length;c++){const u=r1[c];e[u]!==t[u]&&(a=!0)}a&&qe.read(()=>{Jv(n,r),qe.render(()=>{Nf(r,i,kf(n.tagName),e.transformTemplate),t1(n,r)})})}})};function m6(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...Df(r)?h6:d6,preloadedFeatures:e,useRender:a6(i),createVisualElement:t,Component:r};return jI(a)}}function bo(e,t,n){const r=e.getProps();return Lf(r,t,n!==void 0?n:r.custom,e)}function Ff(e,t){return e?e[t]||e.default||e:void 0}const i1=new Set(["width","height","top","left","right","bottom",...os]);function Vf(e,t){e.indexOf(t)===-1&&e.push(t)}function Bf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Wf{constructor(){this.subscriptions=[]}add(t){return Vf(this.subscriptions,t),()=>Bf(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 s1(e,t){return t?e*(1e3/t):0}let Ha;function p6(){Ha=void 0}const Ln={now:()=>(Ha===void 0&&Ln.set(vt.isProcessing||EI.useManualTiming?vt.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(p6)}},o1=30,g6=e=>!isNaN(parseFloat(e));class y6{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=g6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ba(!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 Wf);const r=this.events[t].add(n);return t==="change"?()=>{r(),qe.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>o1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o1);return s1(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 wo(e,t){return new y6(e,t)}function v6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,wo(n))}function x6(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=c6(o[a]);v6(e,a,c)}}function b6(e){return!!(Et(e)&&e.add)}function Uf(e,t){const n=e.getValue("willChange");if(b6(n))return n.add(t)}function a1(e){return e.props[Fv]}function zf(e){let t;return()=>(t===void 0&&(t=e()),t)}const w6=zf(()=>window.ScrollTimeline!==void 0);class S6{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(w6()&&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 T6 extends S6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Rn=e=>e*1e3,Jn=e=>e/1e3;function Gf(e){return typeof e=="function"}function l1(e,t){e.timeline=t,e.onfinish=null}const Yf=e=>Array.isArray(e)&&typeof e[0]=="number",E6={linearEasing:void 0};function C6(e,t){const n=zf(e);return()=>{var r;return(r=E6[t])!==null&&r!==void 0?r:n()}}const qa=C6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ls=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},c1=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ls(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u1(e){return!!(typeof e=="function"&&qa()||!e||typeof e=="string"&&(e in Hf||qa())||Yf(e)||Array.isArray(e)&&e.every(u1))}const So=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:So([0,.65,.55,1]),circOut:So([.55,0,1,.45]),backIn:So([.31,.01,.66,-.59]),backOut:So([.33,1.53,.69,.99])};function f1(e,t){if(e)return typeof e=="function"&&qa()?c1(e,t):Yf(e)?So(e):Array.isArray(e)?e.map(n=>f1(n,t)||Hf.easeOut):Hf[e]}const d1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,P6=1e-7,A6=12;function M6(e,t,n,r,i){let o,a,c=0;do a=t+(n-t)/2,o=d1(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>P6&&++c<A6);return a}function To(e,t,n,r){if(e===t&&n===r)return kt;const i=o=>M6(o,0,1,e,n);return o=>o===0||o===1?o:d1(i(o),t,r)}const h1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,m1=e=>t=>1-e(1-t),p1=To(.33,1.53,.69,.99),qf=m1(p1),g1=h1(qf),y1=e=>(e*=2)<1?.5*qf(e):.5*(2-Math.pow(2,-10*(e-1))),Kf=e=>1-Math.sin(Math.acos(e)),v1=m1(Kf),x1=h1(Kf),b1=e=>/^0[^.\s]+$/u.test(e);function O6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||b1(e):!0}const Eo=e=>Math.round(e*1e5)/1e5,Xf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _6(e){return e==null}const I6=/^(?:#[\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"&&I6.test(n)&&n.startsWith(e)||t&&!_6(n)&&Object.prototype.hasOwnProperty.call(n,t)),w1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(Xf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},$6=e=>Zn(0,255,e),Jf={...as,transform:e=>Math.round($6(e))},ci={test:Zf("rgb","red"),parse:w1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Jf.transform(e)+", "+Jf.transform(t)+", "+Jf.transform(n)+", "+Eo(vo.transform(r))+")"};function D6(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 Qf={test:Zf("#"),parse:D6,transform:ci.transform},cs={test:Zf("hsl","hue"),parse:w1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+kn.transform(Eo(t))+", "+kn.transform(Eo(n))+", "+Eo(vo.transform(r))+")"},Ct={test:e=>ci.test(e)||Qf.test(e)||cs.test(e),parse:e=>ci.test(e)?ci.parse(e):cs.test(e)?cs.parse(e):Qf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ci.transform(e):cs.transform(e)},N6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function k6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Xf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N6))===null||n===void 0?void 0:n.length)||0)>0}const S1="number",T1="color",L6="var",R6="var(",E1="${}",j6=/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 Co(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=t.replace(j6,u=>(Ct.test(u)?(r.color.push(o),i.push(T1),n.push(Ct.parse(u))):u.startsWith(R6)?(r.var.push(o),i.push(L6),n.push(u)):(r.number.push(o),i.push(S1),n.push(parseFloat(u))),++o,E1)).split(E1);return{values:n,split:c,indexes:r,types:i}}function C1(e){return Co(e).values}function P1(e){const{split:t,types:n}=Co(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===S1?o+=Eo(i[a]):c===T1?o+=Ct.transform(i[a]):o+=i[a]}return o}}const F6=e=>typeof e=="number"?0:e;function V6(e){const t=C1(e);return P1(e)(t.map(F6))}const Ar={test:k6,parse:C1,createTransformer:P1,getAnimatableNone:V6},B6=new Set(["brightness","contrast","saturate","opacity"]);function W6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Xf)||[];if(!r)return e;const i=n.replace(r,"");let o=B6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const U6=/\b([a-z-]*)\(.*?\)/gu,ed={...Ar,getAnimatableNone:e=>{const t=e.match(U6);return t?t.map(W6).join(" "):e}},z6={..._f,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:ed,WebkitFilter:ed},A1=e=>z6[e];function M1(e,t){let n=A1(e);return n!==ed&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=new Set(["auto","none","0"]);function Y6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!G6.has(o)&&Co(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=M1(n,i)}const ui=e=>e*180/Math.PI,td=e=>{const t=ui(Math.atan2(e[1],e[0]));return nd(t)},H6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:td,rotateZ:td,skewX:e=>ui(Math.atan(e[1])),skewY:e=>ui(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},nd=e=>(e=e%360,e<0&&(e+=360),e),O1=td,_1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),I1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_1,scaleY:I1,scale:e=>(_1(e)+I1(e))/2,rotateX:e=>nd(ui(Math.atan2(e[6],e[5]))),rotateY:e=>nd(ui(Math.atan2(-e[2],e[0]))),rotateZ:O1,rotate:O1,skewX:e=>ui(Math.atan(e[4])),skewY:e=>ui(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function $1(e){return e.includes("scale")?1:0}function rd(e,t){if(!e||e==="none")return $1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=q6,i=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=H6,i=c}if(!i)return $1(t);const o=r[t],a=i[1].split(",").map(X6);return typeof o=="function"?o(a):a[o]}const K6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return rd(n,t)};function X6(e){return parseFloat(e.trim())}const D1=e=>e===as||e===Se,Z6=new Set(["x","y","z"]),J6=os.filter(e=>!Z6.has(e));function Q6(e){const t=[];return J6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const us={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})=>rd(t,"x"),y:(e,{transform:t})=>rd(t,"y")};us.translateX=us.x,us.translateY=us.y;const fi=new Set;let id=!1,sd=!1;function N1(){if(sd){const e=Array.from(fi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Q6(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)})}sd=!1,id=!1,fi.forEach(e=>e.complete()),fi.clear()}function k1(){fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sd=!0)})}function e$(){k1(),N1()}class od{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?(fi.add(this),id||(id=!0,qe.read(k1),qe.resolveKeyframes(N1))):(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),fi.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fi.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const L1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),t$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function n$(e){const t=t$.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const r$=4;function R1(e,t,n=1){Er(n<=r$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=n$(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return L1(a)?parseFloat(a):a}return Of(i)?R1(i,t,n+1):i}const j1=e=>t=>t.test(e),F1=[as,Se,kn,Pr,YI,GI,{test:e=>e==="auto",parse:e=>e}],V1=e=>F1.find(j1(e));class B1 extends od{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(),Of(d))){const h=R1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!i1.has(r)||t.length!==2)return;const[i,o]=t,a=V1(i),c=V1(o);if(a!==c)if(D1(a)&&D1(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++)O6(t[i])&&r.push(i);r.length&&Y6(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=us[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]=us[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 W1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function i$(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 s$(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=W1(i,t),c=W1(o,t);return rs(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:i$(e)||(n==="spring"||Gf(n))&&r}const o$=e=>e!==null;function Ka(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(o$),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const a$=40;class U1{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>a$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&e$(),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&&!s$(t,r,i,o))if(a)this.options.duration=0;else{u&&u(Ka(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 ad=2e4;function z1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ad;)t+=n,r=e.next(t);return t>=ad?1/0:t}const rt=(e,t,n)=>e+(t-e)*n;function ld(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 l$({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=ld(u,c,e+1/3),o=ld(u,c,e),a=ld(u,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Xa(e,t){return n=>n>0?t:e}const cd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},c$=[Qf,ci,cs],u$=e=>c$.find(t=>t.test(e));function G1(e){const t=u$(e);if(rs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===cs&&(n=l$(n)),n}const Y1=(e,t)=>{const n=G1(e),r=G1(t);if(!n||!r)return Xa(e,t);const i={...n};return o=>(i.red=cd(n.red,r.red,o),i.green=cd(n.green,r.green,o),i.blue=cd(n.blue,r.blue,o),i.alpha=rt(n.alpha,r.alpha,o),ci.transform(i))},f$=(e,t)=>n=>t(e(n)),Po=(...e)=>e.reduce(f$),ud=new Set(["none","hidden"]);function d$(e,t){return ud.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function h$(e,t){return n=>rt(e,t,n)}function fd(e){return typeof e=="number"?h$:typeof e=="string"?Of(e)?Xa:Ct.test(e)?Y1:g$:Array.isArray(e)?H1:typeof e=="object"?Ct.test(e)?Y1:m$:Xa}function H1(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>fd(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function m$(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=fd(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function p$(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 g$=(e,t)=>{const n=Ar.createTransformer(t),r=Co(e),i=Co(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?ud.has(e)&&!i.values.length||ud.has(t)&&!r.values.length?d$(e,t):Po(H1(p$(r,i),i.values),n):(rs(!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.`),Xa(e,t))};function q1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):fd(e)(e,t)}const y$=5;function K1(e,t,n){const r=Math.max(t-y$,0);return s1(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},X1=.001;function v$({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:r=it.mass}){let i,o;rs(e<=Rn(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Zn(it.minDamping,it.maxDamping,a),e=Zn(it.minDuration,it.maxDuration,Jn(e)),a<1?(i=d=>{const h=d*a,m=h*e,p=h-n,v=dd(d,a),S=Math.exp(-m);return X1-p/v*S},o=d=>{const m=d*a*e,p=m*n+n,v=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),x=dd(Math.pow(d,2),a);return(-i(d)+X1>0?-1:1)*((p-v)*S)/x}):(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=b$(i,o,c);if(e=Rn(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 x$=12;function b$(e,t,n){let r=n;for(let i=1;i<x$;i++)r=r-e(r)/t(r);return r}function dd(e,t){return e*Math.sqrt(1-t*t)}const w$=["duration","bounce"],S$=["stiffness","damping","mass"];function Z1(e,t){return t.some(n=>e[n]!==void 0)}function T$(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Z1(e,S$)&&Z1(e,w$))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Zn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:it.mass,stiffness:i,damping:o}}else{const n=v$(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function J1(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:p,isResolvedFromDuration:v}=T$({...n,velocity:-Jn(n.velocity||0)}),S=p||0,x=d/(2*Math.sqrt(u*h)),T=a-o,b=Jn(Math.sqrt(u/h)),C=Math.abs(T)<5;r||(r=C?it.restSpeed.granular:it.restSpeed.default),i||(i=C?it.restDelta.granular:it.restDelta.default);let E;if(x<1){const A=dd(b,x);E=D=>{const R=Math.exp(-x*b*D);return a-R*((S+x*b*T)/A*Math.sin(A*D)+T*Math.cos(A*D))}}else if(x===1)E=A=>a-Math.exp(-b*A)*(T+(S+b*T)*A);else{const A=b*Math.sqrt(x*x-1);E=D=>{const R=Math.exp(-x*b*D),F=Math.min(A*D,300);return a-R*((S+x*b*T)*Math.sinh(F)+A*T*Math.cosh(F))/A}}const $={calculatedDuration:v&&m||null,next:A=>{const D=E(A);if(v)c.done=A>=m;else{let R=0;x<1&&(R=A===0?Rn(S):K1(E,A,D));const F=Math.abs(R)<=r,B=Math.abs(a-D)<=i;c.done=F&&B}return c.value=c.done?a:D,c},toString:()=>{const A=Math.min(z1($),ad),D=c1(R=>$.next(A*R).value,A,30);return A+"ms "+D}};return $}function Q1({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],p={done:!1,value:m},v=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 x=n*t;const T=m+x,b=a===void 0?T:a(T);b!==T&&(x=b-m);const C=F=>-x*Math.exp(-F/r),E=F=>b+C(F),$=F=>{const B=C(F),Z=E(F);p.done=Math.abs(B)<=d,p.value=p.done?b:Z};let A,D;const R=F=>{v(p.value)&&(A=F,D=J1({keyframes:[p.value,S(p.value)],velocity:K1(E,F,p.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let B=!1;return!D&&A===void 0&&(B=!0,$(F),R(F)),A!==void 0&&F>=A?D.next(F-A):(!B&&$(F),p)}}}const E$=To(.42,0,1,1),C$=To(0,0,.58,1),ex=To(.42,0,.58,1),P$=e=>Array.isArray(e)&&typeof e[0]!="number",tx={linear:kt,easeIn:E$,easeInOut:ex,easeOut:C$,circIn:Kf,circInOut:x1,circOut:v1,backIn:qf,backInOut:g1,backOut:p1,anticipate:y1},nx=e=>{if(Yf(e)){Er(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return To(t,n,r,i)}else if(typeof e=="string")return Er(tx[e]!==void 0,`Invalid easing type '${e}'`),tx[e];return e};function A$(e,t,n){const r=[],i=n||q1,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]||kt:t;c=Po(u,c)}r.push(c)}return r}function M$(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=A$(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 p=ls(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Zn(e[0],e[o-1],h)):d}function O$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ls(0,t,r);e.push(rt(n,1,i))}}function _$(e){const t=[0];return O$(t,e.length-1),t}function I$(e,t){return e.map(n=>n*t)}function $$(e,t){return e.map(()=>t||ex).splice(0,e.length-1)}function Ao({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=P$(r)?r.map(nx):nx(r),o={done:!1,value:t[0]},a=I$(n&&n.length===t.length?n:_$(t),e),c=M$(a,t,{ease:Array.isArray(i)?i:$$(t,i)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const D$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>qe.update(t,!0),stop:()=>Cr(t),now:()=>vt.isProcessing?vt.timestamp:Ln.now()}},N$={decay:Q1,inertia:Q1,tween:Ao,keyframes:Ao,spring:J1},k$=e=>e/100;class hd extends U1{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)||od,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=Gf(n)?n:N$[n]||Ao;let u,d;process.env.NODE_ENV!=="production"&&c!==Ao&&Er(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==Ao&&typeof t[0]!="number"&&(u=Po(k$,q1(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=z1(h));const{calculatedDuration:m}=h,p=m+i,v=p*(r+1)-i;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:v}}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:p,repeat:v,repeatType:S,repeatDelay:x,onUpdate:T}=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 b=this.currentTime-p*(this.speed>=0?1:-1),C=this.speed>=0?b<0:b>h;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let E=this.currentTime,$=o;if(v){const F=Math.min(this.currentTime,h)/m;let B=Math.floor(F),Z=F%1;!Z&&F>=1&&(Z=1),Z===1&&B--,B=Math.min(B,v+1),!!(B%2)&&(S==="reverse"?(Z=1-Z,x&&(Z-=x/m)):S==="mirror"&&($=a)),E=Zn(0,1,Z)*m}const A=C?{done:!1,value:u[0]}:$.next(E);c&&(A.value=c(A.value));let{done:D}=A;!C&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&i!==void 0&&(A.value=Ka(u,this.options,i)),T&&T(A.value),R&&this.finish(),A}get duration(){const{resolved:t}=this;return t?Jn(t.calculatedDuration):0}get time(){return Jn(this.currentTime)}set time(t){t=Rn(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=Jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=D$,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 L$=new Set(["opacity","clipPath","filter","transform"]);function R$(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=f1(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 j$=zf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Za=10,F$=2e4;function V$(e){return Gf(e.type)||e.type==="spring"||!u1(e.ease)}function B$(e,t){const n=new hd({...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<F$;)r=n.sample(o),i.push(r.value),o+=Za;return{times:void 0,keyframes:i,duration:o-Za,ease:"linear"}}const rx={anticipate:y1,backInOut:g1,circInOut:x1};function W$(e){return e in rx}class ix extends U1{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new B1(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"&&qa()&&W$(o)&&(o=rx[o]),V$(this.options)){const{onComplete:m,onUpdate:p,motionValue:v,element:S,...x}=this.options,T=B$(t,x);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,o=T.ease,a="keyframes"}const h=R$(c.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(l1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ka(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 Jn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Jn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Rn(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 kt;const{animation:r}=n;l1(r,t)}return kt}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:p,...v}=this.options,S=new hd({...v,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),x=Rn(this.time);d.setWithVelocity(S.sample(x-Za).value,S.sample(x).value,Za)}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 j$()&&r&&L$.has(r)&&(r!=="transform"||!d)&&!u&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const U$={type:"spring",stiffness:500,damping:25,restSpeed:10},z$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),G$={type:"keyframes",duration:.8},Y$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H$=(e,{keyframes:t})=>t.length>2?G$:li.has(e)?e.startsWith("scale")?z$(t[1]):U$:Y$;function q$({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 md=(e,t,n,r={},i,o)=>a=>{const c=Ff(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Rn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:i};q$(c)||(h={...h,...H$(e,h)}),h.duration&&(h.duration=Rn(h.duration)),h.repeatDelay&&(h.repeatDelay=Rn(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 p=Ka(h.keyframes,c);if(p!==void 0)return qe.update(()=>{h.onUpdate(p),h.onComplete()}),new T6([])}return!o&&ix.supports(h)?new ix(h):new hd(h)};function K$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function sx(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 p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),v=u[m];if(v===void 0||h&&K$(h,m))continue;const S={delay:n,...Ff(a||{},m)};let x=!1;if(window.MotionHandoffAnimation){const b=a1(e);if(b){const C=window.MotionHandoffAnimation(b,m,qe);C!==null&&(S.startTime=C,x=!0)}}Uf(e,m),p.start(md(m,p,v,e.shouldReduceMotion&&i1.has(m)?{type:!1}:S,e,x));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{qe.update(()=>{c&&x6(e,c)})}),d}function pd(e,t,n={}){var r;const i=bo(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(sx(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return X$(e,t,h+d,m,p,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 X$(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(Z$).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(pd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Z$(e,t){return e.sortNodePosition(t)}function J$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>pd(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=pd(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(sx(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ox(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 Q$=Cf.length;function ax(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ax(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Q$;n++){const r=Cf[n],i=e.props[r];(go(i)||i===!1)&&(t[r]=i)}return t}const eD=[...Ef].reverse(),tD=Ef.length;function nD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>J$(e,n,r)))}function rD(e){let t=nD(e),n=lx(),r=!0;const i=u=>(d,h)=>{var m;const p=bo(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:v,transitionEnd:S,...x}=p;d={...d,...x,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=ax(e.parent)||{},m=[],p=new Set;let v={},S=1/0;for(let T=0;T<tD;T++){const b=eD[T],C=n[b],E=d[b]!==void 0?d[b]:h[b],$=go(E),A=b===u?C.isActive:null;A===!1&&(S=T);let D=E===h[b]&&E!==d[b]&&$;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),C.protectedKeys={...v},!C.isActive&&A===null||!E&&!C.prevProp||Ua(E)||typeof E=="boolean")continue;const R=iD(C.prevProp,E);let F=R||b===u&&C.isActive&&!D&&$||T>S&&$,B=!1;const Z=Array.isArray(E)?E:[E];let ee=Z.reduce(i(b),{});A===!1&&(ee={});const{prevResolvedValues:se={}}=C,ge={...se,...ee},le=Y=>{F=!0,p.has(Y)&&(B=!0,p.delete(Y)),C.needsAnimating[Y]=!0;const U=e.getValue(Y);U&&(U.liveStyle=!1)};for(const Y in ge){const U=ee[Y],V=se[Y];if(v.hasOwnProperty(Y))continue;let O=!1;Rf(U)&&Rf(V)?O=!ox(U,V):O=U!==V,O?U!=null?le(Y):p.add(Y):U!==void 0&&p.has(Y)?le(Y):C.protectedKeys[Y]=!0}C.prevProp=E,C.prevResolvedValues=ee,C.isActive&&(v={...v,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||B)&&m.push(...Z.map(Y=>({animation:Y,options:{type:b}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const b=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(T.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),E=e.getValue(b);E&&(E.liveStyle=!0),T[b]=C??null}),m.push({animation:T})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?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(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(u,d)}),n[u].isActive=d;const m=a(u);for(const p in n)n[p].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=lx(),r=!0}}}function iD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ox(t,e):!1}function di(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lx(){return{animate:di(!0),whileInView:di(),whileHover:di(),whileTap:di(),whileDrag:di(),whileFocus:di(),exit:di()}}class Mr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sD extends Mr{constructor(t){super(t),t.animationState||(t.animationState=rD(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 oD=0;class aD extends Mr{constructor(){super(...arguments),this.id=oD++}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 lD={animation:{Feature:sD},exit:{Feature:aD}},xn={x:!1,y:!1};function cx(){return xn.x||xn.y}function cD(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function Mo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const gd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Oo(e){return{point:{x:e.pageX,y:e.pageY}}}const uD=e=>t=>gd(t)&&e(t,Oo(t));function _o(e,t,n,r){return Mo(e,t,uD(n),r)}function ux({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function fD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dD(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 fx=1e-4,hD=1-fx,mD=1+fx,dx=.01,pD=0-dx,gD=0+dx;function _t(e){return e.max-e.min}function yD(e,t,n){return Math.abs(e-t)<=n}function hx(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>=hD&&e.scale<=mD||isNaN(e.scale))&&(e.scale=1),(e.translate>=pD&&e.translate<=gD||isNaN(e.translate))&&(e.translate=0)}function Io(e,t,n,r){hx(e.x,t.x,n.x,r?r.originX:void 0),hx(e.y,t.y,n.y,r?r.originY:void 0)}function mx(e,t,n){e.min=n.min+t.min,e.max=e.min+_t(t)}function vD(e,t,n){mx(e.x,t.x,n.x),mx(e.y,t.y,n.y)}function px(e,t,n){e.min=t.min-n.min,e.max=e.min+_t(t)}function $o(e,t,n){px(e.x,t.x,n.x),px(e.y,t.y,n.y)}const gx=()=>({translate:0,scale:1,origin:0,originPoint:0}),fs=()=>({x:gx(),y:gx()}),yx=()=>({min:0,max:0}),lt=()=>({x:yx(),y:yx()});function rn(e){return[e("x"),e("y")]}function yd(e){return e===void 0||e===1}function vd({scale:e,scaleX:t,scaleY:n}){return!yd(e)||!yd(t)||!yd(n)}function hi(e){return vd(e)||vx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vx(e){return xx(e.x)||xx(e.y)}function xx(e){return e&&e!=="0%"}function Ja(e,t,n){const r=e-n,i=t*r;return n+i}function bx(e,t,n,r,i){return i!==void 0&&(e=Ja(e,i,r)),Ja(e,n,r)+t}function xd(e,t=0,n=1,r,i){e.min=bx(e.min,t,n,r,i),e.max=bx(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xd(e.x,t.translate,t.scale,t.originPoint),xd(e.y,n.translate,n.scale,n.originPoint)}const Sx=.999999999999,Tx=1.0000000000001;function xD(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&&hs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wx(e,a)),r&&hi(o.latestValues)&&hs(e,o.latestValues))}t.x<Tx&&t.x>Sx&&(t.x=1),t.y<Tx&&t.y>Sx&&(t.y=1)}function ds(e,t){e.min=e.min+t,e.max=e.max+t}function Ex(e,t,n,r,i=.5){const o=rt(e.min,e.max,i);xd(e,t,n,o,r)}function hs(e,t){Ex(e.x,t.x,t.scaleX,t.scale,t.originX),Ex(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cx(e,t){return ux(dD(e.getBoundingClientRect(),t))}function bD(e,t,n){const r=Cx(e,n),{scroll:i}=t;return i&&(ds(r.x,i.offset.x),ds(r.y,i.offset.y)),r}const Px=({current:e})=>e?e.ownerDocument.defaultView:null,Ax=(e,t)=>Math.abs(e-t);function wD(e,t){const n=Ax(e.x,t.x),r=Ax(e.y,t.y);return Math.sqrt(n**2+r**2)}class Mx{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=wd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=wD(m.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:S}=m,{timestamp:x}=vt;this.history.push({...S,timestamp:x});const{onStart:T,onMove:b}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=bd(p,this.transformPagePoint),qe.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:v,onSessionEnd:S,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=wd(m.type==="pointercancel"?this.lastMoveEventInfo:bd(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(m,T),S&&S(m,T)},!gd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Oo(t),c=bd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=vt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,wd(c,this.history)),this.removeListeners=Po(_o(this.contextWindow,"pointermove",this.handlePointerMove),_o(this.contextWindow,"pointerup",this.handlePointerUp),_o(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function Ox(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:Ox(e,_x(t)),offset:Ox(e,SD(t)),velocity:TD(t,.1)}}function SD(e){return e[0]}function _x(e){return e[e.length-1]}function TD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=_x(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Rn(t)));)n--;if(!r)return{x:0,y:0};const o=Jn(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 ED(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 Ix(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 CD(e,{top:t,left:n,bottom:r,right:i}){return{x:Ix(e.x,n,i),y:Ix(e.y,t,r)}}function $x(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 PD(e,t){return{x:$x(e.x,t.x),y:$x(e.y,t.y)}}function AD(e,t){let n=.5;const r=_t(e),i=_t(t);return i>r?n=ls(t.min,t.max-r,e.min):r>i&&(n=ls(e.min,e.max-i,t.min)),Zn(0,1,n)}function MD(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 Sd=.35;function OD(e=Sd){return e===!1?e=0:e===!0&&(e=Sd),{x:Dx(e,"left","right"),y:Dx(e,"top","bottom")}}function Dx(e,t,n){return{min:Nx(e,t),max:Nx(e,n)}}function Nx(e,t){return typeof e=="number"?e:e[t]||0}const _D=new WeakMap;class ID{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(Oo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:v,onDragStart:S}=this.getProps();if(p&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cD(p),!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(T=>{let b=this.getAxisMotionValue(T).get()||0;if(kn.test(b)){const{projection:C}=this.visualElement;if(C&&C.layout){const E=C.layout.layoutBox[T];E&&(b=_t(E)*(parseFloat(b)/100))}}this.originPoint[T]=b}),S&&qe.postRender(()=>S(h,m)),Uf(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:S,onDrag:x}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(v&&this.currentDirection===null){this.currentDirection=$D(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),x&&x(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 Mx(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:Px(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&&qe.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||!Qa(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ED(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&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=CD(i.layoutBox,n):this.constraints=!1,this.elastic=OD(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=MD(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ss(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=bD(r,i.root,this.visualElement.getTransformPagePoint());let a=PD(i.layout.layoutBox,o);if(n){const c=n(fD(a));this.hasMutatedConstraints=!!c,c&&(a=ux(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(!Qa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:v,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 Uf(this.visualElement,t),r.start(md(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(!Qa(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(!ss(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]=AD({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(!Qa(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;_D.set(this.visualElement,this);const t=this.visualElement.current,n=_o(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ss(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()),qe.read(r);const a=Mo(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=Sd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $D(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class DD extends Mr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new ID(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kt}unmount(){this.removeGroupControls(),this.removeListeners()}}const kx=e=>(t,n)=>{e&&qe.postRender(()=>e(t,n))};class ND extends Mr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Mx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Px(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:kx(t),onStart:kx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&qe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=_o(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 el={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Lx(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=Lx(e,t.target.x),r=Lx(e,t.target.y);return`${n}% ${r}%`}},kD={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 LD extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;zI(RD),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()})),el.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()||qe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pf.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 Rx(e){const[t,n]=Ov(),r=_.useContext(xf);return y.jsx(LD,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(Vv),isPresent:t,safeToRemove:n})}const RD={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:kD};function jD(e,t,n){const r=Et(e)?e:wo(e);return r.start(md("",r,t,n)),r.animation}function FD(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VD=(e,t)=>e.depth-t.depth;class BD{constructor(){this.children=[],this.isDirty=!1}add(t){Vf(this.children,t),this.isDirty=!0}remove(t){Bf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VD),this.isDirty=!1,this.children.forEach(t)}}function WD(e,t){const n=Ln.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Cr(r),e(o-t))};return qe.read(r,!0),()=>Cr(r)}const jx=["TopLeft","TopRight","BottomLeft","BottomRight"],UD=jx.length,Fx=e=>typeof e=="string"?parseFloat(e):e,Vx=e=>typeof e=="number"||Se.test(e);function zD(e,t,n,r,i,o){i?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,GD(r)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,YD(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<UD;a++){const c=`border${jx[a]}Radius`;let u=Bx(t,c),d=Bx(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Vx(u)===Vx(d)?(e[c]=Math.max(rt(Fx(u),Fx(d),r),0),(kn.test(d)||kn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,r))}function Bx(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GD=Wx(0,.5,v1),YD=Wx(.5,.95,kt);function Wx(e,t,n){return r=>r<e?0:r>t?1:n(ls(e,t,r))}function Ux(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Ux(e.x,t.x),Ux(e.y,t.y)}function zx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gx(e,t,n,r,i){return e-=t,e=Ja(e,1/n,r),i!==void 0&&(e=Ja(e,1/i,r)),e}function HD(e,t=0,n=1,r=.5,i,o=e,a=e){if(kn.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=Gx(e.min,t,n,c,i),e.max=Gx(e.max,t,n,c,i)}function Yx(e,t,[n,r,i],o,a){HD(e,t[n],t[r],t[i],t.scale,o,a)}const qD=["x","scaleX","originX"],KD=["y","scaleY","originY"];function Hx(e,t,n,r){Yx(e.x,t,qD,n?n.x:void 0,r?r.x:void 0),Yx(e.y,t,KD,n?n.y:void 0,r?r.y:void 0)}function qx(e){return e.translate===0&&e.scale===1}function Kx(e){return qx(e.x)&&qx(e.y)}function Xx(e,t){return e.min===t.min&&e.max===t.max}function XD(e,t){return Xx(e.x,t.x)&&Xx(e.y,t.y)}function Zx(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jx(e,t){return Zx(e.x,t.x)&&Zx(e.y,t.y)}function Qx(e){return _t(e.x)/_t(e.y)}function eb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZD{constructor(){this.members=[]}add(t){Vf(this.members,t),t.scheduleRender()}remove(t){if(Bf(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 JD(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:p,skewX:v,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}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 Td=["","X","Y","Z"],QD={visibility:"hidden"},tb=1e3;let e5=0;function Ed(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=a1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nb(r)}function rb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=t==null?void 0:t()){this.id=e5++,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(r5),this.nodes.forEach(l5),this.nodes.forEach(c5),this.nodes.forEach(i5)},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 BD)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Wf),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=FD(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 p=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=WD(p,250),el.hasAnimatedSinceResize&&(el.hasAnimatedSinceResize=!1,this.nodes.forEach(sb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||m5,{onLayoutAnimationStart:T,onLayoutAnimationComplete:b}=h.getProps(),C=!this.targetLayout||!Jx(this.targetLayout,S),E=!p&&v;if(this.options.layoutRoot||this.resumeFrom||E||p&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,E);const $={...Ff(x,"layout"),onPlay:T,onComplete:b};(h.shouldReduceMotion||this.options.layoutRoot)&&($.delay=0,$.type=!1),this.startAnimation($)}else p||sb(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(u5),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&&nb(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(ib);return}this.isUpdating||this.nodes.forEach(o5),this.isUpdating=!1,this.nodes.forEach(a5),this.nodes.forEach(t5),this.nodes.forEach(n5),this.clearAllSnapshots();const c=Ln.now();vt.delta=Zn(0,1e3/60,c-vt.timestamp),vt.timestamp=c,vt.isProcessing=!0,Tf.update.process(vt),Tf.preRender.process(vt),Tf.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s5),this.sharedNodes.forEach(f5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qe.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&&!Kx(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hi(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)),p5(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(g5))){const{scroll:h}=this.root;h&&(ds(u.x,h.offset.x),ds(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:p}=h;h!==this.root&&m&&p.layoutScroll&&(m.wasRoot&&sn(u,a),ds(u.x,m.offset.x),ds(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&&hs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hi(h.latestValues)&&hs(u,h.latestValues)}return hi(this.latestValues)&&hs(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||!hi(d.latestValues))continue;vd(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Hx(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hi(this.latestValues)&&Hx(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:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.layout.layoutBox,v.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(),vD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),wx(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),$o(this.relativeTargetOrigin,this.target,v.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||vd(this.parent.latestValues)||vx(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 p=this.treeScale.x,v=this.treeScale.y;xD(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():(zx(this.prevProjectionDelta.x,this.projectionDelta.x),zx(this.prevProjectionDelta.y,this.projectionDelta.y)),Io(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!eb(this.projectionDelta.x,this.prevProjectionDelta.x)||!eb(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=fs(),this.projectionDelta=fs(),this.projectionDeltaWithTransform=fs()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=fs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),v=u?u.source:void 0,S=this.layout?this.layout.source:void 0,x=v!==S,T=this.getStack(),b=!T||T.members.length<=1,C=!!(x&&!b&&this.options.crossfade===!0&&!this.path.some(h5));this.animationProgress=0;let E;this.mixTargetDelta=$=>{const A=$/1e3;ob(m.x,a.x,A),ob(m.y,a.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($o(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d5(this.relativeTarget,this.relativeTargetOrigin,p,A),E&&XD(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=lt()),sn(E,this.relativeTarget)),x&&(this.animationValues=h,zD(h,d,this.latestValues,A,C,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qe.update(()=>{el.hasAnimatedSinceResize=!0,this.currentAnimation=jD(0,tb,{...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(tb),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&&fb(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 p=_t(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+p}sn(c,u),hs(c,h),Io(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ZD),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&&Ed("z",a,d,this.animationValues);for(let h=0;h<Td.length;h++)Ed(`rotate${Td[h]}`,a,d,this.animationValues),Ed(`skew${Td[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 QD;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ya(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 x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=Ya(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hi(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=JD(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x:v,y:S}=this.projectionDelta;d.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,m.animationValues?d.opacity=m===this?(u=(c=p.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:d.opacity=m===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in yo){if(p[x]===void 0)continue;const{correct:T,applyTo:b,isCSSVariable:C}=yo[x],E=d.transform==="none"?p[x]:T(p[x],m);if(b){const $=b.length;for(let A=0;A<$;A++)d[b[A]]=E}else C?this.options.visualElement.renderState.vars[x]=E:d[x]=E}return this.options.layoutId&&(d.pointerEvents=m===this?Ya(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(ib),this.root.sharedNodes.clear()}}}function t5(e){e.updateLayout()}function n5(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 p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(p);p.min=r[m].min,p.max=p.min+v}):fb(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],v=_t(r[m]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+v)});const c=fs();Io(c,r,n.layoutBox);const u=fs();a?Io(u,e.applyTransform(i,!0),n.measuredBox):Io(u,r,n.layoutBox);const d=!Kx(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:v}=m;if(p&&v){const S=lt();$o(S,n.layoutBox,p.layoutBox);const x=lt();$o(x,r,v.layoutBox),Jx(S,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,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 r5(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 i5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s5(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function o5(e){e.isLayoutDirty=!1}function a5(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function l5(e){e.resolveTargetDelta()}function c5(e){e.calcProjection()}function u5(e){e.resetSkewAndRotation()}function f5(e){e.removeLeadSnapshot()}function ob(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 ab(e,t,n,r){e.min=rt(t.min,n.min,r),e.max=rt(t.max,n.max,r)}function d5(e,t,n,r){ab(e.x,t.x,n.x,r),ab(e.y,t.y,n.y,r)}function h5(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const m5={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cb=lb("applewebkit/")&&!lb("chrome/")?Math.round:kt;function ub(e){e.min=cb(e.min),e.max=cb(e.max)}function p5(e){ub(e.x),ub(e.y)}function fb(e,t,n){return e==="position"||e==="preserve-aspect"&&!yD(Qx(t),Qx(n),.2)}function g5(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const y5=rb({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},db=rb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new y5({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),v5={pan:{Feature:ND},drag:{Feature:DD,ProjectionNode:db,MeasureLayout:Rx}};function x5(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 hb(e,t){const n=x5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function mb(e){return!(e.pointerType==="touch"||cx())}function b5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{if(!mb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{mb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,i)};return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}function pb(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&&qe.postRender(()=>o(t,Oo(t)))}class w5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=b5(t,(n,r)=>(pb(this.node,r,"Start"),i=>pb(this.node,i,"End"))))}unmount(){}}class S5 extends Mr{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=Po(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const gb=(e,t)=>t?e===t?!0:gb(e,t.parentElement):!1,T5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function E5(e){return T5.has(e.tagName)||e.tabIndex!==-1}const No=new WeakSet;function yb(e){return t=>{t.key==="Enter"&&e(t)}}function Pd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const C5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yb(()=>{if(No.has(n))return;Pd(n,"down");const i=yb(()=>{Pd(n,"up")}),o=()=>Pd(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 vb(e){return gd(e)&&!cx()}function P5(e,t,n={}){const[r,i,o]=hb(e,n),a=c=>{const u=c.currentTarget;if(!vb(c)||No.has(u))return;No.add(u);const d=t(u,c),h=(v,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!vb(v)||!No.has(u))&&(No.delete(u),typeof d=="function"&&d(v,{success:S}))},m=v=>{h(v,u===window||u===document||n.useGlobalTarget||gb(u,v.target))},p=v=>{h(v,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",p,i)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c instanceof HTMLElement&&(c.addEventListener("focus",d=>C5(d,i)),!E5(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function xb(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&&qe.postRender(()=>o(t,Oo(t)))}class A5 extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=P5(t,(n,r)=>(xb(this.node,r,"Start"),(i,{success:o})=>xb(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ad=new WeakMap,Md=new WeakMap,M5=e=>{const t=Ad.get(e.target);t&&t(e)},O5=e=>{e.forEach(M5)};function _5({root:e,...t}){const n=e||document;Md.has(n)||Md.set(n,{});const r=Md.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(O5,{root:e,...t})),r[i]}function I5(e,t,n){const r=_5(t);return Ad.set(e,n),r.observe(e),()=>{Ad.delete(e),r.unobserve(e)}}const $5={some:0,all:1};class D5 extends Mr{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:$5[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(),p=d?h:m;p&&p(u)};return I5(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(N5(t,n))&&this.startObserver()}unmount(){}}function N5({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const k5={inView:{Feature:D5},tap:{Feature:A5},focus:{Feature:S5},hover:{Feature:w5}},L5={layout:{ProjectionNode:db,MeasureLayout:Rx}},Od={current:null},bb={current:!1};function R5(){if(bb.current=!0,!!wf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Od.current=e.matches;e.addListener(t),t()}else Od.current=!1}const j5=[...F1,Ct,Ar],F5=e=>j5.find(j1(e)),V5=new WeakMap;function B5(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"&&Ba(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,wo(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,wo(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W5{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=od,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 v=Ln.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,qe.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=za(n),this.isVariantNode=Rv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const S=p[v];u[v]!==void 0&&Et(S)&&S.set(u[v],!1)}}mount(t){this.current=t,V5.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)),bb.current||R5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Od.current,process.env.NODE_ENV!=="production"&&Ba(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=li.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&qe.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 is){const n=is[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<wb.length;r++){const i=wb[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=B5(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=wo(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"&&(L1(i)||b1(i))?i=parseFloat(i):!F5(i)&&Ar.test(n)&&(i=M1(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=Lf(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 Wf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Sb extends W5{constructor(){super(...arguments),this.KeyframeResolver=B1}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 U5(e){return window.getComputedStyle(e)}class z5 extends Sb{constructor(){super(...arguments),this.type="html",this.renderInstance=Qv}readValueFromInstance(t,n){if(li.has(n))return K6(t,n);{const r=U5(t),i=(Mf(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cx(t,n)}build(t,n,r){If(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jf(t,n,r)}}class G5 extends Sb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Jv(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(li.has(n)){const r=A1(n);return r&&r.default||0}return n=e1.has(n)?n:Af(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return n1(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&qe.postRender(this.updateDimensions)}build(t,n,r){Nf(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){t1(t,n,r,i)}mount(t){this.isSVGTag=kf(t.tagName),super.mount(t)}}const Y5=(e,t)=>Df(e)?new G5(t):new z5(t,{allowProjection:e!==_.Fragment}),H5=m6({...lD,...k5,...v5,...L5},Y5),Ge=II(H5),_d={defaultColorScheme:"aqua",t:e=>e},Tb=_.createContext(_d),Ue=()=>_.useContext(Tb),q5={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function K5(e,t){const[n,r]=_.useState([]),i=_.useCallback(({key:h,value:m,label:p,type:v,icon:S,options:x})=>{if(n.find(C=>C.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let b;typeof t=="string"?b=q5[t]:b=t[h]||t[h],r(C=>[...C,{key:h,value:m,label:p,type:v,icon:S,options:x,fn:b}])},[t,n]),o=_.useCallback(({key:h,value:m})=>{r(p=>p.map(v=>v.key===h?{...v,value:m}:v))},[]),a=_.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=_.useCallback(()=>{r([])},[]),u=_.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=_.useMemo(()=>({addFilter:i,updateFilter:o,removeFilter:a,clearFilters:c,activeFilters:n.map(h=>({key:h.key,value:h.value,label:h.label,type:h.type,icon:h.icon,options:h.options}))}),[i,o,a,c,n]);return{data:u,filterControl:d}}const Eb=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={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}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()};return y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-16 p-32",children:[y.jsxs("div",{className:"flex justify-between items-center gap-16",children:[y.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),y.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),y.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&y.jsx(wi,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),i&&y.jsx(wi,{onClick:h,className:"px-24 py-16 text-lg!",children:c("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 X5={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"]},Z5={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"]},J5={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"]},Q5={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"]},e3={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 tl(){return typeof window<"u"}function ms(e){return Cb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Cb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cb(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Rt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Id(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ko(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 t3(e){return["table","td","th"].includes(ms(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $d(e){const t=rl(),n=Ke(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 n3(e){let t=er(e);for(;Rt(t)&&!Qn(t);){if($d(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(ms(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Id(e)&&e.host||jn(e);return Id(t)?t.host:t}function Pb(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&ko(t)?t:Pb(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],ko(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ab(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 Lo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Mb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ob(){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 r3(e){return o3()?!1:!_b()&&e.width===0&&e.height===0||_b()&&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 i3(){return/apple/i.test(navigator.vendor)}function _b(){const e=/android/i;return e.test(Mb())||e.test(Ob())}function s3(){return Mb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function o3(){return Ob().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function a3(e){return"nativeEvent"in e}function l3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Nd(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 ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const c3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ib(e){return Rt(e)&&e.matches(c3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),u3={left:"right",right:"left",bottom:"top",top:"bottom"},f3={start:"end",end:"start"};function kd(e,t,n){return Yt(e,_r(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function $b(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Rd(e){return $b(pi(e))}function d3(e,t,n){n===void 0&&(n=!1);const r=ys(e),i=Rd(e),o=Ld(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function h3(e){const t=al(e);return[jd(e),t,jd(t)]}function jd(e){return e.replace(/start|end/g,t=>f3[t])}function m3(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 p3(e,t,n,r){const i=ys(e);let o=m3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(jd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>u3[t])}function g3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Db(e){return typeof e!="number"?g3(e):{top:e,right:e,bottom:e,left:e}}function ll(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 Nb(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Rd(t),c=Ld(a),u=Ir(t),f=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,p=r[c]/2-i[c]/2;let v;switch(u){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-i.width,y:m};break;default:v={x:r.x,y:r.y}}switch(ys(t)){case"start":v[a]-=p*(n&&f?-1:1);break;case"end":v[a]+=p*(n&&f?-1:1);break}return v}const y3=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 f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=Nb(f,r,u),p=r,v={},S=0;for(let x=0;x<c.length;x++){const{name:T,fn:b}=c[x],{x:C,y:E,data:$,reset:P}=await b({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:f,platform:a,elements:{reference:e,floating:t}});h=C??h,m=E??m,v={...v,[T]:{...v[T],...$}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(f=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=Nb(f,p,u)),x=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:v}};async function Fd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:v=0}=gs(t,e),S=Db(v),T=c[p?m==="floating"?"reference":"floating":m],b=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:u})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},P=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:E,strategy:u}):C);return{top:(b.top-P.top+S.top)/$.y,bottom:(P.bottom-b.bottom+S.bottom)/$.y,left:(b.left-P.left+S.left)/$.x,right:(P.right-b.right+S.right)/$.x}}const v3=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:f,padding:h=0}=gs(e,t)||{};if(f==null)return{};const m=Db(h),p={x:n,y:r},v=Rd(i),S=Ld(v),x=await a.getDimensions(f),T=v==="y",b=T?"top":"left",C=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[v]-p[v]-o.floating[S],P=p[v]-o.reference[v],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let j=D?D[E]:0;(!j||!await(a.isElement==null?void 0:a.isElement(D)))&&(j=c.floating[E]||o.floating[S]);const F=$/2-P/2,W=j/2-x[S]/2-1,Z=_r(m[b],W),ee=_r(m[C],W),se=Z,ge=j-x[S]-ee,ue=j/2-x[S]/2+F,fe=kd(se,ue,ge),he=!u.arrow&&ys(i)!=null&&ue!==fe&&o.reference[S]/2-(ue<se?Z:ee)-x[S]/2<0,V=he?ue<se?ue-se:ue-ge:0;return{[v]:p[v]+V,data:{[v]:fe,centerOffset:ue-fe-V,...he&&{alignmentOffset:V}},reset:he}}}),x3=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:f}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...T}=gs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Ir(i),C=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(f.floating)),P=p||(E||!x?[al(c)]:h3(c)),D=S!=="none";!p&&D&&P.push(...p3(c,x,S,$));const j=[c,...P],F=await Fd(t,T),W=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&W.push(F[b]),m){const ue=d3(i,a,$);W.push(F[ue[0]],F[ue[1]])}if(Z=[...Z,{placement:i,overflows:W}],!W.every(ue=>ue<=0)){var ee,se;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=j[ue];if(fe)return{data:{index:ue,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(v){case"bestFit":{var ge;const V=(ge=Z.filter(B=>{if(D){const Y=pi(B.placement);return Y===C||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,O)=>Y+O,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:ge[0];V&&(he=V);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function b3(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=ys(n),u=pi(n)==="y",f=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=gs(t,e);let{mainAxis:p,crossAxis:v,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"&&(v=c==="end"?S*-1:S),u?{x:v*h,y:p*f}:{x:p*f,y:v*h}}const w3=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 b3(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}}}}},S3=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:T=>{let{x:b,y:C}=T;return{x:b,y:C}}},...u}=gs(e,t),f={x:n,y:r},h=await Fd(t,u),m=pi(Ir(i)),p=$b(m);let v=f[p],S=f[m];if(o){const T=p==="y"?"top":"left",b=p==="y"?"bottom":"right",C=v+h[T],E=v-h[b];v=kd(C,v,E)}if(a){const T=m==="y"?"top":"left",b=m==="y"?"bottom":"right",C=S+h[T],E=S-h[b];S=kd(C,S,E)}const x=c.fn({...t,[p]:v,[m]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:o,[m]:a}}}}}},T3=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=()=>{},...f}=gs(e,t),h=await Fd(t,f),m=Ir(i),p=ys(i),v=pi(i)==="y",{width:S,height:x}=o.floating;let T,b;m==="top"||m==="bottom"?(T=m,b=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,T=p==="end"?"top":"bottom");const C=x-h.top-h.bottom,E=S-h.left-h.right,$=_r(x-h[T],C),P=_r(S-h[b],E),D=!t.middlewareData.shift;let j=$,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=C),D&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);v?F=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):j=x-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:j});const W=await a.getDimensions(c.floating);return S!==W.width||x!==W.height?{reset:{rects:!0}}:{}}}};function kb(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Vd(e){return Ke(e)?e:e.contextElement}function vs(e){const t=Vd(e);if(!Rt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=kb(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const E3=Fn(0);function Lb(e){const t=Lt(e);return!rl()||!t.visualViewport?E3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Vd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=vs(r)):a=vs(e));const c=C3(o,n,r)?Lb(o):Fn(0);let u=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const p=Lt(o),v=r&&Ke(r)?Lt(r):r;let S=p,x=Dd(S);for(;x&&r&&v!==S;){const T=vs(x),b=x.getBoundingClientRect(),C=on(x),E=b.left+(x.clientLeft+parseFloat(C.paddingLeft))*T.x,$=b.top+(x.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,f*=T.y,h*=T.x,m*=T.y,u+=E,f+=$,S=Lt(x),x=Dd(S)}}return ll({width:h,height:m,x:u,y:f})}function Bd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Bd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function P3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},f=Fn(1);const h=Fn(0),m=Rt(r);if((m||!m&&!o)&&((ms(r)!=="body"||ko(a))&&(u=il(r)),Rt(r))){const v=gi(r);f=vs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const p=a&&!m&&!o?Rb(a,u,!0):Fn(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+h.x+p.x,y:n.y*f.y-u.scrollTop*f.y+h.y+p.y}}function A3(e){return Array.from(e.getClientRects())}function M3(e){const t=jn(e),n=il(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+Bd(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 O3(e,t){const n=Lt(e),r=jn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(i){o=i.width,a=i.height;const f=rl();(!f||f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function _3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Rt(e)?vs(e):Fn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=i*o.x,f=r*o.y;return{width:a,height:c,x:u,y:f}}function jb(e,t,n){let r;if(t==="viewport")r=O3(e,n);else if(t==="document")r=M3(jn(e));else if(Ke(t))r=_3(t,n);else{const i=Lb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Fb(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||Fb(n,t)}function I3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&ms(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(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)||ko(a)&&!u&&Fb(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:I3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((f,h)=>{const m=jb(t,h,i);return f.top=Yt(m.top,f.top),f.right=_r(m.right,f.right),f.bottom=_r(m.bottom,f.bottom),f.left=Yt(m.left,f.left),f},jb(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function D3(e){const{width:t,height:n}=kb(e);return{width:t,height:n}}function N3(e,t,n){const r=Rt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((ms(t)!=="body"||ko(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Bd(i));const f=i&&!r&&!o?Rb(i,c):Fn(0),h=a.left+c.scrollLeft-u.x-f.x,m=a.top+c.scrollTop-u.y-f.y;return{x:h,y:m,width:a.width,height:a.height}}function Wd(e){return on(e).position==="static"}function Vb(e,t){if(!Rt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Bb(e,t){const n=Lt(e);if(nl(e))return n;if(!Rt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Wd(i))return i;i=er(i)}return n}let r=Vb(e,t);for(;r&&t3(r)&&Wd(r);)r=Vb(r,t);return r&&Qn(r)&&Wd(r)&&!$d(r)?n:r||n3(e)||n}const k3=async function(e){const t=this.getOffsetParent||Bb,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L3(e){return on(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:P3,getDocumentElement:jn,getClippingRect:$3,getOffsetParent:Bb,getElementRects:k3,getClientRects:A3,getDimensions:D3,getScale:vs,isElement:Ke,isRTL:L3};function Wb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j3(e,t){let n=null,r;const i=jn(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 f=e.getBoundingClientRect(),{left:h,top:m,width:p,height:v}=f;if(c||t(),!p||!v)return;const S=ol(m),x=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+v)),b=ol(h),E={rootMargin:-S+"px "+-x+"px "+-T+"px "+-b+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function P(D){const j=D[0].intersectionRatio;if(j!==u){if(!$)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!Wb(f,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(P,E)}n.observe(e)}return a(!0),o}function $r(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,f=Vd(e),h=i||o?[...f?Or(f):[],...Or(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const m=f&&c?j3(f,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[C]=b;C&&C.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),n()}),f&&!u&&v.observe(f),v.observe(t));let S,x=u?gi(e):null;u&&T();function T(){const b=gi(e);x&&!Wb(x,b)&&n(),x=b,S=requestAnimationFrame(T)}return n(),()=>{var b;h.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(S)}}const F3=w3,V3=S3,B3=x3,W3=T3,Ub=v3,U3=(e,t,n)=>{const r=new Map,i={platform:R3,...n},o={...i.platform,_c:r};return y3(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(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(!ul(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)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gb(e,t){const n=zb(e);return Math.round(t*n)/n}function Ud(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function z3(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:f}=e,[h,m]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=Q.useState(r);ul(p,r)||v(r);const[S,x]=Q.useState(null),[T,b]=Q.useState(null),C=Q.useCallback(B=>{B!==D.current&&(D.current=B,x(B))},[]),E=Q.useCallback(B=>{B!==j.current&&(j.current=B,b(B))},[]),$=o||S,P=a||T,D=Q.useRef(null),j=Q.useRef(null),F=Q.useRef(h),W=u!=null,Z=Ud(u),ee=Ud(i),se=Ud(f),ge=Q.useCallback(()=>{if(!D.current||!j.current)return;const B={placement:t,strategy:n,middleware:p};ee.current&&(B.platform=ee.current),U3(D.current,j.current,B).then(Y=>{const O={...Y,isPositioned:se.current!==!1};ue.current&&!ul(F.current,O)&&(F.current=O,xT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{f===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[f]);const ue=Q.useRef(!1);cl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),cl(()=>{if($&&(D.current=$),P&&(j.current=P),$&&P){if(Z.current)return Z.current($,P,ge);ge()}},[$,P,ge,Z,W]);const fe=Q.useMemo(()=>({reference:D,floating:j,setReference:C,setFloating:E}),[C,E]),he=Q.useMemo(()=>({reference:$,floating:P}),[$,P]),V=Q.useMemo(()=>{const B={position:n,left:0,top:0};if(!he.floating)return B;const Y=Gb(he.floating,h.x),O=Gb(he.floating,h.y);return c?{...B,transform:"translate("+Y+"px, "+O+"px)",...zb(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:V}),[h,ge,fe,he,V])}const G3=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?Ub({element:r.current,padding:i}).fn(n):{}:r?Ub({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...F3(e),options:[e,t]}),Nr=(e,t)=>({...V3(e),options:[e,t]}),kr=(e,t)=>({...B3(e),options:[e,t]}),xs=(e,t)=>({...W3(e),options:[e,t]}),bs=(e,t)=>({...G3(e),options:[e,t]}),Yb={...Q},Y3=Yb.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Y3(()=>{t.current=e}),Q.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 Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let Hb=!1,H3=0;const qb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+H3++;function q3(){const[e,t]=Q.useState(()=>Hb?qb():void 0);return Lr(()=>{e==null&&t(qb())},[]),Q.useEffect(()=>{Hb=!0},[]),e}const Kb=Yb.useId||q3;let zd;process.env.NODE_ENV!=="production"&&(zd=new Set);function K3(){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=zd)!=null&&e.has(i))){var o;(o=zd)==null||o.add(i),console.error(i)}}function X3(){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 Z3=Q.createContext(null),J3=Q.createContext(null),Gd=()=>{var e;return((e=Q.useContext(Z3))==null?void 0:e.id)||null},Yd=()=>Q.useContext(J3);function Hd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const Xb=Hd("safe-polygon");function qd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Q3(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:f=null,mouseOnly:h=!1,restMs:m=0,move:p=!0}=t,v=Yd(),S=Gd(),x=yi(f),T=yi(u),b=yi(n),C=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),P=Q.useRef(-1),D=Q.useRef(!0),j=Q.useRef(!1),F=Q.useRef(()=>{}),W=Q.useRef(!1),Z=Q.useCallback(()=>{var V;const B=(V=i.current.openEvent)==null?void 0:V.type;return(B==null?void 0:B.includes("mouse"))&&B!=="mousedown"},[i]);Q.useEffect(()=>{if(!c)return;function V(B){let{open:Y}=B;Y||(an(E),an(P),D.current=!0,W.current=!1)}return o.on("openchange",V),()=>{o.off("openchange",V)}},[c,o]),Q.useEffect(()=>{if(!c||!x.current||!n)return;function V(Y){Z()&&r(!1,Y,"hover")}const B=mi(a.floating).documentElement;return B.addEventListener("mouseleave",V),()=>{B.removeEventListener("mouseleave",V)}},[a.floating,n,r,c,x,Z]);const ee=Q.useCallback(function(V,B,Y){B===void 0&&(B=!0),Y===void 0&&(Y="hover");const O=qd(T.current,"close",C.current);O&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,V,Y),O)):B&&(an(E),r(!1,V,Y))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(j.current){const V=mi(a.floating).body;V.style.pointerEvents="",V.removeAttribute(Xb),j.current=!1}}),ue=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function V(k){if(an(E),D.current=!1,h&&!Ro(C.current)||m>0&&!qd(T.current,"open"))return;const K=qd(T.current,"open",C.current);K?E.current=window.setTimeout(()=>{b.current||r(!0,k,"hover")},K):n||r(!0,k,"hover")}function B(k){if(ue())return;F.current();const K=mi(a.floating);if(an(P),W.current=!1,x.current&&i.current.floatingContext){n||an(E),$.current=x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k,!0,"safe-polygon")}});const le=$.current;K.addEventListener("mousemove",le),F.current=()=>{K.removeEventListener("mousemove",le)};return}(C.current==="touch"?!Lo(a.floating,k.relatedTarget):!0)&&ee(k)}function Y(k){ue()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),ue()||ee(k)}})(k))}if(Ke(a.domReference)){var O;const k=a.domReference;return n&&k.addEventListener("mouseleave",Y),(O=a.floating)==null||O.addEventListener("mouseleave",Y),p&&k.addEventListener("mousemove",V,{once:!0}),k.addEventListener("mouseenter",V),k.addEventListener("mouseleave",B),()=>{var K;n&&k.removeEventListener("mouseleave",Y),(K=a.floating)==null||K.removeEventListener("mouseleave",Y),p&&k.removeEventListener("mousemove",V),k.removeEventListener("mouseenter",V),k.removeEventListener("mouseleave",B)}}},[a,c,e,h,m,p,ee,se,ge,r,n,b,v,T,x,i,ue]),Lr(()=>{var V;if(c&&n&&(V=x.current)!=null&&V.__options.blockPointerEvents&&Z()){j.current=!0;const Y=a.floating;if(Ke(a.domReference)&&Y){var B;const O=mi(a.floating).body;O.setAttribute(Xb,"");const k=a.domReference,K=v==null||(B=v.nodesRef.current.find(ae=>ae.id===S))==null||(B=B.context)==null?void 0:B.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",k.style.pointerEvents="auto",Y.style.pointerEvents="auto",()=>{O.style.pointerEvents="",k.style.pointerEvents="",Y.style.pointerEvents=""}}}},[c,n,S,a,v,x,Z]),Lr(()=>{n||(C.current=void 0,W.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(P),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function V(B){C.current=B.pointerType}return{onPointerDown:V,onPointerEnter:V,onMouseMove(B){const{nativeEvent:Y}=B;function O(){!D.current&&!b.current&&r(!0,Y,"hover")}h&&!Ro(C.current)||n||m===0||W.current&&B.movementX**2+B.movementY**2<2||(an(P),C.current==="touch"?O():(W.current=!0,P.current=window.setTimeout(O,m)))}}},[h,r,n,b,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(V){ue()||ee(V.nativeEvent,!1)}}),[ee,ue]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function Kd(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 eN="data-floating-ui-focusable";function Zb(e){return Rt(e.target)&&e.target.tagName==="BUTTON"}function Jb(e){return Ib(e)}function vi(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:f=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=Q.useRef(),v=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(x){p.current=x.pointerType},onMouseDown(x){const T=p.current;x.button===0&&c!=="click"&&(Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!0)&&f||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){p.current=void 0,!(x.defaultPrevented||!h||Zb(x))&&(x.key===" "&&!Jb(o)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&u),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!h||Zb(x)||Jb(o)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&u),x.nativeEvent,"click"))}}),[i,o,c,f,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const tN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=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 Rr(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:f="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:v,capture:S}=t,x=Yd(),T=tr(typeof u=="function"?u:()=>!1),b=typeof u=="function"?T:u,C=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:P}=Qb(v),{escapeKey:D,outsidePress:j}=Qb(S),F=Q.useRef(!1),W=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const V=(he=o.current.floatingContext)==null?void 0:he.nodeId,B=x?Kd(x.nodesRef.current,V):[];if(!$&&(fe.stopPropagation(),B.length>0)){let Y=!0;if(B.forEach(O=>{var k;if((k=O.context)!=null&&k.open&&!O.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,a3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const V=()=>{var B;W(fe),(B=ps(fe))==null||B.removeEventListener("keydown",V)};(he=ps(fe))==null||he.addEventListener("keydown",V)}),ee=tr(fe=>{var he;const V=C.current;C.current=!1;const B=E.current;if(E.current=!1,f==="click"&&B||V||typeof b=="function"&&!b(fe))return;const Y=ps(fe),O="["+Hd("inert")+"]",k=mi(i.floating).querySelectorAll(O);let K=Ke(Y)?Y:null;for(;K&&!Qn(K);){const J=er(K);if(Qn(J)||!Ke(J))break;K=J}if(k.length&&Ke(Y)&&!l3(Y)&&!Lo(Y,i.floating)&&Array.from(k).every(J=>!Lo(K,J)))return;if(Rt(Y)&&ue){const J=Qn(Y),oe=on(Y),re=/auto|scroll/,de=J||re.test(oe.overflowX),Ce=J||re.test(oe.overflowY),Ve=de&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,ie=Ce&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=Y.offsetWidth-Y.clientWidth:fe.offsetX>Y.clientWidth),ft=Ve&&fe.offsetY>Y.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,le=x&&Kd(x.nodesRef.current,ae).some(J=>{var oe;return Nd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Nd(fe,i.floating)||Nd(fe,i.domReference)||le)return;const z=x?Kd(x.nodesRef.current,ae):[];if(z.length>0){let J=!0;if(z.forEach(oe=>{var re;if((re=oe.context)!=null&&re.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const V=()=>{var B;ee(fe),(B=ps(fe))==null||B.removeEventListener(f,V)};(he=ps(fe))==null||he.addEventListener(f,V)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=P;let fe=-1;function he(k){r(!1,k,"ancestor-scroll")}function V(){window.clearTimeout(fe),F.current=!0}function B(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const Y=mi(i.floating);c&&(Y.addEventListener("keydown",D?Z:W,D),Y.addEventListener("compositionstart",V),Y.addEventListener("compositionend",B)),b&&Y.addEventListener(f,j?se:ee,j);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(k=>{var K;return k!==((K=Y.defaultView)==null?void 0:K.visualViewport)}),O.forEach(k=>{k.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",D?Z:W,D),Y.removeEventListener("compositionstart",V),Y.removeEventListener("compositionend",B)),b&&Y.removeEventListener(f,j?se:ee,j),O.forEach(k=>{k.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,b,f,n,r,p,a,$,P,W,D,Z,ee,j,se]),Q.useEffect(()=>{C.current=!1},[b,f]);const ge=Q.useMemo(()=>({onKeyDown:W,...h&&{[tN[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[W,r,h,m]),ue=Q.useMemo(()=>({onKeyDown:W,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[nN[f]]:()=>{C.current=!0}}),[W,f]);return Q.useMemo(()=>a?{reference:ge,floating:ue}:{},[a,ge,ue])}function rN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Kb(),o=Q.useRef({}),[a]=Q.useState(()=>X3()),c=Gd()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Ke(v)&&K3("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,f]=Q.useState(r.reference),h=tr((v,S,x)=>{o.current.openEvent=v?S:void 0,a.emit("openchange",{open:v,event:S,reason:x,nested:c}),n==null||n(v,S,x)}),m=Q.useMemo(()=>({setPositionReference:f}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=rN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Yd();Lr(()=>{h&&(m.current=h)},[h]);const v=z3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),v.refs.setReference($)},[v.refs]),x=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(v.refs.reference.current)||v.refs.reference.current===null||E!==null&&!Ke(E))&&v.refs.setReference(E)},[v.refs]),T=Q.useMemo(()=>({...v.refs,setReference:x,setPositionReference:S,domReference:m}),[v.refs,x,S]),b=Q.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),C=Q.useMemo(()=>({...v,...r,refs:T,elements:b,nodeId:t}),[v,T,b,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=C)}),Q.useMemo(()=>({...v,context:C,refs:T,elements:b}),[v,T,b,C])}function iN(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,f=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const v=Lt(a.domReference);function S(){!n&&Rt(a.domReference)&&a.domReference===Ab(mi(a.domReference))&&(f.current=!0)}function x(){m.current=!0}return v.addEventListener("blur",S),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",S),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function v(S){let{reason:x}=S;(x==="reference-press"||x==="escape-key")&&(f.current=!0)}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(v){r3(v.nativeEvent)||(m.current=!1)},onMouseLeave(){f.current=!1},onFocus(v){if(f.current)return;const S=ps(v.nativeEvent);if(u&&Ke(S))try{if(i3()&&s3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ib(S))return}r(!0,v.nativeEvent,"focus")},onBlur(v){f.current=!1;const S=v.relatedTarget,x=v.nativeEvent,T=Ke(S)&&S.hasAttribute(Hd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var b;const C=Ab(a.domReference?a.domReference.ownerDocument:document);!S&&C===a.domReference||Lo((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,C)||Lo(a.domReference,C)||T||r(!1,x,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const e2="active",t2="selected";function Xd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[e2]:a,[t2]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[eN]:""},...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[f,h]=u;if(!(i&&[e2,t2].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var m;(m=r.get(f))==null||m.push(h),a[f]=function(){for(var p,v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return(p=r.get(f))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[f]=h}),a),{})}}function Fr(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=Q.useCallback(c=>Xd(c,e,"reference"),t),o=Q.useCallback(c=>Xd(c,e,"floating"),n),a=Q.useCallback(c=>Xd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const sN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=sN.get(a))!=null?n:a,u=Kb(),h=Gd()!=null,m=Q.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]),p=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),v=Q.useCallback(S=>{let{active:x,selected:T}=S;const b={role:"option",...x&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":x&&T};case"combobox":return{...b,...x&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:v}:{},[o,m,p,v])}const n2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ws(e,t){return typeof e=="function"?e(t):e}function aN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function lN(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]=Q.useState("unmounted"),f=aN(n,a);return!f&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:f,status:c}}function xi(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],f=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[v,S]=Q.useState(()=>({...ws(o,f),...ws(n,f)})),{isMounted:x,status:T}=lN(e,{duration:a}),b=yi(n),C=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const P=ws(b.current,f),D=ws(E.current,f),j=ws($.current,f),F=ws(C.current,f)||Object.keys(P).reduce((W,Z)=>(W[Z]="",W),{});if(T==="initial"&&S(W=>({transitionProperty:W.transitionProperty,...j,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(n2).join(","),transitionDuration:m+"ms",...j,...F}),T==="close"){const W=D||P;S({transitionProperty:Object.keys(W).map(n2).join(","),transitionDuration:p+"ms",...j,...W})}},[p,E,b,C,$,m,T,f]),{isMounted:x,styles:v}}const bi=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:f=8,handleClickAway:h=!0})=>{const[m,p]=_.useState(e);_.useEffect(()=>{p(e)},[e]);const v=()=>{p(!1),t==null||t()},{x:S,y:x,strategy:T,refs:b,context:C}=jr({strategy:a,open:m,onOpenChange:W=>{!W&&!e&&v()},middleware:[Dr(u),kr(),Nr({padding:f})],whileElementsMounted:$r,placement:i}),E=vi(C,{enabled:!1}),$=Rr(C,{enabled:!1}),{getReferenceProps:P,getFloatingProps:D}=Fr([E,$]),{isMounted:j,styles:F}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return y.jsx(W2,{enabled:h,onClickAway:()=>{m&&v()},children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{ref:b.setReference,...P(),className:"reference-element",children:r}),j&&y.jsx("div",{ref:b.setFloating,style:{position:T,top:x??0,left:S??0,...F,zIndex:999,...c},...D(),className:"floating-element",children:y.jsx(Ss,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})})},cN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return y.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[y.jsx(Ge.button,{variants:r,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"}),y.jsx(Ge.button,{variants:r,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"})]})},uN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>y.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 X5={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"]},Z5={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"]},J5={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"]},Q5={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"]},e3={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 tl(){return typeof window<"u"}function ms(e){return Cb(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function jn(e){var t;return(t=(Cb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cb(e){return tl()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ke(e){return tl()?e instanceof Element||e instanceof Lt(e).Element:!1}function Rt(e){return tl()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function Id(e){return!tl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ko(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 t3(e){return["table","td","th"].includes(ms(e))}function nl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function $d(e){const t=rl(),n=Ke(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 n3(e){let t=er(e);for(;Rt(t)&&!Qn(t);){if($d(t))return t;if(nl(t))return null;t=er(t)}return null}function rl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qn(e){return["html","body","#document"].includes(ms(e))}function on(e){return Lt(e).getComputedStyle(e)}function il(e){return Ke(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if(ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Id(e)&&e.host||jn(e);return Id(t)?t.host:t}function Pb(e){const t=er(e);return Qn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&ko(t)?t:Pb(t)}function Or(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const c=Dd(a);return t.concat(a,a.visualViewport||[],ko(i)?i:[],c&&n?Or(c):[])}return t.concat(i,Or(i,[],n))}function Dd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ab(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 Lo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Id(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Mb(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ob(){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 r3(e){return o3()?!1:!_b()&&e.width===0&&e.height===0||_b()&&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 i3(){return/apple/i.test(navigator.vendor)}function _b(){const e=/android/i;return e.test(Mb())||e.test(Ob())}function s3(){return Mb().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function o3(){return Ob().includes("jsdom/")}function Ro(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function a3(e){return"nativeEvent"in e}function l3(e){return e.matches("html,body")}function mi(e){return(e==null?void 0:e.ownerDocument)||document}function Nd(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 ps(e){return"composedPath"in e?e.composedPath()[0]:e.target}const c3="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ib(e){return Rt(e)&&e.matches(c3)}const _r=Math.min,Yt=Math.max,sl=Math.round,ol=Math.floor,Fn=e=>({x:e,y:e}),u3={left:"right",right:"left",bottom:"top",top:"bottom"},f3={start:"end",end:"start"};function kd(e,t,n){return Yt(e,_r(t,n))}function gs(e,t){return typeof e=="function"?e(t):e}function Ir(e){return e.split("-")[0]}function ys(e){return e.split("-")[1]}function $b(e){return e==="x"?"y":"x"}function Ld(e){return e==="y"?"height":"width"}function pi(e){return["top","bottom"].includes(Ir(e))?"y":"x"}function Rd(e){return $b(pi(e))}function d3(e,t,n){n===void 0&&(n=!1);const r=ys(e),i=Rd(e),o=Ld(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=al(a)),[a,al(a)]}function h3(e){const t=al(e);return[jd(e),t,jd(t)]}function jd(e){return e.replace(/start|end/g,t=>f3[t])}function m3(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 p3(e,t,n,r){const i=ys(e);let o=m3(Ir(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(jd)))),o}function al(e){return e.replace(/left|right|bottom|top/g,t=>u3[t])}function g3(e){return{top:0,right:0,bottom:0,left:0,...e}}function Db(e){return typeof e!="number"?g3(e):{top:e,right:e,bottom:e,left:e}}function ll(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 Nb(e,t,n){let{reference:r,floating:i}=e;const o=pi(t),a=Rd(t),c=Ld(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,p=r[c]/2-i[c]/2;let v;switch(u){case"top":v={x:h,y:r.y-i.height};break;case"bottom":v={x:h,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:m};break;case"left":v={x:r.x-i.width,y:m};break;default:v={x:r.x,y:r.y}}switch(ys(t)){case"start":v[a]-=p*(n&&d?-1:1);break;case"end":v[a]+=p*(n&&d?-1:1);break}return v}const y3=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}=Nb(d,r,u),p=r,v={},S=0;for(let x=0;x<c.length;x++){const{name:T,fn:b}=c[x],{x:C,y:E,data:$,reset:A}=await b({x:h,y:m,initialPlacement:r,placement:p,strategy:i,middlewareData:v,rects:d,platform:a,elements:{reference:e,floating:t}});h=C??h,m=E??m,v={...v,[T]:{...v[T],...$}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(d=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:h,y:m}=Nb(d,p,u)),x=-1)}return{x:h,y:m,placement:p,strategy:i,middlewareData:v}};async function Fd(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:p=!1,padding:v=0}=gs(t,e),S=Db(v),T=c[p?m==="floating"?"reference":"floating":m],b=ll(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(T)))==null||n?T:T.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:u})),C=m==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},A=ll(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:E,strategy:u}):C);return{top:(b.top-A.top+S.top)/$.y,bottom:(A.bottom-b.bottom+S.bottom)/$.y,left:(b.left-A.left+S.left)/$.x,right:(A.right-b.right+S.right)/$.x}}const v3=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}=gs(e,t)||{};if(d==null)return{};const m=Db(h),p={x:n,y:r},v=Rd(i),S=Ld(v),x=await a.getDimensions(d),T=v==="y",b=T?"top":"left",C=T?"bottom":"right",E=T?"clientHeight":"clientWidth",$=o.reference[S]+o.reference[v]-p[v]-o.floating[S],A=p[v]-o.reference[v],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=D?D[E]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[E]||o.floating[S]);const F=$/2-A/2,B=R/2-x[S]/2-1,Z=_r(m[b],B),ee=_r(m[C],B),se=Z,ge=R-x[S]-ee,le=R/2-x[S]/2+F,fe=kd(se,le,ge),he=!u.arrow&&ys(i)!=null&&le!==fe&&o.reference[S]/2-(le<se?Z:ee)-x[S]/2<0,Y=he?le<se?le-se:le-ge:0;return{[v]:p[v]+Y,data:{[v]:fe,centerOffset:le-fe-Y,...he&&{alignmentOffset:Y}},reset:he}}}),x3=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:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:x=!0,...T}=gs(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Ir(i),C=pi(c),E=Ir(c)===c,$=await(u.isRTL==null?void 0:u.isRTL(d.floating)),A=p||(E||!x?[al(c)]:h3(c)),D=S!=="none";!p&&D&&A.push(...p3(c,x,S,$));const R=[c,...A],F=await Fd(t,T),B=[];let Z=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&B.push(F[b]),m){const le=d3(i,a,$);B.push(F[le[0]],F[le[1]])}if(Z=[...Z,{placement:i,overflows:B}],!B.every(le=>le<=0)){var ee,se;const le=(((ee=o.flip)==null?void 0:ee.index)||0)+1,fe=R[le];if(fe)return{data:{index:le,overflows:Z},reset:{placement:fe}};let he=(se=Z.filter(Y=>Y.overflows[0]<=0).sort((Y,U)=>Y.overflows[1]-U.overflows[1])[0])==null?void 0:se.placement;if(!he)switch(v){case"bestFit":{var ge;const Y=(ge=Z.filter(U=>{if(D){const V=pi(U.placement);return V===C||V==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(V=>V>0).reduce((V,O)=>V+O,0)]).sort((U,V)=>U[1]-V[1])[0])==null?void 0:ge[0];Y&&(he=Y);break}case"initialPlacement":he=c;break}if(i!==he)return{reset:{placement:he}}}return{}}}};async function b3(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=ys(n),u=pi(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=gs(t,e);let{mainAxis:p,crossAxis:v,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"&&(v=c==="end"?S*-1:S),u?{x:v*h,y:p*d}:{x:p*d,y:v*h}}const w3=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 b3(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}}}}},S3=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:T=>{let{x:b,y:C}=T;return{x:b,y:C}}},...u}=gs(e,t),d={x:n,y:r},h=await Fd(t,u),m=pi(Ir(i)),p=$b(m);let v=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",b=p==="y"?"bottom":"right",C=v+h[T],E=v-h[b];v=kd(C,v,E)}if(a){const T=m==="y"?"top":"left",b=m==="y"?"bottom":"right",C=S+h[T],E=S-h[b];S=kd(C,S,E)}const x=c.fn({...t,[p]:v,[m]:S});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:o,[m]:a}}}}}},T3=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}=gs(e,t),h=await Fd(t,d),m=Ir(i),p=ys(i),v=pi(i)==="y",{width:S,height:x}=o.floating;let T,b;m==="top"||m==="bottom"?(T=m,b=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=m,T=p==="end"?"top":"bottom");const C=x-h.top-h.bottom,E=S-h.left-h.right,$=_r(x-h[T],C),A=_r(S-h[b],E),D=!t.middlewareData.shift;let R=$,F=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=C),D&&!p){const Z=Yt(h.left,0),ee=Yt(h.right,0),se=Yt(h.top,0),ge=Yt(h.bottom,0);v?F=S-2*(Z!==0||ee!==0?Z+ee:Yt(h.left,h.right)):R=x-2*(se!==0||ge!==0?se+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:R});const B=await a.getDimensions(c.floating);return S!==B.width||x!==B.height?{reset:{rects:!0}}:{}}}};function kb(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Rt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=sl(n)!==o||sl(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function Vd(e){return Ke(e)?e:e.contextElement}function vs(e){const t=Vd(e);if(!Rt(t))return Fn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=kb(t);let a=(o?sl(n.width):n.width)/r,c=(o?sl(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const E3=Fn(0);function Lb(e){const t=Lt(e);return!rl()||!t.visualViewport?E3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function C3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Vd(e);let a=Fn(1);t&&(r?Ke(r)&&(a=vs(r)):a=vs(e));const c=C3(o,n,r)?Lb(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 p=Lt(o),v=r&&Ke(r)?Lt(r):r;let S=p,x=Dd(S);for(;x&&r&&v!==S;){const T=vs(x),b=x.getBoundingClientRect(),C=on(x),E=b.left+(x.clientLeft+parseFloat(C.paddingLeft))*T.x,$=b.top+(x.clientTop+parseFloat(C.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=E,d+=$,S=Lt(x),x=Dd(S)}}return ll({width:h,height:m,x:u,y:d})}function Bd(e,t){const n=il(e).scrollLeft;return t?t.left+n:gi(jn(e)).left+n}function Rb(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Bd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function P3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=jn(r),c=t?nl(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=Fn(1);const h=Fn(0),m=Rt(r);if((m||!m&&!o)&&((ms(r)!=="body"||ko(a))&&(u=il(r)),Rt(r))){const v=gi(r);d=vs(r),h.x=v.x+r.clientLeft,h.y=v.y+r.clientTop}const p=a&&!m&&!o?Rb(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+p.x,y:n.y*d.y-u.scrollTop*d.y+h.y+p.y}}function A3(e){return Array.from(e.getClientRects())}function M3(e){const t=jn(e),n=il(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+Bd(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 O3(e,t){const n=Lt(e),r=jn(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=rl();(!d||d&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:c,y:u}}function _3(e,t){const n=gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Rt(e)?vs(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 jb(e,t,n){let r;if(t==="viewport")r=O3(e,n);else if(t==="document")r=M3(jn(e));else if(Ke(t))r=_3(t,n);else{const i=Lb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ll(r)}function Fb(e,t){const n=er(e);return n===t||!Ke(n)||Qn(n)?!1:on(n).position==="fixed"||Fb(n,t)}function I3(e,t){const n=t.get(e);if(n)return n;let r=Or(e,[],!1).filter(c=>Ke(c)&&ms(c)!=="body"),i=null;const o=on(e).position==="fixed";let a=o?er(e):e;for(;Ke(a)&&!Qn(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)||ko(a)&&!u&&Fb(e,a))?r=r.filter(h=>h!==a):i=c,a=er(a)}return t.set(e,r),r}function $3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?nl(t)?[]:I3(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=jb(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},jb(t,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function D3(e){const{width:t,height:n}=kb(e);return{width:t,height:n}}function N3(e,t,n){const r=Rt(t),i=jn(t),o=n==="fixed",a=gi(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=Fn(0);if(r||!r&&!o)if((ms(t)!=="body"||ko(i))&&(c=il(t)),r){const p=gi(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else i&&(u.x=Bd(i));const d=i&&!r&&!o?Rb(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 Wd(e){return on(e).position==="static"}function Vb(e,t){if(!Rt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return jn(e)===n&&(n=n.ownerDocument.body),n}function Bb(e,t){const n=Lt(e);if(nl(e))return n;if(!Rt(e)){let i=er(e);for(;i&&!Qn(i);){if(Ke(i)&&!Wd(i))return i;i=er(i)}return n}let r=Vb(e,t);for(;r&&t3(r)&&Wd(r);)r=Vb(r,t);return r&&Qn(r)&&Wd(r)&&!$d(r)?n:r||n3(e)||n}const k3=async function(e){const t=this.getOffsetParent||Bb,n=this.getDimensions,r=await n(e.floating);return{reference:N3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L3(e){return on(e).direction==="rtl"}const R3={convertOffsetParentRelativeRectToViewportRelativeRect:P3,getDocumentElement:jn,getClippingRect:$3,getOffsetParent:Bb,getElementRects:k3,getClientRects:A3,getDimensions:D3,getScale:vs,isElement:Ke,isRTL:L3};function Wb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j3(e,t){let n=null,r;const i=jn(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:p,height:v}=d;if(c||t(),!p||!v)return;const S=ol(m),x=ol(i.clientWidth-(h+p)),T=ol(i.clientHeight-(m+v)),b=ol(h),E={rootMargin:-S+"px "+-x+"px "+-T+"px "+-b+"px",threshold:Yt(0,_r(1,u))||1};let $=!0;function A(D){const R=D[0].intersectionRatio;if(R!==u){if(!$)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!Wb(d,e.getBoundingClientRect())&&a(),$=!1}try{n=new IntersectionObserver(A,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,E)}n.observe(e)}return a(!0),o}function $r(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=Vd(e),h=i||o?[...d?Or(d):[],...Or(t)]:[];h.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const m=d&&c?j3(d,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[C]=b;C&&C.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=v)==null||E.observe(t)})),n()}),d&&!u&&v.observe(d),v.observe(t));let S,x=u?gi(e):null;u&&T();function T(){const b=gi(e);x&&!Wb(x,b)&&n(),x=b,S=requestAnimationFrame(T)}return n(),()=>{var b;h.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),m==null||m(),(b=v)==null||b.disconnect(),v=null,u&&cancelAnimationFrame(S)}}const F3=w3,V3=S3,B3=x3,W3=T3,Ub=v3,U3=(e,t,n)=>{const r=new Map,i={platform:R3,...n},o={...i.platform,_c:r};return y3(e,t,{...i,platform:o})};var cl=typeof document<"u"?_.useLayoutEffect:_.useEffect;function ul(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(!ul(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)&&!ul(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gb(e,t){const n=zb(e);return Math.round(t*n)/n}function Ud(e){const t=Q.useRef(e);return cl(()=>{t.current=e}),t}function z3(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]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=Q.useState(r);ul(p,r)||v(r);const[S,x]=Q.useState(null),[T,b]=Q.useState(null),C=Q.useCallback(U=>{U!==D.current&&(D.current=U,x(U))},[]),E=Q.useCallback(U=>{U!==R.current&&(R.current=U,b(U))},[]),$=o||S,A=a||T,D=Q.useRef(null),R=Q.useRef(null),F=Q.useRef(h),B=u!=null,Z=Ud(u),ee=Ud(i),se=Ud(d),ge=Q.useCallback(()=>{if(!D.current||!R.current)return;const U={placement:t,strategy:n,middleware:p};ee.current&&(U.platform=ee.current),U3(D.current,R.current,U).then(V=>{const O={...V,isPositioned:se.current!==!1};le.current&&!ul(F.current,O)&&(F.current=O,xT.flushSync(()=>{m(O)}))})},[p,t,n,ee,se]);cl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[d]);const le=Q.useRef(!1);cl(()=>(le.current=!0,()=>{le.current=!1}),[]),cl(()=>{if($&&(D.current=$),A&&(R.current=A),$&&A){if(Z.current)return Z.current($,A,ge);ge()}},[$,A,ge,Z,B]);const fe=Q.useMemo(()=>({reference:D,floating:R,setReference:C,setFloating:E}),[C,E]),he=Q.useMemo(()=>({reference:$,floating:A}),[$,A]),Y=Q.useMemo(()=>{const U={position:n,left:0,top:0};if(!he.floating)return U;const V=Gb(he.floating,h.x),O=Gb(he.floating,h.y);return c?{...U,transform:"translate("+V+"px, "+O+"px)",...zb(he.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:O}},[n,c,he.floating,h.x,h.y]);return Q.useMemo(()=>({...h,update:ge,refs:fe,elements:he,floatingStyles:Y}),[h,ge,fe,he,Y])}const G3=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?Ub({element:r.current,padding:i}).fn(n):{}:r?Ub({element:r,padding:i}).fn(n):{}}}},Dr=(e,t)=>({...F3(e),options:[e,t]}),Nr=(e,t)=>({...V3(e),options:[e,t]}),kr=(e,t)=>({...B3(e),options:[e,t]}),xs=(e,t)=>({...W3(e),options:[e,t]}),bs=(e,t)=>({...G3(e),options:[e,t]}),Yb={...Q},Y3=Yb.useInsertionEffect||(e=>e());function tr(e){const t=Q.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Y3(()=>{t.current=e}),Q.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 Lr=typeof document<"u"?_.useLayoutEffect:_.useEffect;let Hb=!1,H3=0;const qb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+H3++;function q3(){const[e,t]=Q.useState(()=>Hb?qb():void 0);return Lr(()=>{e==null&&t(qb())},[]),Q.useEffect(()=>{Hb=!0},[]),e}const Kb=Yb.useId||q3;let zd;process.env.NODE_ENV!=="production"&&(zd=new Set);function K3(){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=zd)!=null&&e.has(i))){var o;(o=zd)==null||o.add(i),console.error(i)}}function X3(){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 Z3=Q.createContext(null),J3=Q.createContext(null),Gd=()=>{var e;return((e=Q.useContext(Z3))==null?void 0:e.id)||null},Yd=()=>Q.useContext(J3);function Hd(e){return"data-floating-ui-"+e}function an(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}function yi(e){const t=_.useRef(e);return Lr(()=>{t.current=e}),t}const Xb=Hd("safe-polygon");function qd(e,t,n){return n&&!Ro(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Q3(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:p=!0}=t,v=Yd(),S=Gd(),x=yi(d),T=yi(u),b=yi(n),C=Q.useRef(),E=Q.useRef(-1),$=Q.useRef(),A=Q.useRef(-1),D=Q.useRef(!0),R=Q.useRef(!1),F=Q.useRef(()=>{}),B=Q.useRef(!1),Z=Q.useCallback(()=>{var Y;const U=(Y=i.current.openEvent)==null?void 0:Y.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"},[i]);Q.useEffect(()=>{if(!c)return;function Y(U){let{open:V}=U;V||(an(E),an(A),D.current=!0,B.current=!1)}return o.on("openchange",Y),()=>{o.off("openchange",Y)}},[c,o]),Q.useEffect(()=>{if(!c||!x.current||!n)return;function Y(V){Z()&&r(!1,V,"hover")}const U=mi(a.floating).documentElement;return U.addEventListener("mouseleave",Y),()=>{U.removeEventListener("mouseleave",Y)}},[a.floating,n,r,c,x,Z]);const ee=Q.useCallback(function(Y,U,V){U===void 0&&(U=!0),V===void 0&&(V="hover");const O=qd(T.current,"close",C.current);O&&!$.current?(an(E),E.current=window.setTimeout(()=>r(!1,Y,V),O)):U&&(an(E),r(!1,Y,V))},[T,r]),se=tr(()=>{F.current(),$.current=void 0}),ge=tr(()=>{if(R.current){const Y=mi(a.floating).body;Y.style.pointerEvents="",Y.removeAttribute(Xb),R.current=!1}}),le=tr(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);Q.useEffect(()=>{if(!c)return;function Y(k){if(an(E),D.current=!1,h&&!Ro(C.current)||m>0&&!qd(T.current,"open"))return;const K=qd(T.current,"open",C.current);K?E.current=window.setTimeout(()=>{b.current||r(!0,k,"hover")},K):n||r(!0,k,"hover")}function U(k){if(le())return;F.current();const K=mi(a.floating);if(an(A),B.current=!1,x.current&&i.current.floatingContext){n||an(E),$.current=x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),le()||ee(k,!0,"safe-polygon")}});const ce=$.current;K.addEventListener("mousemove",ce),F.current=()=>{K.removeEventListener("mousemove",ce)};return}(C.current==="touch"?!Lo(a.floating,k.relatedTarget):!0)&&ee(k)}function V(k){le()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:v,x:k.clientX,y:k.clientY,onClose(){ge(),se(),le()||ee(k)}})(k))}if(Ke(a.domReference)){var O;const k=a.domReference;return n&&k.addEventListener("mouseleave",V),(O=a.floating)==null||O.addEventListener("mouseleave",V),p&&k.addEventListener("mousemove",Y,{once:!0}),k.addEventListener("mouseenter",Y),k.addEventListener("mouseleave",U),()=>{var K;n&&k.removeEventListener("mouseleave",V),(K=a.floating)==null||K.removeEventListener("mouseleave",V),p&&k.removeEventListener("mousemove",Y),k.removeEventListener("mouseenter",Y),k.removeEventListener("mouseleave",U)}}},[a,c,e,h,m,p,ee,se,ge,r,n,b,v,T,x,i,le]),Lr(()=>{var Y;if(c&&n&&(Y=x.current)!=null&&Y.__options.blockPointerEvents&&Z()){R.current=!0;const V=a.floating;if(Ke(a.domReference)&&V){var U;const O=mi(a.floating).body;O.setAttribute(Xb,"");const k=a.domReference,K=v==null||(U=v.nodesRef.current.find(ae=>ae.id===S))==null||(U=U.context)==null?void 0:U.elements.floating;return K&&(K.style.pointerEvents=""),O.style.pointerEvents="none",k.style.pointerEvents="auto",V.style.pointerEvents="auto",()=>{O.style.pointerEvents="",k.style.pointerEvents="",V.style.pointerEvents=""}}}},[c,n,S,a,v,x,Z]),Lr(()=>{n||(C.current=void 0,B.current=!1,se(),ge())},[n,se,ge]),Q.useEffect(()=>()=>{se(),an(E),an(A),ge()},[c,a.domReference,se,ge]);const fe=Q.useMemo(()=>{function Y(U){C.current=U.pointerType}return{onPointerDown:Y,onPointerEnter:Y,onMouseMove(U){const{nativeEvent:V}=U;function O(){!D.current&&!b.current&&r(!0,V,"hover")}h&&!Ro(C.current)||n||m===0||B.current&&U.movementX**2+U.movementY**2<2||(an(A),C.current==="touch"?O():(B.current=!0,A.current=window.setTimeout(O,m)))}}},[h,r,n,b,m]),he=Q.useMemo(()=>({onMouseEnter(){an(E)},onMouseLeave(Y){le()||ee(Y.nativeEvent,!1)}}),[ee,le]);return Q.useMemo(()=>c?{reference:fe,floating:he}:{},[c,fe,he])}function Kd(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 eN="data-floating-ui-focusable";function Zb(e){return Rt(e.target)&&e.target.tagName==="BUTTON"}function Jb(e){return Ib(e)}function vi(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,p=Q.useRef(),v=Q.useRef(!1),S=Q.useMemo(()=>({onPointerDown(x){p.current=x.pointerType},onMouseDown(x){const T=p.current;x.button===0&&c!=="click"&&(Ro(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Ro(T,!0)&&d||(n&&u&&(!(i.current.openEvent&&m)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){p.current=void 0,!(x.defaultPrevented||!h||Zb(x))&&(x.key===" "&&!Jb(o)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&u),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!h||Zb(x)||Jb(o)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&u),x.nativeEvent,"click"))}}),[i,o,c,d,h,r,n,m,u]);return Q.useMemo(()=>a?{reference:S}:{},[a,S])}const tN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Qb=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 Rr(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:p=!1,bubbles:v,capture:S}=t,x=Yd(),T=tr(typeof u=="function"?u:()=>!1),b=typeof u=="function"?T:u,C=Q.useRef(!1),E=Q.useRef(!1),{escapeKey:$,outsidePress:A}=Qb(v),{escapeKey:D,outsidePress:R}=Qb(S),F=Q.useRef(!1),B=tr(fe=>{var he;if(!n||!a||!c||fe.key!=="Escape"||F.current)return;const Y=(he=o.current.floatingContext)==null?void 0:he.nodeId,U=x?Kd(x.nodesRef.current,Y):[];if(!$&&(fe.stopPropagation(),U.length>0)){let V=!0;if(U.forEach(O=>{var k;if((k=O.context)!=null&&k.open&&!O.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,a3(fe)?fe.nativeEvent:fe,"escape-key")}),Z=tr(fe=>{var he;const Y=()=>{var U;B(fe),(U=ps(fe))==null||U.removeEventListener("keydown",Y)};(he=ps(fe))==null||he.addEventListener("keydown",Y)}),ee=tr(fe=>{var he;const Y=C.current;C.current=!1;const U=E.current;if(E.current=!1,d==="click"&&U||Y||typeof b=="function"&&!b(fe))return;const V=ps(fe),O="["+Hd("inert")+"]",k=mi(i.floating).querySelectorAll(O);let K=Ke(V)?V:null;for(;K&&!Qn(K);){const J=er(K);if(Qn(J)||!Ke(J))break;K=J}if(k.length&&Ke(V)&&!l3(V)&&!Lo(V,i.floating)&&Array.from(k).every(J=>!Lo(K,J)))return;if(Rt(V)&&le){const J=Qn(V),oe=on(V),re=/auto|scroll/,de=J||re.test(oe.overflowX),Ce=J||re.test(oe.overflowY),Ve=de&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,ie=Ce&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?fe.offsetX<=V.offsetWidth-V.clientWidth:fe.offsetX>V.clientWidth),ft=Ve&&fe.offsetY>V.clientHeight;if(De||ft)return}const ae=(he=o.current.floatingContext)==null?void 0:he.nodeId,ce=x&&Kd(x.nodesRef.current,ae).some(J=>{var oe;return Nd(fe,(oe=J.context)==null?void 0:oe.elements.floating)});if(Nd(fe,i.floating)||Nd(fe,i.domReference)||ce)return;const z=x?Kd(x.nodesRef.current,ae):[];if(z.length>0){let J=!0;if(z.forEach(oe=>{var re;if((re=oe.context)!=null&&re.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,fe,"outside-press")}),se=tr(fe=>{var he;const Y=()=>{var U;ee(fe),(U=ps(fe))==null||U.removeEventListener(d,Y)};(he=ps(fe))==null||he.addEventListener(d,Y)});Q.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=$,o.current.__outsidePressBubbles=A;let fe=-1;function he(k){r(!1,k,"ancestor-scroll")}function Y(){window.clearTimeout(fe),F.current=!0}function U(){fe=window.setTimeout(()=>{F.current=!1},rl()?5:0)}const V=mi(i.floating);c&&(V.addEventListener("keydown",D?Z:B,D),V.addEventListener("compositionstart",Y),V.addEventListener("compositionend",U)),b&&V.addEventListener(d,R?se:ee,R);let O=[];return p&&(Ke(i.domReference)&&(O=Or(i.domReference)),Ke(i.floating)&&(O=O.concat(Or(i.floating))),!Ke(i.reference)&&i.reference&&i.reference.contextElement&&(O=O.concat(Or(i.reference.contextElement)))),O=O.filter(k=>{var K;return k!==((K=V.defaultView)==null?void 0:K.visualViewport)}),O.forEach(k=>{k.addEventListener("scroll",he,{passive:!0})}),()=>{c&&(V.removeEventListener("keydown",D?Z:B,D),V.removeEventListener("compositionstart",Y),V.removeEventListener("compositionend",U)),b&&V.removeEventListener(d,R?se:ee,R),O.forEach(k=>{k.removeEventListener("scroll",he)}),window.clearTimeout(fe)}},[o,i,c,b,d,n,r,p,a,$,A,B,D,Z,ee,R,se]),Q.useEffect(()=>{C.current=!1},[b,d]);const ge=Q.useMemo(()=>({onKeyDown:B,...h&&{[tN[m]]:fe=>{r(!1,fe.nativeEvent,"reference-press")},...m!=="click"&&{onClick(fe){r(!1,fe.nativeEvent,"reference-press")}}}}),[B,r,h,m]),le=Q.useMemo(()=>({onKeyDown:B,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[nN[d]]:()=>{C.current=!0}}),[B,d]);return Q.useMemo(()=>a?{reference:ge,floating:le}:{},[a,ge,le])}function rN(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Kb(),o=Q.useRef({}),[a]=Q.useState(()=>X3()),c=Gd()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Ke(v)&&K3("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]=Q.useState(r.reference),h=tr((v,S,x)=>{o.current.openEvent=v?S:void 0,a.emit("openchange",{open:v,event:S,reason:x,nested:c}),n==null||n(v,S,x)}),m=Q.useMemo(()=>({setPositionReference:d}),[]),p=Q.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Q.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:i,refs:m}),[t,h,p,a,i,m])}function jr(e){e===void 0&&(e={});const{nodeId:t}=e,n=rN({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Q.useState(null),[c,u]=Q.useState(null),h=(i==null?void 0:i.domReference)||o,m=Q.useRef(null),p=Yd();Lr(()=>{h&&(m.current=h)},[h]);const v=z3({...e,elements:{...i,...c&&{reference:c}}}),S=Q.useCallback(E=>{const $=Ke(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;u($),v.refs.setReference($)},[v.refs]),x=Q.useCallback(E=>{(Ke(E)||E===null)&&(m.current=E,a(E)),(Ke(v.refs.reference.current)||v.refs.reference.current===null||E!==null&&!Ke(E))&&v.refs.setReference(E)},[v.refs]),T=Q.useMemo(()=>({...v.refs,setReference:x,setPositionReference:S,domReference:m}),[v.refs,x,S]),b=Q.useMemo(()=>({...v.elements,domReference:h}),[v.elements,h]),C=Q.useMemo(()=>({...v,...r,refs:T,elements:b,nodeId:t}),[v,T,b,t,r]);return Lr(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=C)}),Q.useMemo(()=>({...v,context:C,refs:T,elements:b}),[v,T,b,C])}function iN(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=Q.useRef(!1),h=Q.useRef(-1),m=Q.useRef(!0);Q.useEffect(()=>{if(!c)return;const v=Lt(a.domReference);function S(){!n&&Rt(a.domReference)&&a.domReference===Ab(mi(a.domReference))&&(d.current=!0)}function x(){m.current=!0}return v.addEventListener("blur",S),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",S),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,c]),Q.useEffect(()=>{if(!c)return;function v(S){let{reason:x}=S;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return i.on("openchange",v),()=>{i.off("openchange",v)}},[i,c]),Q.useEffect(()=>()=>{an(h)},[]);const p=Q.useMemo(()=>({onPointerDown(v){r3(v.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(v){if(d.current)return;const S=ps(v.nativeEvent);if(u&&Ke(S))try{if(i3()&&s3())throw Error();if(!S.matches(":focus-visible"))return}catch{if(!m.current&&!Ib(S))return}r(!0,v.nativeEvent,"focus")},onBlur(v){d.current=!1;const S=v.relatedTarget,x=v.nativeEvent,T=Ke(S)&&S.hasAttribute(Hd("focus-guard"))&&S.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var b;const C=Ab(a.domReference?a.domReference.ownerDocument:document);!S&&C===a.domReference||Lo((b=o.current.floatingContext)==null?void 0:b.refs.floating.current,C)||Lo(a.domReference,C)||T||r(!1,x,"focus")})}}),[o,a.domReference,r,u]);return Q.useMemo(()=>c?{reference:p}:{},[c,p])}const e2="active",t2="selected";function Xd(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[e2]:a,[t2]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[eN]:""},...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&&[e2,t2].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 p,v=arguments.length,S=new Array(v),x=0;x<v;x++)S[x]=arguments[x];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function Fr(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=Q.useCallback(c=>Xd(c,e,"reference"),t),o=Q.useCallback(c=>Xd(c,e,"floating"),n),a=Q.useCallback(c=>Xd(c,e,"item"),r);return Q.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const sN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function oN(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,c=(n=sN.get(a))!=null?n:a,u=Kb(),h=Gd()!=null,m=Q.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]),p=Q.useMemo(()=>{const S={id:i,...c&&{role:c}};return c==="tooltip"||a==="label"?S:{...S,...c==="menu"&&{"aria-labelledby":u}}},[c,i,u,a]),v=Q.useCallback(S=>{let{active:x,selected:T}=S;const b={role:"option",...x&&{id:i+"-option"}};switch(a){case"select":return{...b,"aria-selected":x&&T};case"combobox":return{...b,...x&&{"aria-selected":!0}}}return{}},[i,a]);return Q.useMemo(()=>o?{reference:m,floating:p,item:v}:{},[o,m,p,v])}const n2=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function ws(e,t){return typeof e=="function"?e(t):e}function aN(e,t){const[n,r]=Q.useState(e);return e&&!n&&r(!0),Q.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function lN(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]=Q.useState("unmounted"),d=aN(n,a);return!d&&c==="close"&&u("unmounted"),Lr(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function xi(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=Q.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[v,S]=Q.useState(()=>({...ws(o,d),...ws(n,d)})),{isMounted:x,status:T}=lN(e,{duration:a}),b=yi(n),C=yi(r),E=yi(i),$=yi(o);return Lr(()=>{const A=ws(b.current,d),D=ws(E.current,d),R=ws($.current,d),F=ws(C.current,d)||Object.keys(A).reduce((B,Z)=>(B[Z]="",B),{});if(T==="initial"&&S(B=>({transitionProperty:B.transitionProperty,...R,...A})),T==="open"&&S({transitionProperty:Object.keys(F).map(n2).join(","),transitionDuration:m+"ms",...R,...F}),T==="close"){const B=D||A;S({transitionProperty:Object.keys(B).map(n2).join(","),transitionDuration:p+"ms",...R,...B})}},[p,E,b,C,$,m,T,d]),{isMounted:x,styles:v}}const bi=({open:e,onClose:t,component:n,children:r,placement:i="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:d=8,handleClickAway:h=!0})=>{const[m,p]=_.useState(e);_.useEffect(()=>{p(e)},[e]);const v=()=>{p(!1),t==null||t()},{x:S,y:x,strategy:T,refs:b,context:C}=jr({strategy:a,open:m,onOpenChange:B=>{!B&&!e&&v()},middleware:[Dr(u),kr(),Nr({padding:d})],whileElementsMounted:$r,placement:i}),E=vi(C,{enabled:!1}),$=Rr(C,{enabled:!1}),{getReferenceProps:A,getFloatingProps:D}=Fr([E,$]),{isMounted:R,styles:F}=xi(C,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return y.jsx(W2,{enabled:h,onClickAway:()=>{m&&v()},children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{ref:b.setReference,...A(),className:"reference-element",children:r}),R&&y.jsx("div",{ref:b.setFloating,style:{position:T,top:x??0,left:S??0,...F,zIndex:999,...c},...D(),className:"floating-element",children:y.jsx(Ss,{className:o,children:typeof n=="function"?_.createElement(n):n})})]})})},cN=({selectedPeriod:e,handlePeriodChange:t,colorVariants:n})=>{const r={initial:{backgroundColor:"#ffffff",color:"#57595f"},active:{backgroundColor:(n==null?void 0:n.hoverLight)||"#dee7fc",color:(n==null?void 0:n.text)||"#111827"},exit:{backgroundColor:"#ffffff",color:"#57595f"}};return y.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[y.jsx(Ge.button,{variants:r,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"}),y.jsx(Ge.button,{variants:r,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"})]})},uN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>y.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 fN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},dN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},hN={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},mN={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"]},r2={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"]},pN={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},gN={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"]},i2={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},yN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},vN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},xN=e=>({blue:yN,aqua:vN})[e],Zd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,
|
|
667
|
+
*/const fN={prefix:"far",iconName:"chevron-up",icon:[512,512,[],"f077","M239 111c9.4-9.4 24.6-9.4 33.9 0L465 303c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-175-175L81 337c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 111z"]},dN={prefix:"far",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M354.9 121.7c13.8 16 36.5 21.1 55.9 12.5c8.9-3.9 18.7-6.2 29.2-6.2c39.8 0 72 32.2 72 72c0 4-.3 7.9-.9 11.7c-3.5 21.6 8.1 42.9 28.1 51.7C570.4 276.9 592 308 592 344c0 46.8-36.6 85.2-82.8 87.8c-.6 0-1.3 .1-1.9 .2l-3.3 0-360 0c-53 0-96-43-96-96c0-41.7 26.6-77.3 64-90.5c19.2-6.8 32-24.9 32-45.3l0-.2s0 0 0 0s0 0 0 0c0-66.3 53.7-120 120-120c36.3 0 68.8 16.1 90.9 41.7zM512 480l0-.2c71.4-4.1 128-63.3 128-135.8c0-55.7-33.5-103.7-81.5-124.7c1-6.3 1.5-12.8 1.5-19.3c0-66.3-53.7-120-120-120c-17.4 0-33.8 3.7-48.7 10.3C360.4 54.6 314.9 32 264 32C171.2 32 96 107.2 96 200l0 .2C40.1 220 0 273.3 0 336c0 79.5 64.5 144 144 144l320 0 40 0 8 0zM223 255c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 384c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]},hN={prefix:"far",iconName:"filter",icon:[512,512,[],"f0b0","M0 73.7C0 50.7 18.7 32 41.7 32l428.6 0c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5l0 143.2c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3l0-63.7L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2l0 68.4 64 50.8L288 296c0-5.5 1.9-10.9 5.4-15.2L457 80 55 80z"]},mN={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"]},r2={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"]},pN={prefix:"far",iconName:"bars-filter",icon:[448,512,[],"e0ad","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM64 248c0-13.3 10.7-24 24-24l272 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L88 272c-13.3 0-24-10.7-24-24zM288 408c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l80 0c13.3 0 24 10.7 24 24z"]},gN={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"]},i2={prefix:"far",iconName:"x",icon:[384,512,[120],"58","M378.4 71.4c8.5-10.1 7.2-25.3-2.9-33.8s-25.3-7.2-33.8 2.9L192 218.7 42.4 40.6C33.9 30.4 18.7 29.1 8.6 37.6S-2.9 61.3 5.6 71.4L160.7 256 5.6 440.6c-8.5 10.2-7.2 25.3 2.9 33.8s25.3 7.2 33.8-2.9L192 293.3 341.6 471.4c8.5 10.2 23.7 11.5 33.8 2.9s11.5-23.7 2.9-33.8L223.3 256l155-184.6z"]},yN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},vN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},xN=e=>({blue:yN,aqua:vN})[e],Zd=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:i,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=_.useState(e),[h,m]=_.useState(e),[p,v]=_.useState(e.getHours()%12||12),[S,x]=_.useState(e.getHours()>=12?"PM":"AM"),[T,b]=_.useState(0),{t:C}=Ue(),E=xN(c),[$,A]=_.useState(!1),[D,R]=_.useState(!1);_.useEffect(()=>{d(e),m(e),v(e.getHours()%12||12),x(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{b(-1),setTimeout(()=>{const U=V_(u);(!r||U>=r)&&d(U)},10)},B=()=>{b(1),setTimeout(()=>{d(cv(u,1))},10)},Z=U=>{if(i&&U>i||r&&U<r)return;const V=wv(Sv(Tv(U,0),0),S==="AM"?p%12:p%12+12);m(V),t(V)},ee=U=>{v(U);const V=wv(Sv(Tv(h,0),0),S==="AM"?U%12:U%12+12);m(V),t(V),A(!1)},se=U=>{x(U)},ge=()=>{const U=new Date,V=20,O=5,[k,K]=_.useState(()=>Array.from({length:V+1},(J,oe)=>{const re=new Date(U.getFullYear(),U.getMonth()-oe,1);return{name:Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase()),index:re.getMonth(),year:re.getFullYear(),displayName:`${Nn(re,"MMMM",{locale:ns}).replace(/^./,de=>de.toUpperCase())} ${re.getFullYear()}`}})),ae=_.useRef(null),ce=_.useRef(null);_.useEffect(()=>{ae.current&&ae.current.disconnect(),ae.current=new IntersectionObserver(J=>{J[0].isIntersecting&&K(oe=>{const re=oe[oe.length-1],de=new Date(re.year,re.index-1,1),Ce=Array.from({length:O},(Ve,ie)=>{const pe=new Date(de.getFullYear(),de.getMonth()-ie,1);return{name:Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${Nn(pe,"MMMM",{locale:ns}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ce]})}),ce.current&&ae.current.observe(ce.current)},[k]);const z=(J,oe)=>{const re=new Date(u);re.setMonth(J),re.setFullYear(oe),(!r||re>=r)&&d(re),R(!1)};return y.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,oe)=>{const re=oe===k.length-1;return y.jsx("button",{ref:re?ce:null,onClick:()=>z(J.index,J.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===J.index&&u.getFullYear()===J.year?E.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?E.text:"inherit"},onMouseEnter:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:de=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(de.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},le=()=>y.jsxs("div",{className:"flex justify-between items-center mb-8",children:[y.jsx(bi,{open:D,onClose:()=>R(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:y.jsxs("button",{onClick:()=>R(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[y.jsx("h4",{className:"text-header-4",children:Nn(u,"MMMM yyyy",{locale:ns}).replace(/^./,U=>U.toUpperCase())}),y.jsx(Pe,{icon:r2,className:"w-12 h-12"})]})}),y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx(dh,{variant:"transparent",color:c,icon:Q5,onClick:F}),y.jsx(dh,{variant:"transparent",color:c,icon:_4,onClick:B})]})]}),fe=()=>{const U=Qi(B4(u)),V=U4(j4(u)),O=V4({start:U,end:V}),k=new Date;return k.setHours(0,0,0,0),y.jsx("div",{className:"grid grid-cols-7 gap-2",children:O.map((K,ae)=>{const ce=dv(K,h),z=j_(K,u),J=F_(K),oe=K<k,re=K>k,de=!z||oe&&!a||re&&!o||r&&K<r||i&&K>i;return y.jsx(Ge.div,{className:`
|
|
668
668
|
p-2 text-center w-[40px] h-[40px] rounded-full flex items-center justify-center font-600 select-none
|
|
669
669
|
${de?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
|
-
`,onClick:()=>!de&&Z(K),initial:!1,animate:{backgroundColor:
|
|
670
|
+
`,onClick:()=>!de&&Z(K),initial:!1,animate:{backgroundColor:ce?E.primaryLight:"transparent",color:ce?E.textLight:J?E.text:de?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!de&&!ce?{backgroundColor:E.hoverLight}:{},whileTap:de?{}:{backgroundColor:ce?E.primaryDark:E.hoverLight},children:Nn(K,"d")},ae)})})},he=()=>{const U=Array.from({length:12},(O,k)=>k+1),V=()=>y.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:U.map(O=>y.jsxs("button",{onClick:()=>ee(O),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:O===p?E.hoverLight:"transparent",color:O===p?E.text:"inherit",fontWeight:O===p?"500":"normal"},onMouseEnter:k=>{O!==p&&(k.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:k=>{O!==p&&(k.currentTarget.style.backgroundColor="transparent")},children:[String(O).padStart(2,"0"),":00"]},O))});return y.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[y.jsx("h4",{className:"text-body-m font-medium",children:C("time")}),y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(bi,{open:$,onClose:()=>A(!1),component:V,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:y.jsx(uN,{setHourMenuOpen:A,hourMenuOpen:$,selectedHour:p})}),y.jsx(cN,{selectedPeriod:S,handlePeriodChange:se,colorVariants:E})]})]})},Y={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 y.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[le(),y.jsx(vn,{initial:!1,mode:"popLayout",children:y.jsx(Ge.div,{variants:Y,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:fe()},Nn(u,"yyyy-MM"))}),n&&he()]})},fl=({label:e,onChange:t,value:n,name:r,error:i,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="base",leftSide:h,rightSide:m,...p})=>{const{t:v}=Ue(),x={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d];return y.jsxs("label",{className:`flex flex-col group select-none ${x.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${i&&"!text-red-500"} ${x.label} ${c&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:r,className:`
|
|
671
671
|
flex items-center justify-between gap-8 ${x.container}
|
|
672
672
|
|
|
673
673
|
${i&&"!border-red-500"}
|
|
@@ -683,10 +683,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
683
683
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
684
684
|
${u&&"hover:!cursor-pointer"}
|
|
685
685
|
group-disabled:bg-gray-500
|
|
686
|
-
`,children:[h&&h,y.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${x.text} 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"}`}),m&&m]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${x.error}`,children:i&&v(i||"",{x:v(r)})})]})},s2=e=>Nn(e,"dd/MM/yyyy"),o2=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},bN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:
|
|
686
|
+
`,children:[h&&h,y.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${x.text} 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"}`}),m&&m]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${x.error}`,children:i&&v(i||"",{x:v(r)})})]})},s2=e=>Nn(e,"dd/MM/yyyy"),o2=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},bN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:i="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u})=>{const{field:{value:d,onChange:h,onBlur:m},fieldState:{error:p}}=hr.useController({name:t,control:e}),{t:v}=Ue(),S=v(t),x=v(i),[T,b]=_.useState(!1),[C,E]=_.useState("");_.useEffect(()=>{d instanceof Date&&!isNaN(d.getTime())?E(s2(d)):E("")},[d]);const $=o2(C),A=R=>{const F=R.replace(/\D/g,"").slice(0,8),B=[];F.length>0&&B.push(F.slice(0,2)),F.length>2&&B.push(F.slice(2,4)),F.length>4&&B.push(F.slice(4,8));const Z=B.join("/");if(E(Z),b(!1),Z.length===10){const ee=o2(Z);h(ee)}},D=()=>{h(null),E("")};return y.jsx(bi,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>b(!1),className:"p-0!",component:y.jsx(Zd,{date:$||new Date,onDateChange:R=>{E(s2(R)),h(R),b(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:y.jsx(fl,{size:u,onBlur:m,name:x||S,label:r,value:C,onFocus:R=>{R.preventDefault(),b(!0)},disabledInput:!0,onChange:R=>A(R),placeholder:o,error:p==null?void 0:p.message,rightSide:!!$&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:D})})})},a2=({title:e,description:t,open:n,onClose:r,onConfirm:i,onCancel:o,icon:a=e3,showCloseButton:c=!0})=>{const u={hidden:{opacity:0},visible:{opacity:1}},d={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}}},h=()=>{i==null||i(),r()},m=()=>{o==null||o(),r()},{t:p}=Ue();return y.jsx(vn,{children:n&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:u,onClick:r,children:y.jsx(Ge.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:v=>v.stopPropagation(),children:y.jsxs(Ss,{className:"flex flex-col gap-20 p-32",children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("div",{className:"flex justify-end",children:c&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),y.jsx("div",{className:"flex justify-center",children:y.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:y.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),y.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[y.jsxs("div",{className:"text-center w-full",children:[y.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),y.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),y.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&y.jsx(wi,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!i&&y.jsx(wi,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},l2={duration:.3,ease:[.32,.72,0,1]},wN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},SN=({isOpen:e})=>y.jsx(Ge.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:y.jsx(Pe,{icon:Z5,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),TN=({label:e,children:t,subtitle:n,open:r,onClick:i,className:o="",labelClassName:a=""})=>{const{t:c}=Ue(),[u,d]=_.useState(!1),h=r!==void 0?r:u,m=i||(()=>d(!u));return y.jsxs(Ge.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[y.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
687
687
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
688
688
|
transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
|
|
689
|
-
flex items-center gap-2 group w-full justify-between`,children:[y.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),y.jsxs("div",{className:"flex gap-10 items-center",children:[y.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),y.jsx(SN,{isOpen:h})]})]}),y.jsx(vn,{mode:"wait",children:h&&y.jsx(Ge.div,{...wN,transition:{height:{duration:l2.duration,ease:l2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},EN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=_.useState(o()),[u,
|
|
689
|
+
flex items-center gap-2 group w-full justify-between`,children:[y.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),y.jsxs("div",{className:"flex gap-10 items-center",children:[y.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),y.jsx(SN,{isOpen:h})]})]}),y.jsx(vn,{mode:"wait",children:h&&y.jsx(Ge.div,{...wN,transition:{height:{duration:l2.duration,ease:l2.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},EN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:i}=Ue(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=_.useState(o()),[u,d]=_.useState(0),[h,m]=_.useState(10);_.useEffect(()=>{const x=o();c(x);let T;if(x===Ht.LOADING&&u<100){const E=100/(r/100);T=setInterval(()=>{d($=>{const A=Math.min($+E,99),D=Math.max(0,Math.round((100-A)/10));return m(D),A})},100)}else x===Ht.COMPLETE&&u<100&&d(100);return()=>{T&&clearInterval(T)}},[e.loading,e.error,r,o,u]);const p=()=>{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""}},v=()=>{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 x=e.file_size/1024;return x<1024?`${x.toFixed(1)} KB`:`${(x/1024).toFixed(1)} MB`};return y.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx(Pe,{icon:XC,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),y.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&y.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:KC})}),a===Ht.ERROR&&y.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:y.jsx(Pe,{icon:HC})})]}),y.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(Ge.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"}}),y.jsxs("span",{className:"text-sm text-gray-500",children:[i("analyzing_file_with_ai"),"..."]})]}):y.jsxs("div",{className:"text-sm",children:[y.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",y.jsx("span",{className:v(),children:p()})]})}),a===Ht.LOADING&&y.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:y.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},c2=({index:e,label:t,active:n,completed:r})=>y.jsxs("div",{className:"flex items-center gap-8",children:[y.jsx("div",{className:`
|
|
690
690
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
691
691
|
${n&&"border-blue-500! text-blue-500!"}
|
|
692
692
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
@@ -698,9 +698,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
698
698
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
699
699
|
${n&&"font-600"}
|
|
700
700
|
${r&&"font-500"}
|
|
701
|
-
`,children:t})]}),CN=({currentStep:e,steps:t})=>y.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>y.jsx(c2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),PN=({label:e,value:t})=>y.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),u2=({title:e,children:t,className:n=""})=>y.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});u2.Entry=PN;const Ss=({children:e,className:t,element:n="div"})=>{const r=n;return y.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},AN=({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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:y.jsx(Ss,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:y.jsx(y.Fragment,{})})})})})})},MN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},ON={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 ON;case"blue":default:return MN}},_N=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:
|
|
701
|
+
`,children:t})]}),CN=({currentStep:e,steps:t})=>y.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>y.jsx(c2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),PN=({label:e,value:t})=>y.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||_.isValidElement(t)?t:null})]}),u2=({title:e,children:t,className:n=""})=>y.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[y.jsx("h4",{className:"text-body-m font-600",children:e}),y.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});u2.Entry=PN;const Ss=({children:e,className:t,element:n="div"})=>{const r=n;return y.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},AN=({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 y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.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:y.jsx(Ge.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:i=>i.stopPropagation(),children:y.jsx(Ss,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:y.jsx(y.Fragment,{})})})})})})},MN={completedBgColor:"#dae2fb",focusBorderColor:"#4570EB",pendingBorderColor:"#ABACAF70",iconActiveColor:"text-blue-500",lineActiveColor:"bg-blue-500",lineGradientFrom:"from-blue-500"},ON={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 ON;case"blue":default:return MN}},_N=({status:e,label:t,shouldAnimate:n,color:r,index:i})=>{const{t:o}=Ue(),a=e==="done",c=e==="focus",{focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c?"1px":"0px",borderColor:c?u:d},animate:{backgroundColor:a?"#E0F1ED":c?u:"white",borderWidth:c||!a?"1px":"0px",borderColor:c?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:y.jsx(Ge.div,{initial:n?!1:{color:a?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},animate:{color:a||c?"rgb(34, 197, 94)":"rgb(209, 213, 219)"},transition:{duration:n?.2:0},className:"flex items-center justify-center",children:y.jsx(vn,{mode:"wait",children:a||c?y.jsx(Ge.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:a?y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`}):y.jsx("div",{className:"text-white leading-none font-500 text-body-s flex items-center justify-center mb-1",children:i+1})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.jsx("span",{className:`text-body-s transition-all duration-300 text-center w-full font-500
|
|
702
702
|
|
|
703
|
-
`,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},IN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:f,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.div,{initial:n?!1:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},animate:{backgroundColor:o?c:"white",borderWidth:a||!o?"1px":"0px",borderColor:a?u:f},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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:o||a?y.jsx(Ge.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:y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.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)})]})},$N=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[f,h]=_.useState(null),[m,p]=_.useState(!1),v=e.findIndex(b=>!b.completed),S=b=>v===b;_.useEffect(()=>{const b=e.map((C,E)=>S(E)?"focus":C.completed?"done":"pending");if(!m)u(b),p(!0),h(null);else{const C=b.findIndex((E,$)=>E!==c[$]);h(C!==-1?C:null),u(b)}},[e,v]);const x=()=>y.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((b,C)=>{var D;const E=S(C-1)?"focus":(D=e[C-1])!=null&&D.completed?"done":"pending",$=S(C)?"focus":b.completed?"done":"pending",P=m&&f===C;return y.jsxs("div",{className:"flex items-center gap-10 relative",children:[C!==0&&y.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),y.jsx(_N,{index:C,status:$,shouldAnimate:P,label:b.label,color:i})]},C)})}),T=()=>y.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((b,C)=>{const E=S(C)?"focus":b.completed?"done":"pending",$=m&&f===C;return y.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:y.jsx(IN,{index:C,status:E,shouldAnimate:$,label:b.label,color:i})},C)})});return t==="horizontal"?y.jsx(T,{}):y.jsx(x,{})},DN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const f=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:v}=Ue(),S=t||v,x=()=>{const T=n.findIndex(b=>b.id===r);if(T>=0&&f.current[T]){const b=f.current[T];if(b&&p.current){const C=p.current.getBoundingClientRect(),E=b.getBoundingClientRect();m({left:E.left-C.left,width:E.width})}}};return _.useEffect(()=>{x()},[r,n]),_.useEffect(()=>{const T=()=>{x()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),y.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,b)=>y.jsx(pf.div,{ref:C=>{f.current[b]=C},className:"w-full",children:y.jsx(F2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),y.jsx(pf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Nn(e,"dd/MM/yyyy"),NN=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 eh({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:f,maxDate:h,customDisplay:m,size:p}){const[v,S]=_.useState(!1),[x,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const b=E=>{const $=E.replace(/\D/g,"").slice(0,8),P=[];$.length>0&&P.push($.slice(0,2)),$.length>2&&P.push($.slice(2,4)),$.length>4&&P.push($.slice(4,8));const D=P.join("/");if(T(D),S(!1),D.length===10){const j=NN(D);j&&t(j)}},C=()=>{t(null),T("")};return y.jsx(bi,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:y.jsx(Zd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:f,maxDate:h}),children:m?y.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):y.jsx(fl,{size:p,name:o,label:n,value:x,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>b(E),placeholder:r,error:i,rightSide:e&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:C})})})}function f2(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=f2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f2(e))&&(r&&(r+=" "),r+=t);return r}const d2={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"},h2={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"},m2={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"},p2={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"},kN="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",LN={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"},RN=(e="filled",t="blue",n="base")=>{const r=Vn(kN,LN[n]),i={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(r,i)},jN="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",FN={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]"},VN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},BN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(jN,FN[n],VN[r]),o={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(i,o)},WN={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]"},jo=(e="base")=>WN[e],wi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),f=n||u;return y.jsxs("button",{type:"button",className:RN(r,f,i)+" "+a,...c,children:[e&&y.jsx(Pe,{icon:e,className:jo(i)}),o,t&&y.jsx(Pe,{icon:t,className:jo(i)})]})},UN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:f,label:h,disabled:m=!1,className:p="",buttonContent:v="Enviar",showOptionsOnClick:S=!0,showChevron:x=!1,showButton:T=!1,setValueOnOptionSelect:b=!0,leftSide:C,rightSide:E})=>{const{t:$}=Ue(),[P,D]=_.useState(!1),j=_.useRef(null),{x:F,y:W,strategy:Z,refs:ee,context:se}=jr({open:P,onOpenChange:D,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:x}),ue=Rr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,ue]),{isMounted:V,styles:B}=xi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),Y=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const J=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(J))})(),O=z=>{b&&(r==null||r(z.label)),D(!1),i==null||i(z),a==null||a(z.value)},k=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),x&&!m&&(D(!P),!P&&j.current&&setTimeout(()=>{var J;return(J=j.current)==null?void 0:J.focus()},100))},le={...x?fe():{},onKeyDown:void 0,onClick:void 0};return y.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),y.jsxs("div",{className:"flex gap-24",children:[y.jsxs("div",{ref:ee.setReference,className:`
|
|
703
|
+
`,style:{color:c?u:a?"#000":"#8F9095"},children:o(t)})]})},IN=({status:e,label:t,shouldAnimate:n,color:r})=>{const{t:i}=Ue(),o=e==="done",a=e==="focus",{completedBgColor:c,focusBorderColor:u,pendingBorderColor:d,iconActiveColor:h}=Jd(r);return y.jsxs("div",{className:"flex items-center gap-8 h-fit",children:[y.jsx(Ge.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:y.jsx(Ge.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:y.jsx(vn,{mode:"wait",children:o||a?y.jsx(Ge.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:y.jsx(Pe,{icon:c0,className:`w-14 h-14 min-w-14 min-h-14 ${h}`})},"check"):y.jsx(Ge.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:y.jsx(Pe,{icon:l0,className:"w-14 h-14 min-w-14 min-h-14"})},"clock")})})}),y.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)})]})},$N=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ue(),i=n||r,{lineActiveColor:o,lineGradientFrom:a}=Jd(i),[c,u]=_.useState([]),[d,h]=_.useState(null),[m,p]=_.useState(!1),v=e.findIndex(b=>!b.completed),S=b=>v===b;_.useEffect(()=>{const b=e.map((C,E)=>S(E)?"focus":C.completed?"done":"pending");if(!m)u(b),p(!0),h(null);else{const C=b.findIndex((E,$)=>E!==c[$]);h(C!==-1?C:null),u(b)}},[e,v]);const x=()=>y.jsx("div",{className:"flex flex-col gap-16 relative",children:e.map((b,C)=>{var D;const E=S(C-1)?"focus":(D=e[C-1])!=null&&D.completed?"done":"pending",$=S(C)?"focus":b.completed?"done":"pending",A=m&&d===C;return y.jsxs("div",{className:"flex items-center gap-10 relative",children:[C!==0&&y.jsx("div",{className:`absolute left-[13px] bottom-[28px] w-[1.5px] h-16 ${$==="done"||$==="focus"?o:E==="done"||E==="focus"?`bg-gradient-to-b ${a} to-[rgb(243,244,246)]`:"bg-[rgb(243,244,246)]"}`}),y.jsx(_N,{index:C,status:$,shouldAnimate:A,label:b.label,color:i})]},C)})}),T=()=>y.jsx("div",{className:"w-full flex items-center gap-12",children:e.map((b,C)=>{const E=S(C)?"focus":b.completed?"done":"pending",$=m&&d===C;return y.jsx("div",{className:"flex flex-col items-center justify-evenly w-full gap-2 relative col-span-1",children:y.jsx(IN,{index:C,status:E,shouldAnimate:$,label:b.label,color:i})},C)})});return t==="horizontal"?y.jsx(T,{}):y.jsx(x,{})},DN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:i,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=_.useRef([]),[h,m]=_.useState({left:0,width:0}),p=_.useRef(null),{defaultColorScheme:v}=Ue(),S=t||v,x=()=>{const T=n.findIndex(b=>b.id===r);if(T>=0&&d.current[T]){const b=d.current[T];if(b&&p.current){const C=p.current.getBoundingClientRect(),E=b.getBoundingClientRect();m({left:E.left-C.left,width:E.width})}}};return _.useEffect(()=>{x()},[r,n]),_.useEffect(()=>{const T=()=>{x()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),y.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,b)=>y.jsx(pf.div,{ref:C=>{d.current[b]=C},className:"w-full",children:y.jsx(F2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>i(T.id),variant:e})},T.id)),y.jsx(pf.div,{className:`absolute bottom-0 h-2 bg-${S}-500`,initial:!1,animate:{left:h.left,width:h.width},transition:{type:"spring",stiffness:300,damping:30}})]})},Qd=e=>Nn(e,"dd/MM/yyyy"),NN=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 eh({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:i,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[v,S]=_.useState(!1),[x,T]=_.useState(e?Qd(e):"");_.useEffect(()=>{T(e?Qd(e):"")},[e]);const b=E=>{const $=E.replace(/\D/g,"").slice(0,8),A=[];$.length>0&&A.push($.slice(0,2)),$.length>2&&A.push($.slice(2,4)),$.length>4&&A.push($.slice(4,8));const D=A.join("/");if(T(D),S(!1),D.length===10){const R=NN(D);R&&t(R)}},C=()=>{t(null),T("")};return y.jsx(bi,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:y.jsx(Zd,{date:e||new Date,onDateChange:E=>{t(E),T(Qd(E)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?y.jsx("div",{onClick:E=>{E.preventDefault(),S(!0)},children:m}):y.jsx(fl,{size:p,name:o,label:n,value:x,onClick:E=>{E.preventDefault(),S(!0)},onChange:E=>b(E),placeholder:r,error:i,rightSide:e&&y.jsx(Pe,{icon:ov,className:"text-gray-500 cursor-pointer",onClick:C})})})}function f2(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=f2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f2(e))&&(r&&(r+=" "),r+=t);return r}const d2={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"},h2={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"},m2={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"},p2={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"},kN="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",LN={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"},RN=(e="filled",t="blue",n="base")=>{const r=Vn(kN,LN[n]),i={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(r,i)},jN="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",FN={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]"},VN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},BN=(e="filled",t="blue",n="base",r="none")=>{const i=Vn(jN,FN[n],VN[r]),o={blue:d2[e],aqua:h2[e],red:m2[e],gray:p2[e]}[t];return Vn(i,o)},WN={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]"},jo=(e="base")=>WN[e],wi=({icon:e,rightIcon:t,color:n,variant:r="filled",size:i="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),d=n||u;return y.jsxs("button",{type:"button",className:RN(r,d,i)+" "+a,...c,children:[e&&y.jsx(Pe,{icon:e,className:jo(i)}),o,t&&y.jsx(Pe,{icon:t,className:jo(i)})]})},UN=({name:e,error:t,value:n="",onChange:r,onOptionClick:i,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:v="Enviar",showOptionsOnClick:S=!0,showChevron:x=!1,showButton:T=!1,setValueOnOptionSelect:b=!0,leftSide:C,rightSide:E})=>{const{t:$}=Ue(),[A,D]=_.useState(!1),R=_.useRef(null),{x:F,y:B,strategy:Z,refs:ee,context:se}=jr({open:A,onOpenChange:D,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:$r}),ge=vi(se,{enabled:x}),le=Rr(se),{getReferenceProps:fe,getFloatingProps:he}=Fr([ge,le]),{isMounted:Y,styles:U}=xi(se,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),V=(()=>{const z=Array.isArray(u)?u:[];if(!n||!n.trim())return z;const J=n.toLowerCase();return z.filter(oe=>oe.label.toLowerCase().includes(J))})(),O=z=>{b&&(r==null||r(z.label)),D(!1),i==null||i(z),a==null||a(z.value)},k=z=>{r==null||r(z)},K=z=>{z.stopPropagation(),x&&!m&&(D(!A),!A&&R.current&&setTimeout(()=>{var J;return(J=R.current)==null?void 0:J.focus()},100))},ce={...x?fe():{},onKeyDown:void 0,onClick:void 0};return y.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),y.jsxs("div",{className:"flex gap-24",children:[y.jsxs("div",{ref:ee.setReference,className:`
|
|
704
704
|
flex items-center justify-between gap-8 p-16
|
|
705
705
|
|
|
706
706
|
${t&&"!border-red-500"}
|
|
@@ -716,19 +716,19 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
716
716
|
focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
717
717
|
${m&&"hover:!cursor-pointer"}
|
|
718
718
|
group-disabled:bg-gray-500
|
|
719
|
-
`,...
|
|
719
|
+
`,...ce,children:[C&&C,y.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!A&&!m&&D(!0)},onChange:z=>k(z.target.value),onKeyDown:z=>{o&&o(z),z.key==="Enter"&&(z.preventDefault(),V.length>0&&O(V[0])),z.key==="Escape"&&D(!1)},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 ${m&&"pointer-events-none !select-none !caret-transparent"}`}),E&&!x?E:x&&y.jsx(Pe,{icon:fN,className:`text-xl text-gray-500 cursor-pointer ${A&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:K})]}),T&&y.jsx(wi,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:v})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:t&&$(t||"",{x:$(e)})}),Y&&y.jsx("div",{ref:ee.setFloating,style:{position:Z,top:B??0,left:F??0,...U,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...he(),children:y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:V.length>0?y.jsx("ul",{className:"py-4",children:V.map((z,J)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===z.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:oe=>{oe.stopPropagation(),O(z)},children:y.jsx("span",{children:$(z.label)})},`${z.label}-${J}`))}):n&&(n==null?void 0:n.length)>0?y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},th=({label:e,onClick:t,onRemove:n,readOnly:r})=>y.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[y.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&y.jsx("button",{onClick:i=>{n(),i.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:y.jsx(Pe,{icon:i2})})]}),zN=({values:e,onPillRemove:t})=>{const[n,r]=_.useState(!1),i=e.slice(0,3),o=e.slice(3);return y.jsxs("div",{className:"flex justify-between items-start gap-20",children:[y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[i.map(a=>y.jsx(th,{label:a.label,onRemove:()=>t(a.value)},a.value)),y.jsx(vn,{children:n&&o.map(a=>y.jsx(Ge.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:y.jsx(th,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&y.jsx("button",{type:"button",onClick:()=>r(!n),className:"flex items-center gap-8 w-fit text-blue-500 font-semibold text-14 transition hover:text-blue-700 text-nowrap shrink-0",children:n?y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Ocultar"})," ",y.jsx(Pe,{icon:GC})]}):y.jsxs(y.Fragment,{children:[y.jsxs("p",{children:["Ver ",o.length," más"]})," ",y.jsx(Pe,{icon:ZC})]})})]})},GN=({open:e,onClose:t,children:n,side:r="right",className:i="",backdropClassName:o="",width:a="650px",zIndex:c=9999,usePortal:u=!0})=>{_.useEffect(()=>{const p=v=>{v.key==="Escape"&&e&&t()};return e&&(document.addEventListener("keydown",p),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",p),document.body.style.overflow="unset"}},[e,t]);const d={initial:{x:r==="right"?"100%":"-100%"},animate:{x:0,transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.2}}},exit:{x:r==="right"?"100%":"-100%",transition:{type:"spring",stiffness:300,damping:30,opacity:{duration:.15}}}},h={initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.15}}},m=y.jsx(vn,{children:e&&y.jsxs("div",{className:"fixed inset-0 flex",style:{zIndex:c},children:[y.jsx(Ge.div,{variants:h,initial:"initial",animate:"animate",exit:"exit",className:`absolute inset-0 bg-black/50 backdrop-blur-[0.60px] ${o}`,onClick:p=>{p.preventDefault(),p.stopPropagation(),t()}}),y.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:y.jsx(Ge.div,{variants:d,initial:"initial",animate:"animate",exit:"exit",className:`
|
|
720
720
|
relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
|
|
721
721
|
${i}
|
|
722
|
-
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?$m.createPortal(m,document.body):m},YN=({filters:e})=>{const[t,n]=_.useState(!1),r=()=>n(!1),i=()=>n(!0);return y.jsx(bi,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md px-0! text-base! py-12!",component:y.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[y.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),y.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>y.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[y.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),y.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:y.jsx(Pe,{icon:pN,onClick:i,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},HN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||vf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||vf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=vf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=_.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 _.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),y.jsx(y.Fragment,{children:e.map(a=>{if(a.type==="custom"&&(a!=null&&a.component)){const{open:u,onClose:
|
|
722
|
+
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?$m.createPortal(m,document.body):m},YN=({filters:e})=>{const[t,n]=_.useState(!1),r=()=>n(!1),i=()=>n(!0);return y.jsx(bi,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md px-0! text-base! py-12!",component:y.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[y.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),y.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>y.jsxs("div",{className:"group flex gap-[8px] items-center px-[24px] py-[8px] hover:bg-blue-100 cursor-pointer transition ease-in-out",onClick:o.onClick,children:[y.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),y.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:y.jsx(Pe,{icon:pN,onClick:i,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},HN=()=>{const[e,t]=_.useState([]),n=_.useRef([]),r=_.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||vf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||vf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),i=_.useCallback(a=>{const c=vf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=_.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 _.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=i},[r,o,i]),y.jsx(y.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 y.jsx(a2,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return y.jsx(Eb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return y.jsx(b2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function qN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function KN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function XN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function ZN(e,t,n){const r=t[e];if(_.isValidElement(r)&&typeof r.type!="string")return _.cloneElement(r,n);if(typeof r=="function"){const i=r;return y.jsx(i,{...n})}return r??y.jsx("div",{children:"no content"})}const nh=[];function g2(e="bottom-center"){var t;if(!nh.find(n=>n.id===e)){const n=document.createElement("div");switch(n.classList.add("fixed","z-[99999]","flex","flex-col","items-center","w-fit","min-w-[18rem]"),n.style.setProperty("z-index","99999"),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")}nh.push({id:e,element:n}),document.body.appendChild(n)}return(t=nh.find(n=>n.id===e))==null?void 0:t.element}function dl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:i})=>{const o=g2(n);if(!o)return;const a=document.createElement("div"),c=i(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(y.jsx(gf,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const rh=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const i=g2(n.position);if(!i)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),i.removeChild(o)};a.render(y.jsx(sv,{promise:e,messages:t,options:n,onClose:c})),i.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},y2=(e,t={})=>{let n=()=>{},r=()=>{};const i=new Promise((o,a)=>{n=o,r=a});return rh(i,e,t),{resolve:o=>{typeof o=="string"&&(e.success=o),n(o)},reject:o=>{typeof o=="string"&&(e.error=o),r(o)}}},JN={success:(e,t={})=>dl(e,"success",t),error:(e,t={})=>dl(e,"error",t),warning:(e,t={})=>dl(e,"warning",t),info:(e,t={})=>dl(e,"info",t),async:(e,t,n={})=>rh(e,t,n),loading:(e,t={})=>y2(e,t)},v2=({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",p=i*.4+"px",[v,S]=_.useState(!1),x=()=>r?yf(r):o?yf(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",T=A=>{try{return A?(new URL(A),!0):!1}catch(D){return console.log(D),!1}},b=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?Pv(o.image):"",C=()=>r?y.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?y.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},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]}):y.jsx(Pe,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:O4,className:"w-full text-white"}),E=()=>{S(!0)},$=b();return y.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:x()},...c,children:[$&&!v&&y.jsx("img",{src:$,alt:r,className:`
|
|
723
723
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
724
724
|
z-10
|
|
725
725
|
${u}
|
|
726
|
-
`,onError:E,...
|
|
726
|
+
`,onError:E,...d}),y.jsx("div",{className:`
|
|
727
727
|
flex items-center justify-center leading-none text-center absolute
|
|
728
|
-
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})},x2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?y.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):y.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),b2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:y.jsx(Ge.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:y.jsxs(Ss,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[y.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[y.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&y.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&y.jsx(x2,{className:"bg-gray-100!"})]}),y.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})]})})})})})},QN=({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=f=>({width:`${f}px`,height:`${f}px`,minWidth:`${f}px`,minHeight:`${f}px`});return y.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:y.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var ih,w2;function ek(){if(w2)return ih;w2=1;function e(b){this._maxSize=b,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(b){return this._values[b]},e.prototype.set=function(b,C){return this._size>=this._maxSize&&this.clear(),b in this._values||this._size++,this._values[b]=C};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),f=new e(a);ih={Cache:e,split:m,normalizePath:h,setter:function(b){var C=h(b);return u.get(b)||u.set(b,function($,P){for(var D=0,j=C.length,F=$;D<j-1;){var W=C[D];if(W==="__proto__"||W==="constructor"||W==="prototype")return $;F=F[C[D++]]}F[C[D]]=P})},getter:function(b,C){var E=h(b);return f.get(b)||f.set(b,function(P){for(var D=0,j=E.length;D<j;)if(P!=null||!C)P=P[E[D++]];else return;return P})},join:function(b){return b.reduce(function(C,E){return C+(v(E)||n.test(E)?"["+E+"]":(C?".":"")+E)},"")},forEach:function(b,C,E){p(Array.isArray(b)?b:m(b),C,E)}};function h(b){return c.get(b)||c.set(b,m(b).map(function(C){return C.replace(o,"$2")}))}function m(b){return b.match(t)||[""]}function p(b,C,E){var $=b.length,P,D,j,F;for(D=0;D<$;D++)P=b[D],P&&(T(P)&&(P='"'+P+'"'),F=v(P),j=!F&&/^\d+$/.test(P),C.call(E,P,F,j,D,b))}function v(b){return typeof b=="string"&&b&&["'",'"'].indexOf(b.charAt(0))!==-1}function S(b){return b.match(r)&&!b.match(n)}function x(b){return i.test(b)}function T(b){return!v(b)&&(S(b)||x(b))}return ih}var Si=ek(),sh,S2;function tk(){if(S2)return sh;S2=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,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return sh={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(" ")},sh}var oh=tk(),hl={exports:{}},T2;function nk(){if(T2)return hl.exports;T2=1,hl.exports=function(i){return e(t(i),i)},hl.exports.array=e;function e(i,o){var a=i.length,c=new Array(a),u={},f=a,h=n(o),m=r(i);for(o.forEach(function(v){if(!m.has(v[0])||!m.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});f--;)u[f]||p(i[f],f,new Set);return c;function p(v,S,x){if(x.has(v)){var T;try{T=", node was:"+JSON.stringify(v)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!u[S]){u[S]=!0;var b=h.get(v)||new Set;if(b=Array.from(b),S=b.length){x.add(v);do{var C=b[--S];p(C,m.get(C),x)}while(S);x.delete(v)}c[--a]=v}}}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 hl.exports}var rk=nk();const ik=Nm(rk),sk=Object.prototype.toString,ok=Error.prototype.toString,ak=RegExp.prototype.toString,lk=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",ck=/^Symbol\((.*)\)(.*)$/;function uk(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return uk(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return lk.call(e).replace(ck,"Symbol($1)");const r=sk.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+ok.call(e)+"]":r==="RegExp"?ak.call(e):null}function Vr(e,t){let n=E2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=E2(this[r],t);return o!==null?o:i},2)}function C2(e){return e==null?[]:[].concat(e)}let P2,A2,M2,fk=/\$\{\s*(\w+)\s*\}/g;P2=Symbol.toStringTag;class O2{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[P2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],C2(t).forEach(o=>{if(jt.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]}}A2=Symbol.hasInstance,M2=Symbol.toStringTag;class jt 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(fk,(i,o)=>Vr(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 O2(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[M2]="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,jt)}static[A2](t){return O2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={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 \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(n,!0)}\``+i}},Ft={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"},dk={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"},ah={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hk={isValue:"${path} field must be ${value}"},ml={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:dk,date:ah,object:ml,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:hk,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: \`${Vr(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: \`${Vr(n,!0)}\``}return jt.formatError(Bn.notType,e)}}});const lh=e=>e&&e.__isYupSchema__;class pl{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 pl(t,(c,u)=>{var f;let h=a(...c)?i:o;return(f=h==null?void 0:h(u))!=null?f: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(!lh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const gl={context:"$",value:"."};class Ti{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]===gl.context,this.isValue=this.key[0]===gl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?gl.context:this.isValue?gl.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}}Ti.prototype.__isYupRef=!0;const Ei=e=>e==null;function Ts(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:f,test:h,params:m,message:p,skipAbsent:v}=e;let{parent:S,context:x,abortEarly:T=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=i;function C(ee){return Ti.isRef(ee)?ee.getValue(n,S,x):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||b},m,ee.params);for(const ue of Object.keys(se))se[ue]=C(se[ue]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||f,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let P={path:r,parent:S,type:f,from:i.from,createError:E,resolve:C,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},j=ee=>{jt.isError(ee)?$(ee):c(ee)};if(v&&Ei(n))return D(!0);let W;try{var Z;if(W=h.call(P,n,P),typeof((Z=W)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(D,j)}}catch(ee){j(ee);return}D(W)}return t.OPTIONS=e,t}function mk(e,t,n,r=n){let i,o,a;return t?(Si.forEach(t,(c,u,f)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:i,value:n});let m=e.type==="tuple",p=f?parseInt(h,10):0;if(e.innerType||m){if(m&&!f)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&&p>=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[p],e=m?e.spec.types[p]:e.innerType}if(!f){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 yl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ti.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 yl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Es(e,t=new Map){if(lh(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]=Es(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,Es(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Es(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Es(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{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 yl,this._blacklist=new yl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.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=Es(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&&Ei(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
728
|
+
`,style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},children:C()})]})},x2=({className:e="",direction:t="horizontal"})=>t==="horizontal"?y.jsx("hr",{className:`w-full min-h-1 max-h-1 bg-blue-100 border-blue-100 ${e}`}):y.jsx("hr",{className:`h-full min-w-1 max-w-1 bg-blue-100 border-blue-100 ${e}`}),b2=({open:e,onClose:t,title:n,children:r,className:i="",showCloseButton:o=!0})=>{const a={hidden:{opacity:0},visible:{opacity:1}},c={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.9,transition:{duration:.15}}};return y.jsx(vn,{children:e&&y.jsx(y.Fragment,{children:y.jsx(Ge.div,{className:"fixed inset-0 bg-black/50 z-9999 flex items-center justify-center",initial:"hidden",animate:"visible",exit:"hidden",variants:a,onClick:t,children:y.jsx(Ge.div,{className:`w-full max-w-lg mx-16 z-50 ${i}`,variants:c,initial:"hidden",animate:"visible",exit:"exit",onClick:u=>u.stopPropagation(),children:y.jsxs(Ss,{className:`flex flex-col ${n&&"gap-16 md:gap-24"} p-0!`,children:[y.jsxs("div",{className:"flex flex-col gap-16 md:gap-24 md:p-32 pb-0!",children:[y.jsxs("div",{className:"flex justify-between items-center px-16 pt-16 md:px-0 md:pt-0",children:[n&&y.jsx("h2",{className:"text-black font-700 text-2xl",children:n}),o&&y.jsx(Pe,{icon:nu,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700 ml-auto",onClick:t})]}),n&&y.jsx(x2,{className:"bg-gray-100!"})]}),y.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})]})})})})})},QN=({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 y.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:y.jsx("div",{className:`absolute transition-colors ease-in-out duration-150 ${c} size-12 ${e?a:""}`,style:u(i*.7)})})};var ih,w2;function ek(){if(w2)return ih;w2=1;function e(b){this._maxSize=b,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(b){return this._values[b]},e.prototype.set=function(b,C){return this._size>=this._maxSize&&this.clear(),b in this._values||this._size++,this._values[b]=C};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);ih={Cache:e,split:m,normalizePath:h,setter:function(b){var C=h(b);return u.get(b)||u.set(b,function($,A){for(var D=0,R=C.length,F=$;D<R-1;){var B=C[D];if(B==="__proto__"||B==="constructor"||B==="prototype")return $;F=F[C[D++]]}F[C[D]]=A})},getter:function(b,C){var E=h(b);return d.get(b)||d.set(b,function(A){for(var D=0,R=E.length;D<R;)if(A!=null||!C)A=A[E[D++]];else return;return A})},join:function(b){return b.reduce(function(C,E){return C+(v(E)||n.test(E)?"["+E+"]":(C?".":"")+E)},"")},forEach:function(b,C,E){p(Array.isArray(b)?b:m(b),C,E)}};function h(b){return c.get(b)||c.set(b,m(b).map(function(C){return C.replace(o,"$2")}))}function m(b){return b.match(t)||[""]}function p(b,C,E){var $=b.length,A,D,R,F;for(D=0;D<$;D++)A=b[D],A&&(T(A)&&(A='"'+A+'"'),F=v(A),R=!F&&/^\d+$/.test(A),C.call(E,A,F,R,D,b))}function v(b){return typeof b=="string"&&b&&["'",'"'].indexOf(b.charAt(0))!==-1}function S(b){return b.match(r)&&!b.match(n)}function x(b){return i.test(b)}function T(b){return!v(b)&&(S(b)||x(b))}return ih}var Si=ek(),sh,S2;function tk(){if(S2)return sh;S2=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,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return sh={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(" ")},sh}var oh=tk(),hl={exports:{}},T2;function nk(){if(T2)return hl.exports;T2=1,hl.exports=function(i){return e(t(i),i)},hl.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(v){if(!m.has(v[0])||!m.has(v[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(i[d],d,new Set);return c;function p(v,S,x){if(x.has(v)){var T;try{T=", node was:"+JSON.stringify(v)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(v))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(v));if(!u[S]){u[S]=!0;var b=h.get(v)||new Set;if(b=Array.from(b),S=b.length){x.add(v);do{var C=b[--S];p(C,m.get(C),x)}while(S);x.delete(v)}c[--a]=v}}}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 hl.exports}var rk=nk();const ik=Nm(rk),sk=Object.prototype.toString,ok=Error.prototype.toString,ak=RegExp.prototype.toString,lk=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",ck=/^Symbol\((.*)\)(.*)$/;function uk(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function E2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return uk(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return lk.call(e).replace(ck,"Symbol($1)");const r=sk.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+ok.call(e)+"]":r==="RegExp"?ak.call(e):null}function Vr(e,t){let n=E2(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=E2(this[r],t);return o!==null?o:i},2)}function C2(e){return e==null?[]:[].concat(e)}let P2,A2,M2,fk=/\$\{\s*(\w+)\s*\}/g;P2=Symbol.toStringTag;class O2{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[P2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],C2(t).forEach(o=>{if(jt.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]}}A2=Symbol.hasInstance,M2=Symbol.toStringTag;class jt 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(fk,(i,o)=>Vr(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 O2(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[M2]="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,jt)}static[A2](t){return O2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Bn={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 \`${Vr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Vr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Vr(n,!0)}\``+i}},Ft={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"},dk={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"},ah={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hk={isValue:"${path} field must be ${value}"},ml={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Bn,string:Ft,number:dk,date:ah,object:ml,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:hk,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: \`${Vr(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: \`${Vr(n,!0)}\``}return jt.formatError(Bn.notType,e)}}});const lh=e=>e&&e.__isYupSchema__;class pl{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 pl(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(!lh(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const gl={context:"$",value:"."};class Ti{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]===gl.context,this.isValue=this.key[0]===gl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?gl.context:this.isValue?gl.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}}Ti.prototype.__isYupRef=!0;const Ei=e=>e==null;function Ts(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:v}=e;let{parent:S,context:x,abortEarly:T=a.spec.abortEarly,disableStackTrace:b=a.spec.disableStackTrace}=i;function C(ee){return Ti.isRef(ee)?ee.getValue(n,S,x):ee}function E(ee={}){const se=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||b},m,ee.params);for(const le of Object.keys(se))se[le]=C(se[le]);const ge=new jt(jt.formatError(ee.message||p,se),n,se.path,ee.type||d,se.disableStackTrace);return ge.params=se,ge}const $=T?c:u;let A={path:r,parent:S,type:d,from:i.from,createError:E,resolve:C,options:i,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?$(ee):ee?u(null):$(E())},R=ee=>{jt.isError(ee)?$(ee):c(ee)};if(v&&Ei(n))return D(!0);let B;try{var Z;if(B=h.call(A,n,A),typeof((Z=B)==null?void 0:Z.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(B).then(D,R)}}catch(ee){R(ee);return}D(B)}return t.OPTIONS=e,t}function mk(e,t,n,r=n){let i,o,a;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",p=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&&p>=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[p],e=m?e.spec.types[p]: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 yl extends Set{describe(){const t=[];for(const n of this.values())t.push(Ti.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 yl(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Es(e,t=new Map){if(lh(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]=Es(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,Es(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Es(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Es(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Wn{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 yl,this._blacklist=new yl,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Bn.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=Es(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&&Ei(o))return o;let a=Vr(t),c=Vr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
729
729
|
|
|
730
730
|
attempted value: ${a}
|
|
731
|
-
`+(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 f=[];for(let h of Object.values(this.internalTests))h&&f.push(h);this.runTests({path:o,value:u,originalValue:a,options:n,tests:f},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:f}=t,h=x=>{i||(i=!0,n(x,a))},m=x=>{i||(i=!0,r(x,a))},p=o.length,v=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:f,schema:this};for(let x=0;x<o.length;x++){const T=o[x];T(S,h,function(C){C&&(Array.isArray(C)?v.push(...C):v.push(C)),--p<=0&&m(v)})}}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 f=r[c];const h=Object.assign({},a,{strict:!0,parent:r,value:f,originalValue:o[c],key:void 0,[u?"index":"key"]:c,path:u||c.includes(".")?`${i||""}[${u?c:`"${c}"`}]`:(i?`${i}.`:"")+t});return(m,p,v)=>this.resolve(h)._validate(f,h,p,v)}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,f)=>{jt.isError(u)&&(u.value=f),c(u)},(u,f)=>{u.length?c(new jt(u,f,void 0,void 0,o)):a(f)}))}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 jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Es(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=Ts({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=Ts({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.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=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ts(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=C2(t).map(o=>new Ti(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pl(i,n):pl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({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=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ts({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=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ts({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,f,h)=>h.findIndex(m=>m.name===u.name)===f)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=mk(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const pk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gk(e){const t=ch(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 ch(e){var t,n;const r=pk.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 yk=/^[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])?)*$/,vk=/^((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,xk=/^(?:[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,bk="^\\d{4}-\\d{2}-\\d{2}",wk="\\d{2}:\\d{2}:\\d{2}",Sk="(([+-]\\d{2}(:?\\d{2})?)|Z)",Tk=new RegExp(`${bk}T${wk}(\\.\\d+)?${Sk}$`),Ek=e=>Ei(e)||e===e.trim(),Ck={}.toString();function Br(){return new _2}class _2 extends Wn{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===Ck?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.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=Ft.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=Ft.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=Ft.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||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(yk,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(vk,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(xk,{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(Tk,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ch(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ch(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Ek})}lowercase(t=Ft.lowercase){return this.transform(n=>Ei(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ei(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toUpperCase()})}}Br.prototype=_2.prototype;let Pk=new Date(""),Ak=e=>Object.prototype.toString.call(e)==="[object Date]";class uh extends Wn{constructor(){super({type:"date",check(t){return Ak(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=gk(t),isNaN(t)?uh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ti.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=ah.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=ah.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)}})}}uh.INVALID_DATE=Pk;function Mk(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=Si.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),Ti.isRef(c)&&c.isSibling?o(c.path,a):lh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return ik.array(Array.from(r),n).reverse()}function I2(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 $2(e){return(t,n)=>I2(e,t)-I2(e,n)}const Ok=(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 vl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=vl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=vl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(vl)}):"optional"in e?e.optional():e}const _k=(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 D2=e=>Object.prototype.toString.call(e)==="[object Object]";function N2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Ik=$2([]);function fh(e){return new k2(e)}class k2 extends Wn{constructor(t){super({type:"object",check(n){return D2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Ik,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={},f=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),h=!1;for(const m of c){let p=o[m],v=m in i;if(p){let S,x=i[m];f.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:x,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,b=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!b?p.cast(i[m],f):i[m],S!==void 0&&(u[m]=S)}else v&&!a&&(u[m]=i[m]);(v!==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,f)=>{if(!c||!D2(f)){i(u,f);return}a=a||f;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Ti.isRef(p)||h.push(p.asNestedTest({options:n,key:m,parent:f,parentPath:n.path,originalParent:a}))}this.runTests({tests:h,value:f,originalValue:a,options:n},r,m=>{i(m.sort(this._sortErrors).concat(u),f)})})}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=Mk(t,n),r._sortErrors=$2(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 vl(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 a=o;return _k(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(Ok)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ml.exact,test(n){if(n==null)return!0;const r=N2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ml.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=N2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ml.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(oh.camelCase)}snakeCase(){return this.transformKeys(oh.snakeCase)}constantCase(){return this.transformKeys(t=>oh.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}}fh.prototype=k2.prototype,fh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const L2=[{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"}],$k=({countries:e=L2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:f,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(f.value||null),b=_.useRef(null),C=_.useRef(null),E=_.useRef(null),{x:$,y:P,strategy:D,refs:j,context:F,placement:W,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:C})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=Rr(F),{getReferenceProps:ge,getFloatingProps:ue}=Fr([ee,se]),{isMounted:fe,styles:he}=xi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),B=(Array.isArray(e)?e:[]).filter(pe=>{if(!v.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(v.toLowerCase())||ft.includes(v.toLowerCase())}),Y=pe=>{T(pe),p(!1),S(""),f.onChange(pe)},O=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var pe;(pe=b.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||f.onBlur()},200)};_.useEffect(()=>{T(f.value)},[f.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&f.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[f]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,le=(Ve=Z.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],J=ge({onClick:O,onBlur:k}),oe=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return y.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),y.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 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[x!=null&&x.code?y.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(x)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(x)}.png`,srcSet:`https://flagcdn.com/w40/${K(x)}.png 2x`,alt:x.label,onError:pe=>{pe.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&y.jsxs("div",{ref:j.setFloating,style:{position:D,top:P??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[y.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:le!=null?`${le}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:b,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:v,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:B.length>0?y.jsx("ul",{className:"flex flex-col",children:B.map((pe,De)=>{var Ci;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ci=pe.code)==null?void 0:Ci.toLowerCase())||"";return y.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(),Y(pe)},children:[ft&&y.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"}}),y.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Dk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return y.jsxs("div",{className:"flex items-center gap-8",children:[y.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"}}),y.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Nk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:f},fieldState:{error:h}})=>y.jsx(kk,{countries:e,value:f,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},kk=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,le;const{t:u}=Ue(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:C,strategy:E,refs:$,context:P,placement:D,middlewareData:j}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(P),W=Rr(P),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,W]),{isMounted:se,styles:ge}=xi(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const J=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},V=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var z;(z=x.current)==null||z.focus()},100)};_.useEffect(()=>{S(t)},[t]);const B=z=>{var J;return z?z.codeISO2?z.codeISO2.toLowerCase():((J=z.code)==null?void 0:J.toLowerCase())||"":""},Y=(ae=j.arrow)==null?void 0:ae.x,O=(le=j.arrow)==null?void 0:le.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=Z({onClick:V});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[v!=null&&v.code?y.jsxs("div",{className:"flex items-center w-full",children:[B(v)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${B(v)}.png`,srcSet:`https://flagcdn.com/w40/${B(v)}.png 2x`,alt:v.label,onError:z=>{z.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-500",children:i}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:C??0,left:b??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[y.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:Y!=null?`${Y}px`:"",top:O!=null?`${O}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:x,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),y.jsx("div",{children:fe.length>0?y.jsx("ul",{className:"flex flex-col",children:fe.map((z,J)=>{var re;const oe=z.codeISO2?z.codeISO2.toLowerCase():((re=z.code)==null?void 0:re.toLowerCase())||"";return y.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:de=>{de.stopPropagation(),he(z)},children:[oe&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${J}`)})}):y.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},dh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:f}=Ue(),h=t||f;return y.jsx("button",{...u,className:`${BN(e,h,n,r)} ${c}`,children:i?y.jsx(Pe,{...o,className:jo(n),icon:i}):a})};function Lk(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 Rk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,f]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),v=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const C=v==null?void 0:v.field.value;if(Lk(C)){const E=URL.createObjectURL(C);return f(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof C=="string"&&C&&C!==e?(f(C),m(!0)):e?(f(e),m(!0)):(f(null),m(!1))}},[v==null?void 0:v.field.value,e]);const x=()=>{var C;n&&((C=p.current)==null||C.click())},T=C=>{var $;const E=($=C.target.files)==null?void 0:$[0];if(E){const P=URL.createObjectURL(E);f(P),m(!0),S&&(v==null||v.field.onChange(E)),r&&r(E)}},b=C=>{C.stopPropagation(),f(null),m(!1),p.current&&(p.current.value=""),S&&(v==null||v.field.onChange(null)),r&&r(null)};return y.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&y.jsx("button",{type:"button",onClick:b,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:y.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:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:x,children:[u?y.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):y.jsx(v2,{size:60,user:c}),n&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"file",ref:C=>{p.current=C,v&&v.field.ref(C)},onChange:T,onBlur:v==null?void 0:v.field.onBlur,accept:"image/*",className:"hidden"}),!h&&y.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:y.jsx(Pe,{icon:J5,className:"text-blue-500"})})]})]})]})},jk=fh({name:Br(),base64:Br()}),Fk=({imageUrl:e,title:t,subtitle:n})=>y.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[y.jsx("img",{src:e,alt:t,width:100,height:100}),y.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),y.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Vk=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"}},R2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},Bk=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>y.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${Vk(i)} rounded-lg ${n}`,children:[r?y.jsx(Pe,{icon:r,className:`min-h-20 h-20 ${o} ${R2(i)}`}):y.jsx(Pe,{icon:mN,className:`min-h-20 h-20 ${o} ${R2(i)}`}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),y.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),Wk=({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 y.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:y.jsx("svg",{height:e,width:e,className:"animate-spin",children:y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},Uk=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a})=>{const{field:{value:c="",onChange:u,ref:f,onBlur:h},fieldState:{error:m}}=hr.useController({name:n,control:t}),[p,v]=_.useState(!1),{t:S}=Ue();return y.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
|
|
731
|
+
`+(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=x=>{i||(i=!0,n(x,a))},m=x=>{i||(i=!0,r(x,a))},p=o.length,v=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let x=0;x<o.length;x++){const T=o[x];T(S,h,function(C){C&&(Array.isArray(C)?v.push(...C):v.push(C)),--p<=0&&m(v)})}}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,p,v)=>this.resolve(h)._validate(d,h,p,v)}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)=>{jt.isError(u)&&(u.value=d),c(u)},(u,d)=>{u.length?c(new jt(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 jt.isError(c)&&(c.value=u),c},(c,u)=>{if(c.length)throw new jt(c,t,void 0,void 0,a);o=u}),o}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(jt.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(jt.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Es(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=Ts({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=Ts({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Bn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Bn.notNull){return this.nullability(!1,t)}required(t=Bn.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=Bn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ts(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=C2(t).map(o=>new Ti(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new pl(i,n):pl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ts({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=Bn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ts({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=Bn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ts({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)}}}Wn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Wn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=mk(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Wn.prototype[e]=Wn.prototype.oneOf;for(const e of["not","nope"])Wn.prototype[e]=Wn.prototype.notOneOf;const pk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gk(e){const t=ch(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 ch(e){var t,n;const r=pk.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 yk=/^[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])?)*$/,vk=/^((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,xk=/^(?:[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,bk="^\\d{4}-\\d{2}-\\d{2}",wk="\\d{2}:\\d{2}:\\d{2}",Sk="(([+-]\\d{2}(:?\\d{2})?)|Z)",Tk=new RegExp(`${bk}T${wk}(\\.\\d+)?${Sk}$`),Ek=e=>Ei(e)||e===e.trim(),Ck={}.toString();function Br(){return new _2}class _2 extends Wn{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===Ck?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Bn.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=Ft.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=Ft.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=Ft.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||Ft.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Ft.email){return this.matches(yk,{name:"email",message:t,excludeEmptyString:!0})}url(t=Ft.url){return this.matches(vk,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Ft.uuid){return this.matches(xk,{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(Tk,{name:"datetime",message:n||Ft.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Ft.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=ch(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Ft.datetime_precision,params:{precision:i},skipAbsent:!0,test:o=>{if(!o||i==null)return!0;const a=ch(o);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Ft.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Ek})}lowercase(t=Ft.lowercase){return this.transform(n=>Ei(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toLowerCase()})}uppercase(t=Ft.uppercase){return this.transform(n=>Ei(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ei(n)||n===n.toUpperCase()})}}Br.prototype=_2.prototype;let Pk=new Date(""),Ak=e=>Object.prototype.toString.call(e)==="[object Date]";class uh extends Wn{constructor(){super({type:"date",check(t){return Ak(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=gk(t),isNaN(t)?uh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Ti.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=ah.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=ah.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)}})}}uh.INVALID_DATE=Pk;function Mk(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=Si.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),Ti.isRef(c)&&c.isSibling?o(c.path,a):lh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return ik.array(Array.from(r),n).reverse()}function I2(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 $2(e){return(t,n)=>I2(e,t)-I2(e,n)}const Ok=(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 vl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=vl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=vl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(vl)}):"optional"in e?e.optional():e}const _k=(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 D2=e=>Object.prototype.toString.call(e)==="[object Object]";function N2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Ik=$2([]);function fh(e){return new k2(e)}class k2 extends Wn{constructor(t){super({type:"object",check(n){return D2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Ik,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 p=o[m],v=m in i;if(p){let S,x=i[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:x,context:n.context,parent:u});let T=p instanceof Wn?p.spec:void 0,b=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in i;continue}S=!n.__validating||!b?p.cast(i[m],d):i[m],S!==void 0&&(u[m]=S)}else v&&!a&&(u[m]=i[m]);(v!==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||!D2(d)){i(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||Ti.isRef(p)||h.push(p.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=Mk(t,n),r._sortErrors=$2(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 vl(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 a=o;return _k(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(Ok)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ml.exact,test(n){if(n==null)return!0;const r=N2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ml.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=N2(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ml.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(oh.camelCase)}snakeCase(){return this.transformKeys(oh.snakeCase)}constantCase(){return this.transformKeys(t=>oh.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}}fh.prototype=k2.prototype,fh().shape({labelES:Br().required(),label:Br().required(),code:Br().required(),codeISO2:Br().required(),phone:Br().required()});const L2=[{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"}],$k=({countries:e=L2,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ce,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(d.value||null),b=_.useRef(null),C=_.useRef(null),E=_.useRef(null),{x:$,y:A,strategy:D,refs:R,context:F,placement:B,middlewareData:Z}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),bs({element:C})],placement:"bottom-start",whileElementsMounted:$r}),ee=vi(F),se=Rr(F),{getReferenceProps:ge,getFloatingProps:le}=Fr([ee,se]),{isMounted:fe,styles:he}=xi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(Array.isArray(e)?e:[]).filter(pe=>{if(!v.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(v.toLowerCase())||ft.includes(v.toLowerCase())}),V=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},O=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var pe;(pe=b.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};_.useEffect(()=>{T(d.value)},[d.value]),_.useEffect(()=>{const pe=De=>{E.current&&!E.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const K=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},ae=(Ce=Z.arrow)==null?void 0:Ce.x,ce=(Ve=Z.arrow)==null?void 0:Ve.y,z={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],J=ge({onClick:O,onBlur:k}),oe=u(r),re=u(i),de=(ie=h.error)==null?void 0:ie.message;return y.jsxs("div",{ref:E,className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${de&&"!text-red-500"} text-label`,children:oe}),y.jsxs("div",{ref:R.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${de&&"border-red-500 hover:border-red-600"} ${fe?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[x!=null&&x.code?y.jsxs("div",{className:"flex items-center w-full gap-10",children:[K(x)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${K(x)}.png`,srcSet:`https://flagcdn.com/w40/${K(x)}.png 2x`,alt:x.label,onError:pe=>{pe.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:re}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),de&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(de,{x:u(c||"")||u(t)})}),fe&&y.jsxs("div",{ref:R.setFloating,style:{position:D,top:A??0,left:$??0,...he},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...le(),children:[y.jsx("div",{ref:C,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ae!=null?`${ae}px`:"",top:ce!=null?`${ce}px`:"",right:"",bottom:"",[z]:"-2px",borderRight:z==="left"?"1px solid":"none",borderBottom:z==="top"?"1px solid":"none",borderLeft:z==="right"?"1px solid":"none",borderTop:z==="bottom"?"1px solid":"none"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:b,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:v,onChange:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:U.length>0?y.jsx("ul",{className:"flex flex-col",children:U.map((pe,De)=>{var Ci;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ci=pe.code)==null?void 0:Ci.toLowerCase())||"";return y.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(),V(pe)},children:[ft&&y.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"}}),y.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.code}-${De}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Dk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return y.jsxs("div",{className:"flex items-center gap-8",children:[y.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"}}),y.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Nk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ue();return y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>y.jsx(kk,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(i),language:o,error:h==null?void 0:h.message,className:a})})},kk=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:i="type_to_search",language:o="en",error:a,className:c=""})=>{var ae,ce;const{t:u}=Ue(),[d,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:C,strategy:E,refs:$,context:A,placement:D,middlewareData:R}=jr({open:d,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:z,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(z-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(A),B=Rr(A),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,B]),{isMounted:se,styles:ge}=xi(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=(Array.isArray(e)?e:[]).filter(z=>{if(!m.trim())return!0;const J=o==="es"&&z.labelES?z.labelES.toLowerCase():z.label.toLowerCase(),oe=z.code?z.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),he=z=>{S(z),h(!1),p(""),n(z)},Y=()=>{h(!d),!d&&x.current&&setTimeout(()=>{var z;(z=x.current)==null||z.focus()},100)};_.useEffect(()=>{S(t)},[t]);const U=z=>{var J;return z?z.codeISO2?z.codeISO2.toLowerCase():((J=z.code)==null?void 0:J.toLowerCase())||"":""},V=(ae=R.arrow)==null?void 0:ae.x,O=(ce=R.arrow)==null?void 0:ce.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],K=Z({onClick:Y});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${a&&"border-red-500 hover:border-red-600"} ${se?"border-blue-400":"border-blue-100"}`,...K,children:[v!=null&&v.code?y.jsxs("div",{className:"flex items-center w-full",children:[U(v)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${U(v)}.png`,srcSet:`https://flagcdn.com/w40/${U(v)}.png 2x`,alt:v.label,onError:z=>{z.currentTarget.style.display="none"}}),y.jsxs("span",{className:"flex-grow",children:[o==="es"&&v.labelES?v.labelES:v.label,v.code?` (${v.code})`:u("select_country")]})]}):y.jsx("span",{className:"text-gray-500",children:i}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),se&&y.jsxs("div",{ref:$.setFloating,style:{position:E,top:C??0,left:b??0,...ge},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[y.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:V!=null?`${V}px`:"",top:O!=null?`${O}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:y.jsx("input",{ref:x,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:z=>p(z.target.value),onClick:z=>z.stopPropagation(),autoFocus:!0})}),y.jsx("div",{children:fe.length>0?y.jsx("ul",{className:"flex flex-col",children:fe.map((z,J)=>{var re;const oe=z.codeISO2?z.codeISO2.toLowerCase():((re=z.code)==null?void 0:re.toLowerCase())||"";return y.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:de=>{de.stopPropagation(),he(z)},children:[oe&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:z.label,onError:de=>{de.currentTarget.style.display="none"}}),y.jsxs("span",{children:[o==="es"&&z.labelES?z.labelES:z.label,z.code?` (${z.code})`:"Country not found"]})]},`${z.code}-${J}`)})}):y.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},dh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:i,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ue(),h=t||d;return y.jsx("button",{...u,className:`${BN(e,h,n,r)} ${c}`,children:i?y.jsx(Pe,{...o,className:jo(n),icon:i}):a})};function Lk(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 Rk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:i="",name:o,control:a,user:c})=>{const[u,d]=_.useState(e||null),[h,m]=_.useState(!!e),p=_.useRef(null),v=hr.useController({name:o,control:a}),S=!!a;_.useEffect(()=>{if(S){const C=v==null?void 0:v.field.value;if(Lk(C)){const E=URL.createObjectURL(C);return d(E),m(!0),()=>URL.revokeObjectURL(E)}else typeof C=="string"&&C&&C!==e?(d(C),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[v==null?void 0:v.field.value,e]);const x=()=>{var C;n&&((C=p.current)==null||C.click())},T=C=>{var $;const E=($=C.target.files)==null?void 0:$[0];if(E){const A=URL.createObjectURL(E);d(A),m(!0),S&&(v==null||v.field.onChange(E)),r&&r(E)}},b=C=>{C.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(v==null||v.field.onChange(null)),r&&r(null)};return y.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&y.jsx("button",{type:"button",onClick:b,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:y.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:[y.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),y.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),y.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${i}`,onClick:x,children:[u?y.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):y.jsx(v2,{size:60,user:c}),n&&y.jsxs(y.Fragment,{children:[y.jsx("input",{type:"file",ref:C=>{p.current=C,v&&v.field.ref(C)},onChange:T,onBlur:v==null?void 0:v.field.onBlur,accept:"image/*",className:"hidden"}),!h&&y.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:y.jsx(Pe,{icon:J5,className:"text-blue-500"})})]})]})]})},jk=fh({name:Br(),base64:Br()}),Fk=({imageUrl:e,title:t,subtitle:n})=>y.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[y.jsx("img",{src:e,alt:t,width:100,height:100}),y.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),y.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Vk=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"}},R2=e=>{switch(e){case"warning":return"text-yellow-500";case"error":return"text-red-500";default:return"text-blue-500"}},Bk=({description:e,title:t,className:n,icon:r,type:i="informative",iconClassName:o=""})=>y.jsxs("div",{className:`flex items-center gap-12 p-12 w-full ${Vk(i)} rounded-lg ${n}`,children:[r?y.jsx(Pe,{icon:r,className:`min-h-20 h-20 ${o} ${R2(i)}`}):y.jsx(Pe,{icon:mN,className:`min-h-20 h-20 ${o} ${R2(i)}`}),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("h4",{className:"text-body-s font-500 text-black leading-none",children:t}),y.jsx("p",{className:"text-gray-600 text-body-s leading-none",children:e})]})]}),Wk=({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 y.jsx("div",{...c,className:`relative flex items-center justify-center ${a}`,children:y.jsx("svg",{height:e,width:e,className:"animate-spin",children:y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:o+" "+o,strokeDashoffset:o/4,r:i,cx:e/2,cy:e/2})})})},Uk=({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}),[p,v]=_.useState(!1),{t:S}=Ue();return y.jsxs("label",{className:`flex flex-col group gap-8 select-none ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${m&&"!text-red-500"} text-label ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
|
|
732
732
|
flex items-center justify-between gap-8 p-16
|
|
733
733
|
|
|
734
734
|
${m&&"!border-red-500"}
|
|
@@ -744,23 +744,23 @@ attempted value: ${a}
|
|
|
744
744
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
745
745
|
|
|
746
746
|
group-disabled:bg-gray-500
|
|
747
|
-
`,children:[a&&a,y.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:x=>u(x.target.value),onBlur:h,ref:f,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"}),y.jsx(Pe,{icon:p?qC:zC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>v(!p)})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},zk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=L2})=>{var Ai,Sl,Wr,Tl;const{t:u}=Ue(),{field:f,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ai=f.value)==null?void 0:Ai.split(" "))||[],p=m[0]||null,v=m[1]||"",S=c.find(xe=>p===xe.phone),[x,T]=_.useState(!1),[b,C]=_.useState(""),[E,$]=_.useState(S||null),[P,D]=_.useState(v),[j,F]=_.useState(!1),W=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:ue,strategy:fe,refs:he,context:V,placement:B,middlewareData:Y}=jr({open:x,onOpenChange:T,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:xe,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(xe-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(V),k=Rr(V),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,k]),{isMounted:le,styles:z}=xi(V,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(xe=>{if(!b.trim())return!0;const Qe=i==="es"&&xe.labelES?xe.labelES.toLowerCase():xe.label.toLowerCase(),Pt=xe.code?xe.code.toLowerCase():"",wn=xe.phone?xe.phone.toLowerCase():"";return Qe.includes(b.toLowerCase())||Pt.includes(b.toLowerCase())||wn.includes(b.toLowerCase())}),re=xe=>{$(xe),T(!1),C("");const Qe=`${xe.phone} ${P}`;f.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=xe=>{const Qe=xe.target.value;if(D(Qe),E){const Pt=`${E.phone} ${Qe}`;f.onChange(Pt)}},Ce=()=>{T(!x),!x&&W.current&&setTimeout(()=>{var xe;(xe=W.current)==null||xe.focus()},100)},Ve=()=>{setTimeout(()=>{x||f.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(f.value){const xe=f.value.split(" "),Qe=xe[0]||"",Pt=xe[1]||"",wn=c.find(rr=>rr.phone===Qe);wn&&$(wn),D(Pt)}},[f.value,c]),_.useEffect(()=>{const xe=Qe=>{se.current&&!se.current.contains(Qe.target)&&f.onBlur()};return document.addEventListener("mousedown",xe),()=>{document.removeEventListener("mousedown",xe)}},[f]);const De=xe=>{var Qe;return xe?xe.codeISO2?xe.codeISO2.toLowerCase():((Qe=xe.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(Sl=Y.arrow)==null?void 0:Sl.x,Ci=(Wr=Y.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[B.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),wl=()=>h.error?"border-red-500":j||x?"border-blue-400":"border-blue-100",Pi=u(n),qt=u(r),bn=(Tl=h.error)==null?void 0:Tl.message;return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Pi}),y.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[y.jsxs("div",{ref:he.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":wl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?y.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:xe=>{xe.currentTarget.style.display="none"}}),y.jsxs("span",{children:["+",E.phone]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),y.jsx(Pe,{icon:r2,className:"w-14 h-14 min-w-14 min-h-14"})]}),y.jsx("input",{ref:ee,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":wl()}`,placeholder:qt,value:P,onChange:de,onBlur:Ve})]}),bn&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),le&&y.jsxs("div",{ref:he.setFloating,style:{position:fe,top:ue??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[y.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ci!=null?`${Ci}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:y.jsx("input",{ref:W,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:b,onChange:xe=>C(xe.target.value),onClick:xe=>xe.stopPropagation(),onBlur:xe=>{xe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:oe.length>0?y.jsx("ul",{className:"flex flex-col",children:oe.map((xe,Qe)=>{var wn;const Pt=xe.codeISO2?xe.codeISO2.toLowerCase():((wn=xe.code)==null?void 0:wn.toLowerCase())||"";return y.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(),re(xe)},children:[Pt&&y.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:xe.label,onError:rr=>{rr.currentTarget.style.display="none"}}),y.jsxs("span",{className:"text-gray-500",children:["+",xe.phone]})]},`${xe.code}-${Qe}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Gk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Yk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Hk=e=>{switch(e){case"aqua":return Yk;case"blue":default:return Gk}},qk=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Hk(a),f=Math.min(Math.max(e,0),100);return y.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[y.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:y.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${f}%`}})}),t&&y.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[f,"%"]})]})},Kk=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return y.jsx("div",{className:"relative flex items-center",children:y.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:[y.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:y.jsx(Pe,{icon:X5})}),y.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"}})]})})},Xk="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",Zk={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"},Jk={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"},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Jk[n];break;case"blue":default:r=Zk[n];break}return Vn(Xk,r)},eL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]})},tL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",nL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},rL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},iL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",sL={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"},oL={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"},j2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=sL[n];break;case"aqua":default:r=oL[n];break}return Vn(iL,r)},aL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=rL[n];break;case"blue":default:r=nL[n];break}return Vn(tL,r)},lL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),f=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${aL(r,f)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx("div",{className:j2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx("div",{className:j2(r,f),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},cL=e=>{const{display:t,...n}=e;return t==="desktop"?y.jsx(eL,{...n}):t==="mobile"?y.jsx(lL,{...n}):null},uL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0})=>y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:c,value:u},fieldState:{error:f}})=>y.jsx(fL,{options:e,value:u,onChange:c,label:r,placeholder:i,error:f==null?void 0:f.message,className:o,input:a})}),fL=({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}=Ue(),[f,h]=_.useState(!1),[m,p]=_.useState(""),[v,S]=_.useState(t||null),x=_.useRef(null),T=_.useRef(null),{x:b,y:C,strategy:E,refs:$,context:P}=jr({open:f,onOpenChange:h,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),D=vi(P),j=Rr(P),{getReferenceProps:F,getFloatingProps:W}=Fr([D,j]),{isMounted:Z,styles:ee}=xi(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),se=(()=>{const V=Array.isArray(e)?e:[];if(!m.trim())return V;const B=m.toLowerCase();return V.filter(Y=>{const O=Y.label.toLowerCase(),k=Y.key.toLowerCase();return O.includes(B)||k.includes(B)})})(),ge=V=>{S(V),h(!1),p(""),n(V)},ue=()=>{h(!f),!f&&x.current&&setTimeout(()=>{var V;return(V=x.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{S(t)},[t]);const fe=F({onClick:ue}),he=u(i);return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${a}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),y.jsxs("div",{ref:$.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
747
|
+
`,children:[a&&a,y.jsx("input",{id:n,type:p?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:c,onChange:x=>u(x.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"}),y.jsx(Pe,{icon:p?qC:zC,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>v(!p)})]}),y.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:m&&S(m.message||"",{x:S(n)})})]})},zk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:i="en",className:o="",translateKey:a,countries:c=L2})=>{var Ai,Sl,Wr,Tl;const{t:u}=Ue(),{field:d,fieldState:h}=hr.useController({name:e,control:t,rules:{validate:{}}}),m=((Ai=d.value)==null?void 0:Ai.split(" "))||[],p=m[0]||null,v=m[1]||"",S=c.find(xe=>p===xe.phone),[x,T]=_.useState(!1),[b,C]=_.useState(""),[E,$]=_.useState(S||null),[A,D]=_.useState(v),[R,F]=_.useState(!1),B=_.useRef(null),Z=_.useRef(null),ee=_.useRef(null),se=_.useRef(null),{x:ge,y:le,strategy:fe,refs:he,context:Y,placement:U,middlewareData:V}=jr({open:x,onOpenChange:T,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:xe,elements:Qe}){Object.assign(Qe.floating.style,{maxHeight:`${Math.min(xe-10,300)}px`})},padding:8}),bs({element:Z})],placement:"bottom-start",whileElementsMounted:$r}),O=vi(Y),k=Rr(Y),{getReferenceProps:K,getFloatingProps:ae}=Fr([O,k]),{isMounted:ce,styles:z}=xi(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(Array.isArray(c)?c:[]).filter(xe=>{if(!b.trim())return!0;const Qe=i==="es"&&xe.labelES?xe.labelES.toLowerCase():xe.label.toLowerCase(),Pt=xe.code?xe.code.toLowerCase():"",wn=xe.phone?xe.phone.toLowerCase():"";return Qe.includes(b.toLowerCase())||Pt.includes(b.toLowerCase())||wn.includes(b.toLowerCase())}),re=xe=>{$(xe),T(!1),C("");const Qe=`${xe.phone} ${A}`;d.onChange(Qe),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},de=xe=>{const Qe=xe.target.value;if(D(Qe),E){const Pt=`${E.phone} ${Qe}`;d.onChange(Pt)}},Ce=()=>{T(!x),!x&&B.current&&setTimeout(()=>{var xe;(xe=B.current)==null||xe.focus()},100)},Ve=()=>{setTimeout(()=>{x||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};_.useEffect(()=>{if(d.value){const xe=d.value.split(" "),Qe=xe[0]||"",Pt=xe[1]||"",wn=c.find(rr=>rr.phone===Qe);wn&&$(wn),D(Pt)}},[d.value,c]),_.useEffect(()=>{const xe=Qe=>{se.current&&!se.current.contains(Qe.target)&&d.onBlur()};return document.addEventListener("mousedown",xe),()=>{document.removeEventListener("mousedown",xe)}},[d]);const De=xe=>{var Qe;return xe?xe.codeISO2?xe.codeISO2.toLowerCase():((Qe=xe.code)==null?void 0:Qe.toLowerCase())||"":""},ft=(Sl=V.arrow)==null?void 0:Sl.x,Ci=(Wr=V.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],bl=K({onClick:Ce,onBlur:Ve}),wl=()=>h.error?"border-red-500":R||x?"border-blue-400":"border-blue-100",Pi=u(n),qt=u(r),bn=(Tl=h.error)==null?void 0:Tl.message;return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[y.jsx("label",{className:`text-gray-600 font-600 group ${bn&&"!text-red-500"} text-label`,children:Pi}),y.jsxs("div",{ref:se,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,children:[y.jsxs("div",{ref:he.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":wl()}`,style:{minWidth:"140px"},...bl,tabIndex:0,children:[E!=null&&E.code?y.jsxs("div",{className:"flex items-center truncate",children:[De(E)&&y.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(E)}.png`,srcSet:`https://flagcdn.com/w40/${De(E)}.png 2x`,alt:E.label,onError:xe=>{xe.currentTarget.style.display="none"}}),y.jsxs("span",{children:["+",E.phone]})]}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),y.jsx(Pe,{icon:r2,className:"w-14 h-14 min-w-14 min-h-14"})]}),y.jsx("input",{ref:ee,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":wl()}`,placeholder:qt,value:A,onChange:de,onBlur:Ve})]}),bn&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(bn,{x:u(a||"")||e})}),ce&&y.jsxs("div",{ref:he.setFloating,style:{position:fe,top:le??0,left:ge??0,...z},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...ae(),children:[y.jsx("div",{ref:Z,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ci!=null?`${Ci}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"}}),y.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:y.jsx("input",{ref:B,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:b,onChange:xe=>C(xe.target.value),onClick:xe=>xe.stopPropagation(),onBlur:xe=>{xe.stopPropagation()},autoFocus:!0})}),y.jsx("div",{children:oe.length>0?y.jsx("ul",{className:"flex flex-col",children:oe.map((xe,Qe)=>{var wn;const Pt=xe.codeISO2?xe.codeISO2.toLowerCase():((wn=xe.code)==null?void 0:wn.toLowerCase())||"";return y.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(),re(xe)},children:[Pt&&y.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:xe.label,onError:rr=>{rr.currentTarget.style.display="none"}}),y.jsxs("span",{className:"text-gray-500",children:["+",xe.phone]})]},`${xe.code}-${Qe}`)})}):y.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Gk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Yk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Hk=e=>{switch(e){case"aqua":return Yk;case"blue":default:return Gk}},qk=({progress:e,showPercentage:t=!1,color:n,className:r="",...i})=>{const{defaultColorScheme:o}=Ue(),a=n||o,{bgColor:c,fillColor:u}=Hk(a),d=Math.min(Math.max(e,0),100);return y.jsxs("div",{className:`flex items-center gap-12 ${r}`,...i,children:[y.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:y.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&y.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Kk=()=>{const[e,t]=_.useState(!1),n=_.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},i=()=>{t(!1)};return y.jsx("div",{className:"relative flex items-center",children:y.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:[y.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:y.jsx(Pe,{icon:X5})}),y.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"}})]})})},Xk="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",Zk={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"},Jk={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"},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Jk[n];break;case"blue":default:r=Zk[n];break}return Vn(Xk,r)},eL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx(Pe,{icon:a,className:jo()}),e]})},tL="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",nL={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},rL={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},iL="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",sL={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"},oL={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"},j2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=sL[n];break;case"aqua":default:r=oL[n];break}return Vn(iL,r)},aL=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=rL[n];break;case"blue":default:r=nL[n];break}return Vn(tL,r)},lL=({label:e,href:t,onClick:n,active:r=!1,disabled:i=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ue(),d=c||u,h=p=>{if(i){p.preventDefault();return}n==null||n(p)},m=`${aL(r,d)} ${i?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?y.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":i,children:[a&&y.jsx("div",{className:j2(r,d),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):y.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:i,children:[a&&y.jsx("div",{className:j2(r,d),children:y.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},cL=e=>{const{display:t,...n}=e;return t==="desktop"?y.jsx(eL,{...n}):t==="mobile"?y.jsx(lL,{...n}):null},uL=({options:e,name:t,control:n,label:r="Select an option",placeholder:i="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u=""})=>y.jsx(hr.Controller,{name:t,control:n,render:({field:{onChange:d,value:h},fieldState:{error:m}})=>y.jsx(fL,{options:e,value:h,onChange:d,label:r,placeholder:i,error:m==null?void 0:m.message,className:o,input:a,dropdownStyle:c,innerClassName:u})}),fL=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:i="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d=""})=>{const{t:h}=Ue(),[m,p]=_.useState(!1),[v,S]=_.useState(""),[x,T]=_.useState(t||null),b=_.useRef(null),C=_.useRef(null),{x:E,y:$,strategy:A,refs:D,context:R}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:O}){Object.assign(O.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:C})],placement:"bottom-start",whileElementsMounted:$r}),F=vi(R),B=Rr(R),{getReferenceProps:Z,getFloatingProps:ee}=Fr([F,B]),{isMounted:se,styles:ge}=xi(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(()=>{const V=Array.isArray(e)?e:[];if(!v.trim())return V;const O=v.toLowerCase();return V.filter(k=>{const K=k.label.toLowerCase(),ae=k.key.toLowerCase();return K.includes(O)||ae.includes(O)})})(),fe=V=>{T(V),p(!1),S(""),n(V)},he=()=>{p(!m),!m&&b.current&&setTimeout(()=>{var V;return(V=b.current)==null?void 0:V.focus()},100)};_.useEffect(()=>{T(t)},[t]);const Y=Z({onClick:he}),U=h(i);return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${o?"!text-red-500":""} text-label`,children:r}),y.jsxs("div",{ref:D.setReference,className:`${d} flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
748
748
|
border transition-all duration-200 hover:border-blue-400
|
|
749
|
-
${o?"border-red-500 hover:border-red-600":""} ${
|
|
749
|
+
${o?"border-red-500 hover:border-red-600":""} ${m?"border-blue-400":"border-blue-100"}`,...Y,children:[x?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:h(x.label)})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:U}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:o}),se&&y.jsxs("div",{ref:D.setFloating,style:{position:A,top:$??0,left:E??0,...ge,width:D.reference.current instanceof Element?D.reference.current.clientWidth:void 0,zIndex:50,...u},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ee(),children:[a&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:b,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:h("search_options"),value:v,onChange:V=>S(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),v&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),S("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:le.length>0?y.jsx("ul",{className:"py-4",children:le.map((V,O)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${(x==null?void 0:x.key)===V.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:k=>{k.stopPropagation(),fe(V)},children:y.jsx("span",{children:typeof V.label=="string"?h(V.label):V.expandedLabel||V.label})},`${V.key}-${O}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',v,'"']})]})})]})]})},dL={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},hL={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},mL=e=>{switch(e){case"aqua":return hL;case"blue":default:return dL}},pL=({active:e,icon:t,label:n,onClick:r,expanded:i,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ue(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=mL(u);return y.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
750
750
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
751
751
|
${!i&&"w-fit"}
|
|
752
752
|
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
|
|
753
|
-
${e?`${
|
|
753
|
+
${e?`${d} ${h}`:"bg-transparent"}`,children:[y.jsx(Pe,{icon:t,className:e?p:"text-gray-500",style:{height:"16px"}}),y.jsx("h4",{className:`
|
|
754
754
|
text-md
|
|
755
755
|
leading-none
|
|
756
756
|
font-600
|
|
757
757
|
w-[0px]
|
|
758
758
|
text-nowrap
|
|
759
759
|
transition-all duration-100 ease-in-out
|
|
760
|
-
text-gray-500
|
|
760
|
+
${!e&&"text-gray-500"}
|
|
761
761
|
opacity-0 capitalize
|
|
762
762
|
${i&&"translate-x-0 opacity-100 !w-full !h-auto ml-8"}
|
|
763
|
-
${e&&
|
|
763
|
+
${e&&d}`,children:n})]})},gL="flex w-full h-full gap-12 px-10 py-6 items-center justify-center",yL={default:"flex-row rounded-full text-blue-500",underline:"flex-col border-b-[1.3px] px-24 pb-16 text-gray-700"},vL={true:"text-blue-500 border-b-blue-500",false:"text-gray-700 border-b-gray-700"},xL=(e="underline",t=!1)=>Vn(gL,yL[e],vL[String(t)]),F2=({label:e,icon:t,isSelected:n,onClick:r,variant:i="default",direction:o="row",labelClassName:a=""})=>y.jsxs("button",{className:`${xL(i,n)} w-full cursor-pointer transition-all duration-200 ${o==="row"&&"flex-row!"}`,onClick:r,children:[t&&y.jsx(Pe,{icon:t,className:`${n?"text-blue-500":"text-gray-500"} w-20 h-20`}),y.jsx("span",{className:Vn("text-lg font-500",a),children:e})]}),bL="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",wL={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"},SL=(e="blue")=>Vn(bL,wL[e]),V2=({color:e,children:t,className:n,...r})=>{const{defaultColorScheme:i}=Ue(),o=e||i;return y.jsx("button",{type:"button",className:SL(o)+" "+n,...r,children:t})},TL=({label:e,control:t,name:n,placeholder:r,className:i="",disabled:o=!1,leftSide:a,rightSide:c,translateKey:u="",size:d="base",...h})=>{const{field:{value:m="",onChange:p,ref:v,onBlur:S},fieldState:{error:x}}=hr.useController({name:n,control:t}),{t:T}=Ue(),C={sm:{container:"p-8",text:"text-body-s",label:"text-xs",error:"text-xs",gap:"gap-6"},base:{container:"p-16",text:"text-body-m",label:"text-label",error:"text-label",gap:"gap-8"}}[d],E=T(n),$=T(u);return y.jsxs("label",{className:`flex flex-col group select-none ${C.gap} ${o&&"cursor-not-allowed"} ${i}`,htmlFor:n,children:[y.jsx("h6",{className:`text-gray-600 font-600 group ${x&&"text-red-500!"} ${C.label} ${o&&"text-gray-300"}`,children:e}),y.jsxs("label",{htmlFor:n,className:`
|
|
764
764
|
flex items-center justify-between gap-8 ${C.container}
|
|
765
765
|
|
|
766
766
|
${x&&"border-red-500!"}
|
|
@@ -776,9 +776,9 @@ attempted value: ${a}
|
|
|
776
776
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
777
777
|
|
|
778
778
|
group-disabled:bg-gray-500
|
|
779
|
-
`,children:[a&&a,y.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:
|
|
779
|
+
`,children:[a&&a,y.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:A=>p(A.target.value),onBlur:S,ref:v,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 ${C.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),y.jsx("h4",{className:`font-500 text-red-500 leading-none ${C.error}`,children:(x==null?void 0:x.message)&&T(x.message,{x:$||E})})]})},EL=({label:e,value:t,className:n})=>y.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[y.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),y.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),B2=({options:e,onChange:t,value:n,disabled:r,error:i,label:o="",placeholder:a="",allowSearch:c=!1,className:u="",innerClassName:d="",dropdownStyle:h={}})=>{const[m,p]=_.useState(!1),[v,S]=_.useState(""),x=_.useRef(null),T=_.useRef(null),b=e.find(V=>V.value===n),C=_.useMemo(()=>e.map(V=>({...V,searchableLabel:typeof V.label=="string"?V.label:_.isValidElement(V.label)?xl(V.label):String(V.label),searchableValue:String(V.value)})),[e]),E=_.useMemo(()=>{const V={keys:[{name:"searchableLabel",weight:2},{name:"searchableValue",weight:1}],threshold:.2,distance:150,includeScore:!0,includeMatches:!0,ignoreLocation:!0,minMatchCharLength:1,shouldSort:!0,findAllMatches:!0};return new vT(C,V)},[C]),{x:$,y:A,strategy:D,refs:R,context:F}=jr({open:m,onOpenChange:p,middleware:[Dr(8),kr(),Nr({padding:8}),xs({apply({availableHeight:V,elements:O}){Object.assign(O.floating.style,{maxHeight:`${Math.min(V-10,300)}px`})},padding:8}),bs({element:T})],placement:"bottom-start",whileElementsMounted:$r}),B=vi(F),Z=Rr(F),{getReferenceProps:ee,getFloatingProps:se}=Fr([B,Z]),{isMounted:ge,styles:le}=xi(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),fe=_.useMemo(()=>v.trim()?E.search(v).map(O=>({...O.item,score:O.score,matches:O.matches})):e,[v,E,e]),he=V=>{t(V.value),p(!1),S("")},U=ee({onClick:()=>{r||(p(!m),!m&&x.current&&c&&setTimeout(()=>{var V;return(V=x.current)==null?void 0:V.focus()},100))}});return y.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${u}`,children:[o&&y.jsx("h6",{className:`text-gray-600 font-600 group ${i?"!text-red-500":""} text-label ${r?"text-gray-300":""}`,children:o}),y.jsxs("div",{ref:R.setReference,className:`${d} flex items-center justify-between bg-light rounded-full p-16 cursor-pointer
|
|
780
780
|
border transition-all duration-200 ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
|
|
781
|
-
${i?"border-red-500 hover:border-red-600":""} ${f?"border-blue-400":"border-blue-100"}`,...he,children:[x?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:x.label})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${f?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ee&&y.jsxs("div",{ref:P.setFloating,style:{position:$,top:E??0,left:C??0,...se,width:P.reference.current instanceof Element?P.reference.current.clientWidth:void 0,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...Z(),children:[u&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:v,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:m,onChange:V=>p(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),m&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),p("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:ge.length>0?y.jsx("ul",{className:"py-4",children:ge.map((V,B)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:Y=>{Y.stopPropagation(),ue(V)},children:y.jsx("span",{children:V.label})},`${V.value}-${B}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',m,'"']})]})})]})]})},xl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(_.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(xl).join(" "):xl(n):""}return Array.isArray(e)?e.map(xl).join(" "):""},hh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[f,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,v=p*(1-f/100),{className:S="",...x}=u;return _.useEffect(()=>{if(!a)return;let T,b;const C=E=>{T||(T=E);const $=E-T,P=Math.min(100,$/r*100);h(P),P<100&&(b=requestAnimationFrame(C))};return b=requestAnimationFrame(C),()=>{b&&cancelAnimationFrame(b)}},[r,a]),y.jsxs("div",{...x,className:`relative flex items-center justify-center ${S}`,children:[y.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[y.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:v,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),y.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&y.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&y.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(f),"%"]})]})]})},CL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:f=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),T=_.useRef(null),b=i.map(W=>`.${W}`).join(","),C=W=>{const Z=[];let ee=!1;Array.from(W).forEach(se=>{var ue;const ge=((ue=se.name.split(".").pop())==null?void 0:ue.toLowerCase())||"";if(!i.includes(ge)){x(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){x(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(x(""),r(Z))},E=()=>{T.current&&T.current.click()},$=W=>{const Z=W.target.files;Z&&Z.length>0&&C(Z),W.target.value=""},P=W=>{W.preventDefault(),W.stopPropagation(),v(!0)},D=W=>{W.preventDefault(),W.stopPropagation(),v(!1)},j=W=>{W.preventDefault(),W.stopPropagation(),p||v(!0)},F=W=>{W.preventDefault(),W.stopPropagation(),v(!1);const Z=W.dataTransfer.files;Z.length>0&&C(Z)};return h==="row"?a?y.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:y.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:y.jsxs("div",{className:`${f&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center shrink-0",children:y.jsx(Pe,{icon:dN,className:"text-blue-500 text-2xl"})}),y.jsx("div",{className:"flex flex-col items-start text-left grow",children:y.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),y.jsx("div",{className:"shrink-0",children:y.jsx(wi,{color:"blue",variant:"transparent",children:m(n)})}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?y.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:y.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:y.jsxs("div",{className:`${f&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:j,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center translate-y-4",children:y.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&y.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),y.jsx(V2,{color:"blue",children:m(n)}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),y.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:y.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Cv(o,"mb")]})})]})},ln=8,PL=1e3,AL="300px",ML={top:"bottom",right:"left",bottom:"top",left:"right"},OL={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`}},_L=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:f,y:h,strategy:m,placement:p,refs:v,context:S,middlewareData:x}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),kr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=Q3(S,{delay:o}),b=iN(S),C=Rr(S),E=oN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:P}=Fr([T,b,C,E]),D=p.split("-")[0],j=ML[D],{x:F,y:W}=x.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:v.setReference,...$()});return y.jsxs(y.Fragment,{children:[Z,y.jsx(vn,{children:a&&y.jsx("div",{ref:v.setFloating,style:{position:m,top:h??0,left:f??0,zIndex:PL,width:"max-content",maxWidth:AL},...P(),children:y.jsxs(Ge.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,y.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:W!=null?`${W}px`:"",[j]:"-7px",...OL[D]}})]})})})]})},IL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:f=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:v="1.5s",colorThresholds:S,lowThreshold:x=30,mediumThreshold:T=70,lowColor:b="#ef4444",mediumColor:C="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:P=!0,startAngle:D=-90})=>{const j=Y=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].color;return O[0].color}return Y<x?b:Y<T?C:E},F=Y=>{if(!S||S.length===0)return;const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(Y>=O[k].threshold)return O[k].label;return O[0].label},W=Math.min(100,Math.max(0,e)),Z=j(W),ee=F(W),se=f/2,ge=(f-h)/2,ue=2*Math.PI*ge,fe=ue,he=ue-W/100*ue,B=`rotate(${D} ${se} ${se}) scale(${P?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[y.jsxs("div",{className:"relative",style:{width:f,height:f},children:[y.jsxs("svg",{width:f,height:f,className:"transform -rotate-90",viewBox:`0 0 ${f} ${f}`,children:[y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:B,className:p?"transition-all ease-out":"",style:p?{transitionDuration:v,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(W),"%"]}),(ee||i)&&n&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},$L=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:f=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:v="bg-green-500",singleColor:S})=>{const x=P=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(P>=D[j].threshold)return D[j].color;return D[0].color}return P<f?m:P<h?p:v},T=P=>{if(!u||u.length===0)return;const D=[...u].sort((j,F)=>j.threshold-F.threshold);for(let j=D.length-1;j>=0;j--)if(P>=D[j].threshold)return D[j].label;return D[0].label},b=Math.min(100,Math.max(0,e)),C=x(b),E=T(b),$=a?`transition-all ${c} ease-in-out`:"";return y.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[y.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:y.jsx("div",{className:`h-full ${C} ${$} rounded-full`,style:{width:`${b}%`}})}),t&&y.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[y.jsxs("span",{className:"font-bold",children:[Math.round(b),"%"]}),E&&y.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),y.jsx("span",{className:"text-gray-600",children:n})]})]})},DL=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:f="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:v=!0,startAngle:S=-90})=>{const x=Math.min(100,Math.max(0,e)),T=n/2,b=(n-r)/2,C=2*Math.PI*b,E=C,$=C-x/100*C,D=`rotate(${S} ${T} ${T}) scale(${v?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[y.jsxs("div",{className:"relative",style:{width:n,height:n},children:[y.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(x),"%"]}),f&&m&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:f})]})})]}),a&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},NL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return y.jsxs("button",{onClick:t,className:`
|
|
781
|
+
${i?"border-red-500 hover:border-red-600":""} ${m?"border-blue-400":"border-blue-100"}`,...U,children:[b?y.jsx("div",{className:"flex items-center w-full",children:y.jsx("span",{className:"flex-grow font-600 text-body-m",children:b.label})}):y.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:a}),y.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),i&&y.jsx("p",{className:"mt-1 text-sm text-red-600",children:i}),ge&&y.jsxs("div",{ref:R.setFloating,style:{position:D,top:A??0,left:$??0,...le,width:R.reference.current instanceof Element?R.reference.current.clientWidth:void 0,zIndex:50,...h},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...se(),children:[c&&y.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:y.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),y.jsx("input",{ref:x,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:"Search options...",value:v,onChange:V=>S(V.target.value),onClick:V=>V.stopPropagation(),autoFocus:!0}),v&&y.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:V=>{V.stopPropagation(),S("")},children:y.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),y.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:fe.length>0?y.jsx("ul",{className:"py-4",children:fe.map((V,O)=>y.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===V.value?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:k=>{k.stopPropagation(),he(V)},children:y.jsx("span",{children:(V==null?void 0:V.expandedLabel)||V.label})},`${V.value}-${O}`))}):y.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[y.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),y.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',v,'"']})]})})]})]})},xl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(_.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(xl).join(" "):xl(n):""}return Array.isArray(e)?e.map(xl).join(" "):""},hh=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:i="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=_.useState(o),m=(e-t)/2,p=2*Math.PI*m,v=p*(1-d/100),{className:S="",...x}=u;return _.useEffect(()=>{if(!a)return;let T,b;const C=E=>{T||(T=E);const $=E-T,A=Math.min(100,$/r*100);h(A),A<100&&(b=requestAnimationFrame(C))};return b=requestAnimationFrame(C),()=>{b&&cancelAnimationFrame(b)}},[r,a]),y.jsxs("div",{...x,className:`relative flex items-center justify-center ${S}`,children:[y.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[y.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),y.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:v,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),y.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[i&&y.jsx("div",{className:"text-xs font-medium text-gray-500",children:i}),c&&y.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},CL=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:i=["pdf","png","jpg","jpeg","svg","docx","doc","xls","xlsx"],maxSize:o=1024,loading:a=!1,loadingDuration:c=1e4,className:u="",disabled:d=!1,direction:h="column"})=>{const{t:m}=Ue(),[p,v]=_.useState(!1),[S,x]=_.useState(""),T=_.useRef(null),b=i.map(B=>`.${B}`).join(","),C=B=>{const Z=[];let ee=!1;Array.from(B).forEach(se=>{var le;const ge=((le=se.name.split(".").pop())==null?void 0:le.toLowerCase())||"";if(!i.includes(ge)){x(`El archivo ${se.name} tiene una extensión no permitida.`),ee=!0;return}if(se.size>o*1024){x(`El archivo ${se.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Z.push(se)}),!ee&&Z.length>0&&(x(""),r(Z))},E=()=>{T.current&&T.current.click()},$=B=>{const Z=B.target.files;Z&&Z.length>0&&C(Z),B.target.value=""},A=B=>{B.preventDefault(),B.stopPropagation(),v(!0)},D=B=>{B.preventDefault(),B.stopPropagation(),v(!1)},R=B=>{B.preventDefault(),B.stopPropagation(),p||v(!0)},F=B=>{B.preventDefault(),B.stopPropagation(),v(!1);const Z=B.dataTransfer.files;Z.length>0&&C(Z)};return h==="row"?a?y.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:y.jsxs("div",{className:"h-full flex items-center justify-center gap-8 border-[1.4px] border-dashed rounded-2xl px-12 py-10 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:y.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-row border-[1.4px] h-full border-dashed items-center justify-between rounded-2xl px-12 py-10 cursor-pointer transition-all duration-300 gap-8 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:R,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center shrink-0",children:y.jsx(Pe,{icon:dN,className:"text-blue-500 text-2xl"})}),y.jsx("div",{className:"flex flex-col items-start text-left grow",children:y.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),y.jsx("div",{className:"shrink-0",children:y.jsx(wi,{color:"blue",variant:"transparent",children:m(n)})}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):a?y.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:y.jsxs("div",{className:"h-full grow flex items-center justify-center gap-16 border-[1.4px] border-dashed rounded-2xl pt-28 p-32 text-center transition-all duration-300 border-blue-200 select-none",children:[y.jsx(hh,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),y.jsxs("h4",{className:"text-body-s text-gray-400",children:[m("loading"),"..."]})]})})}):y.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[y.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:y.jsxs("div",{className:`${d&&"hover:cursor-not-allowed! pointer-events-none! opacity-50!"} flex flex-col border-[1.4px] h-full grow border-dashed items-center justify-center rounded-2xl pt-28 p-32 text-center cursor-pointer transition-all duration-300 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:A,onDragLeave:D,onDragOver:R,onDrop:F,onClick:E,children:[y.jsx("div",{className:"flex justify-center translate-y-4",children:y.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("h3",{className:"font-600 text-xl text-dark",children:m(e)}),t&&y.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),y.jsx(V2,{color:"blue",children:m(n)}),y.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:b,onChange:$})]})]})}),S&&y.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),y.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:y.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[i.join(", ").toUpperCase()," ",m("formats"),". ",m("maximum_size"),":"," ",Cv(o,"mb")]})})]})},ln=8,PL=1e3,AL="300px",ML={top:"bottom",right:"left",bottom:"top",left:"right"},OL={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`}},_L=({children:e,message:t,className:n="",placement:r="top",offset:i=8,delay:o=0})=>{const[a,c]=_.useState(!1),u=_.useRef(null),{x:d,y:h,strategy:m,placement:p,refs:v,context:S,middlewareData:x}=jr({open:a,onOpenChange:c,placement:r,middleware:[Dr(i),kr(),Nr({padding:8}),bs({element:u})],whileElementsMounted:$r}),T=Q3(S,{delay:o}),b=iN(S),C=Rr(S),E=oN(S,{role:"tooltip"}),{getReferenceProps:$,getFloatingProps:A}=Fr([T,b,C,E]),D=p.split("-")[0],R=ML[D],{x:F,y:B}=x.arrow||{x:0,y:0},Z=_.cloneElement(e,{ref:v.setReference,...$()});return y.jsxs(y.Fragment,{children:[Z,y.jsx(vn,{children:a&&y.jsx("div",{ref:v.setFloating,style:{position:m,top:h??0,left:d??0,zIndex:PL,width:"max-content",maxWidth:AL},...A(),children:y.jsxs(Ge.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,y.jsx("div",{ref:u,className:"absolute w-0 h-0 tooltip-arrow-light",style:{position:"absolute",left:F!=null?`${F}px`:"",top:B!=null?`${B}px`:"",[R]:"-7px",...OL[D]}})]})})})]})},IL=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:i="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:v="1.5s",colorThresholds:S,lowThreshold:x=30,mediumThreshold:T=70,lowColor:b="#ef4444",mediumColor:C="#eab308",highColor:E="#22c55e",singleColor:$,clockwise:A=!0,startAngle:D=-90})=>{const R=V=>{if($)return $;if(S&&S.length>0){const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(V>=O[k].threshold)return O[k].color;return O[0].color}return V<x?b:V<T?C:E},F=V=>{if(!S||S.length===0)return;const O=[...S].sort((k,K)=>k.threshold-K.threshold);for(let k=O.length-1;k>=0;k--)if(V>=O[k].threshold)return O[k].label;return O[0].label},B=Math.min(100,Math.max(0,e)),Z=R(B),ee=F(B),se=d/2,ge=(d-h)/2,le=2*Math.PI*ge,fe=le,he=le-B/100*le,U=`rotate(${D} ${se} ${se}) scale(${A?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[y.jsxs("div",{className:"relative",style:{width:d,height:d},children:[y.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),y.jsx("circle",{cx:se,cy:se,r:ge,fill:"transparent",stroke:Z,strokeWidth:h,strokeDasharray:fe,strokeDashoffset:he,strokeLinecap:"round",transform:U,className:p?"transition-all ease-out":"",style:p?{transitionDuration:v,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(B),"%"]}),(ee||i)&&n&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||i})]})})]}),r&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},$L=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:i="h-5",backgroundColor:o="bg-gray-200",animated:a=!0,animationDuration:c="duration-300",colorThresholds:u,lowThreshold:d=30,mediumThreshold:h=70,lowColor:m="bg-red-500",mediumColor:p="bg-yellow-500",highColor:v="bg-green-500",singleColor:S})=>{const x=A=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(A>=D[R].threshold)return D[R].color;return D[0].color}return A<d?m:A<h?p:v},T=A=>{if(!u||u.length===0)return;const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(A>=D[R].threshold)return D[R].label;return D[0].label},b=Math.min(100,Math.max(0,e)),C=x(b),E=T(b),$=a?`transition-all ${c} ease-in-out`:"";return y.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[y.jsx("div",{className:`flex-1 ${o} rounded-full ${i} overflow-hidden`,children:y.jsx("div",{className:`h-full ${C} ${$} rounded-full`,style:{width:`${b}%`}})}),t&&y.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[y.jsxs("span",{className:"font-bold",children:[Math.round(b),"%"]}),E&&y.jsxs("span",{className:"text-xs text-gray-500",children:["(",E,")"]}),y.jsx("span",{className:"text-gray-600",children:n})]})]})},DL=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:i="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:v=!0,startAngle:S=-90})=>{const x=Math.min(100,Math.max(0,e)),T=n/2,b=(n-r)/2,C=2*Math.PI*b,E=C,$=C-x/100*C,D=`rotate(${S} ${T} ${T}) scale(${v?1:-1}, 1)`;return y.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[y.jsxs("div",{className:"relative",style:{width:n,height:n},children:[y.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),y.jsx("circle",{cx:T,cy:T,r:b,fill:"transparent",stroke:i,strokeWidth:r,strokeDasharray:E,strokeDashoffset:$,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),y.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:y.jsxs("div",{className:"text-center",children:[t&&y.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(x),"%"]}),d&&m&&y.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&y.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},NL=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return y.jsxs("button",{onClick:t,className:`
|
|
782
782
|
relative inline-flex min-h-24 min-w-48 items-center rounded-full
|
|
783
783
|
transition-colors duration-200 ease-in-out focus:outline-none
|
|
784
784
|
shadow-lg
|
|
@@ -787,4 +787,4 @@ attempted value: ${a}
|
|
|
787
787
|
inline-block h-20 w-20 transform rounded-full bg-white
|
|
788
788
|
transition-transform duration-200 ease-in-out drop-shadow-xl
|
|
789
789
|
${e?"translate-x-24":"translate-x-3"}
|
|
790
|
-
`})]})},kL=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,v,S,x,T,b,C,E;const[r,i]=_.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=($,
|
|
790
|
+
`})]})},kL=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,v,S,x,T,b,C,E;const[r,i]=_.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=($,A)=>n[$]||A,d=($,A=[])=>{const D=A.find(R=>R.value===$);return D?D.label:String($)};return y.jsx(bi,{open:r,onClose:()=>i(!1),placement:"bottom",className:"min-w-[400px]",component:y.jsxs("div",{children:[y.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:y.jsx(eh,{currentDate:(h=e.value)!=null&&h.startDate?new Date(e.value.startDate):null,maxDate:(m=e.value)!=null&&m.endDate?new Date(e.value.endDate):void 0,futureDates:!0,onDateChange:$=>o({key:e.key,value:{...e.value||{},startDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),y.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:y.jsx(eh,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(v=e.value)!=null&&v.startDate?new Date(e.value.startDate):void 0,onDateChange:$=>o({key:e.key,value:{...e.value||{},endDate:($==null?void 0:$.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?y.jsx(B2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):y.jsx(fl,{size:"sm",name:e.key,value:e.value,onChange:$=>o({key:e.key,value:$,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:y.jsxs("div",{className:`flex gap-[8px] items-center px-[12px] py-[8px] bg-blue-100 max-w-[400px] ${c&&"border-1! border-blue-500!"} cursor-pointer transition ease-in-out rounded-full border border-transparent hover:border-blue-500`,onClick:()=>i(!0),children:[y.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[y.jsx(Pe,{icon:e.icon||hN,className:"text-[14px] text-blue-500"}),y.jsx("p",{className:"flex-1 min-w-0 text-[12px] font-semibold text-gray-800 truncate overflow-hidden whitespace-nowrap",title:e.type==="date"?`${((S=e.value)==null?void 0:S.startDate)||"..."} - ${((x=e.value)==null?void 0:x.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(b=e.value)!=null&&b.endDate:e.value)?y.jsxs(y.Fragment,{children:[u(e.key,e.label),":"," ",y.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(C=e.value)!=null&&C.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(E=e.value)!=null&&E.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?d(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),y.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:y.jsx(Pe,{icon:i2,className:"text-[10px] text-gray-400"})})]})})},W2=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:i="onTouchEnd"})=>{const o=_.useRef(null);return _.useEffect(()=>{if(!n)return;const a=m=>{o.current&&(o.current.contains(m.target)||t())},c=m=>{switch(m){case"onClick":return"click";case"onMouseDown":return"mousedown";case"onMouseUp":return"mouseup";default:return"click"}},u=m=>{switch(m){case"onTouchStart":return"touchstart";case"onTouchEnd":return"touchend";default:return"touchend"}},d=c(r),h=u(i);return document.addEventListener(d,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(d,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,i]),y.jsx("div",{ref:o,style:{display:"contents"},children:e})},LL="Alejo",RL=({theme:e={},children:t})=>{const n={..._d,...e};return y.jsx(Tb.Provider,{value:n,children:t})};ne.ActionButton=WC,ne.AlertModal=Eb,ne.AsyncToast=sv,ne.AutocompleteInput=UN,ne.Avatar=v2,ne.BoxContainer=Ss,ne.Button=wi,ne.CalendarSelector=Zd,ne.CenterModal=b2,ne.Checkbox=QN,ne.CircleProgress=DL,ne.ClickAwayListener=W2,ne.CountryDropdown=Nk,ne.CountryInput=$k,ne.CountryLabel=Dk,ne.DateInput=bN,ne.DialogModal=a2,ne.Divider=x2,ne.Dropdown=TN,ne.FileUpload=EN,ne.FilterPill=kL,ne.FiltersMenu=YN,ne.FloatingMenu=bi,ne.IconButton=dh,ne.ImageProfileInput=Rk,ne.IndexedStep=c2,ne.IndexedStepper=CN,ne.InfoCard=Fk,ne.InformationContainer=u2,ne.InformationDisclaimer=Bk,ne.LoadingProgress=hh,ne.LoadingSpinner=Wk,ne.ModalContainer=HN,ne.Organism=LL,ne.PasswordInput=Uk,ne.PhoneInput=zk,ne.Pill=th,ne.PillsContainer=zN,ne.ProgressBar=qk,ne.SearchBar=Kk,ne.SearchModal=AN,ne.SectionButton=cL,ne.SelectInput=uL,ne.SideModal=GN,ne.SidebarButton=pL,ne.Stepper=$N,ne.Switch=NL,ne.Tab=F2,ne.Tabs=DN,ne.TextButton=V2,ne.TextInput=TL,ne.TextStaticInput=EL,ne.ThemeProvider=RL,ne.ThresholdCircleProgress=IL,ne.ThresholdProgressBar=$L,ne.Toast=gf,ne.Tooltip=_L,ne.UncontrolledDateInput=eh,ne.UncontrolledSelector=B2,ne.UncontrolledTextInput=fl,ne.UploadContainer=CL,ne.capitalizeFirstLetter=Ev,ne.closeModal=XN,ne.defaultTheme=_d,ne.formatLocalizedDate=gI,ne.getImageUrl=Pv,ne.openCustomModal=KN,ne.openModal=qN,ne.renderTabContent=ZN,ne.showToastAsync=rh,ne.showToastLoading=y2,ne.stringToColor=yf,ne.toBase64=yI,ne.toast=JN,ne.translateBytes=Cv,ne.useFilterToggler=K5,ne.useTheme=Ue,ne.yupImageProfileValidator=jk,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});
|