lawgic-dev-kit 0.25.0 → 0.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index2.js +3 -2
- package/dist/_virtual/index3.js +3 -3
- package/dist/_virtual/index4.js +5 -3
- package/dist/_virtual/index5.js +2 -5
- 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 +84 -78
- package/dist/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/dist/lawgic-dev-kit.css +1 -1
- package/dist/lawgic-dev-kit.umd.js +41 -41
- package/dist/node_modules/prop-types/index.js +1 -1
- 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/node_modules/yup/index.esm.js +3 -3
- package/dist/src/components/atoms/SelectInput/SelectInput.d.ts +1 -1
- package/dist/src/components/atoms/SelectInput/SelectInput.types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,12 +14,12 @@
|
|
|
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 Om;function fT(){return Om||(Om=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===
|
|
17
|
+
*/var Om;function fT(){return Om||(Om=1,process.env.NODE_ENV!=="production"&&function(){function e($){if($==null)return null;if(typeof $=="function")return $.$$typeof===re?null:$.displayName||$.name||null;if(typeof $=="string")return $;switch($){case b:return"Fragment";case v:return"Profiler";case T:return"StrictMode";case E:return"Suspense";case N:return"SuspenseList";case G:return"Activity"}if(typeof $=="object")switch(typeof $.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case S:return"Portal";case C:return($.displayName||"Context")+".Provider";case A:return($._context.displayName||"Context")+".Consumer";case I:var k=$.render;return $=$.displayName,$||($=k.displayName||k.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case R:return k=$.displayName||null,k!==null?k:e($.type)||"Memo";case F:k=$._payload,$=$._init;try{return e($(k))}catch{}}return null}function t($){return""+$}function n($){try{t($);var k=!1}catch{k=!0}if(k){k=console;var J=k.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return J.call(k,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t($)}}function r($){if($===b)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===F)return"<...>";try{var k=e($);return k?"<"+k+">":"<...>"}catch{return"<...>"}}function s(){var $=ee.A;return $===null?null:$.getOwner()}function o(){return Error("react-stack-top-frame")}function a($){if(le.call($,"key")){var k=Object.getOwnPropertyDescriptor($,"key").get;if(k&&k.isReactWarning)return!1}return $.key!==void 0}function c($,k){function J(){ce||(ce=!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))}J.isReactWarning=!0,Object.defineProperty($,"key",{get:J,configurable:!0})}function u(){var $=e(this.type);return fe[$]||(fe[$]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),$=this.props.ref,$!==void 0?$:null}function d($,k,J,H,Z,B,X,ae){return J=B.ref,$={$$typeof:x,type:$,key:k,props:B,_owner:Z},(J!==void 0?J:null)!==null?Object.defineProperty($,"ref",{enumerable:!1,get:u}):Object.defineProperty($,"ref",{enumerable:!1,value:null}),$._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty($,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty($,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty($,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$}function h($,k,J,H,Z,B,X,ae){var se=k.children;if(se!==void 0)if(H)if(oe(se)){for(H=0;H<se.length;H++)m(se[H]);Object.freeze&&Object.freeze(se)}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(se);if(le.call(k,"key")){se=e($);var he=Object.keys(k).filter(function(Be){return Be!=="key"});H=0<he.length?"{key: someKey, "+he.join(": ..., ")+": ...}":"{key: someKey}",K[se+H]||(he=0<he.length?"{"+he.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,H,se,he,se),K[se+H]=!0)}if(se=null,J!==void 0&&(n(J),se=""+J),a(k)&&(n(k.key),se=""+k.key),"key"in k){J={};for(var Ee in k)Ee!=="key"&&(J[Ee]=k[Ee])}else J=k;return se&&c(J,typeof $=="function"?$.displayName||$.name||"Unknown":$),d($,se,B,Z,s(),J,X,ae)}function m($){typeof $=="object"&&$!==null&&$.$$typeof===x&&$._store&&($._store.validated=1)}var p=O,x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),ee=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=Object.prototype.hasOwnProperty,oe=Array.isArray,ue=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function($){return $()}};var ce,fe={},U=p["react-stack-bottom-frame"].bind(p,o)(),W=ue(r(o)),K={};ki.Fragment=b,ki.jsx=function($,k,J,H,Z){var B=1e4>ee.recentlyCreatedOwnerStacks++;return h($,k,J,!1,H,Z,B?Error("react-stack-top-frame"):U,B?ue(r($)):W)},ki.jsxs=function($,k,J,H,Z){var B=1e4>ee.recentlyCreatedOwnerStacks++;return h($,k,J,!0,H,Z,B?Error("react-stack-top-frame"):U,B?ue(r($)):W)}}()),ki}var $m;function dT(){return $m||($m=1,process.env.NODE_ENV==="production"?Xo.exports=uT():Xo.exports=fT()),Xo.exports}var g=dT();/*!
|
|
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.
|
|
@@ -577,7 +577,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
577
577
|
.svg-inline--fa mask .fa-secondary {
|
|
578
578
|
fill: black;
|
|
579
579
|
}`;function ep(){const e=Gm,t=Ym,n=xe.cssPrefix,r=xe.replacementClass;let s=rC;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");s=s.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(c,".".concat(r))}return s}let tp=!1;function Tc(){xe.autoAddCss&&!tp&&(JT(ep()),tp=!0)}var sC={mixout(){return{dom:{css:ep,insertCss:Tc}}},hooks(){return{beforeDOMElementCreation(){Tc()},beforeI2svg(){Tc()}}}};const Yn=br||{};Yn[Gn]||(Yn[Gn]={}),Yn[Gn].styles||(Yn[Gn].styles={}),Yn[Gn].hooks||(Yn[Gn].hooks={}),Yn[Gn].shims||(Yn[Gn].shims=[]);var Cn=Yn[Gn];const np=[],rp=function(){Ke.removeEventListener("DOMContentLoaded",rp),ta=1,np.map(e=>e())};let ta=!1;zn&&(ta=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),ta||Ke.addEventListener("DOMContentLoaded",rp));function iC(e){zn&&(ta?setTimeout(e,0):np.push(e))}function Vi(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?Qm(e):"<".concat(t," ").concat(eC(n),">").concat(r.map(Vi).join(""),"</").concat(t,">")}function sp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Cc=function(t,n,r,s){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 oC(e){const t=[];let n=0;const r=e.length;for(;n<r;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}function Ec(e){const t=oC(e);return t.length===1?t[0].toString(16):null}function aC(e,t){const n=e.length;let r=e.charCodeAt(t),s;return r>=55296&&r<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function ip(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 Pc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,s=ip(t);typeof Cn.hooks.addPack=="function"&&!r?Cn.hooks.addPack(e,ip(t)):Cn.styles[e]=ne(ne({},Cn.styles[e]||{}),s),e==="fas"&&Pc("fa",t)}const{styles:Bi,shims:lC}=Cn,op=Object.keys(xc),cC=op.reduce((e,t)=>(e[t]=Object.keys(xc[t]),e),{});let Ac=null,ap={},lp={},cp={},up={},fp={};function uC(e){return~qT.indexOf(e)}function fC(e,t){const n=t.split("-"),r=n[0],s=n.slice(1).join("-");return r===e&&s!==""&&!uC(s)?s:null}const dp=()=>{const e=r=>Cc(Bi,(s,o,a)=>(s[a]=Cc(o,r,{}),s),{});ap=e((r,s,o)=>(s[3]&&(r[s[3]]=o),s[2]&&s[2].filter(c=>typeof c=="number").forEach(c=>{r[c.toString(16)]=o}),r)),lp=e((r,s,o)=>(r[o]=o,s[2]&&s[2].filter(c=>typeof c=="string").forEach(c=>{r[c]=o}),r)),fp=e((r,s,o)=>{const a=s[2];return r[o]=o,a.forEach(c=>{r[c]=o}),r});const t="far"in Bi||xe.autoFetchSvg,n=Cc(lC,(r,s)=>{const o=s[0];let a=s[1];const c=s[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:{}});cp=n.names,up=n.unicodes,Ac=na(xe.styleDefault,{family:xe.familyDefault})};ZT(e=>{Ac=na(e.styleDefault,{family:xe.familyDefault})}),dp();function Mc(e,t){return(ap[e]||{})[t]}function dC(e,t){return(lp[e]||{})[t]}function Qr(e,t){return(fp[e]||{})[t]}function hp(e){return cp[e]||{prefix:null,iconName:null}}function hC(e){const t=up[e],n=Mc("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Sr(){return Ac}const mp=()=>({prefix:null,iconName:null,rest:[]});function mC(e){let t=wt;const n=op.reduce((r,s)=>(r[s]="".concat(xe.cssPrefix,"-").concat(s),r),{});return Bm.forEach(r=>{(e.includes(n[r])||e.some(s=>cC[r].includes(s)))&&(t=r)}),t}function na(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=wt}=t,r=UT[n][e];if(n===Jo&&!e)return"fad";const s=Xm[n][e]||Xm[n][r],o=e in Cn.styles?e:null;return s||o||null}function pC(e){let t=[],n=null;return e.forEach(r=>{const s=fC(xe.cssPrefix,r);s?n=s:r&&t.push(r)}),{iconName:n,rest:t}}function pp(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function ra(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const s=fc.concat(_T),o=pp(e.filter(m=>s.includes(m))),a=pp(e.filter(m=>!fc.includes(m))),c=o.filter(m=>(r=m,!Vm.includes(m))),[u=null]=c,d=mC(o),h=ne(ne({},pC(a)),{},{prefix:na(u,{family:d})});return ne(ne(ne({},h),vC({values:e,family:d,styles:Bi,config:xe,canonical:h,givenPrefix:r})),gC(n,r,h))}function gC(e,t,n){let{prefix:r,iconName:s}=n;if(e||!r||!s)return{prefix:r,iconName:s};const o=t==="fa"?hp(s):{},a=Qr(r,s);return s=o.iconName||a||s,r=o.prefix||r,r==="far"&&!Bi.far&&Bi.fas&&!xe.autoFetchSvg&&(r="fas"),{prefix:r,iconName:s}}const yC=Bm.filter(e=>e!==wt||e!==Jo),xC=Object.keys(uc).filter(e=>e!==wt).map(e=>Object.keys(uc[e])).flat();function vC(e){const{values:t,family:n,canonical:r,givenPrefix:s="",styles:o={},config:a={}}=e,c=n===Jo,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&&yC.includes(n)&&(Object.keys(o).find(p=>xC.includes(p))||a.autoFetchSvg)){const p=TT.get(n).defaultShortPrefixId;r.prefix=p,r.iconName=Qr(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||s==="fa")&&(r.prefix=Sr()||"fas"),r}class bC{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s=n.reduce(this._pullDefinitions,{});Object.keys(s).forEach(o=>{this.definitions[o]=ne(ne({},this.definitions[o]||{}),s[o]),Pc(o,s[o]);const a=xc[wt][o];a&&Pc(a,s[o]),dp()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(s=>{const{prefix:o,iconName:a,icon:c}=r[s],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 gp=[],ks={};const js={},wC=Object.keys(js);function SC(e,t){let{mixoutsTo:n}=t;return gp=e,ks={},Object.keys(js).forEach(r=>{wC.indexOf(r)===-1&&delete js[r]}),gp.forEach(r=>{const s=r.mixout?r.mixout():{};if(Object.keys(s).forEach(o=>{typeof s[o]=="function"&&(n[o]=s[o]),typeof s[o]=="object"&&Object.keys(s[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=s[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{ks[a]||(ks[a]=[]),ks[a].push(o[a])})}r.provides&&r.provides(js)}),n}function Oc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return(ks[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function es(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(ks[e]||[]).forEach(o=>{o.apply(null,n)})}function Tr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return js[e]?js[e].apply(null,t):void 0}function $c(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Sr();if(t)return t=Qr(n,t)||t,sp(yp.definitions,n,t)||sp(Cn.styles,n,t)}const yp=new bC,Wt={noAuto:()=>{xe.autoReplaceSvg=!1,xe.observeMutations=!1,es("noAuto")},config:xe,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return zn?(es("beforeI2svg",e),Tr("pseudoElements2svg",e),Tr("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;xe.autoReplaceSvg===!1&&(xe.autoReplaceSvg=!0),xe.observeMutations=!0,iC(()=>{TC({autoReplaceSvgRoot:t}),es("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=na(e[0]);return{prefix:n,iconName:Qr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(xe.cssPrefix,"-"))>-1||e.match(zT))){const t=ra(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Sr(),iconName:Qr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Sr();return{prefix:t,iconName:Qr(t,e)||e}}}},library:yp,findIconDefinition:$c,toHtml:Vi},TC=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Ke}=e;(Object.keys(Cn.styles).length>0||xe.autoFetchSvg)&&zn&&xe.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function sa(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Vi(n))}}),Object.defineProperty(e,"node",{get:function(){if(!zn)return;const n=Ke.createElement("div");return n.innerHTML=e.html,n.children}}),e}function CC(e){let{children:t,main:n,mask:r,attributes:s,styles:o,transform:a}=e;if(Sc(a)&&n.found&&!r.found){const{width:c,height:u}=n,d={x:c/u/2,y:.5};s.style=ea(ne(ne({},o),{},{"transform-origin":"".concat(d.x+a.x/16,"em ").concat(d.y+a.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function EC(e){let{prefix:t,iconName:n,children:r,attributes:s,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(xe.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ne(ne({},s),{},{id:a}),children:r}]}]}function _c(e){const{icons:{main:t,mask:n},prefix:r,iconName:s,transform:o,symbol:a,title:c,maskId:u,titleId:d,extra:h,watchable:m=!1}=e,{width:p,height:x}=n.found?n:t,S=MT.includes(r),b=[xe.replacementClass,s?"".concat(xe.cssPrefix,"-").concat(s):""].filter(E=>h.classes.indexOf(E)===-1).filter(E=>E!==""||!!E).concat(h.classes).join(" ");let T={children:[],attributes:ne(ne({},h.attributes),{},{"data-prefix":r,"data-icon":s,class:b,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(x)})};const v=S&&!~h.classes.indexOf("fa-fw")?{width:"".concat(p/x*16*.0625,"em")}:{};m&&(T.attributes[Jr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Fi())},children:[c]}),delete T.attributes.title);const A=ne(ne({},T),{},{prefix:r,iconName:s,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:ne(ne({},v),h.styles)}),{children:C,attributes:I}=n.found&&t.found?Tr("generateAbstractMask",A)||{children:[],attributes:{}}:Tr("generateAbstractIcon",A)||{children:[],attributes:{}};return A.children=C,A.attributes=I,a?EC(A):CC(A)}function xp(e){const{content:t,width:n,height:r,transform:s,title:o,extra:a,watchable:c=!1}=e,u=ne(ne(ne({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=ne({},a.styles);Sc(s)&&(d.transform=nC({transform:s,startCentered:!0,width:n,height:r}),d["-webkit-transform"]=d.transform);const h=ea(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 PC(e){const{content:t,title:n,extra:r}=e,s=ne(ne(ne({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=ea(r.styles);o.length>0&&(s.style=o);const a=[];return a.push({tag:"span",attributes:s,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:Ic}=Cn;function Dc(e){const t=e[0],n=e[1],[r]=e.slice(4);let s=null;return Array.isArray(r)?s={tag:"g",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(xe.cssPrefix,"-").concat(bc.PRIMARY),fill:"currentColor",d:r[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:s}}const AC={found:!1,width:512,height:512};function MC(e,t){!qm&&!xe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Nc(e,t){let n=t;return t==="fa"&&xe.styleDefault!==null&&(t=Sr()),new Promise((r,s)=>{if(n==="fa"){const o=hp(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Ic[t]&&Ic[t][e]){const o=Ic[t][e];return r(Dc(o))}MC(e,t),r(ne(ne({},AC),{},{icon:xe.showMissingIcons&&e?Tr("missingIconAbstract")||{}:{}}))})}const vp=()=>{},kc=xe.measurePerformance&&Zo&&Zo.mark&&Zo.measure?Zo:{mark:vp,measure:vp},Wi='FA "6.7.2"',OC=e=>(kc.mark("".concat(Wi," ").concat(e," begins")),()=>bp(e)),bp=e=>{kc.mark("".concat(Wi," ").concat(e," ends")),kc.measure("".concat(Wi," ").concat(e),"".concat(Wi," ").concat(e," begins"),"".concat(Wi," ").concat(e," ends"))};var jc={begin:OC,end:bp};const ia=()=>{};function wp(e){return typeof(e.getAttribute?e.getAttribute(Jr):null)=="string"}function $C(e){const t=e.getAttribute?e.getAttribute(mc):null,n=e.getAttribute?e.getAttribute(pc):null;return t&&n}function _C(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(xe.replacementClass)}function IC(){return xe.autoReplaceSvg===!0?oa.replace:oa[xe.autoReplaceSvg]||oa.replace}function DC(e){return Ke.createElementNS("http://www.w3.org/2000/svg",e)}function NC(e){return Ke.createElement(e)}function Sp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?DC:NC}=t;if(typeof e=="string")return Ke.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(Sp(o,{ceFn:n}))}),r}function kC(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const oa={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(Sp(n),t)}),t.getAttribute(Jr)===null&&xe.keepOriginalSource){let n=Ke.createComment(kC(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~wc(t).indexOf(xe.replacementClass))return oa.replace(e);const r=new RegExp("".concat(xe.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,c)=>(c===xe.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 s=n.map(o=>Vi(o)).join(`
|
|
580
|
-
`);t.setAttribute(Jr,""),t.innerHTML=s}};function Tp(e){e()}function Cp(e,t){const n=typeof t=="function"?t:ia;if(e.length===0)n();else{let r=Tp;xe.mutateApproach===BT&&(r=br.requestAnimationFrame||Tp),r(()=>{const s=IC(),o=jc.begin("mutate");e.map(s),o(),n()})}}let Lc=!1;function Ep(){Lc=!0}function Rc(){Lc=!1}let aa=null;function Pp(e){if(!Lm||!xe.observeMutations)return;const{treeCallback:t=ia,nodeCallback:n=ia,pseudoElementsCallback:r=ia,observeMutationsRoot:s=Ke}=e;aa=new Lm(o=>{if(Lc)return;const a=Sr();Ns(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!wp(c.addedNodes[0])&&(xe.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&xe.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&wp(c.target)&&~HT.indexOf(c.attributeName))if(c.attributeName==="class"&&$C(c.target)){const{prefix:u,iconName:d}=ra(wc(c.target));c.target.setAttribute(mc,u||a),d&&c.target.setAttribute(pc,d)}else _C(c.target)&&n(c.target)})}),zn&&aa.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jC(){aa&&aa.disconnect()}function LC(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,s)=>{const o=s.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function RC(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let s=ra(wc(e));return s.prefix||(s.prefix=Sr()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=dC(s.prefix,e.innerText)||Mc(s.prefix,Ec(e.innerText))),!s.iconName&&xe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function FC(e){const t=Ns(e.attributes).reduce((s,o)=>(s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.value),s),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return xe.autoA11y&&(n?t["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(r||Fi()):(t["aria-hidden"]="true",t.focusable="false")),t}function VC(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ap(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:s}=RC(e),o=FC(e),a=Oc("parseNodeAttributes",{},e);let c=t.styleParser?LC(e):[];return ne({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:c,attributes:o}},a)}const{styles:BC}=Cn;function Mp(e){const t=xe.autoReplaceSvg==="nest"?Ap(e,{styleParser:!1}):Ap(e);return~t.extra.classes.indexOf(Zm)?Tr("generateLayersText",e,t):Tr("generateSvgReplacementMutation",e,t)}function WC(){return[...ET,...fc]}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Ke.documentElement.classList,r=h=>n.add("".concat(Hm,"-").concat(h)),s=h=>n.remove("".concat(Hm,"-").concat(h)),o=xe.autoFetchSvg?WC():Vm.concat(Object.keys(BC));o.includes("fa")||o.push("fa");const a=[".".concat(Zm,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ns(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),s("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Mp(m);p&&h.push(p)}catch(p){qm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Cp(p,()=>{r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function UC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Mp(e).then(n=>{n&&Cp([n],t)})}function zC(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:$c(s||{})),e(r,ne(ne({},n),{},{mask:s}))}}const GC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,symbol:r=!1,mask:s=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:x}=e;return sa(ne({type:"icon"},e),()=>(es("beforeDOMElementCreation",{iconDefinition:e,params:t}),xe.autoA11y&&(a?d["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(c||Fi()):(d["aria-hidden"]="true",d.focusable="false")),_c({icons:{main:Dc(x),mask:s?Dc(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:ne(ne({},Tn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var YC={mixout(){return{icon:zC(GC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Op,e.nodeCallback=UC,e}}},provides(e){e.i2svg=function(t){const{node:n=Ke,callback:r=()=>{}}=t;return Op(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:s,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,x)=>{Promise.all([Nc(r,a),d.iconName?Nc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,_c({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:s,titleId:o,extra:m,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:s,transform:o,styles:a}=t;const c=ea(a);c.length>0&&(r.style=c);let u;return Sc(o)&&(u=Tr("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),n.push(u||s.icon),{children:n,attributes:r}}}},HC={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return sa({type:"layer"},()=>{es("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(s=>{Array.isArray(s)?s.map(o=>{r=r.concat(o.abstract)}):r=r.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(xe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},qC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:s={},styles:o={}}=t;return sa({type:"counter",content:e},()=>(es("beforeDOMElementCreation",{content:e,params:t}),PC({content:e.toString(),title:n,extra:{attributes:s,styles:o,classes:["".concat(xe.cssPrefix,"-layers-counter"),...r]}})))}}}},KC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,title:r=null,classes:s=[],attributes:o={},styles:a={}}=t;return sa({type:"text",content:e},()=>(es("beforeDOMElementCreation",{content:e,params:t}),xp({content:e,transform:ne(ne({},Tn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(xe.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:s,extra:o}=n;let a=null,c=null;if(Rm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return xe.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,xp({content:t.innerHTML,width:a,height:c,transform:s,title:r,extra:o,watchable:!0})])}}};const XC=new RegExp('"',"ug"),$p=[1105920,1112319],_p=ne(ne(ne(ne({},{FontAwesome:{normal:"fas",400:"fas"}}),ST),FT),IT),Fc=Object.keys(_p).reduce((e,t)=>(e[t.toLowerCase()]=_p[t],e),{}),ZC=Object.keys(Fc).reduce((e,t)=>{const n=Fc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function JC(e){const t=e.replace(XC,""),n=aC(t,0),r=n>=$p[0]&&n<=$p[1],s=t.length===2?t[0]===t[1]:!1;return{value:Ec(s?t[0]:t),isSecondary:r||s}}function QC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),s=isNaN(r)?"normal":r;return(Fc[n]||{})[s]||ZC[n]}function Ip(e,t){const n="".concat(VT).concat(t.replace(":","-"));return new Promise((r,s)=>{if(e.getAttribute(n)!==null)return r();const a=Ns(e.children).filter(p=>p.getAttribute(hc)===t)[0],c=br.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(GT),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 x=QC(u,h);const{value:S,isSecondary:b}=JC(p),T=d[0].startsWith("FontAwesome");let v=Mc(x,S),A=v;if(T){const C=hC(S);C.iconName&&C.prefix&&(v=C.iconName,x=C.prefix)}if(v&&!b&&(!a||a.getAttribute(mc)!==x||a.getAttribute(pc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const C=VC(),{extra:I}=C;I.attributes[hc]=t,Nc(v,x).then(E=>{const
|
|
580
|
+
`);t.setAttribute(Jr,""),t.innerHTML=s}};function Tp(e){e()}function Cp(e,t){const n=typeof t=="function"?t:ia;if(e.length===0)n();else{let r=Tp;xe.mutateApproach===BT&&(r=br.requestAnimationFrame||Tp),r(()=>{const s=IC(),o=jc.begin("mutate");e.map(s),o(),n()})}}let Lc=!1;function Ep(){Lc=!0}function Rc(){Lc=!1}let aa=null;function Pp(e){if(!Lm||!xe.observeMutations)return;const{treeCallback:t=ia,nodeCallback:n=ia,pseudoElementsCallback:r=ia,observeMutationsRoot:s=Ke}=e;aa=new Lm(o=>{if(Lc)return;const a=Sr();Ns(o).forEach(c=>{if(c.type==="childList"&&c.addedNodes.length>0&&!wp(c.addedNodes[0])&&(xe.searchPseudoElements&&r(c.target),t(c.target)),c.type==="attributes"&&c.target.parentNode&&xe.searchPseudoElements&&r(c.target.parentNode),c.type==="attributes"&&wp(c.target)&&~HT.indexOf(c.attributeName))if(c.attributeName==="class"&&$C(c.target)){const{prefix:u,iconName:d}=ra(wc(c.target));c.target.setAttribute(mc,u||a),d&&c.target.setAttribute(pc,d)}else _C(c.target)&&n(c.target)})}),zn&&aa.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jC(){aa&&aa.disconnect()}function LC(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,s)=>{const o=s.split(":"),a=o[0],c=o.slice(1);return a&&c.length>0&&(r[a]=c.join(":").trim()),r},{})),n}function RC(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let s=ra(wc(e));return s.prefix||(s.prefix=Sr()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&r.length>0&&(s.iconName=dC(s.prefix,e.innerText)||Mc(s.prefix,Ec(e.innerText))),!s.iconName&&xe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function FC(e){const t=Ns(e.attributes).reduce((s,o)=>(s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.value),s),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return xe.autoA11y&&(n?t["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(r||Fi()):(t["aria-hidden"]="true",t.focusable="false")),t}function VC(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Tn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ap(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:s}=RC(e),o=FC(e),a=Oc("parseNodeAttributes",{},e);let c=t.styleParser?LC(e):[];return ne({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Tn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:c,attributes:o}},a)}const{styles:BC}=Cn;function Mp(e){const t=xe.autoReplaceSvg==="nest"?Ap(e,{styleParser:!1}):Ap(e);return~t.extra.classes.indexOf(Zm)?Tr("generateLayersText",e,t):Tr("generateSvgReplacementMutation",e,t)}function WC(){return[...ET,...fc]}function Op(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!zn)return Promise.resolve();const n=Ke.documentElement.classList,r=h=>n.add("".concat(Hm,"-").concat(h)),s=h=>n.remove("".concat(Hm,"-").concat(h)),o=xe.autoFetchSvg?WC():Vm.concat(Object.keys(BC));o.includes("fa")||o.push("fa");const a=[".".concat(Zm,":not([").concat(Jr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Jr,"])"))).join(", ");if(a.length===0)return Promise.resolve();let c=[];try{c=Ns(e.querySelectorAll(a))}catch{}if(c.length>0)r("pending"),s("complete");else return Promise.resolve();const u=jc.begin("onTree"),d=c.reduce((h,m)=>{try{const p=Mp(m);p&&h.push(p)}catch(p){qm||p.name==="MissingIcon"&&console.error(p)}return h},[]);return new Promise((h,m)=>{Promise.all(d).then(p=>{Cp(p,()=>{r("active"),r("complete"),s("pending"),typeof t=="function"&&t(),u(),h()})}).catch(p=>{u(),m(p)})})}function UC(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Mp(e).then(n=>{n&&Cp([n],t)})}function zC(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:$c(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:$c(s||{})),e(r,ne(ne({},n),{},{mask:s}))}}const GC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,symbol:r=!1,mask:s=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:x}=e;return sa(ne({type:"icon"},e),()=>(es("beforeDOMElementCreation",{iconDefinition:e,params:t}),xe.autoA11y&&(a?d["aria-labelledby"]="".concat(xe.replacementClass,"-title-").concat(c||Fi()):(d["aria-hidden"]="true",d.focusable="false")),_c({icons:{main:Dc(x),mask:s?Dc(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:p,transform:ne(ne({},Tn),n),symbol:r,title:a,maskId:o,titleId:c,extra:{attributes:d,styles:h,classes:u}})))};var YC={mixout(){return{icon:zC(GC)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Op,e.nodeCallback=UC,e}}},provides(e){e.i2svg=function(t){const{node:n=Ke,callback:r=()=>{}}=t;return Op(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:s,titleId:o,prefix:a,transform:c,symbol:u,mask:d,maskId:h,extra:m}=n;return new Promise((p,x)=>{Promise.all([Nc(r,a),d.iconName?Nc(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[b,T]=S;p([t,_c({icons:{main:b,mask:T},prefix:a,iconName:r,transform:c,symbol:u,maskId:h,title:s,titleId:o,extra:m,watchable:!0})])}).catch(x)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:s,transform:o,styles:a}=t;const c=ea(a);c.length>0&&(r.style=c);let u;return Sc(o)&&(u=Tr("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),n.push(u||s.icon),{children:n,attributes:r}}}},HC={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return sa({type:"layer"},()=>{es("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(s=>{Array.isArray(s)?s.map(o=>{r=r.concat(o.abstract)}):r=r.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(xe.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},qC={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:s={},styles:o={}}=t;return sa({type:"counter",content:e},()=>(es("beforeDOMElementCreation",{content:e,params:t}),PC({content:e.toString(),title:n,extra:{attributes:s,styles:o,classes:["".concat(xe.cssPrefix,"-layers-counter"),...r]}})))}}}},KC={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Tn,title:r=null,classes:s=[],attributes:o={},styles:a={}}=t;return sa({type:"text",content:e},()=>(es("beforeDOMElementCreation",{content:e,params:t}),xp({content:e,transform:ne(ne({},Tn),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(xe.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:s,extra:o}=n;let a=null,c=null;if(Rm){const u=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/u,c=d.height/u}return xe.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,xp({content:t.innerHTML,width:a,height:c,transform:s,title:r,extra:o,watchable:!0})])}}};const XC=new RegExp('"',"ug"),$p=[1105920,1112319],_p=ne(ne(ne(ne({},{FontAwesome:{normal:"fas",400:"fas"}}),ST),FT),IT),Fc=Object.keys(_p).reduce((e,t)=>(e[t.toLowerCase()]=_p[t],e),{}),ZC=Object.keys(Fc).reduce((e,t)=>{const n=Fc[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function JC(e){const t=e.replace(XC,""),n=aC(t,0),r=n>=$p[0]&&n<=$p[1],s=t.length===2?t[0]===t[1]:!1;return{value:Ec(s?t[0]:t),isSecondary:r||s}}function QC(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),s=isNaN(r)?"normal":r;return(Fc[n]||{})[s]||ZC[n]}function Ip(e,t){const n="".concat(VT).concat(t.replace(":","-"));return new Promise((r,s)=>{if(e.getAttribute(n)!==null)return r();const a=Ns(e.children).filter(p=>p.getAttribute(hc)===t)[0],c=br.getComputedStyle(e,t),u=c.getPropertyValue("font-family"),d=u.match(GT),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 x=QC(u,h);const{value:S,isSecondary:b}=JC(p),T=d[0].startsWith("FontAwesome");let v=Mc(x,S),A=v;if(T){const C=hC(S);C.iconName&&C.prefix&&(v=C.iconName,x=C.prefix)}if(v&&!b&&(!a||a.getAttribute(mc)!==x||a.getAttribute(pc)!==A)){e.setAttribute(n,A),a&&e.removeChild(a);const C=VC(),{extra:I}=C;I.attributes[hc]=t,Nc(v,x).then(E=>{const N=_c(ne(ne({},C),{},{icons:{main:E,mask:mp()},prefix:x,iconName:A,extra:I,watchable:!0})),R=Ke.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(R,e.firstChild):e.appendChild(R),R.outerHTML=N.map(F=>Vi(F)).join(`
|
|
581
581
|
`),e.removeAttribute(n),r()}).catch(s)}else r()}else r()})}function eE(e){return Promise.all([Ip(e,"::before"),Ip(e,"::after")])}function tE(e){return e.parentNode!==document.head&&!~WT.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hc)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Dp(e){if(zn)return new Promise((t,n)=>{const r=Ns(e.querySelectorAll("*")).filter(tE).map(eE),s=jc.begin("searchPseudoElements");Ep(),Promise.all(r).then(()=>{s(),Rc(),t()}).catch(()=>{s(),Rc(),n()})})}var nE={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Dp,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Ke}=t;xe.searchPseudoElements&&Dp(n)}}};let Np=!1;var rE={mixout(){return{dom:{unwatch(){Ep(),Np=!0}}}},hooks(){return{bootstrap(){Pp(Oc("mutationObserverCallbacks",{}))},noAuto(){jC()},watch(e){const{observeMutationsRoot:t}=e;Np?Rc():Pp(Oc("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const kp=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const s=r.toLowerCase().split("-"),o=s[0];let a=s.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 sE={mixout(){return{parse:{transform:e=>kp(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=kp(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:s,iconWidth:o}=t;const a={transform:"translate(".concat(s/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:ne({},p.outer),children:[{tag:"g",attributes:ne({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ne(ne({},n.icon.attributes),p.path)}]}]}}}};const Vc={x:0,y:0,width:"100%",height:"100%"};function jp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function iE(e){return e.tag==="g"?e.children:[e]}var oE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?ra(n.split(" ").map(s=>s.trim())):mp();return r.prefix||(r.prefix=Sr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:s,mask:o,maskId:a,transform:c}=t;const{width:u,icon:d}=s,{width:h,icon:m}=o,p=tC({transform:c,containerWidth:h,iconWidth:u}),x={tag:"rect",attributes:ne(ne({},Vc),{},{fill:"white"})},S=d.children?{children:d.children.map(jp)}:{},b={tag:"g",attributes:ne({},p.inner),children:[jp(ne({tag:d.tag,attributes:ne(ne({},d.attributes),p.path)},S))]},T={tag:"g",attributes:ne({},p.outer),children:[b]},v="mask-".concat(a||Fi()),A="clip-".concat(a||Fi()),C={tag:"mask",attributes:ne(ne({},Vc),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,T]},I={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:iE(m)},C]};return n.push(I,{tag:"rect",attributes:ne({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(v,")")},Vc)}),{children:n,attributes:r}}}},aE={provides(e){let t=!1;br.matchMedia&&(t=br.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ne(ne({},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=ne(ne({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ne(ne({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:ne(ne({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ne(ne({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:ne(ne({},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:ne(ne({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ne(ne({},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:ne(ne({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},lE={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},cE=[sC,YC,HC,qC,KC,nE,rE,sE,oE,aE,lE];SC(cE,{mixoutsTo:Wt}),Wt.noAuto,Wt.config,Wt.library,Wt.dom;const Bc=Wt.parse;Wt.findIconDefinition,Wt.toHtml;const uE=Wt.icon;Wt.layer,Wt.text,Wt.counter;var la={exports:{}},ca={exports:{}},Re={};/** @license React v16.13.1
|
|
582
582
|
* react-is.production.min.js
|
|
583
583
|
*
|
|
@@ -585,19 +585,19 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
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 Lp;function fE(){if(Lp)return Re;Lp=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,s=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,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(E){if(typeof E=="object"&&E!==null){var
|
|
588
|
+
*/var Lp;function fE(){if(Lp)return Re;Lp=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,s=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,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(E){if(typeof E=="object"&&E!==null){var N=E.$$typeof;switch(N){case t:switch(E=E.type,E){case u:case d:case r:case o:case s:case m:return E;default:switch(E=E&&E.$$typeof,E){case c:case h:case S:case x:case a:return E;default:return N}}case n:return N}}}function I(E){return C(E)===d}return Re.AsyncMode=u,Re.ConcurrentMode=d,Re.ContextConsumer=c,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=h,Re.Fragment=r,Re.Lazy=S,Re.Memo=x,Re.Portal=n,Re.Profiler=o,Re.StrictMode=s,Re.Suspense=m,Re.isAsyncMode=function(E){return I(E)||C(E)===u},Re.isConcurrentMode=I,Re.isContextConsumer=function(E){return C(E)===c},Re.isContextProvider=function(E){return C(E)===a},Re.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Re.isForwardRef=function(E){return C(E)===h},Re.isFragment=function(E){return C(E)===r},Re.isLazy=function(E){return C(E)===S},Re.isMemo=function(E){return C(E)===x},Re.isPortal=function(E){return C(E)===n},Re.isProfiler=function(E){return C(E)===o},Re.isStrictMode=function(E){return C(E)===s},Re.isSuspense=function(E){return C(E)===m},Re.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===s||E===m||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===x||E.$$typeof===a||E.$$typeof===c||E.$$typeof===h||E.$$typeof===T||E.$$typeof===v||E.$$typeof===A||E.$$typeof===b)},Re.typeOf=C,Re}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 Rp;function dE(){return Rp||(Rp=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,s=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,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===s||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===x||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===v||ie.$$typeof===A||ie.$$typeof===b)}function I(ie){if(typeof ie=="object"&&ie!==null){var ge=ie.$$typeof;switch(ge){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case s:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case x:case a:return ft;default:return ge}}case n:return ge}}}var E=u,
|
|
595
|
+
*/var Rp;function dE(){return Rp||(Rp=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,s=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,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===d||ie===o||ie===s||ie===m||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===x||ie.$$typeof===a||ie.$$typeof===c||ie.$$typeof===h||ie.$$typeof===T||ie.$$typeof===v||ie.$$typeof===A||ie.$$typeof===b)}function I(ie){if(typeof ie=="object"&&ie!==null){var ge=ie.$$typeof;switch(ge){case t:var De=ie.type;switch(De){case u:case d:case r:case o:case s:case m:return De;default:var ft=De&&De.$$typeof;switch(ft){case c:case h:case S:case x:case a:return ft;default:return ge}}case n:return ge}}}var E=u,N=d,R=c,F=a,G=t,re=h,ee=r,le=S,oe=x,ue=n,ce=o,fe=s,U=m,W=!1;function K(ie){return W||(W=!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.")),$(ie)||I(ie)===u}function $(ie){return I(ie)===d}function k(ie){return I(ie)===c}function J(ie){return I(ie)===a}function H(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function Z(ie){return I(ie)===h}function B(ie){return I(ie)===r}function X(ie){return I(ie)===S}function ae(ie){return I(ie)===x}function se(ie){return I(ie)===n}function he(ie){return I(ie)===o}function Ee(ie){return I(ie)===s}function Be(ie){return I(ie)===m}Fe.AsyncMode=E,Fe.ConcurrentMode=N,Fe.ContextConsumer=R,Fe.ContextProvider=F,Fe.Element=G,Fe.ForwardRef=re,Fe.Fragment=ee,Fe.Lazy=le,Fe.Memo=oe,Fe.Portal=ue,Fe.Profiler=ce,Fe.StrictMode=fe,Fe.Suspense=U,Fe.isAsyncMode=K,Fe.isConcurrentMode=$,Fe.isContextConsumer=k,Fe.isContextProvider=J,Fe.isElement=H,Fe.isForwardRef=Z,Fe.isFragment=B,Fe.isLazy=X,Fe.isMemo=ae,Fe.isPortal=se,Fe.isProfiler=he,Fe.isStrictMode=Ee,Fe.isSuspense=Be,Fe.isValidElementType=C,Fe.typeOf=I}()),Fe}var Fp;function Vp(){return Fp||(Fp=1,process.env.NODE_ENV==="production"?ca.exports=fE():ca.exports=dE()),ca.exports}/*
|
|
596
596
|
object-assign
|
|
597
597
|
(c) Sindre Sorhus
|
|
598
598
|
@license MIT
|
|
599
|
-
*/var Wc,Bp;function hE(){if(Bp)return Wc;Bp=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 s(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wc=s()?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},Wc}var Uc,Wp;function zc(){if(Wp)return Uc;Wp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=e,Uc}var Gc,Up;function zp(){return Up||(Up=1,Gc=Function.call.bind(Object.prototype.hasOwnProperty)),Gc}var Yc,Gp;function mE(){if(Gp)return Yc;Gp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zc(),n={},r=zp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(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 x=d?d():"";e("Failed "+c+" type: "+m.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yc=s,Yc}var Hc,Yp;function pE(){if(Yp)return Hc;Yp=1;var e=Vp(),t=hE(),n=zc(),r=zp(),s=mE(),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 Hc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m($){var k=$&&(d&&$[d]||$[h]);if(typeof k=="function")return k}var p="<<anonymous>>",x={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:A(),arrayOf:C,element:I(),elementType:E(),instanceOf:
|
|
600
|
-
Valid keys: `+JSON.stringify(Object.keys($),null," "));var ie=Be(ae,Ee,
|
|
599
|
+
*/var Wc,Bp;function hE(){if(Bp)return Wc;Bp=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 s(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(h){return a[h]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wc=s()?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},Wc}var Uc,Wp;function zc(){if(Wp)return Uc;Wp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uc=e,Uc}var Gc,Up;function zp(){return Up||(Up=1,Gc=Function.call.bind(Object.prototype.hasOwnProperty)),Gc}var Yc,Gp;function mE(){if(Gp)return Yc;Gp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zc(),n={},r=zp();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(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 x=d?d():"";e("Failed "+c+" type: "+m.message+(x??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yc=s,Yc}var Hc,Yp;function pE(){if(Yp)return Hc;Yp=1;var e=Vp(),t=hE(),n=zc(),r=zp(),s=mE(),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 Hc=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m($){var k=$&&(d&&$[d]||$[h]);if(typeof k=="function")return k}var p="<<anonymous>>",x={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:A(),arrayOf:C,element:I(),elementType:E(),instanceOf:N,node:re(),objectOf:F,oneOf:R,oneOfType:G,shape:le,exact:oe};function S($,k){return $===k?$!==0||1/$===1/k:$!==$&&k!==k}function b($,k){this.message=$,this.data=k&&typeof k=="object"?k:{},this.stack=""}b.prototype=Error.prototype;function T($){if(process.env.NODE_ENV!=="production")var k={},J=0;function H(B,X,ae,se,he,Ee,Be){if(se=se||p,Ee=Ee||ae,Be!==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 ge=se+":"+ae;!k[ge]&&J<3&&(o("You are manually calling a React.PropTypes validation function for the `"+Ee+"` prop on `"+se+"`. 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[ge]=!0,J++)}}return X[ae]==null?B?X[ae]===null?new b("The "+he+" `"+Ee+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new b("The "+he+" `"+Ee+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:$(X,ae,se,he,Ee)}var Z=H.bind(null,!1);return Z.isRequired=H.bind(null,!0),Z}function v($){function k(J,H,Z,B,X,ae){var se=J[H],he=fe(se);if(he!==$){var Ee=U(se);return new b("Invalid "+B+" `"+X+"` of type "+("`"+Ee+"` supplied to `"+Z+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return T(k)}function A(){return T(a)}function C($){function k(J,H,Z,B,X){if(typeof $!="function")return new b("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ae=J[H];if(!Array.isArray(ae)){var se=fe(ae);return new b("Invalid "+B+" `"+X+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an array."))}for(var he=0;he<ae.length;he++){var Ee=$(ae,he,Z,B,X+"["+he+"]",n);if(Ee instanceof Error)return Ee}return null}return T(k)}function I(){function $(k,J,H,Z,B){var X=k[J];if(!c(X)){var ae=fe(X);return new b("Invalid "+Z+" `"+B+"` of type "+("`"+ae+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return T($)}function E(){function $(k,J,H,Z,B){var X=k[J];if(!e.isValidElementType(X)){var ae=fe(X);return new b("Invalid "+Z+" `"+B+"` of type "+("`"+ae+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return T($)}function N($){function k(J,H,Z,B,X){if(!(J[H]instanceof $)){var ae=$.name||p,se=K(J[H]);return new b("Invalid "+B+" `"+X+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected ")+("instance of `"+ae+"`."))}return null}return T(k)}function R($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function k(J,H,Z,B,X){for(var ae=J[H],se=0;se<$.length;se++)if(S(ae,$[se]))return null;var he=JSON.stringify($,function(Be,ie){var ge=U(ie);return ge==="symbol"?String(ie):ie});return new b("Invalid "+B+" `"+X+"` of value `"+String(ae)+"` "+("supplied to `"+Z+"`, expected one of "+he+"."))}return T(k)}function F($){function k(J,H,Z,B,X){if(typeof $!="function")return new b("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ae=J[H],se=fe(ae);if(se!=="object")return new b("Invalid "+B+" `"+X+"` of type "+("`"+se+"` supplied to `"+Z+"`, expected an object."));for(var he in ae)if(r(ae,he)){var Ee=$(ae,he,Z,B,X+"."+he,n);if(Ee instanceof Error)return Ee}return null}return T(k)}function G($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var k=0;k<$.length;k++){var J=$[k];if(typeof J!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(J)+" at index "+k+"."),a}function H(Z,B,X,ae,se){for(var he=[],Ee=0;Ee<$.length;Ee++){var Be=$[Ee],ie=Be(Z,B,X,ae,se,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&he.push(ie.data.expectedType)}var ge=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new b("Invalid "+ae+" `"+se+"` supplied to "+("`"+X+"`"+ge+"."))}return T(H)}function re(){function $(k,J,H,Z,B){return ue(k[J])?null:new b("Invalid "+Z+" `"+B+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return T($)}function ee($,k,J,H,Z){return new b(($||"React class")+": "+k+" type `"+J+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function le($){function k(J,H,Z,B,X){var ae=J[H],se=fe(ae);if(se!=="object")return new b("Invalid "+B+" `"+X+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));for(var he in $){var Ee=$[he];if(typeof Ee!="function")return ee(Z,B,X,he,U(Ee));var Be=Ee(ae,he,Z,B,X+"."+he,n);if(Be)return Be}return null}return T(k)}function oe($){function k(J,H,Z,B,X){var ae=J[H],se=fe(ae);if(se!=="object")return new b("Invalid "+B+" `"+X+"` of type `"+se+"` "+("supplied to `"+Z+"`, expected `object`."));var he=t({},J[H],$);for(var Ee in he){var Be=$[Ee];if(r($,Ee)&&typeof Be!="function")return ee(Z,B,X,Ee,U(Be));if(!Be)return new b("Invalid "+B+" `"+X+"` key `"+Ee+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(J[H],null," ")+`
|
|
600
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var ie=Be(ae,Ee,Z,B,X+"."+Ee,n);if(ie)return ie}return null}return T(k)}function ue($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(ue);if($===null||c($))return!0;var k=m($);if(k){var J=k.call($),H;if(k!==$.entries){for(;!(H=J.next()).done;)if(!ue(H.value))return!1}else for(;!(H=J.next()).done;){var Z=H.value;if(Z&&!ue(Z[1]))return!1}}else return!1;return!0;default:return!1}}function ce($,k){return $==="symbol"?!0:k?k["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&k instanceof Symbol:!1}function fe($){var k=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":ce(k,$)?"symbol":k}function U($){if(typeof $>"u"||$===null)return""+$;var k=fe($);if(k==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return k}function W($){var k=U($);switch(k){case"array":case"object":return"an "+k;case"boolean":case"date":case"regexp":return"a "+k;default:return k}}function K($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return x.checkPropTypes=s,x.resetWarningCache=s.resetWarningCache,x.PropTypes=x,x},Hc}var qc,Hp;function gE(){if(Hp)return qc;Hp=1;var e=zc();function t(){}function n(){}return n.resetWarningCache=t,qc=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 s(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},qc}var qp;function yE(){if(qp)return la.exports;if(qp=1,process.env.NODE_ENV!=="production"){var e=Vp(),t=!0;la.exports=pE()(e.isElement,t)}else la.exports=gE()();return la.exports}var xE=yE();const Ie=Am(xE);function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kp(Object(n),!0).forEach(function(r){Ls(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ua(e){"@babel/helpers - typeof";return ua=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},ua(e)}function Ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vE(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function bE(e,t){if(e==null)return{};var n=vE(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kc(e){return wE(e)||SE(e)||TE(e)||CE()}function wE(e){if(Array.isArray(e))return Xc(e)}function SE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TE(e,t){if(e){if(typeof e=="string")return Xc(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 Xc(e,t)}}function Xc(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 CE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
601
601
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EE(e){var t,n=e.beat,r=e.fade,s=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,x=e.inverse,S=e.border,b=e.listItem,T=e.flip,v=e.size,A=e.rotation,C=e.pull,I=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":s,"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":x,"fa-border":S,"fa-li":b,"fa-flip":T===!0,"fa-flip-horizontal":T==="horizontal"||T==="both","fa-flip-vertical":T==="vertical"||T==="both"},Ls(t,"fa-".concat(v),typeof v<"u"&&v!==null),Ls(t,"fa-rotate-".concat(A),typeof A<"u"&&A!==null&&A!==0),Ls(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Ls(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map(function(E){return I[E]?E:null}).filter(function(E){return E})}function PE(e){return e=e-0,e===e}function Xp(e){return PE(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var AE=["style"];function ME(e){return e.charAt(0).toUpperCase()+e.slice(1)}function OE(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),s=Xp(n.slice(0,r)),o=n.slice(r+1).trim();return s.startsWith("webkit")?t[ME(s)]=o:t[s]=o,t},{})}function Zp(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 Zp(e,u)}),s=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=OE(h);break;default:d.indexOf("aria-")===0||d.indexOf("data-")===0?u.attrs[d.toLowerCase()]=h:u.attrs[Xp(d)]=h}return u},{attrs:{}}),o=n.style,a=o===void 0?{}:o,c=bE(n,AE);return s.attrs.style=En(En({},s.attrs.style),a),e.apply(void 0,[t.tag,En(En({},s.attrs),c)].concat(Kc(r)))}var Jp=!1;try{Jp=process.env.NODE_ENV==="production"}catch{}function $E(){if(!Jp&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Qp(e){if(e&&ua(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Bc.icon)return Bc.icon(e);if(e===null)return null;if(e&&ua(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 Zc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ls({},e,t):{}}var e0={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=O.forwardRef(function(e,t){var n=En(En({},e0),e),r=n.icon,s=n.mask,o=n.symbol,a=n.className,c=n.title,u=n.titleId,d=n.maskId,h=Qp(r),m=Zc("classes",[].concat(Kc(EE(n)),Kc((a||"").split(" ")))),p=Zc("transform",typeof n.transform=="string"?Bc.transform(n.transform):n.transform),x=Zc("mask",Qp(s)),S=uE(h,En(En(En(En({},m),p),x),{},{symbol:o,title:c,titleId:u,maskId:d}));if(!S)return $E("Could not find icon",h),null;var b=S.abstract,T={ref:t};return Object.keys(n).forEach(function(v){e0.hasOwnProperty(v)||(T[v]=n[v])}),_E(b[0],T)});Pe.displayName="FontAwesomeIcon",Pe.propTypes={beat:Ie.bool,border:Ie.bool,beatFade:Ie.bool,bounce:Ie.bool,className:Ie.string,fade:Ie.bool,flash:Ie.bool,mask:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),maskId:Ie.string,fixedWidth:Ie.bool,inverse:Ie.bool,flip:Ie.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ie.oneOfType([Ie.object,Ie.array,Ie.string]),listItem:Ie.bool,pull:Ie.oneOf(["right","left"]),pulse:Ie.bool,rotation:Ie.oneOf([0,90,180,270]),shake:Ie.bool,size:Ie.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ie.bool,spinPulse:Ie.bool,spinReverse:Ie.bool,symbol:Ie.oneOfType([Ie.bool,Ie.string]),title:Ie.string,titleId:Ie.string,transform:Ie.oneOfType([Ie.string,Ie.object]),swapOpacity:Ie.bool};var _E=Zp.bind(null,O.createElement);const IE=({title:e,icon:t,imageUrl:n,onClick:r,isSelected:s=!1})=>g.jsxs("button",{onClick:r,className:`
|
|
602
602
|
flex flex-col items-center justify-center
|
|
603
603
|
w-[180px] h-[87px] p-4 rounded-xl
|
|
@@ -618,41 +618,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
618
618
|
${p}px !important;
|
|
619
619
|
top: ${d}px !important;
|
|
620
620
|
}
|
|
621
|
-
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(BE,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const UE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=Qc(zE),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(WE,{isPresent:n,anchorX:c,children:e})),g.jsx(fa.Provider,{value:m,children:e})};function zE(){return new Map}function o0(e=!0){const t=O.useContext(fa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const da=e=>e.key||"";function a0(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const GE=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=o0(a),h=O.useMemo(()=>a0(e),[e]),m=a&&!u?[]:h.map(da),p=O.useRef(!0),x=O.useRef(h),S=Qc(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);i0(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const D=da(v[E]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let D=0;D<v.length;D++){const F=v[D],R=da(F);m.includes(R)||(E.splice(D,0,F),C.push(F))}return o==="wait"&&C.length&&(E=C),A(a0(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(Jc);return g.jsx(g.Fragment,{children:v.map(E=>{const D=da(E),F=a&&!u?!1:h===v||m.includes(D),R=()=>{if(S.has(D))S.set(D,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(UE,{isPresent:F,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:F?void 0:R,anchorX:c,children:E},D)})})};function nu(e,t){e.indexOf(t)===-1&&e.push(t)}function ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Rs=Nt,Cr=Nt;process.env.NODE_ENV!=="production"&&(Rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Cr=(e,t)=>{if(!e)throw new Error(t)});const YE={useManualTiming:!1};function su(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let iu=class{constructor(){this.subscriptions=[]}add(t){return nu(this.subscriptions,t),()=>ru(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Pn=e=>e*1e3,Hn=e=>e/1e3;function l0(e,t){return t?e*(1e3/t):0}const c0=new Set;function ha(e,t,n){e||c0.has(t)||(console.warn(t),c0.add(t))}const HE=su(()=>window.ScrollTimeline!==void 0);let qE=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(s=>{if(HE()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),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")}},KE=class extends qE{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function ou(e,t){return e?e[t]||e.default||e:void 0}const au=2e4;function u0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<au;)t+=n,r=e.next(t);return t>=au?1/0:t}function lu(e){return typeof e=="function"}function f0(e,t){e.timeline=t,e.onfinish=null}const cu=e=>Array.isArray(e)&&typeof e[0]=="number",XE={linearEasing:void 0};function ZE(e,t){const n=su(e);return()=>{var r;return(r=XE[t])!==null&&r!==void 0?r:n()}}const ma=ZE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),d0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(Fs(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function h0(e){return!!(typeof e=="function"&&ma()||!e||typeof e=="string"&&(e in uu||ma())||cu(e)||Array.isArray(e)&&e.every(h0))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function m0(e,t){if(e)return typeof e=="function"&&ma()?d0(e,t):cu(e)?zi(e):Array.isArray(e)?e.map(n=>m0(n,t)||uu.easeOut):uu[e]}const pa=["read","resolveKeyframes","update","preRender","render","postRender"],p0={value:null};function JE(e,t){let n=new Set,r=new Set,s=!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,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&p0.value&&p0.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const QE=40;function g0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pa.reduce((v,A)=>(v[A]=JE(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,QE),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:pa.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,D=!1)=>(n||S(),C.schedule(I,E,D)),v},{}),cancel:v=>{for(let A=0;A<pa.length;A++)a[pa[A]].cancel(v)},state:s,steps:a}}const{schedule:Ye,cancel:Er,state:yt,steps:fu}=g0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:du}=g0(queueMicrotask,!1);let ga;function eP(){ga=void 0}const An={now:()=>(ga===void 0&&An.set(yt.isProcessing||YE.useManualTiming?yt.timestamp:performance.now()),ga),set:e=>{ga=e,queueMicrotask(eP)}},pn={x:!1,y:!1};function y0(){return pn.x||pn.y}function tP(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function nP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function x0(e,t){const n=nP(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function v0(e){return!(e.pointerType==="touch"||y0())}function rP(e,t,n={}){const[r,s,o]=x0(e,n),a=c=>{if(!v0(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{v0(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}const b0=(e,t)=>t?e===t?!0:b0(e,t.parentElement):!1,hu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iP(e){return sP.has(e.tagName)||e.tabIndex!==-1}const Gi=new WeakSet;function w0(e){return t=>{t.key==="Enter"&&e(t)}}function mu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=w0(()=>{if(Gi.has(n))return;mu(n,"down");const s=w0(()=>{mu(n,"up")}),o=()=>mu(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function S0(e){return hu(e)&&!y0()}function aP(e,t,n={}){const[r,s,o]=x0(e,n),a=c=>{const u=c.currentTarget;if(!S0(c)||Gi.has(u))return;Gi.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!S0(x)||!Gi.has(u))&&(Gi.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||b0(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>oP(d,s)),!iP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const T0=30,lP=e=>!isNaN(parseFloat(e));let cP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=An.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=An.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ha(!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 iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>T0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,T0);return l0(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 Yi(e,t){return new cP(e,t)}const C0=O.createContext({strict:!1}),E0={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"]},Vs={};for(const e in E0)Vs[e]={isEnabled:t=>E0[e].some(n=>!!t[n])};function uP(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const fP=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 ya(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fP.has(e)}let P0=e=>!ya(e);function dP(e){e&&(P0=t=>t.startsWith("on")?!ya(t):e(t))}try{dP(require("@emotion/is-prop-valid").default)}catch{}function hP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(P0(s)||n===!0&&ya(s)||!t&&!ya(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function mP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ha(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const xa=O.createContext({});function va(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hi(e){return typeof e=="string"||Array.isArray(e)}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gu=["initial",...pu];function ba(e){return va(e.animate)||gu.some(t=>Hi(e[t]))}function A0(e){return!!(ba(e)||e.variants)}function pP(e,t){if(ba(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Hi(n)?n:void 0,animate:Hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function gP(e){const{initial:t,animate:n}=pP(e,O.useContext(xa));return O.useMemo(()=>({initial:t,animate:n}),[M0(t),M0(n)])}function M0(e){return Array.isArray(e)?e.join(" "):e}const yP=Symbol.for("motionComponentSymbol");function Bs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xP(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bs(n)&&(n.current=r))},[t])}const yu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O0="data-"+yu("framerAppearId"),$0=O.createContext({});function vP(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(xa),u=O.useContext(C0),d=O.useContext(fa),h=O.useContext(tu).reducedMotion,m=O.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,x=O.useContext($0);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&bP(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[O0],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return i0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),du.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function bP(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_0(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&Bs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function _0(e){if(e)return e.options.allowProjection!==!1?e.projection:_0(e.parent)}function wP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&uP(e);function c(d,h){let m;const p={...O.useContext(tu),...d,layoutId:SP(d)},{isStatic:x}=p,S=gP(d),b=r(d,x);if(!x&&eu){TP(p,e);const T=CP(p);m=T.MeasureLayout,S.visualElement=vP(s,b,p,t,T.ProjectionNode)}return g.jsxs(xa.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,xP(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[yP]=s,u}function SP({layoutId:e}){const t=O.useContext(Jc).id;return t&&e!==void 0?t+"-"+e:e}function TP(e,t){const n=O.useContext(C0).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):Cr(!1,r)}}function CP(e){const{drag:t,layout:n}=Vs;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 I0=e=>t=>typeof t=="string"&&t.startsWith(e),xu=I0("--"),EP=I0("var(--"),vu=e=>EP(e)?PP.test(e.split("/*")[0].trim()):!1,PP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qi={};function AP(e){for(const t in e)qi[t]=e[t],xu(t)&&(qi[t].isCSSVariable=!0)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(Ws);function D0(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qi[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),N0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ki={...Us,transform:e=>qn(0,1,e)},wa={...Us,default:1},Xi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=Xi("deg"),Mn=Xi("%"),we=Xi("px"),MP=Xi("vh"),OP=Xi("vw"),k0={...Mn,parse:e=>Mn.parse(e)/100,transform:e=>Mn.transform(e*100)},$P={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},_P={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:Pr,skewX:Pr,skewY:Pr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ki,originX:k0,originY:k0,originZ:we},j0={...Us,transform:Math.round},bu={...$P,..._P,zIndex:j0,size:we,fillOpacity:Ki,strokeOpacity:Ki,numOctaves:j0},IP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DP=Ws.length;function NP(e,t,n){let r="",s=!0;for(let o=0;o<DP;o++){const a=Ws[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=N0(c,bu[a]);if(!u){s=!1;const h=IP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function wu(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ts.has(u)){a=!0;continue}else if(xu(u)){s[u]=d;continue}else{const h=N0(d,bu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=NP(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 Su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function L0(e,t,n){for(const r in t)!St(t[r])&&!D0(r,n)&&(e[r]=t[r])}function kP({transformTemplate:e},t){return O.useMemo(()=>{const n=Su();return wu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jP(e,t){const n=e.style||{},r={};return L0(r,n,e),Object.assign(r,kP(e,t)),r}function LP(e,t){const n={},r=jP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RP=["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 Tu(e){return typeof e!="string"||e.includes("-")?!1:!!(RP.indexOf(e)>-1||/[A-Z]/u.test(e))}const FP={offset:"stroke-dashoffset",array:"stroke-dasharray"},VP={offset:"strokeDashoffset",array:"strokeDasharray"};function BP(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?FP:VP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function R0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function WP(e,t,n){const r=R0(t,e.x,e.width),s=R0(n,e.y,e.height);return`${r} ${s}`}function Cu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(wu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=WP(S,s!==void 0?s:.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&&BP(p,a,c,u,!1)}const F0=()=>({...Su(),attrs:{}}),Eu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UP(e,t,n,r){const s=O.useMemo(()=>{const o=F0();return Cu(o,t,Eu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};L0(o,e.style,e),s.style={...o,...s.style}}return s}function zP(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Tu(n)?UP:LP)(r,o,a,n),d=hP(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>St(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function V0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pu(e,t,n,r){if(typeof t=="function"){const[s,o]=V0(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=V0(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Au=e=>Array.isArray(e),GP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),YP=e=>Au(e)?e[e.length-1]||0:e;function Sa(e){const t=St(e)?e.get():e;return GP(t)?t.toValue():t}function HP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:qP(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const B0=e=>(t,n)=>{const r=O.useContext(xa),s=O.useContext(fa),o=()=>HP(e,t,r,s);return n?o():Qc(o)};function qP(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Sa(o[p]);let{initial:a,animate:c}=e;const u=ba(e),d=A0(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"&&!va(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=Pu(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Mu(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(St(s[a])||t.style&&St(t.style[a])||D0(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const KP={useVisualState:B0({scrapeMotionValuesFromProps:Mu,createRenderState:Su})};function W0(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 U0(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const z0=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 G0(e,t,n,r){U0(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(z0.has(s)?s:yu(s),t.attrs[s])}function Y0(e,t,n){const r=Mu(e,t,n);for(const s in e)if(St(e[s])||St(t[s])){const o=Ws.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const H0=["x","y","width","height","cx","cy","r"],XP={useVisualState:B0({scrapeMotionValuesFromProps:Y0,createRenderState:F0,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ts.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<H0.length;c++){const u=H0[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{W0(n,r),Ye.render(()=>{Cu(r,s,Eu(n.tagName),e.transformTemplate),G0(n,r)})})}})};function ZP(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Tu(r)?XP:KP,preloadedFeatures:e,useRender:zP(s),createVisualElement:t,Component:r};return wP(a)}}function Zi(e,t,n){const r=e.getProps();return Pu(r,t,n!==void 0?n:r.custom,e)}const q0=new Set(["width","height","top","left","right","bottom",...Ws]);function JP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yi(n))}function QP(e,t){const n=Zi(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=YP(o[a]);JP(e,a,c)}}function eA(e){return!!(St(e)&&e.add)}function Ou(e,t){const n=e.getValue("willChange");if(eA(n))return n.add(t)}function K0(e){return e.props[O0]}const X0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tA=1e-7,nA=12;function rA(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=X0(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>tA&&++c<nA);return a}function Ji(e,t,n,r){if(e===t&&n===r)return Nt;const s=o=>rA(o,0,1,e,n);return o=>o===0||o===1?o:X0(s(o),t,r)}const Z0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J0=e=>t=>1-e(1-t),Q0=Ji(.33,1.53,.69,.99),$u=J0(Q0),eg=Z0($u),tg=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),_u=e=>1-Math.sin(Math.acos(e)),ng=J0(_u),rg=Z0(_u),sg=e=>/^0[^.\s]+$/u.test(e);function sA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sg(e):!0}const Qi=e=>Math.round(e*1e5)/1e5,Iu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iA(e){return e==null}const oA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>n=>!!(typeof n=="string"&&oA.test(n)&&n.startsWith(e)||t&&!iA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ig=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Iu);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},aA=e=>qn(0,255,e),Nu={...Us,transform:e=>Math.round(aA(e))},ns={test:Du("rgb","red"),parse:ig("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nu.transform(e)+", "+Nu.transform(t)+", "+Nu.transform(n)+", "+Qi(Ki.transform(r))+")"};function lA(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const ku={test:Du("#"),parse:lA,transform:ns.transform},zs={test:Du("hsl","hue"),parse:ig("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mn.transform(Qi(t))+", "+Mn.transform(Qi(n))+", "+Qi(Ki.transform(r))+")"},Tt={test:e=>ns.test(e)||ku.test(e)||zs.test(e),parse:e=>ns.test(e)?ns.parse(e):zs.test(e)?zs.parse(e):ku.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ns.transform(e):zs.transform(e)},cA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Iu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cA))===null||n===void 0?void 0:n.length)||0)>0}const og="number",ag="color",fA="var",dA="var(",lg="${}",hA=/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 eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(hA,u=>(Tt.test(u)?(r.color.push(o),s.push(ag),n.push(Tt.parse(u))):u.startsWith(dA)?(r.var.push(o),s.push(fA),n.push(u)):(r.number.push(o),s.push(og),n.push(parseFloat(u))),++o,lg)).split(lg);return{values:n,split:c,indexes:r,types:s}}function cg(e){return eo(e).values}function ug(e){const{split:t,types:n}=eo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===og?o+=Qi(s[a]):c===ag?o+=Tt.transform(s[a]):o+=s[a]}return o}}const mA=e=>typeof e=="number"?0:e;function pA(e){const t=cg(e);return ug(e)(t.map(mA))}const Ar={test:uA,parse:cg,createTransformer:ug,getAnimatableNone:pA},gA=new Set(["brightness","contrast","saturate","opacity"]);function yA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Iu)||[];if(!r)return e;const s=n.replace(r,"");let o=gA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const xA=/\b([a-z-]*)\(.*?\)/gu,ju={...Ar,getAnimatableNone:e=>{const t=e.match(xA);return t?t.map(yA).join(" "):e}},vA={...bu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},fg=e=>vA[e];function dg(e,t){let n=fg(e);return n!==ju&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bA=new Set(["auto","none","0"]);function wA(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!bA.has(o)&&eo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=dg(n,s)}const rs=e=>e*180/Math.PI,Lu=e=>{const t=rs(Math.atan2(e[1],e[0]));return Ru(t)},SA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Lu,rotateZ:Lu,skewX:e=>rs(Math.atan(e[1])),skewY:e=>rs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ru=e=>(e=e%360,e<0&&(e+=360),e),hg=Lu,mg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),TA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mg,scaleY:pg,scale:e=>(mg(e)+pg(e))/2,rotateX:e=>Ru(rs(Math.atan2(e[6],e[5]))),rotateY:e=>Ru(rs(Math.atan2(-e[2],e[0]))),rotateZ:hg,rotate:hg,skewX:e=>rs(Math.atan(e[4])),skewY:e=>rs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gg(e){return e.includes("scale")?1:0}function Fu(e,t){if(!e||e==="none")return gg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=TA,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=SA,s=c}if(!s)return gg(t);const o=r[t],a=s[1].split(",").map(EA);return typeof o=="function"?o(a):a[o]}const CA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fu(n,t)};function EA(e){return parseFloat(e.trim())}const yg=e=>e===Us||e===we,PA=new Set(["x","y","z"]),AA=Ws.filter(e=>!PA.has(e));function MA(e){const t=[];return AA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gs={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})=>Fu(t,"x"),y:(e,{transform:t})=>Fu(t,"y")};Gs.translateX=Gs.x,Gs.translateY=Gs.y;const ss=new Set;let Vu=!1,Bu=!1;function xg(){if(Bu){const e=Array.from(ss).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=MA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.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)})}Bu=!1,Vu=!1,ss.forEach(e=>e.complete()),ss.clear()}function vg(){ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bu=!0)})}function OA(){vg(),xg()}let Wu=class{constructor(t,n,r,s,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=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ss.add(this),Vu||(Vu=!0,Ye.read(vg),Ye.resolveKeyframes(xg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.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),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ss.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ss.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const bg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _A(e){const t=$A.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const IA=4;function wg(e,t,n=1){Cr(n<=IA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=_A(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return bg(a)?parseFloat(a):a}return vu(s)?wg(s,t,n+1):s}const Sg=e=>t=>t.test(e),Tg=[Us,we,Mn,Pr,OP,MP,{test:e=>e==="auto",parse:e=>e}],Cg=e=>Tg.find(Sg(e));let Eg=class extends Wu{constructor(t,n,r,s,o){super(t,n,r,s,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(),vu(d))){const h=wg(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[s,o]=t,a=Cg(s),c=Cg(o);if(a!==c)if(yg(a)&&yg(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 s=0;s<t.length;s++)sA(t[s])&&r.push(s);r.length&&wA(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=Gs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=Gs[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 Pg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function DA(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 NA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Pg(s,t),c=Pg(o,t);return Rs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:DA(e)||(n==="spring"||lu(n))&&r}const kA=e=>e!==null;function Ta(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(kA),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const jA=40;let Ag=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!NA(t,r,s,o))if(a)this.options.duration=0;else{u&&u(Ta(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 Qe=(e,t,n)=>e+(t-e)*n;function Uu(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 LA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=Uu(u,c,e+1/3),o=Uu(u,c,e),a=Uu(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ca(e,t){return n=>n>0?t:e}const zu=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},RA=[ku,ns,zs],FA=e=>RA.find(t=>t.test(e));function Mg(e){const t=FA(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===zs&&(n=LA(n)),n}const Og=(e,t)=>{const n=Mg(e),r=Mg(t);if(!n||!r)return Ca(e,t);const s={...n};return o=>(s.red=zu(n.red,r.red,o),s.green=zu(n.green,r.green,o),s.blue=zu(n.blue,r.blue,o),s.alpha=Qe(n.alpha,r.alpha,o),ns.transform(s))},VA=(e,t)=>n=>t(e(n)),to=(...e)=>e.reduce(VA),Gu=new Set(["none","hidden"]);function BA(e,t){return Gu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function WA(e,t){return n=>Qe(e,t,n)}function Yu(e){return typeof e=="number"?WA:typeof e=="string"?vu(e)?Ca:Tt.test(e)?Og:GA:Array.isArray(e)?$g:typeof e=="object"?Tt.test(e)?Og:UA:Ca}function $g(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>Yu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function UA(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Yu(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function zA(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const GA=(e,t)=>{const n=Ar.createTransformer(t),r=eo(e),s=eo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Gu.has(e)&&!s.values.length||Gu.has(t)&&!r.values.length?BA(e,t):to($g(zA(r,s),s.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.`),Ca(e,t))};function _g(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Yu(e)(e,t)}const YA=5;function Ig(e,t,n){const r=Math.max(t-YA,0);return l0(n-e(r),t-r)}const et={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},Dg=.001;function HA({duration:e=et.duration,bounce:t=et.bounce,velocity:n=et.velocity,mass:r=et.mass}){let s,o;Rs(e<=Pn(et.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(et.minDamping,et.maxDamping,a),e=qn(et.minDuration,et.maxDuration,Hn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=Hu(d,a),S=Math.exp(-m);return Dg-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Hu(Math.pow(d,2),a);return(-s(d)+Dg>0?-1:1)*((p-x)*S)/b}):(s=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=KA(s,o,c);if(e=Pn(e),isNaN(u))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const qA=12;function KA(e,t,n){let r=n;for(let s=1;s<qA;s++)r=r-e(r)/t(r);return r}function Hu(e,t){return e*Math.sqrt(1-t*t)}const XA=["duration","bounce"],ZA=["stiffness","damping","mass"];function Ng(e,t){return t.some(n=>e[n]!==void 0)}function JA(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!Ng(e,ZA)&&Ng(e,XA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:et.mass,stiffness:s,damping:o}}else{const n=HA(e);t={...t,...n,mass:et.mass},t.isResolvedFromDuration=!0}return t}function kg(e=et.visualDuration,t=et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=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:x}=JA({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Hn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?et.restSpeed.granular:et.restSpeed.default),s||(s=A?et.restDelta.granular:et.restDelta.default);let C;if(b<1){const E=Hu(v,b);C=D=>{const F=Math.exp(-b*v*D);return a-F*((S+b*v*T)/E*Math.sin(E*D)+T*Math.cos(E*D))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=D=>{const F=Math.exp(-b*v*D),R=Math.min(E*D,300);return a-F*((S+b*v*T)*Math.sinh(R)+E*T*Math.cosh(R))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const D=C(E);if(x)c.done=E>=m;else{let F=0;b<1&&(F=E===0?Pn(S):Ig(C,E,D));const R=Math.abs(F)<=r,Y=Math.abs(a-D)<=s;c.done=R&&Y}return c.value=c.done?a:D,c},toString:()=>{const E=Math.min(u0(I),au),D=d0(F=>I.next(E*F).value,E,30);return E+"ms "+D}};return I}function jg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=R=>c!==void 0&&R<c||u!==void 0&&R>u,S=R=>c===void 0?u:u===void 0||Math.abs(c-R)<Math.abs(u-R)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=R=>-b*Math.exp(-R/r),C=R=>v+A(R),I=R=>{const Y=A(R),ee=C(R);p.done=Math.abs(Y)<=d,p.value=p.done?v:ee};let E,D;const F=R=>{x(p.value)&&(E=R,D=kg({keyframes:[p.value,S(p.value)],velocity:Ig(C,R,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return F(0),{calculatedDuration:null,next:R=>{let Y=!1;return!D&&E===void 0&&(Y=!0,I(R),F(R)),E!==void 0&&R>=E?D.next(R-E):(!Y&&I(R),p)}}}const QA=Ji(.42,0,1,1),eM=Ji(0,0,.58,1),Lg=Ji(.42,0,.58,1),tM=e=>Array.isArray(e)&&typeof e[0]!="number",Rg={linear:Nt,easeIn:QA,easeInOut:Lg,easeOut:eM,circIn:_u,circInOut:rg,circOut:ng,backIn:$u,backInOut:eg,backOut:Q0,anticipate:tg},Fg=e=>{if(cu(e)){Cr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return Ji(t,n,r,s)}else if(typeof e=="string")return Cr(Rg[e]!==void 0,`Invalid easing type '${e}'`),Rg[e];return e};function nM(e,t,n){const r=[],s=n||_g,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=to(u,c)}r.push(c)}return r}function rM(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(Cr(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=nM(t,r,s),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=Fs(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function sM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Fs(0,t,r);e.push(Qe(n,1,s))}}function iM(e){const t=[0];return sM(t,e.length-1),t}function oM(e,t){return e.map(n=>n*t)}function aM(e,t){return e.map(()=>t||Lg).splice(0,e.length-1)}function no({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=tM(r)?r.map(Fg):Fg(r),o={done:!1,value:t[0]},a=oM(n&&n.length===t.length?n:iM(t),e),c=rM(a,t,{ease:Array.isArray(s)?s:aM(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const lM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>Er(t),now:()=>yt.isProcessing?yt.timestamp:An.now()}},cM={decay:jg,inertia:jg,tween:no,keyframes:no,spring:kg},uM=e=>e/100;let qu=class extends Ag{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:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||Wu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),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:s=0,repeatType:o,velocity:a=0}=this.options,c=lu(n)?n:cM[n]||no;let u,d;process.env.NODE_ENV!=="production"&&c!==no&&Cr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==no&&typeof t[0]!="number"&&(u=to(uM,_g(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=u0(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}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:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:s,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:x,repeatType:S,repeatDelay:b,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 v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const R=Math.min(this.currentTime,h)/m;let Y=Math.floor(R),ee=R%1;!ee&&R>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,x+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,b&&(ee-=b/m)):S==="mirror"&&(I=a)),C=qn(0,1,ee)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:D}=E;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return F&&s!==void 0&&(E.value=Ta(u,this.options,s)),T&&T(E.value),F&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=Pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=lM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):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 fM=new Set(["opacity","clipPath","filter","transform"]);function dM(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=m0(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const hM=su(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ea=10,mM=2e4;function pM(e){return lu(e.type)||e.type==="spring"||!h0(e.ease)}function gM(e,t){const n=new qu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<mM;)r=n.sample(o),s.push(r.value),o+=Ea;return{times:void 0,keyframes:s,duration:o-Ea,ease:"linear"}}const Vg={anticipate:tg,backInOut:eg,circInOut:rg};function yM(e){return e in Vg}let Bg=class extends Ag{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new Eg(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ma()&&yM(o)&&(o=Vg[o]),pM(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=gM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=dM(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(f0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ta(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;f0(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:s,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,...x}=this.options,S=new qu({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Pn(this.time);d.setWithVelocity(S.sample(b-Ea).value,S.sample(b).value,Ea)}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:s,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 hM()&&r&&fM.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}};const xM={type:"spring",stiffness:500,damping:25,restSpeed:10},vM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bM={type:"keyframes",duration:.8},wM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},SM=(e,{keyframes:t})=>t.length>2?bM:ts.has(e)?e.startsWith("scale")?vM(t[1]):xM:wM;function TM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ku=(e,t,n,r={},s,o)=>a=>{const c=ou(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Pn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};TM(c)||(h={...h,...SM(e,h)}),h.duration&&(h.duration=Pn(h.duration)),h.repeatDelay&&(h.repeatDelay=Pn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ta(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new KE([])}return!o&&Bg.supports(h)?new Bg(h):new qu(h)};function CM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&CM(h,m))continue;const S={delay:n,...ou(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=K0(e);if(v){const A=window.MotionHandoffAnimation(v,m,Ye);A!==null&&(S.startTime=A,b=!0)}}Ou(e,m),p.start(Ku(m,p,x,e.shouldReduceMotion&&q0.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&QP(e,c)})}),d}function Xu(e,t,n={}){var r;const s=Zi(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(Wg(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return EM(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 EM(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(PM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Xu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function PM(e,t){return e.sortNodePosition(t)}function AM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>Xu(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=Xu(e,t,n);else{const s=typeof t=="function"?Zi(e,t,n.custom):t;r=Promise.all(Wg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ug(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 MM=gu.length;function zg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MM;n++){const r=gu[n],s=e.props[r];(Hi(s)||s===!1)&&(t[r]=s)}return t}const OM=[...pu].reverse(),$M=pu.length;function _M(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AM(e,n,r)))}function IM(e){let t=_M(e),n=Gg(),r=!0;const s=u=>(d,h)=>{var m;const p=Zi(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=zg(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<$M;T++){const v=OM[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=Hi(C),E=v===u?A.isActive:null;E===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||va(C)||typeof C=="boolean")continue;const F=DM(A.prevProp,C);let R=F||v===u&&A.isActive&&!D&&I||T>S&&I,Y=!1;const ee=Array.isArray(C)?C:[C];let Q=ee.reduce(s(v),{});E===!1&&(Q={});const{prevResolvedValues:fe={}}=A,oe={...fe,...Q},ce=z=>{R=!0,p.has(z)&&(Y=!0,p.delete(z)),A.needsAnimating[z]=!0;const U=e.getValue(z);U&&(U.liveStyle=!1)};for(const z in oe){const U=Q[z],K=fe[z];if(x.hasOwnProperty(z))continue;let $=!1;Au(U)&&Au(K)?$=!Ug(U,K):$=U!==K,$?U!=null?ce(z):p.add(z):U!==void 0&&p.has(z)?ce(z):A.protectedKeys[z]=!0}A.prevProp=C,A.prevResolvedValues=Q,A.isActive&&(x={...x,...Q}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(D&&F)||Y)&&m.push(...ee.map(z=>({animation:z,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=Zi(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.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=Gg(),r=!0}}}function DM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ug(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gg(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}let Mr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},NM=class extends Mr{constructor(t){super(t),t.animationState||(t.animationState=IM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();va(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)}},kM=0;const jM={animation:{Feature:NM},exit:{Feature:class extends Mr{constructor(){super(...arguments),this.id=kM++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 ro(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const LM=e=>t=>hu(t)&&e(t,so(t));function io(e,t,n,r){return ro(e,t,LM(n),r)}function Yg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function RM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function FM(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 Hg=1e-4,VM=1-Hg,BM=1+Hg,qg=.01,WM=0-qg,UM=0+qg;function Ot(e){return e.max-e.min}function zM(e,t,n){return Math.abs(e-t)<=n}function Kg(e,t,n,r=.5){e.origin=r,e.originPoint=Qe(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=Qe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VM&&e.scale<=BM||isNaN(e.scale))&&(e.scale=1),(e.translate>=WM&&e.translate<=UM||isNaN(e.translate))&&(e.translate=0)}function oo(e,t,n,r){Kg(e.x,t.x,n.x,r?r.originX:void 0),Kg(e.y,t.y,n.y,r?r.originY:void 0)}function Xg(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function GM(e,t,n){Xg(e.x,t.x,n.x),Xg(e.y,t.y,n.y)}function Zg(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function ao(e,t,n){Zg(e.x,t.x,n.x),Zg(e.y,t.y,n.y)}const Jg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:Jg(),y:Jg()}),Qg=()=>({min:0,max:0}),at=()=>({x:Qg(),y:Qg()});function tn(e){return[e("x"),e("y")]}function Zu(e){return e===void 0||e===1}function Ju({scale:e,scaleX:t,scaleY:n}){return!Zu(e)||!Zu(t)||!Zu(n)}function os(e){return Ju(e)||ey(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ey(e){return ty(e.x)||ty(e.y)}function ty(e){return e&&e!=="0%"}function Pa(e,t,n){const r=e-n,s=t*r;return n+s}function ny(e,t,n,r,s){return s!==void 0&&(e=Pa(e,s,r)),Pa(e,n,r)+t}function Qu(e,t=0,n=1,r,s){e.min=ny(e.min,t,n,r,s),e.max=ny(e.max,t,n,r,s)}function ry(e,{x:t,y:n}){Qu(e.x,t.translate,t.scale,t.originPoint),Qu(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,iy=1.0000000000001;function YM(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;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&&qs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ry(e,a)),r&&os(o.latestValues)&&qs(e,o.latestValues))}t.x<iy&&t.x>sy&&(t.x=1),t.y<iy&&t.y>sy&&(t.y=1)}function Hs(e,t){e.min=e.min+t,e.max=e.max+t}function oy(e,t,n,r,s=.5){const o=Qe(e.min,e.max,s);Qu(e,t,n,o,r)}function qs(e,t){oy(e.x,t.x,t.scaleX,t.scale,t.originX),oy(e.y,t.y,t.scaleY,t.scale,t.originY)}function ay(e,t){return Yg(FM(e.getBoundingClientRect(),t))}function HM(e,t,n){const r=ay(e,n),{scroll:s}=t;return s&&(Hs(r.x,s.offset.x),Hs(r.y,s.offset.y)),r}const ly=({current:e})=>e?e.ownerDocument.defaultView:null,cy=(e,t)=>Math.abs(e-t);function qM(e,t){const n=cy(e.x,t.x),r=cy(e.y,t.y);return Math.sqrt(n**2+r**2)}let uy=class{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=tf(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=qM(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=ef(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=tf(m.type==="pointercancel"?this.lastMoveEventInfo:ef(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!hu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=so(t),c=ef(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,tf(c,this.history)),this.removeListeners=to(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Er(this.updatePoint)}};function ef(e,t){return t?{point:t(e.point)}:e}function fy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tf({point:e},t){return{point:e,delta:fy(e,dy(t)),offset:fy(e,KM(t)),velocity:XM(t,.1)}}function KM(e){return e[0]}function dy(e){return e[e.length-1]}function XM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=dy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Pn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ZM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Qe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Qe(n,e,r.max):Math.min(e,n)),e}function hy(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 JM(e,{top:t,left:n,bottom:r,right:s}){return{x:hy(e.x,n,s),y:hy(e.y,t,r)}}function my(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 QM(e,t){return{x:my(e.x,t.x),y:my(e.y,t.y)}}function e4(e,t){let n=.5;const r=Ot(e),s=Ot(t);return s>r?n=Fs(t.min,t.max-r,e.min):r>s&&(n=Fs(e.min,e.max-s,t.min)),qn(0,1,n)}function t4(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 nf=.35;function n4(e=nf){return e===!1?e=0:e===!0&&(e=nf),{x:py(e,"left","right"),y:py(e,"top","bottom")}}function py(e,t,n){return{min:gy(e,t),max:gy(e,n)}}function gy(e,t){return typeof e=="number"?e:e[t]||0}const r4=new WeakMap;let s4=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 s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(so(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tP(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 v=this.getAxisMotionValue(T).get()||0;if(Mn.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=Ot(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&Ye.postRender(()=>S(h,m)),Ou(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=i4(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new uy(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:ly(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Aa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ZM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&Bs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=JM(s.layoutBox,n):this.constraints=!1,this.elastic=n4(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=t4(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bs(t))return!1;const r=t.current;Cr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=HM(r,s.root,this.visualElement.getTransformPagePoint());let a=QM(s.layout.layoutBox,o);if(n){const c=n(RM(a));this.hasMutatedConstraints=!!c,c&&(a=Yg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Aa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,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 Ou(this.visualElement,t),r.start(Ku(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(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Aa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-Qe(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=e4({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(!Aa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(Qe(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;r4.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bs(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ye.read(r);const a=ro(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.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:s=!1,dragConstraints:o=!1,dragElastic:a=nf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function i4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let o4=class extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new s4(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 yy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let a4=class extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new uy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ly(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:yy(t),onStart:yy(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&Ye.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=xy(e,t.target.x),r=xy(e,t.target.y);return`${n}% ${r}%`}},l4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ar.parse(e);if(s.length>5)return r;const o=Ar.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=Qe(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};let c4=class extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;AP(u4),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function vy(e){const[t,n]=o0(),r=O.useContext(Jc);return g.jsx(c4,{...e,layoutGroup:r,switchLayoutGroup:O.useContext($0),isPresent:t,safeToRemove:n})}const u4={borderRadius:{...lo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lo,borderTopRightRadius:lo,borderBottomLeftRadius:lo,borderBottomRightRadius:lo,boxShadow:l4};function f4(e,t,n){const r=St(e)?e:Yi(e);return r.start(Ku("",r,t,n)),r.animation}function d4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const h4=(e,t)=>e.depth-t.depth;let m4=class{constructor(){this.children=[],this.isDirty=!1}add(t){nu(this.children,t),this.isDirty=!0}remove(t){ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(h4),this.isDirty=!1,this.children.forEach(t)}};function p4(e,t){const n=An.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(Er(r),e(o-t))};return Ye.read(r,!0),()=>Er(r)}const by=["TopLeft","TopRight","BottomLeft","BottomRight"],g4=by.length,wy=e=>typeof e=="string"?parseFloat(e):e,Sy=e=>typeof e=="number"||we.test(e);function y4(e,t,n,r,s,o){s?(e.opacity=Qe(0,n.opacity!==void 0?n.opacity:1,x4(r)),e.opacityExit=Qe(t.opacity!==void 0?t.opacity:1,0,v4(r))):o&&(e.opacity=Qe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<g4;a++){const c=`border${by[a]}Radius`;let u=Ty(t,c),d=Ty(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Sy(u)===Sy(d)?(e[c]=Math.max(Qe(wy(u),wy(d),r),0),(Mn.test(d)||Mn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Qe(t.rotate||0,n.rotate||0,r))}function Ty(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const x4=Cy(0,.5,ng),v4=Cy(.5,.95,Nt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Fs(e,t,r))}function Ey(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Ey(e.x,t.x),Ey(e.y,t.y)}function Py(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ay(e,t,n,r,s){return e-=t,e=Pa(e,1/n,r),s!==void 0&&(e=Pa(e,1/s,r)),e}function b4(e,t=0,n=1,r=.5,s,o=e,a=e){if(Mn.test(t)&&(t=parseFloat(t),t=Qe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Qe(o.min,o.max,r);e===o&&(c-=t),e.min=Ay(e.min,t,n,c,s),e.max=Ay(e.max,t,n,c,s)}function My(e,t,[n,r,s],o,a){b4(e,t[n],t[r],t[s],t.scale,o,a)}const w4=["x","scaleX","originX"],S4=["y","scaleY","originY"];function Oy(e,t,n,r){My(e.x,t,w4,n?n.x:void 0,r?r.x:void 0),My(e.y,t,S4,n?n.y:void 0,r?r.y:void 0)}function $y(e){return e.translate===0&&e.scale===1}function _y(e){return $y(e.x)&&$y(e.y)}function Iy(e,t){return e.min===t.min&&e.max===t.max}function T4(e,t){return Iy(e.x,t.x)&&Iy(e.y,t.y)}function Dy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Dy(e.x,t.x)&&Dy(e.y,t.y)}function ky(e){return Ot(e.x)/Ot(e.y)}function jy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let C4=class{constructor(){this.members=[]}add(t){nu(this.members,t),t.scheduleRender()}remove(t){if(ru(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=t.options;s===!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 E4(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}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:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}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 rf=["","X","Y","Z"],P4={visibility:"hidden"},Ly=1e3;let A4=0;function sf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ry(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ry(r)}function Fy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=A4++,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($4),this.nodes.forEach(k4),this.nodes.forEach(j4),this.nodes.forEach(_4)},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 m4)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new iu),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=d4(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=p4(p,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(By))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||B4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Ny(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...ou(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||By(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,Er(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(L4),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&&Ry(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(Vy);return}this.isUpdating||this.nodes.forEach(D4),this.isUpdating=!1,this.nodes.forEach(N4),this.nodes.forEach(M4),this.nodes.forEach(O4),this.clearAllSnapshots();const c=An.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,fu.update.process(yt),fu.preRender.process(yt),fu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I4),this.sharedNodes.forEach(R4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!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(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!_y(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||os(this.latestValues)||h)&&(s(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)),W4(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(U4))){const{scroll:h}=this.root;h&&(Hs(u.x,h.offset.x),Hs(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),Hs(u.x,m.offset.x),Hs(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&&qs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),os(h.latestValues)&&qs(u,h.latestValues)}return os(this.latestValues)&&qs(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||!os(d.latestValues))continue;Ju(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),Oy(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return os(this.latestValues)&&Oy(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 x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.layout.layoutBox,x.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(),GM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ry(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.target,x.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ju(this.parent.latestValues)||ey(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,x=this.treeScale.y;YM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Py(this.prevProjectionDelta.x,this.projectionDelta.x),Py(this.prevProjectionDelta.y,this.projectionDelta.y)),oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!jy(this.projectionDelta.x,this.prevProjectionDelta.x)||!jy(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=Ys(),this.projectionDelta=Ys(),this.projectionDeltaWithTransform=Ys()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(V4));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;Wy(m.x,a.x,E),Wy(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ao(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F4(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&T4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,y4(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(Er(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=f4(0,Ly,{...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(Ly),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&&Hy(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),qs(c,h),oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new C4),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&&sf("z",a,d,this.animationValues);for(let h=0;h<rf.length;h++)sf(`rotate${rf[h]}`,a,d,this.animationValues),sf(`skew${rf[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 P4;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Sa(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 b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!os(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=E4(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.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 b in qi){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=qi[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Sa(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(Vy),this.root.sharedNodes.clear()}}}function M4(e){e.updateLayout()}function O4(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:s}=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],x=Ot(p);p.min=r[m].min,p.max=p.min+x}):Hy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=Ot(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=Ys();oo(c,r,n.layoutBox);const u=Ys();a?oo(u,e.applyTransform(s,!0),n.measuredBox):oo(u,r,n.layoutBox);const d=!_y(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=at();ao(S,n.layoutBox,p.layoutBox);const b=at();ao(b,r,x.layoutBox),Ny(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $4(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 _4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I4(e){e.clearSnapshot()}function Vy(e){e.clearMeasurements()}function D4(e){e.isLayoutDirty=!1}function N4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function By(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function k4(e){e.resolveTargetDelta()}function j4(e){e.calcProjection()}function L4(e){e.resetSkewAndRotation()}function R4(e){e.removeLeadSnapshot()}function Wy(e,t,n){e.translate=Qe(t.translate,0,n),e.scale=Qe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uy(e,t,n,r){e.min=Qe(t.min,n.min,r),e.max=Qe(t.max,n.max,r)}function F4(e,t,n,r){Uy(e.x,t.x,n.x,r),Uy(e.y,t.y,n.y,r)}function V4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const B4={duration:.45,ease:[.4,0,.1,1]},zy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gy=zy("applewebkit/")&&!zy("chrome/")?Math.round:Nt;function Yy(e){e.min=Gy(e.min),e.max=Gy(e.max)}function W4(e){Yy(e.x),Yy(e.y)}function Hy(e,t,n){return e==="position"||e==="preserve-aspect"&&!zM(ky(t),ky(n),.2)}function U4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const z4=Fy({attachResizeListener:(e,t)=>ro(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),of={current:void 0},qy=Fy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!of.current){const e=new z4({});e.mount(window),e.setOptions({layoutScroll:!0}),of.current=e}return of.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G4={pan:{Feature:a4},drag:{Feature:o4,ProjectionNode:qy,MeasureLayout:vy}};function Ky(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let Y4=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=rP(t,(n,r)=>(Ky(this.node,r,"Start"),s=>Ky(this.node,s,"End"))))}unmount(){}},H4=class 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=to(ro(this.node.current,"focus",()=>this.onFocus()),ro(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Xy(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 s="onTap"+(n==="End"?"":n),o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let q4=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=aP(t,(n,r)=>(Xy(this.node,r,"Start"),(s,{success:o})=>Xy(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const af=new WeakMap,lf=new WeakMap,K4=e=>{const t=af.get(e.target);t&&t(e)},X4=e=>{e.forEach(K4)};function Z4({root:e,...t}){const n=e||document;lf.has(n)||lf.set(n,{});const r=lf.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(X4,{root:e,...t})),r[s]}function J4(e,t,n){const r=Z4(t);return af.set(e,n),r.observe(e),()=>{af.delete(e),r.unobserve(e)}}const Q4={some:0,all:1};let eO=class 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:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Q4[s]},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 J4(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(tO(t,n))&&this.startObserver()}unmount(){}};function tO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nO={inView:{Feature:eO},tap:{Feature:q4},focus:{Feature:H4},hover:{Feature:Y4}},rO={layout:{ProjectionNode:qy,MeasureLayout:vy}},cf={current:null},Zy={current:!1};function sO(){if(Zy.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cf.current=e.matches;e.addListener(t),t()}else cf.current=!1}const iO=[...Tg,Tt,Ar],oO=e=>iO.find(Sg(e)),aO=new WeakMap;function lO(e,t,n){for(const r in t){const s=t[r],o=n[r];if(St(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ha(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Yi(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Yi(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Jy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let cO=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=Wu,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 x=An.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ba(n),this.isVariantNode=A0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&St(S)&&S.set(u[x],!1)}}mount(t){this.current=t,aO.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)),Zy.current||sO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cf.current,process.env.NODE_ENV!=="production"&&ha(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(),Er(this.notifyUpdate),Er(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=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),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 Vs){const n=Vs[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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<Jy.length;r++){const s=Jy[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=lO(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=Yi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=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 s!=null&&(typeof s=="string"&&(bg(s)||sg(s))?s=parseFloat(s):!oO(s)&&Ar.test(n)&&(s=dg(t,n)),this.setBaseTarget(t,St(s)?s.get():s)),St(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=Pu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Qy=class extends cO{constructor(){super(...arguments),this.KeyframeResolver=Eg}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 uO(e){return window.getComputedStyle(e)}let fO=class extends Qy{constructor(){super(...arguments),this.type="html",this.renderInstance=U0}readValueFromInstance(t,n){if(ts.has(n))return CA(t,n);{const r=uO(t),s=(xu(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ay(t,n)}build(t,n,r){wu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mu(t,n,r)}},dO=class extends Qy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&W0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=fg(n);return r&&r.default||0}return n=z0.has(n)?n:yu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Y0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Cu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){G0(t,n,r,s)}mount(t){this.isSVGTag=Eu(t.tagName),super.mount(t)}};const hO=(e,t)=>Tu(e)?new dO(t):new fO(t,{allowProjection:e!==O.Fragment}),mO=ZP({...jM,...nO,...G4,...rO},hO),uf=mP(mO),pO=500,ff=({id:e,content:t,type:n="notification",duration:r=0,onClose:s})=>{const[o,a]=O.useState(!0);let c,u=Ui,d;switch(n){case"success":d="text-green-500",c="bg-green-100",u=t0;break;case"error":d="text-red-500",c="bg-red-100",u=DE;break;case"warning":d="text-yellow-500",c="bg-yellow-100",u=r0;break;case"loading":d="text-blue-500",c="bg-blue-100",u=Ui;break;case"notification":d="text-blue-500",c="bg-blue-100",u=Ui;break;default:d="text-blue-500",c="bg-blue-100",u=Ui}O.useEffect(()=>{if(r===0)return;const m=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(m)},[r]),O.useEffect(()=>{if(!o){const m=setTimeout(s,pO);return()=>clearTimeout(m)}},[o,s]);const h={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 g.jsx(GE,{onExitComplete:s,children:o&&g.jsxs(uf.div,{id:e,className:"toast w-[400px] rounded-2xl border-1 border-blue-200 p-[18px] shadow-blue-sh bg-white font-jakarta-sans",initial:"initial",animate:"animate",exit:"exit",variants:h,layout:!0,children:[g.jsx(Pe,{icon:FE,onClick:()=>a(!1),className:"float-right text-lg text-[#9CA1B6] cursor-pointer"}),g.jsxs("div",{className:"space-y-12",children:[g.jsxs("div",{className:"flex gap-12",children:[g.jsx(Pe,{icon:u,className:`text-[20px] p-6 rounded-full self-start ${d} ${c}`}),g.jsx("h5",{className:"text-lg font-semibold text-blue-900 self-center",children:t.title})]}),t.description&&g.jsx("span",{className:"text-md text-gray-500 leading-[16px]",children:t.description})]})]})})},ex=({promise:e,messages:t,options:n,onClose:r})=>{const[s,o]=O.useState("loading"),[a,c]=O.useState(t.loading);return O.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]),g.jsx(ff,{content:a,type:s,duration:n.duration,onClose:r})};/*!
|
|
621
|
+
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(BE,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const UE=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=Qc(zE),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(WE,{isPresent:n,anchorX:c,children:e})),g.jsx(fa.Provider,{value:m,children:e})};function zE(){return new Map}function o0(e=!0){const t=O.useContext(fa);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const da=e=>e.key||"";function a0(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const GE=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=o0(a),h=O.useMemo(()=>a0(e),[e]),m=a&&!u?[]:h.map(da),p=O.useRef(!0),x=O.useRef(h),S=Qc(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);i0(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const N=da(v[E]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let N=0;N<v.length;N++){const R=v[N],F=da(R);m.includes(F)||(E.splice(N,0,R),C.push(R))}return o==="wait"&&C.length&&(E=C),A(a0(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(Jc);return g.jsx(g.Fragment,{children:v.map(E=>{const N=da(E),R=a&&!u?!1:h===v||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let G=!0;S.forEach(re=>{re||(G=!1)}),G&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(UE,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:E},N)})})};function nu(e,t){e.indexOf(t)===-1&&e.push(t)}function ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Nt=e=>e;let Rs=Nt,Cr=Nt;process.env.NODE_ENV!=="production"&&(Rs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Cr=(e,t)=>{if(!e)throw new Error(t)});const YE={useManualTiming:!1};function su(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let iu=class{constructor(){this.subscriptions=[]}add(t){return nu(this.subscriptions,t),()=>ru(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Pn=e=>e*1e3,Hn=e=>e/1e3;function l0(e,t){return t?e*(1e3/t):0}const c0=new Set;function ha(e,t,n){e||c0.has(t)||(console.warn(t),c0.add(t))}const HE=su(()=>window.ScrollTimeline!==void 0);let qE=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(s=>{if(HE()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),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")}},KE=class extends qE{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function ou(e,t){return e?e[t]||e.default||e:void 0}const au=2e4;function u0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<au;)t+=n,r=e.next(t);return t>=au?1/0:t}function lu(e){return typeof e=="function"}function f0(e,t){e.timeline=t,e.onfinish=null}const cu=e=>Array.isArray(e)&&typeof e[0]=="number",XE={linearEasing:void 0};function ZE(e,t){const n=su(e);return()=>{var r;return(r=XE[t])!==null&&r!==void 0?r:n()}}const ma=ZE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),d0=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(Fs(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function h0(e){return!!(typeof e=="function"&&ma()||!e||typeof e=="string"&&(e in uu||ma())||cu(e)||Array.isArray(e)&&e.every(h0))}const zi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zi([0,.65,.55,1]),circOut:zi([.55,0,1,.45]),backIn:zi([.31,.01,.66,-.59]),backOut:zi([.33,1.53,.69,.99])};function m0(e,t){if(e)return typeof e=="function"&&ma()?d0(e,t):cu(e)?zi(e):Array.isArray(e)?e.map(n=>m0(n,t)||uu.easeOut):uu[e]}const pa=["read","resolveKeyframes","update","preRender","render","postRender"],p0={value:null};function JE(e,t){let n=new Set,r=new Set,s=!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,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&p0.value&&p0.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const QE=40;function g0(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pa.reduce((v,A)=>(v[A]=JE(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,QE),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:pa.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,N=!1)=>(n||S(),C.schedule(I,E,N)),v},{}),cancel:v=>{for(let A=0;A<pa.length;A++)a[pa[A]].cancel(v)},state:s,steps:a}}const{schedule:Ye,cancel:Er,state:yt,steps:fu}=g0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Nt,!0),{schedule:du}=g0(queueMicrotask,!1);let ga;function eP(){ga=void 0}const An={now:()=>(ga===void 0&&An.set(yt.isProcessing||YE.useManualTiming?yt.timestamp:performance.now()),ga),set:e=>{ga=e,queueMicrotask(eP)}},pn={x:!1,y:!1};function y0(){return pn.x||pn.y}function tP(e){return e==="x"||e==="y"?pn[e]?null:(pn[e]=!0,()=>{pn[e]=!1}):pn.x||pn.y?null:(pn.x=pn.y=!0,()=>{pn.x=pn.y=!1})}function nP(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function x0(e,t){const n=nP(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function v0(e){return!(e.pointerType==="touch"||y0())}function rP(e,t,n={}){const[r,s,o]=x0(e,n),a=c=>{if(!v0(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{v0(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}const b0=(e,t)=>t?e===t?!0:b0(e,t.parentElement):!1,hu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,sP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iP(e){return sP.has(e.tagName)||e.tabIndex!==-1}const Gi=new WeakSet;function w0(e){return t=>{t.key==="Enter"&&e(t)}}function mu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const oP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=w0(()=>{if(Gi.has(n))return;mu(n,"down");const s=w0(()=>{mu(n,"up")}),o=()=>mu(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function S0(e){return hu(e)&&!y0()}function aP(e,t,n={}){const[r,s,o]=x0(e,n),a=c=>{const u=c.currentTarget;if(!S0(c)||Gi.has(u))return;Gi.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!S0(x)||!Gi.has(u))&&(Gi.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||b0(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>oP(d,s)),!iP(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}const T0=30,lP=e=>!isNaN(parseFloat(e));let cP=class{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=An.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=An.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=lP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ha(!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 iu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=An.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>T0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,T0);return l0(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 Yi(e,t){return new cP(e,t)}const C0=O.createContext({strict:!1}),E0={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"]},Vs={};for(const e in E0)Vs[e]={isEnabled:t=>E0[e].some(n=>!!t[n])};function uP(e){for(const t in e)Vs[t]={...Vs[t],...e[t]}}const fP=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 ya(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fP.has(e)}let P0=e=>!ya(e);function dP(e){e&&(P0=t=>t.startsWith("on")?!ya(t):e(t))}try{dP(require("@emotion/is-prop-valid").default)}catch{}function hP(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(P0(s)||n===!0&&ya(s)||!t&&!ya(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function mP(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ha(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const xa=O.createContext({});function va(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Hi(e){return typeof e=="string"||Array.isArray(e)}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gu=["initial",...pu];function ba(e){return va(e.animate)||gu.some(t=>Hi(e[t]))}function A0(e){return!!(ba(e)||e.variants)}function pP(e,t){if(ba(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Hi(n)?n:void 0,animate:Hi(r)?r:void 0}}return e.inherit!==!1?t:{}}function gP(e){const{initial:t,animate:n}=pP(e,O.useContext(xa));return O.useMemo(()=>({initial:t,animate:n}),[M0(t),M0(n)])}function M0(e){return Array.isArray(e)?e.join(" "):e}const yP=Symbol.for("motionComponentSymbol");function Bs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xP(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bs(n)&&(n.current=r))},[t])}const yu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O0="data-"+yu("framerAppearId"),$0=O.createContext({});function vP(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(xa),u=O.useContext(C0),d=O.useContext(fa),h=O.useContext(tu).reducedMotion,m=O.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,x=O.useContext($0);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&bP(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[O0],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return i0(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),du.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function bP(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:_0(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&Bs(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function _0(e){if(e)return e.options.allowProjection!==!1?e.projection:_0(e.parent)}function wP({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&uP(e);function c(d,h){let m;const p={...O.useContext(tu),...d,layoutId:SP(d)},{isStatic:x}=p,S=gP(d),b=r(d,x);if(!x&&eu){TP(p,e);const T=CP(p);m=T.MeasureLayout,S.visualElement=vP(s,b,p,t,T.ProjectionNode)}return g.jsxs(xa.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,xP(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[yP]=s,u}function SP({layoutId:e}){const t=O.useContext(Jc).id;return t&&e!==void 0?t+"-"+e:e}function TP(e,t){const n=O.useContext(C0).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):Cr(!1,r)}}function CP(e){const{drag:t,layout:n}=Vs;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 I0=e=>t=>typeof t=="string"&&t.startsWith(e),xu=I0("--"),EP=I0("var(--"),vu=e=>EP(e)?PP.test(e.split("/*")[0].trim()):!1,PP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qi={};function AP(e){for(const t in e)qi[t]=e[t],xu(t)&&(qi[t].isCSSVariable=!0)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(Ws);function D0(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qi[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),N0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qn=(e,t,n)=>n>t?t:n<e?e:n,Us={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ki={...Us,transform:e=>qn(0,1,e)},wa={...Us,default:1},Xi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pr=Xi("deg"),Mn=Xi("%"),we=Xi("px"),MP=Xi("vh"),OP=Xi("vw"),k0={...Mn,parse:e=>Mn.parse(e)/100,transform:e=>Mn.transform(e*100)},$P={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we},_P={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:Pr,skewX:Pr,skewY:Pr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ki,originX:k0,originY:k0,originZ:we},j0={...Us,transform:Math.round},bu={...$P,..._P,zIndex:j0,size:we,fillOpacity:Ki,strokeOpacity:Ki,numOctaves:j0},IP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DP=Ws.length;function NP(e,t,n){let r="",s=!0;for(let o=0;o<DP;o++){const a=Ws[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=N0(c,bu[a]);if(!u){s=!1;const h=IP[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function wu(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ts.has(u)){a=!0;continue}else if(xu(u)){s[u]=d;continue}else{const h=N0(d,bu[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=NP(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 Su=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function L0(e,t,n){for(const r in t)!St(t[r])&&!D0(r,n)&&(e[r]=t[r])}function kP({transformTemplate:e},t){return O.useMemo(()=>{const n=Su();return wu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function jP(e,t){const n=e.style||{},r={};return L0(r,n,e),Object.assign(r,kP(e,t)),r}function LP(e,t){const n={},r=jP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const RP=["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 Tu(e){return typeof e!="string"||e.includes("-")?!1:!!(RP.indexOf(e)>-1||/[A-Z]/u.test(e))}const FP={offset:"stroke-dashoffset",array:"stroke-dasharray"},VP={offset:"strokeDashoffset",array:"strokeDasharray"};function BP(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?FP:VP;e[o.offset]=we.transform(-r);const a=we.transform(t),c=we.transform(n);e[o.array]=`${a} ${c}`}function R0(e,t,n){return typeof e=="string"?e:we.transform(t+n*e)}function WP(e,t,n){const r=R0(t,e.x,e.width),s=R0(n,e.y,e.height);return`${r} ${s}`}function Cu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(wu(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=WP(S,s!==void 0?s:.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&&BP(p,a,c,u,!1)}const F0=()=>({...Su(),attrs:{}}),Eu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UP(e,t,n,r){const s=O.useMemo(()=>{const o=F0();return Cu(o,t,Eu(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};L0(o,e.style,e),s.style={...o,...s.style}}return s}function zP(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Tu(n)?UP:LP)(r,o,a,n),d=hP(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>St(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function V0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Pu(e,t,n,r){if(typeof t=="function"){const[s,o]=V0(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=V0(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Au=e=>Array.isArray(e),GP=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),YP=e=>Au(e)?e[e.length-1]||0:e;function Sa(e){const t=St(e)?e.get():e;return GP(t)?t.toValue():t}function HP({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:qP(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const B0=e=>(t,n)=>{const r=O.useContext(xa),s=O.useContext(fa),o=()=>HP(e,t,r,s);return n?o():Qc(o)};function qP(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Sa(o[p]);let{initial:a,animate:c}=e;const u=ba(e),d=A0(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"&&!va(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=Pu(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Mu(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(St(s[a])||t.style&&St(t.style[a])||D0(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const KP={useVisualState:B0({scrapeMotionValuesFromProps:Mu,createRenderState:Su})};function W0(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 U0(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const z0=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 G0(e,t,n,r){U0(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(z0.has(s)?s:yu(s),t.attrs[s])}function Y0(e,t,n){const r=Mu(e,t,n);for(const s in e)if(St(e[s])||St(t[s])){const o=Ws.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const H0=["x","y","width","height","cx","cy","r"],XP={useVisualState:B0({scrapeMotionValuesFromProps:Y0,createRenderState:F0,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ts.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<H0.length;c++){const u=H0[c];e[u]!==t[u]&&(a=!0)}a&&Ye.read(()=>{W0(n,r),Ye.render(()=>{Cu(r,s,Eu(n.tagName),e.transformTemplate),G0(n,r)})})}})};function ZP(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Tu(r)?XP:KP,preloadedFeatures:e,useRender:zP(s),createVisualElement:t,Component:r};return wP(a)}}function Zi(e,t,n){const r=e.getProps();return Pu(r,t,n!==void 0?n:r.custom,e)}const q0=new Set(["width","height","top","left","right","bottom",...Ws]);function JP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yi(n))}function QP(e,t){const n=Zi(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=YP(o[a]);JP(e,a,c)}}function eA(e){return!!(St(e)&&e.add)}function Ou(e,t){const n=e.getValue("willChange");if(eA(n))return n.add(t)}function K0(e){return e.props[O0]}const X0=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tA=1e-7,nA=12;function rA(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=X0(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>tA&&++c<nA);return a}function Ji(e,t,n,r){if(e===t&&n===r)return Nt;const s=o=>rA(o,0,1,e,n);return o=>o===0||o===1?o:X0(s(o),t,r)}const Z0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J0=e=>t=>1-e(1-t),Q0=Ji(.33,1.53,.69,.99),$u=J0(Q0),eg=Z0($u),tg=e=>(e*=2)<1?.5*$u(e):.5*(2-Math.pow(2,-10*(e-1))),_u=e=>1-Math.sin(Math.acos(e)),ng=J0(_u),rg=Z0(_u),sg=e=>/^0[^.\s]+$/u.test(e);function sA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sg(e):!0}const Qi=e=>Math.round(e*1e5)/1e5,Iu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iA(e){return e==null}const oA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Du=(e,t)=>n=>!!(typeof n=="string"&&oA.test(n)&&n.startsWith(e)||t&&!iA(n)&&Object.prototype.hasOwnProperty.call(n,t)),ig=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Iu);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},aA=e=>qn(0,255,e),Nu={...Us,transform:e=>Math.round(aA(e))},ns={test:Du("rgb","red"),parse:ig("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Nu.transform(e)+", "+Nu.transform(t)+", "+Nu.transform(n)+", "+Qi(Ki.transform(r))+")"};function lA(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const ku={test:Du("#"),parse:lA,transform:ns.transform},zs={test:Du("hsl","hue"),parse:ig("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Mn.transform(Qi(t))+", "+Mn.transform(Qi(n))+", "+Qi(Ki.transform(r))+")"},Tt={test:e=>ns.test(e)||ku.test(e)||zs.test(e),parse:e=>ns.test(e)?ns.parse(e):zs.test(e)?zs.parse(e):ku.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ns.transform(e):zs.transform(e)},cA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Iu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cA))===null||n===void 0?void 0:n.length)||0)>0}const og="number",ag="color",fA="var",dA="var(",lg="${}",hA=/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 eo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(hA,u=>(Tt.test(u)?(r.color.push(o),s.push(ag),n.push(Tt.parse(u))):u.startsWith(dA)?(r.var.push(o),s.push(fA),n.push(u)):(r.number.push(o),s.push(og),n.push(parseFloat(u))),++o,lg)).split(lg);return{values:n,split:c,indexes:r,types:s}}function cg(e){return eo(e).values}function ug(e){const{split:t,types:n}=eo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===og?o+=Qi(s[a]):c===ag?o+=Tt.transform(s[a]):o+=s[a]}return o}}const mA=e=>typeof e=="number"?0:e;function pA(e){const t=cg(e);return ug(e)(t.map(mA))}const Ar={test:uA,parse:cg,createTransformer:ug,getAnimatableNone:pA},gA=new Set(["brightness","contrast","saturate","opacity"]);function yA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Iu)||[];if(!r)return e;const s=n.replace(r,"");let o=gA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const xA=/\b([a-z-]*)\(.*?\)/gu,ju={...Ar,getAnimatableNone:e=>{const t=e.match(xA);return t?t.map(yA).join(" "):e}},vA={...bu,color:Tt,backgroundColor:Tt,outlineColor:Tt,fill:Tt,stroke:Tt,borderColor:Tt,borderTopColor:Tt,borderRightColor:Tt,borderBottomColor:Tt,borderLeftColor:Tt,filter:ju,WebkitFilter:ju},fg=e=>vA[e];function dg(e,t){let n=fg(e);return n!==ju&&(n=Ar),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bA=new Set(["auto","none","0"]);function wA(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!bA.has(o)&&eo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=dg(n,s)}const rs=e=>e*180/Math.PI,Lu=e=>{const t=rs(Math.atan2(e[1],e[0]));return Ru(t)},SA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Lu,rotateZ:Lu,skewX:e=>rs(Math.atan(e[1])),skewY:e=>rs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ru=e=>(e=e%360,e<0&&(e+=360),e),hg=Lu,mg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),pg=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),TA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:mg,scaleY:pg,scale:e=>(mg(e)+pg(e))/2,rotateX:e=>Ru(rs(Math.atan2(e[6],e[5]))),rotateY:e=>Ru(rs(Math.atan2(-e[2],e[0]))),rotateZ:hg,rotate:hg,skewX:e=>rs(Math.atan(e[4])),skewY:e=>rs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gg(e){return e.includes("scale")?1:0}function Fu(e,t){if(!e||e==="none")return gg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=TA,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=SA,s=c}if(!s)return gg(t);const o=r[t],a=s[1].split(",").map(EA);return typeof o=="function"?o(a):a[o]}const CA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fu(n,t)};function EA(e){return parseFloat(e.trim())}const yg=e=>e===Us||e===we,PA=new Set(["x","y","z"]),AA=Ws.filter(e=>!PA.has(e));function MA(e){const t=[];return AA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gs={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})=>Fu(t,"x"),y:(e,{transform:t})=>Fu(t,"y")};Gs.translateX=Gs.x,Gs.translateY=Gs.y;const ss=new Set;let Vu=!1,Bu=!1;function xg(){if(Bu){const e=Array.from(ss).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=MA(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.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)})}Bu=!1,Vu=!1,ss.forEach(e=>e.complete()),ss.clear()}function vg(){ss.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bu=!0)})}function OA(){vg(),xg()}let Wu=class{constructor(t,n,r,s,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=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ss.add(this),Vu||(Vu=!0,Ye.read(vg),Ye.resolveKeyframes(xg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.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),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ss.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ss.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const bg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),$A=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _A(e){const t=$A.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const IA=4;function wg(e,t,n=1){Cr(n<=IA,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=_A(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return bg(a)?parseFloat(a):a}return vu(s)?wg(s,t,n+1):s}const Sg=e=>t=>t.test(e),Tg=[Us,we,Mn,Pr,OP,MP,{test:e=>e==="auto",parse:e=>e}],Cg=e=>Tg.find(Sg(e));let Eg=class extends Wu{constructor(t,n,r,s,o){super(t,n,r,s,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(),vu(d))){const h=wg(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[s,o]=t,a=Cg(s),c=Cg(o);if(a!==c)if(yg(a)&&yg(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 s=0;s<t.length;s++)sA(t[s])&&r.push(s);r.length&&wA(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=Gs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=Gs[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 Pg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ar.test(e)||e==="0")&&!e.startsWith("url("));function DA(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 NA(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Pg(s,t),c=Pg(o,t);return Rs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:DA(e)||(n==="spring"||lu(n))&&r}const kA=e=>e!==null;function Ta(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(kA),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const jA=40;let Ag=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=An.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>jA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=An.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!NA(t,r,s,o))if(a)this.options.duration=0;else{u&&u(Ta(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 Qe=(e,t,n)=>e+(t-e)*n;function Uu(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 LA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=Uu(u,c,e+1/3),o=Uu(u,c,e),a=Uu(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ca(e,t){return n=>n>0?t:e}const zu=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},RA=[ku,ns,zs],FA=e=>RA.find(t=>t.test(e));function Mg(e){const t=FA(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===zs&&(n=LA(n)),n}const Og=(e,t)=>{const n=Mg(e),r=Mg(t);if(!n||!r)return Ca(e,t);const s={...n};return o=>(s.red=zu(n.red,r.red,o),s.green=zu(n.green,r.green,o),s.blue=zu(n.blue,r.blue,o),s.alpha=Qe(n.alpha,r.alpha,o),ns.transform(s))},VA=(e,t)=>n=>t(e(n)),to=(...e)=>e.reduce(VA),Gu=new Set(["none","hidden"]);function BA(e,t){return Gu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function WA(e,t){return n=>Qe(e,t,n)}function Yu(e){return typeof e=="number"?WA:typeof e=="string"?vu(e)?Ca:Tt.test(e)?Og:GA:Array.isArray(e)?$g:typeof e=="object"?Tt.test(e)?Og:UA:Ca}function $g(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>Yu(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function UA(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Yu(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function zA(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const GA=(e,t)=>{const n=Ar.createTransformer(t),r=eo(e),s=eo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Gu.has(e)&&!s.values.length||Gu.has(t)&&!r.values.length?BA(e,t):to($g(zA(r,s),s.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.`),Ca(e,t))};function _g(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Yu(e)(e,t)}const YA=5;function Ig(e,t,n){const r=Math.max(t-YA,0);return l0(n-e(r),t-r)}const et={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},Dg=.001;function HA({duration:e=et.duration,bounce:t=et.bounce,velocity:n=et.velocity,mass:r=et.mass}){let s,o;Rs(e<=Pn(et.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=qn(et.minDamping,et.maxDamping,a),e=qn(et.minDuration,et.maxDuration,Hn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=Hu(d,a),S=Math.exp(-m);return Dg-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=Hu(Math.pow(d,2),a);return(-s(d)+Dg>0?-1:1)*((p-x)*S)/b}):(s=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=KA(s,o,c);if(e=Pn(e),isNaN(u))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const d=Math.pow(u,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const qA=12;function KA(e,t,n){let r=n;for(let s=1;s<qA;s++)r=r-e(r)/t(r);return r}function Hu(e,t){return e*Math.sqrt(1-t*t)}const XA=["duration","bounce"],ZA=["stiffness","damping","mass"];function Ng(e,t){return t.some(n=>e[n]!==void 0)}function JA(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!Ng(e,ZA)&&Ng(e,XA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*qn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:et.mass,stiffness:s,damping:o}}else{const n=HA(e);t={...t,...n,mass:et.mass},t.isResolvedFromDuration=!0}return t}function kg(e=et.visualDuration,t=et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=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:x}=JA({...n,velocity:-Hn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Hn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?et.restSpeed.granular:et.restSpeed.default),s||(s=A?et.restDelta.granular:et.restDelta.default);let C;if(b<1){const E=Hu(v,b);C=N=>{const R=Math.exp(-b*v*N);return a-R*((S+b*v*T)/E*Math.sin(E*N)+T*Math.cos(E*N))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=N=>{const R=Math.exp(-b*v*N),F=Math.min(E*N,300);return a-R*((S+b*v*T)*Math.sinh(F)+E*T*Math.cosh(F))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const N=C(E);if(x)c.done=E>=m;else{let R=0;b<1&&(R=E===0?Pn(S):Ig(C,E,N));const F=Math.abs(R)<=r,G=Math.abs(a-N)<=s;c.done=F&&G}return c.value=c.done?a:N,c},toString:()=>{const E=Math.min(u0(I),au),N=d0(R=>I.next(E*R).value,E,30);return E+"ms "+N}};return I}function jg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const G=A(F),re=C(F);p.done=Math.abs(G)<=d,p.value=p.done?v:re};let E,N;const R=F=>{x(p.value)&&(E=F,N=kg({keyframes:[p.value,S(p.value)],velocity:Ig(C,F,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let G=!1;return!N&&E===void 0&&(G=!0,I(F),R(F)),E!==void 0&&F>=E?N.next(F-E):(!G&&I(F),p)}}}const QA=Ji(.42,0,1,1),eM=Ji(0,0,.58,1),Lg=Ji(.42,0,.58,1),tM=e=>Array.isArray(e)&&typeof e[0]!="number",Rg={linear:Nt,easeIn:QA,easeInOut:Lg,easeOut:eM,circIn:_u,circInOut:rg,circOut:ng,backIn:$u,backInOut:eg,backOut:Q0,anticipate:tg},Fg=e=>{if(cu(e)){Cr(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return Ji(t,n,r,s)}else if(typeof e=="string")return Cr(Rg[e]!==void 0,`Invalid easing type '${e}'`),Rg[e];return e};function nM(e,t,n){const r=[],s=n||_g,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Nt:t;c=to(u,c)}r.push(c)}return r}function rM(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if(Cr(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=nM(t,r,s),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=Fs(e[m],e[m+1],h);return c[m](p)};return n?h=>d(qn(e[0],e[o-1],h)):d}function sM(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Fs(0,t,r);e.push(Qe(n,1,s))}}function iM(e){const t=[0];return sM(t,e.length-1),t}function oM(e,t){return e.map(n=>n*t)}function aM(e,t){return e.map(()=>t||Lg).splice(0,e.length-1)}function no({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=tM(r)?r.map(Fg):Fg(r),o={done:!1,value:t[0]},a=oM(n&&n.length===t.length?n:iM(t),e),c=rM(a,t,{ease:Array.isArray(s)?s:aM(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const lM=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ye.update(t,!0),stop:()=>Er(t),now:()=>yt.isProcessing?yt.timestamp:An.now()}},cM={decay:jg,inertia:jg,tween:no,keyframes:no,spring:kg},uM=e=>e/100;let qu=class extends Ag{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:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||Wu,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),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:s=0,repeatType:o,velocity:a=0}=this.options,c=lu(n)?n:cM[n]||no;let u,d;process.env.NODE_ENV!=="production"&&c!==no&&Cr(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==no&&typeof t[0]!="number"&&(u=to(uM,_g(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=u0(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}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:s,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:x,repeatType:S,repeatDelay:b,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 v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/m;let G=Math.floor(F),re=F%1;!re&&F>=1&&(re=1),re===1&&G--,G=Math.min(G,x+1),!!(G%2)&&(S==="reverse"?(re=1-re,b&&(re-=b/m)):S==="mirror"&&(I=a)),C=qn(0,1,re)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:N}=E;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return R&&s!==void 0&&(E.value=Ta(u,this.options,s)),T&&T(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Hn(t.calculatedDuration):0}get time(){return Hn(this.currentTime)}set time(t){t=Pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Hn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=lM,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):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 fM=new Set(["opacity","clipPath","filter","transform"]);function dM(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=m0(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const hM=su(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ea=10,mM=2e4;function pM(e){return lu(e.type)||e.type==="spring"||!h0(e.ease)}function gM(e,t){const n=new qu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<mM;)r=n.sample(o),s.push(r.value),o+=Ea;return{times:void 0,keyframes:s,duration:o-Ea,ease:"linear"}}const Vg={anticipate:tg,backInOut:eg,circInOut:rg};function yM(e){return e in Vg}let Bg=class extends Ag{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new Eg(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ma()&&yM(o)&&(o=Vg[o]),pM(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=gM(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=dM(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(f0(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ta(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Hn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Hn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Nt;const{animation:r}=n;f0(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:s,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,...x}=this.options,S=new qu({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Pn(this.time);d.setWithVelocity(S.sample(b-Ea).value,S.sample(b).value,Ea)}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:s,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 hM()&&r&&fM.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}};const xM={type:"spring",stiffness:500,damping:25,restSpeed:10},vM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bM={type:"keyframes",duration:.8},wM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},SM=(e,{keyframes:t})=>t.length>2?bM:ts.has(e)?e.startsWith("scale")?vM(t[1]):xM:wM;function TM({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const Ku=(e,t,n,r={},s,o)=>a=>{const c=ou(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Pn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};TM(c)||(h={...h,...SM(e,h)}),h.duration&&(h.duration=Pn(h.duration)),h.repeatDelay&&(h.repeatDelay=Pn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=Ta(h.keyframes,c);if(p!==void 0)return Ye.update(()=>{h.onUpdate(p),h.onComplete()}),new KE([])}return!o&&Bg.supports(h)?new Bg(h):new qu(h)};function CM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&CM(h,m))continue;const S={delay:n,...ou(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=K0(e);if(v){const A=window.MotionHandoffAnimation(v,m,Ye);A!==null&&(S.startTime=A,b=!0)}}Ou(e,m),p.start(Ku(m,p,x,e.shouldReduceMotion&&q0.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{Ye.update(()=>{c&&QP(e,c)})}),d}function Xu(e,t,n={}){var r;const s=Zi(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(Wg(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return EM(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 EM(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(PM).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(Xu(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function PM(e,t){return e.sortNodePosition(t)}function AM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>Xu(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=Xu(e,t,n);else{const s=typeof t=="function"?Zi(e,t,n.custom):t;r=Promise.all(Wg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ug(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 MM=gu.length;function zg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MM;n++){const r=gu[n],s=e.props[r];(Hi(s)||s===!1)&&(t[r]=s)}return t}const OM=[...pu].reverse(),$M=pu.length;function _M(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AM(e,n,r)))}function IM(e){let t=_M(e),n=Gg(),r=!0;const s=u=>(d,h)=>{var m;const p=Zi(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=zg(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<$M;T++){const v=OM[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=Hi(C),E=v===u?A.isActive:null;E===!1&&(S=T);let N=C===h[v]&&C!==d[v]&&I;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||va(C)||typeof C=="boolean")continue;const R=DM(A.prevProp,C);let F=R||v===u&&A.isActive&&!N&&I||T>S&&I,G=!1;const re=Array.isArray(C)?C:[C];let ee=re.reduce(s(v),{});E===!1&&(ee={});const{prevResolvedValues:le={}}=A,oe={...le,...ee},ue=U=>{F=!0,p.has(U)&&(G=!0,p.delete(U)),A.needsAnimating[U]=!0;const W=e.getValue(U);W&&(W.liveStyle=!1)};for(const U in oe){const W=ee[U],K=le[U];if(x.hasOwnProperty(U))continue;let $=!1;Au(W)&&Au(K)?$=!Ug(W,K):$=W!==K,$?W!=null?ue(U):p.add(U):W!==void 0&&p.has(U)?ue(U):A.protectedKeys[U]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&R)||G)&&m.push(...re.map(U=>({animation:U,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=Zi(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.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=Gg(),r=!0}}}function DM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ug(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gg(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}let Mr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},NM=class extends Mr{constructor(t){super(t),t.animationState||(t.animationState=IM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();va(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)}},kM=0;const jM={animation:{Feature:NM},exit:{Feature:class extends Mr{constructor(){super(...arguments),this.id=kM++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 ro(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function so(e){return{point:{x:e.pageX,y:e.pageY}}}const LM=e=>t=>hu(t)&&e(t,so(t));function io(e,t,n,r){return ro(e,t,LM(n),r)}function Yg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function RM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function FM(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 Hg=1e-4,VM=1-Hg,BM=1+Hg,qg=.01,WM=0-qg,UM=0+qg;function Ot(e){return e.max-e.min}function zM(e,t,n){return Math.abs(e-t)<=n}function Kg(e,t,n,r=.5){e.origin=r,e.originPoint=Qe(t.min,t.max,e.origin),e.scale=Ot(n)/Ot(t),e.translate=Qe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VM&&e.scale<=BM||isNaN(e.scale))&&(e.scale=1),(e.translate>=WM&&e.translate<=UM||isNaN(e.translate))&&(e.translate=0)}function oo(e,t,n,r){Kg(e.x,t.x,n.x,r?r.originX:void 0),Kg(e.y,t.y,n.y,r?r.originY:void 0)}function Xg(e,t,n){e.min=n.min+t.min,e.max=e.min+Ot(t)}function GM(e,t,n){Xg(e.x,t.x,n.x),Xg(e.y,t.y,n.y)}function Zg(e,t,n){e.min=t.min-n.min,e.max=e.min+Ot(t)}function ao(e,t,n){Zg(e.x,t.x,n.x),Zg(e.y,t.y,n.y)}const Jg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ys=()=>({x:Jg(),y:Jg()}),Qg=()=>({min:0,max:0}),at=()=>({x:Qg(),y:Qg()});function tn(e){return[e("x"),e("y")]}function Zu(e){return e===void 0||e===1}function Ju({scale:e,scaleX:t,scaleY:n}){return!Zu(e)||!Zu(t)||!Zu(n)}function os(e){return Ju(e)||ey(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ey(e){return ty(e.x)||ty(e.y)}function ty(e){return e&&e!=="0%"}function Pa(e,t,n){const r=e-n,s=t*r;return n+s}function ny(e,t,n,r,s){return s!==void 0&&(e=Pa(e,s,r)),Pa(e,n,r)+t}function Qu(e,t=0,n=1,r,s){e.min=ny(e.min,t,n,r,s),e.max=ny(e.max,t,n,r,s)}function ry(e,{x:t,y:n}){Qu(e.x,t.translate,t.scale,t.originPoint),Qu(e.y,n.translate,n.scale,n.originPoint)}const sy=.999999999999,iy=1.0000000000001;function YM(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;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&&qs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ry(e,a)),r&&os(o.latestValues)&&qs(e,o.latestValues))}t.x<iy&&t.x>sy&&(t.x=1),t.y<iy&&t.y>sy&&(t.y=1)}function Hs(e,t){e.min=e.min+t,e.max=e.max+t}function oy(e,t,n,r,s=.5){const o=Qe(e.min,e.max,s);Qu(e,t,n,o,r)}function qs(e,t){oy(e.x,t.x,t.scaleX,t.scale,t.originX),oy(e.y,t.y,t.scaleY,t.scale,t.originY)}function ay(e,t){return Yg(FM(e.getBoundingClientRect(),t))}function HM(e,t,n){const r=ay(e,n),{scroll:s}=t;return s&&(Hs(r.x,s.offset.x),Hs(r.y,s.offset.y)),r}const ly=({current:e})=>e?e.ownerDocument.defaultView:null,cy=(e,t)=>Math.abs(e-t);function qM(e,t){const n=cy(e.x,t.x),r=cy(e.y,t.y);return Math.sqrt(n**2+r**2)}let uy=class{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=tf(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=qM(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=yt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=ef(p,this.transformPagePoint),Ye.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=tf(m.type==="pointercancel"?this.lastMoveEventInfo:ef(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!hu(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=so(t),c=ef(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=yt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,tf(c,this.history)),this.removeListeners=to(io(this.contextWindow,"pointermove",this.handlePointerMove),io(this.contextWindow,"pointerup",this.handlePointerUp),io(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Er(this.updatePoint)}};function ef(e,t){return t?{point:t(e.point)}:e}function fy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tf({point:e},t){return{point:e,delta:fy(e,dy(t)),offset:fy(e,KM(t)),velocity:XM(t,.1)}}function KM(e){return e[0]}function dy(e){return e[e.length-1]}function XM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=dy(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Pn(t)));)n--;if(!r)return{x:0,y:0};const o=Hn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ZM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Qe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Qe(n,e,r.max):Math.min(e,n)),e}function hy(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 JM(e,{top:t,left:n,bottom:r,right:s}){return{x:hy(e.x,n,s),y:hy(e.y,t,r)}}function my(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 QM(e,t){return{x:my(e.x,t.x),y:my(e.y,t.y)}}function e4(e,t){let n=.5;const r=Ot(e),s=Ot(t);return s>r?n=Fs(t.min,t.max-r,e.min):r>s&&(n=Fs(e.min,e.max-s,t.min)),qn(0,1,n)}function t4(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 nf=.35;function n4(e=nf){return e===!1?e=0:e===!0&&(e=nf),{x:py(e,"left","right"),y:py(e,"top","bottom")}}function py(e,t,n){return{min:gy(e,t),max:gy(e,n)}}function gy(e,t){return typeof e=="number"?e:e[t]||0}const r4=new WeakMap;let s4=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 s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(so(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=tP(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 v=this.getAxisMotionValue(T).get()||0;if(Mn.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=Ot(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&Ye.postRender(()=>S(h,m)),Ou(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=i4(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>tn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new uy(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:ly(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&Ye.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Aa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=ZM(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&Bs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=JM(s.layoutBox,n):this.constraints=!1,this.elastic=n4(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=t4(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bs(t))return!1;const r=t.current;Cr(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=HM(r,s.root,this.visualElement.getTransformPagePoint());let a=QM(s.layout.layoutBox,o);if(n){const c=n(RM(a));this.hasMutatedConstraints=!!c,c&&(a=Yg(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},d=tn(h=>{if(!Aa(h,n,this.currentDirection))return;let m=u&&u[h]||{};a&&(m={min:0,max:0});const p=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,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 Ou(this.visualElement,t),r.start(Ku(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(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){tn(n=>{const{drag:r}=this.getProps();if(!Aa(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.layout.layoutBox[n];o.set(t[n]-Qe(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bs(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};tn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=e4({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(!Aa(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:d}=this.constraints[a];c.set(Qe(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;r4.set(this.visualElement,this);const t=this.visualElement.current,n=io(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Bs(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ye.read(r);const a=ro(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.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:s=!1,dragConstraints:o=!1,dragElastic:a=nf,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function i4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}let o4=class extends Mr{constructor(t){super(t),this.removeGroupControls=Nt,this.removeListeners=Nt,this.controls=new s4(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 yy=e=>(t,n)=>{e&&Ye.postRender(()=>e(t,n))};let a4=class extends Mr{constructor(){super(...arguments),this.removePointerDownListener=Nt}onPointerDown(t){this.session=new uy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ly(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:yy(t),onStart:yy(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&Ye.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=io(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function xy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(we.test(e))e=parseFloat(e);else return e;const n=xy(e,t.target.x),r=xy(e,t.target.y);return`${n}% ${r}%`}},l4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Ar.parse(e);if(s.length>5)return r;const o=Ar.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=Qe(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};let c4=class extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;AP(u4),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Ye.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),du.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}};function vy(e){const[t,n]=o0(),r=O.useContext(Jc);return g.jsx(c4,{...e,layoutGroup:r,switchLayoutGroup:O.useContext($0),isPresent:t,safeToRemove:n})}const u4={borderRadius:{...lo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lo,borderTopRightRadius:lo,borderBottomLeftRadius:lo,borderBottomRightRadius:lo,boxShadow:l4};function f4(e,t,n){const r=St(e)?e:Yi(e);return r.start(Ku("",r,t,n)),r.animation}function d4(e){return e instanceof SVGElement&&e.tagName!=="svg"}const h4=(e,t)=>e.depth-t.depth;let m4=class{constructor(){this.children=[],this.isDirty=!1}add(t){nu(this.children,t),this.isDirty=!0}remove(t){ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(h4),this.isDirty=!1,this.children.forEach(t)}};function p4(e,t){const n=An.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(Er(r),e(o-t))};return Ye.read(r,!0),()=>Er(r)}const by=["TopLeft","TopRight","BottomLeft","BottomRight"],g4=by.length,wy=e=>typeof e=="string"?parseFloat(e):e,Sy=e=>typeof e=="number"||we.test(e);function y4(e,t,n,r,s,o){s?(e.opacity=Qe(0,n.opacity!==void 0?n.opacity:1,x4(r)),e.opacityExit=Qe(t.opacity!==void 0?t.opacity:1,0,v4(r))):o&&(e.opacity=Qe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<g4;a++){const c=`border${by[a]}Radius`;let u=Ty(t,c),d=Ty(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||Sy(u)===Sy(d)?(e[c]=Math.max(Qe(wy(u),wy(d),r),0),(Mn.test(d)||Mn.test(u))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=Qe(t.rotate||0,n.rotate||0,r))}function Ty(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const x4=Cy(0,.5,ng),v4=Cy(.5,.95,Nt);function Cy(e,t,n){return r=>r<e?0:r>t?1:n(Fs(e,t,r))}function Ey(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Ey(e.x,t.x),Ey(e.y,t.y)}function Py(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ay(e,t,n,r,s){return e-=t,e=Pa(e,1/n,r),s!==void 0&&(e=Pa(e,1/s,r)),e}function b4(e,t=0,n=1,r=.5,s,o=e,a=e){if(Mn.test(t)&&(t=parseFloat(t),t=Qe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=Qe(o.min,o.max,r);e===o&&(c-=t),e.min=Ay(e.min,t,n,c,s),e.max=Ay(e.max,t,n,c,s)}function My(e,t,[n,r,s],o,a){b4(e,t[n],t[r],t[s],t.scale,o,a)}const w4=["x","scaleX","originX"],S4=["y","scaleY","originY"];function Oy(e,t,n,r){My(e.x,t,w4,n?n.x:void 0,r?r.x:void 0),My(e.y,t,S4,n?n.y:void 0,r?r.y:void 0)}function $y(e){return e.translate===0&&e.scale===1}function _y(e){return $y(e.x)&&$y(e.y)}function Iy(e,t){return e.min===t.min&&e.max===t.max}function T4(e,t){return Iy(e.x,t.x)&&Iy(e.y,t.y)}function Dy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ny(e,t){return Dy(e.x,t.x)&&Dy(e.y,t.y)}function ky(e){return Ot(e.x)/Ot(e.y)}function jy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}let C4=class{constructor(){this.members=[]}add(t){nu(this.members,t),t.scheduleRender()}remove(t){if(ru(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=t.options;s===!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 E4(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}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:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}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 rf=["","X","Y","Z"],P4={visibility:"hidden"},Ly=1e3;let A4=0;function sf(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ry(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=K0(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ye,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ry(r)}function Fy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=A4++,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($4),this.nodes.forEach(k4),this.nodes.forEach(j4),this.nodes.forEach(_4)},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 m4)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new iu),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=d4(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=p4(p,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(By))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||B4,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Ny(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...ou(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||By(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,Er(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(L4),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&&Ry(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(Vy);return}this.isUpdating||this.nodes.forEach(D4),this.isUpdating=!1,this.nodes.forEach(N4),this.nodes.forEach(M4),this.nodes.forEach(O4),this.clearAllSnapshots();const c=An.now();yt.delta=qn(0,1e3/60,c-yt.timestamp),yt.timestamp=c,yt.isProcessing=!0,fu.update.process(yt),fu.preRender.process(yt),fu.render.process(yt),yt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,du.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(I4),this.sharedNodes.forEach(R4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!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(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!_y(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||os(this.latestValues)||h)&&(s(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)),W4(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(U4))){const{scroll:h}=this.root;h&&(Hs(u.x,h.offset.x),Hs(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),Hs(u.x,m.offset.x),Hs(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&&qs(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),os(h.latestValues)&&qs(u,h.latestValues)}return os(this.latestValues)&&qs(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||!os(d.latestValues))continue;Ju(d.latestValues)&&d.updateSnapshot();const h=at(),m=d.measurePageBox();nn(h,m),Oy(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return os(this.latestValues)&&Oy(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 x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.layout.layoutBox,x.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(),GM(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),ry(this.target,this.targetDelta)):nn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ao(this.relativeTargetOrigin,this.target,x.target),nn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ju(this.parent.latestValues)||ey(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,x=this.treeScale.y;YM(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=at());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Py(this.prevProjectionDelta.x,this.projectionDelta.x),Py(this.prevProjectionDelta.y,this.projectionDelta.y)),oo(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!jy(this.projectionDelta.x,this.prevProjectionDelta.x)||!jy(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=Ys(),this.projectionDelta=Ys(),this.projectionDeltaWithTransform=Ys()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=Ys();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=at(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(V4));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;Wy(m.x,a.x,E),Wy(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ao(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F4(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&T4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,y4(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(Er(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ye.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=f4(0,Ly,{...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(Ly),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&&Hy(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),qs(c,h),oo(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new C4),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&&sf("z",a,d,this.animationValues);for(let h=0;h<rf.length;h++)sf(`rotate${rf[h]}`,a,d,this.animationValues),sf(`skew${rf[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 P4;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Sa(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 b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Sa(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!os(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=E4(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.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 b in qi){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=qi[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Sa(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(Vy),this.root.sharedNodes.clear()}}}function M4(e){e.updateLayout()}function O4(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:s}=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],x=Ot(p);p.min=r[m].min,p.max=p.min+x}):Hy(o,n.layoutBox,r)&&tn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=Ot(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=Ys();oo(c,r,n.layoutBox);const u=Ys();a?oo(u,e.applyTransform(s,!0),n.measuredBox):oo(u,r,n.layoutBox);const d=!_y(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=at();ao(S,n.layoutBox,p.layoutBox);const b=at();ao(b,r,x.layoutBox),Ny(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function $4(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 _4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function I4(e){e.clearSnapshot()}function Vy(e){e.clearMeasurements()}function D4(e){e.isLayoutDirty=!1}function N4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function By(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function k4(e){e.resolveTargetDelta()}function j4(e){e.calcProjection()}function L4(e){e.resetSkewAndRotation()}function R4(e){e.removeLeadSnapshot()}function Wy(e,t,n){e.translate=Qe(t.translate,0,n),e.scale=Qe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Uy(e,t,n,r){e.min=Qe(t.min,n.min,r),e.max=Qe(t.max,n.max,r)}function F4(e,t,n,r){Uy(e.x,t.x,n.x,r),Uy(e.y,t.y,n.y,r)}function V4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const B4={duration:.45,ease:[.4,0,.1,1]},zy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gy=zy("applewebkit/")&&!zy("chrome/")?Math.round:Nt;function Yy(e){e.min=Gy(e.min),e.max=Gy(e.max)}function W4(e){Yy(e.x),Yy(e.y)}function Hy(e,t,n){return e==="position"||e==="preserve-aspect"&&!zM(ky(t),ky(n),.2)}function U4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const z4=Fy({attachResizeListener:(e,t)=>ro(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),of={current:void 0},qy=Fy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!of.current){const e=new z4({});e.mount(window),e.setOptions({layoutScroll:!0}),of.current=e}return of.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),G4={pan:{Feature:a4},drag:{Feature:o4,ProjectionNode:qy,MeasureLayout:vy}};function Ky(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let Y4=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=rP(t,(n,r)=>(Ky(this.node,r,"Start"),s=>Ky(this.node,s,"End"))))}unmount(){}},H4=class 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=to(ro(this.node.current,"focus",()=>this.onFocus()),ro(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Xy(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 s="onTap"+(n==="End"?"":n),o=r[s];o&&Ye.postRender(()=>o(t,so(t)))}let q4=class extends Mr{mount(){const{current:t}=this.node;t&&(this.unmount=aP(t,(n,r)=>(Xy(this.node,r,"Start"),(s,{success:o})=>Xy(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const af=new WeakMap,lf=new WeakMap,K4=e=>{const t=af.get(e.target);t&&t(e)},X4=e=>{e.forEach(K4)};function Z4({root:e,...t}){const n=e||document;lf.has(n)||lf.set(n,{});const r=lf.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(X4,{root:e,...t})),r[s]}function J4(e,t,n){const r=Z4(t);return af.set(e,n),r.observe(e),()=>{af.delete(e),r.unobserve(e)}}const Q4={some:0,all:1};let eO=class 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:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Q4[s]},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 J4(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(tO(t,n))&&this.startObserver()}unmount(){}};function tO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nO={inView:{Feature:eO},tap:{Feature:q4},focus:{Feature:H4},hover:{Feature:Y4}},rO={layout:{ProjectionNode:qy,MeasureLayout:vy}},cf={current:null},Zy={current:!1};function sO(){if(Zy.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cf.current=e.matches;e.addListener(t),t()}else cf.current=!1}const iO=[...Tg,Tt,Ar],oO=e=>iO.find(Sg(e)),aO=new WeakMap;function lO(e,t,n){for(const r in t){const s=t[r],o=n[r];if(St(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ha(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(St(o))e.addValue(r,Yi(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,Yi(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Jy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let cO=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=Wu,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 x=An.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,Ye.render(this.render,!1,!0))};const{latestValues:u,renderState:d,onUpdate:h}=a;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ba(n),this.isVariantNode=A0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&St(S)&&S.set(u[x],!1)}}mount(t){this.current=t,aO.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)),Zy.current||sO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cf.current,process.env.NODE_ENV!=="production"&&ha(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(),Er(this.notifyUpdate),Er(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=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),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 Vs){const n=Vs[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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<Jy.length;r++){const s=Jy[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=lO(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=Yi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=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 s!=null&&(typeof s=="string"&&(bg(s)||sg(s))?s=parseFloat(s):!oO(s)&&Ar.test(n)&&(s=dg(t,n)),this.setBaseTarget(t,St(s)?s.get():s)),St(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=Pu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!St(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Qy=class extends cO{constructor(){super(...arguments),this.KeyframeResolver=Eg}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 uO(e){return window.getComputedStyle(e)}let fO=class extends Qy{constructor(){super(...arguments),this.type="html",this.renderInstance=U0}readValueFromInstance(t,n){if(ts.has(n))return CA(t,n);{const r=uO(t),s=(xu(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ay(t,n)}build(t,n,r){wu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Mu(t,n,r)}},dO=class extends Qy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&W0(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=fg(n);return r&&r.default||0}return n=z0.has(n)?n:yu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Y0(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ye.postRender(this.updateDimensions)}build(t,n,r){Cu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){G0(t,n,r,s)}mount(t){this.isSVGTag=Eu(t.tagName),super.mount(t)}};const hO=(e,t)=>Tu(e)?new dO(t):new fO(t,{allowProjection:e!==O.Fragment}),mO=ZP({...jM,...nO,...G4,...rO},hO),uf=mP(mO),pO=500,ff=({id:e,content:t,type:n="notification",duration:r=0,onClose:s})=>{const[o,a]=O.useState(!0);let c,u=Ui,d;switch(n){case"success":d="text-green-500",c="bg-green-100",u=t0;break;case"error":d="text-red-500",c="bg-red-100",u=DE;break;case"warning":d="text-yellow-500",c="bg-yellow-100",u=r0;break;case"loading":d="text-blue-500",c="bg-blue-100",u=Ui;break;case"notification":d="text-blue-500",c="bg-blue-100",u=Ui;break;default:d="text-blue-500",c="bg-blue-100",u=Ui}O.useEffect(()=>{if(r===0)return;const m=setTimeout(()=>{a(!1)},r);return()=>clearTimeout(m)},[r]),O.useEffect(()=>{if(!o){const m=setTimeout(s,pO);return()=>clearTimeout(m)}},[o,s]);const h={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 g.jsx(GE,{onExitComplete:s,children:o&&g.jsxs(uf.div,{id:e,className:"toast w-[400px] rounded-2xl border-1 border-blue-200 p-[18px] shadow-blue-sh bg-white font-jakarta-sans",initial:"initial",animate:"animate",exit:"exit",variants:h,layout:!0,children:[g.jsx(Pe,{icon:FE,onClick:()=>a(!1),className:"float-right text-lg text-[#9CA1B6] cursor-pointer"}),g.jsxs("div",{className:"space-y-12",children:[g.jsxs("div",{className:"flex gap-12",children:[g.jsx(Pe,{icon:u,className:`text-[20px] p-6 rounded-full self-start ${d} ${c}`}),g.jsx("h5",{className:"text-lg font-semibold text-blue-900 self-center",children:t.title})]}),t.description&&g.jsx("span",{className:"text-md text-gray-500 leading-[16px]",children:t.description})]})]})})},ex=({promise:e,messages:t,options:n,onClose:r})=>{const[s,o]=O.useState("loading"),[a,c]=O.useState(t.loading);return O.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]),g.jsx(ff,{content:a,type:s,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 gO={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"]},yO={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"]},xO={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"]},tx={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"]},nx=6048e5,vO=864e5,rx=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rx in e?e[rx](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Ut(t||e,e)}function sx(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Ut(e,NaN);if(!t)return r;const s=r.getDate(),o=Ut(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}let bO={};function co(){return bO}function Ks(e,t){var c,u,d,h;const n=co(),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,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?7:0)+o-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Oa(e,t){return Ks(e,{...t,weekStartsOn:1})}function ix(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Ut(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Oa(s),a=Ut(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Oa(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ox(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 $a(e,...t){const n=Ut.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _a(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function wO(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t),o=_a(r),a=_a(s),c=+o-ox(o),u=+a-ox(a);return Math.round((c-u)/vO)}function SO(e,t){const n=ix(e,t),r=Ut(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oa(r)}function TO(e){return Ut(e,Date.now())}function ax(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return+_a(r)==+_a(s)}function CO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EO(e){return!(!CO(e)&&typeof e!="number"||isNaN(+pt(e)))}function PO(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 AO(e,t){const[n,r]=$a(e,t.start,t.end);return{start:n,end:r}}function MO(e,t){const{start:n,end:r}=AO(t==null?void 0:t.in,e);let s=+n>+r;const o=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Ut(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return s?u.reverse():u}function OO(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $O(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 _O(e,t){var c,u;const n=co(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+a),s.setHours(23,59,59,999),s}const IO={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"}},DO=(e,t,n)=>{let r;const s=IO[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:Xs({formats:NO,defaultWidth:"full"}),time:Xs({formats:kO,defaultWidth:"full"}),dateTime:Xs({formats:jO,defaultWidth:"full"})},RO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FO=(e,t,n,r)=>RO[e];function On(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;s=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const VO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WO={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"]},UO={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"]},zO={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"}},GO={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"}},YO={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:On({values:VO,defaultWidth:"wide"}),quarter:On({values:BO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:On({values:WO,defaultWidth:"wide"}),day:On({values:UO,defaultWidth:"wide"}),dayPeriod:On({values:zO,defaultWidth:"wide",formattingValues:GO,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qO(c,m=>m.test(a)):HO(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 HO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lx(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=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(s.length);return{value:a,rest:c}}}const KO=/^(\d+)(th|st|nd|rd)?/i,XO=/\d+/i,ZO={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},JO={any:[/^b/i,/^(a|c)/i]},QO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e$={any:[/1/i,/2/i,/3/i,/4/i]},t$={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},n$={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]},r$={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},s$={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]},i$={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},o$={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}},a$={ordinalNumber:lx({matchPattern:KO,parsePattern:XO,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:ZO,defaultMatchWidth:"wide",parsePatterns:JO,defaultParseWidth:"any"}),quarter:$n({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:e$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:t$,defaultMatchWidth:"wide",parsePatterns:n$,defaultParseWidth:"any"}),day:$n({matchPatterns:r$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:i$,defaultMatchWidth:"any",parsePatterns:o$,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:DO,formatLong:LO,formatRelative:FO,localize:YO,match:a$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function l$(e,t){const n=pt(e,t==null?void 0:t.in);return wO(n,$O(n))+1}function c$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Oa(n)-+SO(n);return Math.round(r/nx)+1}function ux(e,t){var h,m,p,x;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=co(),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)??s.firstWeekContainsDate??((x=(p=s.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=Ut((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ks(a,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ks(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function u$(e,t){var c,u,d,h;const n=co(),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,s=ux(e,t),o=Ut((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ks(o,t)}function f$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ks(n,t)-+u$(n,t);return Math.round(r/nx)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Or={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(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 Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ue(s,t.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fx={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(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Or.y(e,t)},Y:function(e,t,n,r){const s=ux(e,r),o=s>0?s:1-s;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=ix(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(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 Ue(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 Ue(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 Or.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 Ue(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 s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Ue(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(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 s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Ue(s,t.length);case"io":return n.ordinalNumber(s,{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 s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{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 Or.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Or.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Or.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Or.s(e,t)},S:function(e,t){return Or.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hx(r);case"XXXX":case"XX":return as(r);case"XXXXX":case"XXX":default:return as(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hx(r);case"xxxx":case"xx":return as(r);case"xxxxx":case"xxx":default:return as(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dx(r,":");case"OOOO":default:return"GMT"+as(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dx(r,":");case"zzzz":default:return"GMT"+as(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function dx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+Ue(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+s+t+o}const mx=(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"})}},px=(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"})}},d$={p:px,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return mx(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}}",mx(r,t)).replace("{{time}}",px(s,t))}},h$=/^D+$/,m$=/^Y+$/,p$=["D","DD","YY","YYYY"];function g$(e){return h$.test(e)}function y$(e){return m$.test(e)}function x$(e,t,n){const r=v$(e,t,n);if(console.warn(r),p$.includes(e))throw new RangeError(r)}function v$(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 b$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S$=/^'([^]*?)'?$/,T$=/''/g,C$=/[a-zA-Z]/;function _n(e,t,n){var h,m,p,x,S,b,T,v;const r=co(),s=(n==null?void 0:n.locale)??r.locale??cx,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??((x=(p=r.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((v=(T=r.locale)==null?void 0:T.options)==null?void 0:v.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!EO(c))throw new RangeError("Invalid time value");let u=t.match(w$).map(A=>{const C=A[0];if(C==="p"||C==="P"){const I=d$[C];return I(A,s.formatLong)}return A}).join("").match(b$).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const C=A[0];if(C==="'")return{isToken:!1,value:E$(A)};if(fx[C])return{isToken:!0,value:A};if(C.match(C$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:s};return u.map(A=>{if(!A.isToken)return A.value;const C=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&y$(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&g$(C))&&x$(C,t,String(e));const I=fx[C[0]];return I(c,C,s.localize,d)}).join("")}function E$(e){const t=e.match(S$);return t?t[1].replace(T$,"'"):e}function P$(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function A$(e,t){return ax(Ut(e,e),TO(e))}function gx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function yx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function xx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function M$(e,t,n){return sx(e,-1,n)}const O$={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"}},$$=(e,t,n)=>{let r;const s=O$[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},_$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},I$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N$={date:Xs({formats:_$,defaultWidth:"full"}),time:Xs({formats:I$,defaultWidth:"full"}),dateTime:Xs({formats:D$,defaultWidth:"full"})},k$={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"},j$={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"},L$=(e,t,n,r)=>t.getHours()!==1?j$[e]:k$[e],R$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},F$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},V$={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"]},B$={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"]},W$={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"}},U$={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"}},z$={ordinalNumber:(e,t)=>Number(e)+"º",era:On({values:R$,defaultWidth:"wide"}),quarter:On({values:F$,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:On({values:V$,defaultWidth:"wide"}),day:On({values:B$,defaultWidth:"wide"}),dayPeriod:On({values:W$,defaultWidth:"wide",formattingValues:U$,defaultFormattingWidth:"wide"})},G$=/^(\d+)(º)?/i,Y$=/\d+/i,H$={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},q$={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]},K$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},X$={any:[/1/i,/2/i,/3/i,/4/i]},Z$={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},J$={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]},Q$={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},e3={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]},t3={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},n3={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}},r3={ordinalNumber:lx({matchPattern:G$,parsePattern:Y$,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:H$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:K$,defaultMatchWidth:"wide",parsePatterns:X$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Z$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),day:$n({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:e3,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:t3,defaultMatchWidth:"any",parsePatterns:n3,defaultParseWidth:"any"})},Js={code:"es",formatDistance:$$,formatLong:N$,formatRelative:L$,localize:z$,match:r3,options:{weekStartsOn:1,firstWeekContainsDate:1}},vx=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),df=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 s=t>>n*8&255;r+=`00${s.toString(16)}`.slice(-2)}return r},s3=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return vx(_n(r,t,{locale:{en:cx,es:Js}[n]}))},i3=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=s=>n(s)});function bx(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 wx=e=>e;var uo={exports:{}};/**
|
|
625
|
+
*/const gO={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"]},yO={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"]},xO={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"]},tx={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"]},nx=6048e5,vO=864e5,rx=Symbol.for("constructDateFrom");function Ut(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rx in e?e[rx](t):e instanceof Date?new e.constructor(t):new Date(t)}function pt(e,t){return Ut(t||e,e)}function sx(e,t,n){const r=pt(e,n==null?void 0:n.in);if(isNaN(t))return Ut(e,NaN);if(!t)return r;const s=r.getDate(),o=Ut(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}let bO={};function co(){return bO}function Ks(e,t){var c,u,d,h;const n=co(),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,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?7:0)+o-r;return s.setDate(s.getDate()-a),s.setHours(0,0,0,0),s}function Oa(e,t){return Ks(e,{...t,weekStartsOn:1})}function ix(e,t){const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=Ut(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const o=Oa(s),a=Ut(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const c=Oa(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function ox(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 $a(e,...t){const n=Ut.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function _a(e,t){const n=pt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function wO(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t),o=_a(r),a=_a(s),c=+o-ox(o),u=+a-ox(a);return Math.round((c-u)/vO)}function SO(e,t){const n=ix(e,t),r=Ut(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Oa(r)}function TO(e){return Ut(e,Date.now())}function ax(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return+_a(r)==+_a(s)}function CO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function EO(e){return!(!CO(e)&&typeof e!="number"||isNaN(+pt(e)))}function PO(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 AO(e,t){const[n,r]=$a(e,t.start,t.end);return{start:n,end:r}}function MO(e,t){const{start:n,end:r}=AO(t==null?void 0:t.in,e);let s=+n>+r;const o=s?+n:+r,a=s?r:n;a.setHours(0,0,0,0);let c=1;const u=[];for(;+a<=o;)u.push(Ut(n,a)),a.setDate(a.getDate()+c),a.setHours(0,0,0,0);return s?u.reverse():u}function OO(e,t){const n=pt(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function $O(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 _O(e,t){var c,u;const n=co(),r=n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,s=pt(e,t==null?void 0:t.in),o=s.getDay(),a=(o<r?-7:0)+6-(o-r);return s.setDate(s.getDate()+a),s.setHours(23,59,59,999),s}const IO={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"}},DO=(e,t,n)=>{let r;const s=IO[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Xs(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},jO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LO={date:Xs({formats:NO,defaultWidth:"full"}),time:Xs({formats:kO,defaultWidth:"full"}),dateTime:Xs({formats:jO,defaultWidth:"full"})},RO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FO=(e,t,n,r)=>RO[e];function On(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):a;s=e.formattingValues[c]||e.formattingValues[a]}else{const a=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return s[o]}}const VO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},WO={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"]},UO={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"]},zO={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"}},GO={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"}},YO={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:On({values:VO,defaultWidth:"wide"}),quarter:On({values:BO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:On({values:WO,defaultWidth:"wide"}),day:On({values:UO,defaultWidth:"wide"}),dayPeriod:On({values:zO,defaultWidth:"wide",formattingValues:GO,defaultFormattingWidth:"wide"})};function $n(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;const a=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qO(c,m=>m.test(a)):HO(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 HO(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qO(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function lx(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=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(s.length);return{value:a,rest:c}}}const KO=/^(\d+)(th|st|nd|rd)?/i,XO=/\d+/i,ZO={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},JO={any:[/^b/i,/^(a|c)/i]},QO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},e$={any:[/1/i,/2/i,/3/i,/4/i]},t$={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},n$={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]},r$={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},s$={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]},i$={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},o$={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}},a$={ordinalNumber:lx({matchPattern:KO,parsePattern:XO,valueCallback:e=>parseInt(e,10)}),era:$n({matchPatterns:ZO,defaultMatchWidth:"wide",parsePatterns:JO,defaultParseWidth:"any"}),quarter:$n({matchPatterns:QO,defaultMatchWidth:"wide",parsePatterns:e$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:t$,defaultMatchWidth:"wide",parsePatterns:n$,defaultParseWidth:"any"}),day:$n({matchPatterns:r$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:i$,defaultMatchWidth:"any",parsePatterns:o$,defaultParseWidth:"any"})},cx={code:"en-US",formatDistance:DO,formatLong:LO,formatRelative:FO,localize:YO,match:a$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function l$(e,t){const n=pt(e,t==null?void 0:t.in);return wO(n,$O(n))+1}function c$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Oa(n)-+SO(n);return Math.round(r/nx)+1}function ux(e,t){var h,m,p,x;const n=pt(e,t==null?void 0:t.in),r=n.getFullYear(),s=co(),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)??s.firstWeekContainsDate??((x=(p=s.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=Ut((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const c=Ks(a,t),u=Ut((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=Ks(u,t);return+n>=+c?r+1:+n>=+d?r:r-1}function u$(e,t){var c,u,d,h;const n=co(),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,s=ux(e,t),o=Ut((t==null?void 0:t.in)||e,0);return o.setFullYear(s,0,r),o.setHours(0,0,0,0),Ks(o,t)}function f$(e,t){const n=pt(e,t==null?void 0:t.in),r=+Ks(n,t)-+u$(n,t);return Math.round(r/nx)+1}function Ue(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Or={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Ue(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Ue(n+1,2)},d(e,t){return Ue(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 Ue(e.getHours()%12||12,t.length)},H(e,t){return Ue(e.getHours(),t.length)},m(e,t){return Ue(e.getMinutes(),t.length)},s(e,t){return Ue(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return Ue(s,t.length)}},Zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},fx={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(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Or.y(e,t)},Y:function(e,t,n,r){const s=ux(e,r),o=s>0?s:1-s;if(t==="YY"){const a=o%100;return Ue(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Ue(o,t.length)},R:function(e,t){const n=ix(e);return Ue(n,t.length)},u:function(e,t){const n=e.getFullYear();return Ue(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 Ue(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 Ue(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 Or.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 Ue(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 s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):Ue(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(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 s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Ue(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Ue(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return Ue(s,t.length);case"io":return n.ordinalNumber(s,{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 s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=Zs.noon:r===0?s=Zs.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=Zs.evening:r>=12?s=Zs.afternoon:r>=4?s=Zs.morning:s=Zs.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{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 Or.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Or.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Or.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Or.s(e,t)},S:function(e,t){return Or.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return hx(r);case"XXXX":case"XX":return as(r);case"XXXXX":case"XXX":default:return as(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hx(r);case"xxxx":case"xx":return as(r);case"xxxxx":case"xxx":default:return as(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+dx(r,":");case"OOOO":default:return"GMT"+as(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+dx(r,":");case"zzzz":default:return"GMT"+as(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Ue(r,t.length)},T:function(e,t,n){return Ue(+e,t.length)}};function dx(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),o=r%60;return o===0?n+String(s):n+String(s)+t+Ue(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Ue(Math.trunc(r/60),2),o=Ue(r%60,2);return n+s+t+o}const mx=(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"})}},px=(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"})}},d$={p:px,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return mx(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}}",mx(r,t)).replace("{{time}}",px(s,t))}},h$=/^D+$/,m$=/^Y+$/,p$=["D","DD","YY","YYYY"];function g$(e){return h$.test(e)}function y$(e){return m$.test(e)}function x$(e,t,n){const r=v$(e,t,n);if(console.warn(r),p$.includes(e))throw new RangeError(r)}function v$(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 b$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S$=/^'([^]*?)'?$/,T$=/''/g,C$=/[a-zA-Z]/;function _n(e,t,n){var h,m,p,x,S,b,T,v;const r=co(),s=(n==null?void 0:n.locale)??r.locale??cx,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??((x=(p=r.locale)==null?void 0:p.options)==null?void 0:x.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((b=(S=n==null?void 0:n.locale)==null?void 0:S.options)==null?void 0:b.weekStartsOn)??r.weekStartsOn??((v=(T=r.locale)==null?void 0:T.options)==null?void 0:v.weekStartsOn)??0,c=pt(e,n==null?void 0:n.in);if(!EO(c))throw new RangeError("Invalid time value");let u=t.match(w$).map(A=>{const C=A[0];if(C==="p"||C==="P"){const I=d$[C];return I(A,s.formatLong)}return A}).join("").match(b$).map(A=>{if(A==="''")return{isToken:!1,value:"'"};const C=A[0];if(C==="'")return{isToken:!1,value:E$(A)};if(fx[C])return{isToken:!0,value:A};if(C.match(C$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:A}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:a,locale:s};return u.map(A=>{if(!A.isToken)return A.value;const C=A.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&y$(C)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&g$(C))&&x$(C,t,String(e));const I=fx[C[0]];return I(c,C,s.localize,d)}).join("")}function E$(e){const t=e.match(S$);return t?t[1].replace(T$,"'"):e}function P$(e,t,n){const[r,s]=$a(n==null?void 0:n.in,e,t);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function A$(e,t){return ax(Ut(e,e),TO(e))}function gx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setHours(t),r}function yx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setMinutes(t),r}function xx(e,t,n){const r=pt(e,n==null?void 0:n.in);return r.setSeconds(t),r}function M$(e,t,n){return sx(e,-1,n)}const O$={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"}},$$=(e,t,n)=>{let r;const s=O$[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},_$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},I$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},D$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},N$={date:Xs({formats:_$,defaultWidth:"full"}),time:Xs({formats:I$,defaultWidth:"full"}),dateTime:Xs({formats:D$,defaultWidth:"full"})},k$={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"},j$={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"},L$=(e,t,n,r)=>t.getHours()!==1?j$[e]:k$[e],R$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},F$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},V$={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"]},B$={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"]},W$={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"}},U$={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"}},z$={ordinalNumber:(e,t)=>Number(e)+"º",era:On({values:R$,defaultWidth:"wide"}),quarter:On({values:F$,defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:On({values:V$,defaultWidth:"wide"}),day:On({values:B$,defaultWidth:"wide"}),dayPeriod:On({values:W$,defaultWidth:"wide",formattingValues:U$,defaultFormattingWidth:"wide"})},G$=/^(\d+)(º)?/i,Y$=/\d+/i,H$={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},q$={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]},K$={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},X$={any:[/1/i,/2/i,/3/i,/4/i]},Z$={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},J$={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]},Q$={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},e5={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]},t5={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},n5={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}},r5={ordinalNumber:lx({matchPattern:G$,parsePattern:Y$,valueCallback:function(e){return parseInt(e,10)}}),era:$n({matchPatterns:H$,defaultMatchWidth:"wide",parsePatterns:q$,defaultParseWidth:"any"}),quarter:$n({matchPatterns:K$,defaultMatchWidth:"wide",parsePatterns:X$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$n({matchPatterns:Z$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),day:$n({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:e5,defaultParseWidth:"any"}),dayPeriod:$n({matchPatterns:t5,defaultMatchWidth:"any",parsePatterns:n5,defaultParseWidth:"any"})},Js={code:"es",formatDistance:$$,formatLong:N$,formatRelative:L$,localize:z$,match:r5,options:{weekStartsOn:1,firstWeekContainsDate:1}},vx=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),df=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 s=t>>n*8&255;r+=`00${s.toString(16)}`.slice(-2)}return r},s5=(e,t="PPPP",n="es")=>{const r=typeof e=="string"?new Date(e):e;return vx(_n(r,t,{locale:{en:cx,es:Js}[n]}))},i5=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=s=>n(s)});function bx(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 wx=e=>e;var uo={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 o3=uo.exports,Sx;function a3(){return Sx||(Sx=1,function(e,t){(function(){var n,r="4.17.21",s=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,x=4,S=1,b=2,T=1,v=2,A=4,C=8,I=16,E=32,D=64,F=128,R=256,Y=512,ee=30,Q="...",fe=800,oe=16,ce=1,le=2,ue=3,z=1/0,U=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,X=k-1,W=k>>>1,re=[["ary",F],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",Y],["partial",E],["partialRight",D],["rearg",R]],B="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",se="[object Boolean]",he="[object Date]",Ee="[object DOMException]",Be="[object Error]",ie="[object Function]",ge="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ss="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Br="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Wr="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",ur="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Pj=/\b__p \+= '';/g,Aj=/\b(__p \+=) '' \+/g,Mj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Oj=RegExp(D2.source),$j=RegExp(N2.source),_j=/<%-([\s\S]+?)%>/g,Ij=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Dj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nj=/^\w*$/,kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,jj=RegExp(hh.source),mh=/^\s+/,Lj=/\s/,Rj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fj=/\{\n\/\* \[wrapped with (.+)\] \*/,Vj=/,? & /,Bj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wj=/[()=,{}\[\]\/\s]/,Uj=/\\(\\)?/g,zj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,Gj=/^[-+]0x[0-9a-f]+$/i,Yj=/^0b[01]+$/i,Hj=/^\[object .+?Constructor\]$/,qj=/^0o[0-7]+$/i,Kj=/^(?:0|[1-9]\d*)$/,Xj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Zj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Jj="\\u0300-\\u036f",Qj="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",L2=Jj+Qj+eL,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",tL="\\xac\\xb1\\xd7\\xf7",nL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rL="\\u2000-\\u206f",sL=" \\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",V2="A-Z\\xc0-\\xd6\\xd8-\\xde",B2="\\ufe0e\\ufe0f",W2=tL+nL+rL+sL,ph="['’]",iL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",oL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",aL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",lL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=aL+"?",Q2="["+B2+"]?",cL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",uL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+cL,dL="(?:"+[oL,yh,xh].join("|")+")"+ew,hL="(?:"+[H2+Tl+"?",Tl,yh,xh,iL].join("|")+")",mL=RegExp(ph,"g"),pL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+hL+ew,"g"),gL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",lL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,fL,uL,z2,dL].join("|"),"g"),yL=RegExp("["+q2+Sl+L2+B2+"]"),xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vL=["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"],bL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[ur]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[J]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[he]=Xe[Be]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Br]=Xe[qt]=Xe[yn]=Xe[Wr]=!1;var qe={};qe[B]=qe[J]=qe[ve]=qe[Ze]=qe[se]=qe[he]=qe[Pt]=qe[xn]=qe[ur]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Br]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Be]=qe[ie]=qe[Wr]=!1;var wL={À:"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"},SL={"&":"&","<":"<",">":">",'"':""","'":"'"},TL={"&":"&","<":"<",">":">",""":'"',"'":"'"},CL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},EL=parseFloat,PL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,AL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||AL||Function("return this")(),bh=t&&!t.nodeType&&t,Cs=bh&&!0&&e&&!e.nodeType&&e,nw=Cs&&Cs.exports===bh,wh=nw&&tw.process,an=function(){try{var j=Cs&&Cs.require&&Cs.require("util").types;return j||wh&&wh.binding&&wh.binding("util")}catch{}}(),rw=an&&an.isArrayBuffer,sw=an&&an.isDate,iw=an&&an.isMap,ow=an&&an.isRegExp,aw=an&&an.isSet,lw=an&&an.isTypedArray;function Kt(j,G,V){switch(V.length){case 0:return j.call(G);case 1:return j.call(G,V[0]);case 2:return j.call(G,V[0],V[1]);case 3:return j.call(G,V[0],V[1],V[2])}return j.apply(G,V)}function ML(j,G,V,pe){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];G(pe,ht,V(ht),j)}return pe}function ln(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe&&G(j[V],V,j)!==!1;);return j}function OL(j,G){for(var V=j==null?0:j.length;V--&&G(j[V],V,j)!==!1;);return j}function cw(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(!G(j[V],V,j))return!1;return!0}function Ur(j,G){for(var V=-1,pe=j==null?0:j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];G(ht,V,j)&&(Le[Ae++]=ht)}return Le}function Cl(j,G){var V=j==null?0:j.length;return!!V&&wi(j,G,0)>-1}function Sh(j,G,V){for(var pe=-1,Ae=j==null?0:j.length;++pe<Ae;)if(V(G,j[pe]))return!0;return!1}function Je(j,G){for(var V=-1,pe=j==null?0:j.length,Ae=Array(pe);++V<pe;)Ae[V]=G(j[V],V,j);return Ae}function zr(j,G){for(var V=-1,pe=G.length,Ae=j.length;++V<pe;)j[Ae+V]=G[V];return j}function Th(j,G,V,pe){var Ae=-1,Le=j==null?0:j.length;for(pe&&Le&&(V=j[++Ae]);++Ae<Le;)V=G(V,j[Ae],Ae,j);return V}function $L(j,G,V,pe){var Ae=j==null?0:j.length;for(pe&&Ae&&(V=j[--Ae]);Ae--;)V=G(V,j[Ae],Ae,j);return V}function Ch(j,G){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(G(j[V],V,j))return!0;return!1}var _L=Eh("length");function IL(j){return j.split("")}function DL(j){return j.match(Bj)||[]}function uw(j,G,V){var pe;return V(j,function(Ae,Le,ht){if(G(Ae,Le,ht))return pe=Le,!1}),pe}function El(j,G,V,pe){for(var Ae=j.length,Le=V+(pe?1:-1);pe?Le--:++Le<Ae;)if(G(j[Le],Le,j))return Le;return-1}function wi(j,G,V){return G===G?GL(j,G,V):El(j,fw,V)}function NL(j,G,V,pe){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(pe(j[Ae],G))return Ae;return-1}function fw(j){return j!==j}function dw(j,G){var V=j==null?0:j.length;return V?Ah(j,G)/V:$}function Eh(j){return function(G){return G==null?n:G[j]}}function Ph(j){return function(G){return j==null?n:j[G]}}function hw(j,G,V,pe,Ae){return Ae(j,function(Le,ht,Ge){V=pe?(pe=!1,Le):G(V,Le,ht,Ge)}),V}function kL(j,G){var V=j.length;for(j.sort(G);V--;)j[V]=j[V].value;return j}function Ah(j,G){for(var V,pe=-1,Ae=j.length;++pe<Ae;){var Le=G(j[pe]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,G){for(var V=-1,pe=Array(j);++V<j;)pe[V]=G(V);return pe}function jL(j,G){return Je(G,function(V){return[V,j[V]]})}function mw(j){return j&&j.slice(0,xw(j)+1).replace(mh,"")}function Xt(j){return function(G){return j(G)}}function Oh(j,G){return Je(G,function(V){return j[V]})}function No(j,G){return j.has(G)}function pw(j,G){for(var V=-1,pe=j.length;++V<pe&&wi(G,j[V],0)>-1;);return V}function gw(j,G){for(var V=j.length;V--&&wi(G,j[V],0)>-1;);return V}function LL(j,G){for(var V=j.length,pe=0;V--;)j[V]===G&&++pe;return pe}var RL=Ph(wL),FL=Ph(SL);function VL(j){return"\\"+CL[j]}function BL(j,G){return j==null?n:j[G]}function Si(j){return yL.test(j)}function WL(j){return xL.test(j)}function UL(j){for(var G,V=[];!(G=j.next()).done;)V.push(G.value);return V}function $h(j){var G=-1,V=Array(j.size);return j.forEach(function(pe,Ae){V[++G]=[Ae,pe]}),V}function yw(j,G){return function(V){return j(G(V))}}function Gr(j,G){for(var V=-1,pe=j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];(ht===G||ht===h)&&(j[V]=h,Le[Ae++]=V)}return Le}function Pl(j){var G=-1,V=Array(j.size);return j.forEach(function(pe){V[++G]=pe}),V}function zL(j){var G=-1,V=Array(j.size);return j.forEach(function(pe){V[++G]=[pe,pe]}),V}function GL(j,G,V){for(var pe=V-1,Ae=j.length;++pe<Ae;)if(j[pe]===G)return pe;return-1}function YL(j,G,V){for(var pe=V+1;pe--;)if(j[pe]===G)return pe;return pe}function Ti(j){return Si(j)?qL(j):_L(j)}function vn(j){return Si(j)?KL(j):IL(j)}function xw(j){for(var G=j.length;G--&&Lj.test(j.charAt(G)););return G}var HL=Ph(TL);function qL(j){for(var G=vh.lastIndex=0;vh.test(j);)++G;return G}function KL(j){return j.match(vh)||[]}function XL(j){return j.match(gL)||[]}var ZL=function j(G){G=G==null?vt:Ci.defaults(vt.Object(),G,Ci.pick(vt,vL));var V=G.Array,pe=G.Date,Ae=G.Error,Le=G.Function,ht=G.Math,Ge=G.Object,_h=G.RegExp,JL=G.String,cn=G.TypeError,Al=V.prototype,QL=Le.prototype,Ei=Ge.prototype,Ml=G["__core-js_shared__"],Ol=QL.toString,ze=Ei.hasOwnProperty,eR=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,tR=Ol.call(Ge),nR=vt._,rR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=nw?G.Buffer:n,Yr=G.Symbol,Il=G.Uint8Array,bw=_l?_l.allocUnsafe:n,Dl=yw(Ge.getPrototypeOf,Ge),ww=Ge.create,Sw=Ei.propertyIsEnumerable,Nl=Al.splice,Tw=Yr?Yr.isConcatSpreadable:n,ko=Yr?Yr.iterator:n,Es=Yr?Yr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),sR=G.clearTimeout!==vt.clearTimeout&&G.clearTimeout,iR=pe&&pe.now!==vt.Date.now&&pe.now,oR=G.setTimeout!==vt.setTimeout&&G.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,aR=_l?_l.isBuffer:n,Cw=G.isFinite,lR=Al.join,cR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,uR=pe.now,fR=G.parseInt,Ew=ht.random,dR=Al.reverse,Dh=$s(G,"DataView"),jo=$s(G,"Map"),Nh=$s(G,"Promise"),Pi=$s(G,"Set"),Lo=$s(G,"WeakMap"),Ro=$s(Ge,"create"),Rl=Lo&&new Lo,Ai={},hR=_s(Dh),mR=_s(jo),pR=_s(Nh),gR=_s(Pi),yR=_s(Lo),Fl=Yr?Yr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function P(i){if(ot(i)&&!Me(i)&&!(i instanceof ke)){if(i instanceof un)return i;if(ze.call(i,"__wrapped__"))return AS(i)}return new un(i)}var Mi=function(){function i(){}return function(l){if(!rt(l))return{};if(ww)return ww(l);i.prototype=l;var f=new i;return i.prototype=n,f}}();function Vl(){}function un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:_j,evaluate:Ij,interpolate:k2,variable:"",imports:{_:P}},P.prototype=Vl.prototype,P.prototype.constructor=P,un.prototype=Mi(Vl.prototype),un.prototype.constructor=un;function ke(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function xR(){var i=new ke(this.__wrapped__);return i.__actions__=Rt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Rt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Rt(this.__views__),i}function vR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function bR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=IF(0,w,this.__views__),_=M.start,N=M.end,L=N-_,H=y?N:_-1,q=this.__iteratees__,Z=q.length,de=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&de<ye;){H+=l;for(var $e=-1,Ce=i[H];++$e<Z;){var Ne=q[$e],je=Ne.iteratee,Qt=Ne.type,Dt=je(Ce);if(Qt==le)Ce=Dt;else if(!Dt){if(Qt==ce)continue e;break e}}Te[de++]=Ce}return Te}ke.prototype=Mi(Vl.prototype),ke.prototype.constructor=ke;function Ps(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function wR(){this.__data__=Ro?Ro(null):{},this.size=0}function SR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function TR(i){var l=this.__data__;if(Ro){var f=l[i];return f===u?n:f}return ze.call(l,i)?l[i]:n}function CR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function ER(i,l){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ro&&l===n?u:l,this}Ps.prototype.clear=wR,Ps.prototype.delete=SR,Ps.prototype.get=TR,Ps.prototype.has=CR,Ps.prototype.set=ER;function fr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function PR(){this.__data__=[],this.size=0}function AR(i){var l=this.__data__,f=Bl(l,i);if(f<0)return!1;var y=l.length-1;return f==y?l.pop():Nl.call(l,f,1),--this.size,!0}function MR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function OR(i){return Bl(this.__data__,i)>-1}function $R(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}fr.prototype.clear=PR,fr.prototype.delete=AR,fr.prototype.get=MR,fr.prototype.has=OR,fr.prototype.set=$R;function dr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function _R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||fr),string:new Ps}}function IR(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function DR(i){return Ql(this,i).get(i)}function NR(i){return Ql(this,i).has(i)}function kR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}dr.prototype.clear=_R,dr.prototype.delete=IR,dr.prototype.get=DR,dr.prototype.has=NR,dr.prototype.set=kR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new dr;++l<f;)this.add(i[l])}function jR(i){return this.__data__.set(i,u),this}function LR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=jR,As.prototype.has=LR;function bn(i){var l=this.__data__=new fr(i);this.size=l.size}function RR(){this.__data__=new fr,this.size=0}function FR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function VR(i){return this.__data__.get(i)}function BR(i){return this.__data__.has(i)}function WR(i,l){var f=this.__data__;if(f instanceof fr){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new dr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=RR,bn.prototype.delete=FR,bn.prototype.get=VR,bn.prototype.has=BR,bn.prototype.set=WR;function Aw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Zr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,N=_?Mh(i.length,JL):[],L=N.length;for(var H in i)(l||ze.call(i,H))&&!(_&&(H=="length"||w&&(H=="offset"||H=="parent")||M&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||gr(H,L)))&&N.push(H);return N}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function UR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function zR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&hr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&hr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function GR(i,l,f,y){return Hr(i,function(w,M,_){l(y,w,f(w),_)}),y}function Ow(i,l){return i&&Bn(l,gt(l),i)}function YR(i,l){return i&&Bn(l,Vt(l),i)}function hr(i,l,f){l=="__proto__"&&kl?kl(i,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[l]=f}function jh(i,l){for(var f=-1,y=l.length,w=V(y),M=i==null;++f<y;)w[f]=M?n:gm(i,l[f]);return w}function Ms(i,l,f){return i===i&&(f!==n&&(i=i<=f?i:f),l!==n&&(i=i>=l?i:l)),i}function fn(i,l,f,y,w,M){var _,N=l&m,L=l&p,H=l&x;if(f&&(_=w?f(i,y,w,M):f(i)),_!==n)return _;if(!rt(i))return i;var q=Me(i);if(q){if(_=NF(i),!N)return Rt(i,_)}else{var Z=Mt(i),de=Z==ie||Z==ge;if(Zr(i))return Qw(i,N);if(Z==dt||Z==B||de&&!w){if(_=L||de?{}:xS(i),!N)return L?TF(i,YR(_,i)):SF(i,Ow(_,i))}else{if(!qe[Z])return w?i:{};_=kF(i,Z,N)}}M||(M=new bn);var ye=M.get(i);if(ye)return ye;M.set(i,_),HS(i)?i.forEach(function(Ce){_.add(fn(Ce,l,f,Ce,i,M))}):GS(i)&&i.forEach(function(Ce,Ne){_.set(Ne,fn(Ce,l,f,Ne,i,M))});var Te=H?L?nm:tm:L?Vt:gt,$e=q?n:Te(i);return ln($e||i,function(Ce,Ne){$e&&(Ne=Ce,Ce=i[Ne]),Vo(_,Ne,fn(Ce,l,f,Ne,i,M))}),_}function HR(i){var l=gt(i);return function(f){return $w(f,i,l)}}function $w(i,l,f){var y=f.length;if(i==null)return!y;for(i=Ge(i);y--;){var w=f[y],M=l[w],_=i[w];if(_===n&&!(w in i)||!M(_))return!1}return!0}function _w(i,l,f){if(typeof i!="function")throw new cn(a);return Ho(function(){i.apply(n,f)},l)}function Bo(i,l,f,y){var w=-1,M=Cl,_=!0,N=i.length,L=[],H=l.length;if(!N)return L;f&&(l=Je(l,Xt(f))),y?(M=Sh,_=!1):l.length>=s&&(M=No,_=!1,l=new As(l));e:for(;++w<N;){var q=i[w],Z=f==null?q:f(q);if(q=y||q!==0?q:0,_&&Z===Z){for(var de=H;de--;)if(l[de]===Z)continue e;L.push(q)}else M(l,Z,y)||L.push(q)}return L}var Hr=sS(Vn),Iw=sS(Rh,!0);function qR(i,l){var f=!0;return Hr(i,function(y,w,M){return f=!!l(y,w,M),f}),f}function Wl(i,l,f){for(var y=-1,w=i.length;++y<w;){var M=i[y],_=l(M);if(_!=null&&(N===n?_===_&&!Jt(_):f(_,N)))var N=_,L=M}return L}function KR(i,l,f,y){var w=i.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),y=y===n||y>w?w:Oe(y),y<0&&(y+=w),y=f>y?0:KS(y);f<y;)i[f++]=l;return i}function Dw(i,l){var f=[];return Hr(i,function(y,w,M){l(y,w,M)&&f.push(y)}),f}function bt(i,l,f,y,w){var M=-1,_=i.length;for(f||(f=LF),w||(w=[]);++M<_;){var N=i[M];l>0&&f(N)?l>1?bt(N,l-1,f,y,w):zr(w,N):y||(w[w.length]=N)}return w}var Lh=iS(),Nw=iS(!0);function Vn(i,l){return i&&Lh(i,l,gt)}function Rh(i,l){return i&&Nw(i,l,gt)}function Ul(i,l){return Ur(l,function(f){return yr(i[f])})}function Os(i,l){l=Kr(l,i);for(var f=0,y=l.length;i!=null&&f<y;)i=i[Wn(l[f++])];return f&&f==y?i:n}function kw(i,l,f){var y=l(i);return Me(i)?y:zr(y,f(i))}function _t(i){return i==null?i===n?vl:Ss:Es&&Es in Ge(i)?_F(i):zF(i)}function Fh(i,l){return i>l}function XR(i,l){return i!=null&&ze.call(i,l)}function ZR(i,l){return i!=null&&l in Ge(i)}function JR(i,l,f){return i>=At(l,f)&&i<mt(l,f)}function Vh(i,l,f){for(var y=f?Sh:Cl,w=i[0].length,M=i.length,_=M,N=V(M),L=1/0,H=[];_--;){var q=i[_];_&&l&&(q=Je(q,Xt(l))),L=At(q.length,L),N[_]=!f&&(l||w>=120&&q.length>=120)?new As(_&&q):n}q=i[0];var Z=-1,de=N[0];e:for(;++Z<w&&H.length<L;){var ye=q[Z],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(de?No(de,Te):y(H,Te,f))){for(_=M;--_;){var $e=N[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}de&&de.push(Te),H.push(ye)}}return H}function QR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=Kr(l,i),i=SS(i,l);var y=i==null?i:i[Wn(hn(l))];return y==null?n:Kt(y,i,f)}function jw(i){return ot(i)&&_t(i)==B}function eF(i){return ot(i)&&_t(i)==ve}function tF(i){return ot(i)&&_t(i)==he}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:nF(i,l,f,y,Uo,w)}function nF(i,l,f,y,w,M){var _=Me(i),N=Me(l),L=_?J:Mt(i),H=N?J:Mt(l);L=L==B?dt:L,H=H==B?dt:H;var q=L==dt,Z=H==dt,de=L==H;if(de&&Zr(i)){if(!Zr(l))return!1;_=!0,q=!1}if(de&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):OF(i,l,L,f,y,w,M);if(!(f&S)){var ye=q&&ze.call(i,"__wrapped__"),Te=Z&&ze.call(l,"__wrapped__");if(ye||Te){var $e=ye?i.value():i,Ce=Te?l.value():l;return M||(M=new bn),w($e,Ce,f,y,M)}}return de?(M||(M=new bn),$F(i,l,f,y,w,M)):!1}function rF(i){return ot(i)&&Mt(i)==De}function Bh(i,l,f,y){var w=f.length,M=w,_=!y;if(i==null)return!M;for(i=Ge(i);w--;){var N=f[w];if(_&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++w<M;){N=f[w];var L=N[0],H=i[L],q=N[1];if(_&&N[2]){if(H===n&&!(L in i))return!1}else{var Z=new bn;if(y)var de=y(H,q,L,i,l,Z);if(!(de===n?Uo(q,H,S|b,y,Z):de))return!1}}return!0}function Lw(i){if(!rt(i)||FF(i))return!1;var l=yr(i)?rR:Hj;return l.test(_s(i))}function sF(i){return ot(i)&&_t(i)==Br}function iF(i){return ot(i)&&Mt(i)==qt}function oF(i){return ot(i)&&oc(i.length)&&!!Xe[_t(i)]}function Rw(i){return typeof i=="function"?i:i==null?Bt:typeof i=="object"?Me(i)?Bw(i[0],i[1]):Vw(i):oT(i)}function Wh(i){if(!Yo(i))return cR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function aF(i){if(!rt(i))return UF(i);var l=Yo(i),f=[];for(var y in i)y=="constructor"&&(l||!ze.call(i,y))||f.push(y);return f}function Uh(i,l){return i<l}function Fw(i,l){var f=-1,y=Ft(i)?V(i.length):[];return Hr(i,function(w,M,_){y[++f]=l(w,M,_)}),y}function Vw(i){var l=sm(i);return l.length==1&&l[0][2]?bS(l[0][0],l[0][1]):function(f){return f===i||Bh(f,i,l)}}function Bw(i,l){return om(i)&&vS(l)?bS(Wn(i),l):function(f){var y=gm(f,i);return y===n&&y===l?ym(f,i):Uo(l,y,S|b)}}function zl(i,l,f,y,w){i!==l&&Lh(l,function(M,_){if(w||(w=new bn),rt(M))lF(i,l,_,f,zl,y,w);else{var N=y?y(lm(i,_),M,_+"",i,l,w):n;N===n&&(N=M),kh(i,_,N)}},Vt)}function lF(i,l,f,y,w,M,_){var N=lm(i,f),L=lm(l,f),H=_.get(L);if(H){kh(i,f,H);return}var q=M?M(N,L,f+"",i,l,_):n,Z=q===n;if(Z){var de=Me(L),ye=!de&&Zr(L),Te=!de&&!ye&&Ii(L);q=L,de||ye||Te?Me(N)?q=N:ct(N)?q=Rt(N):ye?(Z=!1,q=Qw(L,!0)):Te?(Z=!1,q=eS(L,!0)):q=[]:qo(L)||Is(L)?(q=N,Is(N)?q=XS(N):(!rt(N)||yr(N))&&(q=xS(L))):Z=!1}Z&&(_.set(L,q),w(q,L,y,M,_),_.delete(L)),kh(i,f,q)}function Ww(i,l){var f=i.length;if(f)return l+=l<0?f:0,gr(l,f)?i[l]:n}function Uw(i,l,f){l.length?l=Je(l,function(M){return Me(M)?function(_){return Os(_,M.length===1?M[0]:M)}:M}):l=[Bt];var y=-1;l=Je(l,Xt(be()));var w=Fw(i,function(M,_,N){var L=Je(l,function(H){return H(M)});return{criteria:L,index:++y,value:M}});return kL(w,function(M,_){return wF(M,_,f)})}function cF(i,l){return zw(i,l,function(f,y){return ym(i,y)})}function zw(i,l,f){for(var y=-1,w=l.length,M={};++y<w;){var _=l[y],N=Os(i,_);f(N,_)&&zo(M,Kr(_,i),N)}return M}function uF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?NL:wi,M=-1,_=l.length,N=i;for(i===l&&(l=Rt(l)),f&&(N=Je(i,Xt(f)));++M<_;)for(var L=0,H=l[M],q=f?f(H):H;(L=w(N,q,L,y))>-1;)N!==i&&Nl.call(N,L,1),Nl.call(i,L,1);return i}function Gw(i,l){for(var f=i?l.length:0,y=f-1;f--;){var w=l[f];if(f==y||w!==M){var M=w;gr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function fF(i,l,f,y){for(var w=-1,M=mt(jl((l-i)/(f||1)),0),_=V(M);M--;)_[y?M:++w]=i,i+=f;return _}function Yh(i,l){var f="";if(!i||l<1||l>U)return f;do l%2&&(f+=i),l=Ll(l/2),l&&(i+=i);while(l);return f}function _e(i,l){return cm(wS(i,l,Bt),i+"")}function dF(i){return Mw(Di(i))}function hF(i,l){var f=Di(i);return ec(f,Ms(l,0,f.length))}function zo(i,l,f,y){if(!rt(i))return i;l=Kr(l,i);for(var w=-1,M=l.length,_=M-1,N=i;N!=null&&++w<M;){var L=Wn(l[w]),H=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return i;if(w!=_){var q=N[L];H=y?y(q,L,N):n,H===n&&(H=rt(q)?q:gr(l[w+1])?[]:{})}Vo(N,L,H),N=N[L]}return i}var Yw=Rl?function(i,l){return Rl.set(i,l),i}:Bt,mF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function pF(i){return ec(Di(i))}function dn(i,l,f){var y=-1,w=i.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=V(w);++y<w;)M[y]=i[y+l];return M}function gF(i,l){var f;return Hr(i,function(y,w,M){return f=l(y,w,M),!f}),!!f}function Gl(i,l,f){var y=0,w=i==null?y:i.length;if(typeof l=="number"&&l===l&&w<=W){for(;y<w;){var M=y+w>>>1,_=i[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?y=M+1:w=M}return w}return Hh(i,l,Bt,f)}function Hh(i,l,f,y){var w=0,M=i==null?0:i.length;if(M===0)return 0;l=f(l);for(var _=l!==l,N=l===null,L=Jt(l),H=l===n;w<M;){var q=Ll((w+M)/2),Z=f(i[q]),de=Z!==n,ye=Z===null,Te=Z===Z,$e=Jt(Z);if(_)var Ce=y||Te;else H?Ce=Te&&(y||de):N?Ce=Te&&de&&(y||!ye):L?Ce=Te&&de&&!ye&&(y||!$e):ye||$e?Ce=!1:Ce=y?Z<=l:Z<l;Ce?w=q+1:M=q}return At(M,X)}function Hw(i,l){for(var f=-1,y=i.length,w=0,M=[];++f<y;){var _=i[f],N=l?l(_):_;if(!f||!wn(N,L)){var L=N;M[w++]=_===0?0:_}}return M}function qw(i){return typeof i=="number"?i:Jt(i)?$:+i}function Zt(i){if(typeof i=="string")return i;if(Me(i))return Je(i,Zt)+"";if(Jt(i))return Pw?Pw.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function qr(i,l,f){var y=-1,w=Cl,M=i.length,_=!0,N=[],L=N;if(f)_=!1,w=Sh;else if(M>=s){var H=l?null:AF(i);if(H)return Pl(H);_=!1,w=No,L=new As}else L=l?[]:N;e:for(;++y<M;){var q=i[y],Z=l?l(q):q;if(q=f||q!==0?q:0,_&&Z===Z){for(var de=L.length;de--;)if(L[de]===Z)continue e;l&&L.push(Z),N.push(q)}else w(L,Z,f)||(L!==N&&L.push(Z),N.push(q))}return N}function qh(i,l){return l=Kr(l,i),i=SS(i,l),i==null||delete i[Wn(hn(l))]}function Kw(i,l,f,y){return zo(i,l,f(Os(i,l)),y)}function Yl(i,l,f,y){for(var w=i.length,M=y?w:-1;(y?M--:++M<w)&&l(i[M],M,i););return f?dn(i,y?0:M,y?M+1:w):dn(i,y?M+1:0,y?w:M)}function Xw(i,l){var f=i;return f instanceof ke&&(f=f.value()),Th(l,function(y,w){return w.func.apply(w.thisArg,zr([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?qr(i[0]):[];for(var w=-1,M=V(y);++w<y;)for(var _=i[w],N=-1;++N<y;)N!=w&&(M[w]=Bo(M[w]||_,i[N],l,f));return qr(bt(M,1),l,f)}function Zw(i,l,f){for(var y=-1,w=i.length,M=l.length,_={};++y<w;){var N=y<M?l[y]:n;f(_,i[y],N)}return _}function Xh(i){return ct(i)?i:[]}function Zh(i){return typeof i=="function"?i:Bt}function Kr(i,l){return Me(i)?i:om(i,l)?[i]:PS(We(i))}var yF=_e;function Xr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Jw=sR||function(i){return vt.clearTimeout(i)};function Qw(i,l){if(l)return i.slice();var f=i.length,y=bw?bw(f):new i.constructor(f);return i.copy(y),y}function Jh(i){var l=new i.constructor(i.byteLength);return new Il(l).set(new Il(i)),l}function xF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function vF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function bF(i){return Fo?Ge(Fo.call(i)):{}}function eS(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tS(i,l){if(i!==l){var f=i!==n,y=i===null,w=i===i,M=Jt(i),_=l!==n,N=l===null,L=l===l,H=Jt(l);if(!N&&!H&&!M&&i>l||M&&_&&L&&!N&&!H||y&&_&&L||!f&&L||!w)return 1;if(!y&&!M&&!H&&i<l||H&&f&&w&&!y&&!M||N&&f&&w||!_&&w||!L)return-1}return 0}function wF(i,l,f){for(var y=-1,w=i.criteria,M=l.criteria,_=w.length,N=f.length;++y<_;){var L=tS(w[y],M[y]);if(L){if(y>=N)return L;var H=f[y];return L*(H=="desc"?-1:1)}}return i.index-l.index}function nS(i,l,f,y){for(var w=-1,M=i.length,_=f.length,N=-1,L=l.length,H=mt(M-_,0),q=V(L+H),Z=!y;++N<L;)q[N]=l[N];for(;++w<_;)(Z||w<M)&&(q[f[w]]=i[w]);for(;H--;)q[N++]=i[w++];return q}function rS(i,l,f,y){for(var w=-1,M=i.length,_=-1,N=f.length,L=-1,H=l.length,q=mt(M-N,0),Z=V(q+H),de=!y;++w<q;)Z[w]=i[w];for(var ye=w;++L<H;)Z[ye+L]=l[L];for(;++_<N;)(de||w<M)&&(Z[ye+f[_]]=i[w++]);return Z}function Rt(i,l){var f=-1,y=i.length;for(l||(l=V(y));++f<y;)l[f]=i[f];return l}function Bn(i,l,f,y){var w=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var N=l[M],L=y?y(f[N],i[N],N,f,i):n;L===n&&(L=i[N]),w?hr(f,N,L):Vo(f,N,L)}return f}function SF(i,l){return Bn(i,im(i),l)}function TF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?ML:GR,M=l?l():{};return w(f,i,be(y,2),M)}}function Oi(i){return _e(function(l,f){var y=-1,w=f.length,M=w>1?f[w-1]:n,_=w>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(w--,M):n,_&&It(f[0],f[1],_)&&(M=w<3?n:M,w=1),l=Ge(l);++y<w;){var N=f[y];N&&i(l,N,y,M)}return l})}function sS(i,l){return function(f,y){if(f==null)return f;if(!Ft(f))return i(f,y);for(var w=f.length,M=l?w:-1,_=Ge(f);(l?M--:++M<w)&&y(_[M],M,_)!==!1;);return f}}function iS(i){return function(l,f,y){for(var w=-1,M=Ge(l),_=y(l),N=_.length;N--;){var L=_[i?N:++w];if(f(M[L],L,M)===!1)break}return l}}function CF(i,l,f){var y=l&T,w=Go(i);function M(){var _=this&&this!==vt&&this instanceof M?w:i;return _.apply(y?f:this,arguments)}return M}function oS(i){return function(l){l=We(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(sT(rT(l).replace(mL,"")),i,"")}}function Go(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Mi(i.prototype),y=i.apply(f,l);return rt(y)?y:f}}function EF(i,l,f){var y=Go(i);function w(){for(var M=arguments.length,_=V(M),N=M,L=_i(w);N--;)_[N]=arguments[N];var H=M<3&&_[0]!==L&&_[M-1]!==L?[]:Gr(_,L);if(M-=H.length,M<f)return fS(i,l,ql,w.placeholder,n,_,H,n,n,f-M);var q=this&&this!==vt&&this instanceof w?y:i;return Kt(q,this,_)}return w}function aS(i){return function(l,f,y){var w=Ge(l);if(!Ft(l)){var M=be(f,3);l=gt(l),f=function(N){return M(w[N],N,w)}}var _=i(l,f,y);return _>-1?w[M?l[_]:_]:n}}function lS(i){return pr(function(l){var f=l.length,y=f,w=un.prototype.thru;for(i&&l.reverse();y--;){var M=l[y];if(typeof M!="function")throw new cn(a);if(w&&!_&&Jl(M)=="wrapper")var _=new un([],!0)}for(y=_?y:f;++y<f;){M=l[y];var N=Jl(M),L=N=="wrapper"?rm(M):n;L&&am(L[0])&&L[1]==(F|C|E|R)&&!L[4].length&&L[9]==1?_=_[Jl(L[0])].apply(_,L[3]):_=M.length==1&&am(M)?_[N]():_.thru(M)}return function(){var H=arguments,q=H[0];if(_&&H.length==1&&Me(q))return _.plant(q).value();for(var Z=0,de=f?l[Z].apply(this,H):q;++Z<f;)de=l[Z].call(this,de);return de}})}function ql(i,l,f,y,w,M,_,N,L,H){var q=l&F,Z=l&T,de=l&v,ye=l&(C|I),Te=l&Y,$e=de?n:Go(i);function Ce(){for(var Ne=arguments.length,je=V(Ne),Qt=Ne;Qt--;)je[Qt]=arguments[Qt];if(ye)var Dt=_i(Ce),en=LL(je,Dt);if(y&&(je=nS(je,y,w,ye)),M&&(je=rS(je,M,_,ye)),Ne-=en,ye&&Ne<H){var ut=Gr(je,Dt);return fS(i,l,ql,Ce.placeholder,f,je,ut,N,L,H-Ne)}var Sn=Z?f:this,vr=de?Sn[i]:i;return Ne=je.length,N?je=GF(je,N):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(vr=$e||Go(vr)),vr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return QR(f,i,l(y),{})}}function Kl(i,l){return function(f,y){var w;if(f===n&&y===n)return l;if(f!==n&&(w=f),y!==n){if(w===n)return y;typeof f=="string"||typeof y=="string"?(f=Zt(f),y=Zt(y)):(f=qw(f),y=qw(y)),w=i(f,y)}return w}}function Qh(i){return pr(function(l){return l=Je(l,Xt(be())),_e(function(f){var y=this;return i(l,function(w){return Kt(w,y,f)})})})}function Xl(i,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Yh(l,i):l;var y=Yh(l,jl(i/Ti(l)));return Si(l)?Xr(vn(y),0,i).join(""):y.slice(0,i)}function PF(i,l,f,y){var w=l&T,M=Go(i);function _(){for(var N=-1,L=arguments.length,H=-1,q=y.length,Z=V(q+L),de=this&&this!==vt&&this instanceof _?M:i;++H<q;)Z[H]=y[H];for(;L--;)Z[H++]=arguments[++N];return Kt(de,w?f:this,Z)}return _}function uS(i){return function(l,f,y){return y&&typeof y!="number"&&It(l,f,y)&&(f=y=n),l=xr(l),f===n?(f=l,l=0):f=xr(f),y=y===n?l<f?1:-1:xr(y),fF(l,f,y,i)}}function Zl(i){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=mn(l),f=mn(f)),i(l,f)}}function fS(i,l,f,y,w,M,_,N,L,H){var q=l&C,Z=q?_:n,de=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?E:D,l&=~(q?D:E),l&A||(l&=-4);var $e=[i,l,w,ye,Z,Te,de,N,L,H],Ce=f.apply(n,$e);return am(i)&&TS(Ce,$e),Ce.placeholder=y,CS(Ce,i,l)}function em(i){var l=ht[i];return function(f,y){if(f=mn(f),y=y==null?0:At(Oe(y),292),y&&Cw(f)){var w=(We(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(We(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var AF=Pi&&1/Pl(new Pi([,-0]))[1]==z?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?zL(l):jL(l,i(l))}}function mr(i,l,f,y,w,M,_,N){var L=l&v;if(!L&&typeof i!="function")throw new cn(a);var H=y?y.length:0;if(H||(l&=-97,y=w=n),_=_===n?_:mt(Oe(_),0),N=N===n?N:Oe(N),H-=w?w.length:0,l&D){var q=y,Z=w;y=w=n}var de=L?n:rm(i),ye=[i,l,f,y,w,q,Z,M,_,N];if(de&&WF(ye,de),i=ye[0],l=ye[1],f=ye[2],y=ye[3],w=ye[4],N=ye[9]=ye[9]===n?L?0:i.length:mt(ye[9]-H,0),!N&&l&(C|I)&&(l&=-25),!l||l==T)var Te=CF(i,l,f);else l==C||l==I?Te=EF(i,l,N):(l==E||l==(T|E))&&!w.length?Te=PF(i,l,f,y):Te=ql.apply(n,ye);var $e=de?Yw:TS;return CS($e(Te,ye),i,l)}function hS(i,l,f,y){return i===n||wn(i,Ei[f])&&!ze.call(y,f)?l:i}function mS(i,l,f,y,w,M){return rt(i)&&rt(l)&&(M.set(l,i),zl(i,l,n,mS,M),M.delete(l)),i}function MF(i){return qo(i)?n:i}function pS(i,l,f,y,w,M){var _=f&S,N=i.length,L=l.length;if(N!=L&&!(_&&L>N))return!1;var H=M.get(i),q=M.get(l);if(H&&q)return H==l&&q==i;var Z=-1,de=!0,ye=f&b?new As:n;for(M.set(i,l),M.set(l,i);++Z<N;){var Te=i[Z],$e=l[Z];if(y)var Ce=_?y($e,Te,Z,l,i,M):y(Te,$e,Z,i,l,M);if(Ce!==n){if(Ce)continue;de=!1;break}if(ye){if(!Ch(l,function(Ne,je){if(!No(ye,je)&&(Te===Ne||w(Te,Ne,f,y,M)))return ye.push(je)})){de=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){de=!1;break}}return M.delete(i),M.delete(l),de}function OF(i,l,f,y,w,M,_){switch(f){case Ze:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case ve:return!(i.byteLength!=l.byteLength||!M(new Il(i),new Il(l)));case se:case he:case ft:return wn(+i,+l);case Be:return i.name==l.name&&i.message==l.message;case Br:case yn:return i==l+"";case De:var N=$h;case qt:var L=y&S;if(N||(N=Pl),i.size!=l.size&&!L)return!1;var H=_.get(i);if(H)return H==l;y|=b,_.set(i,l);var q=pS(N(i),N(l),y,w,M,_);return _.delete(i),q;case Ts:if(Fo)return Fo.call(i)==Fo.call(l)}return!1}function $F(i,l,f,y,w,M){var _=f&S,N=tm(i),L=N.length,H=tm(l),q=H.length;if(L!=q&&!_)return!1;for(var Z=L;Z--;){var de=N[Z];if(!(_?de in l:ze.call(l,de)))return!1}var ye=M.get(i),Te=M.get(l);if(ye&&Te)return ye==l&&Te==i;var $e=!0;M.set(i,l),M.set(l,i);for(var Ce=_;++Z<L;){de=N[Z];var Ne=i[de],je=l[de];if(y)var Qt=_?y(je,Ne,de,l,i,M):y(Ne,je,de,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=de=="constructor")}if($e&&!Ce){var Dt=i.constructor,en=l.constructor;Dt!=en&&"constructor"in i&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&($e=!1)}return M.delete(i),M.delete(l),$e}function pr(i){return cm(wS(i,n,$S),i+"")}function tm(i){return kw(i,gt,im)}function nm(i){return kw(i,Vt,gS)}var rm=Rl?function(i){return Rl.get(i)}:Sm;function Jl(i){for(var l=i.name+"",f=Ai[l],y=ze.call(Ai,l)?f.length:0;y--;){var w=f[y],M=w.func;if(M==null||M==i)return w.name}return l}function _i(i){var l=ze.call(P,"placeholder")?P:i;return l.placeholder}function be(){var i=P.iteratee||bm;return i=i===bm?Rw:i,arguments.length?i(arguments[0],arguments[1]):i}function Ql(i,l){var f=i.__data__;return RF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function sm(i){for(var l=gt(i),f=l.length;f--;){var y=l[f],w=i[y];l[f]=[y,w,vS(w)]}return l}function $s(i,l){var f=BL(i,l);return Lw(f)?f:n}function _F(i){var l=ze.call(i,Es),f=i[Es];try{i[Es]=n;var y=!0}catch{}var w=$l.call(i);return y&&(l?i[Es]=f:delete i[Es]),w}var im=Ih?function(i){return i==null?[]:(i=Ge(i),Ur(Ih(i),function(l){return Sw.call(i,l)}))}:Tm,gS=Ih?function(i){for(var l=[];i;)zr(l,im(i)),i=Dl(i);return l}:Tm,Mt=_t;(Dh&&Mt(new Dh(new ArrayBuffer(1)))!=Ze||jo&&Mt(new jo)!=De||Nh&&Mt(Nh.resolve())!=yl||Pi&&Mt(new Pi)!=qt||Lo&&Mt(new Lo)!=Wr)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case hR:return Ze;case mR:return De;case pR:return yl;case gR:return qt;case yR:return Wr}return l});function IF(i,l,f){for(var y=-1,w=f.length;++y<w;){var M=f[y],_=M.size;switch(M.type){case"drop":i+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,i+_);break;case"takeRight":i=mt(i,l-_);break}}return{start:i,end:l}}function DF(i){var l=i.match(Fj);return l?l[1].split(Vj):[]}function yS(i,l,f){l=Kr(l,i);for(var y=-1,w=l.length,M=!1;++y<w;){var _=Wn(l[y]);if(!(M=i!=null&&f(i,_)))break;i=i[_]}return M||++y!=w?M:(w=i==null?0:i.length,!!w&&oc(w)&&gr(_,w)&&(Me(i)||Is(i)))}function NF(i){var l=i.length,f=new i.constructor(l);return l&&typeof i[0]=="string"&&ze.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function xS(i){return typeof i.constructor=="function"&&!Yo(i)?Mi(Dl(i)):{}}function kF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case he:return new y(+i);case Ze:return xF(i,f);case Pt:case xn:case ur:case ah:case lh:case ch:case uh:case fh:case dh:return eS(i,f);case De:return new y;case ft:case yn:return new y(i);case Br:return vF(i);case qt:return new y;case Ts:return bF(i)}}function jF(i,l){var f=l.length;if(!f)return i;var y=f-1;return l[y]=(f>1?"& ":"")+l[y],l=l.join(f>2?", ":" "),i.replace(Rj,`{
|
|
632
|
+
*/var o5=uo.exports,Sx;function a5(){return Sx||(Sx=1,function(e,t){(function(){var n,r="4.17.21",s=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,x=4,S=1,b=2,T=1,v=2,A=4,C=8,I=16,E=32,N=64,R=128,F=256,G=512,re=30,ee="...",le=800,oe=16,ue=1,ce=2,fe=3,U=1/0,W=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,J=k-1,H=k>>>1,Z=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",G],["partial",E],["partialRight",N],["rearg",F]],B="[object Arguments]",X="[object Array]",ae="[object AsyncFunction]",se="[object Boolean]",he="[object Date]",Ee="[object DOMException]",Be="[object Error]",ie="[object Function]",ge="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",Ss="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Br="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Wr="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",ur="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Pj=/\b__p \+= '';/g,Aj=/\b(__p \+=) '' \+/g,Mj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Oj=RegExp(D2.source),$j=RegExp(N2.source),_j=/<%-([\s\S]+?)%>/g,Ij=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Dj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nj=/^\w*$/,kj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,jj=RegExp(hh.source),mh=/^\s+/,Lj=/\s/,Rj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fj=/\{\n\/\* \[wrapped with (.+)\] \*/,Vj=/,? & /,Bj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wj=/[()=,{}\[\]\/\s]/,Uj=/\\(\\)?/g,zj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,Gj=/^[-+]0x[0-9a-f]+$/i,Yj=/^0b[01]+$/i,Hj=/^\[object .+?Constructor\]$/,qj=/^0o[0-7]+$/i,Kj=/^(?:0|[1-9]\d*)$/,Xj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Zj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Jj="\\u0300-\\u036f",Qj="\\ufe20-\\ufe2f",eL="\\u20d0-\\u20ff",L2=Jj+Qj+eL,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",tL="\\xac\\xb1\\xd7\\xf7",nL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rL="\\u2000-\\u206f",sL=" \\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",V2="A-Z\\xc0-\\xd6\\xd8-\\xde",B2="\\ufe0e\\ufe0f",W2=tL+nL+rL+sL,ph="['’]",iL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",oL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",aL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",lL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=aL+"?",Q2="["+B2+"]?",cL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",uL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+cL,dL="(?:"+[oL,yh,xh].join("|")+")"+ew,hL="(?:"+[H2+Tl+"?",Tl,yh,xh,iL].join("|")+")",mL=RegExp(ph,"g"),pL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+hL+ew,"g"),gL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",lL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,fL,uL,z2,dL].join("|"),"g"),yL=RegExp("["+q2+Sl+L2+B2+"]"),xL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vL=["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"],bL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[ur]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[X]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[he]=Xe[Be]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Br]=Xe[qt]=Xe[yn]=Xe[Wr]=!1;var qe={};qe[B]=qe[X]=qe[ve]=qe[Ze]=qe[se]=qe[he]=qe[Pt]=qe[xn]=qe[ur]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Br]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Be]=qe[ie]=qe[Wr]=!1;var wL={À:"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"},SL={"&":"&","<":"<",">":">",'"':""","'":"'"},TL={"&":"&","<":"<",">":">",""":'"',"'":"'"},CL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},EL=parseFloat,PL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,AL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||AL||Function("return this")(),bh=t&&!t.nodeType&&t,Cs=bh&&!0&&e&&!e.nodeType&&e,nw=Cs&&Cs.exports===bh,wh=nw&&tw.process,an=function(){try{var j=Cs&&Cs.require&&Cs.require("util").types;return j||wh&&wh.binding&&wh.binding("util")}catch{}}(),rw=an&&an.isArrayBuffer,sw=an&&an.isDate,iw=an&&an.isMap,ow=an&&an.isRegExp,aw=an&&an.isSet,lw=an&&an.isTypedArray;function Kt(j,z,V){switch(V.length){case 0:return j.call(z);case 1:return j.call(z,V[0]);case 2:return j.call(z,V[0],V[1]);case 3:return j.call(z,V[0],V[1],V[2])}return j.apply(z,V)}function ML(j,z,V,pe){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];z(pe,ht,V(ht),j)}return pe}function ln(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe&&z(j[V],V,j)!==!1;);return j}function OL(j,z){for(var V=j==null?0:j.length;V--&&z(j[V],V,j)!==!1;);return j}function cw(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(!z(j[V],V,j))return!1;return!0}function Ur(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];z(ht,V,j)&&(Le[Ae++]=ht)}return Le}function Cl(j,z){var V=j==null?0:j.length;return!!V&&wi(j,z,0)>-1}function Sh(j,z,V){for(var pe=-1,Ae=j==null?0:j.length;++pe<Ae;)if(V(z,j[pe]))return!0;return!1}function Je(j,z){for(var V=-1,pe=j==null?0:j.length,Ae=Array(pe);++V<pe;)Ae[V]=z(j[V],V,j);return Ae}function zr(j,z){for(var V=-1,pe=z.length,Ae=j.length;++V<pe;)j[Ae+V]=z[V];return j}function Th(j,z,V,pe){var Ae=-1,Le=j==null?0:j.length;for(pe&&Le&&(V=j[++Ae]);++Ae<Le;)V=z(V,j[Ae],Ae,j);return V}function $L(j,z,V,pe){var Ae=j==null?0:j.length;for(pe&&Ae&&(V=j[--Ae]);Ae--;)V=z(V,j[Ae],Ae,j);return V}function Ch(j,z){for(var V=-1,pe=j==null?0:j.length;++V<pe;)if(z(j[V],V,j))return!0;return!1}var _L=Eh("length");function IL(j){return j.split("")}function DL(j){return j.match(Bj)||[]}function uw(j,z,V){var pe;return V(j,function(Ae,Le,ht){if(z(Ae,Le,ht))return pe=Le,!1}),pe}function El(j,z,V,pe){for(var Ae=j.length,Le=V+(pe?1:-1);pe?Le--:++Le<Ae;)if(z(j[Le],Le,j))return Le;return-1}function wi(j,z,V){return z===z?GL(j,z,V):El(j,fw,V)}function NL(j,z,V,pe){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(pe(j[Ae],z))return Ae;return-1}function fw(j){return j!==j}function dw(j,z){var V=j==null?0:j.length;return V?Ah(j,z)/V:$}function Eh(j){return function(z){return z==null?n:z[j]}}function Ph(j){return function(z){return j==null?n:j[z]}}function hw(j,z,V,pe,Ae){return Ae(j,function(Le,ht,Ge){V=pe?(pe=!1,Le):z(V,Le,ht,Ge)}),V}function kL(j,z){var V=j.length;for(j.sort(z);V--;)j[V]=j[V].value;return j}function Ah(j,z){for(var V,pe=-1,Ae=j.length;++pe<Ae;){var Le=z(j[pe]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,z){for(var V=-1,pe=Array(j);++V<j;)pe[V]=z(V);return pe}function jL(j,z){return Je(z,function(V){return[V,j[V]]})}function mw(j){return j&&j.slice(0,xw(j)+1).replace(mh,"")}function Xt(j){return function(z){return j(z)}}function Oh(j,z){return Je(z,function(V){return j[V]})}function No(j,z){return j.has(z)}function pw(j,z){for(var V=-1,pe=j.length;++V<pe&&wi(z,j[V],0)>-1;);return V}function gw(j,z){for(var V=j.length;V--&&wi(z,j[V],0)>-1;);return V}function LL(j,z){for(var V=j.length,pe=0;V--;)j[V]===z&&++pe;return pe}var RL=Ph(wL),FL=Ph(SL);function VL(j){return"\\"+CL[j]}function BL(j,z){return j==null?n:j[z]}function Si(j){return yL.test(j)}function WL(j){return xL.test(j)}function UL(j){for(var z,V=[];!(z=j.next()).done;)V.push(z.value);return V}function $h(j){var z=-1,V=Array(j.size);return j.forEach(function(pe,Ae){V[++z]=[Ae,pe]}),V}function yw(j,z){return function(V){return j(z(V))}}function Gr(j,z){for(var V=-1,pe=j.length,Ae=0,Le=[];++V<pe;){var ht=j[V];(ht===z||ht===h)&&(j[V]=h,Le[Ae++]=V)}return Le}function Pl(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=pe}),V}function zL(j){var z=-1,V=Array(j.size);return j.forEach(function(pe){V[++z]=[pe,pe]}),V}function GL(j,z,V){for(var pe=V-1,Ae=j.length;++pe<Ae;)if(j[pe]===z)return pe;return-1}function YL(j,z,V){for(var pe=V+1;pe--;)if(j[pe]===z)return pe;return pe}function Ti(j){return Si(j)?qL(j):_L(j)}function vn(j){return Si(j)?KL(j):IL(j)}function xw(j){for(var z=j.length;z--&&Lj.test(j.charAt(z)););return z}var HL=Ph(TL);function qL(j){for(var z=vh.lastIndex=0;vh.test(j);)++z;return z}function KL(j){return j.match(vh)||[]}function XL(j){return j.match(gL)||[]}var ZL=function j(z){z=z==null?vt:Ci.defaults(vt.Object(),z,Ci.pick(vt,vL));var V=z.Array,pe=z.Date,Ae=z.Error,Le=z.Function,ht=z.Math,Ge=z.Object,_h=z.RegExp,JL=z.String,cn=z.TypeError,Al=V.prototype,QL=Le.prototype,Ei=Ge.prototype,Ml=z["__core-js_shared__"],Ol=QL.toString,ze=Ei.hasOwnProperty,eR=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,tR=Ol.call(Ge),nR=vt._,rR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=nw?z.Buffer:n,Yr=z.Symbol,Il=z.Uint8Array,bw=_l?_l.allocUnsafe:n,Dl=yw(Ge.getPrototypeOf,Ge),ww=Ge.create,Sw=Ei.propertyIsEnumerable,Nl=Al.splice,Tw=Yr?Yr.isConcatSpreadable:n,ko=Yr?Yr.iterator:n,Es=Yr?Yr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),sR=z.clearTimeout!==vt.clearTimeout&&z.clearTimeout,iR=pe&&pe.now!==vt.Date.now&&pe.now,oR=z.setTimeout!==vt.setTimeout&&z.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,aR=_l?_l.isBuffer:n,Cw=z.isFinite,lR=Al.join,cR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,uR=pe.now,fR=z.parseInt,Ew=ht.random,dR=Al.reverse,Dh=$s(z,"DataView"),jo=$s(z,"Map"),Nh=$s(z,"Promise"),Pi=$s(z,"Set"),Lo=$s(z,"WeakMap"),Ro=$s(Ge,"create"),Rl=Lo&&new Lo,Ai={},hR=_s(Dh),mR=_s(jo),pR=_s(Nh),gR=_s(Pi),yR=_s(Lo),Fl=Yr?Yr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function P(i){if(ot(i)&&!Me(i)&&!(i instanceof ke)){if(i instanceof un)return i;if(ze.call(i,"__wrapped__"))return AS(i)}return new un(i)}var Mi=function(){function i(){}return function(l){if(!rt(l))return{};if(ww)return ww(l);i.prototype=l;var f=new i;return i.prototype=n,f}}();function Vl(){}function un(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}P.templateSettings={escape:_j,evaluate:Ij,interpolate:k2,variable:"",imports:{_:P}},P.prototype=Vl.prototype,P.prototype.constructor=P,un.prototype=Mi(Vl.prototype),un.prototype.constructor=un;function ke(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function xR(){var i=new ke(this.__wrapped__);return i.__actions__=Rt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Rt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Rt(this.__views__),i}function vR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function bR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=IF(0,w,this.__views__),_=M.start,D=M.end,L=D-_,Y=y?D:_-1,q=this.__iteratees__,Q=q.length,de=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&de<ye;){Y+=l;for(var $e=-1,Ce=i[Y];++$e<Q;){var Ne=q[$e],je=Ne.iteratee,Qt=Ne.type,Dt=je(Ce);if(Qt==ce)Ce=Dt;else if(!Dt){if(Qt==ue)continue e;break e}}Te[de++]=Ce}return Te}ke.prototype=Mi(Vl.prototype),ke.prototype.constructor=ke;function Ps(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function wR(){this.__data__=Ro?Ro(null):{},this.size=0}function SR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function TR(i){var l=this.__data__;if(Ro){var f=l[i];return f===u?n:f}return ze.call(l,i)?l[i]:n}function CR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function ER(i,l){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Ro&&l===n?u:l,this}Ps.prototype.clear=wR,Ps.prototype.delete=SR,Ps.prototype.get=TR,Ps.prototype.has=CR,Ps.prototype.set=ER;function fr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function PR(){this.__data__=[],this.size=0}function AR(i){var l=this.__data__,f=Bl(l,i);if(f<0)return!1;var y=l.length-1;return f==y?l.pop():Nl.call(l,f,1),--this.size,!0}function MR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function OR(i){return Bl(this.__data__,i)>-1}function $R(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}fr.prototype.clear=PR,fr.prototype.delete=AR,fr.prototype.get=MR,fr.prototype.has=OR,fr.prototype.set=$R;function dr(i){var l=-1,f=i==null?0:i.length;for(this.clear();++l<f;){var y=i[l];this.set(y[0],y[1])}}function _R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||fr),string:new Ps}}function IR(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function DR(i){return Ql(this,i).get(i)}function NR(i){return Ql(this,i).has(i)}function kR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}dr.prototype.clear=_R,dr.prototype.delete=IR,dr.prototype.get=DR,dr.prototype.has=NR,dr.prototype.set=kR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new dr;++l<f;)this.add(i[l])}function jR(i){return this.__data__.set(i,u),this}function LR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=jR,As.prototype.has=LR;function bn(i){var l=this.__data__=new fr(i);this.size=l.size}function RR(){this.__data__=new fr,this.size=0}function FR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function VR(i){return this.__data__.get(i)}function BR(i){return this.__data__.has(i)}function WR(i,l){var f=this.__data__;if(f instanceof fr){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new dr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=RR,bn.prototype.delete=FR,bn.prototype.get=VR,bn.prototype.has=BR,bn.prototype.set=WR;function Aw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Zr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,D=_?Mh(i.length,JL):[],L=D.length;for(var Y in i)(l||ze.call(i,Y))&&!(_&&(Y=="length"||w&&(Y=="offset"||Y=="parent")||M&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||gr(Y,L)))&&D.push(Y);return D}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function UR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function zR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&hr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&hr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function GR(i,l,f,y){return Hr(i,function(w,M,_){l(y,w,f(w),_)}),y}function Ow(i,l){return i&&Bn(l,gt(l),i)}function YR(i,l){return i&&Bn(l,Vt(l),i)}function hr(i,l,f){l=="__proto__"&&kl?kl(i,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[l]=f}function jh(i,l){for(var f=-1,y=l.length,w=V(y),M=i==null;++f<y;)w[f]=M?n:gm(i,l[f]);return w}function Ms(i,l,f){return i===i&&(f!==n&&(i=i<=f?i:f),l!==n&&(i=i>=l?i:l)),i}function fn(i,l,f,y,w,M){var _,D=l&m,L=l&p,Y=l&x;if(f&&(_=w?f(i,y,w,M):f(i)),_!==n)return _;if(!rt(i))return i;var q=Me(i);if(q){if(_=NF(i),!D)return Rt(i,_)}else{var Q=Mt(i),de=Q==ie||Q==ge;if(Zr(i))return Qw(i,D);if(Q==dt||Q==B||de&&!w){if(_=L||de?{}:xS(i),!D)return L?TF(i,YR(_,i)):SF(i,Ow(_,i))}else{if(!qe[Q])return w?i:{};_=kF(i,Q,D)}}M||(M=new bn);var ye=M.get(i);if(ye)return ye;M.set(i,_),HS(i)?i.forEach(function(Ce){_.add(fn(Ce,l,f,Ce,i,M))}):GS(i)&&i.forEach(function(Ce,Ne){_.set(Ne,fn(Ce,l,f,Ne,i,M))});var Te=Y?L?nm:tm:L?Vt:gt,$e=q?n:Te(i);return ln($e||i,function(Ce,Ne){$e&&(Ne=Ce,Ce=i[Ne]),Vo(_,Ne,fn(Ce,l,f,Ne,i,M))}),_}function HR(i){var l=gt(i);return function(f){return $w(f,i,l)}}function $w(i,l,f){var y=f.length;if(i==null)return!y;for(i=Ge(i);y--;){var w=f[y],M=l[w],_=i[w];if(_===n&&!(w in i)||!M(_))return!1}return!0}function _w(i,l,f){if(typeof i!="function")throw new cn(a);return Ho(function(){i.apply(n,f)},l)}function Bo(i,l,f,y){var w=-1,M=Cl,_=!0,D=i.length,L=[],Y=l.length;if(!D)return L;f&&(l=Je(l,Xt(f))),y?(M=Sh,_=!1):l.length>=s&&(M=No,_=!1,l=new As(l));e:for(;++w<D;){var q=i[w],Q=f==null?q:f(q);if(q=y||q!==0?q:0,_&&Q===Q){for(var de=Y;de--;)if(l[de]===Q)continue e;L.push(q)}else M(l,Q,y)||L.push(q)}return L}var Hr=sS(Vn),Iw=sS(Rh,!0);function qR(i,l){var f=!0;return Hr(i,function(y,w,M){return f=!!l(y,w,M),f}),f}function Wl(i,l,f){for(var y=-1,w=i.length;++y<w;){var M=i[y],_=l(M);if(_!=null&&(D===n?_===_&&!Jt(_):f(_,D)))var D=_,L=M}return L}function KR(i,l,f,y){var w=i.length;for(f=Oe(f),f<0&&(f=-f>w?0:w+f),y=y===n||y>w?w:Oe(y),y<0&&(y+=w),y=f>y?0:KS(y);f<y;)i[f++]=l;return i}function Dw(i,l){var f=[];return Hr(i,function(y,w,M){l(y,w,M)&&f.push(y)}),f}function bt(i,l,f,y,w){var M=-1,_=i.length;for(f||(f=LF),w||(w=[]);++M<_;){var D=i[M];l>0&&f(D)?l>1?bt(D,l-1,f,y,w):zr(w,D):y||(w[w.length]=D)}return w}var Lh=iS(),Nw=iS(!0);function Vn(i,l){return i&&Lh(i,l,gt)}function Rh(i,l){return i&&Nw(i,l,gt)}function Ul(i,l){return Ur(l,function(f){return yr(i[f])})}function Os(i,l){l=Kr(l,i);for(var f=0,y=l.length;i!=null&&f<y;)i=i[Wn(l[f++])];return f&&f==y?i:n}function kw(i,l,f){var y=l(i);return Me(i)?y:zr(y,f(i))}function _t(i){return i==null?i===n?vl:Ss:Es&&Es in Ge(i)?_F(i):zF(i)}function Fh(i,l){return i>l}function XR(i,l){return i!=null&&ze.call(i,l)}function ZR(i,l){return i!=null&&l in Ge(i)}function JR(i,l,f){return i>=At(l,f)&&i<mt(l,f)}function Vh(i,l,f){for(var y=f?Sh:Cl,w=i[0].length,M=i.length,_=M,D=V(M),L=1/0,Y=[];_--;){var q=i[_];_&&l&&(q=Je(q,Xt(l))),L=At(q.length,L),D[_]=!f&&(l||w>=120&&q.length>=120)?new As(_&&q):n}q=i[0];var Q=-1,de=D[0];e:for(;++Q<w&&Y.length<L;){var ye=q[Q],Te=l?l(ye):ye;if(ye=f||ye!==0?ye:0,!(de?No(de,Te):y(Y,Te,f))){for(_=M;--_;){var $e=D[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}de&&de.push(Te),Y.push(ye)}}return Y}function QR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=Kr(l,i),i=SS(i,l);var y=i==null?i:i[Wn(hn(l))];return y==null?n:Kt(y,i,f)}function jw(i){return ot(i)&&_t(i)==B}function eF(i){return ot(i)&&_t(i)==ve}function tF(i){return ot(i)&&_t(i)==he}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:nF(i,l,f,y,Uo,w)}function nF(i,l,f,y,w,M){var _=Me(i),D=Me(l),L=_?X:Mt(i),Y=D?X:Mt(l);L=L==B?dt:L,Y=Y==B?dt:Y;var q=L==dt,Q=Y==dt,de=L==Y;if(de&&Zr(i)){if(!Zr(l))return!1;_=!0,q=!1}if(de&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):OF(i,l,L,f,y,w,M);if(!(f&S)){var ye=q&&ze.call(i,"__wrapped__"),Te=Q&&ze.call(l,"__wrapped__");if(ye||Te){var $e=ye?i.value():i,Ce=Te?l.value():l;return M||(M=new bn),w($e,Ce,f,y,M)}}return de?(M||(M=new bn),$F(i,l,f,y,w,M)):!1}function rF(i){return ot(i)&&Mt(i)==De}function Bh(i,l,f,y){var w=f.length,M=w,_=!y;if(i==null)return!M;for(i=Ge(i);w--;){var D=f[w];if(_&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++w<M;){D=f[w];var L=D[0],Y=i[L],q=D[1];if(_&&D[2]){if(Y===n&&!(L in i))return!1}else{var Q=new bn;if(y)var de=y(Y,q,L,i,l,Q);if(!(de===n?Uo(q,Y,S|b,y,Q):de))return!1}}return!0}function Lw(i){if(!rt(i)||FF(i))return!1;var l=yr(i)?rR:Hj;return l.test(_s(i))}function sF(i){return ot(i)&&_t(i)==Br}function iF(i){return ot(i)&&Mt(i)==qt}function oF(i){return ot(i)&&oc(i.length)&&!!Xe[_t(i)]}function Rw(i){return typeof i=="function"?i:i==null?Bt:typeof i=="object"?Me(i)?Bw(i[0],i[1]):Vw(i):oT(i)}function Wh(i){if(!Yo(i))return cR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function aF(i){if(!rt(i))return UF(i);var l=Yo(i),f=[];for(var y in i)y=="constructor"&&(l||!ze.call(i,y))||f.push(y);return f}function Uh(i,l){return i<l}function Fw(i,l){var f=-1,y=Ft(i)?V(i.length):[];return Hr(i,function(w,M,_){y[++f]=l(w,M,_)}),y}function Vw(i){var l=sm(i);return l.length==1&&l[0][2]?bS(l[0][0],l[0][1]):function(f){return f===i||Bh(f,i,l)}}function Bw(i,l){return om(i)&&vS(l)?bS(Wn(i),l):function(f){var y=gm(f,i);return y===n&&y===l?ym(f,i):Uo(l,y,S|b)}}function zl(i,l,f,y,w){i!==l&&Lh(l,function(M,_){if(w||(w=new bn),rt(M))lF(i,l,_,f,zl,y,w);else{var D=y?y(lm(i,_),M,_+"",i,l,w):n;D===n&&(D=M),kh(i,_,D)}},Vt)}function lF(i,l,f,y,w,M,_){var D=lm(i,f),L=lm(l,f),Y=_.get(L);if(Y){kh(i,f,Y);return}var q=M?M(D,L,f+"",i,l,_):n,Q=q===n;if(Q){var de=Me(L),ye=!de&&Zr(L),Te=!de&&!ye&&Ii(L);q=L,de||ye||Te?Me(D)?q=D:ct(D)?q=Rt(D):ye?(Q=!1,q=Qw(L,!0)):Te?(Q=!1,q=eS(L,!0)):q=[]:qo(L)||Is(L)?(q=D,Is(D)?q=XS(D):(!rt(D)||yr(D))&&(q=xS(L))):Q=!1}Q&&(_.set(L,q),w(q,L,y,M,_),_.delete(L)),kh(i,f,q)}function Ww(i,l){var f=i.length;if(f)return l+=l<0?f:0,gr(l,f)?i[l]:n}function Uw(i,l,f){l.length?l=Je(l,function(M){return Me(M)?function(_){return Os(_,M.length===1?M[0]:M)}:M}):l=[Bt];var y=-1;l=Je(l,Xt(be()));var w=Fw(i,function(M,_,D){var L=Je(l,function(Y){return Y(M)});return{criteria:L,index:++y,value:M}});return kL(w,function(M,_){return wF(M,_,f)})}function cF(i,l){return zw(i,l,function(f,y){return ym(i,y)})}function zw(i,l,f){for(var y=-1,w=l.length,M={};++y<w;){var _=l[y],D=Os(i,_);f(D,_)&&zo(M,Kr(_,i),D)}return M}function uF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?NL:wi,M=-1,_=l.length,D=i;for(i===l&&(l=Rt(l)),f&&(D=Je(i,Xt(f)));++M<_;)for(var L=0,Y=l[M],q=f?f(Y):Y;(L=w(D,q,L,y))>-1;)D!==i&&Nl.call(D,L,1),Nl.call(i,L,1);return i}function Gw(i,l){for(var f=i?l.length:0,y=f-1;f--;){var w=l[f];if(f==y||w!==M){var M=w;gr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function fF(i,l,f,y){for(var w=-1,M=mt(jl((l-i)/(f||1)),0),_=V(M);M--;)_[y?M:++w]=i,i+=f;return _}function Yh(i,l){var f="";if(!i||l<1||l>W)return f;do l%2&&(f+=i),l=Ll(l/2),l&&(i+=i);while(l);return f}function _e(i,l){return cm(wS(i,l,Bt),i+"")}function dF(i){return Mw(Di(i))}function hF(i,l){var f=Di(i);return ec(f,Ms(l,0,f.length))}function zo(i,l,f,y){if(!rt(i))return i;l=Kr(l,i);for(var w=-1,M=l.length,_=M-1,D=i;D!=null&&++w<M;){var L=Wn(l[w]),Y=f;if(L==="__proto__"||L==="constructor"||L==="prototype")return i;if(w!=_){var q=D[L];Y=y?y(q,L,D):n,Y===n&&(Y=rt(q)?q:gr(l[w+1])?[]:{})}Vo(D,L,Y),D=D[L]}return i}var Yw=Rl?function(i,l){return Rl.set(i,l),i}:Bt,mF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function pF(i){return ec(Di(i))}function dn(i,l,f){var y=-1,w=i.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=V(w);++y<w;)M[y]=i[y+l];return M}function gF(i,l){var f;return Hr(i,function(y,w,M){return f=l(y,w,M),!f}),!!f}function Gl(i,l,f){var y=0,w=i==null?y:i.length;if(typeof l=="number"&&l===l&&w<=H){for(;y<w;){var M=y+w>>>1,_=i[M];_!==null&&!Jt(_)&&(f?_<=l:_<l)?y=M+1:w=M}return w}return Hh(i,l,Bt,f)}function Hh(i,l,f,y){var w=0,M=i==null?0:i.length;if(M===0)return 0;l=f(l);for(var _=l!==l,D=l===null,L=Jt(l),Y=l===n;w<M;){var q=Ll((w+M)/2),Q=f(i[q]),de=Q!==n,ye=Q===null,Te=Q===Q,$e=Jt(Q);if(_)var Ce=y||Te;else Y?Ce=Te&&(y||de):D?Ce=Te&&de&&(y||!ye):L?Ce=Te&&de&&!ye&&(y||!$e):ye||$e?Ce=!1:Ce=y?Q<=l:Q<l;Ce?w=q+1:M=q}return At(M,J)}function Hw(i,l){for(var f=-1,y=i.length,w=0,M=[];++f<y;){var _=i[f],D=l?l(_):_;if(!f||!wn(D,L)){var L=D;M[w++]=_===0?0:_}}return M}function qw(i){return typeof i=="number"?i:Jt(i)?$:+i}function Zt(i){if(typeof i=="string")return i;if(Me(i))return Je(i,Zt)+"";if(Jt(i))return Pw?Pw.call(i):"";var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function qr(i,l,f){var y=-1,w=Cl,M=i.length,_=!0,D=[],L=D;if(f)_=!1,w=Sh;else if(M>=s){var Y=l?null:AF(i);if(Y)return Pl(Y);_=!1,w=No,L=new As}else L=l?[]:D;e:for(;++y<M;){var q=i[y],Q=l?l(q):q;if(q=f||q!==0?q:0,_&&Q===Q){for(var de=L.length;de--;)if(L[de]===Q)continue e;l&&L.push(Q),D.push(q)}else w(L,Q,f)||(L!==D&&L.push(Q),D.push(q))}return D}function qh(i,l){return l=Kr(l,i),i=SS(i,l),i==null||delete i[Wn(hn(l))]}function Kw(i,l,f,y){return zo(i,l,f(Os(i,l)),y)}function Yl(i,l,f,y){for(var w=i.length,M=y?w:-1;(y?M--:++M<w)&&l(i[M],M,i););return f?dn(i,y?0:M,y?M+1:w):dn(i,y?M+1:0,y?w:M)}function Xw(i,l){var f=i;return f instanceof ke&&(f=f.value()),Th(l,function(y,w){return w.func.apply(w.thisArg,zr([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?qr(i[0]):[];for(var w=-1,M=V(y);++w<y;)for(var _=i[w],D=-1;++D<y;)D!=w&&(M[w]=Bo(M[w]||_,i[D],l,f));return qr(bt(M,1),l,f)}function Zw(i,l,f){for(var y=-1,w=i.length,M=l.length,_={};++y<w;){var D=y<M?l[y]:n;f(_,i[y],D)}return _}function Xh(i){return ct(i)?i:[]}function Zh(i){return typeof i=="function"?i:Bt}function Kr(i,l){return Me(i)?i:om(i,l)?[i]:PS(We(i))}var yF=_e;function Xr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Jw=sR||function(i){return vt.clearTimeout(i)};function Qw(i,l){if(l)return i.slice();var f=i.length,y=bw?bw(f):new i.constructor(f);return i.copy(y),y}function Jh(i){var l=new i.constructor(i.byteLength);return new Il(l).set(new Il(i)),l}function xF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function vF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function bF(i){return Fo?Ge(Fo.call(i)):{}}function eS(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function tS(i,l){if(i!==l){var f=i!==n,y=i===null,w=i===i,M=Jt(i),_=l!==n,D=l===null,L=l===l,Y=Jt(l);if(!D&&!Y&&!M&&i>l||M&&_&&L&&!D&&!Y||y&&_&&L||!f&&L||!w)return 1;if(!y&&!M&&!Y&&i<l||Y&&f&&w&&!y&&!M||D&&f&&w||!_&&w||!L)return-1}return 0}function wF(i,l,f){for(var y=-1,w=i.criteria,M=l.criteria,_=w.length,D=f.length;++y<_;){var L=tS(w[y],M[y]);if(L){if(y>=D)return L;var Y=f[y];return L*(Y=="desc"?-1:1)}}return i.index-l.index}function nS(i,l,f,y){for(var w=-1,M=i.length,_=f.length,D=-1,L=l.length,Y=mt(M-_,0),q=V(L+Y),Q=!y;++D<L;)q[D]=l[D];for(;++w<_;)(Q||w<M)&&(q[f[w]]=i[w]);for(;Y--;)q[D++]=i[w++];return q}function rS(i,l,f,y){for(var w=-1,M=i.length,_=-1,D=f.length,L=-1,Y=l.length,q=mt(M-D,0),Q=V(q+Y),de=!y;++w<q;)Q[w]=i[w];for(var ye=w;++L<Y;)Q[ye+L]=l[L];for(;++_<D;)(de||w<M)&&(Q[ye+f[_]]=i[w++]);return Q}function Rt(i,l){var f=-1,y=i.length;for(l||(l=V(y));++f<y;)l[f]=i[f];return l}function Bn(i,l,f,y){var w=!f;f||(f={});for(var M=-1,_=l.length;++M<_;){var D=l[M],L=y?y(f[D],i[D],D,f,i):n;L===n&&(L=i[D]),w?hr(f,D,L):Vo(f,D,L)}return f}function SF(i,l){return Bn(i,im(i),l)}function TF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?ML:GR,M=l?l():{};return w(f,i,be(y,2),M)}}function Oi(i){return _e(function(l,f){var y=-1,w=f.length,M=w>1?f[w-1]:n,_=w>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(w--,M):n,_&&It(f[0],f[1],_)&&(M=w<3?n:M,w=1),l=Ge(l);++y<w;){var D=f[y];D&&i(l,D,y,M)}return l})}function sS(i,l){return function(f,y){if(f==null)return f;if(!Ft(f))return i(f,y);for(var w=f.length,M=l?w:-1,_=Ge(f);(l?M--:++M<w)&&y(_[M],M,_)!==!1;);return f}}function iS(i){return function(l,f,y){for(var w=-1,M=Ge(l),_=y(l),D=_.length;D--;){var L=_[i?D:++w];if(f(M[L],L,M)===!1)break}return l}}function CF(i,l,f){var y=l&T,w=Go(i);function M(){var _=this&&this!==vt&&this instanceof M?w:i;return _.apply(y?f:this,arguments)}return M}function oS(i){return function(l){l=We(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Xr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(sT(rT(l).replace(mL,"")),i,"")}}function Go(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=Mi(i.prototype),y=i.apply(f,l);return rt(y)?y:f}}function EF(i,l,f){var y=Go(i);function w(){for(var M=arguments.length,_=V(M),D=M,L=_i(w);D--;)_[D]=arguments[D];var Y=M<3&&_[0]!==L&&_[M-1]!==L?[]:Gr(_,L);if(M-=Y.length,M<f)return fS(i,l,ql,w.placeholder,n,_,Y,n,n,f-M);var q=this&&this!==vt&&this instanceof w?y:i;return Kt(q,this,_)}return w}function aS(i){return function(l,f,y){var w=Ge(l);if(!Ft(l)){var M=be(f,3);l=gt(l),f=function(D){return M(w[D],D,w)}}var _=i(l,f,y);return _>-1?w[M?l[_]:_]:n}}function lS(i){return pr(function(l){var f=l.length,y=f,w=un.prototype.thru;for(i&&l.reverse();y--;){var M=l[y];if(typeof M!="function")throw new cn(a);if(w&&!_&&Jl(M)=="wrapper")var _=new un([],!0)}for(y=_?y:f;++y<f;){M=l[y];var D=Jl(M),L=D=="wrapper"?rm(M):n;L&&am(L[0])&&L[1]==(R|C|E|F)&&!L[4].length&&L[9]==1?_=_[Jl(L[0])].apply(_,L[3]):_=M.length==1&&am(M)?_[D]():_.thru(M)}return function(){var Y=arguments,q=Y[0];if(_&&Y.length==1&&Me(q))return _.plant(q).value();for(var Q=0,de=f?l[Q].apply(this,Y):q;++Q<f;)de=l[Q].call(this,de);return de}})}function ql(i,l,f,y,w,M,_,D,L,Y){var q=l&R,Q=l&T,de=l&v,ye=l&(C|I),Te=l&G,$e=de?n:Go(i);function Ce(){for(var Ne=arguments.length,je=V(Ne),Qt=Ne;Qt--;)je[Qt]=arguments[Qt];if(ye)var Dt=_i(Ce),en=LL(je,Dt);if(y&&(je=nS(je,y,w,ye)),M&&(je=rS(je,M,_,ye)),Ne-=en,ye&&Ne<Y){var ut=Gr(je,Dt);return fS(i,l,ql,Ce.placeholder,f,je,ut,D,L,Y-Ne)}var Sn=Q?f:this,vr=de?Sn[i]:i;return Ne=je.length,D?je=GF(je,D):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(vr=$e||Go(vr)),vr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return QR(f,i,l(y),{})}}function Kl(i,l){return function(f,y){var w;if(f===n&&y===n)return l;if(f!==n&&(w=f),y!==n){if(w===n)return y;typeof f=="string"||typeof y=="string"?(f=Zt(f),y=Zt(y)):(f=qw(f),y=qw(y)),w=i(f,y)}return w}}function Qh(i){return pr(function(l){return l=Je(l,Xt(be())),_e(function(f){var y=this;return i(l,function(w){return Kt(w,y,f)})})})}function Xl(i,l){l=l===n?" ":Zt(l);var f=l.length;if(f<2)return f?Yh(l,i):l;var y=Yh(l,jl(i/Ti(l)));return Si(l)?Xr(vn(y),0,i).join(""):y.slice(0,i)}function PF(i,l,f,y){var w=l&T,M=Go(i);function _(){for(var D=-1,L=arguments.length,Y=-1,q=y.length,Q=V(q+L),de=this&&this!==vt&&this instanceof _?M:i;++Y<q;)Q[Y]=y[Y];for(;L--;)Q[Y++]=arguments[++D];return Kt(de,w?f:this,Q)}return _}function uS(i){return function(l,f,y){return y&&typeof y!="number"&&It(l,f,y)&&(f=y=n),l=xr(l),f===n?(f=l,l=0):f=xr(f),y=y===n?l<f?1:-1:xr(y),fF(l,f,y,i)}}function Zl(i){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=mn(l),f=mn(f)),i(l,f)}}function fS(i,l,f,y,w,M,_,D,L,Y){var q=l&C,Q=q?_:n,de=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?E:N,l&=~(q?N:E),l&A||(l&=-4);var $e=[i,l,w,ye,Q,Te,de,D,L,Y],Ce=f.apply(n,$e);return am(i)&&TS(Ce,$e),Ce.placeholder=y,CS(Ce,i,l)}function em(i){var l=ht[i];return function(f,y){if(f=mn(f),y=y==null?0:At(Oe(y),292),y&&Cw(f)){var w=(We(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(We(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var AF=Pi&&1/Pl(new Pi([,-0]))[1]==U?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?zL(l):jL(l,i(l))}}function mr(i,l,f,y,w,M,_,D){var L=l&v;if(!L&&typeof i!="function")throw new cn(a);var Y=y?y.length:0;if(Y||(l&=-97,y=w=n),_=_===n?_:mt(Oe(_),0),D=D===n?D:Oe(D),Y-=w?w.length:0,l&N){var q=y,Q=w;y=w=n}var de=L?n:rm(i),ye=[i,l,f,y,w,q,Q,M,_,D];if(de&&WF(ye,de),i=ye[0],l=ye[1],f=ye[2],y=ye[3],w=ye[4],D=ye[9]=ye[9]===n?L?0:i.length:mt(ye[9]-Y,0),!D&&l&(C|I)&&(l&=-25),!l||l==T)var Te=CF(i,l,f);else l==C||l==I?Te=EF(i,l,D):(l==E||l==(T|E))&&!w.length?Te=PF(i,l,f,y):Te=ql.apply(n,ye);var $e=de?Yw:TS;return CS($e(Te,ye),i,l)}function hS(i,l,f,y){return i===n||wn(i,Ei[f])&&!ze.call(y,f)?l:i}function mS(i,l,f,y,w,M){return rt(i)&&rt(l)&&(M.set(l,i),zl(i,l,n,mS,M),M.delete(l)),i}function MF(i){return qo(i)?n:i}function pS(i,l,f,y,w,M){var _=f&S,D=i.length,L=l.length;if(D!=L&&!(_&&L>D))return!1;var Y=M.get(i),q=M.get(l);if(Y&&q)return Y==l&&q==i;var Q=-1,de=!0,ye=f&b?new As:n;for(M.set(i,l),M.set(l,i);++Q<D;){var Te=i[Q],$e=l[Q];if(y)var Ce=_?y($e,Te,Q,l,i,M):y(Te,$e,Q,i,l,M);if(Ce!==n){if(Ce)continue;de=!1;break}if(ye){if(!Ch(l,function(Ne,je){if(!No(ye,je)&&(Te===Ne||w(Te,Ne,f,y,M)))return ye.push(je)})){de=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){de=!1;break}}return M.delete(i),M.delete(l),de}function OF(i,l,f,y,w,M,_){switch(f){case Ze:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case ve:return!(i.byteLength!=l.byteLength||!M(new Il(i),new Il(l)));case se:case he:case ft:return wn(+i,+l);case Be:return i.name==l.name&&i.message==l.message;case Br:case yn:return i==l+"";case De:var D=$h;case qt:var L=y&S;if(D||(D=Pl),i.size!=l.size&&!L)return!1;var Y=_.get(i);if(Y)return Y==l;y|=b,_.set(i,l);var q=pS(D(i),D(l),y,w,M,_);return _.delete(i),q;case Ts:if(Fo)return Fo.call(i)==Fo.call(l)}return!1}function $F(i,l,f,y,w,M){var _=f&S,D=tm(i),L=D.length,Y=tm(l),q=Y.length;if(L!=q&&!_)return!1;for(var Q=L;Q--;){var de=D[Q];if(!(_?de in l:ze.call(l,de)))return!1}var ye=M.get(i),Te=M.get(l);if(ye&&Te)return ye==l&&Te==i;var $e=!0;M.set(i,l),M.set(l,i);for(var Ce=_;++Q<L;){de=D[Q];var Ne=i[de],je=l[de];if(y)var Qt=_?y(je,Ne,de,l,i,M):y(Ne,je,de,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=de=="constructor")}if($e&&!Ce){var Dt=i.constructor,en=l.constructor;Dt!=en&&"constructor"in i&&"constructor"in l&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof en=="function"&&en instanceof en)&&($e=!1)}return M.delete(i),M.delete(l),$e}function pr(i){return cm(wS(i,n,$S),i+"")}function tm(i){return kw(i,gt,im)}function nm(i){return kw(i,Vt,gS)}var rm=Rl?function(i){return Rl.get(i)}:Sm;function Jl(i){for(var l=i.name+"",f=Ai[l],y=ze.call(Ai,l)?f.length:0;y--;){var w=f[y],M=w.func;if(M==null||M==i)return w.name}return l}function _i(i){var l=ze.call(P,"placeholder")?P:i;return l.placeholder}function be(){var i=P.iteratee||bm;return i=i===bm?Rw:i,arguments.length?i(arguments[0],arguments[1]):i}function Ql(i,l){var f=i.__data__;return RF(l)?f[typeof l=="string"?"string":"hash"]:f.map}function sm(i){for(var l=gt(i),f=l.length;f--;){var y=l[f],w=i[y];l[f]=[y,w,vS(w)]}return l}function $s(i,l){var f=BL(i,l);return Lw(f)?f:n}function _F(i){var l=ze.call(i,Es),f=i[Es];try{i[Es]=n;var y=!0}catch{}var w=$l.call(i);return y&&(l?i[Es]=f:delete i[Es]),w}var im=Ih?function(i){return i==null?[]:(i=Ge(i),Ur(Ih(i),function(l){return Sw.call(i,l)}))}:Tm,gS=Ih?function(i){for(var l=[];i;)zr(l,im(i)),i=Dl(i);return l}:Tm,Mt=_t;(Dh&&Mt(new Dh(new ArrayBuffer(1)))!=Ze||jo&&Mt(new jo)!=De||Nh&&Mt(Nh.resolve())!=yl||Pi&&Mt(new Pi)!=qt||Lo&&Mt(new Lo)!=Wr)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case hR:return Ze;case mR:return De;case pR:return yl;case gR:return qt;case yR:return Wr}return l});function IF(i,l,f){for(var y=-1,w=f.length;++y<w;){var M=f[y],_=M.size;switch(M.type){case"drop":i+=_;break;case"dropRight":l-=_;break;case"take":l=At(l,i+_);break;case"takeRight":i=mt(i,l-_);break}}return{start:i,end:l}}function DF(i){var l=i.match(Fj);return l?l[1].split(Vj):[]}function yS(i,l,f){l=Kr(l,i);for(var y=-1,w=l.length,M=!1;++y<w;){var _=Wn(l[y]);if(!(M=i!=null&&f(i,_)))break;i=i[_]}return M||++y!=w?M:(w=i==null?0:i.length,!!w&&oc(w)&&gr(_,w)&&(Me(i)||Is(i)))}function NF(i){var l=i.length,f=new i.constructor(l);return l&&typeof i[0]=="string"&&ze.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function xS(i){return typeof i.constructor=="function"&&!Yo(i)?Mi(Dl(i)):{}}function kF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case he:return new y(+i);case Ze:return xF(i,f);case Pt:case xn:case ur:case ah:case lh:case ch:case uh:case fh:case dh:return eS(i,f);case De:return new y;case ft:case yn:return new y(i);case Br:return vF(i);case qt:return new y;case Ts:return bF(i)}}function jF(i,l){var f=l.length;if(!f)return i;var y=f-1;return l[y]=(f>1?"& ":"")+l[y],l=l.join(f>2?", ":" "),i.replace(Rj,`{
|
|
633
633
|
/* [wrapped with `+l+`] */
|
|
634
|
-
`)}function LF(i){return Me(i)||Is(i)||!!(Tw&&i&&i[Tw])}function gr(i,l){var f=typeof i;return l=l??U,!!l&&(f=="number"||f!="symbol"&&Kj.test(i))&&i>-1&&i%1==0&&i<l}function It(i,l,f){if(!rt(f))return!1;var y=typeof l;return(y=="number"?Ft(f)&&gr(l,f.length):y=="string"&&l in f)?wn(f[l],i):!1}function om(i,l){if(Me(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Jt(i)?!0:Nj.test(i)||!Dj.test(i)||l!=null&&i in Ge(l)}function RF(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function am(i){var l=Jl(i),f=P[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(i===f)return!0;var y=rm(f);return!!y&&i===y[0]}function FF(i){return!!vw&&vw in i}var VF=Ml?yr:Cm;function Yo(i){var l=i&&i.constructor,f=typeof l=="function"&&l.prototype||Ei;return i===f}function vS(i){return i===i&&!rt(i)}function bS(i,l){return function(f){return f==null?!1:f[i]===l&&(l!==n||i in Ge(f))}}function BF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function WF(i,l){var f=i[1],y=l[1],w=f|y,M=w<(T|v|F),_=y==F&&f==C||y==F&&f==R&&i[7].length<=l[8]||y==(F|R)&&l[7].length<=l[8]&&f==C;if(!(M||_))return i;y&T&&(i[2]=l[2],w|=f&T?0:A);var N=l[3];if(N){var L=i[3];i[3]=L?nS(L,N,l[4]):N,i[4]=L?Gr(i[3],h):l[4]}return N=l[5],N&&(L=i[5],i[5]=L?rS(L,N,l[6]):N,i[6]=L?Gr(i[5],h):l[6]),N=l[7],N&&(i[7]=N),y&F&&(i[8]=i[8]==null?l[8]:At(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=w,i}function UF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function zF(i){return $l.call(i)}function wS(i,l,f){return l=mt(l===n?i.length-1:l,0),function(){for(var y=arguments,w=-1,M=mt(y.length-l,0),_=V(M);++w<M;)_[w]=y[l+w];w=-1;for(var N=V(l+1);++w<l;)N[w]=y[w];return N[l]=f(_),Kt(i,this,N)}}function SS(i,l){return l.length<2?i:Os(i,dn(l,0,-1))}function GF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=gr(M,f)?w[M]:n}return i}function lm(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var TS=ES(Yw),Ho=oR||function(i,l){return vt.setTimeout(i,l)},cm=ES(mF);function CS(i,l,f){var y=l+"";return cm(i,jF(y,YF(DF(y),f)))}function ES(i){var l=0,f=0;return function(){var y=uR(),w=oe-(y-f);if(f=y,w>0){if(++l>=fe)return arguments[0]}else l=0;return i.apply(n,arguments)}}function ec(i,l){var f=-1,y=i.length,w=y-1;for(l=l===n?y:l;++f<l;){var M=Gh(f,w),_=i[M];i[M]=i[f],i[f]=_}return i.length=l,i}var PS=BF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(kj,function(f,y,w,M){l.push(w?M.replace(Uj,"$1"):y||f)}),l});function Wn(i){if(typeof i=="string"||Jt(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function _s(i){if(i!=null){try{return Ol.call(i)}catch{}try{return i+""}catch{}}return""}function YF(i,l){return ln(re,function(f){var y="_."+f[0];l&f[1]&&!Cl(i,y)&&i.push(y)}),i.sort()}function AS(i){if(i instanceof ke)return i.clone();var l=new un(i.__wrapped__,i.__chain__);return l.__actions__=Rt(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function HF(i,l,f){(f?It(i,l,f):l===n)?l=1:l=mt(Oe(l),0);var y=i==null?0:i.length;if(!y||l<1)return[];for(var w=0,M=0,_=V(jl(y/l));w<y;)_[M++]=dn(i,w,w+=l);return _}function qF(i){for(var l=-1,f=i==null?0:i.length,y=0,w=[];++l<f;){var M=i[l];M&&(w[y++]=M)}return w}function KF(){var i=arguments.length;if(!i)return[];for(var l=V(i-1),f=arguments[0],y=i;y--;)l[y-1]=arguments[y];return zr(Me(f)?Rt(f):[f],bt(l,1))}var XF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),ZF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),be(f,2)):[]}),JF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),n,f):[]});function QF(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),dn(i,l<0?0:l,y)):[]}function e8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,0,l<0?0:l)):[]}function t8(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function n8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function r8(i,l,f,y){var w=i==null?0:i.length;return w?(f&&typeof f!="number"&&It(i,l,f)&&(f=0,y=w),KR(i,l,f,y)):[]}function MS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),El(i,be(l,3),w)}function OS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y-1;return f!==n&&(w=Oe(f),w=f<0?mt(y+w,0):At(w,y-1)),El(i,be(l,3),w,!0)}function $S(i){var l=i==null?0:i.length;return l?bt(i,1):[]}function s8(i){var l=i==null?0:i.length;return l?bt(i,z):[]}function i8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function o8(i){for(var l=-1,f=i==null?0:i.length,y={};++l<f;){var w=i[l];y[w[0]]=w[1]}return y}function _S(i){return i&&i.length?i[0]:n}function a8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),wi(i,l,w)}function l8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var c8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),u8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l===hn(f)?l=n:f.pop(),f.length&&f[0]===i[0]?Vh(f,be(l,2)):[]}),f8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===i[0]?Vh(f,n,l):[]});function d8(i,l){return i==null?"":lR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function h8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y;return f!==n&&(w=Oe(f),w=w<0?mt(y+w,0):At(w,y-1)),l===l?YL(i,l,w):El(i,fw,w,!0)}function m8(i,l){return i&&i.length?Ww(i,Oe(l)):n}var p8=_e(IS);function IS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function g8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function y8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var x8=pr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Gw(i,Je(l,function(w){return gr(w,f)?+w:w}).sort(tS)),y});function v8(i,l){var f=[];if(!(i&&i.length))return f;var y=-1,w=[],M=i.length;for(l=be(l,3);++y<M;){var _=i[y];l(_,y,i)&&(f.push(_),w.push(y))}return Gw(i,w),f}function um(i){return i==null?i:dR.call(i)}function b8(i,l,f){var y=i==null?0:i.length;return y?(f&&typeof f!="number"&&It(i,l,f)?(l=0,f=y):(l=l==null?0:Oe(l),f=f===n?y:Oe(f)),dn(i,l,f)):[]}function w8(i,l){return Gl(i,l)}function S8(i,l,f){return Hh(i,l,be(f,2))}function T8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l);if(y<f&&wn(i[y],l))return y}return-1}function C8(i,l){return Gl(i,l,!0)}function E8(i,l,f){return Hh(i,l,be(f,2),!0)}function P8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l,!0)-1;if(wn(i[y],l))return y}return-1}function A8(i){return i&&i.length?Hw(i):[]}function M8(i,l){return i&&i.length?Hw(i,be(l,2)):[]}function O8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function $8(i,l,f){return i&&i.length?(l=f||l===n?1:Oe(l),dn(i,0,l<0?0:l)):[]}function _8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,l<0?0:l,y)):[]}function I8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function D8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var N8=_e(function(i){return qr(bt(i,1,ct,!0))}),k8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),qr(bt(i,1,ct,!0),be(l,2))}),j8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,qr(bt(i,1,ct,!0),n,l)});function L8(i){return i&&i.length?qr(i):[]}function R8(i,l){return i&&i.length?qr(i,be(l,2)):[]}function F8(i,l){return l=typeof l=="function"?l:n,i&&i.length?qr(i,n,l):[]}function fm(i){if(!(i&&i.length))return[];var l=0;return i=Ur(i,function(f){if(ct(f))return l=mt(f.length,l),!0}),Mh(l,function(f){return Je(i,Eh(f))})}function DS(i,l){if(!(i&&i.length))return[];var f=fm(i);return l==null?f:Je(f,function(y){return Kt(l,n,y)})}var V8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),B8=_e(function(i){return Kh(Ur(i,ct))}),W8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Ur(i,ct),be(l,2))}),U8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Ur(i,ct),n,l)}),z8=_e(fm);function G8(i,l){return Zw(i||[],l||[],Vo)}function Y8(i,l){return Zw(i||[],l||[],zo)}var H8=_e(function(i){var l=i.length,f=l>1?i[l-1]:n;return f=typeof f=="function"?(i.pop(),f):n,DS(i,f)});function NS(i){var l=P(i);return l.__chain__=!0,l}function q8(i,l){return l(i),i}function tc(i,l){return l(i)}var K8=pr(function(i){var l=i.length,f=l?i[0]:0,y=this.__wrapped__,w=function(M){return jh(M,i)};return l>1||this.__actions__.length||!(y instanceof ke)||!gr(f)?this.thru(w):(y=y.slice(f,+f+(l?1:0)),y.__actions__.push({func:tc,args:[w],thisArg:n}),new un(y,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function X8(){return NS(this)}function Z8(){return new un(this.value(),this.__chain__)}function J8(){this.__values__===n&&(this.__values__=qS(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function Q8(){return this}function e9(i){for(var l,f=this;f instanceof Vl;){var y=AS(f);y.__index__=0,y.__values__=n,l?w.__wrapped__=y:l=y;var w=y;f=f.__wrapped__}return w.__wrapped__=i,l}function t9(){var i=this.__wrapped__;if(i instanceof ke){var l=i;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[um],thisArg:n}),new un(l,this.__chain__)}return this.thru(um)}function n9(){return Xw(this.__wrapped__,this.__actions__)}var r9=Hl(function(i,l,f){ze.call(i,f)?++i[f]:hr(i,f,1)});function s9(i,l,f){var y=Me(i)?cw:qR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function i9(i,l){var f=Me(i)?Ur:Dw;return f(i,be(l,3))}var o9=aS(MS),a9=aS(OS);function l9(i,l){return bt(nc(i,l),1)}function c9(i,l){return bt(nc(i,l),z)}function u9(i,l,f){return f=f===n?1:Oe(f),bt(nc(i,l),f)}function kS(i,l){var f=Me(i)?ln:Hr;return f(i,be(l,3))}function jS(i,l){var f=Me(i)?OL:Iw;return f(i,be(l,3))}var f9=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):hr(i,f,[l])});function d9(i,l,f,y){i=Ft(i)?i:Di(i),f=f&&!y?Oe(f):0;var w=i.length;return f<0&&(f=mt(w+f,0)),ac(i)?f<=w&&i.indexOf(l,f)>-1:!!w&&wi(i,l,f)>-1}var h9=_e(function(i,l,f){var y=-1,w=typeof l=="function",M=Ft(i)?V(i.length):[];return Hr(i,function(_){M[++y]=w?Kt(l,_,f):Wo(_,l,f)}),M}),m9=Hl(function(i,l,f){hr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Fw;return f(i,be(l,3))}function p9(i,l,f,y){return i==null?[]:(Me(l)||(l=l==null?[]:[l]),f=y?n:f,Me(f)||(f=f==null?[]:[f]),Uw(i,l,f))}var g9=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function y9(i,l,f){var y=Me(i)?Th:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Hr)}function x9(i,l,f){var y=Me(i)?$L:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Iw)}function v9(i,l){var f=Me(i)?Ur:Dw;return f(i,ic(be(l,3)))}function b9(i){var l=Me(i)?Mw:dF;return l(i)}function w9(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?UR:hF;return y(i,l)}function S9(i){var l=Me(i)?zR:pF;return l(i)}function T9(i){if(i==null)return 0;if(Ft(i))return ac(i)?Ti(i):i.length;var l=Mt(i);return l==De||l==qt?i.size:Wh(i).length}function C9(i,l,f){var y=Me(i)?Ch:gF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var E9=_e(function(i,l){if(i==null)return[];var f=l.length;return f>1&&It(i,l[0],l[1])?l=[]:f>2&&It(l[0],l[1],l[2])&&(l=[l[0]]),Uw(i,bt(l,1),[])}),rc=iR||function(){return vt.Date.now()};function P9(i,l){if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){if(--i<1)return l.apply(this,arguments)}}function LS(i,l,f){return l=f?n:l,l=i&&l==null?i.length:l,mr(i,F,n,n,n,n,l)}function RS(i,l){var f;if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){return--i>0&&(f=l.apply(this,arguments)),i<=1&&(l=n),f}}var dm=_e(function(i,l,f){var y=T;if(f.length){var w=Gr(f,_i(dm));y|=E}return mr(i,y,l,f,w)}),FS=_e(function(i,l,f){var y=T|v;if(f.length){var w=Gr(f,_i(FS));y|=E}return mr(l,y,i,f,w)});function VS(i,l,f){l=f?n:l;var y=mr(i,C,n,n,n,n,n,l);return y.placeholder=VS.placeholder,y}function BS(i,l,f){l=f?n:l;var y=mr(i,I,n,n,n,n,n,l);return y.placeholder=BS.placeholder,y}function WS(i,l,f){var y,w,M,_,N,L,H=0,q=!1,Z=!1,de=!0;if(typeof i!="function")throw new cn(a);l=mn(l)||0,rt(f)&&(q=!!f.leading,Z="maxWait"in f,M=Z?mt(mn(f.maxWait)||0,l):M,de="trailing"in f?!!f.trailing:de);function ye(ut){var Sn=y,vr=w;return y=w=n,H=ut,_=i.apply(vr,Sn),_}function Te(ut){return H=ut,N=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,vr=ut-H,aT=l-Sn;return Z?At(aT,M-vr):aT}function Ce(ut){var Sn=ut-L,vr=ut-H;return L===n||Sn>=l||Sn<0||Z&&vr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);N=Ho(Ne,$e(ut))}function je(ut){return N=n,de&&y?ye(ut):(y=w=n,_)}function Qt(){N!==n&&Jw(N),H=0,y=L=w=N=n}function Dt(){return N===n?_:je(rc())}function en(){var ut=rc(),Sn=Ce(ut);if(y=arguments,w=this,L=ut,Sn){if(N===n)return Te(L);if(Z)return Jw(N),N=Ho(Ne,l),ye(L)}return N===n&&(N=Ho(Ne,l)),_}return en.cancel=Qt,en.flush=Dt,en}var A9=_e(function(i,l){return _w(i,1,l)}),M9=_e(function(i,l,f){return _w(i,mn(l)||0,f)});function O9(i){return mr(i,Y)}function sc(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new cn(a);var f=function(){var y=arguments,w=l?l.apply(this,y):y[0],M=f.cache;if(M.has(w))return M.get(w);var _=i.apply(this,y);return f.cache=M.set(w,_)||M,_};return f.cache=new(sc.Cache||dr),f}sc.Cache=dr;function ic(i){if(typeof i!="function")throw new cn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function $9(i){return RS(2,i)}var _9=yF(function(i,l){l=l.length==1&&Me(l[0])?Je(l[0],Xt(be())):Je(bt(l,1),Xt(be()));var f=l.length;return _e(function(y){for(var w=-1,M=At(y.length,f);++w<M;)y[w]=l[w].call(this,y[w]);return Kt(i,this,y)})}),hm=_e(function(i,l){var f=Gr(l,_i(hm));return mr(i,E,n,l,f)}),US=_e(function(i,l){var f=Gr(l,_i(US));return mr(i,D,n,l,f)}),I9=pr(function(i,l){return mr(i,R,n,n,n,l)});function D9(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function N9(i,l){if(typeof i!="function")throw new cn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var y=f[l],w=Xr(f,0,l);return y&&zr(w,y),Kt(i,this,w)})}function k9(i,l,f){var y=!0,w=!0;if(typeof i!="function")throw new cn(a);return rt(f)&&(y="leading"in f?!!f.leading:y,w="trailing"in f?!!f.trailing:w),WS(i,l,{leading:y,maxWait:l,trailing:w})}function j9(i){return LS(i,1)}function L9(i,l){return hm(Zh(l),i)}function R9(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function F9(i){return fn(i,x)}function V9(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function B9(i){return fn(i,m|x)}function W9(i,l){return l=typeof l=="function"?l:n,fn(i,m|x,l)}function U9(i,l){return l==null||$w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var z9=Zl(Fh),G9=Zl(function(i,l){return i>=l}),Is=jw(function(){return arguments}())?jw:function(i){return ot(i)&&ze.call(i,"callee")&&!Sw.call(i,"callee")},Me=V.isArray,Y9=rw?Xt(rw):eF;function Ft(i){return i!=null&&oc(i.length)&&!yr(i)}function ct(i){return ot(i)&&Ft(i)}function H9(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Zr=aR||Cm,q9=sw?Xt(sw):tF;function K9(i){return ot(i)&&i.nodeType===1&&!qo(i)}function X9(i){if(i==null)return!0;if(Ft(i)&&(Me(i)||typeof i=="string"||typeof i.splice=="function"||Zr(i)||Ii(i)||Is(i)))return!i.length;var l=Mt(i);if(l==De||l==qt)return!i.size;if(Yo(i))return!Wh(i).length;for(var f in i)if(ze.call(i,f))return!1;return!0}function Z9(i,l){return Uo(i,l)}function J9(i,l,f){f=typeof f=="function"?f:n;var y=f?f(i,l):n;return y===n?Uo(i,l,n,f):!!y}function mm(i){if(!ot(i))return!1;var l=_t(i);return l==Be||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function Q9(i){return typeof i=="number"&&Cw(i)}function yr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==ge||l==ae||l==xl}function zS(i){return typeof i=="number"&&i==Oe(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=U}function rt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ot(i){return i!=null&&typeof i=="object"}var GS=iw?Xt(iw):rF;function eV(i,l){return i===l||Bh(i,l,sm(l))}function tV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sm(l),f)}function nV(i){return YS(i)&&i!=+i}function rV(i){if(VF(i))throw new Ae(o);return Lw(i)}function sV(i){return i===null}function iV(i){return i==null}function YS(i){return typeof i=="number"||ot(i)&&_t(i)==ft}function qo(i){if(!ot(i)||_t(i)!=dt)return!1;var l=Dl(i);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Ol.call(f)==tR}var pm=ow?Xt(ow):sF;function oV(i){return zS(i)&&i>=-9007199254740991&&i<=U}var HS=aw?Xt(aw):iF;function ac(i){return typeof i=="string"||!Me(i)&&ot(i)&&_t(i)==yn}function Jt(i){return typeof i=="symbol"||ot(i)&&_t(i)==Ts}var Ii=lw?Xt(lw):oF;function aV(i){return i===n}function lV(i){return ot(i)&&Mt(i)==Wr}function cV(i){return ot(i)&&_t(i)==bl}var uV=Zl(Uh),fV=Zl(function(i,l){return i<=l});function qS(i){if(!i)return[];if(Ft(i))return ac(i)?vn(i):Rt(i);if(ko&&i[ko])return UL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function xr(i){if(!i)return i===0?i:0;if(i=mn(i),i===z||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=xr(i),f=l%1;return l===l?f?l-f:l:0}function KS(i){return i?Ms(Oe(i),0,k):0}function mn(i){if(typeof i=="number")return i;if(Jt(i))return $;if(rt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=rt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=mw(i);var f=Yj.test(i);return f||qj.test(i)?PL(i.slice(2),f?2:8):Gj.test(i)?$:+i}function XS(i){return Bn(i,Vt(i))}function dV(i){return i?Ms(Oe(i),-9007199254740991,U):i===0?i:0}function We(i){return i==null?"":Zt(i)}var hV=Oi(function(i,l){if(Yo(l)||Ft(l)){Bn(l,gt(l),i);return}for(var f in l)ze.call(l,f)&&Vo(i,f,l[f])}),ZS=Oi(function(i,l){Bn(l,Vt(l),i)}),lc=Oi(function(i,l,f,y){Bn(l,Vt(l),i,y)}),mV=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),pV=pr(jh);function gV(i,l){var f=Mi(i);return l==null?f:Ow(f,l)}var yV=_e(function(i,l){i=Ge(i);var f=-1,y=l.length,w=y>2?l[2]:n;for(w&&It(l[0],l[1],w)&&(y=1);++f<y;)for(var M=l[f],_=Vt(M),N=-1,L=_.length;++N<L;){var H=_[N],q=i[H];(q===n||wn(q,Ei[H])&&!ze.call(i,H))&&(i[H]=M[H])}return i}),xV=_e(function(i){return i.push(n,mS),Kt(JS,n,i)});function vV(i,l){return uw(i,be(l,3),Vn)}function bV(i,l){return uw(i,be(l,3),Rh)}function wV(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function SV(i,l){return i==null?i:Nw(i,be(l,3),Vt)}function TV(i,l){return i&&Vn(i,be(l,3))}function CV(i,l){return i&&Rh(i,be(l,3))}function EV(i){return i==null?[]:Ul(i,gt(i))}function PV(i){return i==null?[]:Ul(i,Vt(i))}function gm(i,l,f){var y=i==null?n:Os(i,l);return y===n?f:y}function AV(i,l){return i!=null&&yS(i,l,XR)}function ym(i,l){return i!=null&&yS(i,l,ZR)}var MV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vm(Bt)),OV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(i,l)?i[l].push(f):i[l]=[f]},be),$V=_e(Wo);function gt(i){return Ft(i)?Aw(i):Wh(i)}function Vt(i){return Ft(i)?Aw(i,!0):aF(i)}function _V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,l(y,w,M),y)}),f}function IV(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,w,l(y,w,M))}),f}var DV=Oi(function(i,l,f){zl(i,l,f)}),JS=Oi(function(i,l,f,y){zl(i,l,f,y)}),NV=pr(function(i,l){var f={};if(i==null)return f;var y=!1;l=Je(l,function(M){return M=Kr(M,i),y||(y=M.length>1),M}),Bn(i,nm(i),f),y&&(f=fn(f,m|p|x,MF));for(var w=l.length;w--;)qh(f,l[w]);return f});function kV(i,l){return QS(i,ic(be(l)))}var jV=pr(function(i,l){return i==null?{}:cF(i,l)});function QS(i,l){if(i==null)return{};var f=Je(nm(i),function(y){return[y]});return l=be(l),zw(i,f,function(y,w){return l(y,w[0])})}function LV(i,l,f){l=Kr(l,i);var y=-1,w=l.length;for(w||(w=1,i=n);++y<w;){var M=i==null?n:i[Wn(l[y])];M===n&&(y=w,M=f),i=yr(M)?M.call(i):M}return i}function RV(i,l,f){return i==null?i:zo(i,l,f)}function FV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:zo(i,l,f,y)}var eT=dS(gt),tT=dS(Vt);function VV(i,l,f){var y=Me(i),w=y||Zr(i)||Ii(i);if(l=be(l,4),f==null){var M=i&&i.constructor;w?f=y?new M:[]:rt(i)?f=yr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,N,L){return l(f,_,N,L)}),f}function BV(i,l){return i==null?!0:qh(i,l)}function WV(i,l,f){return i==null?i:Kw(i,l,Zh(f))}function UV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:Kw(i,l,Zh(f),y)}function Di(i){return i==null?[]:Oh(i,gt(i))}function zV(i){return i==null?[]:Oh(i,Vt(i))}function GV(i,l,f){return f===n&&(f=l,l=n),f!==n&&(f=mn(f),f=f===f?f:0),l!==n&&(l=mn(l),l=l===l?l:0),Ms(mn(i),l,f)}function YV(i,l,f){return l=xr(l),f===n?(f=l,l=0):f=xr(f),i=mn(i),JR(i,l,f)}function HV(i,l,f){if(f&&typeof f!="boolean"&&It(i,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&l===n?(i=0,l=1):(i=xr(i),l===n?(l=i,i=0):l=xr(l)),i>l){var y=i;i=l,l=y}if(f||i%1||l%1){var w=Ew();return At(i+w*(l-i+EL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var qV=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?nT(l):l)});function nT(i){return xm(We(i).toLowerCase())}function rT(i){return i=We(i),i&&i.replace(Xj,RL).replace(pL,"")}function KV(i,l,f){i=We(i),l=Zt(l);var y=i.length;f=f===n?y:Ms(Oe(f),0,y);var w=f;return f-=l.length,f>=0&&i.slice(f,w)==l}function XV(i){return i=We(i),i&&$j.test(i)?i.replace(N2,FL):i}function ZV(i){return i=We(i),i&&jj.test(i)?i.replace(hh,"\\$&"):i}var JV=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),QV=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),e7=oS("toLowerCase");function t7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;if(!l||y>=l)return i;var w=(l-y)/2;return Xl(Ll(w),f)+i+Xl(jl(w),f)}function n7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function r7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function s7(i,l,f){return f||l==null?l=0:l&&(l=+l),fR(We(i).replace(mh,""),l||0)}function i7(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(We(i),l)}function o7(){var i=arguments,l=We(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var a7=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function l7(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=We(i),i&&(typeof l=="string"||l!=null&&!pm(l))&&(l=Zt(l),!l&&Si(i))?Xr(vn(i),0,f):i.split(l,f)):[]}var c7=$i(function(i,l,f){return i+(f?" ":"")+xm(l)});function u7(i,l,f){return i=We(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function f7(i,l,f){var y=P.templateSettings;f&&It(i,l,f)&&(l=n),i=We(i),l=lc({},l,y,hS);var w=lc({},l.imports,y.imports,hS),M=gt(w),_=Oh(w,M),N,L,H=0,q=l.interpolate||wl,Z="__p += '",de=_h((l.escape||wl).source+"|"+q.source+"|"+(q===k2?zj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bL+"]")+`
|
|
635
|
-
`;i.replace(de,function(Ce,Ne,je,Qt,Dt,en){return je||(je=Qt),
|
|
634
|
+
`)}function LF(i){return Me(i)||Is(i)||!!(Tw&&i&&i[Tw])}function gr(i,l){var f=typeof i;return l=l??W,!!l&&(f=="number"||f!="symbol"&&Kj.test(i))&&i>-1&&i%1==0&&i<l}function It(i,l,f){if(!rt(f))return!1;var y=typeof l;return(y=="number"?Ft(f)&&gr(l,f.length):y=="string"&&l in f)?wn(f[l],i):!1}function om(i,l){if(Me(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Jt(i)?!0:Nj.test(i)||!Dj.test(i)||l!=null&&i in Ge(l)}function RF(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function am(i){var l=Jl(i),f=P[l];if(typeof f!="function"||!(l in ke.prototype))return!1;if(i===f)return!0;var y=rm(f);return!!y&&i===y[0]}function FF(i){return!!vw&&vw in i}var VF=Ml?yr:Cm;function Yo(i){var l=i&&i.constructor,f=typeof l=="function"&&l.prototype||Ei;return i===f}function vS(i){return i===i&&!rt(i)}function bS(i,l){return function(f){return f==null?!1:f[i]===l&&(l!==n||i in Ge(f))}}function BF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function WF(i,l){var f=i[1],y=l[1],w=f|y,M=w<(T|v|R),_=y==R&&f==C||y==R&&f==F&&i[7].length<=l[8]||y==(R|F)&&l[7].length<=l[8]&&f==C;if(!(M||_))return i;y&T&&(i[2]=l[2],w|=f&T?0:A);var D=l[3];if(D){var L=i[3];i[3]=L?nS(L,D,l[4]):D,i[4]=L?Gr(i[3],h):l[4]}return D=l[5],D&&(L=i[5],i[5]=L?rS(L,D,l[6]):D,i[6]=L?Gr(i[5],h):l[6]),D=l[7],D&&(i[7]=D),y&R&&(i[8]=i[8]==null?l[8]:At(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=w,i}function UF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function zF(i){return $l.call(i)}function wS(i,l,f){return l=mt(l===n?i.length-1:l,0),function(){for(var y=arguments,w=-1,M=mt(y.length-l,0),_=V(M);++w<M;)_[w]=y[l+w];w=-1;for(var D=V(l+1);++w<l;)D[w]=y[w];return D[l]=f(_),Kt(i,this,D)}}function SS(i,l){return l.length<2?i:Os(i,dn(l,0,-1))}function GF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=gr(M,f)?w[M]:n}return i}function lm(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var TS=ES(Yw),Ho=oR||function(i,l){return vt.setTimeout(i,l)},cm=ES(mF);function CS(i,l,f){var y=l+"";return cm(i,jF(y,YF(DF(y),f)))}function ES(i){var l=0,f=0;return function(){var y=uR(),w=oe-(y-f);if(f=y,w>0){if(++l>=le)return arguments[0]}else l=0;return i.apply(n,arguments)}}function ec(i,l){var f=-1,y=i.length,w=y-1;for(l=l===n?y:l;++f<l;){var M=Gh(f,w),_=i[M];i[M]=i[f],i[f]=_}return i.length=l,i}var PS=BF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(kj,function(f,y,w,M){l.push(w?M.replace(Uj,"$1"):y||f)}),l});function Wn(i){if(typeof i=="string"||Jt(i))return i;var l=i+"";return l=="0"&&1/i==-1/0?"-0":l}function _s(i){if(i!=null){try{return Ol.call(i)}catch{}try{return i+""}catch{}}return""}function YF(i,l){return ln(Z,function(f){var y="_."+f[0];l&f[1]&&!Cl(i,y)&&i.push(y)}),i.sort()}function AS(i){if(i instanceof ke)return i.clone();var l=new un(i.__wrapped__,i.__chain__);return l.__actions__=Rt(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function HF(i,l,f){(f?It(i,l,f):l===n)?l=1:l=mt(Oe(l),0);var y=i==null?0:i.length;if(!y||l<1)return[];for(var w=0,M=0,_=V(jl(y/l));w<y;)_[M++]=dn(i,w,w+=l);return _}function qF(i){for(var l=-1,f=i==null?0:i.length,y=0,w=[];++l<f;){var M=i[l];M&&(w[y++]=M)}return w}function KF(){var i=arguments.length;if(!i)return[];for(var l=V(i-1),f=arguments[0],y=i;y--;)l[y-1]=arguments[y];return zr(Me(f)?Rt(f):[f],bt(l,1))}var XF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),ZF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),be(f,2)):[]}),JF=_e(function(i,l){var f=hn(l);return ct(f)&&(f=n),ct(i)?Bo(i,bt(l,1,ct,!0),n,f):[]});function QF(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),dn(i,l<0?0:l,y)):[]}function e8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,0,l<0?0:l)):[]}function t8(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function n8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function r8(i,l,f,y){var w=i==null?0:i.length;return w?(f&&typeof f!="number"&&It(i,l,f)&&(f=0,y=w),KR(i,l,f,y)):[]}function MS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),El(i,be(l,3),w)}function OS(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y-1;return f!==n&&(w=Oe(f),w=f<0?mt(y+w,0):At(w,y-1)),El(i,be(l,3),w,!0)}function $S(i){var l=i==null?0:i.length;return l?bt(i,1):[]}function s8(i){var l=i==null?0:i.length;return l?bt(i,U):[]}function i8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function o8(i){for(var l=-1,f=i==null?0:i.length,y={};++l<f;){var w=i[l];y[w[0]]=w[1]}return y}function _S(i){return i&&i.length?i[0]:n}function a8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=f==null?0:Oe(f);return w<0&&(w=mt(y+w,0)),wi(i,l,w)}function l8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var c8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),u8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l===hn(f)?l=n:f.pop(),f.length&&f[0]===i[0]?Vh(f,be(l,2)):[]}),f8=_e(function(i){var l=hn(i),f=Je(i,Xh);return l=typeof l=="function"?l:n,l&&f.pop(),f.length&&f[0]===i[0]?Vh(f,n,l):[]});function d8(i,l){return i==null?"":lR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function h8(i,l,f){var y=i==null?0:i.length;if(!y)return-1;var w=y;return f!==n&&(w=Oe(f),w=w<0?mt(y+w,0):At(w,y-1)),l===l?YL(i,l,w):El(i,fw,w,!0)}function m8(i,l){return i&&i.length?Ww(i,Oe(l)):n}var p8=_e(IS);function IS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function g8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function y8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var x8=pr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Gw(i,Je(l,function(w){return gr(w,f)?+w:w}).sort(tS)),y});function v8(i,l){var f=[];if(!(i&&i.length))return f;var y=-1,w=[],M=i.length;for(l=be(l,3);++y<M;){var _=i[y];l(_,y,i)&&(f.push(_),w.push(y))}return Gw(i,w),f}function um(i){return i==null?i:dR.call(i)}function b8(i,l,f){var y=i==null?0:i.length;return y?(f&&typeof f!="number"&&It(i,l,f)?(l=0,f=y):(l=l==null?0:Oe(l),f=f===n?y:Oe(f)),dn(i,l,f)):[]}function w8(i,l){return Gl(i,l)}function S8(i,l,f){return Hh(i,l,be(f,2))}function T8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l);if(y<f&&wn(i[y],l))return y}return-1}function C8(i,l){return Gl(i,l,!0)}function E8(i,l,f){return Hh(i,l,be(f,2),!0)}function P8(i,l){var f=i==null?0:i.length;if(f){var y=Gl(i,l,!0)-1;if(wn(i[y],l))return y}return-1}function A8(i){return i&&i.length?Hw(i):[]}function M8(i,l){return i&&i.length?Hw(i,be(l,2)):[]}function O8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function $8(i,l,f){return i&&i.length?(l=f||l===n?1:Oe(l),dn(i,0,l<0?0:l)):[]}function _8(i,l,f){var y=i==null?0:i.length;return y?(l=f||l===n?1:Oe(l),l=y-l,dn(i,l<0?0:l,y)):[]}function I8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function D8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var N8=_e(function(i){return qr(bt(i,1,ct,!0))}),k8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),qr(bt(i,1,ct,!0),be(l,2))}),j8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,qr(bt(i,1,ct,!0),n,l)});function L8(i){return i&&i.length?qr(i):[]}function R8(i,l){return i&&i.length?qr(i,be(l,2)):[]}function F8(i,l){return l=typeof l=="function"?l:n,i&&i.length?qr(i,n,l):[]}function fm(i){if(!(i&&i.length))return[];var l=0;return i=Ur(i,function(f){if(ct(f))return l=mt(f.length,l),!0}),Mh(l,function(f){return Je(i,Eh(f))})}function DS(i,l){if(!(i&&i.length))return[];var f=fm(i);return l==null?f:Je(f,function(y){return Kt(l,n,y)})}var V8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),B8=_e(function(i){return Kh(Ur(i,ct))}),W8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Ur(i,ct),be(l,2))}),U8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Ur(i,ct),n,l)}),z8=_e(fm);function G8(i,l){return Zw(i||[],l||[],Vo)}function Y8(i,l){return Zw(i||[],l||[],zo)}var H8=_e(function(i){var l=i.length,f=l>1?i[l-1]:n;return f=typeof f=="function"?(i.pop(),f):n,DS(i,f)});function NS(i){var l=P(i);return l.__chain__=!0,l}function q8(i,l){return l(i),i}function tc(i,l){return l(i)}var K8=pr(function(i){var l=i.length,f=l?i[0]:0,y=this.__wrapped__,w=function(M){return jh(M,i)};return l>1||this.__actions__.length||!(y instanceof ke)||!gr(f)?this.thru(w):(y=y.slice(f,+f+(l?1:0)),y.__actions__.push({func:tc,args:[w],thisArg:n}),new un(y,this.__chain__).thru(function(M){return l&&!M.length&&M.push(n),M}))});function X8(){return NS(this)}function Z8(){return new un(this.value(),this.__chain__)}function J8(){this.__values__===n&&(this.__values__=qS(this.value()));var i=this.__index__>=this.__values__.length,l=i?n:this.__values__[this.__index__++];return{done:i,value:l}}function Q8(){return this}function e9(i){for(var l,f=this;f instanceof Vl;){var y=AS(f);y.__index__=0,y.__values__=n,l?w.__wrapped__=y:l=y;var w=y;f=f.__wrapped__}return w.__wrapped__=i,l}function t9(){var i=this.__wrapped__;if(i instanceof ke){var l=i;return this.__actions__.length&&(l=new ke(this)),l=l.reverse(),l.__actions__.push({func:tc,args:[um],thisArg:n}),new un(l,this.__chain__)}return this.thru(um)}function n9(){return Xw(this.__wrapped__,this.__actions__)}var r9=Hl(function(i,l,f){ze.call(i,f)?++i[f]:hr(i,f,1)});function s9(i,l,f){var y=Me(i)?cw:qR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function i9(i,l){var f=Me(i)?Ur:Dw;return f(i,be(l,3))}var o9=aS(MS),a9=aS(OS);function l9(i,l){return bt(nc(i,l),1)}function c9(i,l){return bt(nc(i,l),U)}function u9(i,l,f){return f=f===n?1:Oe(f),bt(nc(i,l),f)}function kS(i,l){var f=Me(i)?ln:Hr;return f(i,be(l,3))}function jS(i,l){var f=Me(i)?OL:Iw;return f(i,be(l,3))}var f9=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):hr(i,f,[l])});function d9(i,l,f,y){i=Ft(i)?i:Di(i),f=f&&!y?Oe(f):0;var w=i.length;return f<0&&(f=mt(w+f,0)),ac(i)?f<=w&&i.indexOf(l,f)>-1:!!w&&wi(i,l,f)>-1}var h9=_e(function(i,l,f){var y=-1,w=typeof l=="function",M=Ft(i)?V(i.length):[];return Hr(i,function(_){M[++y]=w?Kt(l,_,f):Wo(_,l,f)}),M}),m9=Hl(function(i,l,f){hr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Fw;return f(i,be(l,3))}function p9(i,l,f,y){return i==null?[]:(Me(l)||(l=l==null?[]:[l]),f=y?n:f,Me(f)||(f=f==null?[]:[f]),Uw(i,l,f))}var g9=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function y9(i,l,f){var y=Me(i)?Th:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Hr)}function x9(i,l,f){var y=Me(i)?$L:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Iw)}function v9(i,l){var f=Me(i)?Ur:Dw;return f(i,ic(be(l,3)))}function b9(i){var l=Me(i)?Mw:dF;return l(i)}function w9(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?UR:hF;return y(i,l)}function S9(i){var l=Me(i)?zR:pF;return l(i)}function T9(i){if(i==null)return 0;if(Ft(i))return ac(i)?Ti(i):i.length;var l=Mt(i);return l==De||l==qt?i.size:Wh(i).length}function C9(i,l,f){var y=Me(i)?Ch:gF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var E9=_e(function(i,l){if(i==null)return[];var f=l.length;return f>1&&It(i,l[0],l[1])?l=[]:f>2&&It(l[0],l[1],l[2])&&(l=[l[0]]),Uw(i,bt(l,1),[])}),rc=iR||function(){return vt.Date.now()};function P9(i,l){if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){if(--i<1)return l.apply(this,arguments)}}function LS(i,l,f){return l=f?n:l,l=i&&l==null?i.length:l,mr(i,R,n,n,n,n,l)}function RS(i,l){var f;if(typeof l!="function")throw new cn(a);return i=Oe(i),function(){return--i>0&&(f=l.apply(this,arguments)),i<=1&&(l=n),f}}var dm=_e(function(i,l,f){var y=T;if(f.length){var w=Gr(f,_i(dm));y|=E}return mr(i,y,l,f,w)}),FS=_e(function(i,l,f){var y=T|v;if(f.length){var w=Gr(f,_i(FS));y|=E}return mr(l,y,i,f,w)});function VS(i,l,f){l=f?n:l;var y=mr(i,C,n,n,n,n,n,l);return y.placeholder=VS.placeholder,y}function BS(i,l,f){l=f?n:l;var y=mr(i,I,n,n,n,n,n,l);return y.placeholder=BS.placeholder,y}function WS(i,l,f){var y,w,M,_,D,L,Y=0,q=!1,Q=!1,de=!0;if(typeof i!="function")throw new cn(a);l=mn(l)||0,rt(f)&&(q=!!f.leading,Q="maxWait"in f,M=Q?mt(mn(f.maxWait)||0,l):M,de="trailing"in f?!!f.trailing:de);function ye(ut){var Sn=y,vr=w;return y=w=n,Y=ut,_=i.apply(vr,Sn),_}function Te(ut){return Y=ut,D=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,vr=ut-Y,aT=l-Sn;return Q?At(aT,M-vr):aT}function Ce(ut){var Sn=ut-L,vr=ut-Y;return L===n||Sn>=l||Sn<0||Q&&vr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);D=Ho(Ne,$e(ut))}function je(ut){return D=n,de&&y?ye(ut):(y=w=n,_)}function Qt(){D!==n&&Jw(D),Y=0,y=L=w=D=n}function Dt(){return D===n?_:je(rc())}function en(){var ut=rc(),Sn=Ce(ut);if(y=arguments,w=this,L=ut,Sn){if(D===n)return Te(L);if(Q)return Jw(D),D=Ho(Ne,l),ye(L)}return D===n&&(D=Ho(Ne,l)),_}return en.cancel=Qt,en.flush=Dt,en}var A9=_e(function(i,l){return _w(i,1,l)}),M9=_e(function(i,l,f){return _w(i,mn(l)||0,f)});function O9(i){return mr(i,G)}function sc(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new cn(a);var f=function(){var y=arguments,w=l?l.apply(this,y):y[0],M=f.cache;if(M.has(w))return M.get(w);var _=i.apply(this,y);return f.cache=M.set(w,_)||M,_};return f.cache=new(sc.Cache||dr),f}sc.Cache=dr;function ic(i){if(typeof i!="function")throw new cn(a);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function $9(i){return RS(2,i)}var _9=yF(function(i,l){l=l.length==1&&Me(l[0])?Je(l[0],Xt(be())):Je(bt(l,1),Xt(be()));var f=l.length;return _e(function(y){for(var w=-1,M=At(y.length,f);++w<M;)y[w]=l[w].call(this,y[w]);return Kt(i,this,y)})}),hm=_e(function(i,l){var f=Gr(l,_i(hm));return mr(i,E,n,l,f)}),US=_e(function(i,l){var f=Gr(l,_i(US));return mr(i,N,n,l,f)}),I9=pr(function(i,l){return mr(i,F,n,n,n,l)});function D9(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function N9(i,l){if(typeof i!="function")throw new cn(a);return l=l==null?0:mt(Oe(l),0),_e(function(f){var y=f[l],w=Xr(f,0,l);return y&&zr(w,y),Kt(i,this,w)})}function k9(i,l,f){var y=!0,w=!0;if(typeof i!="function")throw new cn(a);return rt(f)&&(y="leading"in f?!!f.leading:y,w="trailing"in f?!!f.trailing:w),WS(i,l,{leading:y,maxWait:l,trailing:w})}function j9(i){return LS(i,1)}function L9(i,l){return hm(Zh(l),i)}function R9(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function F9(i){return fn(i,x)}function V9(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function B9(i){return fn(i,m|x)}function W9(i,l){return l=typeof l=="function"?l:n,fn(i,m|x,l)}function U9(i,l){return l==null||$w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var z9=Zl(Fh),G9=Zl(function(i,l){return i>=l}),Is=jw(function(){return arguments}())?jw:function(i){return ot(i)&&ze.call(i,"callee")&&!Sw.call(i,"callee")},Me=V.isArray,Y9=rw?Xt(rw):eF;function Ft(i){return i!=null&&oc(i.length)&&!yr(i)}function ct(i){return ot(i)&&Ft(i)}function H9(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Zr=aR||Cm,q9=sw?Xt(sw):tF;function K9(i){return ot(i)&&i.nodeType===1&&!qo(i)}function X9(i){if(i==null)return!0;if(Ft(i)&&(Me(i)||typeof i=="string"||typeof i.splice=="function"||Zr(i)||Ii(i)||Is(i)))return!i.length;var l=Mt(i);if(l==De||l==qt)return!i.size;if(Yo(i))return!Wh(i).length;for(var f in i)if(ze.call(i,f))return!1;return!0}function Z9(i,l){return Uo(i,l)}function J9(i,l,f){f=typeof f=="function"?f:n;var y=f?f(i,l):n;return y===n?Uo(i,l,n,f):!!y}function mm(i){if(!ot(i))return!1;var l=_t(i);return l==Be||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function Q9(i){return typeof i=="number"&&Cw(i)}function yr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==ge||l==ae||l==xl}function zS(i){return typeof i=="number"&&i==Oe(i)}function oc(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=W}function rt(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function ot(i){return i!=null&&typeof i=="object"}var GS=iw?Xt(iw):rF;function eV(i,l){return i===l||Bh(i,l,sm(l))}function tV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sm(l),f)}function nV(i){return YS(i)&&i!=+i}function rV(i){if(VF(i))throw new Ae(o);return Lw(i)}function sV(i){return i===null}function iV(i){return i==null}function YS(i){return typeof i=="number"||ot(i)&&_t(i)==ft}function qo(i){if(!ot(i)||_t(i)!=dt)return!1;var l=Dl(i);if(l===null)return!0;var f=ze.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&Ol.call(f)==tR}var pm=ow?Xt(ow):sF;function oV(i){return zS(i)&&i>=-9007199254740991&&i<=W}var HS=aw?Xt(aw):iF;function ac(i){return typeof i=="string"||!Me(i)&&ot(i)&&_t(i)==yn}function Jt(i){return typeof i=="symbol"||ot(i)&&_t(i)==Ts}var Ii=lw?Xt(lw):oF;function aV(i){return i===n}function lV(i){return ot(i)&&Mt(i)==Wr}function cV(i){return ot(i)&&_t(i)==bl}var uV=Zl(Uh),fV=Zl(function(i,l){return i<=l});function qS(i){if(!i)return[];if(Ft(i))return ac(i)?vn(i):Rt(i);if(ko&&i[ko])return UL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function xr(i){if(!i)return i===0?i:0;if(i=mn(i),i===U||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=xr(i),f=l%1;return l===l?f?l-f:l:0}function KS(i){return i?Ms(Oe(i),0,k):0}function mn(i){if(typeof i=="number")return i;if(Jt(i))return $;if(rt(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=rt(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=mw(i);var f=Yj.test(i);return f||qj.test(i)?PL(i.slice(2),f?2:8):Gj.test(i)?$:+i}function XS(i){return Bn(i,Vt(i))}function dV(i){return i?Ms(Oe(i),-9007199254740991,W):i===0?i:0}function We(i){return i==null?"":Zt(i)}var hV=Oi(function(i,l){if(Yo(l)||Ft(l)){Bn(l,gt(l),i);return}for(var f in l)ze.call(l,f)&&Vo(i,f,l[f])}),ZS=Oi(function(i,l){Bn(l,Vt(l),i)}),lc=Oi(function(i,l,f,y){Bn(l,Vt(l),i,y)}),mV=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),pV=pr(jh);function gV(i,l){var f=Mi(i);return l==null?f:Ow(f,l)}var yV=_e(function(i,l){i=Ge(i);var f=-1,y=l.length,w=y>2?l[2]:n;for(w&&It(l[0],l[1],w)&&(y=1);++f<y;)for(var M=l[f],_=Vt(M),D=-1,L=_.length;++D<L;){var Y=_[D],q=i[Y];(q===n||wn(q,Ei[Y])&&!ze.call(i,Y))&&(i[Y]=M[Y])}return i}),xV=_e(function(i){return i.push(n,mS),Kt(JS,n,i)});function vV(i,l){return uw(i,be(l,3),Vn)}function bV(i,l){return uw(i,be(l,3),Rh)}function wV(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function SV(i,l){return i==null?i:Nw(i,be(l,3),Vt)}function TV(i,l){return i&&Vn(i,be(l,3))}function CV(i,l){return i&&Rh(i,be(l,3))}function EV(i){return i==null?[]:Ul(i,gt(i))}function PV(i){return i==null?[]:Ul(i,Vt(i))}function gm(i,l,f){var y=i==null?n:Os(i,l);return y===n?f:y}function AV(i,l){return i!=null&&yS(i,l,XR)}function ym(i,l){return i!=null&&yS(i,l,ZR)}var MV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vm(Bt)),OV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),ze.call(i,l)?i[l].push(f):i[l]=[f]},be),$V=_e(Wo);function gt(i){return Ft(i)?Aw(i):Wh(i)}function Vt(i){return Ft(i)?Aw(i,!0):aF(i)}function _V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,l(y,w,M),y)}),f}function IV(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){hr(f,w,l(y,w,M))}),f}var DV=Oi(function(i,l,f){zl(i,l,f)}),JS=Oi(function(i,l,f,y){zl(i,l,f,y)}),NV=pr(function(i,l){var f={};if(i==null)return f;var y=!1;l=Je(l,function(M){return M=Kr(M,i),y||(y=M.length>1),M}),Bn(i,nm(i),f),y&&(f=fn(f,m|p|x,MF));for(var w=l.length;w--;)qh(f,l[w]);return f});function kV(i,l){return QS(i,ic(be(l)))}var jV=pr(function(i,l){return i==null?{}:cF(i,l)});function QS(i,l){if(i==null)return{};var f=Je(nm(i),function(y){return[y]});return l=be(l),zw(i,f,function(y,w){return l(y,w[0])})}function LV(i,l,f){l=Kr(l,i);var y=-1,w=l.length;for(w||(w=1,i=n);++y<w;){var M=i==null?n:i[Wn(l[y])];M===n&&(y=w,M=f),i=yr(M)?M.call(i):M}return i}function RV(i,l,f){return i==null?i:zo(i,l,f)}function FV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:zo(i,l,f,y)}var eT=dS(gt),tT=dS(Vt);function VV(i,l,f){var y=Me(i),w=y||Zr(i)||Ii(i);if(l=be(l,4),f==null){var M=i&&i.constructor;w?f=y?new M:[]:rt(i)?f=yr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,D,L){return l(f,_,D,L)}),f}function BV(i,l){return i==null?!0:qh(i,l)}function WV(i,l,f){return i==null?i:Kw(i,l,Zh(f))}function UV(i,l,f,y){return y=typeof y=="function"?y:n,i==null?i:Kw(i,l,Zh(f),y)}function Di(i){return i==null?[]:Oh(i,gt(i))}function zV(i){return i==null?[]:Oh(i,Vt(i))}function GV(i,l,f){return f===n&&(f=l,l=n),f!==n&&(f=mn(f),f=f===f?f:0),l!==n&&(l=mn(l),l=l===l?l:0),Ms(mn(i),l,f)}function YV(i,l,f){return l=xr(l),f===n?(f=l,l=0):f=xr(f),i=mn(i),JR(i,l,f)}function HV(i,l,f){if(f&&typeof f!="boolean"&&It(i,l,f)&&(l=f=n),f===n&&(typeof l=="boolean"?(f=l,l=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&l===n?(i=0,l=1):(i=xr(i),l===n?(l=i,i=0):l=xr(l)),i>l){var y=i;i=l,l=y}if(f||i%1||l%1){var w=Ew();return At(i+w*(l-i+EL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var qV=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?nT(l):l)});function nT(i){return xm(We(i).toLowerCase())}function rT(i){return i=We(i),i&&i.replace(Xj,RL).replace(pL,"")}function KV(i,l,f){i=We(i),l=Zt(l);var y=i.length;f=f===n?y:Ms(Oe(f),0,y);var w=f;return f-=l.length,f>=0&&i.slice(f,w)==l}function XV(i){return i=We(i),i&&$j.test(i)?i.replace(N2,FL):i}function ZV(i){return i=We(i),i&&jj.test(i)?i.replace(hh,"\\$&"):i}var JV=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),QV=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),e7=oS("toLowerCase");function t7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;if(!l||y>=l)return i;var w=(l-y)/2;return Xl(Ll(w),f)+i+Xl(jl(w),f)}function n7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function r7(i,l,f){i=We(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function s7(i,l,f){return f||l==null?l=0:l&&(l=+l),fR(We(i).replace(mh,""),l||0)}function i7(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(We(i),l)}function o7(){var i=arguments,l=We(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var a7=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function l7(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=We(i),i&&(typeof l=="string"||l!=null&&!pm(l))&&(l=Zt(l),!l&&Si(i))?Xr(vn(i),0,f):i.split(l,f)):[]}var c7=$i(function(i,l,f){return i+(f?" ":"")+xm(l)});function u7(i,l,f){return i=We(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function f7(i,l,f){var y=P.templateSettings;f&&It(i,l,f)&&(l=n),i=We(i),l=lc({},l,y,hS);var w=lc({},l.imports,y.imports,hS),M=gt(w),_=Oh(w,M),D,L,Y=0,q=l.interpolate||wl,Q="__p += '",de=_h((l.escape||wl).source+"|"+q.source+"|"+(q===k2?zj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++bL+"]")+`
|
|
635
|
+
`;i.replace(de,function(Ce,Ne,je,Qt,Dt,en){return je||(je=Qt),Q+=i.slice(Y,en).replace(Zj,VL),Ne&&(D=!0,Q+=`' +
|
|
636
636
|
__e(`+Ne+`) +
|
|
637
|
-
'`),Dt&&(L=!0,
|
|
637
|
+
'`),Dt&&(L=!0,Q+=`';
|
|
638
638
|
`+Dt+`;
|
|
639
|
-
__p += '`),je&&(
|
|
639
|
+
__p += '`),je&&(Q+=`' +
|
|
640
640
|
((__t = (`+je+`)) == null ? '' : __t) +
|
|
641
|
-
'`),
|
|
642
|
-
`;var Te=ze.call(l,"variable")&&l.variable;if(!Te)
|
|
643
|
-
`+
|
|
641
|
+
'`),Y=en+Ce.length,Ce}),Q+=`';
|
|
642
|
+
`;var Te=ze.call(l,"variable")&&l.variable;if(!Te)Q=`with (obj) {
|
|
643
|
+
`+Q+`
|
|
644
644
|
}
|
|
645
|
-
`;else if(Wj.test(Te))throw new Ae(c);
|
|
645
|
+
`;else if(Wj.test(Te))throw new Ae(c);Q=(L?Q.replace(Pj,""):Q).replace(Aj,"$1").replace(Mj,"$1;"),Q="function("+(Te||"obj")+`) {
|
|
646
646
|
`+(Te?"":`obj || (obj = {});
|
|
647
|
-
`)+"var __t, __p = ''"+(
|
|
647
|
+
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
648
648
|
function print() { __p += __j.call(arguments, '') }
|
|
649
649
|
`:`;
|
|
650
|
-
`)+
|
|
651
|
-
}`;var $e=iT(function(){return Le(M,ye+"return "+Z).apply(n,_)});if($e.source=Z,mm($e))throw $e;return $e}function d7(i){return We(i).toLowerCase()}function h7(i){return We(i).toUpperCase()}function m7(i,l,f){if(i=We(i),i&&(f||l===n))return mw(i);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=vn(l),M=pw(y,w),_=gw(y,w)+1;return Xr(y,M,_).join("")}function p7(i,l,f){if(i=We(i),i&&(f||l===n))return i.slice(0,xw(i)+1);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=gw(y,vn(l))+1;return Xr(y,0,w).join("")}function g7(i,l,f){if(i=We(i),i&&(f||l===n))return i.replace(mh,"");if(!i||!(l=Zt(l)))return i;var y=vn(i),w=pw(y,vn(l));return Xr(y,w).join("")}function y7(i,l){var f=ee,y=Q;if(rt(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,y="omission"in l?Zt(l.omission):y}i=We(i);var M=i.length;if(Si(i)){var _=vn(i);M=_.length}if(f>=M)return i;var N=f-Ti(y);if(N<1)return y;var L=_?Xr(_,0,N).join(""):i.slice(0,N);if(w===n)return L+y;if(_&&(N+=L.length-N),pm(w)){if(i.slice(N).search(w)){var H,q=L;for(w.global||(w=_h(w.source,We(j2.exec(w))+"g")),w.lastIndex=0;H=w.exec(q);)var Z=H.index;L=L.slice(0,Z===n?N:Z)}}else if(i.indexOf(Zt(w),N)!=N){var de=L.lastIndexOf(w);de>-1&&(L=L.slice(0,de))}return L+y}function x7(i){return i=We(i),i&&Oj.test(i)?i.replace(D2,HL):i}var v7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=We(i),l=f?n:l,l===n?WL(i)?XL(i):DL(i):i.match(l)||[]}var iT=_e(function(i,l){try{return Kt(i,n,l)}catch(f){return mm(f)?f:new Ae(f)}}),b7=pr(function(i,l){return ln(l,function(f){f=Wn(f),hr(i,f,dm(i[f],i))}),i});function w7(i){var l=i==null?0:i.length,f=be();return i=l?Je(i,function(y){if(typeof y[1]!="function")throw new cn(a);return[f(y[0]),y[1]]}):[],_e(function(y){for(var w=-1;++w<l;){var M=i[w];if(Kt(M[0],this,y))return Kt(M[1],this,y)}})}function S7(i){return HR(fn(i,m))}function vm(i){return function(){return i}}function T7(i,l){return i==null||i!==i?l:i}var C7=lS(),E7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function P7(i){return Vw(fn(i,m))}function A7(i,l){return Bw(i,fn(l,m))}var M7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),O7=_e(function(i,l){return function(f){return Wo(i,f,l)}});function wm(i,l,f){var y=gt(l),w=Ul(l,y);f==null&&!(rt(l)&&(w.length||!y.length))&&(f=l,l=i,i=this,w=Ul(l,gt(l)));var M=!(rt(f)&&"chain"in f)||!!f.chain,_=yr(i);return ln(w,function(N){var L=l[N];i[N]=L,_&&(i.prototype[N]=function(){var H=this.__chain__;if(M||H){var q=i(this.__wrapped__),Z=q.__actions__=Rt(this.__actions__);return Z.push({func:L,args:arguments,thisArg:i}),q.__chain__=H,q}return L.apply(i,zr([this.value()],arguments))})}),i}function $7(){return vt._===this&&(vt._=nR),this}function Sm(){}function _7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var I7=Qh(Je),D7=Qh(cw),N7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):uF(i)}function k7(i){return function(l){return i==null?n:Os(i,l)}}var j7=uS(),L7=uS(!0);function Tm(){return[]}function Cm(){return!1}function R7(){return{}}function F7(){return""}function V7(){return!0}function B7(i,l){if(i=Oe(i),i<1||i>U)return[];var f=k,y=At(i,k);l=be(l),i-=k;for(var w=Mh(y,l);++f<i;)l(f);return w}function W7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(We(i)))}function U7(i){var l=++eR;return We(i)+l}var z7=Kl(function(i,l){return i+l},0),G7=em("ceil"),Y7=Kl(function(i,l){return i/l},1),H7=em("floor");function q7(i){return i&&i.length?Wl(i,Bt,Fh):n}function K7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function X7(i){return dw(i,Bt)}function Z7(i,l){return dw(i,be(l,2))}function J7(i){return i&&i.length?Wl(i,Bt,Uh):n}function Q7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var eB=Kl(function(i,l){return i*l},1),tB=em("round"),nB=Kl(function(i,l){return i-l},0);function rB(i){return i&&i.length?Ah(i,Bt):0}function sB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return P.after=P9,P.ary=LS,P.assign=hV,P.assignIn=ZS,P.assignInWith=lc,P.assignWith=mV,P.at=pV,P.before=RS,P.bind=dm,P.bindAll=b7,P.bindKey=FS,P.castArray=R9,P.chain=NS,P.chunk=HF,P.compact=qF,P.concat=KF,P.cond=w7,P.conforms=S7,P.constant=vm,P.countBy=r9,P.create=gV,P.curry=VS,P.curryRight=BS,P.debounce=WS,P.defaults=yV,P.defaultsDeep=xV,P.defer=A9,P.delay=M9,P.difference=XF,P.differenceBy=ZF,P.differenceWith=JF,P.drop=QF,P.dropRight=e8,P.dropRightWhile=t8,P.dropWhile=n8,P.fill=r8,P.filter=i9,P.flatMap=l9,P.flatMapDeep=c9,P.flatMapDepth=u9,P.flatten=$S,P.flattenDeep=s8,P.flattenDepth=i8,P.flip=O9,P.flow=C7,P.flowRight=E7,P.fromPairs=o8,P.functions=EV,P.functionsIn=PV,P.groupBy=f9,P.initial=l8,P.intersection=c8,P.intersectionBy=u8,P.intersectionWith=f8,P.invert=MV,P.invertBy=OV,P.invokeMap=h9,P.iteratee=bm,P.keyBy=m9,P.keys=gt,P.keysIn=Vt,P.map=nc,P.mapKeys=_V,P.mapValues=IV,P.matches=P7,P.matchesProperty=A7,P.memoize=sc,P.merge=DV,P.mergeWith=JS,P.method=M7,P.methodOf=O7,P.mixin=wm,P.negate=ic,P.nthArg=_7,P.omit=NV,P.omitBy=kV,P.once=$9,P.orderBy=p9,P.over=I7,P.overArgs=_9,P.overEvery=D7,P.overSome=N7,P.partial=hm,P.partialRight=US,P.partition=g9,P.pick=jV,P.pickBy=QS,P.property=oT,P.propertyOf=k7,P.pull=p8,P.pullAll=IS,P.pullAllBy=g8,P.pullAllWith=y8,P.pullAt=x8,P.range=j7,P.rangeRight=L7,P.rearg=I9,P.reject=v9,P.remove=v8,P.rest=D9,P.reverse=um,P.sampleSize=w9,P.set=RV,P.setWith=FV,P.shuffle=S9,P.slice=b8,P.sortBy=E9,P.sortedUniq=A8,P.sortedUniqBy=M8,P.split=l7,P.spread=N9,P.tail=O8,P.take=$8,P.takeRight=_8,P.takeRightWhile=I8,P.takeWhile=D8,P.tap=q8,P.throttle=k9,P.thru=tc,P.toArray=qS,P.toPairs=eT,P.toPairsIn=tT,P.toPath=W7,P.toPlainObject=XS,P.transform=VV,P.unary=j9,P.union=N8,P.unionBy=k8,P.unionWith=j8,P.uniq=L8,P.uniqBy=R8,P.uniqWith=F8,P.unset=BV,P.unzip=fm,P.unzipWith=DS,P.update=WV,P.updateWith=UV,P.values=Di,P.valuesIn=zV,P.without=V8,P.words=sT,P.wrap=L9,P.xor=B8,P.xorBy=W8,P.xorWith=U8,P.zip=z8,P.zipObject=G8,P.zipObjectDeep=Y8,P.zipWith=H8,P.entries=eT,P.entriesIn=tT,P.extend=ZS,P.extendWith=lc,wm(P,P),P.add=z7,P.attempt=iT,P.camelCase=qV,P.capitalize=nT,P.ceil=G7,P.clamp=GV,P.clone=F9,P.cloneDeep=B9,P.cloneDeepWith=W9,P.cloneWith=V9,P.conformsTo=U9,P.deburr=rT,P.defaultTo=T7,P.divide=Y7,P.endsWith=KV,P.eq=wn,P.escape=XV,P.escapeRegExp=ZV,P.every=s9,P.find=o9,P.findIndex=MS,P.findKey=vV,P.findLast=a9,P.findLastIndex=OS,P.findLastKey=bV,P.floor=H7,P.forEach=kS,P.forEachRight=jS,P.forIn=wV,P.forInRight=SV,P.forOwn=TV,P.forOwnRight=CV,P.get=gm,P.gt=z9,P.gte=G9,P.has=AV,P.hasIn=ym,P.head=_S,P.identity=Bt,P.includes=d9,P.indexOf=a8,P.inRange=YV,P.invoke=$V,P.isArguments=Is,P.isArray=Me,P.isArrayBuffer=Y9,P.isArrayLike=Ft,P.isArrayLikeObject=ct,P.isBoolean=H9,P.isBuffer=Zr,P.isDate=q9,P.isElement=K9,P.isEmpty=X9,P.isEqual=Z9,P.isEqualWith=J9,P.isError=mm,P.isFinite=Q9,P.isFunction=yr,P.isInteger=zS,P.isLength=oc,P.isMap=GS,P.isMatch=eV,P.isMatchWith=tV,P.isNaN=nV,P.isNative=rV,P.isNil=iV,P.isNull=sV,P.isNumber=YS,P.isObject=rt,P.isObjectLike=ot,P.isPlainObject=qo,P.isRegExp=pm,P.isSafeInteger=oV,P.isSet=HS,P.isString=ac,P.isSymbol=Jt,P.isTypedArray=Ii,P.isUndefined=aV,P.isWeakMap=lV,P.isWeakSet=cV,P.join=d8,P.kebabCase=JV,P.last=hn,P.lastIndexOf=h8,P.lowerCase=QV,P.lowerFirst=e7,P.lt=uV,P.lte=fV,P.max=q7,P.maxBy=K7,P.mean=X7,P.meanBy=Z7,P.min=J7,P.minBy=Q7,P.stubArray=Tm,P.stubFalse=Cm,P.stubObject=R7,P.stubString=F7,P.stubTrue=V7,P.multiply=eB,P.nth=m8,P.noConflict=$7,P.noop=Sm,P.now=rc,P.pad=t7,P.padEnd=n7,P.padStart=r7,P.parseInt=s7,P.random=HV,P.reduce=y9,P.reduceRight=x9,P.repeat=i7,P.replace=o7,P.result=LV,P.round=tB,P.runInContext=j,P.sample=b9,P.size=T9,P.snakeCase=a7,P.some=C9,P.sortedIndex=w8,P.sortedIndexBy=S8,P.sortedIndexOf=T8,P.sortedLastIndex=C8,P.sortedLastIndexBy=E8,P.sortedLastIndexOf=P8,P.startCase=c7,P.startsWith=u7,P.subtract=nB,P.sum=rB,P.sumBy=sB,P.template=f7,P.times=B7,P.toFinite=xr,P.toInteger=Oe,P.toLength=KS,P.toLower=d7,P.toNumber=mn,P.toSafeInteger=dV,P.toString=We,P.toUpper=h7,P.trim=m7,P.trimEnd=p7,P.trimStart=g7,P.truncate=y7,P.unescape=x7,P.uniqueId=U7,P.upperCase=v7,P.upperFirst=xm,P.each=kS,P.eachRight=jS,P.first=_S,wm(P,function(){var i={};return Vn(P,function(l,f){ze.call(P.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),P.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){P[i].placeholder=P}),ln(["drop","take"],function(i,l){ke.prototype[i]=function(f){f=f===n?1:mt(Oe(f),0);var y=this.__filtered__&&!l?new ke(this):this.clone();return y.__filtered__?y.__takeCount__=At(f,y.__takeCount__):y.__views__.push({size:At(f,k),type:i+(y.__dir__<0?"Right":"")}),y},ke.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),ln(["filter","map","takeWhile"],function(i,l){var f=l+1,y=f==ce||f==ue;ke.prototype[i]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||y,M}}),ln(["head","last"],function(i,l){var f="take"+(l?"Right":"");ke.prototype[i]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(i,l){var f="drop"+(l?"":"Right");ke.prototype[i]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Bt)},ke.prototype.find=function(i){return this.filter(i).head()},ke.prototype.findLast=function(i){return this.reverse().find(i)},ke.prototype.invokeMap=_e(function(i,l){return typeof i=="function"?new ke(this):this.map(function(f){return Wo(f,i,l)})}),ke.prototype.reject=function(i){return this.filter(ic(be(i)))},ke.prototype.slice=function(i,l){i=Oe(i);var f=this;return f.__filtered__&&(i>0||l<0)?new ke(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-i)),f)},ke.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ke.prototype.toArray=function(){return this.take(k)},Vn(ke.prototype,function(i,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),y=/^(?:head|last)$/.test(l),w=P[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(P.prototype[l]=function(){var _=this.__wrapped__,N=y?[1]:arguments,L=_ instanceof ke,H=N[0],q=L||Me(_),Z=function(Ne){var je=w.apply(P,zr([Ne],N));return y&&de?je[0]:je};q&&f&&typeof H=="function"&&H.length!=1&&(L=q=!1);var de=this.__chain__,ye=!!this.__actions__.length,Te=M&&!de,$e=L&&!ye;if(!M&&q){_=$e?_:new ke(this);var Ce=i.apply(_,N);return Ce.__actions__.push({func:tc,args:[Z],thisArg:n}),new un(Ce,de)}return Te&&$e?i.apply(this,N):(Ce=this.thru(Z),Te?y?Ce.value()[0]:Ce.value():Ce)})}),ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=Al[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);P.prototype[i]=function(){var w=arguments;if(y&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(_){return l.apply(Me(_)?_:[],w)})}}),Vn(ke.prototype,function(i,l){var f=P[l];if(f){var y=f.name+"";ze.call(Ai,y)||(Ai[y]=[]),Ai[y].push({name:l,func:f})}}),Ai[ql(n,v).name]=[{name:"wrapper",func:n}],ke.prototype.clone=xR,ke.prototype.reverse=vR,ke.prototype.value=bR,P.prototype.at=K8,P.prototype.chain=X8,P.prototype.commit=Z8,P.prototype.next=J8,P.prototype.plant=e9,P.prototype.reverse=t9,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=n9,P.prototype.first=P.prototype.head,ko&&(P.prototype[ko]=Q8),P},Ci=ZL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o3)}(uo,uo.exports)),uo.exports}var hf=a3();/*!
|
|
650
|
+
`)+Q+`return __p
|
|
651
|
+
}`;var $e=iT(function(){return Le(M,ye+"return "+Q).apply(n,_)});if($e.source=Q,mm($e))throw $e;return $e}function d7(i){return We(i).toLowerCase()}function h7(i){return We(i).toUpperCase()}function m7(i,l,f){if(i=We(i),i&&(f||l===n))return mw(i);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=vn(l),M=pw(y,w),_=gw(y,w)+1;return Xr(y,M,_).join("")}function p7(i,l,f){if(i=We(i),i&&(f||l===n))return i.slice(0,xw(i)+1);if(!i||!(l=Zt(l)))return i;var y=vn(i),w=gw(y,vn(l))+1;return Xr(y,0,w).join("")}function g7(i,l,f){if(i=We(i),i&&(f||l===n))return i.replace(mh,"");if(!i||!(l=Zt(l)))return i;var y=vn(i),w=pw(y,vn(l));return Xr(y,w).join("")}function y7(i,l){var f=re,y=ee;if(rt(l)){var w="separator"in l?l.separator:w;f="length"in l?Oe(l.length):f,y="omission"in l?Zt(l.omission):y}i=We(i);var M=i.length;if(Si(i)){var _=vn(i);M=_.length}if(f>=M)return i;var D=f-Ti(y);if(D<1)return y;var L=_?Xr(_,0,D).join(""):i.slice(0,D);if(w===n)return L+y;if(_&&(D+=L.length-D),pm(w)){if(i.slice(D).search(w)){var Y,q=L;for(w.global||(w=_h(w.source,We(j2.exec(w))+"g")),w.lastIndex=0;Y=w.exec(q);)var Q=Y.index;L=L.slice(0,Q===n?D:Q)}}else if(i.indexOf(Zt(w),D)!=D){var de=L.lastIndexOf(w);de>-1&&(L=L.slice(0,de))}return L+y}function x7(i){return i=We(i),i&&Oj.test(i)?i.replace(D2,HL):i}var v7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=We(i),l=f?n:l,l===n?WL(i)?XL(i):DL(i):i.match(l)||[]}var iT=_e(function(i,l){try{return Kt(i,n,l)}catch(f){return mm(f)?f:new Ae(f)}}),b7=pr(function(i,l){return ln(l,function(f){f=Wn(f),hr(i,f,dm(i[f],i))}),i});function w7(i){var l=i==null?0:i.length,f=be();return i=l?Je(i,function(y){if(typeof y[1]!="function")throw new cn(a);return[f(y[0]),y[1]]}):[],_e(function(y){for(var w=-1;++w<l;){var M=i[w];if(Kt(M[0],this,y))return Kt(M[1],this,y)}})}function S7(i){return HR(fn(i,m))}function vm(i){return function(){return i}}function T7(i,l){return i==null||i!==i?l:i}var C7=lS(),E7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function P7(i){return Vw(fn(i,m))}function A7(i,l){return Bw(i,fn(l,m))}var M7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),O7=_e(function(i,l){return function(f){return Wo(i,f,l)}});function wm(i,l,f){var y=gt(l),w=Ul(l,y);f==null&&!(rt(l)&&(w.length||!y.length))&&(f=l,l=i,i=this,w=Ul(l,gt(l)));var M=!(rt(f)&&"chain"in f)||!!f.chain,_=yr(i);return ln(w,function(D){var L=l[D];i[D]=L,_&&(i.prototype[D]=function(){var Y=this.__chain__;if(M||Y){var q=i(this.__wrapped__),Q=q.__actions__=Rt(this.__actions__);return Q.push({func:L,args:arguments,thisArg:i}),q.__chain__=Y,q}return L.apply(i,zr([this.value()],arguments))})}),i}function $7(){return vt._===this&&(vt._=nR),this}function Sm(){}function _7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var I7=Qh(Je),D7=Qh(cw),N7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):uF(i)}function k7(i){return function(l){return i==null?n:Os(i,l)}}var j7=uS(),L7=uS(!0);function Tm(){return[]}function Cm(){return!1}function R7(){return{}}function F7(){return""}function V7(){return!0}function B7(i,l){if(i=Oe(i),i<1||i>W)return[];var f=k,y=At(i,k);l=be(l),i-=k;for(var w=Mh(y,l);++f<i;)l(f);return w}function W7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(We(i)))}function U7(i){var l=++eR;return We(i)+l}var z7=Kl(function(i,l){return i+l},0),G7=em("ceil"),Y7=Kl(function(i,l){return i/l},1),H7=em("floor");function q7(i){return i&&i.length?Wl(i,Bt,Fh):n}function K7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function X7(i){return dw(i,Bt)}function Z7(i,l){return dw(i,be(l,2))}function J7(i){return i&&i.length?Wl(i,Bt,Uh):n}function Q7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var eB=Kl(function(i,l){return i*l},1),tB=em("round"),nB=Kl(function(i,l){return i-l},0);function rB(i){return i&&i.length?Ah(i,Bt):0}function sB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return P.after=P9,P.ary=LS,P.assign=hV,P.assignIn=ZS,P.assignInWith=lc,P.assignWith=mV,P.at=pV,P.before=RS,P.bind=dm,P.bindAll=b7,P.bindKey=FS,P.castArray=R9,P.chain=NS,P.chunk=HF,P.compact=qF,P.concat=KF,P.cond=w7,P.conforms=S7,P.constant=vm,P.countBy=r9,P.create=gV,P.curry=VS,P.curryRight=BS,P.debounce=WS,P.defaults=yV,P.defaultsDeep=xV,P.defer=A9,P.delay=M9,P.difference=XF,P.differenceBy=ZF,P.differenceWith=JF,P.drop=QF,P.dropRight=e8,P.dropRightWhile=t8,P.dropWhile=n8,P.fill=r8,P.filter=i9,P.flatMap=l9,P.flatMapDeep=c9,P.flatMapDepth=u9,P.flatten=$S,P.flattenDeep=s8,P.flattenDepth=i8,P.flip=O9,P.flow=C7,P.flowRight=E7,P.fromPairs=o8,P.functions=EV,P.functionsIn=PV,P.groupBy=f9,P.initial=l8,P.intersection=c8,P.intersectionBy=u8,P.intersectionWith=f8,P.invert=MV,P.invertBy=OV,P.invokeMap=h9,P.iteratee=bm,P.keyBy=m9,P.keys=gt,P.keysIn=Vt,P.map=nc,P.mapKeys=_V,P.mapValues=IV,P.matches=P7,P.matchesProperty=A7,P.memoize=sc,P.merge=DV,P.mergeWith=JS,P.method=M7,P.methodOf=O7,P.mixin=wm,P.negate=ic,P.nthArg=_7,P.omit=NV,P.omitBy=kV,P.once=$9,P.orderBy=p9,P.over=I7,P.overArgs=_9,P.overEvery=D7,P.overSome=N7,P.partial=hm,P.partialRight=US,P.partition=g9,P.pick=jV,P.pickBy=QS,P.property=oT,P.propertyOf=k7,P.pull=p8,P.pullAll=IS,P.pullAllBy=g8,P.pullAllWith=y8,P.pullAt=x8,P.range=j7,P.rangeRight=L7,P.rearg=I9,P.reject=v9,P.remove=v8,P.rest=D9,P.reverse=um,P.sampleSize=w9,P.set=RV,P.setWith=FV,P.shuffle=S9,P.slice=b8,P.sortBy=E9,P.sortedUniq=A8,P.sortedUniqBy=M8,P.split=l7,P.spread=N9,P.tail=O8,P.take=$8,P.takeRight=_8,P.takeRightWhile=I8,P.takeWhile=D8,P.tap=q8,P.throttle=k9,P.thru=tc,P.toArray=qS,P.toPairs=eT,P.toPairsIn=tT,P.toPath=W7,P.toPlainObject=XS,P.transform=VV,P.unary=j9,P.union=N8,P.unionBy=k8,P.unionWith=j8,P.uniq=L8,P.uniqBy=R8,P.uniqWith=F8,P.unset=BV,P.unzip=fm,P.unzipWith=DS,P.update=WV,P.updateWith=UV,P.values=Di,P.valuesIn=zV,P.without=V8,P.words=sT,P.wrap=L9,P.xor=B8,P.xorBy=W8,P.xorWith=U8,P.zip=z8,P.zipObject=G8,P.zipObjectDeep=Y8,P.zipWith=H8,P.entries=eT,P.entriesIn=tT,P.extend=ZS,P.extendWith=lc,wm(P,P),P.add=z7,P.attempt=iT,P.camelCase=qV,P.capitalize=nT,P.ceil=G7,P.clamp=GV,P.clone=F9,P.cloneDeep=B9,P.cloneDeepWith=W9,P.cloneWith=V9,P.conformsTo=U9,P.deburr=rT,P.defaultTo=T7,P.divide=Y7,P.endsWith=KV,P.eq=wn,P.escape=XV,P.escapeRegExp=ZV,P.every=s9,P.find=o9,P.findIndex=MS,P.findKey=vV,P.findLast=a9,P.findLastIndex=OS,P.findLastKey=bV,P.floor=H7,P.forEach=kS,P.forEachRight=jS,P.forIn=wV,P.forInRight=SV,P.forOwn=TV,P.forOwnRight=CV,P.get=gm,P.gt=z9,P.gte=G9,P.has=AV,P.hasIn=ym,P.head=_S,P.identity=Bt,P.includes=d9,P.indexOf=a8,P.inRange=YV,P.invoke=$V,P.isArguments=Is,P.isArray=Me,P.isArrayBuffer=Y9,P.isArrayLike=Ft,P.isArrayLikeObject=ct,P.isBoolean=H9,P.isBuffer=Zr,P.isDate=q9,P.isElement=K9,P.isEmpty=X9,P.isEqual=Z9,P.isEqualWith=J9,P.isError=mm,P.isFinite=Q9,P.isFunction=yr,P.isInteger=zS,P.isLength=oc,P.isMap=GS,P.isMatch=eV,P.isMatchWith=tV,P.isNaN=nV,P.isNative=rV,P.isNil=iV,P.isNull=sV,P.isNumber=YS,P.isObject=rt,P.isObjectLike=ot,P.isPlainObject=qo,P.isRegExp=pm,P.isSafeInteger=oV,P.isSet=HS,P.isString=ac,P.isSymbol=Jt,P.isTypedArray=Ii,P.isUndefined=aV,P.isWeakMap=lV,P.isWeakSet=cV,P.join=d8,P.kebabCase=JV,P.last=hn,P.lastIndexOf=h8,P.lowerCase=QV,P.lowerFirst=e7,P.lt=uV,P.lte=fV,P.max=q7,P.maxBy=K7,P.mean=X7,P.meanBy=Z7,P.min=J7,P.minBy=Q7,P.stubArray=Tm,P.stubFalse=Cm,P.stubObject=R7,P.stubString=F7,P.stubTrue=V7,P.multiply=eB,P.nth=m8,P.noConflict=$7,P.noop=Sm,P.now=rc,P.pad=t7,P.padEnd=n7,P.padStart=r7,P.parseInt=s7,P.random=HV,P.reduce=y9,P.reduceRight=x9,P.repeat=i7,P.replace=o7,P.result=LV,P.round=tB,P.runInContext=j,P.sample=b9,P.size=T9,P.snakeCase=a7,P.some=C9,P.sortedIndex=w8,P.sortedIndexBy=S8,P.sortedIndexOf=T8,P.sortedLastIndex=C8,P.sortedLastIndexBy=E8,P.sortedLastIndexOf=P8,P.startCase=c7,P.startsWith=u7,P.subtract=nB,P.sum=rB,P.sumBy=sB,P.template=f7,P.times=B7,P.toFinite=xr,P.toInteger=Oe,P.toLength=KS,P.toLower=d7,P.toNumber=mn,P.toSafeInteger=dV,P.toString=We,P.toUpper=h7,P.trim=m7,P.trimEnd=p7,P.trimStart=g7,P.truncate=y7,P.unescape=x7,P.uniqueId=U7,P.upperCase=v7,P.upperFirst=xm,P.each=kS,P.eachRight=jS,P.first=_S,wm(P,function(){var i={};return Vn(P,function(l,f){ze.call(P.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),P.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){P[i].placeholder=P}),ln(["drop","take"],function(i,l){ke.prototype[i]=function(f){f=f===n?1:mt(Oe(f),0);var y=this.__filtered__&&!l?new ke(this):this.clone();return y.__filtered__?y.__takeCount__=At(f,y.__takeCount__):y.__views__.push({size:At(f,k),type:i+(y.__dir__<0?"Right":"")}),y},ke.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),ln(["filter","map","takeWhile"],function(i,l){var f=l+1,y=f==ue||f==fe;ke.prototype[i]=function(w){var M=this.clone();return M.__iteratees__.push({iteratee:be(w,3),type:f}),M.__filtered__=M.__filtered__||y,M}}),ln(["head","last"],function(i,l){var f="take"+(l?"Right":"");ke.prototype[i]=function(){return this[f](1).value()[0]}}),ln(["initial","tail"],function(i,l){var f="drop"+(l?"":"Right");ke.prototype[i]=function(){return this.__filtered__?new ke(this):this[f](1)}}),ke.prototype.compact=function(){return this.filter(Bt)},ke.prototype.find=function(i){return this.filter(i).head()},ke.prototype.findLast=function(i){return this.reverse().find(i)},ke.prototype.invokeMap=_e(function(i,l){return typeof i=="function"?new ke(this):this.map(function(f){return Wo(f,i,l)})}),ke.prototype.reject=function(i){return this.filter(ic(be(i)))},ke.prototype.slice=function(i,l){i=Oe(i);var f=this;return f.__filtered__&&(i>0||l<0)?new ke(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),l!==n&&(l=Oe(l),f=l<0?f.dropRight(-l):f.take(l-i)),f)},ke.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},ke.prototype.toArray=function(){return this.take(k)},Vn(ke.prototype,function(i,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),y=/^(?:head|last)$/.test(l),w=P[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(P.prototype[l]=function(){var _=this.__wrapped__,D=y?[1]:arguments,L=_ instanceof ke,Y=D[0],q=L||Me(_),Q=function(Ne){var je=w.apply(P,zr([Ne],D));return y&&de?je[0]:je};q&&f&&typeof Y=="function"&&Y.length!=1&&(L=q=!1);var de=this.__chain__,ye=!!this.__actions__.length,Te=M&&!de,$e=L&&!ye;if(!M&&q){_=$e?_:new ke(this);var Ce=i.apply(_,D);return Ce.__actions__.push({func:tc,args:[Q],thisArg:n}),new un(Ce,de)}return Te&&$e?i.apply(this,D):(Ce=this.thru(Q),Te?y?Ce.value()[0]:Ce.value():Ce)})}),ln(["pop","push","shift","sort","splice","unshift"],function(i){var l=Al[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",y=/^(?:pop|shift)$/.test(i);P.prototype[i]=function(){var w=arguments;if(y&&!this.__chain__){var M=this.value();return l.apply(Me(M)?M:[],w)}return this[f](function(_){return l.apply(Me(_)?_:[],w)})}}),Vn(ke.prototype,function(i,l){var f=P[l];if(f){var y=f.name+"";ze.call(Ai,y)||(Ai[y]=[]),Ai[y].push({name:l,func:f})}}),Ai[ql(n,v).name]=[{name:"wrapper",func:n}],ke.prototype.clone=xR,ke.prototype.reverse=vR,ke.prototype.value=bR,P.prototype.at=K8,P.prototype.chain=X8,P.prototype.commit=Z8,P.prototype.next=J8,P.prototype.plant=e9,P.prototype.reverse=t9,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=n9,P.prototype.first=P.prototype.head,ko&&(P.prototype[ko]=Q8),P},Ci=ZL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o5)}(uo,uo.exports)),uo.exports}var hf=a5();/*!
|
|
652
652
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
653
653
|
* License - https://fontawesome.com/license (Commercial License)
|
|
654
654
|
* Copyright 2024 Fonticons, Inc.
|
|
655
|
-
*/const
|
|
655
|
+
*/const l5={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"]},c5={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"]},u5={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"]},f5={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"]},d5={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"]},h5={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"]},m5={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"]},mf={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"]},pf=O.createContext({});function gf(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const yf=typeof window<"u",Tx=yf?O.useLayoutEffect:O.useEffect,Ia=O.createContext(null),xf=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class p5 extends me.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=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=s-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function g5({children:e,isPresent:t,anchorX:n}){const r=O.useId(),s=O.useRef(null),o=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=O.useContext(xf);return O.useInsertionEffect(()=>{const{width:c,height:u,top:d,left:h,right:m}=o.current;if(t||!s.current||!c||!u)return;const p=n==="left"?`left: ${h}`:`right: ${m}`;s.current.dataset.motionPopId=r;const x=document.createElement("style");return a&&(x.nonce=a),document.head.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
656
656
|
[data-motion-pop-id="${r}"] {
|
|
657
657
|
position: absolute !important;
|
|
658
658
|
width: ${c}px !important;
|
|
@@ -660,14 +660,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
660
660
|
${p}px !important;
|
|
661
661
|
top: ${d}px !important;
|
|
662
662
|
}
|
|
663
|
-
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(p3,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const y3=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=gf(x3),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(g3,{isPresent:n,anchorX:c,children:e})),g.jsx(Ia.Provider,{value:m,children:e})};function x3(){return new Map}function Cx(e=!0){const t=O.useContext(Ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Da=e=>e.key||"";function Ex(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cx(a),h=O.useMemo(()=>Ex(e),[e]),m=a&&!u?[]:h.map(Da),p=O.useRef(!0),x=O.useRef(h),S=gf(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);Tx(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const D=Da(v[E]);m.includes(D)?S.delete(D):S.get(D)!==!0&&S.set(D,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let D=0;D<v.length;D++){const F=v[D],R=Da(F);m.includes(R)||(E.splice(D,0,F),C.push(F))}return o==="wait"&&C.length&&(E=C),A(Ex(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(pf);return g.jsx(g.Fragment,{children:v.map(E=>{const D=Da(E),F=a&&!u?!1:h===v||m.includes(D),R=()=>{if(S.has(D))S.set(D,!0);else return;let Y=!0;S.forEach(ee=>{ee||(Y=!1)}),Y&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y3,{isPresent:F,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:F?void 0:R,anchorX:c,children:E},D)})})},kt=e=>e;let Qs=kt,$r=kt;process.env.NODE_ENV!=="production"&&(Qs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$r=(e,t)=>{if(!e)throw new Error(t)});const v3={useManualTiming:!1},Na=["read","resolveKeyframes","update","preRender","render","postRender"],Px={value:null};function b3(e,t){let n=new Set,r=new Set,s=!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,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&Px.value&&Px.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const w3=40;function Ax(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Na.reduce((v,A)=>(v[A]=b3(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,w3),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Na.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,D=!1)=>(n||S(),C.schedule(I,E,D)),v},{}),cancel:v=>{for(let A=0;A<Na.length;A++)a[Na[A]].cancel(v)},state:s,steps:a}}const{schedule:He,cancel:_r,state:xt,steps:vf}=Ax(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Mx=O.createContext({strict:!1}),Ox={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"]},ei={};for(const e in Ox)ei[e]={isEnabled:t=>Ox[e].some(n=>!!t[n])};function S3(e){for(const t in e)ei[t]={...ei[t],...e[t]}}const T3=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 ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T3.has(e)}let $x=e=>!ka(e);function C3(e){e&&($x=t=>t.startsWith("on")?!ka(t):e(t))}try{C3(require("@emotion/is-prop-valid").default)}catch{}function E3(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($x(s)||n===!0&&ka(s)||!t&&!ka(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const _x=new Set;function ja(e,t,n){e||_x.has(t)||(console.warn(t),_x.add(t))}function P3(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ja(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const La=O.createContext({});function Ra(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...bf];function Fa(e){return Ra(e.animate)||wf.some(t=>fo(e[t]))}function Ix(e){return!!(Fa(e)||e.variants)}function A3(e,t){if(Fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fo(n)?n:void 0,animate:fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function M3(e){const{initial:t,animate:n}=A3(e,O.useContext(La));return O.useMemo(()=>({initial:t,animate:n}),[Dx(t),Dx(n)])}function Dx(e){return Array.isArray(e)?e.join(" "):e}const O3=Symbol.for("motionComponentSymbol");function ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $3(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ti(n)&&(n.current=r))},[t])}const{schedule:Sf}=Ax(queueMicrotask,!1),Tf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nx="data-"+Tf("framerAppearId"),kx=O.createContext({});function _3(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(La),u=O.useContext(Mx),d=O.useContext(Ia),h=O.useContext(xf).reducedMotion,m=O.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,x=O.useContext(kx);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&I3(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nx],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Tx(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Sf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function I3(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jx(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&ti(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function jx(e){if(e)return e.options.allowProjection!==!1?e.projection:jx(e.parent)}function D3({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&S3(e);function c(d,h){let m;const p={...O.useContext(xf),...d,layoutId:N3(d)},{isStatic:x}=p,S=M3(d),b=r(d,x);if(!x&&yf){k3(p,e);const T=j3(p);m=T.MeasureLayout,S.visualElement=_3(s,b,p,t,T.ProjectionNode)}return g.jsxs(La.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,$3(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[O3]=s,u}function N3({layoutId:e}){const t=O.useContext(pf).id;return t&&e!==void 0?t+"-"+e:e}function k3(e,t){const n=O.useContext(Mx).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?Qs(!1,r):$r(!1,r)}}function j3(e){const{drag:t,layout:n}=ei;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 Lx=e=>t=>typeof t=="string"&&t.startsWith(e),Cf=Lx("--"),L3=Lx("var(--"),Ef=e=>L3(e)?R3.test(e.split("/*")[0].trim()):!1,R3=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={};function F3(e){for(const t in e)ho[t]=e[t],Cf(t)&&(ho[t].isCSSVariable=!0)}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(ni);function Rx(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const Ct=e=>!!(e&&e.getVelocity),Fx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mo={...ri,transform:e=>Xn(0,1,e)},Va={...ri,default:1},po=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ir=po("deg"),In=po("%"),Se=po("px"),V3=po("vh"),B3=po("vw"),Vx={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},W3={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},U3={rotate:Ir,rotateX:Ir,rotateY:Ir,rotateZ:Ir,scale:Va,scaleX:Va,scaleY:Va,scaleZ:Va,skew:Ir,skewX:Ir,skewY:Ir,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:mo,originX:Vx,originY:Vx,originZ:Se},Bx={...ri,transform:Math.round},Pf={...W3,...U3,zIndex:Bx,size:Se,fillOpacity:mo,strokeOpacity:mo,numOctaves:Bx},z3={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G3=ni.length;function Y3(e,t,n){let r="",s=!0;for(let o=0;o<G3;o++){const a=ni[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=Fx(c,Pf[a]);if(!u){s=!1;const h=z3[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Af(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ls.has(u)){a=!0;continue}else if(Cf(u)){s[u]=d;continue}else{const h=Fx(d,Pf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=Y3(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 Mf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wx(e,t,n){for(const r in t)!Ct(t[r])&&!Rx(r,n)&&(e[r]=t[r])}function H3({transformTemplate:e},t){return O.useMemo(()=>{const n=Mf();return Af(n,t,e),Object.assign({},n.vars,n.style)},[t])}function q3(e,t){const n=e.style||{},r={};return Wx(r,n,e),Object.assign(r,H3(e,t)),r}function K3(e,t){const n={},r=q3(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 X3=["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 Of(e){return typeof e!="string"||e.includes("-")?!1:!!(X3.indexOf(e)>-1||/[A-Z]/u.test(e))}const Z3={offset:"stroke-dashoffset",array:"stroke-dasharray"},J3={offset:"strokeDashoffset",array:"strokeDasharray"};function Q3(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?Z3:J3;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Ux(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function e5(e,t,n){const r=Ux(t,e.x,e.width),s=Ux(n,e.y,e.height);return`${r} ${s}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Af(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=e5(S,s!==void 0?s:.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&&Q3(p,a,c,u,!1)}const zx=()=>({...Mf(),attrs:{}}),_f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t5(e,t,n,r){const s=O.useMemo(()=>{const o=zx();return $f(o,t,_f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wx(o,e.style,e),s.style={...o,...s.style}}return s}function n5(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Of(n)?t5:K3)(r,o,a,n),d=E3(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>Ct(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function Gx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function If(e,t,n,r){if(typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Df=e=>Array.isArray(e),r5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s5=e=>Df(e)?e[e.length-1]||0:e;function Ba(e){const t=Ct(e)?e.get():e;return r5(t)?t.toValue():t}function i5({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:o5(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Yx=e=>(t,n)=>{const r=O.useContext(La),s=O.useContext(Ia),o=()=>i5(e,t,r,s);return n?o():gf(o)};function o5(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Ba(o[p]);let{initial:a,animate:c}=e;const u=Fa(e),d=Ix(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"&&!Ra(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=If(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Nf(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(Ct(s[a])||t.style&&Ct(t.style[a])||Rx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const a5={useVisualState:Yx({scrapeMotionValuesFromProps:Nf,createRenderState:Mf})};function Hx(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 qx(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=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 Xx(e,t,n,r){qx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Kx.has(s)?s:Tf(s),t.attrs[s])}function Zx(e,t,n){const r=Nf(e,t,n);for(const s in e)if(Ct(e[s])||Ct(t[s])){const o=ni.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Jx=["x","y","width","height","cx","cy","r"],l5={useVisualState:Yx({scrapeMotionValuesFromProps:Zx,createRenderState:zx,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ls.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Jx.length;c++){const u=Jx[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Hx(n,r),He.render(()=>{$f(r,s,_f(n.tagName),e.transformTemplate),Xx(n,r)})})}})};function c5(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Of(r)?l5:a5,preloadedFeatures:e,useRender:n5(s),createVisualElement:t,Component:r};return D3(a)}}function go(e,t,n){const r=e.getProps();return If(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const Qx=new Set(["width","height","top","left","right","bottom",...ni]);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function Lf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rf{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>Lf(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e1(e,t){return t?e*(1e3/t):0}let Wa;function u5(){Wa=void 0}const Dn={now:()=>(Wa===void 0&&Dn.set(xt.isProcessing||v3.useManualTiming?xt.timestamp:performance.now()),Wa),set:e=>{Wa=e,queueMicrotask(u5)}},t1=30,f5=e=>!isNaN(parseFloat(e));class d5{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Dn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f5(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ja(!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 Rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>t1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,t1);return e1(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 yo(e,t){return new d5(e,t)}function h5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function m5(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=s5(o[a]);h5(e,a,c)}}function p5(e){return!!(Ct(e)&&e.add)}function Ff(e,t){const n=e.getValue("willChange");if(p5(n))return n.add(t)}function n1(e){return e.props[Nx]}function Vf(e){let t;return()=>(t===void 0&&(t=e()),t)}const g5=Vf(()=>window.ScrollTimeline!==void 0);class y5{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(s=>{if(g5()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),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 x5 extends y5{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Bf(e){return typeof e=="function"}function r1(e,t){e.timeline=t,e.onfinish=null}const Wf=e=>Array.isArray(e)&&typeof e[0]=="number",v5={linearEasing:void 0};function b5(e,t){const n=Vf(e);return()=>{var r;return(r=v5[t])!==null&&r!==void 0?r:n()}}const Ua=b5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(si(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function i1(e){return!!(typeof e=="function"&&Ua()||!e||typeof e=="string"&&(e in Uf||Ua())||Wf(e)||Array.isArray(e)&&e.every(i1))}const xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function o1(e,t){if(e)return typeof e=="function"&&Ua()?s1(e,t):Wf(e)?xo(e):Array.isArray(e)?e.map(n=>o1(n,t)||Uf.easeOut):Uf[e]}const a1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,w5=1e-7,S5=12;function T5(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=a1(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>w5&&++c<S5);return a}function vo(e,t,n,r){if(e===t&&n===r)return kt;const s=o=>T5(o,0,1,e,n);return o=>o===0||o===1?o:a1(s(o),t,r)}const l1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c1=e=>t=>1-e(1-t),u1=vo(.33,1.53,.69,.99),zf=c1(u1),f1=l1(zf),d1=e=>(e*=2)<1?.5*zf(e):.5*(2-Math.pow(2,-10*(e-1))),Gf=e=>1-Math.sin(Math.acos(e)),h1=c1(Gf),m1=l1(Gf),p1=e=>/^0[^.\s]+$/u.test(e);function C5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||p1(e):!0}const bo=e=>Math.round(e*1e5)/1e5,Yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E5(e){return e==null}const P5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>n=>!!(typeof n=="string"&&P5.test(n)&&n.startsWith(e)||t&&!E5(n)&&Object.prototype.hasOwnProperty.call(n,t)),g1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Yf);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},A5=e=>Xn(0,255,e),qf={...ri,transform:e=>Math.round(A5(e))},cs={test:Hf("rgb","red"),parse:g1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qf.transform(e)+", "+qf.transform(t)+", "+qf.transform(n)+", "+bo(mo.transform(r))+")"};function M5(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kf={test:Hf("#"),parse:M5,transform:cs.transform},ii={test:Hf("hsl","hue"),parse:g1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(bo(t))+", "+In.transform(bo(n))+", "+bo(mo.transform(r))+")"},Et={test:e=>cs.test(e)||Kf.test(e)||ii.test(e),parse:e=>cs.test(e)?cs.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cs.transform(e):ii.transform(e)},O5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(O5))===null||n===void 0?void 0:n.length)||0)>0}const y1="number",x1="color",_5="var",I5="var(",v1="${}",D5=/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 wo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(D5,u=>(Et.test(u)?(r.color.push(o),s.push(x1),n.push(Et.parse(u))):u.startsWith(I5)?(r.var.push(o),s.push(_5),n.push(u)):(r.number.push(o),s.push(y1),n.push(parseFloat(u))),++o,v1)).split(v1);return{values:n,split:c,indexes:r,types:s}}function b1(e){return wo(e).values}function w1(e){const{split:t,types:n}=wo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===y1?o+=bo(s[a]):c===x1?o+=Et.transform(s[a]):o+=s[a]}return o}}const N5=e=>typeof e=="number"?0:e;function k5(e){const t=b1(e);return w1(e)(t.map(N5))}const Dr={test:$5,parse:b1,createTransformer:w1,getAnimatableNone:k5},j5=new Set(["brightness","contrast","saturate","opacity"]);function L5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yf)||[];if(!r)return e;const s=n.replace(r,"");let o=j5.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const R5=/\b([a-z-]*)\(.*?\)/gu,Xf={...Dr,getAnimatableNone:e=>{const t=e.match(R5);return t?t.map(L5).join(" "):e}},F5={...Pf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Xf,WebkitFilter:Xf},S1=e=>F5[e];function T1(e,t){let n=S1(e);return n!==Xf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V5=new Set(["auto","none","0"]);function B5(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!V5.has(o)&&wo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=T1(n,s)}const us=e=>e*180/Math.PI,Zf=e=>{const t=us(Math.atan2(e[1],e[0]));return Jf(t)},W5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zf,rotateZ:Zf,skewX:e=>us(Math.atan(e[1])),skewY:e=>us(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jf=e=>(e=e%360,e<0&&(e+=360),e),C1=Zf,E1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),P1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:E1,scaleY:P1,scale:e=>(E1(e)+P1(e))/2,rotateX:e=>Jf(us(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(us(Math.atan2(-e[2],e[0]))),rotateZ:C1,rotate:C1,skewX:e=>us(Math.atan(e[4])),skewY:e=>us(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A1(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return A1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=U5,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=W5,s=c}if(!s)return A1(t);const o=r[t],a=s[1].split(",").map(G5);return typeof o=="function"?o(a):a[o]}const z5=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function G5(e){return parseFloat(e.trim())}const M1=e=>e===ri||e===Se,Y5=new Set(["x","y","z"]),H5=ni.filter(e=>!Y5.has(e));function q5(e){const t=[];return H5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oi={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})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};oi.translateX=oi.x,oi.translateY=oi.y;const fs=new Set;let ed=!1,td=!1;function O1(){if(td){const e=Array.from(fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=q5(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.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)})}td=!1,ed=!1,fs.forEach(e=>e.complete()),fs.clear()}function $1(){fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function K5(){$1(),O1()}class nd{constructor(t,n,r,s,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=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fs.add(this),ed||(ed=!0,He.read($1),He.resolveKeyframes(O1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.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),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z5(e){const t=X5.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const J5=4;function I1(e,t,n=1){$r(n<=J5,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=Z5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return _1(a)?parseFloat(a):a}return Ef(s)?I1(s,t,n+1):s}const D1=e=>t=>t.test(e),N1=[ri,Se,In,Ir,B3,V3,{test:e=>e==="auto",parse:e=>e}],k1=e=>N1.find(D1(e));class j1 extends nd{constructor(t,n,r,s,o){super(t,n,r,s,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(),Ef(d))){const h=I1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Qx.has(r)||t.length!==2)return;const[s,o]=t,a=k1(s),c=k1(o);if(a!==c)if(M1(a)&&M1(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 s=0;s<t.length;s++)C5(t[s])&&r.push(s);r.length&&B5(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=oi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=oi[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 L1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dr.test(e)||e==="0")&&!e.startsWith("url("));function Q5(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 e_(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=L1(s,t),c=L1(o,t);return Qs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Q5(e)||(n==="spring"||Bf(n))&&r}const t_=e=>e!==null;function za(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(t_),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const n_=40;class R1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>n_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!e_(t,r,s,o))if(a)this.options.duration=0;else{u&&u(za(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 rd=2e4;function F1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rd;)t+=n,r=e.next(t);return t>=rd?1/0:t}const tt=(e,t,n)=>e+(t-e)*n;function sd(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 r_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=sd(u,c,e+1/3),o=sd(u,c,e),a=sd(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ga(e,t){return n=>n>0?t:e}const id=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},s_=[Kf,cs,ii],i_=e=>s_.find(t=>t.test(e));function V1(e){const t=i_(e);if(Qs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ii&&(n=r_(n)),n}const B1=(e,t)=>{const n=V1(e),r=V1(t);if(!n||!r)return Ga(e,t);const s={...n};return o=>(s.red=id(n.red,r.red,o),s.green=id(n.green,r.green,o),s.blue=id(n.blue,r.blue,o),s.alpha=tt(n.alpha,r.alpha,o),cs.transform(s))},o_=(e,t)=>n=>t(e(n)),So=(...e)=>e.reduce(o_),od=new Set(["none","hidden"]);function a_(e,t){return od.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function l_(e,t){return n=>tt(e,t,n)}function ad(e){return typeof e=="number"?l_:typeof e=="string"?Ef(e)?Ga:Et.test(e)?B1:f_:Array.isArray(e)?W1:typeof e=="object"?Et.test(e)?B1:c_:Ga}function W1(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>ad(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function c_(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=ad(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function u_(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const f_=(e,t)=>{const n=Dr.createTransformer(t),r=wo(e),s=wo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?od.has(e)&&!s.values.length||od.has(t)&&!r.values.length?a_(e,t):So(W1(u_(r,s),s.values),n):(Qs(!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.`),Ga(e,t))};function U1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):ad(e)(e,t)}const d_=5;function z1(e,t,n){const r=Math.max(t-d_,0);return e1(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},G1=.001;function h_({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let s,o;Qs(e<=Nn(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,Zn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=ld(d,a),S=Math.exp(-m);return G1-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=ld(Math.pow(d,2),a);return(-s(d)+G1>0?-1:1)*((p-x)*S)/b}):(s=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=p_(s,o,c);if(e=Nn(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 m_=12;function p_(e,t,n){let r=n;for(let s=1;s<m_;s++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const g_=["duration","bounce"],y_=["stiffness","damping","mass"];function Y1(e,t){return t.some(n=>e[n]!==void 0)}function x_(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Y1(e,y_)&&Y1(e,g_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:nt.mass,stiffness:s,damping:o}}else{const n=h_(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function H1(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=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:x}=x_({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Zn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),s||(s=A?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const E=ld(v,b);C=D=>{const F=Math.exp(-b*v*D);return a-F*((S+b*v*T)/E*Math.sin(E*D)+T*Math.cos(E*D))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=D=>{const F=Math.exp(-b*v*D),R=Math.min(E*D,300);return a-F*((S+b*v*T)*Math.sinh(R)+E*T*Math.cosh(R))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const D=C(E);if(x)c.done=E>=m;else{let F=0;b<1&&(F=E===0?Nn(S):z1(C,E,D));const R=Math.abs(F)<=r,Y=Math.abs(a-D)<=s;c.done=R&&Y}return c.value=c.done?a:D,c},toString:()=>{const E=Math.min(F1(I),rd),D=s1(F=>I.next(E*F).value,E,30);return E+"ms "+D}};return I}function q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=R=>c!==void 0&&R<c||u!==void 0&&R>u,S=R=>c===void 0?u:u===void 0||Math.abs(c-R)<Math.abs(u-R)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=R=>-b*Math.exp(-R/r),C=R=>v+A(R),I=R=>{const Y=A(R),ee=C(R);p.done=Math.abs(Y)<=d,p.value=p.done?v:ee};let E,D;const F=R=>{x(p.value)&&(E=R,D=H1({keyframes:[p.value,S(p.value)],velocity:z1(C,R,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return F(0),{calculatedDuration:null,next:R=>{let Y=!1;return!D&&E===void 0&&(Y=!0,I(R),F(R)),E!==void 0&&R>=E?D.next(R-E):(!Y&&I(R),p)}}}const v_=vo(.42,0,1,1),b_=vo(0,0,.58,1),K1=vo(.42,0,.58,1),w_=e=>Array.isArray(e)&&typeof e[0]!="number",X1={linear:kt,easeIn:v_,easeInOut:K1,easeOut:b_,circIn:Gf,circInOut:m1,circOut:h1,backIn:zf,backInOut:f1,backOut:u1,anticipate:d1},Z1=e=>{if(Wf(e)){$r(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return vo(t,n,r,s)}else if(typeof e=="string")return $r(X1[e]!==void 0,`Invalid easing type '${e}'`),X1[e];return e};function S_(e,t,n){const r=[],s=n||U1,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=So(u,c)}r.push(c)}return r}function T_(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if($r(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=S_(t,r,s),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=si(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function C_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=si(0,t,r);e.push(tt(n,1,s))}}function E_(e){const t=[0];return C_(t,e.length-1),t}function P_(e,t){return e.map(n=>n*t)}function A_(e,t){return e.map(()=>t||K1).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=w_(r)?r.map(Z1):Z1(r),o={done:!1,value:t[0]},a=P_(n&&n.length===t.length?n:E_(t),e),c=T_(a,t,{ease:Array.isArray(s)?s:A_(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const M_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>_r(t),now:()=>xt.isProcessing?xt.timestamp:Dn.now()}},O_={decay:q1,inertia:q1,tween:To,keyframes:To,spring:H1},$_=e=>e/100;class cd extends R1{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:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||nd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),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:s=0,repeatType:o,velocity:a=0}=this.options,c=Bf(n)?n:O_[n]||To;let u,d;process.env.NODE_ENV!=="production"&&c!==To&&$r(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==To&&typeof t[0]!="number"&&(u=So($_,U1(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=F1(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}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:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:s,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:x,repeatType:S,repeatDelay:b,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 v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const R=Math.min(this.currentTime,h)/m;let Y=Math.floor(R),ee=R%1;!ee&&R>=1&&(ee=1),ee===1&&Y--,Y=Math.min(Y,x+1),!!(Y%2)&&(S==="reverse"?(ee=1-ee,b&&(ee-=b/m)):S==="mirror"&&(I=a)),C=Xn(0,1,ee)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:D}=E;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return F&&s!==void 0&&(E.value=za(u,this.options,s)),T&&T(E.value),F&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=M_,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):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 __=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=o1(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const D_=Vf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ya=10,N_=2e4;function k_(e){return Bf(e.type)||e.type==="spring"||!i1(e.ease)}function j_(e,t){const n=new cd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<N_;)r=n.sample(o),s.push(r.value),o+=Ya;return{times:void 0,keyframes:s,duration:o-Ya,ease:"linear"}}const J1={anticipate:d1,backInOut:f1,circInOut:m1};function L_(e){return e in J1}class Q1 extends R1{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new j1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ua()&&L_(o)&&(o=J1[o]),k_(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=j_(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=I_(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(r1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(za(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;r1(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:s,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,...x}=this.options,S=new cd({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Nn(this.time);d.setWithVelocity(S.sample(b-Ya).value,S.sample(b).value,Ya)}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:s,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 D_()&&r&&__.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}}const R_={type:"spring",stiffness:500,damping:25,restSpeed:10},F_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V_={type:"keyframes",duration:.8},B_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W_=(e,{keyframes:t})=>t.length>2?V_:ls.has(e)?e.startsWith("scale")?F_(t[1]):R_:B_;function U_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ud=(e,t,n,r={},s,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};U_(c)||(h={...h,...W_(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=za(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new x5([])}return!o&&Q1.supports(h)?new Q1(h):new cd(h)};function z_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ev(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&z_(h,m))continue;const S={delay:n,...kf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=n1(e);if(v){const A=window.MotionHandoffAnimation(v,m,He);A!==null&&(S.startTime=A,b=!0)}}Ff(e,m),p.start(ud(m,p,x,e.shouldReduceMotion&&Qx.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&m5(e,c)})}),d}function fd(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(ev(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return G_(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 G_(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(Y_).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(fd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Y_(e,t){return e.sortNodePosition(t)}function H_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>fd(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=fd(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(ev(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tv(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_=wf.length;function nv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nv(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=wf[n],s=e.props[r];(fo(s)||s===!1)&&(t[r]=s)}return t}const K_=[...bf].reverse(),X_=bf.length;function Z_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>H_(e,n,r)))}function J_(e){let t=Z_(e),n=rv(),r=!0;const s=u=>(d,h)=>{var m;const p=go(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=nv(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<X_;T++){const v=K_[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=fo(C),E=v===u?A.isActive:null;E===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const F=Q_(A.prevProp,C);let R=F||v===u&&A.isActive&&!D&&I||T>S&&I,Y=!1;const ee=Array.isArray(C)?C:[C];let Q=ee.reduce(s(v),{});E===!1&&(Q={});const{prevResolvedValues:fe={}}=A,oe={...fe,...Q},ce=z=>{R=!0,p.has(z)&&(Y=!0,p.delete(z)),A.needsAnimating[z]=!0;const U=e.getValue(z);U&&(U.liveStyle=!1)};for(const z in oe){const U=Q[z],K=fe[z];if(x.hasOwnProperty(z))continue;let $=!1;Df(U)&&Df(K)?$=!tv(U,K):$=U!==K,$?U!=null?ce(z):p.add(z):U!==void 0&&p.has(z)?ce(z):A.protectedKeys[z]=!0}A.prevProp=C,A.prevResolvedValues=Q,A.isActive&&(x={...x,...Q}),r&&e.blockInitialAnimation&&(R=!1),R&&(!(D&&F)||Y)&&m.push(...ee.map(z=>({animation:z,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=go(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.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=rv(),r=!0}}}function Q_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tv(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rv(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eI extends Nr{constructor(t){super(t),t.animationState||(t.animationState=J_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ra(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 tI=0;class nI extends Nr{constructor(){super(...arguments),this.id=tI++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 rI={animation:{Feature:eI},exit:{Feature:nI}},gn={x:!1,y:!1};function sv(){return gn.x||gn.y}function sI(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const iI=e=>t=>dd(t)&&e(t,Eo(t));function Po(e,t,n,r){return Co(e,t,iI(n),r)}function iv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aI(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 ov=1e-4,lI=1-ov,cI=1+ov,av=.01,uI=0-av,fI=0+av;function $t(e){return e.max-e.min}function dI(e,t,n){return Math.abs(e-t)<=n}function lv(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lI&&e.scale<=cI||isNaN(e.scale))&&(e.scale=1),(e.translate>=uI&&e.translate<=fI||isNaN(e.translate))&&(e.translate=0)}function Ao(e,t,n,r){lv(e.x,t.x,n.x,r?r.originX:void 0),lv(e.y,t.y,n.y,r?r.originY:void 0)}function cv(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function hI(e,t,n){cv(e.x,t.x,n.x),cv(e.y,t.y,n.y)}function uv(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Mo(e,t,n){uv(e.x,t.x,n.x),uv(e.y,t.y,n.y)}const fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:fv(),y:fv()}),dv=()=>({min:0,max:0}),lt=()=>({x:dv(),y:dv()});function rn(e){return[e("x"),e("y")]}function hd(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:n}){return!hd(e)||!hd(t)||!hd(n)}function hs(e){return md(e)||hv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hv(e){return mv(e.x)||mv(e.y)}function mv(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,s=t*r;return n+s}function pv(e,t,n,r,s){return s!==void 0&&(e=Ha(e,s,r)),Ha(e,n,r)+t}function pd(e,t=0,n=1,r,s){e.min=pv(e.min,t,n,r,s),e.max=pv(e.max,t,n,r,s)}function gv(e,{x:t,y:n}){pd(e.x,t.translate,t.scale,t.originPoint),pd(e.y,n.translate,n.scale,n.originPoint)}const yv=.999999999999,xv=1.0000000000001;function mI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;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&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gv(e,a)),r&&hs(o.latestValues)&&ci(e,o.latestValues))}t.x<xv&&t.x>yv&&(t.x=1),t.y<xv&&t.y>yv&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function vv(e,t,n,r,s=.5){const o=tt(e.min,e.max,s);pd(e,t,n,o,r)}function ci(e,t){vv(e.x,t.x,t.scaleX,t.scale,t.originX),vv(e.y,t.y,t.scaleY,t.scale,t.originY)}function bv(e,t){return iv(aI(e.getBoundingClientRect(),t))}function pI(e,t,n){const r=bv(e,n),{scroll:s}=t;return s&&(li(r.x,s.offset.x),li(r.y,s.offset.y)),r}const wv=({current:e})=>e?e.ownerDocument.defaultView:null,Sv=(e,t)=>Math.abs(e-t);function gI(e,t){const n=Sv(e.x,t.x),r=Sv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Tv{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=yd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=gI(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=xt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=gd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=yd(m.type==="pointercancel"?this.lastMoveEventInfo:gd(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!dd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Eo(t),c=gd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=xt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,yd(c,this.history)),this.removeListeners=So(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function gd(e,t){return t?{point:t(e.point)}:e}function Cv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Cv(e,Ev(t)),offset:Cv(e,yI(t)),velocity:xI(t,.1)}}function yI(e){return e[0]}function Ev(e){return e[e.length-1]}function xI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Ev(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vI(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 Pv(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 bI(e,{top:t,left:n,bottom:r,right:s}){return{x:Pv(e.x,n,s),y:Pv(e.y,t,r)}}function Av(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 wI(e,t){return{x:Av(e.x,t.x),y:Av(e.y,t.y)}}function SI(e,t){let n=.5;const r=$t(e),s=$t(t);return s>r?n=si(t.min,t.max-r,e.min):r>s&&(n=si(e.min,e.max-s,t.min)),Xn(0,1,n)}function TI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function CI(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:Mv(e,"left","right"),y:Mv(e,"top","bottom")}}function Mv(e,t,n){return{min:Ov(e,t),max:Ov(e,n)}}function Ov(e,t){return typeof e=="number"?e:e[t]||0}const EI=new WeakMap;class PI{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 s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sI(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 v=this.getAxisMotionValue(T).get()||0;if(In.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=$t(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&He.postRender(()=>S(h,m)),Ff(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=AI(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Tv(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:wv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);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:s}=this.getProps();if(!r||!qa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vI(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=bI(s.layoutBox,n):this.constraints=!1,this.elastic=CI(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=TI(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ti(t))return!1;const r=t.current;$r(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=pI(r,s.root,this.visualElement.getTransformPagePoint());let a=wI(s.layout.layoutBox,o);if(n){const c=n(oI(a));this.hasMutatedConstraints=!!c,c&&(a=iv(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,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=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,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 Ff(this.visualElement,t),r.start(ud(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(),s=r[n];return s||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:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.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(!ti(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=SI({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(tt(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;EI.set(this.visualElement,this);const t=this.visualElement.current,n=Po(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.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:s=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MI extends Nr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new PI(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 $v=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class OI extends Nr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Tv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:$v(t),onStart:$v(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&He.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=Po(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 Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _v(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=_v(e,t.target.x),r=_v(e,t.target.y);return`${n}% ${r}%`}},$I={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Dr.parse(e);if(s.length>5)return r;const o=Dr.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=tt(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};class _I extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;F3(II),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||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(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Iv(e){const[t,n]=Cx(),r=O.useContext(pf);return g.jsx(_I,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(kx),isPresent:t,safeToRemove:n})}const II={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:$I};function DI(e,t,n){const r=Ct(e)?e:yo(e);return r.start(ud("",r,t,n)),r.animation}function NI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kI=(e,t)=>e.depth-t.depth;class jI{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){Lf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kI),this.isDirty=!1,this.children.forEach(t)}}function LI(e,t){const n=Dn.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(_r(r),e(o-t))};return He.read(r,!0),()=>_r(r)}const Dv=["TopLeft","TopRight","BottomLeft","BottomRight"],RI=Dv.length,Nv=e=>typeof e=="string"?parseFloat(e):e,kv=e=>typeof e=="number"||Se.test(e);function FI(e,t,n,r,s,o){s?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,VI(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,BI(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<RI;a++){const c=`border${Dv[a]}Radius`;let u=jv(t,c),d=jv(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||kv(u)===kv(d)?(e[c]=Math.max(tt(Nv(u),Nv(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 jv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VI=Lv(0,.5,h1),BI=Lv(.5,.95,kt);function Lv(e,t,n){return r=>r<e?0:r>t?1:n(si(e,t,r))}function Rv(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Rv(e.x,t.x),Rv(e.y,t.y)}function Fv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vv(e,t,n,r,s){return e-=t,e=Ha(e,1/n,r),s!==void 0&&(e=Ha(e,1/s,r)),e}function WI(e,t=0,n=1,r=.5,s,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=Vv(e.min,t,n,c,s),e.max=Vv(e.max,t,n,c,s)}function Bv(e,t,[n,r,s],o,a){WI(e,t[n],t[r],t[s],t.scale,o,a)}const UI=["x","scaleX","originX"],zI=["y","scaleY","originY"];function Wv(e,t,n,r){Bv(e.x,t,UI,n?n.x:void 0,r?r.x:void 0),Bv(e.y,t,zI,n?n.y:void 0,r?r.y:void 0)}function Uv(e){return e.translate===0&&e.scale===1}function zv(e){return Uv(e.x)&&Uv(e.y)}function Gv(e,t){return e.min===t.min&&e.max===t.max}function GI(e,t){return Gv(e.x,t.x)&&Gv(e.y,t.y)}function Yv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hv(e,t){return Yv(e.x,t.x)&&Yv(e.y,t.y)}function qv(e){return $t(e.x)/$t(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YI{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(Lf(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=t.options;s===!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 HI(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}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:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}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 vd=["","X","Y","Z"],qI={visibility:"hidden"},Xv=1e3;let KI=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=n1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zv(r)}function Jv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=KI++,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(JI),this.nodes.forEach(r6),this.nodes.forEach(s6),this.nodes.forEach(QI)},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 jI)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rf),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=NI(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=LI(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(eb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||c6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Hv(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...kf(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||eb(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,_r(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(i6),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&&Zv(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(Qv);return}this.isUpdating||this.nodes.forEach(t6),this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.clearAllSnapshots();const c=Dn.now();xt.delta=Xn(0,1e3/60,c-xt.timestamp),xt.timestamp=c,xt.isProcessing=!0,vf.update.process(xt),vf.preRender.process(xt),vf.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e6),this.sharedNodes.forEach(o6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!zv(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hs(this.latestValues)||h)&&(s(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)),u6(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(f6))){const{scroll:h}=this.root;h&&(li(u.x,h.offset.x),li(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),li(u.x,m.offset.x),li(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&&ci(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hs(h.latestValues)&&ci(u,h.latestValues)}return hs(this.latestValues)&&ci(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||!hs(d.latestValues))continue;md(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Wv(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hs(this.latestValues)&&Wv(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!==xt.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=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,x.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(),hI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),gv(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,x.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||md(this.parent.latestValues)||hv(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===xt.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,x=this.treeScale.y;mI(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():(Fv(this.prevProjectionDelta.x,this.projectionDelta.x),Fv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(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=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(l6));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;tb(m.x,a.x,E),tb(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a6(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=DI(0,Xv,{...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(Xv),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&&ob(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),ci(c,h),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new YI),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&&bd("z",a,d,this.animationValues);for(let h=0;h<vd.length;h++)bd(`rotate${vd[h]}`,a,d,this.animationValues),bd(`skew${vd[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 qI;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ba(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 b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=HI(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.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 b in ho){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=ho[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Ba(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(Qv),this.root.sharedNodes.clear()}}}function XI(e){e.updateLayout()}function ZI(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:s}=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],x=$t(p);p.min=r[m].min,p.max=p.min+x}):ob(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=ai();Ao(c,r,n.layoutBox);const u=ai();a?Ao(u,e.applyTransform(s,!0),n.measuredBox):Ao(u,r,n.layoutBox);const d=!zv(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,x.layoutBox),Hv(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function JI(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 QI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e6(e){e.clearSnapshot()}function Qv(e){e.clearMeasurements()}function t6(e){e.isLayoutDirty=!1}function n6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r6(e){e.resolveTargetDelta()}function s6(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function o6(e){e.removeLeadSnapshot()}function tb(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 nb(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function a6(e,t,n,r){nb(e.x,t.x,n.x,r),nb(e.y,t.y,n.y,r)}function l6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c6={duration:.45,ease:[.4,0,.1,1]},rb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sb=rb("applewebkit/")&&!rb("chrome/")?Math.round:kt;function ib(e){e.min=sb(e.min),e.max=sb(e.max)}function u6(e){ib(e.x),ib(e.y)}function ob(e,t,n){return e==="position"||e==="preserve-aspect"&&!dI(qv(t),qv(n),.2)}function f6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d6=Jv({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},ab=Jv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new d6({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h6={pan:{Feature:OI},drag:{Feature:MI,ProjectionNode:ab,MeasureLayout:Iv}};function m6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lb(e,t){const n=m6(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function cb(e){return!(e.pointerType==="touch"||sv())}function p6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{if(!cb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{cb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}function ub(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class g6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=p6(t,(n,r)=>(ub(this.node,r,"Start"),s=>ub(this.node,s,"End"))))}unmount(){}}class y6 extends Nr{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(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const fb=(e,t)=>t?e===t?!0:fb(e,t.parentElement):!1,x6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v6(e){return x6.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function db(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const b6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=db(()=>{if($o.has(n))return;Sd(n,"down");const s=db(()=>{Sd(n,"up")}),o=()=>Sd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hb(e){return dd(e)&&!sv()}function w6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{const u=c.currentTarget;if(!hb(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!hb(x)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||fb(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>b6(d,s)),!v6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function mb(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 s="onTap"+(n==="End"?"":n),o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class S6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=w6(t,(n,r)=>(mb(this.node,r,"Start"),(s,{success:o})=>mb(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Cd=new WeakMap,T6=e=>{const t=Td.get(e.target);t&&t(e)},C6=e=>{e.forEach(T6)};function E6({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(C6,{root:e,...t})),r[s]}function P6(e,t,n){const r=E6(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const A6={some:0,all:1};class M6 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:A6[s]},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 P6(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(O6(t,n))&&this.startObserver()}unmount(){}}function O6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $6={inView:{Feature:M6},tap:{Feature:S6},focus:{Feature:y6},hover:{Feature:g6}},_6={layout:{ProjectionNode:ab,MeasureLayout:Iv}},Ed={current:null},pb={current:!1};function I6(){if(pb.current=!0,!!yf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addListener(t),t()}else Ed.current=!1}const D6=[...N1,Et,Dr],N6=e=>D6.find(D1(e)),k6=new WeakMap;function j6(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Ct(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ja(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(Ct(o))e.addValue(r,yo(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,yo(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class L6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=nd,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 x=Dn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,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=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Fa(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&Ct(S)&&S.set(u[x],!1)}}mount(t){this.current=t,k6.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)),pb.current||I6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ed.current,process.env.NODE_ENV!=="production"&&ja(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(),_r(this.notifyUpdate),_r(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=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=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,()=>{s(),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 ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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<gb.length;r++){const s=gb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=j6(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=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=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 s!=null&&(typeof s=="string"&&(_1(s)||p1(s))?s=parseFloat(s):!N6(s)&&Dr.test(n)&&(s=T1(t,n)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=If(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yb extends L6{constructor(){super(...arguments),this.KeyframeResolver=j1}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;Ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R6(e){return window.getComputedStyle(e)}class F6 extends yb{constructor(){super(...arguments),this.type="html",this.renderInstance=qx}readValueFromInstance(t,n){if(ls.has(n))return z5(t,n);{const r=R6(t),s=(Cf(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bv(t,n)}build(t,n,r){Af(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class V6 extends yb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Hx(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=S1(n);return r&&r.default||0}return n=Kx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zx(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Xx(t,n,r,s)}mount(t){this.isSVGTag=_f(t.tagName),super.mount(t)}}const B6=(e,t)=>Of(e)?new V6(t):new F6(t,{allowProjection:e!==O.Fragment}),W6=c5({...rI,...$6,...h6,..._6},B6),st=P3(W6),Pd={defaultColorScheme:"aqua",t:e=>e},xb=O.createContext(Pd),Ve=()=>O.useContext(xb),U6={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function z6(e,t){const[n,r]=O.useState([]),s=O.useCallback(({key:h,value:m,label:p,type:x,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let v;typeof t=="string"?v=U6[t]:v=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:x,icon:S,options:b,fn:v}])},[t,n]),o=O.useCallback(({key:h,value:m})=>{r(p=>p.map(x=>x.key===h?{...x,value:m}:x))},[]),a=O.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=O.useCallback(()=>{r([])},[]),u=O.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=O.useMemo(()=>({addFilter:s,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}))}),[s,o,a,c,n]);return{data:u,filterControl:d}}const vb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ve(),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=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.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:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-16 p-32",children:[g.jsxs("div",{className:"flex justify-between items-center gap-16",children:[g.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),g.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),g.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&g.jsx(xs,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(xs,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
663
|
+
`),()=>{document.head.removeChild(x)}},[t]),g.jsx(p5,{isPresent:t,childRef:s,sizeRef:o,children:me.cloneElement(e,{ref:s})})}const y5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:o,mode:a,anchorX:c})=>{const u=gf(x5),d=O.useId(),h=O.useCallback(p=>{u.set(p,!0);for(const x of u.values())if(!x)return;r&&r()},[u,r]),m=O.useMemo(()=>({id:d,initial:t,isPresent:n,custom:s,onExitComplete:h,register:p=>(u.set(p,!1),()=>u.delete(p))}),o?[Math.random(),h]:[n,h]);return O.useMemo(()=>{u.forEach((p,x)=>u.set(x,!1))},[n]),me.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(g5,{isPresent:n,anchorX:c,children:e})),g.jsx(Ia.Provider,{value:m,children:e})};function x5(){return new Map}function Cx(e=!0){const t=O.useContext(Ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,o=O.useId();O.useEffect(()=>{if(e)return s(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Da=e=>e.key||"";function Ex(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const Kn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync",propagate:a=!1,anchorX:c="left"})=>{const[u,d]=Cx(a),h=O.useMemo(()=>Ex(e),[e]),m=a&&!u?[]:h.map(Da),p=O.useRef(!0),x=O.useRef(h),S=gf(()=>new Map),[b,T]=O.useState(h),[v,A]=O.useState(h);Tx(()=>{p.current=!1,x.current=h;for(let E=0;E<v.length;E++){const N=Da(v[E]);m.includes(N)?S.delete(N):S.get(N)!==!0&&S.set(N,!1)}},[v,m.length,m.join("-")]);const C=[];if(h!==b){let E=[...h];for(let N=0;N<v.length;N++){const R=v[N],F=Da(R);m.includes(F)||(E.splice(N,0,R),C.push(R))}return o==="wait"&&C.length&&(E=C),A(Ex(E)),T(h),null}process.env.NODE_ENV!=="production"&&o==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:I}=O.useContext(pf);return g.jsx(g.Fragment,{children:v.map(E=>{const N=Da(E),R=a&&!u?!1:h===v||m.includes(N),F=()=>{if(S.has(N))S.set(N,!0);else return;let G=!0;S.forEach(re=>{re||(G=!1)}),G&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y5,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:E},N)})})},kt=e=>e;let Qs=kt,$r=kt;process.env.NODE_ENV!=="production"&&(Qs=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},$r=(e,t)=>{if(!e)throw new Error(t)});const v5={useManualTiming:!1},Na=["read","resolveKeyframes","update","preRender","render","postRender"],Px={value:null};function b5(e,t){let n=new Set,r=new Set,s=!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,x=!1)=>{const b=x&&s?n:r;return p&&a.add(m),b.has(m)||b.add(m),m},cancel:m=>{r.delete(m),a.delete(m)},process:m=>{if(c=m,s){o=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),t&&Px.value&&Px.value.frameloop[t].push(u),u=0,n.clear(),s=!1,o&&(o=!1,h.process(m))}};return h}const w5=40;function Ax(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Na.reduce((v,A)=>(v[A]=b5(o,t?A:void 0),v),{}),{read:c,resolveKeyframes:u,update:d,preRender:h,render:m,postRender:p}=a,x=()=>{const v=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(v-s.timestamp,w5),1),s.timestamp=v,s.isProcessing=!0,c.process(s),u.process(s),d.process(s),h.process(s),m.process(s),p.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(x))},S=()=>{n=!0,r=!0,s.isProcessing||e(x)};return{schedule:Na.reduce((v,A)=>{const C=a[A];return v[A]=(I,E=!1,N=!1)=>(n||S(),C.schedule(I,E,N)),v},{}),cancel:v=>{for(let A=0;A<Na.length;A++)a[Na[A]].cancel(v)},state:s,steps:a}}const{schedule:He,cancel:_r,state:xt,steps:vf}=Ax(typeof requestAnimationFrame<"u"?requestAnimationFrame:kt,!0),Mx=O.createContext({strict:!1}),Ox={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"]},ei={};for(const e in Ox)ei[e]={isEnabled:t=>Ox[e].some(n=>!!t[n])};function S5(e){for(const t in e)ei[t]={...ei[t],...e[t]}}const T5=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 ka(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T5.has(e)}let $x=e=>!ka(e);function C5(e){e&&($x=t=>t.startsWith("on")?!ka(t):e(t))}try{C5(require("@emotion/is-prop-valid").default)}catch{}function E5(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||($x(s)||n===!0&&ka(s)||!t&&!ka(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}const _x=new Set;function ja(e,t,n){e||_x.has(t)||(console.warn(t),_x.add(t))}function P5(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&ja(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const La=O.createContext({});function Ra(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function fo(e){return typeof e=="string"||Array.isArray(e)}const bf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wf=["initial",...bf];function Fa(e){return Ra(e.animate)||wf.some(t=>fo(e[t]))}function Ix(e){return!!(Fa(e)||e.variants)}function A5(e,t){if(Fa(e)){const{initial:n,animate:r}=e;return{initial:n===!1||fo(n)?n:void 0,animate:fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function M5(e){const{initial:t,animate:n}=A5(e,O.useContext(La));return O.useMemo(()=>({initial:t,animate:n}),[Dx(t),Dx(n)])}function Dx(e){return Array.isArray(e)?e.join(" "):e}const O5=Symbol.for("motionComponentSymbol");function ti(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function $5(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ti(n)&&(n.current=r))},[t])}const{schedule:Sf}=Ax(queueMicrotask,!1),Tf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nx="data-"+Tf("framerAppearId"),kx=O.createContext({});function _5(e,t,n,r,s){var o,a;const{visualElement:c}=O.useContext(La),u=O.useContext(Mx),d=O.useContext(Ia),h=O.useContext(xf).reducedMotion,m=O.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,x=O.useContext(kx);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&I5(m.current,n,s,x);const S=O.useRef(!1);O.useInsertionEffect(()=>{p&&S.current&&p.update(n,d)});const b=n[Nx],T=O.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,b)));return Tx(()=>{p&&(S.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Sf.render(p.render),T.current&&p.animationState&&p.animationState.animateChanges())}),O.useEffect(()=>{p&&(!T.current&&p.animationState&&p.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,b)}),T.current=!1))}),p}function I5(e,t,n,r){const{layoutId:s,layout:o,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:jx(e.parent)),e.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:!!a||c&&ti(c),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:d})}function jx(e){if(e)return e.options.allowProjection!==!1?e.projection:jx(e.parent)}function D5({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var o,a;e&&S5(e);function c(d,h){let m;const p={...O.useContext(xf),...d,layoutId:N5(d)},{isStatic:x}=p,S=M5(d),b=r(d,x);if(!x&&yf){k5(p,e);const T=j5(p);m=T.MeasureLayout,S.visualElement=_5(s,b,p,t,T.ProjectionNode)}return g.jsxs(La.Provider,{value:S,children:[m&&S.visualElement?g.jsx(m,{visualElement:S.visualElement,...p}):null,n(s,d,$5(b,S.visualElement,h),b,x,S.visualElement)]})}c.displayName=`motion.${typeof s=="string"?s:`create(${(a=(o=s.displayName)!==null&&o!==void 0?o:s.name)!==null&&a!==void 0?a:""})`}`;const u=O.forwardRef(c);return u[O5]=s,u}function N5({layoutId:e}){const t=O.useContext(pf).id;return t&&e!==void 0?t+"-"+e:e}function k5(e,t){const n=O.useContext(Mx).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?Qs(!1,r):$r(!1,r)}}function j5(e){const{drag:t,layout:n}=ei;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 Lx=e=>t=>typeof t=="string"&&t.startsWith(e),Cf=Lx("--"),L5=Lx("var(--"),Ef=e=>L5(e)?R5.test(e.split("/*")[0].trim()):!1,R5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ho={};function F5(e){for(const t in e)ho[t]=e[t],Cf(t)&&(ho[t].isCSSVariable=!0)}const ni=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ls=new Set(ni);function Rx(e,{layout:t,layoutId:n}){return ls.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ho[e]||e==="opacity")}const Ct=e=>!!(e&&e.getVelocity),Fx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xn=(e,t,n)=>n>t?t:n<e?e:n,ri={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mo={...ri,transform:e=>Xn(0,1,e)},Va={...ri,default:1},po=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ir=po("deg"),In=po("%"),Se=po("px"),V5=po("vh"),B5=po("vw"),Vx={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},W5={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},U5={rotate:Ir,rotateX:Ir,rotateY:Ir,rotateZ:Ir,scale:Va,scaleX:Va,scaleY:Va,scaleZ:Va,skew:Ir,skewX:Ir,skewY:Ir,distance:Se,translateX:Se,translateY:Se,translateZ:Se,x:Se,y:Se,z:Se,perspective:Se,transformPerspective:Se,opacity:mo,originX:Vx,originY:Vx,originZ:Se},Bx={...ri,transform:Math.round},Pf={...W5,...U5,zIndex:Bx,size:Se,fillOpacity:mo,strokeOpacity:mo,numOctaves:Bx},z5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G5=ni.length;function Y5(e,t,n){let r="",s=!0;for(let o=0;o<G5;o++){const a=ni[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=Fx(c,Pf[a]);if(!u){s=!1;const h=z5[a]||a;r+=`${h}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Af(e,t,n){const{style:r,vars:s,transformOrigin:o}=e;let a=!1,c=!1;for(const u in t){const d=t[u];if(ls.has(u)){a=!0;continue}else if(Cf(u)){s[u]=d;continue}else{const h=Fx(d,Pf[u]);u.startsWith("origin")?(c=!0,o[u]=h):r[u]=h}}if(t.transform||(a||n?r.transform=Y5(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 Mf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wx(e,t,n){for(const r in t)!Ct(t[r])&&!Rx(r,n)&&(e[r]=t[r])}function H5({transformTemplate:e},t){return O.useMemo(()=>{const n=Mf();return Af(n,t,e),Object.assign({},n.vars,n.style)},[t])}function q5(e,t){const n=e.style||{},r={};return Wx(r,n,e),Object.assign(r,H5(e,t)),r}function K5(e,t){const n={},r=q5(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 X5=["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 Of(e){return typeof e!="string"||e.includes("-")?!1:!!(X5.indexOf(e)>-1||/[A-Z]/u.test(e))}const Z5={offset:"stroke-dashoffset",array:"stroke-dasharray"},J5={offset:"strokeDashoffset",array:"strokeDasharray"};function Q5(e,t,n=1,r=0,s=!0){e.pathLength=1;const o=s?Z5:J5;e[o.offset]=Se.transform(-r);const a=Se.transform(t),c=Se.transform(n);e[o.array]=`${a} ${c}`}function Ux(e,t,n){return typeof e=="string"?e:Se.transform(t+n*e)}function e3(e,t,n){const r=Ux(t,e.x,e.width),s=Ux(n,e.y,e.height);return`${r} ${s}`}function $f(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:u=0,...d},h,m){if(Af(e,d,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:x,dimensions:S}=e;p.transform&&(S&&(x.transform=p.transform),delete p.transform),S&&(s!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=e3(S,s!==void 0?s:.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&&Q5(p,a,c,u,!1)}const zx=()=>({...Mf(),attrs:{}}),_f=e=>typeof e=="string"&&e.toLowerCase()==="svg";function t3(e,t,n,r){const s=O.useMemo(()=>{const o=zx();return $f(o,t,_f(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Wx(o,e.style,e),s.style={...o,...s.style}}return s}function n3(e=!1){return(n,r,s,{latestValues:o},a)=>{const u=(Of(n)?t3:K5)(r,o,a,n),d=E5(r,typeof n=="string",e),h=n!==O.Fragment?{...d,...u,ref:s}:{},{children:m}=r,p=O.useMemo(()=>Ct(m)?m.get():m,[m]);return O.createElement(n,{...h,children:p})}}function Gx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function If(e,t,n,r){if(typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,o]=Gx(r);t=t(n!==void 0?n:e.custom,s,o)}return t}const Df=e=>Array.isArray(e),r3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),s3=e=>Df(e)?e[e.length-1]||0:e;function Ba(e){const t=Ct(e)?e.get():e;return r3(t)?t.toValue():t}function i3({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,o){const a={latestValues:o3(r,s,o,e),renderState:t()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const Yx=e=>(t,n)=>{const r=O.useContext(La),s=O.useContext(Ia),o=()=>i3(e,t,r,s);return n?o():gf(o)};function o3(e,t,n,r){const s={},o=r(e,{});for(const p in o)s[p]=Ba(o[p]);let{initial:a,animate:c}=e;const u=Fa(e),d=Ix(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"&&!Ra(m)){const p=Array.isArray(m)?m:[m];for(let x=0;x<p.length;x++){const S=If(e,p[x]);if(S){const{transitionEnd:b,transition:T,...v}=S;for(const A in v){let C=v[A];if(Array.isArray(C)){const I=h?C.length-1:0;C=C[I]}C!==null&&(s[A]=C)}for(const A in b)s[A]=b[A]}}}return s}function Nf(e,t,n){var r;const{style:s}=e,o={};for(const a in s)(Ct(s[a])||t.style&&Ct(t.style[a])||Rx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}const a3={useVisualState:Yx({scrapeMotionValuesFromProps:Nf,createRenderState:Mf})};function Hx(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 qx(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=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 Xx(e,t,n,r){qx(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Kx.has(s)?s:Tf(s),t.attrs[s])}function Zx(e,t,n){const r=Nf(e,t,n);for(const s in e)if(Ct(e[s])||Ct(t[s])){const o=ni.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[o]=e[s]}return r}const Jx=["x","y","width","height","cx","cy","r"],l3={useVisualState:Yx({scrapeMotionValuesFromProps:Zx,createRenderState:zx,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let o=!!e.drag;if(!o){for(const c in s)if(ls.has(c)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let c=0;c<Jx.length;c++){const u=Jx[c];e[u]!==t[u]&&(a=!0)}a&&He.read(()=>{Hx(n,r),He.render(()=>{$f(r,s,_f(n.tagName),e.transformTemplate),Xx(n,r)})})}})};function c3(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...Of(r)?l3:a3,preloadedFeatures:e,useRender:n3(s),createVisualElement:t,Component:r};return D5(a)}}function go(e,t,n){const r=e.getProps();return If(r,t,n!==void 0?n:r.custom,e)}function kf(e,t){return e?e[t]||e.default||e:void 0}const Qx=new Set(["width","height","top","left","right","bottom",...ni]);function jf(e,t){e.indexOf(t)===-1&&e.push(t)}function Lf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Rf{constructor(){this.subscriptions=[]}add(t){return jf(this.subscriptions,t),()=>Lf(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let o=0;o<s;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function e1(e,t){return t?e*(1e3/t):0}let Wa;function u3(){Wa=void 0}const Dn={now:()=>(Wa===void 0&&Dn.set(xt.isProcessing||v5.useManualTiming?xt.timestamp:performance.now()),Wa),set:e=>{Wa=e,queueMicrotask(u3)}},t1=30,f3=e=>!isNaN(parseFloat(e));class d3{constructor(t,n={}){this.version="12.6.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const o=Dn.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Dn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=f3(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ja(!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 Rf);const r=this.events[t].add(n);return t==="change"?()=>{r(),He.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Dn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>t1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,t1);return e1(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 yo(e,t){return new d3(e,t)}function h3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yo(n))}function m3(e,t){const n=go(e,t);let{transitionEnd:r={},transition:s={},...o}=n||{};o={...o,...r};for(const a in o){const c=s3(o[a]);h3(e,a,c)}}function p3(e){return!!(Ct(e)&&e.add)}function Ff(e,t){const n=e.getValue("willChange");if(p3(n))return n.add(t)}function n1(e){return e.props[Nx]}function Vf(e){let t;return()=>(t===void 0&&(t=e()),t)}const g3=Vf(()=>window.ScrollTimeline!==void 0);class y3{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(s=>{if(g3()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,o)=>{s&&s(),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 x3 extends y3{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const Nn=e=>e*1e3,Zn=e=>e/1e3;function Bf(e){return typeof e=="function"}function r1(e,t){e.timeline=t,e.onfinish=null}const Wf=e=>Array.isArray(e)&&typeof e[0]=="number",v3={linearEasing:void 0};function b3(e,t){const n=Vf(e);return()=>{var r;return(r=v3[t])!==null&&r!==void 0?r:n()}}const Ua=b3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),si=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s1=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let o=0;o<s;o++)r+=e(si(0,s-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function i1(e){return!!(typeof e=="function"&&Ua()||!e||typeof e=="string"&&(e in Uf||Ua())||Wf(e)||Array.isArray(e)&&e.every(i1))}const xo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xo([0,.65,.55,1]),circOut:xo([.55,0,1,.45]),backIn:xo([.31,.01,.66,-.59]),backOut:xo([.33,1.53,.69,.99])};function o1(e,t){if(e)return typeof e=="function"&&Ua()?s1(e,t):Wf(e)?xo(e):Array.isArray(e)?e.map(n=>o1(n,t)||Uf.easeOut):Uf[e]}const a1=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,w3=1e-7,S3=12;function T3(e,t,n,r,s){let o,a,c=0;do a=t+(n-t)/2,o=a1(a,r,s)-e,o>0?n=a:t=a;while(Math.abs(o)>w3&&++c<S3);return a}function vo(e,t,n,r){if(e===t&&n===r)return kt;const s=o=>T3(o,0,1,e,n);return o=>o===0||o===1?o:a1(s(o),t,r)}const l1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,c1=e=>t=>1-e(1-t),u1=vo(.33,1.53,.69,.99),zf=c1(u1),f1=l1(zf),d1=e=>(e*=2)<1?.5*zf(e):.5*(2-Math.pow(2,-10*(e-1))),Gf=e=>1-Math.sin(Math.acos(e)),h1=c1(Gf),m1=l1(Gf),p1=e=>/^0[^.\s]+$/u.test(e);function C3(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||p1(e):!0}const bo=e=>Math.round(e*1e5)/1e5,Yf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E3(e){return e==null}const P3=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hf=(e,t)=>n=>!!(typeof n=="string"&&P3.test(n)&&n.startsWith(e)||t&&!E3(n)&&Object.prototype.hasOwnProperty.call(n,t)),g1=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,o,a,c]=r.match(Yf);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},A3=e=>Xn(0,255,e),qf={...ri,transform:e=>Math.round(A3(e))},cs={test:Hf("rgb","red"),parse:g1("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qf.transform(e)+", "+qf.transform(t)+", "+qf.transform(n)+", "+bo(mo.transform(r))+")"};function M3(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kf={test:Hf("#"),parse:M3,transform:cs.transform},ii={test:Hf("hsl","hue"),parse:g1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(bo(t))+", "+In.transform(bo(n))+", "+bo(mo.transform(r))+")"},Et={test:e=>cs.test(e)||Kf.test(e)||ii.test(e),parse:e=>cs.test(e)?cs.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cs.transform(e):ii.transform(e)},O3=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $3(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Yf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(O3))===null||n===void 0?void 0:n.length)||0)>0}const y1="number",x1="color",_3="var",I3="var(",v1="${}",D3=/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 wo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let o=0;const c=t.replace(D3,u=>(Et.test(u)?(r.color.push(o),s.push(x1),n.push(Et.parse(u))):u.startsWith(I3)?(r.var.push(o),s.push(_3),n.push(u)):(r.number.push(o),s.push(y1),n.push(parseFloat(u))),++o,v1)).split(v1);return{values:n,split:c,indexes:r,types:s}}function b1(e){return wo(e).values}function w1(e){const{split:t,types:n}=wo(e),r=t.length;return s=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],s[a]!==void 0){const c=n[a];c===y1?o+=bo(s[a]):c===x1?o+=Et.transform(s[a]):o+=s[a]}return o}}const N3=e=>typeof e=="number"?0:e;function k3(e){const t=b1(e);return w1(e)(t.map(N3))}const Dr={test:$3,parse:b1,createTransformer:w1,getAnimatableNone:k3},j3=new Set(["brightness","contrast","saturate","opacity"]);function L3(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Yf)||[];if(!r)return e;const s=n.replace(r,"");let o=j3.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+s+")"}const R3=/\b([a-z-]*)\(.*?\)/gu,Xf={...Dr,getAnimatableNone:e=>{const t=e.match(R3);return t?t.map(L3).join(" "):e}},F3={...Pf,color:Et,backgroundColor:Et,outlineColor:Et,fill:Et,stroke:Et,borderColor:Et,borderTopColor:Et,borderRightColor:Et,borderBottomColor:Et,borderLeftColor:Et,filter:Xf,WebkitFilter:Xf},S1=e=>F3[e];function T1(e,t){let n=S1(e);return n!==Xf&&(n=Dr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V3=new Set(["auto","none","0"]);function B3(e,t,n){let r=0,s;for(;r<e.length&&!s;){const o=e[r];typeof o=="string"&&!V3.has(o)&&wo(o).values.length&&(s=e[r]),r++}if(s&&n)for(const o of t)e[o]=T1(n,s)}const us=e=>e*180/Math.PI,Zf=e=>{const t=us(Math.atan2(e[1],e[0]));return Jf(t)},W3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Zf,rotateZ:Zf,skewX:e=>us(Math.atan(e[1])),skewY:e=>us(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Jf=e=>(e=e%360,e<0&&(e+=360),e),C1=Zf,E1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),P1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),U3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:E1,scaleY:P1,scale:e=>(E1(e)+P1(e))/2,rotateX:e=>Jf(us(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(us(Math.atan2(-e[2],e[0]))),rotateZ:C1,rotate:C1,skewX:e=>us(Math.atan(e[4])),skewY:e=>us(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function A1(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return A1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=U3,s=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=W3,s=c}if(!s)return A1(t);const o=r[t],a=s[1].split(",").map(G3);return typeof o=="function"?o(a):a[o]}const z3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function G3(e){return parseFloat(e.trim())}const M1=e=>e===ri||e===Se,Y3=new Set(["x","y","z"]),H3=ni.filter(e=>!Y3.has(e));function q3(e){const t=[];return H3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const oi={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})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};oi.translateX=oi.x,oi.translateY=oi.y;const fs=new Set;let ed=!1,td=!1;function O1(){if(td){const e=Array.from(fs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=q3(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.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)})}td=!1,ed=!1,fs.forEach(e=>e.complete()),fs.clear()}function $1(){fs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(td=!0)})}function K3(){$1(),O1()}class nd{constructor(t,n,r,s,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=s,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fs.add(this),ed||(ed=!0,He.read($1),He.resolveKeyframes(O1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=s==null?void 0:s.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),s&&a===void 0&&s.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const _1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),X3=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Z3(e){const t=X3.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}const J3=4;function I1(e,t,n=1){$r(n<=J3,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,s]=Z3(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return _1(a)?parseFloat(a):a}return Ef(s)?I1(s,t,n+1):s}const D1=e=>t=>t.test(e),N1=[ri,Se,In,Ir,B5,V5,{test:e=>e==="auto",parse:e=>e}],k1=e=>N1.find(D1(e));class j1 extends nd{constructor(t,n,r,s,o){super(t,n,r,s,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(),Ef(d))){const h=I1(d,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Qx.has(r)||t.length!==2)return;const[s,o]=t,a=k1(s),c=k1(o);if(a!==c)if(M1(a)&&M1(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 s=0;s<t.length;s++)C3(t[s])&&r.push(s);r.length&&B3(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=oi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=s.length-1,c=s[a];s[a]=oi[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 L1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dr.test(e)||e==="0")&&!e.startsWith("url("));function Q3(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 e_(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=L1(s,t),c=L1(o,t);return Qs(a===c,`You are trying to animate ${t} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:Q3(e)||(n==="spring"||Bf(n))&&r}const t_=e=>e!==null;function za(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(t_),o=t&&n!=="loop"&&t%2===1?0:s.length-1;return!o||r===void 0?s[o]:r}const n_=40;class R1{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Dn.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>n_?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K3(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Dn.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:o,delay:a,onComplete:c,onUpdate:u,isGenerator:d}=this.options;if(!d&&!e_(t,r,s,o))if(a)this.options.duration=0;else{u&&u(za(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 rd=2e4;function F1(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rd;)t+=n,r=e.next(t);return t>=rd?1/0:t}const tt=(e,t,n)=>e+(t-e)*n;function sd(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 r_({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,o=0,a=0;if(!t)s=o=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;s=sd(u,c,e+1/3),o=sd(u,c,e),a=sd(u,c,e-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ga(e,t){return n=>n>0?t:e}const id=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},s_=[Kf,cs,ii],i_=e=>s_.find(t=>t.test(e));function V1(e){const t=i_(e);if(Qs(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ii&&(n=r_(n)),n}const B1=(e,t)=>{const n=V1(e),r=V1(t);if(!n||!r)return Ga(e,t);const s={...n};return o=>(s.red=id(n.red,r.red,o),s.green=id(n.green,r.green,o),s.blue=id(n.blue,r.blue,o),s.alpha=tt(n.alpha,r.alpha,o),cs.transform(s))},o_=(e,t)=>n=>t(e(n)),So=(...e)=>e.reduce(o_),od=new Set(["none","hidden"]);function a_(e,t){return od.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function l_(e,t){return n=>tt(e,t,n)}function ad(e){return typeof e=="number"?l_:typeof e=="string"?Ef(e)?Ga:Et.test(e)?B1:f_:Array.isArray(e)?W1:typeof e=="object"?Et.test(e)?B1:c_:Ga}function W1(e,t){const n=[...e],r=n.length,s=e.map((o,a)=>ad(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=s[a](o);return n}}function c_(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=ad(e[s])(e[s],t[s]));return s=>{for(const o in r)n[o]=r[o](s);return n}}function u_(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],c=e.indexes[a][s[a]],u=(n=e.values[c])!==null&&n!==void 0?n:0;r[o]=u,s[a]++}return r}const f_=(e,t)=>{const n=Dr.createTransformer(t),r=wo(e),s=wo(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?od.has(e)&&!s.values.length||od.has(t)&&!r.values.length?a_(e,t):So(W1(u_(r,s),s.values),n):(Qs(!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.`),Ga(e,t))};function U1(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?tt(e,t,n):ad(e)(e,t)}const d_=5;function z1(e,t,n){const r=Math.max(t-d_,0);return e1(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},G1=.001;function h_({duration:e=nt.duration,bounce:t=nt.bounce,velocity:n=nt.velocity,mass:r=nt.mass}){let s,o;Qs(e<=Nn(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,Zn(e)),a<1?(s=d=>{const h=d*a,m=h*e,p=h-n,x=ld(d,a),S=Math.exp(-m);return G1-p/x*S},o=d=>{const m=d*a*e,p=m*n+n,x=Math.pow(a,2)*Math.pow(d,2)*e,S=Math.exp(-m),b=ld(Math.pow(d,2),a);return(-s(d)+G1>0?-1:1)*((p-x)*S)/b}):(s=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=p_(s,o,c);if(e=Nn(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 m_=12;function p_(e,t,n){let r=n;for(let s=1;s<m_;s++)r=r-e(r)/t(r);return r}function ld(e,t){return e*Math.sqrt(1-t*t)}const g_=["duration","bounce"],y_=["stiffness","damping","mass"];function Y1(e,t){return t.some(n=>e[n]!==void 0)}function x_(e){let t={velocity:nt.velocity,stiffness:nt.stiffness,damping:nt.damping,mass:nt.mass,isResolvedFromDuration:!1,...e};if(!Y1(e,y_)&&Y1(e,g_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,o=2*Xn(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:nt.mass,stiffness:s,damping:o}}else{const n=h_(e);t={...t,...n,mass:nt.mass},t.isResolvedFromDuration=!0}return t}function H1(e=nt.visualDuration,t=nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=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:x}=x_({...n,velocity:-Zn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Zn(Math.sqrt(u/h)),A=Math.abs(T)<5;r||(r=A?nt.restSpeed.granular:nt.restSpeed.default),s||(s=A?nt.restDelta.granular:nt.restDelta.default);let C;if(b<1){const E=ld(v,b);C=N=>{const R=Math.exp(-b*v*N);return a-R*((S+b*v*T)/E*Math.sin(E*N)+T*Math.cos(E*N))}}else if(b===1)C=E=>a-Math.exp(-v*E)*(T+(S+v*T)*E);else{const E=v*Math.sqrt(b*b-1);C=N=>{const R=Math.exp(-b*v*N),F=Math.min(E*N,300);return a-R*((S+b*v*T)*Math.sinh(F)+E*T*Math.cosh(F))/E}}const I={calculatedDuration:x&&m||null,next:E=>{const N=C(E);if(x)c.done=E>=m;else{let R=0;b<1&&(R=E===0?Nn(S):z1(C,E,N));const F=Math.abs(R)<=r,G=Math.abs(a-N)<=s;c.done=F&&G}return c.value=c.done?a:N,c},toString:()=>{const E=Math.min(F1(I),rd),N=s1(R=>I.next(E*R).value,E,30);return E+"ms "+N}};return I}function q1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:u,restDelta:d=.5,restSpeed:h}){const m=e[0],p={done:!1,value:m},x=F=>c!==void 0&&F<c||u!==void 0&&F>u,S=F=>c===void 0?u:u===void 0||Math.abs(c-F)<Math.abs(u-F)?c:u;let b=n*t;const T=m+b,v=a===void 0?T:a(T);v!==T&&(b=v-m);const A=F=>-b*Math.exp(-F/r),C=F=>v+A(F),I=F=>{const G=A(F),re=C(F);p.done=Math.abs(G)<=d,p.value=p.done?v:re};let E,N;const R=F=>{x(p.value)&&(E=F,N=H1({keyframes:[p.value,S(p.value)],velocity:z1(C,F,p.value),damping:s,stiffness:o,restDelta:d,restSpeed:h}))};return R(0),{calculatedDuration:null,next:F=>{let G=!1;return!N&&E===void 0&&(G=!0,I(F),R(F)),E!==void 0&&F>=E?N.next(F-E):(!G&&I(F),p)}}}const v_=vo(.42,0,1,1),b_=vo(0,0,.58,1),K1=vo(.42,0,.58,1),w_=e=>Array.isArray(e)&&typeof e[0]!="number",X1={linear:kt,easeIn:v_,easeInOut:K1,easeOut:b_,circIn:Gf,circInOut:m1,circOut:h1,backIn:zf,backInOut:f1,backOut:u1,anticipate:d1},Z1=e=>{if(Wf(e)){$r(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,s]=e;return vo(t,n,r,s)}else if(typeof e=="string")return $r(X1[e]!==void 0,`Invalid easing type '${e}'`),X1[e];return e};function S_(e,t,n){const r=[],s=n||U1,o=e.length-1;for(let a=0;a<o;a++){let c=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||kt:t;c=So(u,c)}r.push(c)}return r}function T_(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const o=e.length;if($r(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=S_(t,r,s),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=si(e[m],e[m+1],h);return c[m](p)};return n?h=>d(Xn(e[0],e[o-1],h)):d}function C_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=si(0,t,r);e.push(tt(n,1,s))}}function E_(e){const t=[0];return C_(t,e.length-1),t}function P_(e,t){return e.map(n=>n*t)}function A_(e,t){return e.map(()=>t||K1).splice(0,e.length-1)}function To({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=w_(r)?r.map(Z1):Z1(r),o={done:!1,value:t[0]},a=P_(n&&n.length===t.length?n:E_(t),e),c=T_(a,t,{ease:Array.isArray(s)?s:A_(t,s)});return{calculatedDuration:e,next:u=>(o.value=c(u),o.done=u>=e,o)}}const M_=e=>{const t=({timestamp:n})=>e(n);return{start:()=>He.update(t,!0),stop:()=>_r(t),now:()=>xt.isProcessing?xt.timestamp:Dn.now()}},O_={decay:q1,inertia:q1,tween:To,keyframes:To,spring:H1},$_=e=>e/100;class cd extends R1{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:s,keyframes:o}=this.options,a=(s==null?void 0:s.KeyframeResolver)||nd,c=(u,d)=>this.onKeyframesResolved(u,d);this.resolver=new a(o,c,n,r,s),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:s=0,repeatType:o,velocity:a=0}=this.options,c=Bf(n)?n:O_[n]||To;let u,d;process.env.NODE_ENV!=="production"&&c!==To&&$r(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c!==To&&typeof t[0]!="number"&&(u=So($_,U1(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=F1(h));const{calculatedDuration:m}=h,p=m+s,x=p*(r+1)-s;return{generator:h,mirroredGenerator:d,mapPercentToKeyframes:u,calculatedDuration:m,resolvedDuration:p,totalDuration:x}}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:s,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:x,repeatType:S,repeatDelay:b,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 v=this.currentTime-p*(this.speed>=0?1:-1),A=this.speed>=0?v<0:v>h;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let C=this.currentTime,I=o;if(x){const F=Math.min(this.currentTime,h)/m;let G=Math.floor(F),re=F%1;!re&&F>=1&&(re=1),re===1&&G--,G=Math.min(G,x+1),!!(G%2)&&(S==="reverse"?(re=1-re,b&&(re-=b/m)):S==="mirror"&&(I=a)),C=Xn(0,1,re)*m}const E=A?{done:!1,value:u[0]}:I.next(C);c&&(E.value=c(E.value));let{done:N}=E;!A&&d!==null&&(N=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return R&&s!==void 0&&(E.value=za(u,this.options,s)),T&&T(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Zn(t.calculatedDuration):0}get time(){return Zn(this.currentTime)}set time(t){t=Nn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=M_,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):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 __=new Set(["opacity","clipPath","filter","transform"]);function I_(e,t,n,{delay:r=0,duration:s=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:u}={}){const d={[t]:n};u&&(d.offset=u);const h=o1(c,s);return Array.isArray(h)&&(d.easing=h),e.animate(d,{delay:r,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const D_=Vf(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ya=10,N_=2e4;function k_(e){return Bf(e.type)||e.type==="spring"||!i1(e.ease)}function j_(e,t){const n=new cd({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let o=0;for(;!r.done&&o<N_;)r=n.sample(o),s.push(r.value),o+=Ya;return{times:void 0,keyframes:s,duration:o-Ya,ease:"linear"}}const J1={anticipate:d1,backInOut:f1,circInOut:m1};function L_(e){return e in J1}class Q1 extends R1{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:o}=this.options;this.resolver=new j1(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:o,type:a,motionValue:c,name:u,startTime:d}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&Ua()&&L_(o)&&(o=J1[o]),k_(this.options)){const{onComplete:m,onUpdate:p,motionValue:x,element:S,...b}=this.options,T=j_(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,s=T.times,o=T.ease,a="keyframes"}const h=I_(c.owner.current,u,t,{...this.options,duration:r,times:s,ease:o});return h.startTime=d??this.calcStartTime(),this.pendingTimeline?(r1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(za(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Nn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return kt;const{animation:r}=n;r1(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:s,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,...x}=this.options,S=new cd({...x,keyframes:r,duration:s,type:o,ease:a,times:c,isGenerator:!0}),b=Nn(this.time);d.setWithVelocity(S.sample(b-Ya).value,S.sample(b).value,Ya)}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:s,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 D_()&&r&&__.has(r)&&(r!=="transform"||!d)&&!u&&!s&&o!=="mirror"&&a!==0&&c!=="inertia"}}const R_={type:"spring",stiffness:500,damping:25,restSpeed:10},F_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V_={type:"keyframes",duration:.8},B_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},W_=(e,{keyframes:t})=>t.length>2?V_:ls.has(e)?e.startsWith("scale")?F_(t[1]):R_:B_;function U_({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:c,from:u,elapsed:d,...h}){return!!Object.keys(h).length}const ud=(e,t,n,r={},s,o)=>a=>{const c=kf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Nn(u);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:p=>{t.set(p),c.onUpdate&&c.onUpdate(p)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:o?void 0:s};U_(c)||(h={...h,...W_(e,h)}),h.duration&&(h.duration=Nn(h.duration)),h.repeatDelay&&(h.repeatDelay=Nn(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),h.allowFlatten=!c.type&&!c.ease,m&&!o&&t.get()!==void 0){const p=za(h.keyframes,c);if(p!==void 0)return He.update(()=>{h.onUpdate(p),h.onComplete()}),new x3([])}return!o&&Q1.supports(h)?new Q1(h):new cd(h)};function z_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ev(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:c,...u}=t;r&&(a=r);const d=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const m in u){const p=e.getValue(m,(o=e.latestValues[m])!==null&&o!==void 0?o:null),x=u[m];if(x===void 0||h&&z_(h,m))continue;const S={delay:n,...kf(a||{},m)};let b=!1;if(window.MotionHandoffAnimation){const v=n1(e);if(v){const A=window.MotionHandoffAnimation(v,m,He);A!==null&&(S.startTime=A,b=!0)}}Ff(e,m),p.start(ud(m,p,x,e.shouldReduceMotion&&Qx.has(m)?{type:!1}:S,e,b));const T=p.animation;T&&d.push(T)}return c&&Promise.all(d).then(()=>{He.update(()=>{c&&m3(e,c)})}),d}function fd(e,t,n={}){var r;const s=go(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const a=s?()=>Promise.all(ev(e,s,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:p}=o;return G_(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 G_(e,t,n=0,r=0,s=1,o){const a=[],c=(e.variantChildren.size-1)*r,u=s===1?(d=0)=>d*r:(d=0)=>c-d*r;return Array.from(e.variantChildren).sort(Y_).forEach((d,h)=>{d.notify("AnimationStart",t),a.push(fd(d,t,{...o,delay:n+u(h)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Y_(e,t){return e.sortNodePosition(t)}function H_(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(o=>fd(e,o,n));r=Promise.all(s)}else if(typeof t=="string")r=fd(e,t,n);else{const s=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(ev(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function tv(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_=wf.length;function nv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?nv(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=wf[n],s=e.props[r];(fo(s)||s===!1)&&(t[r]=s)}return t}const K_=[...bf].reverse(),X_=bf.length;function Z_(e){return t=>Promise.all(t.map(({animation:n,options:r})=>H_(e,n,r)))}function J_(e){let t=Z_(e),n=rv(),r=!0;const s=u=>(d,h)=>{var m;const p=go(e,h,u==="exit"?(m=e.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(p){const{transition:x,transitionEnd:S,...b}=p;d={...d,...b,...S}}return d};function o(u){t=u(e)}function a(u){const{props:d}=e,h=nv(e.parent)||{},m=[],p=new Set;let x={},S=1/0;for(let T=0;T<X_;T++){const v=K_[T],A=n[v],C=d[v]!==void 0?d[v]:h[v],I=fo(C),E=v===u?A.isActive:null;E===!1&&(S=T);let N=C===h[v]&&C!==d[v]&&I;if(N&&r&&e.manuallyAnimateOnMount&&(N=!1),A.protectedKeys={...x},!A.isActive&&E===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=Q_(A.prevProp,C);let F=R||v===u&&A.isActive&&!N&&I||T>S&&I,G=!1;const re=Array.isArray(C)?C:[C];let ee=re.reduce(s(v),{});E===!1&&(ee={});const{prevResolvedValues:le={}}=A,oe={...le,...ee},ue=U=>{F=!0,p.has(U)&&(G=!0,p.delete(U)),A.needsAnimating[U]=!0;const W=e.getValue(U);W&&(W.liveStyle=!1)};for(const U in oe){const W=ee[U],K=le[U];if(x.hasOwnProperty(U))continue;let $=!1;Df(W)&&Df(K)?$=!tv(W,K):$=W!==K,$?W!=null?ue(U):p.add(U):W!==void 0&&p.has(U)?ue(U):A.protectedKeys[U]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&R)||G)&&m.push(...re.map(U=>({animation:U,options:{type:v}})))}if(p.size){const T={};if(typeof d.initial!="boolean"){const v=go(e,Array.isArray(d.initial)?d.initial[0]:d.initial);v&&v.transition&&(T.transition=v.transition)}p.forEach(v=>{const A=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),T[v]=A??null}),m.push({animation:T})}let b=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(m):Promise.resolve()}function c(u,d){var h;if(n[u].isActive===d)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(p=>{var x;return(x=p.animationState)===null||x===void 0?void 0:x.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=rv(),r=!0}}}function Q_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tv(t,e):!1}function ds(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rv(){return{animate:ds(!0),whileInView:ds(),whileHover:ds(),whileTap:ds(),whileDrag:ds(),whileFocus:ds(),exit:ds()}}class Nr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class eI extends Nr{constructor(t){super(t),t.animationState||(t.animationState=J_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ra(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 tI=0;class nI extends Nr{constructor(){super(...arguments),this.id=tI++}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 s=this.node.animationState.setActive("exit",!t);n&&!t&&s.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 rI={animation:{Feature:eI},exit:{Feature:nI}},gn={x:!1,y:!1};function sv(){return gn.x||gn.y}function sI(e){return e==="x"||e==="y"?gn[e]?null:(gn[e]=!0,()=>{gn[e]=!1}):gn.x||gn.y?null:(gn.x=gn.y=!0,()=>{gn.x=gn.y=!1})}function Co(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const dd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Eo(e){return{point:{x:e.pageX,y:e.pageY}}}const iI=e=>t=>dd(t)&&e(t,Eo(t));function Po(e,t,n,r){return Co(e,t,iI(n),r)}function iv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aI(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 ov=1e-4,lI=1-ov,cI=1+ov,av=.01,uI=0-av,fI=0+av;function $t(e){return e.max-e.min}function dI(e,t,n){return Math.abs(e-t)<=n}function lv(e,t,n,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=tt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lI&&e.scale<=cI||isNaN(e.scale))&&(e.scale=1),(e.translate>=uI&&e.translate<=fI||isNaN(e.translate))&&(e.translate=0)}function Ao(e,t,n,r){lv(e.x,t.x,n.x,r?r.originX:void 0),lv(e.y,t.y,n.y,r?r.originY:void 0)}function cv(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function hI(e,t,n){cv(e.x,t.x,n.x),cv(e.y,t.y,n.y)}function uv(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Mo(e,t,n){uv(e.x,t.x,n.x),uv(e.y,t.y,n.y)}const fv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ai=()=>({x:fv(),y:fv()}),dv=()=>({min:0,max:0}),lt=()=>({x:dv(),y:dv()});function rn(e){return[e("x"),e("y")]}function hd(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:n}){return!hd(e)||!hd(t)||!hd(n)}function hs(e){return md(e)||hv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hv(e){return mv(e.x)||mv(e.y)}function mv(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,s=t*r;return n+s}function pv(e,t,n,r,s){return s!==void 0&&(e=Ha(e,s,r)),Ha(e,n,r)+t}function pd(e,t=0,n=1,r,s){e.min=pv(e.min,t,n,r,s),e.max=pv(e.max,t,n,r,s)}function gv(e,{x:t,y:n}){pd(e.x,t.translate,t.scale,t.originPoint),pd(e.y,n.translate,n.scale,n.originPoint)}const yv=.999999999999,xv=1.0000000000001;function mI(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let o,a;for(let c=0;c<s;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&&ci(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,gv(e,a)),r&&hs(o.latestValues)&&ci(e,o.latestValues))}t.x<xv&&t.x>yv&&(t.x=1),t.y<xv&&t.y>yv&&(t.y=1)}function li(e,t){e.min=e.min+t,e.max=e.max+t}function vv(e,t,n,r,s=.5){const o=tt(e.min,e.max,s);pd(e,t,n,o,r)}function ci(e,t){vv(e.x,t.x,t.scaleX,t.scale,t.originX),vv(e.y,t.y,t.scaleY,t.scale,t.originY)}function bv(e,t){return iv(aI(e.getBoundingClientRect(),t))}function pI(e,t,n){const r=bv(e,n),{scroll:s}=t;return s&&(li(r.x,s.offset.x),li(r.y,s.offset.y)),r}const wv=({current:e})=>e?e.ownerDocument.defaultView:null,Sv=(e,t)=>Math.abs(e-t);function gI(e,t){const n=Sv(e.x,t.x),r=Sv(e.y,t.y);return Math.sqrt(n**2+r**2)}class Tv{constructor(t,n,{transformPagePoint:r,contextWindow:s,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=yd(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,x=gI(m.offset,{x:0,y:0})>=3;if(!p&&!x)return;const{point:S}=m,{timestamp:b}=xt;this.history.push({...S,timestamp:b});const{onStart:T,onMove:v}=this.handlers;p||(T&&T(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,p)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=gd(p,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(m,p)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=yd(m.type==="pointercancel"?this.lastMoveEventInfo:gd(p,this.transformPagePoint),this.history);this.startEvent&&x&&x(m,T),S&&S(m,T)},!dd(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Eo(t),c=gd(a,this.transformPagePoint),{point:u}=c,{timestamp:d}=xt;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=n;h&&h(t,yd(c,this.history)),this.removeListeners=So(Po(this.contextWindow,"pointermove",this.handlePointerMove),Po(this.contextWindow,"pointerup",this.handlePointerUp),Po(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}}function gd(e,t){return t?{point:t(e.point)}:e}function Cv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yd({point:e},t){return{point:e,delta:Cv(e,Ev(t)),offset:Cv(e,yI(t)),velocity:xI(t,.1)}}function yI(e){return e[0]}function Ev(e){return e[e.length-1]}function xI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=Ev(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Nn(t)));)n--;if(!r)return{x:0,y:0};const o=Zn(s.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(s.x-r.x)/o,y:(s.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vI(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 Pv(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 bI(e,{top:t,left:n,bottom:r,right:s}){return{x:Pv(e.x,n,s),y:Pv(e.y,t,r)}}function Av(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 wI(e,t){return{x:Av(e.x,t.x),y:Av(e.y,t.y)}}function SI(e,t){let n=.5;const r=$t(e),s=$t(t);return s>r?n=si(t.min,t.max-r,e.min):r>s&&(n=si(e.min,e.max-s,t.min)),Xn(0,1,n)}function TI(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xd=.35;function CI(e=xd){return e===!1?e=0:e===!0&&(e=xd),{x:Mv(e,"left","right"),y:Mv(e,"top","bottom")}}function Mv(e,t,n){return{min:Ov(e,t),max:Ov(e,n)}}function Ov(e,t){return typeof e=="number"?e:e[t]||0}const EI=new WeakMap;class PI{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 s=h=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Eo(h).point)},o=(h,m)=>{const{drag:p,dragPropagation:x,onDragStart:S}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sI(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 v=this.getAxisMotionValue(T).get()||0;if(In.test(v)){const{projection:A}=this.visualElement;if(A&&A.layout){const C=A.layout.layoutBox[T];C&&(v=$t(C)*(parseFloat(v)/100))}}this.originPoint[T]=v}),S&&He.postRender(()=>S(h,m)),Ff(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},a=(h,m)=>{const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:S,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:T}=m;if(x&&this.currentDirection===null){this.currentDirection=AI(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",m.point,T),this.updateAxis("y",m.point,T),this.visualElement.render(),b&&b(h,m)},c=(h,m)=>this.stop(h,m),u=()=>rn(h=>{var m;return this.getAnimationState(h)==="paused"&&((m=this.getAxisMotionValue(h).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Tv(t,{onSessionStart:s,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:wv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);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:s}=this.getProps();if(!r||!qa(t,s,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vI(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=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&&ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=bI(s.layoutBox,n):this.constraints=!1,this.elastic=CI(r),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&rn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=TI(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ti(t))return!1;const r=t.current;$r(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=pI(r,s.root,this.visualElement.getTransformPagePoint());let a=wI(s.layout.layoutBox,o);if(n){const c=n(oI(a));this.hasMutatedConstraints=!!c,c&&(a=iv(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,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=s?200:1e6,x=s?40:1e7,S={type:"inertia",velocity:r?t[h]:0,bounceStiffness:p,bounceDamping:x,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 Ff(this.visualElement,t),r.start(ud(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(),s=r[n];return s||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:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:c}=s.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(!ti(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};rn(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();s[a]=SI({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(tt(u,d,s[a]))})}addListeners(){if(!this.visualElement.current)return;EI.set(this.visualElement,this);const t=this.visualElement.current,n=Po(t,"pointerdown",u=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ti(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),He.read(r);const a=Co(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.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:s=!1,dragConstraints:o=!1,dragElastic:a=xd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function qa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function AI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class MI extends Nr{constructor(t){super(t),this.removeGroupControls=kt,this.removeListeners=kt,this.controls=new PI(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 $v=e=>(t,n)=>{e&&He.postRender(()=>e(t,n))};class OI extends Nr{constructor(){super(...arguments),this.removePointerDownListener=kt}onPointerDown(t){this.session=new Tv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:$v(t),onStart:$v(n),onMove:r,onEnd:(o,a)=>{delete this.session,s&&He.postRender(()=>s(o,a))}}}mount(){this.removePointerDownListener=Po(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 Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _v(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Se.test(e))e=parseFloat(e);else return e;const n=_v(e,t.target.x),r=_v(e,t.target.y);return`${n}% ${r}%`}},$I={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Dr.parse(e);if(s.length>5)return r;const o=Dr.createTransformer(e),a=typeof s[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=c,s[1+a]/=u;const d=tt(c,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=d),typeof s[3+a]=="number"&&(s[3+a]/=d),o(s)}};class _I extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:o}=t;F5(II),o&&(n.group&&n.group.add(o),r&&r.register&&s&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Ka.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,s||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(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Iv(e){const[t,n]=Cx(),r=O.useContext(pf);return g.jsx(_I,{...e,layoutGroup:r,switchLayoutGroup:O.useContext(kx),isPresent:t,safeToRemove:n})}const II={borderRadius:{...Oo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oo,borderTopRightRadius:Oo,borderBottomLeftRadius:Oo,borderBottomRightRadius:Oo,boxShadow:$I};function DI(e,t,n){const r=Ct(e)?e:yo(e);return r.start(ud("",r,t,n)),r.animation}function NI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const kI=(e,t)=>e.depth-t.depth;class jI{constructor(){this.children=[],this.isDirty=!1}add(t){jf(this.children,t),this.isDirty=!0}remove(t){Lf(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(kI),this.isDirty=!1,this.children.forEach(t)}}function LI(e,t){const n=Dn.now(),r=({timestamp:s})=>{const o=s-n;o>=t&&(_r(r),e(o-t))};return He.read(r,!0),()=>_r(r)}const Dv=["TopLeft","TopRight","BottomLeft","BottomRight"],RI=Dv.length,Nv=e=>typeof e=="string"?parseFloat(e):e,kv=e=>typeof e=="number"||Se.test(e);function FI(e,t,n,r,s,o){s?(e.opacity=tt(0,n.opacity!==void 0?n.opacity:1,VI(r)),e.opacityExit=tt(t.opacity!==void 0?t.opacity:1,0,BI(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<RI;a++){const c=`border${Dv[a]}Radius`;let u=jv(t,c),d=jv(n,c);if(u===void 0&&d===void 0)continue;u||(u=0),d||(d=0),u===0||d===0||kv(u)===kv(d)?(e[c]=Math.max(tt(Nv(u),Nv(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 jv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const VI=Lv(0,.5,h1),BI=Lv(.5,.95,kt);function Lv(e,t,n){return r=>r<e?0:r>t?1:n(si(e,t,r))}function Rv(e,t){e.min=t.min,e.max=t.max}function sn(e,t){Rv(e.x,t.x),Rv(e.y,t.y)}function Fv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vv(e,t,n,r,s){return e-=t,e=Ha(e,1/n,r),s!==void 0&&(e=Ha(e,1/s,r)),e}function WI(e,t=0,n=1,r=.5,s,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=Vv(e.min,t,n,c,s),e.max=Vv(e.max,t,n,c,s)}function Bv(e,t,[n,r,s],o,a){WI(e,t[n],t[r],t[s],t.scale,o,a)}const UI=["x","scaleX","originX"],zI=["y","scaleY","originY"];function Wv(e,t,n,r){Bv(e.x,t,UI,n?n.x:void 0,r?r.x:void 0),Bv(e.y,t,zI,n?n.y:void 0,r?r.y:void 0)}function Uv(e){return e.translate===0&&e.scale===1}function zv(e){return Uv(e.x)&&Uv(e.y)}function Gv(e,t){return e.min===t.min&&e.max===t.max}function GI(e,t){return Gv(e.x,t.x)&&Gv(e.y,t.y)}function Yv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hv(e,t){return Yv(e.x,t.x)&&Yv(e.y,t.y)}function qv(e){return $t(e.x)/$t(e.y)}function Kv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YI{constructor(){this.members=[]}add(t){jf(this.members,t),t.scheduleRender()}remove(t){if(Lf(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(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const o=this.members[s];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:s}=t.options;s===!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 HI(e,t,n){let r="";const s=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||o||a)&&(r=`translate3d(${s}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:x,skewY:S}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),p&&(r+=`rotateY(${p}deg) `),x&&(r+=`skewX(${x}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 vd=["","X","Y","Z"],qI={visibility:"hidden"},Xv=1e3;let KI=0;function bd(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=n1(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",He,!(s||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zv(r)}function Jv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},c=t==null?void 0:t()){this.id=KI++,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(JI),this.nodes.forEach(r6),this.nodes.forEach(s6),this.nodes.forEach(QI)},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 jI)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rf),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=NI(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=LI(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(eb))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:x,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||h.getDefaultTransition()||c6,{onLayoutAnimationStart:T,onLayoutAnimationComplete:v}=h.getProps(),A=!this.targetLayout||!Hv(this.targetLayout,S),C=!p&&x;if(this.options.layoutRoot||this.resumeFrom||C||p&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,C);const I={...kf(b,"layout"),onPlay:T,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else p||eb(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,_r(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(i6),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&&Zv(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(Qv);return}this.isUpdating||this.nodes.forEach(t6),this.isUpdating=!1,this.nodes.forEach(n6),this.nodes.forEach(XI),this.nodes.forEach(ZI),this.clearAllSnapshots();const c=Dn.now();xt.delta=Xn(0,1e3/60,c-xt.timestamp),xt.timestamp=c,xt.isProcessing=!0,vf.update.process(xt),vf.preRender.process(xt),vf.render.process(xt),xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(e6),this.sharedNodes.forEach(o6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!zv(this.projectionDelta),u=this.getTransformTemplate(),d=u?u(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;a&&(c||hs(this.latestValues)||h)&&(s(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)),u6(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(f6))){const{scroll:h}=this.root;h&&(li(u.x,h.offset.x),li(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),li(u.x,m.offset.x),li(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&&ci(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),hs(h.latestValues)&&ci(u,h.latestValues)}return hs(this.latestValues)&&ci(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||!hs(d.latestValues))continue;md(d.latestValues)&&d.updateSnapshot();const h=lt(),m=d.measurePageBox();sn(h,m),Wv(c,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return hs(this.latestValues)&&Wv(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!==xt.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=xt.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.layout.layoutBox,x.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(),hI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sn(this.target,this.layout.layoutBox),gv(this.target,this.targetDelta)):sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=lt(),this.relativeTargetOrigin=lt(),Mo(this.relativeTargetOrigin,this.target,x.target),sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||md(this.parent.latestValues)||hv(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===xt.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,x=this.treeScale.y;mI(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():(Fv(this.prevProjectionDelta.x,this.projectionDelta.x),Fv(this.prevProjectionDelta.y,this.projectionDelta.y)),Ao(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==x||!Kv(this.projectionDelta.x,this.prevProjectionDelta.x)||!Kv(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=ai(),this.projectionDelta=ai(),this.projectionDeltaWithTransform=ai()}setAnimationOrigin(a,c=!1){const u=this.snapshot,d=u?u.latestValues:{},h={...this.latestValues},m=ai();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const p=lt(),x=u?u.source:void 0,S=this.layout?this.layout.source:void 0,b=x!==S,T=this.getStack(),v=!T||T.members.length<=1,A=!!(b&&!v&&this.options.crossfade===!0&&!this.path.some(l6));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const E=I/1e3;tb(m.x,a.x,E),tb(m.y,a.y,E),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mo(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),a6(this.relativeTarget,this.relativeTargetOrigin,p,E),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,E,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},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&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=DI(0,Xv,{...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(Xv),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&&ob(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),ci(c,h),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,c,h)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new YI),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&&bd("z",a,d,this.animationValues);for(let h=0;h<vd.length;h++)bd(`rotate${vd[h]}`,a,d,this.animationValues),bd(`skew${vd[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 qI;const d={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Ba(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 b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ba(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(b.transform=h?h({},""):"none",this.hasProjected=!1),b}const p=m.animationValues||m.latestValues;this.applyTransformsToTarget(),d.transform=HI(this.projectionDeltaWithTransform,this.treeScale,p),h&&(d.transform=h(p,d.transform));const{x,y:S}=this.projectionDelta;d.transformOrigin=`${x.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 b in ho){if(p[b]===void 0)continue;const{correct:T,applyTo:v,isCSSVariable:A}=ho[b],C=d.transform==="none"?p[b]:T(p[b],m);if(v){const I=v.length;for(let E=0;E<I;E++)d[v[E]]=C}else A?this.options.visualElement.renderState.vars[b]=C:d[b]=C}return this.options.layoutId&&(d.pointerEvents=m===this?Ba(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(Qv),this.root.sharedNodes.clear()}}}function XI(e){e.updateLayout()}function ZI(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:s}=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],x=$t(p);p.min=r[m].min,p.max=p.min+x}):ob(o,n.layoutBox,r)&&rn(m=>{const p=a?n.measuredBox[m]:n.layoutBox[m],x=$t(r[m]);p.max=p.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+x)});const c=ai();Ao(c,r,n.layoutBox);const u=ai();a?Ao(u,e.applyTransform(s,!0),n.measuredBox):Ao(u,r,n.layoutBox);const d=!zv(c);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:p,layout:x}=m;if(p&&x){const S=lt();Mo(S,n.layoutBox,p.layoutBox);const b=lt();Mo(b,r,x.layoutBox),Hv(S,b)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=S,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function JI(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 QI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function e6(e){e.clearSnapshot()}function Qv(e){e.clearMeasurements()}function t6(e){e.isLayoutDirty=!1}function n6(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function eb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function r6(e){e.resolveTargetDelta()}function s6(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function o6(e){e.removeLeadSnapshot()}function tb(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 nb(e,t,n,r){e.min=tt(t.min,n.min,r),e.max=tt(t.max,n.max,r)}function a6(e,t,n,r){nb(e.x,t.x,n.x,r),nb(e.y,t.y,n.y,r)}function l6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const c6={duration:.45,ease:[.4,0,.1,1]},rb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sb=rb("applewebkit/")&&!rb("chrome/")?Math.round:kt;function ib(e){e.min=sb(e.min),e.max=sb(e.max)}function u6(e){ib(e.x),ib(e.y)}function ob(e,t,n){return e==="position"||e==="preserve-aspect"&&!dI(qv(t),qv(n),.2)}function f6(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const d6=Jv({attachResizeListener:(e,t)=>Co(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},ab=Jv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new d6({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),h6={pan:{Feature:OI},drag:{Feature:MI,ProjectionNode:ab,MeasureLayout:Iv}};function m6(e,t,n){var r;if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lb(e,t){const n=m6(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function cb(e){return!(e.pointerType==="touch"||sv())}function p6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{if(!cb(c))return;const{target:u}=c,d=t(u,c);if(typeof d!="function"||!u)return;const h=m=>{cb(m)&&(d(m),u.removeEventListener("pointerleave",h))};u.addEventListener("pointerleave",h,s)};return r.forEach(c=>{c.addEventListener("pointerenter",a,s)}),o}function ub(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class g6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=p6(t,(n,r)=>(ub(this.node,r,"Start"),s=>ub(this.node,s,"End"))))}unmount(){}}class y6 extends Nr{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(Co(this.node.current,"focus",()=>this.onFocus()),Co(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const fb=(e,t)=>t?e===t?!0:fb(e,t.parentElement):!1,x6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function v6(e){return x6.has(e.tagName)||e.tabIndex!==-1}const $o=new WeakSet;function db(e){return t=>{t.key==="Enter"&&e(t)}}function Sd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const b6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=db(()=>{if($o.has(n))return;Sd(n,"down");const s=db(()=>{Sd(n,"up")}),o=()=>Sd(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hb(e){return dd(e)&&!sv()}function w6(e,t,n={}){const[r,s,o]=lb(e,n),a=c=>{const u=c.currentTarget;if(!hb(c)||$o.has(u))return;$o.add(u);const d=t(u,c),h=(x,S)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",p),!(!hb(x)||!$o.has(u))&&($o.delete(u),typeof d=="function"&&d(x,{success:S}))},m=x=>{h(x,u===window||u===document||n.useGlobalTarget||fb(u,x.target))},p=x=>{h(x,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",p,s)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,s),c instanceof HTMLElement&&(c.addEventListener("focus",d=>b6(d,s)),!v6(c)&&c.tabIndex===null&&(c.tabIndex=0))}),o}function mb(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 s="onTap"+(n==="End"?"":n),o=r[s];o&&He.postRender(()=>o(t,Eo(t)))}class S6 extends Nr{mount(){const{current:t}=this.node;t&&(this.unmount=w6(t,(n,r)=>(mb(this.node,r,"Start"),(s,{success:o})=>mb(this.node,s,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Td=new WeakMap,Cd=new WeakMap,T6=e=>{const t=Td.get(e.target);t&&t(e)},C6=e=>{e.forEach(T6)};function E6({root:e,...t}){const n=e||document;Cd.has(n)||Cd.set(n,{});const r=Cd.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(C6,{root:e,...t})),r[s]}function P6(e,t,n){const r=E6(t);return Td.set(e,n),r.observe(e),()=>{Td.delete(e),r.unobserve(e)}}const A6={some:0,all:1};class M6 extends Nr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:A6[s]},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 P6(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(O6(t,n))&&this.startObserver()}unmount(){}}function O6({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $6={inView:{Feature:M6},tap:{Feature:S6},focus:{Feature:y6},hover:{Feature:g6}},_6={layout:{ProjectionNode:ab,MeasureLayout:Iv}},Ed={current:null},pb={current:!1};function I6(){if(pb.current=!0,!!yf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ed.current=e.matches;e.addListener(t),t()}else Ed.current=!1}const D6=[...N1,Et,Dr],N6=e=>D6.find(D1(e)),k6=new WeakMap;function j6(e,t,n){for(const r in t){const s=t[r],o=n[r];if(Ct(s))e.addValue(r,s),process.env.NODE_ENV==="development"&&ja(s.version==="12.6.2",`Attempting to mix Motion versions ${s.version} with 12.6.2 may not work as expected.`);else if(Ct(o))e.addValue(r,yo(s,{owner:e}));else if(o!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,yo(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class L6{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,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=nd,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 x=Dn.now();this.renderScheduledAt<x&&(this.renderScheduledAt=x,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=s,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Fa(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const x in p){const S=p[x];u[x]!==void 0&&Ct(S)&&S.set(u[x],!1)}}mount(t){this.current=t,k6.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)),pb.current||I6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ed.current,process.env.NODE_ENV!=="production"&&ja(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(),_r(this.notifyUpdate),_r(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=ls.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=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,()=>{s(),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 ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(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<gb.length;r++){const s=gb[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o="on"+s,a=t[o];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=j6(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=yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=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 s!=null&&(typeof s=="string"&&(_1(s)||p1(s))?s=parseFloat(s):!N6(s)&&Dr.test(n)&&(s=T1(t,n)),this.setBaseTarget(t,Ct(s)?s.get():s)),Ct(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const a=If(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ct(o)?o:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Rf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yb extends L6{constructor(){super(...arguments),this.KeyframeResolver=j1}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;Ct(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function R6(e){return window.getComputedStyle(e)}class F6 extends yb{constructor(){super(...arguments),this.type="html",this.renderInstance=qx}readValueFromInstance(t,n){if(ls.has(n))return z3(t,n);{const r=R6(t),s=(Cf(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bv(t,n)}build(t,n,r){Af(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Nf(t,n,r)}}class V6 extends yb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Hx(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ls.has(n)){const r=S1(n);return r&&r.default||0}return n=Kx.has(n)?n:Tf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zx(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&He.postRender(this.updateDimensions)}build(t,n,r){$f(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Xx(t,n,r,s)}mount(t){this.isSVGTag=_f(t.tagName),super.mount(t)}}const B6=(e,t)=>Of(e)?new V6(t):new F6(t,{allowProjection:e!==O.Fragment}),W6=c3({...rI,...$6,...h6,..._6},B6),st=P5(W6),Pd={defaultColorScheme:"aqua",t:e=>e},xb=O.createContext(Pd),Ve=()=>O.useContext(xb),U6={date:(e,t)=>new Date(t.created_at??"").toDateString()===e.toDateString(),search:(e,t)=>JSON.stringify(t).toLowerCase().includes(e.toLowerCase())};function z6(e,t){const[n,r]=O.useState([]),s=O.useCallback(({key:h,value:m,label:p,type:x,icon:S,options:b})=>{if(n.find(A=>A.key===h)){console.warn(`El filtro con key "${String(h)}" ya existe, salteando la actualización...`);return}let v;typeof t=="string"?v=U6[t]:v=t[h]||t[h],r(A=>[...A,{key:h,value:m,label:p,type:x,icon:S,options:b,fn:v}])},[t,n]),o=O.useCallback(({key:h,value:m})=>{r(p=>p.map(x=>x.key===h?{...x,value:m}:x))},[]),a=O.useCallback(({key:h})=>{r(m=>m.filter(p=>p.key!==h))},[]),c=O.useCallback(()=>{r([])},[]),u=O.useMemo(()=>n.reduce((h,m)=>h.filter(p=>m.fn(m.value,p)),e),[e,n]),d=O.useMemo(()=>({addFilter:s,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}))}),[s,o,a,c,n]);return{data:u,filterControl:d}}const vb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,showCloseButton:a=!0})=>{const{t:c}=Ve(),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=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.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:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:p=>p.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-16 p-32",children:[g.jsxs("div",{className:"flex justify-between items-center gap-16",children:[g.jsx("h3",{className:"text-black font-700 text-3xl",children:e}),a&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})]}),g.jsx("p",{className:"text-gray-500 text-xl font-600",children:t}),g.jsxs("div",{className:"flex justify-end w-full gap-16",children:[o&&g.jsx(xs,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(xs,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
|
|
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 G6={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},Y6={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"]},H6={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"]},q6={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"]},K6={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"]},bb={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 Xa(){return typeof window<"u"}function ui(e){return wb(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wb(e){return Xa()?e instanceof Node||e instanceof zt(e).Node:!1}function it(e){return Xa()?e instanceof Element||e instanceof zt(e).Element:!1}function Gt(e){return Xa()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ad(e){return!Xa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function X6(e){return["table","td","th"].includes(ui(e))}function Za(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Md(e){const t=Ja(),n=it(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 Z6(e){let t=Qn(e);for(;Gt(t)&&!Jn(t);){if(Md(t))return t;if(Za(t))return null;t=Qn(t)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(ui(e))}function on(e){return zt(e).getComputedStyle(e)}function Qa(e){return it(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ad(e)&&e.host||kn(e);return Ad(t)?t.host:t}function Sb(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&_o(t)?t:Sb(t)}function kr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Sb(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),a=zt(s);if(o){const c=Od(a);return t.concat(a,a.visualViewport||[],_o(s)?s:[],c&&n?kr(c):[])}return t.concat(s,kr(s,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ad(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Cb(e,t){return["mouse","pen"].includes(e)}function J6(e){return"nativeEvent"in e}function Q6(e){return e.matches("html,body")}function Eb(e){return(e==null?void 0:e.ownerDocument)||document}function $d(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 Io(e){return"composedPath"in e?e.composedPath()[0]:e.target}const eD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function tD(e){return Gt(e)&&e.matches(eD)}const jr=Math.min,Yt=Math.max,el=Math.round,tl=Math.floor,jn=e=>({x:e,y:e}),nD={left:"right",right:"left",bottom:"top",top:"bottom"},rD={start:"end",end:"start"};function _d(e,t,n){return Yt(e,jr(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function Lr(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function Pb(e){return e==="x"?"y":"x"}function Id(e){return e==="y"?"height":"width"}function ms(e){return["top","bottom"].includes(Lr(e))?"y":"x"}function Dd(e){return Pb(ms(e))}function sD(e,t,n){n===void 0&&(n=!1);const r=di(e),s=Dd(e),o=Id(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=nl(a)),[a,nl(a)]}function iD(e){const t=nl(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>rD[t])}function oD(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:a;default:return[]}}function aD(e,t,n,r){const s=di(e);let o=oD(Lr(e),n==="start",r);return s&&(o=o.map(a=>a+"-"+s),t&&(o=o.concat(o.map(Nd)))),o}function nl(e){return e.replace(/left|right|bottom|top/g,t=>nD[t])}function lD(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ab(e){return typeof e!="number"?lD(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Mb(e,t,n){let{reference:r,floating:s}=e;const o=ms(t),a=Dd(t),c=Id(a),u=Lr(t),d=o==="y",h=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,p=r[c]/2-s[c]/2;let x;switch(u){case"top":x={x:h,y:r.y-s.height};break;case"bottom":x={x:h,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-s.width,y:m};break;default:x={x:r.x,y:r.y}}switch(di(t)){case"start":x[a]-=p*(n&&d?-1:1);break;case"end":x[a]+=p*(n&&d?-1:1);break}return x}const cD=async(e,t,n)=>{const{placement:r="bottom",strategy:s="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:s}),{x:h,y:m}=Mb(d,r,u),p=r,x={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:v}=c[b],{x:A,y:C,data:I,reset:E}=await v({x:h,y:m,initialPlacement:r,placement:p,strategy:s,middlewareData:x,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,m=C??m,x={...x,[T]:{...x[T],...I}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:h,y:m}=Mb(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:s,middlewareData:x}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:x=0}=fi(t,e),S=Ab(x),T=c[p?m==="floating"?"reference":"floating":m],v=rl(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})),A=m==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),I=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},E=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:C,strategy:u}):A);return{top:(v.top-E.top+S.top)/I.y,bottom:(E.bottom-v.bottom+S.bottom)/I.y,left:(v.left-E.left+S.left)/I.x,right:(E.right-v.right+S.right)/I.x}}const uD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=fi(e,t)||{};if(d==null)return{};const m=Ab(h),p={x:n,y:r},x=Dd(s),S=Id(x),b=await a.getDimensions(d),T=x==="y",v=T?"top":"left",A=T?"bottom":"right",C=T?"clientHeight":"clientWidth",I=o.reference[S]+o.reference[x]-p[x]-o.floating[S],E=p[x]-o.reference[x],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let F=D?D[C]:0;(!F||!await(a.isElement==null?void 0:a.isElement(D)))&&(F=c.floating[C]||o.floating[S]);const R=I/2-E/2,Y=F/2-b[S]/2-1,ee=jr(m[v],Y),Q=jr(m[A],Y),fe=ee,oe=F-b[S]-Q,ce=F/2-b[S]/2+R,le=_d(fe,ce,oe),ue=!u.arrow&&di(s)!=null&&ce!==le&&o.reference[S]/2-(ce<fe?ee:Q)-b[S]/2<0,z=ue?ce<fe?ce-fe:ce-oe:0;return{[x]:p[x]+z,data:{[x]:le,centerOffset:ce-le-z,...ue&&{alignmentOffset:z}},reset:ue}}}),fD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=fi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Lr(s),A=ms(c),C=Lr(c)===c,I=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=p||(C||!b?[nl(c)]:iD(c)),D=S!=="none";!p&&D&&E.push(...aD(c,b,S,I));const F=[c,...E],R=await kd(t,T),Y=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&Y.push(R[v]),m){const ce=sD(s,a,I);Y.push(R[ce[0]],R[ce[1]])}if(ee=[...ee,{placement:s,overflows:Y}],!Y.every(ce=>ce<=0)){var Q,fe;const ce=(((Q=o.flip)==null?void 0:Q.index)||0)+1,le=F[ce];if(le)return{data:{index:ce,overflows:ee},reset:{placement:le}};let ue=(fe=ee.filter(z=>z.overflows[0]<=0).sort((z,U)=>z.overflows[1]-U.overflows[1])[0])==null?void 0:fe.placement;if(!ue)switch(x){case"bestFit":{var oe;const z=(oe=ee.filter(U=>{if(D){const K=ms(U.placement);return K===A||K==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(K=>K>0).reduce((K,$)=>K+$,0)]).sort((U,K)=>U[1]-K[1])[0])==null?void 0:oe[0];z&&(ue=z);break}case"initialPlacement":ue=c;break}if(s!==ue)return{reset:{placement:ue}}}return{}}}};async function dD(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=Lr(n),c=di(n),u=ms(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=fi(t,e);let{mainAxis:p,crossAxis:x,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"&&(x=c==="end"?S*-1:S),u?{x:x*h,y:p*d}:{x:p*d,y:x*h}}const hD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:a,middlewareData:c}=t,u=await dD(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:s+u.x,y:o+u.y,data:{...u,placement:a}}}}},mD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:v,y:A}=T;return{x:v,y:A}}},...u}=fi(e,t),d={x:n,y:r},h=await kd(t,u),m=ms(Lr(s)),p=Pb(m);let x=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",v=p==="y"?"bottom":"right",A=x+h[T],C=x-h[v];x=_d(A,x,C)}if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",A=S+h[T],C=S-h[v];S=_d(A,S,C)}const b=c.fn({...t,[p]:x,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},pD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=fi(e,t),h=await kd(t,d),m=Lr(s),p=di(s),x=ms(s)==="y",{width:S,height:b}=o.floating;let T,v;m==="top"||m==="bottom"?(T=m,v=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(v=m,T=p==="end"?"top":"bottom");const A=b-h.top-h.bottom,C=S-h.left-h.right,I=jr(b-h[T],A),E=jr(S-h[v],C),D=!t.middlewareData.shift;let F=I,R=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=A),D&&!p){const ee=Yt(h.left,0),Q=Yt(h.right,0),fe=Yt(h.top,0),oe=Yt(h.bottom,0);x?R=S-2*(ee!==0||Q!==0?ee+Q:Yt(h.left,h.right)):F=b-2*(fe!==0||oe!==0?fe+oe:Yt(h.top,h.bottom))}await u({...t,availableWidth:R,availableHeight:F});const Y=await a.getDimensions(c.floating);return S!==Y.width||b!==Y.height?{reset:{rects:!0}}:{}}}};function Ob(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Gt(e),o=s?e.offsetWidth:n,a=s?e.offsetHeight:r,c=el(n)!==o||el(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function jd(e){return it(e)?e:e.contextElement}function hi(e){const t=jd(e);if(!Gt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=Ob(t);let a=(o?el(n.width):n.width)/r,c=(o?el(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const gD=jn(0);function $b(e){const t=zt(e);return!Ja()||!t.visualViewport?gD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ps(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=jd(e);let a=jn(1);t&&(r?it(r)&&(a=hi(r)):a=hi(e));const c=yD(o,n,r)?$b(o):jn(0);let u=(s.left+c.x)/a.x,d=(s.top+c.y)/a.y,h=s.width/a.x,m=s.height/a.y;if(o){const p=zt(o),x=r&&it(r)?zt(r):r;let S=p,b=Od(S);for(;b&&r&&x!==S;){const T=hi(b),v=b.getBoundingClientRect(),A=on(b),C=v.left+(b.clientLeft+parseFloat(A.paddingLeft))*T.x,I=v.top+(b.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=C,d+=I,S=zt(b),b=Od(S)}}return rl({width:h,height:m,x:u,y:d})}function Ld(e,t){const n=Qa(e).scrollLeft;return t?t.left+n:ps(kn(e)).left+n}function _b(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Ld(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function xD(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",a=kn(r),c=t?Za(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=Gt(r);if((m||!m&&!o)&&((ui(r)!=="body"||_o(a))&&(u=Qa(r)),Gt(r))){const x=ps(r);d=hi(r),h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}const p=a&&!m&&!o?_b(a,u,!0):jn(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 vD(e){return Array.from(e.getClientRects())}function bD(e){const t=kn(e),n=Qa(e),r=e.ownerDocument.body,s=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ld(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:a,y:c}}function wD(e,t){const n=zt(e),r=kn(e),s=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){o=s.width,a=s.height;const d=Ja();(!d||d&&t==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}return{width:o,height:a,x:c,y:u}}function SD(e,t){const n=ps(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Gt(e)?hi(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=s*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Ib(e,t,n){let r;if(t==="viewport")r=wD(e,n);else if(t==="document")r=bD(kn(e));else if(it(t))r=SD(t,n);else{const s=$b(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return rl(r)}function Db(e,t){const n=Qn(e);return n===t||!it(n)||Jn(n)?!1:on(n).position==="fixed"||Db(n,t)}function TD(e,t){const n=t.get(e);if(n)return n;let r=kr(e,[],!1).filter(c=>it(c)&&ui(c)!=="body"),s=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;it(a)&&!Jn(a);){const c=on(a),u=Md(a);!u&&c.position==="fixed"&&(s=null),(o?!u&&!s:!u&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||_o(a)&&!u&&Db(e,a))?r=r.filter(h=>h!==a):s=c,a=Qn(a)}return t.set(e,r),r}function CD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?Za(t)?[]:TD(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Ib(t,h,s);return d.top=Yt(m.top,d.top),d.right=jr(m.right,d.right),d.bottom=jr(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Ib(t,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ED(e){const{width:t,height:n}=Ob(e);return{width:t,height:n}}function PD(e,t,n){const r=Gt(t),s=kn(t),o=n==="fixed",a=ps(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ui(t)!=="body"||_o(s))&&(c=Qa(t)),r){const p=ps(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else s&&(u.x=Ld(s));const d=s&&!r&&!o?_b(s,c):jn(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 Rd(e){return on(e).position==="static"}function Nb(e,t){if(!Gt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kb(e,t){const n=zt(e);if(Za(e))return n;if(!Gt(e)){let s=Qn(e);for(;s&&!Jn(s);){if(it(s)&&!Rd(s))return s;s=Qn(s)}return n}let r=Nb(e,t);for(;r&&X6(r)&&Rd(r);)r=Nb(r,t);return r&&Jn(r)&&Rd(r)&&!Md(r)?n:r||Z6(e)||n}const AD=async function(e){const t=this.getOffsetParent||kb,n=this.getDimensions,r=await n(e.floating);return{reference:PD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MD(e){return on(e).direction==="rtl"}const OD={convertOffsetParentRelativeRectToViewportRelativeRect:xD,getDocumentElement:kn,getClippingRect:CD,getOffsetParent:kb,getElementRects:AD,getClientRects:vD,getDimensions:ED,getScale:hi,isElement:it,isRTL:MD};function jb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $D(e,t){let n=null,r;const s=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:x}=d;if(c||t(),!p||!x)return;const S=tl(m),b=tl(s.clientWidth-(h+p)),T=tl(s.clientHeight-(m+x)),v=tl(h),C={rootMargin:-S+"px "+-b+"px "+-T+"px "+-v+"px",threshold:Yt(0,jr(1,u))||1};let I=!0;function E(D){const F=D[0].intersectionRatio;if(F!==u){if(!I)return a();F?a(!1,F):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F===1&&!jb(d,e.getBoundingClientRect())&&a(),I=!1}try{n=new IntersectionObserver(E,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return a(!0),o}function er(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=jd(e),h=s||o?[...d?kr(d):[],...kr(t)]:[];h.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const m=d&&c?$D(d,n):null;let p=-1,x=null;a&&(x=new ResizeObserver(v=>{let[A]=v;A&&A.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=x)==null||C.observe(t)})),n()}),d&&!u&&x.observe(d),x.observe(t));let S,b=u?ps(e):null;u&&T();function T(){const v=ps(e);b&&!jb(b,v)&&n(),b=v,S=requestAnimationFrame(T)}return n(),()=>{var v;h.forEach(A=>{s&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(v=x)==null||v.disconnect(),x=null,u&&cancelAnimationFrame(S)}}const _D=hD,ID=mD,DD=fD,ND=pD,Lb=uD,kD=(e,t,n)=>{const r=new Map,s={platform:OD,...n},o={...s.platform,_c:r};return cD(e,t,{...s,platform:o})};var sl=typeof document<"u"?O.useLayoutEffect:O.useEffect;function il(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,s;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(!il(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!il(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Rb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fb(e,t){const n=Rb(e);return Math.round(t*n)/n}function Fd(e){const t=me.useRef(e);return sl(()=>{t.current=e}),t}function jD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=me.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,x]=me.useState(r);il(p,r)||x(r);const[S,b]=me.useState(null),[T,v]=me.useState(null),A=me.useCallback(U=>{U!==D.current&&(D.current=U,b(U))},[]),C=me.useCallback(U=>{U!==F.current&&(F.current=U,v(U))},[]),I=o||S,E=a||T,D=me.useRef(null),F=me.useRef(null),R=me.useRef(h),Y=u!=null,ee=Fd(u),Q=Fd(s),fe=Fd(d),oe=me.useCallback(()=>{if(!D.current||!F.current)return;const U={placement:t,strategy:n,middleware:p};Q.current&&(U.platform=Q.current),kD(D.current,F.current,U).then(K=>{const $={...K,isPositioned:fe.current!==!1};ce.current&&!il(R.current,$)&&(R.current=$,cT.flushSync(()=>{m($)}))})},[p,t,n,Q,fe]);sl(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[d]);const ce=me.useRef(!1);sl(()=>(ce.current=!0,()=>{ce.current=!1}),[]),sl(()=>{if(I&&(D.current=I),E&&(F.current=E),I&&E){if(ee.current)return ee.current(I,E,oe);oe()}},[I,E,oe,ee,Y]);const le=me.useMemo(()=>({reference:D,floating:F,setReference:A,setFloating:C}),[A,C]),ue=me.useMemo(()=>({reference:I,floating:E}),[I,E]),z=me.useMemo(()=>{const U={position:n,left:0,top:0};if(!ue.floating)return U;const K=Fb(ue.floating,h.x),$=Fb(ue.floating,h.y);return c?{...U,transform:"translate("+K+"px, "+$+"px)",...Rb(ue.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:$}},[n,c,ue.floating,h.x,h.y]);return me.useMemo(()=>({...h,update:oe,refs:le,elements:ue,floatingStyles:z}),[h,oe,le,ue,z])}const LD=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lb({element:r.current,padding:s}).fn(n):{}:r?Lb({element:r,padding:s}).fn(n):{}}}},tr=(e,t)=>({..._D(e),options:[e,t]}),nr=(e,t)=>({...ID(e),options:[e,t]}),rr=(e,t)=>({...DD(e),options:[e,t]}),Rr=(e,t)=>({...ND(e),options:[e,t]}),gs=(e,t)=>({...LD(e),options:[e,t]}),Vb={...me},RD=Vb.useInsertionEffect||(e=>e());function mi(e){const t=me.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return RD(()=>{t.current=e}),me.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}var pi=typeof document<"u"?O.useLayoutEffect:O.useEffect;let Bb=!1,FD=0;const Wb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+FD++;function VD(){const[e,t]=me.useState(()=>Bb?Wb():void 0);return pi(()=>{e==null&&t(Wb())},[]),me.useEffect(()=>{Bb=!0},[]),e}const BD=Vb.useId||VD;let Vd;process.env.NODE_ENV!=="production"&&(Vd=new Set);function WD(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=Vd)!=null&&e.has(s))){var o;(o=Vd)==null||o.add(s),console.error(s)}}function UD(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(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(s=>s!==n))||[])}}}const zD=me.createContext(null),GD=me.createContext(null),YD=()=>{var e;return((e=me.useContext(zD))==null?void 0:e.id)||null},Ub=()=>me.useContext(GD);function HD(e){return"data-floating-ui-"+e}function ol(e){const t=O.useRef(e);return pi(()=>{t.current=e}),t}function Bd(e,t){let n=e.filter(s=>{var o;return s.parentId===t&&((o=s.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(s=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return s.parentId===a.id&&((c=s.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const qD="data-floating-ui-focusable";function zb(e){return Gt(e.target)&&e.target.tagName==="BUTTON"}function Gb(e){return tD(e)}function sr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=me.useRef(),x=me.useRef(!1),S=me.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Cb(T)&&d||(n&&u&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Cb(T)&&d||(n&&u&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||zb(b))&&(b.key===" "&&!Gb(o)&&(b.preventDefault(),x.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||zb(b)||Gb(o)||b.key===" "&&x.current&&(x.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[s,o,c,d,h,r,n,m,u]);return me.useMemo(()=>a?{reference:S}:{},[a,S])}const KD={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},XD={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Yb=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 ir(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:s,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:x,capture:S}=t,b=Ub(),T=mi(typeof u=="function"?u:()=>!1),v=typeof u=="function"?T:u,A=me.useRef(!1),C=me.useRef(!1),{escapeKey:I,outsidePress:E}=Yb(x),{escapeKey:D,outsidePress:F}=Yb(S),R=me.useRef(!1),Y=mi(le=>{var ue;if(!n||!a||!c||le.key!=="Escape"||R.current)return;const z=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,U=b?Bd(b.nodesRef.current,z):[];if(!I&&(le.stopPropagation(),U.length>0)){let K=!0;if(U.forEach($=>{var k;if((k=$.context)!=null&&k.open&&!$.context.dataRef.current.__escapeKeyBubbles){K=!1;return}}),!K)return}r(!1,J6(le)?le.nativeEvent:le,"escape-key")}),ee=mi(le=>{var ue;const z=()=>{var U;Y(le),(U=Io(le))==null||U.removeEventListener("keydown",z)};(ue=Io(le))==null||ue.addEventListener("keydown",z)}),Q=mi(le=>{var ue;const z=A.current;A.current=!1;const U=C.current;if(C.current=!1,d==="click"&&U||z||typeof v=="function"&&!v(le))return;const K=Io(le),$="["+HD("inert")+"]",k=Eb(s.floating).querySelectorAll($);let X=it(K)?K:null;for(;X&&!Jn(X);){const J=Qn(X);if(Jn(J)||!it(J))break;X=J}if(k.length&&it(K)&&!Q6(K)&&!Tb(K,s.floating)&&Array.from(k).every(J=>!Tb(X,J)))return;if(Gt(K)&&ce){const J=Jn(K),ae=on(K),se=/auto|scroll/,he=J||se.test(ae.overflowX),Ee=J||se.test(ae.overflowY),Be=he&&K.clientWidth>0&&K.scrollWidth>K.clientWidth,ie=Ee&&K.clientHeight>0&&K.scrollHeight>K.clientHeight,ge=ae.direction==="rtl",De=ie&&(ge?le.offsetX<=K.offsetWidth-K.clientWidth:le.offsetX>K.clientWidth),ft=Be&&le.offsetY>K.clientHeight;if(De||ft)return}const W=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,re=b&&Bd(b.nodesRef.current,W).some(J=>{var ae;return $d(le,(ae=J.context)==null?void 0:ae.elements.floating)});if($d(le,s.floating)||$d(le,s.domReference)||re)return;const B=b?Bd(b.nodesRef.current,W):[];if(B.length>0){let J=!0;if(B.forEach(ae=>{var se;if((se=ae.context)!=null&&se.open&&!ae.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,le,"outside-press")}),fe=mi(le=>{var ue;const z=()=>{var U;Q(le),(U=Io(le))==null||U.removeEventListener(d,z)};(ue=Io(le))==null||ue.addEventListener(d,z)});me.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=I,o.current.__outsidePressBubbles=E;let le=-1;function ue(k){r(!1,k,"ancestor-scroll")}function z(){window.clearTimeout(le),R.current=!0}function U(){le=window.setTimeout(()=>{R.current=!1},Ja()?5:0)}const K=Eb(s.floating);c&&(K.addEventListener("keydown",D?ee:Y,D),K.addEventListener("compositionstart",z),K.addEventListener("compositionend",U)),v&&K.addEventListener(d,F?fe:Q,F);let $=[];return p&&(it(s.domReference)&&($=kr(s.domReference)),it(s.floating)&&($=$.concat(kr(s.floating))),!it(s.reference)&&s.reference&&s.reference.contextElement&&($=$.concat(kr(s.reference.contextElement)))),$=$.filter(k=>{var X;return k!==((X=K.defaultView)==null?void 0:X.visualViewport)}),$.forEach(k=>{k.addEventListener("scroll",ue,{passive:!0})}),()=>{c&&(K.removeEventListener("keydown",D?ee:Y,D),K.removeEventListener("compositionstart",z),K.removeEventListener("compositionend",U)),v&&K.removeEventListener(d,F?fe:Q,F),$.forEach(k=>{k.removeEventListener("scroll",ue)}),window.clearTimeout(le)}},[o,s,c,v,d,n,r,p,a,I,E,Y,D,ee,Q,F,fe]),me.useEffect(()=>{A.current=!1},[v,d]);const oe=me.useMemo(()=>({onKeyDown:Y,...h&&{[KD[m]]:le=>{r(!1,le.nativeEvent,"reference-press")},...m!=="click"&&{onClick(le){r(!1,le.nativeEvent,"reference-press")}}}}),[Y,r,h,m]),ce=me.useMemo(()=>({onKeyDown:Y,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[XD[d]]:()=>{A.current=!0}}),[Y,d]);return me.useMemo(()=>a?{reference:oe,floating:ce}:{},[a,oe,ce])}function ZD(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=BD(),o=me.useRef({}),[a]=me.useState(()=>UD()),c=YD()!=null;if(process.env.NODE_ENV!=="production"){const x=r.reference;x&&!it(x)&&WD("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]=me.useState(r.reference),h=mi((x,S,b)=>{o.current.openEvent=x?S:void 0,a.emit("openchange",{open:x,event:S,reason:b,nested:c}),n==null||n(x,S,b)}),m=me.useMemo(()=>({setPositionReference:d}),[]),p=me.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return me.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:s,refs:m}),[t,h,p,a,s,m])}function or(e){e===void 0&&(e={});const{nodeId:t}=e,n=ZD({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[o,a]=me.useState(null),[c,u]=me.useState(null),h=(s==null?void 0:s.domReference)||o,m=me.useRef(null),p=Ub();pi(()=>{h&&(m.current=h)},[h]);const x=jD({...e,elements:{...s,...c&&{reference:c}}}),S=me.useCallback(C=>{const I=it(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u(I),x.refs.setReference(I)},[x.refs]),b=me.useCallback(C=>{(it(C)||C===null)&&(m.current=C,a(C)),(it(x.refs.reference.current)||x.refs.reference.current===null||C!==null&&!it(C))&&x.refs.setReference(C)},[x.refs]),T=me.useMemo(()=>({...x.refs,setReference:b,setPositionReference:S,domReference:m}),[x.refs,b,S]),v=me.useMemo(()=>({...x.elements,domReference:h}),[x.elements,h]),A=me.useMemo(()=>({...x,...r,refs:T,elements:v,nodeId:t}),[x,T,v,t,r]);return pi(()=>{r.dataRef.current.floatingContext=A;const C=p==null?void 0:p.nodesRef.current.find(I=>I.id===t);C&&(C.context=A)}),me.useMemo(()=>({...x,context:A,refs:T,elements:v}),[x,T,v,A])}const Hb="active",qb="selected";function Wd(e,t,n){const r=new Map,s=n==="item";let o=e;if(s&&e){const{[Hb]:a,[qb]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[qD]:""},...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(!(s&&[Hb,qb].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,x=arguments.length,S=new Array(x),b=0;b<x;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function ar(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),s=me.useCallback(c=>Wd(c,e,"reference"),t),o=me.useCallback(c=>Wd(c,e,"floating"),n),a=me.useCallback(c=>Wd(c,e,"item"),r);return me.useMemo(()=>({getReferenceProps:s,getFloatingProps:o,getItemProps:a}),[s,o,a])}const Kb=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function gi(e,t){return typeof e=="function"?e(t):e}function JD(e,t){const[n,r]=me.useState(e);return e&&!n&&r(!0),me.useEffect(()=>{if(!e&&n){const s=setTimeout(()=>r(!1),t);return()=>clearTimeout(s)}},[e,n,t]),n}function QD(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,a=(typeof s=="number"?s:s.close)||0,[c,u]=me.useState("unmounted"),d=JD(n,a);return!d&&c==="close"&&u("unmounted"),pi(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function lr(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:s,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=me.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[x,S]=me.useState(()=>({...gi(o,d),...gi(n,d)})),{isMounted:b,status:T}=QD(e,{duration:a}),v=ol(n),A=ol(r),C=ol(s),I=ol(o);return pi(()=>{const E=gi(v.current,d),D=gi(C.current,d),F=gi(I.current,d),R=gi(A.current,d)||Object.keys(E).reduce((Y,ee)=>(Y[ee]="",Y),{});if(T==="initial"&&S(Y=>({transitionProperty:Y.transitionProperty,...F,...E})),T==="open"&&S({transitionProperty:Object.keys(R).map(Kb).join(","),transitionDuration:m+"ms",...F,...R}),T==="close"){const Y=D||E;S({transitionProperty:Object.keys(Y).map(Kb).join(","),transitionDuration:p+"ms",...F,...Y})}},[p,C,v,A,I,m,T,d]),{isMounted:b,styles:x}}const ys=({open:e,onClose:t,component:n,children:r,placement:s="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:d=8,handleClickAway:h=!0})=>{const[m,p]=O.useState(e);O.useEffect(()=>{p(e)},[e]);const x=()=>{p(!1),t==null||t()},{x:S,y:b,strategy:T,refs:v,context:A}=or({strategy:a,open:m,onOpenChange:Y=>{!Y&&!e&&x()},middleware:[tr(u),rr(),nr({padding:d})],whileElementsMounted:er,placement:s}),C=sr(A,{enabled:!1}),I=ir(A,{enabled:!1}),{getReferenceProps:E,getFloatingProps:D}=ar([C,I]),{isMounted:F,styles:R}=lr(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return g.jsx(I2,{enabled:h,onClickAway:()=>{m&&x()},children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:v.setReference,...E(),className:"reference-element",children:r}),F&&g.jsx("div",{ref:v.setFloating,style:{position:T,top:b??0,left:S??0,...R,zIndex:999,...c},...D(),className:"floating-element w-max",children:g.jsx(yi,{className:`p-16! rounded-[16px]! shadow-floating ${o}`,children:typeof n=="function"?O.createElement(n):n})})]})})},eN=({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 g.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[g.jsx(st.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"}),g.jsx(st.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"})]})},tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>g.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`}),nN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},rN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},sN=e=>({blue:nN,aqua:rN})[e],Ud=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:s,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=O.useState(e),[h,m]=O.useState(e),[p,x]=O.useState(e.getHours()%12||12),[S,b]=O.useState(e.getHours()>=12?"PM":"AM"),[T,v]=O.useState(0),{t:A}=Ve(),C=sN(c),[I,E]=O.useState(!1),[D,F]=O.useState(!1);O.useEffect(()=>{d(e),m(e),x(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const R=()=>{v(-1),setTimeout(()=>{const U=M$(u);(!r||U>=r)&&d(U)},10)},Y=()=>{v(1),setTimeout(()=>{d(sx(u,1))},10)},ee=U=>{if(s&&U>s||r&&U<r)return;const K=gx(yx(xx(U,0),0),S==="AM"?p%12:p%12+12);m(K),t(K)},Q=U=>{x(U);const K=gx(yx(xx(h,0),0),S==="AM"?U%12:U%12+12);m(K),t(K),E(!1)},fe=U=>{b(U)},oe=()=>{const U=new Date,K=20,$=5,[k,X]=O.useState(()=>Array.from({length:K+1},(J,ae)=>{const se=new Date(U.getFullYear(),U.getMonth()-ae,1);return{name:_n(se,"MMMM",{locale:Js}).replace(/^./,he=>he.toUpperCase()),index:se.getMonth(),year:se.getFullYear(),displayName:`${_n(se,"MMMM",{locale:Js}).replace(/^./,he=>he.toUpperCase())} ${se.getFullYear()}`}})),W=O.useRef(null),re=O.useRef(null);O.useEffect(()=>{W.current&&W.current.disconnect(),W.current=new IntersectionObserver(J=>{J[0].isIntersecting&&X(ae=>{const se=ae[ae.length-1],he=new Date(se.year,se.index-1,1),Ee=Array.from({length:$},(Be,ie)=>{const ge=new Date(he.getFullYear(),he.getMonth()-ie,1);return{name:_n(ge,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase()),index:ge.getMonth(),year:ge.getFullYear(),displayName:`${_n(ge,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase())} ${ge.getFullYear()}`}});return[...ae,...Ee]})}),re.current&&W.current.observe(re.current)},[k]);const B=(J,ae)=>{const se=new Date(u);se.setMonth(J),se.setFullYear(ae),(!r||se>=r)&&d(se),F(!1)};return g.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((J,ae)=>{const se=ae===k.length-1;return g.jsx("button",{ref:se?re:null,onClick:()=>B(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?C.hoverLight:"transparent",color:u.getMonth()===J.index&&u.getFullYear()===J.year?C.text:"inherit"},onMouseEnter:he=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(he.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:he=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(he.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${ae}`)})})},ce=()=>g.jsxs("div",{className:"flex justify-between items-center mb-8",children:[g.jsx(ys,{open:D,onClose:()=>F(!1),component:oe,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:g.jsxs("button",{onClick:()=>F(!D),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[g.jsx("h4",{className:"text-header-4",children:_n(u,"MMMM yyyy",{locale:Js}).replace(/^./,U=>U.toUpperCase())}),g.jsx(Pe,{icon:n0,className:"w-12 h-12"})]})}),g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx(sh,{variant:"transparent",color:c,icon:K6,onClick:R}),g.jsx(sh,{variant:"transparent",color:c,icon:yO,onClick:Y})]})]}),le=()=>{const U=Ks(OO(u)),K=_O(PO(u)),$=MO({start:U,end:K}),k=new Date;return k.setHours(0,0,0,0),g.jsx("div",{className:"grid grid-cols-7 gap-2",children:$.map((X,W)=>{const re=ax(X,h),B=P$(X,u),J=A$(X),ae=X<k,se=X>k,he=!B||ae&&!a||se&&!o||r&&X<r||s&&X>s;return g.jsx(st.div,{className:`
|
|
667
|
+
*/const G6={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]},Y6={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"]},H6={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"]},q6={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"]},K6={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"]},bb={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 Xa(){return typeof window<"u"}function ui(e){return wb(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(wb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function wb(e){return Xa()?e instanceof Node||e instanceof zt(e).Node:!1}function it(e){return Xa()?e instanceof Element||e instanceof zt(e).Element:!1}function Gt(e){return Xa()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ad(e){return!Xa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function _o(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function X6(e){return["table","td","th"].includes(ui(e))}function Za(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Md(e){const t=Ja(),n=it(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 Z6(e){let t=Qn(e);for(;Gt(t)&&!Jn(t);){if(Md(t))return t;if(Za(t))return null;t=Qn(t)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Jn(e){return["html","body","#document"].includes(ui(e))}function on(e){return zt(e).getComputedStyle(e)}function Qa(e){return it(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qn(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ad(e)&&e.host||kn(e);return Ad(t)?t.host:t}function Sb(e){const t=Qn(e);return Jn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gt(t)&&_o(t)?t:Sb(t)}function kr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Sb(e),o=s===((r=e.ownerDocument)==null?void 0:r.body),a=zt(s);if(o){const c=Od(a);return t.concat(a,a.visualViewport||[],_o(s)?s:[],c&&n?kr(c):[])}return t.concat(s,kr(s,[],n))}function Od(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tb(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ad(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Cb(e,t){return["mouse","pen"].includes(e)}function J6(e){return"nativeEvent"in e}function Q6(e){return e.matches("html,body")}function Eb(e){return(e==null?void 0:e.ownerDocument)||document}function $d(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 Io(e){return"composedPath"in e?e.composedPath()[0]:e.target}const eD="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function tD(e){return Gt(e)&&e.matches(eD)}const jr=Math.min,Yt=Math.max,el=Math.round,tl=Math.floor,jn=e=>({x:e,y:e}),nD={left:"right",right:"left",bottom:"top",top:"bottom"},rD={start:"end",end:"start"};function _d(e,t,n){return Yt(e,jr(t,n))}function fi(e,t){return typeof e=="function"?e(t):e}function Lr(e){return e.split("-")[0]}function di(e){return e.split("-")[1]}function Pb(e){return e==="x"?"y":"x"}function Id(e){return e==="y"?"height":"width"}function ms(e){return["top","bottom"].includes(Lr(e))?"y":"x"}function Dd(e){return Pb(ms(e))}function sD(e,t,n){n===void 0&&(n=!1);const r=di(e),s=Dd(e),o=Id(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=nl(a)),[a,nl(a)]}function iD(e){const t=nl(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.replace(/start|end/g,t=>rD[t])}function oD(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:a;default:return[]}}function aD(e,t,n,r){const s=di(e);let o=oD(Lr(e),n==="start",r);return s&&(o=o.map(a=>a+"-"+s),t&&(o=o.concat(o.map(Nd)))),o}function nl(e){return e.replace(/left|right|bottom|top/g,t=>nD[t])}function lD(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ab(e){return typeof e!="number"?lD(e):{top:e,right:e,bottom:e,left:e}}function rl(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Mb(e,t,n){let{reference:r,floating:s}=e;const o=ms(t),a=Dd(t),c=Id(a),u=Lr(t),d=o==="y",h=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,p=r[c]/2-s[c]/2;let x;switch(u){case"top":x={x:h,y:r.y-s.height};break;case"bottom":x={x:h,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:m};break;case"left":x={x:r.x-s.width,y:m};break;default:x={x:r.x,y:r.y}}switch(di(t)){case"start":x[a]-=p*(n&&d?-1:1);break;case"end":x[a]+=p*(n&&d?-1:1);break}return x}const cD=async(e,t,n)=>{const{placement:r="bottom",strategy:s="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:s}),{x:h,y:m}=Mb(d,r,u),p=r,x={},S=0;for(let b=0;b<c.length;b++){const{name:T,fn:v}=c[b],{x:A,y:C,data:I,reset:E}=await v({x:h,y:m,initialPlacement:r,placement:p,strategy:s,middlewareData:x,rects:d,platform:a,elements:{reference:e,floating:t}});h=A??h,m=C??m,x={...x,[T]:{...x[T],...I}},E&&S<=50&&(S++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:h,y:m}=Mb(d,p,u)),b=-1)}return{x:h,y:m,placement:p,strategy:s,middlewareData:x}};async function kd(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:a,elements:c,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:p=!1,padding:x=0}=fi(t,e),S=Ab(x),T=c[p?m==="floating"?"reference":"floating":m],v=rl(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})),A=m==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),I=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},E=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:C,strategy:u}):A);return{top:(v.top-E.top+S.top)/I.y,bottom:(E.bottom-v.bottom+S.bottom)/I.y,left:(v.left-E.left+S.left)/I.x,right:(E.right-v.right+S.right)/I.x}}const uD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:a,elements:c,middlewareData:u}=t,{element:d,padding:h=0}=fi(e,t)||{};if(d==null)return{};const m=Ab(h),p={x:n,y:r},x=Dd(s),S=Id(x),b=await a.getDimensions(d),T=x==="y",v=T?"top":"left",A=T?"bottom":"right",C=T?"clientHeight":"clientWidth",I=o.reference[S]+o.reference[x]-p[x]-o.floating[S],E=p[x]-o.reference[x],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=N?N[C]:0;(!R||!await(a.isElement==null?void 0:a.isElement(N)))&&(R=c.floating[C]||o.floating[S]);const F=I/2-E/2,G=R/2-b[S]/2-1,re=jr(m[v],G),ee=jr(m[A],G),le=re,oe=R-b[S]-ee,ue=R/2-b[S]/2+F,ce=_d(le,ue,oe),fe=!u.arrow&&di(s)!=null&&ue!==ce&&o.reference[S]/2-(ue<le?re:ee)-b[S]/2<0,U=fe?ue<le?ue-le:ue-oe:0;return{[x]:p[x]+U,data:{[x]:ce,centerOffset:ue-ce-U,...fe&&{alignmentOffset:U}},reset:fe}}}),fD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:a,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:b=!0,...T}=fi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const v=Lr(s),A=ms(c),C=Lr(c)===c,I=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=p||(C||!b?[nl(c)]:iD(c)),N=S!=="none";!p&&N&&E.push(...aD(c,b,S,I));const R=[c,...E],F=await kd(t,T),G=[];let re=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&G.push(F[v]),m){const ue=sD(s,a,I);G.push(F[ue[0]],F[ue[1]])}if(re=[...re,{placement:s,overflows:G}],!G.every(ue=>ue<=0)){var ee,le;const ue=(((ee=o.flip)==null?void 0:ee.index)||0)+1,ce=R[ue];if(ce)return{data:{index:ue,overflows:re},reset:{placement:ce}};let fe=(le=re.filter(U=>U.overflows[0]<=0).sort((U,W)=>U.overflows[1]-W.overflows[1])[0])==null?void 0:le.placement;if(!fe)switch(x){case"bestFit":{var oe;const U=(oe=re.filter(W=>{if(N){const K=ms(W.placement);return K===A||K==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(K=>K>0).reduce((K,$)=>K+$,0)]).sort((W,K)=>W[1]-K[1])[0])==null?void 0:oe[0];U&&(fe=U);break}case"initialPlacement":fe=c;break}if(s!==fe)return{reset:{placement:fe}}}return{}}}};async function dD(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=Lr(n),c=di(n),u=ms(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&u?-1:1,m=fi(t,e);let{mainAxis:p,crossAxis:x,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"&&(x=c==="end"?S*-1:S),u?{x:x*h,y:p*d}:{x:p*d,y:x*h}}const hD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:a,middlewareData:c}=t,u=await dD(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:s+u.x,y:o+u.y,data:{...u,placement:a}}}}},mD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:v,y:A}=T;return{x:v,y:A}}},...u}=fi(e,t),d={x:n,y:r},h=await kd(t,u),m=ms(Lr(s)),p=Pb(m);let x=d[p],S=d[m];if(o){const T=p==="y"?"top":"left",v=p==="y"?"bottom":"right",A=x+h[T],C=x-h[v];x=_d(A,x,C)}if(a){const T=m==="y"?"top":"left",v=m==="y"?"bottom":"right",A=S+h[T],C=S-h[v];S=_d(A,S,C)}const b=c.fn({...t,[p]:x,[m]:S});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:o,[m]:a}}}}}},pD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:a,elements:c}=t,{apply:u=()=>{},...d}=fi(e,t),h=await kd(t,d),m=Lr(s),p=di(s),x=ms(s)==="y",{width:S,height:b}=o.floating;let T,v;m==="top"||m==="bottom"?(T=m,v=p===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(v=m,T=p==="end"?"top":"bottom");const A=b-h.top-h.bottom,C=S-h.left-h.right,I=jr(b-h[T],A),E=jr(S-h[v],C),N=!t.middlewareData.shift;let R=I,F=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=A),N&&!p){const re=Yt(h.left,0),ee=Yt(h.right,0),le=Yt(h.top,0),oe=Yt(h.bottom,0);x?F=S-2*(re!==0||ee!==0?re+ee:Yt(h.left,h.right)):R=b-2*(le!==0||oe!==0?le+oe:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:R});const G=await a.getDimensions(c.floating);return S!==G.width||b!==G.height?{reset:{rects:!0}}:{}}}};function Ob(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Gt(e),o=s?e.offsetWidth:n,a=s?e.offsetHeight:r,c=el(n)!==o||el(r)!==a;return c&&(n=o,r=a),{width:n,height:r,$:c}}function jd(e){return it(e)?e:e.contextElement}function hi(e){const t=jd(e);if(!Gt(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:o}=Ob(t);let a=(o?el(n.width):n.width)/r,c=(o?el(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const gD=jn(0);function $b(e){const t=zt(e);return!Ja()||!t.visualViewport?gD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yD(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==zt(e)?!1:t}function ps(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),o=jd(e);let a=jn(1);t&&(r?it(r)&&(a=hi(r)):a=hi(e));const c=yD(o,n,r)?$b(o):jn(0);let u=(s.left+c.x)/a.x,d=(s.top+c.y)/a.y,h=s.width/a.x,m=s.height/a.y;if(o){const p=zt(o),x=r&&it(r)?zt(r):r;let S=p,b=Od(S);for(;b&&r&&x!==S;){const T=hi(b),v=b.getBoundingClientRect(),A=on(b),C=v.left+(b.clientLeft+parseFloat(A.paddingLeft))*T.x,I=v.top+(b.clientTop+parseFloat(A.paddingTop))*T.y;u*=T.x,d*=T.y,h*=T.x,m*=T.y,u+=C,d+=I,S=zt(b),b=Od(S)}}return rl({width:h,height:m,x:u,y:d})}function Ld(e,t){const n=Qa(e).scrollLeft;return t?t.left+n:ps(kn(e)).left+n}function _b(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Ld(e,r)),o=r.top+t.scrollTop;return{x:s,y:o}}function xD(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const o=s==="fixed",a=kn(r),c=t?Za(t.floating):!1;if(r===a||c&&o)return n;let u={scrollLeft:0,scrollTop:0},d=jn(1);const h=jn(0),m=Gt(r);if((m||!m&&!o)&&((ui(r)!=="body"||_o(a))&&(u=Qa(r)),Gt(r))){const x=ps(r);d=hi(r),h.x=x.x+r.clientLeft,h.y=x.y+r.clientTop}const p=a&&!m&&!o?_b(a,u,!0):jn(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 vD(e){return Array.from(e.getClientRects())}function bD(e){const t=kn(e),n=Qa(e),r=e.ownerDocument.body,s=Yt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ld(e);const c=-n.scrollTop;return on(r).direction==="rtl"&&(a+=Yt(t.clientWidth,r.clientWidth)-s),{width:s,height:o,x:a,y:c}}function wD(e,t){const n=zt(e),r=kn(e),s=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,u=0;if(s){o=s.width,a=s.height;const d=Ja();(!d||d&&t==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}return{width:o,height:a,x:c,y:u}}function SD(e,t){const n=ps(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,o=Gt(e)?hi(e):jn(1),a=e.clientWidth*o.x,c=e.clientHeight*o.y,u=s*o.x,d=r*o.y;return{width:a,height:c,x:u,y:d}}function Ib(e,t,n){let r;if(t==="viewport")r=wD(e,n);else if(t==="document")r=bD(kn(e));else if(it(t))r=SD(t,n);else{const s=$b(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return rl(r)}function Db(e,t){const n=Qn(e);return n===t||!it(n)||Jn(n)?!1:on(n).position==="fixed"||Db(n,t)}function TD(e,t){const n=t.get(e);if(n)return n;let r=kr(e,[],!1).filter(c=>it(c)&&ui(c)!=="body"),s=null;const o=on(e).position==="fixed";let a=o?Qn(e):e;for(;it(a)&&!Jn(a);){const c=on(a),u=Md(a);!u&&c.position==="fixed"&&(s=null),(o?!u&&!s:!u&&c.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||_o(a)&&!u&&Db(e,a))?r=r.filter(h=>h!==a):s=c,a=Qn(a)}return t.set(e,r),r}function CD(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?Za(t)?[]:TD(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((d,h)=>{const m=Ib(t,h,s);return d.top=Yt(m.top,d.top),d.right=jr(m.right,d.right),d.bottom=jr(m.bottom,d.bottom),d.left=Yt(m.left,d.left),d},Ib(t,c,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ED(e){const{width:t,height:n}=Ob(e);return{width:t,height:n}}function PD(e,t,n){const r=Gt(t),s=kn(t),o=n==="fixed",a=ps(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const u=jn(0);if(r||!r&&!o)if((ui(t)!=="body"||_o(s))&&(c=Qa(t)),r){const p=ps(t,!0,o,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else s&&(u.x=Ld(s));const d=s&&!r&&!o?_b(s,c):jn(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 Rd(e){return on(e).position==="static"}function Nb(e,t){if(!Gt(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kn(e)===n&&(n=n.ownerDocument.body),n}function kb(e,t){const n=zt(e);if(Za(e))return n;if(!Gt(e)){let s=Qn(e);for(;s&&!Jn(s);){if(it(s)&&!Rd(s))return s;s=Qn(s)}return n}let r=Nb(e,t);for(;r&&X6(r)&&Rd(r);)r=Nb(r,t);return r&&Jn(r)&&Rd(r)&&!Md(r)?n:r||Z6(e)||n}const AD=async function(e){const t=this.getOffsetParent||kb,n=this.getDimensions,r=await n(e.floating);return{reference:PD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function MD(e){return on(e).direction==="rtl"}const OD={convertOffsetParentRelativeRectToViewportRelativeRect:xD,getDocumentElement:kn,getClippingRect:CD,getOffsetParent:kb,getElementRects:AD,getClientRects:vD,getDimensions:ED,getScale:hi,isElement:it,isRTL:MD};function jb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $D(e,t){let n=null,r;const s=kn(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:x}=d;if(c||t(),!p||!x)return;const S=tl(m),b=tl(s.clientWidth-(h+p)),T=tl(s.clientHeight-(m+x)),v=tl(h),C={rootMargin:-S+"px "+-b+"px "+-T+"px "+-v+"px",threshold:Yt(0,jr(1,u))||1};let I=!0;function E(N){const R=N[0].intersectionRatio;if(R!==u){if(!I)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!jb(d,e.getBoundingClientRect())&&a(),I=!1}try{n=new IntersectionObserver(E,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(e)}return a(!0),o}function er(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,d=jd(e),h=s||o?[...d?kr(d):[],...kr(t)]:[];h.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const m=d&&c?$D(d,n):null;let p=-1,x=null;a&&(x=new ResizeObserver(v=>{let[A]=v;A&&A.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=x)==null||C.observe(t)})),n()}),d&&!u&&x.observe(d),x.observe(t));let S,b=u?ps(e):null;u&&T();function T(){const v=ps(e);b&&!jb(b,v)&&n(),b=v,S=requestAnimationFrame(T)}return n(),()=>{var v;h.forEach(A=>{s&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),m==null||m(),(v=x)==null||v.disconnect(),x=null,u&&cancelAnimationFrame(S)}}const _D=hD,ID=mD,DD=fD,ND=pD,Lb=uD,kD=(e,t,n)=>{const r=new Map,s={platform:OD,...n},o={...s.platform,_c:r};return cD(e,t,{...s,platform:o})};var sl=typeof document<"u"?O.useLayoutEffect:O.useEffect;function il(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,s;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(!il(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const o=s[r];if(!(o==="_owner"&&e.$$typeof)&&!il(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Rb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fb(e,t){const n=Rb(e);return Math.round(t*n)/n}function Fd(e){const t=me.useRef(e);return sl(()=>{t.current=e}),t}function jD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:o,floating:a}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[h,m]=me.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,x]=me.useState(r);il(p,r)||x(r);const[S,b]=me.useState(null),[T,v]=me.useState(null),A=me.useCallback(W=>{W!==N.current&&(N.current=W,b(W))},[]),C=me.useCallback(W=>{W!==R.current&&(R.current=W,v(W))},[]),I=o||S,E=a||T,N=me.useRef(null),R=me.useRef(null),F=me.useRef(h),G=u!=null,re=Fd(u),ee=Fd(s),le=Fd(d),oe=me.useCallback(()=>{if(!N.current||!R.current)return;const W={placement:t,strategy:n,middleware:p};ee.current&&(W.platform=ee.current),kD(N.current,R.current,W).then(K=>{const $={...K,isPositioned:le.current!==!1};ue.current&&!il(F.current,$)&&(F.current=$,cT.flushSync(()=>{m($)}))})},[p,t,n,ee,le]);sl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[d]);const ue=me.useRef(!1);sl(()=>(ue.current=!0,()=>{ue.current=!1}),[]),sl(()=>{if(I&&(N.current=I),E&&(R.current=E),I&&E){if(re.current)return re.current(I,E,oe);oe()}},[I,E,oe,re,G]);const ce=me.useMemo(()=>({reference:N,floating:R,setReference:A,setFloating:C}),[A,C]),fe=me.useMemo(()=>({reference:I,floating:E}),[I,E]),U=me.useMemo(()=>{const W={position:n,left:0,top:0};if(!fe.floating)return W;const K=Fb(fe.floating,h.x),$=Fb(fe.floating,h.y);return c?{...W,transform:"translate("+K+"px, "+$+"px)",...Rb(fe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:$}},[n,c,fe.floating,h.x,h.y]);return me.useMemo(()=>({...h,update:oe,refs:ce,elements:fe,floatingStyles:U}),[h,oe,ce,fe,U])}const LD=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lb({element:r.current,padding:s}).fn(n):{}:r?Lb({element:r,padding:s}).fn(n):{}}}},tr=(e,t)=>({..._D(e),options:[e,t]}),nr=(e,t)=>({...ID(e),options:[e,t]}),rr=(e,t)=>({...DD(e),options:[e,t]}),Rr=(e,t)=>({...ND(e),options:[e,t]}),gs=(e,t)=>({...LD(e),options:[e,t]}),Vb={...me},RD=Vb.useInsertionEffect||(e=>e());function mi(e){const t=me.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return RD(()=>{t.current=e}),me.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}var pi=typeof document<"u"?O.useLayoutEffect:O.useEffect;let Bb=!1,FD=0;const Wb=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+FD++;function VD(){const[e,t]=me.useState(()=>Bb?Wb():void 0);return pi(()=>{e==null&&t(Wb())},[]),me.useEffect(()=>{Bb=!0},[]),e}const BD=Vb.useId||VD;let Vd;process.env.NODE_ENV!=="production"&&(Vd=new Set);function WD(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const s="Floating UI: "+n.join(" ");if(!((e=Vd)!=null&&e.has(s))){var o;(o=Vd)==null||o.add(s),console.error(s)}}function UD(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(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(s=>s!==n))||[])}}}const zD=me.createContext(null),GD=me.createContext(null),YD=()=>{var e;return((e=me.useContext(zD))==null?void 0:e.id)||null},Ub=()=>me.useContext(GD);function HD(e){return"data-floating-ui-"+e}function ol(e){const t=O.useRef(e);return pi(()=>{t.current=e}),t}function Bd(e,t){let n=e.filter(s=>{var o;return s.parentId===t&&((o=s.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(s=>{var o;return(o=r)==null?void 0:o.some(a=>{var c;return s.parentId===a.id&&((c=s.context)==null?void 0:c.open)})}),n=n.concat(r);return n}const qD="data-floating-ui-focusable";function zb(e){return Gt(e.target)&&e.target.tagName==="BUTTON"}function Gb(e){return tD(e)}function sr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:o}}=e,{enabled:a=!0,event:c="click",toggle:u=!0,ignoreMouse:d=!1,keyboardHandlers:h=!0,stickIfOpen:m=!0}=t,p=me.useRef(),x=me.useRef(!1),S=me.useMemo(()=>({onPointerDown(b){p.current=b.pointerType},onMouseDown(b){const T=p.current;b.button===0&&c!=="click"&&(Cb(T)&&d||(n&&u&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="mousedown")?r(!1,b.nativeEvent,"click"):(b.preventDefault(),r(!0,b.nativeEvent,"click"))))},onClick(b){const T=p.current;if(c==="mousedown"&&p.current){p.current=void 0;return}Cb(T)&&d||(n&&u&&(!(s.current.openEvent&&m)||s.current.openEvent.type==="click")?r(!1,b.nativeEvent,"click"):r(!0,b.nativeEvent,"click"))},onKeyDown(b){p.current=void 0,!(b.defaultPrevented||!h||zb(b))&&(b.key===" "&&!Gb(o)&&(b.preventDefault(),x.current=!0),b.key==="Enter"&&r(!(n&&u),b.nativeEvent,"click"))},onKeyUp(b){b.defaultPrevented||!h||zb(b)||Gb(o)||b.key===" "&&x.current&&(x.current=!1,r(!(n&&u),b.nativeEvent,"click"))}}),[s,o,c,d,h,r,n,m,u]);return me.useMemo(()=>a?{reference:S}:{},[a,S])}const KD={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},XD={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Yb=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 ir(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:s,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:x,capture:S}=t,b=Ub(),T=mi(typeof u=="function"?u:()=>!1),v=typeof u=="function"?T:u,A=me.useRef(!1),C=me.useRef(!1),{escapeKey:I,outsidePress:E}=Yb(x),{escapeKey:N,outsidePress:R}=Yb(S),F=me.useRef(!1),G=mi(ce=>{var fe;if(!n||!a||!c||ce.key!=="Escape"||F.current)return;const U=(fe=o.current.floatingContext)==null?void 0:fe.nodeId,W=b?Bd(b.nodesRef.current,U):[];if(!I&&(ce.stopPropagation(),W.length>0)){let K=!0;if(W.forEach($=>{var k;if((k=$.context)!=null&&k.open&&!$.context.dataRef.current.__escapeKeyBubbles){K=!1;return}}),!K)return}r(!1,J6(ce)?ce.nativeEvent:ce,"escape-key")}),re=mi(ce=>{var fe;const U=()=>{var W;G(ce),(W=Io(ce))==null||W.removeEventListener("keydown",U)};(fe=Io(ce))==null||fe.addEventListener("keydown",U)}),ee=mi(ce=>{var fe;const U=A.current;A.current=!1;const W=C.current;if(C.current=!1,d==="click"&&W||U||typeof v=="function"&&!v(ce))return;const K=Io(ce),$="["+HD("inert")+"]",k=Eb(s.floating).querySelectorAll($);let J=it(K)?K:null;for(;J&&!Jn(J);){const X=Qn(J);if(Jn(X)||!it(X))break;J=X}if(k.length&&it(K)&&!Q6(K)&&!Tb(K,s.floating)&&Array.from(k).every(X=>!Tb(J,X)))return;if(Gt(K)&&ue){const X=Jn(K),ae=on(K),se=/auto|scroll/,he=X||se.test(ae.overflowX),Ee=X||se.test(ae.overflowY),Be=he&&K.clientWidth>0&&K.scrollWidth>K.clientWidth,ie=Ee&&K.clientHeight>0&&K.scrollHeight>K.clientHeight,ge=ae.direction==="rtl",De=ie&&(ge?ce.offsetX<=K.offsetWidth-K.clientWidth:ce.offsetX>K.clientWidth),ft=Be&&ce.offsetY>K.clientHeight;if(De||ft)return}const H=(fe=o.current.floatingContext)==null?void 0:fe.nodeId,Z=b&&Bd(b.nodesRef.current,H).some(X=>{var ae;return $d(ce,(ae=X.context)==null?void 0:ae.elements.floating)});if($d(ce,s.floating)||$d(ce,s.domReference)||Z)return;const B=b?Bd(b.nodesRef.current,H):[];if(B.length>0){let X=!0;if(B.forEach(ae=>{var se;if((se=ae.context)!=null&&se.open&&!ae.context.dataRef.current.__outsidePressBubbles){X=!1;return}}),!X)return}r(!1,ce,"outside-press")}),le=mi(ce=>{var fe;const U=()=>{var W;ee(ce),(W=Io(ce))==null||W.removeEventListener(d,U)};(fe=Io(ce))==null||fe.addEventListener(d,U)});me.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=I,o.current.__outsidePressBubbles=E;let ce=-1;function fe(k){r(!1,k,"ancestor-scroll")}function U(){window.clearTimeout(ce),F.current=!0}function W(){ce=window.setTimeout(()=>{F.current=!1},Ja()?5:0)}const K=Eb(s.floating);c&&(K.addEventListener("keydown",N?re:G,N),K.addEventListener("compositionstart",U),K.addEventListener("compositionend",W)),v&&K.addEventListener(d,R?le:ee,R);let $=[];return p&&(it(s.domReference)&&($=kr(s.domReference)),it(s.floating)&&($=$.concat(kr(s.floating))),!it(s.reference)&&s.reference&&s.reference.contextElement&&($=$.concat(kr(s.reference.contextElement)))),$=$.filter(k=>{var J;return k!==((J=K.defaultView)==null?void 0:J.visualViewport)}),$.forEach(k=>{k.addEventListener("scroll",fe,{passive:!0})}),()=>{c&&(K.removeEventListener("keydown",N?re:G,N),K.removeEventListener("compositionstart",U),K.removeEventListener("compositionend",W)),v&&K.removeEventListener(d,R?le:ee,R),$.forEach(k=>{k.removeEventListener("scroll",fe)}),window.clearTimeout(ce)}},[o,s,c,v,d,n,r,p,a,I,E,G,N,re,ee,R,le]),me.useEffect(()=>{A.current=!1},[v,d]);const oe=me.useMemo(()=>({onKeyDown:G,...h&&{[KD[m]]:ce=>{r(!1,ce.nativeEvent,"reference-press")},...m!=="click"&&{onClick(ce){r(!1,ce.nativeEvent,"reference-press")}}}}),[G,r,h,m]),ue=me.useMemo(()=>({onKeyDown:G,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[XD[d]]:()=>{A.current=!0}}),[G,d]);return me.useMemo(()=>a?{reference:oe,floating:ue}:{},[a,oe,ue])}function ZD(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=BD(),o=me.useRef({}),[a]=me.useState(()=>UD()),c=YD()!=null;if(process.env.NODE_ENV!=="production"){const x=r.reference;x&&!it(x)&&WD("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]=me.useState(r.reference),h=mi((x,S,b)=>{o.current.openEvent=x?S:void 0,a.emit("openchange",{open:x,event:S,reason:b,nested:c}),n==null||n(x,S,b)}),m=me.useMemo(()=>({setPositionReference:d}),[]),p=me.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return me.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:s,refs:m}),[t,h,p,a,s,m])}function or(e){e===void 0&&(e={});const{nodeId:t}=e,n=ZD({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[o,a]=me.useState(null),[c,u]=me.useState(null),h=(s==null?void 0:s.domReference)||o,m=me.useRef(null),p=Ub();pi(()=>{h&&(m.current=h)},[h]);const x=jD({...e,elements:{...s,...c&&{reference:c}}}),S=me.useCallback(C=>{const I=it(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u(I),x.refs.setReference(I)},[x.refs]),b=me.useCallback(C=>{(it(C)||C===null)&&(m.current=C,a(C)),(it(x.refs.reference.current)||x.refs.reference.current===null||C!==null&&!it(C))&&x.refs.setReference(C)},[x.refs]),T=me.useMemo(()=>({...x.refs,setReference:b,setPositionReference:S,domReference:m}),[x.refs,b,S]),v=me.useMemo(()=>({...x.elements,domReference:h}),[x.elements,h]),A=me.useMemo(()=>({...x,...r,refs:T,elements:v,nodeId:t}),[x,T,v,t,r]);return pi(()=>{r.dataRef.current.floatingContext=A;const C=p==null?void 0:p.nodesRef.current.find(I=>I.id===t);C&&(C.context=A)}),me.useMemo(()=>({...x,context:A,refs:T,elements:v}),[x,T,v,A])}const Hb="active",qb="selected";function Wd(e,t,n){const r=new Map,s=n==="item";let o=e;if(s&&e){const{[Hb]:a,[qb]:c,...u}=e;o=u}return{...n==="floating"&&{tabIndex:-1,[qD]:""},...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(!(s&&[Hb,qb].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,x=arguments.length,S=new Array(x),b=0;b<x;b++)S[b]=arguments[b];return(p=r.get(d))==null?void 0:p.map(T=>T(...S)).find(T=>T!==void 0)}}}else a[d]=h}),a),{})}}function ar(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),s=me.useCallback(c=>Wd(c,e,"reference"),t),o=me.useCallback(c=>Wd(c,e,"floating"),n),a=me.useCallback(c=>Wd(c,e,"item"),r);return me.useMemo(()=>({getReferenceProps:s,getFloatingProps:o,getItemProps:a}),[s,o,a])}const Kb=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function gi(e,t){return typeof e=="function"?e(t):e}function JD(e,t){const[n,r]=me.useState(e);return e&&!n&&r(!0),me.useEffect(()=>{if(!e&&n){const s=setTimeout(()=>r(!1),t);return()=>clearTimeout(s)}},[e,n,t]),n}function QD(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,a=(typeof s=="number"?s:s.close)||0,[c,u]=me.useState("unmounted"),d=JD(n,a);return!d&&c==="close"&&u("unmounted"),pi(()=>{if(r){if(n){u("initial");const h=requestAnimationFrame(()=>{u("open")});return()=>{cancelAnimationFrame(h)}}u("close")}},[n,r]),{isMounted:d,status:c}}function lr(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:s,common:o,duration:a=250}=t,c=e.placement,u=c.split("-")[0],d=me.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof a=="number",m=(h?a:a.open)||0,p=(h?a:a.close)||0,[x,S]=me.useState(()=>({...gi(o,d),...gi(n,d)})),{isMounted:b,status:T}=QD(e,{duration:a}),v=ol(n),A=ol(r),C=ol(s),I=ol(o);return pi(()=>{const E=gi(v.current,d),N=gi(C.current,d),R=gi(I.current,d),F=gi(A.current,d)||Object.keys(E).reduce((G,re)=>(G[re]="",G),{});if(T==="initial"&&S(G=>({transitionProperty:G.transitionProperty,...R,...E})),T==="open"&&S({transitionProperty:Object.keys(F).map(Kb).join(","),transitionDuration:m+"ms",...R,...F}),T==="close"){const G=N||E;S({transitionProperty:Object.keys(G).map(Kb).join(","),transitionDuration:p+"ms",...R,...G})}},[p,C,v,A,I,m,T,d]),{isMounted:b,styles:x}}const ys=({open:e,onClose:t,component:n,children:r,placement:s="bottom",className:o="",strategy:a="absolute",styles:c={},offset:u=8,padding:d=8,handleClickAway:h=!0})=>{const[m,p]=O.useState(e);O.useEffect(()=>{p(e)},[e]);const x=()=>{p(!1),t==null||t()},{x:S,y:b,strategy:T,refs:v,context:A}=or({strategy:a,open:m,onOpenChange:G=>{!G&&!e&&x()},middleware:[tr(u),rr(),nr({padding:d})],whileElementsMounted:er,placement:s}),C=sr(A,{enabled:!1}),I=ir(A,{enabled:!1}),{getReferenceProps:E,getFloatingProps:N}=ar([C,I]),{isMounted:R,styles:F}=lr(A,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px) scale(0.95)"}});return g.jsx(I2,{enabled:h,onClickAway:()=>{m&&x()},children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{ref:v.setReference,...E(),className:"reference-element",children:r}),R&&g.jsx("div",{ref:v.setFloating,style:{position:T,top:b??0,left:S??0,...F,zIndex:999,...c},...N(),className:"floating-element w-max",children:g.jsx(yi,{className:`p-16! rounded-[16px]! shadow-floating ${o}`,children:typeof n=="function"?O.createElement(n):n})})]})})},eN=({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 g.jsxs("div",{className:"flex rounded-xl p-6 gap-2 border",style:{borderColor:(n==null?void 0:n.hoverLight)||"#dbeafe"},children:[g.jsx(st.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"}),g.jsx(st.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"})]})},tN=({setHourMenuOpen:e,hourMenuOpen:t,selectedHour:n})=>g.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`}),nN={primary:"#375ABC",primaryLight:"#8FA9F3",primaryDark:"#29438D",hover:"#4570EB",hoverLight:"#ECF1FD",text:"#375ABC",textLight:"#FFFFFF"},rN={primary:"#06B6D4",primaryLight:"#67E8F9",primaryDark:"#0891B2",hover:"#0891B2",hoverLight:"#CFFAFE",text:"#06B6D4",textLight:"#FFFFFF"},sN=e=>({blue:nN,aqua:rN})[e],Ud=({date:e,onDateChange:t,showTimeSelector:n=!0,minDate:r,maxDate:s,futureDates:o=!1,pastDates:a=!0,color:c="blue"})=>{const[u,d]=O.useState(e),[h,m]=O.useState(e),[p,x]=O.useState(e.getHours()%12||12),[S,b]=O.useState(e.getHours()>=12?"PM":"AM"),[T,v]=O.useState(0),{t:A}=Ve(),C=sN(c),[I,E]=O.useState(!1),[N,R]=O.useState(!1);O.useEffect(()=>{d(e),m(e),x(e.getHours()%12||12),b(e.getHours()>=12?"PM":"AM")},[e]);const F=()=>{v(-1),setTimeout(()=>{const W=M$(u);(!r||W>=r)&&d(W)},10)},G=()=>{v(1),setTimeout(()=>{d(sx(u,1))},10)},re=W=>{if(s&&W>s||r&&W<r)return;const K=gx(yx(xx(W,0),0),S==="AM"?p%12:p%12+12);m(K),t(K)},ee=W=>{x(W);const K=gx(yx(xx(h,0),0),S==="AM"?W%12:W%12+12);m(K),t(K),E(!1)},le=W=>{b(W)},oe=()=>{const W=new Date,K=20,$=5,[k,J]=O.useState(()=>Array.from({length:K+1},(X,ae)=>{const se=new Date(W.getFullYear(),W.getMonth()-ae,1);return{name:_n(se,"MMMM",{locale:Js}).replace(/^./,he=>he.toUpperCase()),index:se.getMonth(),year:se.getFullYear(),displayName:`${_n(se,"MMMM",{locale:Js}).replace(/^./,he=>he.toUpperCase())} ${se.getFullYear()}`}})),H=O.useRef(null),Z=O.useRef(null);O.useEffect(()=>{H.current&&H.current.disconnect(),H.current=new IntersectionObserver(X=>{X[0].isIntersecting&&J(ae=>{const se=ae[ae.length-1],he=new Date(se.year,se.index-1,1),Ee=Array.from({length:$},(Be,ie)=>{const ge=new Date(he.getFullYear(),he.getMonth()-ie,1);return{name:_n(ge,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase()),index:ge.getMonth(),year:ge.getFullYear(),displayName:`${_n(ge,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase())} ${ge.getFullYear()}`}});return[...ae,...Ee]})}),Z.current&&H.current.observe(Z.current)},[k]);const B=(X,ae)=>{const se=new Date(u);se.setMonth(X),se.setFullYear(ae),(!r||se>=r)&&d(se),R(!1)};return g.jsx("div",{className:"flex flex-col p-8 max-h-200 overflow-y-auto bg-light gap-4",children:k.map((X,ae)=>{const se=ae===k.length-1;return g.jsx("button",{ref:se?Z:null,onClick:()=>B(X.index,X.year),className:"text-start p-6 font-600 transition-all duration-100 rounded-lg",style:{backgroundColor:u.getMonth()===X.index&&u.getFullYear()===X.year?C.hoverLight:"transparent",color:u.getMonth()===X.index&&u.getFullYear()===X.year?C.text:"inherit"},onMouseEnter:he=>{u.getMonth()===X.index&&u.getFullYear()===X.year||(he.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:he=>{u.getMonth()===X.index&&u.getFullYear()===X.year||(he.currentTarget.style.backgroundColor="transparent")},children:X.displayName},`${X.name}-${X.year}-${ae}`)})})},ue=()=>g.jsxs("div",{className:"flex justify-between items-center mb-8",children:[g.jsx(ys,{open:N,onClose:()=>R(!1),component:oe,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:g.jsxs("button",{onClick:()=>R(!N),className:"transition-colors duration-150 flex gap-6 items-center !text-black",children:[g.jsx("h4",{className:"text-header-4",children:_n(u,"MMMM yyyy",{locale:Js}).replace(/^./,W=>W.toUpperCase())}),g.jsx(Pe,{icon:n0,className:"w-12 h-12"})]})}),g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx(sh,{variant:"transparent",color:c,icon:K6,onClick:F}),g.jsx(sh,{variant:"transparent",color:c,icon:yO,onClick:G})]})]}),ce=()=>{const W=Ks(OO(u)),K=_O(PO(u)),$=MO({start:W,end:K}),k=new Date;return k.setHours(0,0,0,0),g.jsx("div",{className:"grid grid-cols-7 gap-2",children:$.map((J,H)=>{const Z=ax(J,h),B=P$(J,u),X=A$(J),ae=J<k,se=J>k,he=!B||ae&&!a||se&&!o||r&&J<r||s&&J>s;return g.jsx(st.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
|
${he?"text-gray-400 pointer-events-none":"cursor-pointer"}
|
|
670
|
-
`,onClick:()=>!he&&
|
|
670
|
+
`,onClick:()=>!he&&re(J),initial:!1,animate:{backgroundColor:Z?C.primaryLight:"transparent",color:Z?C.textLight:X?C.text:he?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!he&&!Z?{backgroundColor:C.hoverLight}:{},whileTap:he?{}:{backgroundColor:Z?C.primaryDark:C.hoverLight},children:_n(J,"d")},H)})})},fe=()=>{const W=Array.from({length:12},($,k)=>k+1),K=()=>g.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:W.map($=>g.jsxs("button",{onClick:()=>ee($),className:"w-full text-center py-2 transition-all duration-100 rounded-lg",style:{backgroundColor:$===p?C.hoverLight:"transparent",color:$===p?C.text:"inherit",fontWeight:$===p?"500":"normal"},onMouseEnter:k=>{$!==p&&(k.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:k=>{$!==p&&(k.currentTarget.style.backgroundColor="transparent")},children:[String($).padStart(2,"0"),":00"]},$))});return g.jsxs("div",{className:"flex justify-between items-center mt-4 mb-4",children:[g.jsx("h4",{className:"text-body-m font-medium",children:A("time")}),g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx(ys,{open:I,onClose:()=>E(!1),component:K,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:g.jsx(tN,{setHourMenuOpen:E,hourMenuOpen:I,selectedHour:p})}),g.jsx(eN,{selectedPeriod:S,handlePeriodChange:le,colorVariants:C})]})]})},U={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 g.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[ue(),g.jsx(Kn,{initial:!1,mode:"popLayout",children:g.jsx(st.div,{variants:U,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:ce()},_n(u,"yyyy-MM"))}),n&&fe()]})},al=({label:e,onChange:t,value:n,name:r,error:s,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,required:d=!1,size:h="md",leftSide:m,rightSide:p,...x})=>{const{t:S}=Ve(),T={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-14",gap:"gap-8"}}[h];return g.jsxs("label",{className:`flex flex-col group select-none ${T.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[e&&g.jsxs("h6",{className:`text-gray-600 font-600 leading-none group ${s&&"!text-red-500"} ${T.label} ${c&&"text-gray-300"}`,children:[e,d&&g.jsx("span",{className:"text-red-500 ml-4",children:"*"})]}),g.jsxs("label",{htmlFor:r,className:`
|
|
671
671
|
flex items-center justify-between gap-8 bg-light
|
|
672
672
|
${T.container} ${s&&"!border-red-500"} rounded-full border
|
|
673
673
|
${n&&!c?"border-blue-200":"border-blue-100"}
|
|
@@ -677,10 +677,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
677
677
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
678
678
|
${u&&"hover:!cursor-pointer"}
|
|
679
679
|
group-disabled:bg-gray-500
|
|
680
|
-
`,children:[m&&m,g.jsx("input",{...x,id:r,name:r,disabled:c,required:d,placeholder:o,value:n,onChange:v=>{t(v.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${T.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"}`}),p&&p]}),s&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${T.error}`,children:S(s,{x:S(r)})})]})},Xb=e=>_n(e,"dd/MM/yyyy"),Zb=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 s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:s="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u,required:d=!1})=>{const{field:{value:h,onChange:m,onBlur:p},fieldState:{error:x}}=Un.useController({name:t,control:e}),{t:S}=Ve(),b=S(t),T=S(s),[v,A]=O.useState(!1),[C,I]=O.useState("");O.useEffect(()=>{h instanceof Date&&!isNaN(h.getTime())?I(Xb(h)):I("")},[h]);const E=Zb(C),
|
|
680
|
+
`,children:[m&&m,g.jsx("input",{...x,id:r,name:r,disabled:c,required:d,placeholder:o,value:n,onChange:v=>{t(v.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${T.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"}`}),p&&p]}),s&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${T.error}`,children:S(s,{x:S(r)})})]})},Xb=e=>_n(e,"dd/MM/yyyy"),Zb=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 s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null},iN=({control:e,name:t,showTimeSelector:n=!1,label:r,translateKey:s="",placeholder:o,futureDates:a=!1,pastDates:c=!0,size:u,required:d=!1})=>{const{field:{value:h,onChange:m,onBlur:p},fieldState:{error:x}}=Un.useController({name:t,control:e}),{t:S}=Ve(),b=S(t),T=S(s),[v,A]=O.useState(!1),[C,I]=O.useState("");O.useEffect(()=>{h instanceof Date&&!isNaN(h.getTime())?I(Xb(h)):I("")},[h]);const E=Zb(C),N=F=>{const G=F.replace(/\D/g,"").slice(0,8),re=[];G.length>0&&re.push(G.slice(0,2)),G.length>2&&re.push(G.slice(2,4)),G.length>4&&re.push(G.slice(4,8));const ee=re.join("/");if(I(ee),A(!1),ee.length===10){const le=Zb(ee);m(le)}},R=()=>{m(null),I("")};return g.jsx(ys,{open:v,strategy:"fixed",padding:0,offset:0,onClose:()=>A(!1),className:"p-0!",component:g.jsx(Ud,{date:E||new Date,onDateChange:F=>{I(Xb(F)),m(F),A(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:g.jsx(al,{size:u,onBlur:p,name:T||b,label:r,required:d,value:C,onFocus:F=>{F.preventDefault(),A(!0)},disabledInput:!0,onChange:F=>N(F),placeholder:o,error:x==null?void 0:x.message,rightSide:!!E&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:R})})})},Jb=({title:e,description:t,open:n,onClose:r,onConfirm:s,onCancel:o,icon:a=bb,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=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()},{t:p}=Ve();return g.jsx(Kn,{children:n&&g.jsx(g.Fragment,{children:g.jsx(st.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:g.jsx(st.div,{className:"w-full max-w-sm mx-16 z-50",variants:d,initial:"hidden",animate:"visible",exit:"exit",onClick:x=>x.stopPropagation(),children:g.jsxs(yi,{className:"flex flex-col gap-20 p-32",children:[g.jsxs("div",{className:"flex flex-col",children:[g.jsx("div",{className:"flex justify-end",children:c&&g.jsx(Pe,{icon:mf,className:"cursor-pointer text-2xl text-gray-500 transition-all duration-300 hover:text-gray-700",onClick:r})}),g.jsx("div",{className:"flex justify-center",children:g.jsx("div",{className:"bg-blue-100 rounded-full w-76 h-76 flex justify-center items-center",children:g.jsx(Pe,{icon:a,className:"w-32 h-36 min-h-36 min-w-36 text-blue-500",onClick:r})})})]}),g.jsxs("div",{className:"flex flex-col gap-20 items-center justify-center",children:[g.jsxs("div",{className:"text-center w-full",children:[g.jsx("h3",{className:"text-black font-700 text-3xl w-full",children:e}),g.jsx("p",{className:"text-gray-500 text-xl font-600 w-full",children:t})]}),g.jsxs("div",{className:"flex justify-center w-full gap-16",children:[!!o&&g.jsx(xs,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!s&&g.jsx(xs,{size:"lg",onClick:h,children:p("confirm")})]})]})]})})})})})},Qb={duration:.3,ease:[.32,.72,0,1]},oN={initial:{opacity:0,height:0,y:-8},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-8}},aN=({isOpen:e})=>g.jsx(st.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.16,1,.3,1]},children:g.jsx(Pe,{icon:H6,className:"text-gray-500 w-12 h-12 max-w-12 max-h-12"})}),lN=({label:e,children:t,subtitle:n,open:r,onClick:s,className:o="",labelClassName:a=""})=>{const{t:c}=Ve(),[u,d]=O.useState(!1),h=r!==void 0?r:u,m=s||(()=>d(!u));return g.jsxs(st.div,{className:"relative w-full bg-white border border-blue-100 rounded-2xl overflow-hidden",children:[g.jsxs("button",{onClick:m,className:`py-24 px-32 text-black font-semibold border-b
|
|
681
681
|
${h?"border-blue-100 bg-gray-50/50":"border-transparent"}
|
|
682
682
|
transition-all duration-200 ease-in-out focus:outline-none hover:bg-gray-50/50
|
|
683
|
-
flex items-center gap-2 group w-full justify-between`,children:[g.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),g.jsxs("div",{className:"flex gap-10 items-center",children:[g.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),g.jsx(aN,{isOpen:h})]})]}),g.jsx(Kn,{mode:"wait",children:h&&g.jsx(st.div,{...oN,transition:{height:{duration:Qb.duration,ease:Qb.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},cN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:s}=Ve(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=O.useState(o()),[u,d]=O.useState(0),[h,m]=O.useState(10);O.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d(I=>{const E=Math.min(I+C,99),
|
|
683
|
+
flex items-center gap-2 group w-full justify-between`,children:[g.jsx("span",{className:`text-left text-lg md:text-xl font-700 ${a}`,children:c(e)}),g.jsxs("div",{className:"flex gap-10 items-center",children:[g.jsx("span",{className:"text-gray-500 font-normal text-base md:text-lg",children:n}),g.jsx(aN,{isOpen:h})]})]}),g.jsx(Kn,{mode:"wait",children:h&&g.jsx(st.div,{...oN,transition:{height:{duration:Qb.duration,ease:Qb.ease},opacity:{duration:.15,ease:"easeOut"}},className:`w-full bg-white overflow-hidden ${o}`,children:t})})]})},Ht={LOADING:"loading",COMPLETE:"complete",ERROR:"error"},cN=({file:e,onDelete:t,onRetry:n,uploadDuration:r=4e3})=>{const{t:s}=Ve(),o=()=>e.error?Ht.ERROR:e.loading?Ht.LOADING:Ht.COMPLETE,[a,c]=O.useState(o()),[u,d]=O.useState(0),[h,m]=O.useState(10);O.useEffect(()=>{const b=o();c(b);let T;if(b===Ht.LOADING&&u<100){const C=100/(r/100);T=setInterval(()=>{d(I=>{const E=Math.min(I+C,99),N=Math.max(0,Math.round((100-E)/10));return m(N),E})},100)}else b===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} ${s("seconds_left")})`;case Ht.COMPLETE:return s("file_uploaded");case Ht.ERROR:return s("upload_error");default:return""}},x=()=>{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 s("unknown");const b=e.file_size/1024;return b<1024?`${b.toFixed(1)} KB`:`${(b/1024).toFixed(1)} MB`};return g.jsxs("div",{className:"border border-gray-100 bg-white rounded-lg p-16 shadow-sm w-full",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Pe,{icon:h5,className:"w-12 h-12 min-w-12 min-h-12 text-gray-400"}),g.jsx("span",{className:"text-gray-500 text-sm",children:e.user_file_name})]}),a===Ht.COMPLETE&&g.jsx("button",{onClick:t,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:d5})}),a===Ht.ERROR&&g.jsx("button",{onClick:n,className:"text-gray-400 transition-all duration-200 hover:text-gray-600 focus:outline-none",children:g.jsx(Pe,{icon:u5})})]}),g.jsx("div",{className:"flex items-center mt-2",children:e!=null&&e.analyzing?g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx(st.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"}}),g.jsxs("span",{className:"text-sm text-gray-500",children:[s("analyzing_file_with_ai"),"..."]})]}):g.jsxs("div",{className:"text-sm",children:[g.jsxs("span",{className:"text-gray-500",children:[S()," |"]})," ",g.jsx("span",{className:x(),children:p()})]})}),a===Ht.LOADING&&g.jsx("div",{className:"mt-2 bg-gray-200 rounded-full h-2",children:g.jsx("div",{className:"h-2 rounded-full transition-all duration-100 ease-linear bg-blue-500",style:{width:`${u}%`}})})]})},e2=({index:e,label:t,active:n,completed:r})=>g.jsxs("div",{className:"flex items-center gap-8",children:[g.jsx("div",{className:`
|
|
684
684
|
size-24 rounded-full border-[1px] flex items-center justify-center text-center font-600 text-label transition-colors ease-in-out duration-200
|
|
685
685
|
${n&&"border-blue-500! text-blue-500!"}
|
|
686
686
|
${r?"text-blue-500 bg-blue-50 border-none!":"border-gray-300 text-gray-300"}
|
|
@@ -692,7 +692,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
692
692
|
${n||r?"text-blue-500":"text-gray-300"}
|
|
693
693
|
${n&&"font-600"}
|
|
694
694
|
${r&&"font-500"}
|
|
695
|
-
`,children:t})]}),uN=({currentStep:e,steps:t})=>g.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>g.jsx(e2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),fN=({label:e,value:t})=>g.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||O.isValidElement(t)?t:null})]}),t2=({title:e,children:t,className:n=""})=>g.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});t2.Entry=fN;const yi=({children:e,className:t,element:n="div"})=>{const r=n;return g.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},dN=({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 g.jsx(Kn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.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:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:s=>s.stopPropagation(),children:g.jsx(yi,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:g.jsx(g.Fragment,{})})})})})})},hN={focusIconColor:"text-white",completedIconColor:"text-blue-500",pendingIconColor:"text-blue-500",labelColor:"text-blue-500",focusBgColor:"#4570EB",completedBgColor:"#CAD6F9",pendingBgColor:"#ECF1FD",lineActiveColor:"bg-blue-200",lineGradientFrom:"from-blue-500",lineGradientTo:"to-blue-200"},mN={focusIconColor:"text-white",completedIconColor:"text-aqua-500",pendingIconColor:"text-aqua-500",labelColor:"text-aqua-500",focusBgColor:"#1DA696",completedBgColor:"#C7F9F5",pendingBgColor:"#C7F9F5",lineActiveColor:"bg-aqua-200",lineGradientFrom:"from-aqua-500",lineGradientTo:"to-aqua-200"},ll=e=>{switch(e){case"aqua":return mN;case"blue":default:return hN}},pN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex items-center gap-8 h-fit min-w-0",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(oh,{...e})}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 font-semibold truncate ${n}`,children:t(e.label)})]})},gN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex flex-col items-center gap-8 h-fit min-w-fit",children:[g.jsx(oh,{...e}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${n}`,children:t(e.label)})]})},yN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ve(),s=n||r,o=ll(s),[a,c]=O.useState([]),[u,d]=O.useState(null),[h,m]=O.useState(!1),p=e.findIndex(T=>!T.completed),x=T=>p===T;O.useEffect(()=>{const T=e.map((v,A)=>x(A)?"focus":v.completed?"done":"pending");if(!h)c(T),m(!0),d(null);else{const v=T.findIndex((A,C)=>A!==a[C]);d(v!==-1?v:null),c(T)}},[e,p]);const S=()=>g.jsx("div",{className:"flex flex-col h-full w-full",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex flex-col ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex items-center gap-4 z-10",children:g.jsx(pN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:"flex h-full w-[35px] justify-center my-4",children:g.jsx("div",{className:`w-[1.5px] h-full transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-b ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})})]},v)})}),b=()=>g.jsx("div",{className:"w-full flex items-start",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex items-start ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex flex-col items-center z-10",children:g.jsx(gN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:`flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-r ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})]},v)})});return t==="horizontal"?g.jsx(b,{}):g.jsx(S,{})},xN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:s,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=O.useRef([]),[h,m]=O.useState({left:0,width:0}),p=O.useRef(null),{defaultColorScheme:x}=Ve(),S=t||x,b=()=>{const T=n.findIndex(v=>v.id===r);if(T>=0&&d.current[T]){const v=d.current[T];if(v&&p.current){const A=p.current.getBoundingClientRect(),C=v.getBoundingClientRect();m({left:C.left-A.left,width:C.width})}}};return O.useEffect(()=>{b()},[r,n]),O.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),g.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,v)=>g.jsx(uf.div,{ref:A=>{d.current[v]=A},className:"w-full",children:g.jsx(O2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>s(T.id),variant:e})},T.id)),g.jsx(uf.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}})]})},zd=e=>_n(e,"dd/MM/yyyy"),vN=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 s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null};function Gd({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:s,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[x,S]=O.useState(!1),[b,T]=O.useState(e?zd(e):"");O.useEffect(()=>{T(e?zd(e):"")},[e]);const v=C=>{const I=C.replace(/\D/g,"").slice(0,8),E=[];I.length>0&&E.push(I.slice(0,2)),I.length>2&&E.push(I.slice(2,4)),I.length>4&&E.push(I.slice(4,8));const D=E.join("/");if(T(D),S(!1),D.length===10){const F=vN(D);F&&t(F)}},A=()=>{t(null),T("")};return g.jsx(ys,{open:x,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:g.jsx(Ud,{date:e||new Date,onDateChange:C=>{t(C),T(zd(C)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?g.jsx("div",{onClick:C=>{C.preventDefault(),S(!0)},children:m}):g.jsx(al,{size:p,name:o,label:n,value:b,onClick:C=>{C.preventDefault(),S(!0)},onChange:C=>v(C),placeholder:r,error:s,rightSide:e&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:A})})})}function n2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=n2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n2(e))&&(r&&(r+=" "),r+=t);return r}const r2={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"},s2={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"},i2={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"},o2={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"},bN="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",wN={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"},SN=(e="filled",t="blue",n="base")=>{const r=Ln(bN,wN[n]),s={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(r,s)},TN="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",CN={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]"},EN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},PN=(e="filled",t="blue",n="base",r="none")=>{const s=Ln(TN,CN[n],EN[r]),o={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(s,o)},AN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Do=(e="base")=>AN[e],xs=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ve(),d=n||u;return g.jsxs("button",{type:"button",className:SN(r,d,s)+" "+a,...c,children:[e&&g.jsx(Pe,{icon:e,className:Do(s)}),o,t&&g.jsx(Pe,{icon:t,className:Do(s)})]})},MN=({name:e,error:t,value:n="",onChange:r,onOptionClick:s,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:x="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:v=!0,leftSide:A,rightSide:C})=>{const{t:I}=Ve(),[E,D]=O.useState(!1),F=O.useRef(null),{x:R,y:Y,strategy:ee,refs:Q,context:fe}=or({open:E,onOpenChange:D,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(fe,{enabled:b}),ce=ir(fe),{getReferenceProps:le,getFloatingProps:ue}=ar([oe,ce]),{isMounted:z,styles:U}=lr(fe,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const B=Array.isArray(u)?u:[];if(!n||!n.trim())return B;const J=n.toLowerCase();return B.filter(ae=>ae.label.toLowerCase().includes(J))})(),$=B=>{v&&(r==null||r(B.label)),D(!1),s==null||s(B),a==null||a(B.value)},k=B=>{r==null||r(B)},X=B=>{B.stopPropagation(),b&&!m&&(D(!E),!E&&F.current&&setTimeout(()=>{var J;return(J=F.current)==null?void 0:J.focus()},100))},re={...b?le():{},onKeyDown:void 0,onClick:void 0};return g.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),g.jsxs("div",{className:"flex gap-24",children:[g.jsxs("div",{ref:Q.setReference,className:`
|
|
695
|
+
`,children:t})]}),uN=({currentStep:e,steps:t})=>g.jsx("div",{className:"flex flex-col gap-16",children:t.map((n,r)=>g.jsx(e2,{label:n,index:r+1,active:r+1===e,completed:r+1<e},r))}),fN=({label:e,value:t})=>g.jsxs("div",{className:"col-span-2 flex flex-col gap-6",children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"text-body-s text-gray-600",children:typeof t=="string"||O.isValidElement(t)?t:null})]}),t2=({title:e,children:t,className:n=""})=>g.jsxs("div",{className:`w-full flex flex-col gap-16 ${n}`,children:[g.jsx("h4",{className:"text-body-m font-600",children:e}),g.jsx("div",{className:"w-full grid grid-cols-4 gap-8 bg-white p-16 rounded-2xl border-1 border-blue-100",children:t})]});t2.Entry=fN;const yi=({children:e,className:t,element:n="div"})=>{const r=n;return g.jsx(r,{className:`bg-white p-24 border border-blue-100 rounded-2xl ${t||""}`,children:e})},dN=({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 g.jsx(Kn,{children:e&&g.jsx(g.Fragment,{children:g.jsx(st.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:g.jsx(st.div,{className:"w-full max-w-4xl mx-16 z-50",variants:r,initial:"hidden",animate:"visible",exit:"exit",onClick:s=>s.stopPropagation(),children:g.jsx(yi,{className:"flex flex-col gap-16 md:gap-24 !p-0",children:g.jsx(g.Fragment,{})})})})})})},hN={focusIconColor:"text-white",completedIconColor:"text-blue-500",pendingIconColor:"text-blue-500",labelColor:"text-blue-500",focusBgColor:"#4570EB",completedBgColor:"#CAD6F9",pendingBgColor:"#ECF1FD",lineActiveColor:"bg-blue-200",lineGradientFrom:"from-blue-500",lineGradientTo:"to-blue-200"},mN={focusIconColor:"text-white",completedIconColor:"text-aqua-500",pendingIconColor:"text-aqua-500",labelColor:"text-aqua-500",focusBgColor:"#1DA696",completedBgColor:"#C7F9F5",pendingBgColor:"#C7F9F5",lineActiveColor:"bg-aqua-200",lineGradientFrom:"from-aqua-500",lineGradientTo:"to-aqua-200"},ll=e=>{switch(e){case"aqua":return mN;case"blue":default:return hN}},pN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex items-center gap-8 h-fit min-w-0",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx(oh,{...e})}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 font-semibold truncate ${n}`,children:t(e.label)})]})},gN=e=>{const{t}=Ve(),{labelColor:n}=ll(e.color);return g.jsxs("div",{className:"flex flex-col items-center gap-8 h-fit min-w-fit",children:[g.jsx(oh,{...e}),e.label&&g.jsx("span",{className:`text-body-s transition-all duration-300 text-center font-semibold whitespace-nowrap ${n}`,children:t(e.label)})]})},yN=({steps:e,direction:t="horizontal",color:n})=>{const{defaultColorScheme:r}=Ve(),s=n||r,o=ll(s),[a,c]=O.useState([]),[u,d]=O.useState(null),[h,m]=O.useState(!1),p=e.findIndex(T=>!T.completed),x=T=>p===T;O.useEffect(()=>{const T=e.map((v,A)=>x(A)?"focus":v.completed?"done":"pending");if(!h)c(T),m(!0),d(null);else{const v=T.findIndex((A,C)=>A!==a[C]);d(v!==-1?v:null),c(T)}},[e,p]);const S=()=>g.jsx("div",{className:"flex flex-col h-full w-full",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex flex-col ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex items-center gap-4 z-10",children:g.jsx(pN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:"flex h-full w-[35px] justify-center my-4",children:g.jsx("div",{className:`w-[1.5px] h-full transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-b ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})})]},v)})}),b=()=>g.jsx("div",{className:"w-full flex items-start",children:e.map((T,v)=>{const A=x(v)?"focus":T.completed?"done":"pending",C=h&&u===v;return g.jsxs("div",{className:`flex items-start ${v<e.length-1?"flex-1":"flex-initial"}`,children:[g.jsx("div",{className:"flex flex-col items-center z-10",children:g.jsx(gN,{index:v,status:A,shouldAnimate:C,label:T.label,color:s})}),v<e.length-1&&g.jsx("div",{className:`flex-1 h-[1.5px] mt-[16px] mx-4 transition-all duration-500 ${A==="done"?o.lineActiveColor:A==="focus"?`bg-gradient-to-r ${o.lineGradientFrom} ${o.lineGradientTo}`:""}`,style:{backgroundColor:A==="pending"?o.pendingBgColor:void 0}})]},v)})});return t==="horizontal"?g.jsx(b,{}):g.jsx(S,{})},xN=({variant:e="underline",color:t="blue",tabs:n,activeTab:r,onTabChange:s,className:o="",direction:a="row",showLabel:c=!0,labelClassName:u=""})=>{const d=O.useRef([]),[h,m]=O.useState({left:0,width:0}),p=O.useRef(null),{defaultColorScheme:x}=Ve(),S=t||x,b=()=>{const T=n.findIndex(v=>v.id===r);if(T>=0&&d.current[T]){const v=d.current[T];if(v&&p.current){const A=p.current.getBoundingClientRect(),C=v.getBoundingClientRect();m({left:C.left-A.left,width:C.width})}}};return O.useEffect(()=>{b()},[r,n]),O.useEffect(()=>{const T=()=>{b()};return window.addEventListener("resize",T),()=>{window.removeEventListener("resize",T)}},[r,n]),g.jsxs("div",{ref:p,className:`flex items-center relative ${o}`,children:[n.map((T,v)=>g.jsx(uf.div,{ref:A=>{d.current[v]=A},className:"w-full",children:g.jsx(O2,{href:T.href,label:c?T.label:"",labelClassName:u,icon:T.icon,direction:a,isSelected:r===T.id,onClick:()=>s(T.id),variant:e})},T.id)),g.jsx(uf.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}})]})},zd=e=>_n(e,"dd/MM/yyyy"),vN=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 s=new Date(Number(r),Number(n)-1,Number(t));return isNaN(s.getTime())?null:s}return null};function Gd({currentDate:e,onDateChange:t,label:n,placeholder:r="dd/mm/yyyy",error:s,translatedKey:o,showTimeSelector:a=!1,futureDates:c=!1,pastDates:u=!0,minDate:d,maxDate:h,customDisplay:m,size:p}){const[x,S]=O.useState(!1),[b,T]=O.useState(e?zd(e):"");O.useEffect(()=>{T(e?zd(e):"")},[e]);const v=C=>{const I=C.replace(/\D/g,"").slice(0,8),E=[];I.length>0&&E.push(I.slice(0,2)),I.length>2&&E.push(I.slice(2,4)),I.length>4&&E.push(I.slice(4,8));const N=E.join("/");if(T(N),S(!1),N.length===10){const R=vN(N);R&&t(R)}},A=()=>{t(null),T("")};return g.jsx(ys,{open:x,strategy:"fixed",padding:0,offset:0,onClose:()=>S(!1),className:"p-0!",component:g.jsx(Ud,{date:e||new Date,onDateChange:C=>{t(C),T(zd(C)),S(!1)},showTimeSelector:a,futureDates:c,pastDates:u,minDate:d,maxDate:h}),children:m?g.jsx("div",{onClick:C=>{C.preventDefault(),S(!0)},children:m}):g.jsx(al,{size:p,name:o,label:n,value:b,onClick:C=>{C.preventDefault(),S(!0)},onChange:C=>v(C),placeholder:r,error:s,rightSide:e&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:A})})})}function n2(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=n2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=n2(e))&&(r&&(r+=" "),r+=t);return r}const r2={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"},s2={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"},i2={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"},o2={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"},bN="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",wN={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"},SN=(e="filled",t="blue",n="base")=>{const r=Ln(bN,wN[n]),s={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(r,s)},TN="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",CN={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]"},EN={none:"",blue:"shadow-blue-sh hover:shadow-blue-sh active:shadow-blue-sh"},PN=(e="filled",t="blue",n="base",r="none")=>{const s=Ln(TN,CN[n],EN[r]),o={blue:r2[e],aqua:s2[e],red:i2[e],gray:o2[e]}[t];return Ln(s,o)},AN={lg:"min-h-[20px] max-h-[20px]",base:"min-h-[15px] max-h-[15px]",md:"min-h-[15px] max-h-[15px]",sm:"min-h-[15px] max-h-[15px]",xs:"min-h-[15px] max-h-[15px]"},Do=(e="base")=>AN[e],xs=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ve(),d=n||u;return g.jsxs("button",{type:"button",className:SN(r,d,s)+" "+a,...c,children:[e&&g.jsx(Pe,{icon:e,className:Do(s)}),o,t&&g.jsx(Pe,{icon:t,className:Do(s)})]})},MN=({name:e,error:t,value:n="",onChange:r,onOptionClick:s,onKeyDown:o,onSelect:a,onButtonClick:c,options:u,placeholder:d,label:h,disabled:m=!1,className:p="",buttonContent:x="Enviar",showOptionsOnClick:S=!0,showChevron:b=!1,showButton:T=!1,setValueOnOptionSelect:v=!0,leftSide:A,rightSide:C})=>{const{t:I}=Ve(),[E,N]=O.useState(!1),R=O.useRef(null),{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:E,onOpenChange:N,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le,{enabled:b}),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const B=Array.isArray(u)?u:[];if(!n||!n.trim())return B;const X=n.toLowerCase();return B.filter(ae=>ae.label.toLowerCase().includes(X))})(),$=B=>{v&&(r==null||r(B.label)),N(!1),s==null||s(B),a==null||a(B.value)},k=B=>{r==null||r(B)},J=B=>{B.stopPropagation(),b&&!m&&(N(!E),!E&&R.current&&setTimeout(()=>{var X;return(X=R.current)==null?void 0:X.focus()},100))},Z={...b?ce():{},onKeyDown:void 0,onClick:void 0};return g.jsxs("div",{className:`flex flex-col gap-8 select-none ${m&&"cursor-not-allowed"} ${p}`,children:[g.jsx("h6",{className:`text-gray-600 font-600 group ${t&&"!text-red-500"} text-label ${m&&"text-gray-300"}`,children:h}),g.jsxs("div",{className:"flex gap-24",children:[g.jsxs("div",{ref:ee.setReference,className:`
|
|
696
696
|
flex items-center justify-between gap-8 p-16
|
|
697
697
|
|
|
698
698
|
${t&&"!border-red-500"}
|
|
@@ -708,20 +708,20 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
708
708
|
focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
709
709
|
${m&&"hover:!cursor-pointer"}
|
|
710
710
|
group-disabled:bg-gray-500
|
|
711
|
-
`,...
|
|
711
|
+
`,...Z,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!E&&!m&&N(!0)},onChange:B=>k(B.target.value),onKeyDown:B=>{o&&o(B),B.key==="Enter"&&(B.preventDefault(),K.length>0&&$(K[0])),B.key==="Escape"&&N(!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"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${E&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:J})]}),T&&g.jsx(xs,{variant:"filled",size:"lg",onClick:c,className:"h-[55px]!",children:x})]}),t&&g.jsx("h4",{className:"font-500 text-label text-red-500 leading-none",children:I(t,{x:I(e)})}),U&&g.jsx("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,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",...fe(),children:g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((B,X)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${n===B.label?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:ae=>{ae.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${X}`))}):n&&(n==null?void 0:n.length)>0?g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No se encontraron resultados para "',n,'"']})]}):null})})]})},Yd=({label:e,onClick:t,onRemove:n,readOnly:r})=>g.jsxs("div",{className:"flex justify-between items-center gap-10 bg-[#DEE6F7] rounded-[4px] p-8 text-14",onClick:t,children:[g.jsx("span",{className:"text-blue-500 font-semibold text-nowrap text-ellipsis overflow-hidden",children:e}),!r&&n&&g.jsx("button",{onClick:s=>{n(),s.stopPropagation()},className:"flex items-center text-blue-300 hover:text-red-500",children:g.jsx(Pe,{icon:s0})})]}),ON=({values:e,onPillRemove:t})=>{const[n,r]=O.useState(!1),s=e.slice(0,3),o=e.slice(3);return g.jsxs("div",{className:"flex justify-between items-start gap-20",children:[g.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.map(a=>g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)},a.value)),g.jsx(Kn,{children:n&&o.map(a=>g.jsx(st.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},children:g.jsx(Yd,{label:a.label,onRemove:()=>t(a.value)})},a.value))})]}),o.length>0&&g.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?g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Ocultar"})," ",g.jsx(Pe,{icon:c5})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{children:["Ver ",o.length," más"]})," ",g.jsx(Pe,{icon:m5})]})})]})},$N=({open:e,onClose:t,children:n,side:r="right",className:s="",backdropClassName:o="",width:a="650px",zIndex:c=9999,usePortal:u=!0})=>{O.useEffect(()=>{const p=x=>{x.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=g.jsx(Kn,{children:e&&g.jsxs("div",{className:"fixed inset-0 flex",style:{zIndex:c},children:[g.jsx(st.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()}}),g.jsx("div",{className:`relative flex w-full pointer-events-none ${r==="left"?"justify-start":"justify-end"}`,children:g.jsx(st.div,{variants:d,initial:"initial",animate:"animate",exit:"exit",className:`
|
|
712
712
|
relative bg-white shadow-2xl h-full overflow-hidden flex flex-col pointer-events-auto
|
|
713
713
|
${s}
|
|
714
|
-
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?Em.createPortal(m,document.body):m},_N=({filters:e})=>{const[t,n]=O.useState(!1),r=()=>n(!1),s=()=>n(!0);return g.jsx(ys,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md! px-0! text-base! py-12!",component:g.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[g.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),g.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>g.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:[g.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),g.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:g.jsx(Pe,{icon:RE,onClick:s,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},IN=({label:e,options:t,selectedValues:n,onUpdate:r,placeholder:s="Seleccionar opciones",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md"})=>{var
|
|
714
|
+
`,style:{width:typeof a=="number"?`${a}px`:a},onClick:p=>{p.preventDefault(),p.stopPropagation()},children:n})})]})});return u&&typeof document<"u"&&document.body?Em.createPortal(m,document.body):m},_N=({filters:e})=>{const[t,n]=O.useState(!1),r=()=>n(!1),s=()=>n(!0);return g.jsx(ys,{open:t,onClose:r,placement:"bottom-start",className:"w-[326px] shadow-md! px-0! text-base! py-12!",component:g.jsxs("div",{className:"relative flex flex-col gap-[10px]",children:[g.jsx("h4",{className:"px-24 text-lg font-semibold text-blue-900",children:"Filtros"}),g.jsx("div",{className:"flex flex-col",children:e.map((o,a)=>g.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:[g.jsx(Pe,{icon:o.icon,className:"text-[14px] text-gray-600 group-hover:text-blue-500"}),g.jsx("p",{className:"text-[12px] text-gray-500 font-semibold group-hover:text-gray-800",children:o.label})]},a))})]}),children:g.jsx(Pe,{icon:RE,onClick:s,className:"transition text-[16px] ease-in-out duration-150 hover:text-gray-600 cursor-pointer"})})},IN=({label:e,options:t,selectedValues:n,onUpdate:r,placeholder:s="Seleccionar opciones",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md"})=>{var fe;const[d,h]=O.useState(!1),[m,p]=O.useState(""),x=O.useRef(null),S=O.useRef(null),T={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",icon:"w-12 h-12",checkboxSize:16,gap:"gap-8",searchText:"text-sm",searchIcon:"size-12"},md:{container:"p-16",text:"text-14",label:"text-14",icon:"w-16 h-16",checkboxSize:20,gap:"gap-8",searchText:"text-14",searchIcon:"size-16"}}[u],{x:v,y:A,strategy:C,refs:I,context:E}=or({open:d&&!c,onOpenChange:U=>!c&&h(U),middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:U,elements:W}){Object.assign(W.floating.style,{maxHeight:`${Math.min(U-10,500)}px`})},padding:8}),gs({element:S})],placement:"bottom-start",whileElementsMounted:er}),N=sr(E,{enabled:!c}),R=ir(E),{getReferenceProps:F,getFloatingProps:G}=ar([N,R]),{isMounted:re,styles:ee}=lr(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=O.useCallback((U,W)=>{if(c)return;let K;W?K=n.includes(U)?n:[...n,U]:K=n.filter($=>$!==U),r(K)},[n,r,c]),oe=t.filter(U=>U.label.toLowerCase().includes(m.toLowerCase())),ue=()=>{if(n.length===0)return s;const U=t.filter(W=>n.includes(W.value)).map(W=>W.label);return U.length===1?U[0]:`${U.length} seleccionados`},ce=F({onClick:()=>!c&&h(!d)});return g.jsxs("div",{className:`flex flex-col select-none ${T.gap} ${c?"cursor-not-allowed":""} ${a}`,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none ${T.label} ${c?"text-gray-300":""}`,children:e}),g.jsxs("div",{ref:I.setReference,className:`
|
|
715
715
|
flex items-center justify-between rounded-full border transition-all duration-200
|
|
716
716
|
${T.container}
|
|
717
717
|
${c?"bg-gray-50 border-gray-200 cursor-not-allowed":"bg-blue-50 cursor-pointer"}
|
|
718
718
|
${!c&&(d?"border-blue-500":"border-blue-100 hover:border-blue-300")}
|
|
719
|
-
`,...
|
|
719
|
+
`,...ce,children:[g.jsx("span",{className:`flex-grow text-left truncate font-600 ${T.text} ${c?"text-gray-300":"text-gray-500"}`,children:ue()}),g.jsx("svg",{className:`${T.icon} transition-transform ${d?"rotate-180":""} ${c?"text-gray-300":"text-gray-500"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),re&&!c&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ee,width:(fe=I.reference.current)==null?void 0:fe.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...G(),children:[o&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:`${T.searchIcon} text-gray-400`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:x,type:"text",className:`w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${T.searchText}`,placeholder:"Buscar...",value:m,onChange:U=>p(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0}),m&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:U=>{U.stopPropagation(),p("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[450px] overflow-y-auto",children:oe.length>0?g.jsx("div",{className:"py-4",children:oe.map(U=>{var K,$,k;const W=n.includes(U.value);return g.jsxs(O.Fragment,{children:[U.dividerBefore&&g.jsx("div",{className:"px-16 py-8",children:g.jsx("hr",{className:"border-t border-gray-200"})}),g.jsxs("div",{className:"flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",onClick:()=>le(U.value,!W),children:[g.jsx(Kd,{active:W,size:T.checkboxSize,variant:"square",className:"flex-shrink-0"}),g.jsxs("div",{className:`flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((K=U.colors)==null?void 0:K.bgColor)||""} ${(($=U.colors)==null?void 0:$.textColor)||""}`,children:[((k=U.colors)==null?void 0:k.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:U.colors.dotColor}}),g.jsx("span",{className:`${T.text} font-semibold truncate`,children:U.label})]})]})]},U.value)})}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:["No se encontraron resultados para “",m,"”"]})]})})]})]})},DN=({label:e,options:t,selectedValue:n=null,onUpdate:r,placeholder:s="Seleccionar opción",allowSearch:o=!0,className:a="",disabled:c=!1,size:u="md",showRadio:d=!1})=>{var U,W,K,$;const[h,m]=O.useState(!1),[p,x]=O.useState(""),S=O.useRef(null),b=O.useRef(null),v={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",icon:"w-12 h-12",checkboxSize:16,gap:"gap-8",searchText:"text-sm",searchIcon:"size-12"},md:{container:"p-16",text:"text-14",label:"text-14",icon:"w-16 h-16",checkboxSize:20,gap:"gap-8",searchText:"text-14",searchIcon:"size-16"}}[u],{x:A,y:C,strategy:I,refs:E,context:N}=or({open:h&&!c,onOpenChange:k=>!c&&m(k),middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:k,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(k-10,500)}px`})},padding:8}),gs({element:b})],placement:"bottom-start",whileElementsMounted:er}),R=sr(N,{enabled:!c}),F=ir(N),{getReferenceProps:G,getFloatingProps:re}=ar([R,F]),{isMounted:ee,styles:le}=lr(N,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=t.find(k=>k.value===n),ue=k=>{c||(r(n===k?null:k),m(!1),x(""))},ce=t.filter(k=>k.label.toLowerCase().includes(p.toLowerCase())),fe=G({onClick:()=>!c&&m(!h)});return g.jsxs("div",{className:`flex flex-col select-none ${v.gap} ${c?"cursor-not-allowed":""} ${a}`,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none ${v.label} ${c?"text-gray-300":""}`,children:e}),g.jsxs("div",{ref:E.setReference,className:`
|
|
720
720
|
flex items-center justify-between rounded-full border transition-all duration-200
|
|
721
721
|
${v.container}
|
|
722
722
|
${c?"bg-gray-50 border-gray-200 cursor-not-allowed":"bg-blue-50 cursor-pointer"}
|
|
723
723
|
${!c&&(h?"border-blue-500":"border-blue-100 hover:border-blue-300")}
|
|
724
|
-
`,...ue,children:[oe?g.jsxs("div",{className:`flex items-center gap-[6px] overflow-hidden ${((z=oe.colors)==null?void 0:z.bgColor)||""} ${((U=oe.colors)==null?void 0:U.textColor)||""} ${oe.colors?"rounded-[8px] py-4 px-8":""}`,children:[((K=oe.colors)==null?void 0:K.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:oe.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:oe.label})]}):g.jsx("span",{className:`flex-grow text-left truncate font-600 ${v.text} ${c?"text-gray-300":"text-gray-500"}`,children:s}),g.jsx("svg",{className:`${v.icon} transition-transform ${h?"rotate-180":""} ${c?"text-gray-300":"text-gray-500"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),Q&&!c&&g.jsxs("div",{ref:E.setFloating,style:{position:I,top:C??0,left:A??0,...fe,width:($=E.reference.current)==null?void 0:$.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ee(),children:[o&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:`${v.searchIcon} text-gray-400`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:S,type:"text",className:`w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${v.searchText}`,placeholder:"Buscar...",value:p,onChange:k=>x(k.target.value),onClick:k=>k.stopPropagation(),autoFocus:!0}),p&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:k=>{k.stopPropagation(),x("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[450px] overflow-y-auto",children:le.length>0?g.jsx("div",{className:"py-4",children:le.map(k=>{var W,re,B;const X=n===k.value;return g.jsxs(O.Fragment,{children:[k.dividerBefore&&g.jsx("div",{className:"px-16 py-8",children:g.jsx("hr",{className:"border-t border-gray-200"})}),g.jsxs("div",{className:"flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",onClick:()=>ce(k.value),children:[d&&g.jsx(Kd,{active:X,size:v.checkboxSize,variant:"rounded",className:"flex-shrink-0"}),g.jsxs("div",{className:`flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((W=k.colors)==null?void 0:W.bgColor)||""} ${((re=k.colors)==null?void 0:re.textColor)||""}`,children:[((B=k.colors)==null?void 0:B.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:k.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:k.label})]})]})]},k.value)})}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:["No se encontraron resultados para “",p,"”"]})]})})]})]})},NN=({image:e,title:t,subtitle:n,className:r=""})=>g.jsxs("div",{className:`flex flex-col items-center justify-center gap-24 p-8 text-center w-full h-full min-h-[300px] ${r}`,children:[e&&g.jsx("img",{src:e,alt:t,draggable:!1,className:"select-none"}),g.jsxs("div",{className:"space-y-16 max-w-[300px] select-none",children:[g.jsx("h3",{className:"text-[20px] font-bold text-blue-900 tracking-wide leading-[100%]",children:t}),g.jsx("p",{className:"text-base text-gray-500 max-w-sm leading-[150%]",children:n})]})]}),kN=({text:e,children:t,icon:n,location:r="top",childClassName:s="",forceShow:o,behavior:a="hover"})=>{const[c,u]=O.useState(!1),[d,h]=O.useState(!1),m=O.useRef(null),p=o||a==="hover"||a==="both"||a==="truncated"&&c,x={top:"bottom-full left-1/2 -translate-x-1/2 mb-2 flex-col",bottom:"top-full left-1/2 -translate-x-1/2 mt-2 flex-col-reverse",left:"right-full top-1/2 -translate-y-1/2 mr-2 flex-row",right:"left-full top-1/2 -translate-y-1/2 ml-2 flex-row-reverse"},S={top:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-gray-700",bottom:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-gray-700",left:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-gray-700",right:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-gray-700"},b=()=>{const T=m.current;if(T){const v=T.scrollWidth>T.offsetWidth,A=Array.from(T.querySelectorAll("*")).some(C=>C.scrollWidth>C.offsetWidth);u(v||A)}};return O.useLayoutEffect(()=>(b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)),[e,t]),g.jsxs("div",{ref:m,className:`relative ${s}`,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[t,p&&g.jsxs("div",{className:`pointer-events-none absolute flex items-center z-50 transition-all duration-150 ${d?"opacity-100 scale-100":"opacity-0 scale-95"} ${x[r]}`,children:[g.jsx("div",{className:"bg-gray-700 p-12 rounded-[8px] shadow-xl max-w-[320px] w-max border border-gray-700/50",children:g.jsxs("div",{className:`flex items-start ${n?"gap-8":"justify-center"}`,children:[n&&g.jsx("div",{className:"flex items-center h-[16px] flex-shrink-0",children:g.jsx(Pe,{icon:n,className:"text-[16px] text-gray-100"})}),g.jsx("p",{className:"text-[12px] text-blue-50 leading-[16px] font-normal text-left",children:e})]})}),g.jsx("div",{className:`w-0 h-0 ${S[r]}`})]})]})},jN=()=>{const[e,t]=O.useState([]),n=O.useRef([]),r=O.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||hf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||hf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),s=O.useCallback(a=>{const c=hf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=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 O.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=s},[r,o,s]),g.jsx(g.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 g.jsx(Jb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return g.jsx(vb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return g.jsx(f2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function LN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function RN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function FN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function VN(e,t,n){const r=t[e];if(O.isValidElement(r)&&typeof r.type!="string")return O.cloneElement(r,n);if(typeof r=="function"){const s=r;return g.jsx(s,{...n})}return r??g.jsx("div",{children:"no content"})}const Hd=[];function a2(e="bottom-center"){var t;if(!Hd.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")}Hd.push({id:e,element:n}),document.body.appendChild(n)}return(t=Hd.find(n=>n.id===e))==null?void 0:t.element}function cl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:s})=>{const o=a2(n);if(!o)return;const a=document.createElement("div"),c=s(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(g.jsx(ff,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const qd=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const s=a2(n.position);if(!s)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),s.removeChild(o)};a.render(g.jsx(ex,{promise:e,messages:t,options:n,onClose:c})),s.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},l2=(e,t={})=>{let n=()=>{},r=()=>{};const s=new Promise((o,a)=>{n=o,r=a});return qd(s,e,t),{resolve:o=>{typeof o=="string"&&(e.success={title:"Success",description:o}),n(o)},reject:o=>{typeof o=="string"&&(e.error={title:"Error",description:o}),r(o)}}},BN={success:(e,t={})=>cl(e,"success",t),error:(e,t={})=>cl(e,"error",t),warning:(e,t={})=>cl(e,"warning",t),notification:(e,t={})=>cl(e,"notification",t),async:(e,t,n={})=>qd(e,t,n),loading:(e,t={})=>l2(e,t)},c2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:s=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=s+"px",m=s*.5+"px",p=s*.4+"px",[x,S]=O.useState(!1),b=()=>r?df(r):o?df(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=E=>{try{return E?(new URL(E),!0):!1}catch(D){return console.log(D),!1}},v=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?wx(o.image):"",A=()=>r?g.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?g.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]}):g.jsx(Pe,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:gO,className:"w-full text-white"}),C=()=>{S(!0)},I=v();return g.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:b()},...c,children:[I&&!x&&g.jsx("img",{src:I,alt:r,className:`
|
|
724
|
+
`,...fe,children:[oe?g.jsxs("div",{className:`flex items-center gap-[6px] overflow-hidden ${((U=oe.colors)==null?void 0:U.bgColor)||""} ${((W=oe.colors)==null?void 0:W.textColor)||""} ${oe.colors?"rounded-[8px] py-4 px-8":""}`,children:[((K=oe.colors)==null?void 0:K.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:oe.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:oe.label})]}):g.jsx("span",{className:`flex-grow text-left truncate font-600 ${v.text} ${c?"text-gray-300":"text-gray-500"}`,children:s}),g.jsx("svg",{className:`${v.icon} transition-transform ${h?"rotate-180":""} ${c?"text-gray-300":"text-gray-500"}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),ee&&!c&&g.jsxs("div",{ref:E.setFloating,style:{position:I,top:C??0,left:A??0,...le,width:($=E.reference.current)==null?void 0:$.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...re(),children:[o&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:`${v.searchIcon} text-gray-400`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:S,type:"text",className:`w-full py-6 pl-36 pr-12 rounded-full focus:outline-none bg-gray-50 ${v.searchText}`,placeholder:"Buscar...",value:p,onChange:k=>x(k.target.value),onClick:k=>k.stopPropagation(),autoFocus:!0}),p&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:k=>{k.stopPropagation(),x("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[450px] overflow-y-auto",children:ce.length>0?g.jsx("div",{className:"py-4",children:ce.map(k=>{var H,Z,B;const J=n===k.value;return g.jsxs(O.Fragment,{children:[k.dividerBefore&&g.jsx("div",{className:"px-16 py-8",children:g.jsx("hr",{className:"border-t border-gray-200"})}),g.jsxs("div",{className:"flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer gap-12",onClick:()=>ue(k.value),children:[d&&g.jsx(Kd,{active:J,size:v.checkboxSize,variant:"rounded",className:"flex-shrink-0"}),g.jsxs("div",{className:`flex items-center rounded-[8px] py-4 px-8 gap-[6px] overflow-hidden ${((H=k.colors)==null?void 0:H.bgColor)||""} ${((Z=k.colors)==null?void 0:Z.textColor)||""}`,children:[((B=k.colors)==null?void 0:B.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:k.colors.dotColor}}),g.jsx("span",{className:`${v.text} font-semibold truncate`,children:k.label})]})]})]},k.value)})}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:["No se encontraron resultados para “",p,"”"]})]})})]})]})},NN=({image:e,title:t,subtitle:n,className:r=""})=>g.jsxs("div",{className:`flex flex-col items-center justify-center gap-24 p-8 text-center w-full h-full min-h-[300px] ${r}`,children:[e&&g.jsx("img",{src:e,alt:t,draggable:!1,className:"select-none"}),g.jsxs("div",{className:"space-y-16 max-w-[300px] select-none",children:[g.jsx("h3",{className:"text-[20px] font-bold text-blue-900 tracking-wide leading-[100%]",children:t}),g.jsx("p",{className:"text-base text-gray-500 max-w-sm leading-[150%]",children:n})]})]}),kN=({text:e,children:t,icon:n,location:r="top",childClassName:s="",forceShow:o,behavior:a="hover"})=>{const[c,u]=O.useState(!1),[d,h]=O.useState(!1),m=O.useRef(null),p=o||a==="hover"||a==="both"||a==="truncated"&&c,x={top:"bottom-full left-1/2 -translate-x-1/2 mb-2 flex-col",bottom:"top-full left-1/2 -translate-x-1/2 mt-2 flex-col-reverse",left:"right-full top-1/2 -translate-y-1/2 mr-2 flex-row",right:"left-full top-1/2 -translate-y-1/2 ml-2 flex-row-reverse"},S={top:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-gray-700",bottom:"border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-gray-700",left:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-gray-700",right:"border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-gray-700"},b=()=>{const T=m.current;if(T){const v=T.scrollWidth>T.offsetWidth,A=Array.from(T.querySelectorAll("*")).some(C=>C.scrollWidth>C.offsetWidth);u(v||A)}};return O.useLayoutEffect(()=>(b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)),[e,t]),g.jsxs("div",{ref:m,className:`relative ${s}`,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[t,p&&g.jsxs("div",{className:`pointer-events-none absolute flex items-center z-50 transition-all duration-150 ${d?"opacity-100 scale-100":"opacity-0 scale-95"} ${x[r]}`,children:[g.jsx("div",{className:"bg-gray-700 p-12 rounded-[8px] shadow-xl max-w-[320px] w-max border border-gray-700/50",children:g.jsxs("div",{className:`flex items-start ${n?"gap-8":"justify-center"}`,children:[n&&g.jsx("div",{className:"flex items-center h-[16px] flex-shrink-0",children:g.jsx(Pe,{icon:n,className:"text-[16px] text-gray-100"})}),g.jsx("p",{className:"text-[12px] text-blue-50 leading-[16px] font-normal text-left",children:e})]})}),g.jsx("div",{className:`w-0 h-0 ${S[r]}`})]})]})},jN=()=>{const[e,t]=O.useState([]),n=O.useRef([]),r=O.useCallback(a=>{const c={...a,id:(a==null?void 0:a.id)||hf.uniqueId(),open:!0,type:(a==null?void 0:a.type)||"center",props:{...a.props,open:!0,onClose:()=>o(a.id||hf.uniqueId())}};n.current=[...n.current,c],t(n.current)},[]),s=O.useCallback(a=>{const c=hf.uniqueId(),u={id:c,open:!0,onClose:()=>{o(c)},type:"custom",component:a};n.current=[...n.current,u],t(n.current)},[]),o=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 O.useEffect(()=>{window.openModal=r,window.closeModal=o,window.openCustomModal=s},[r,o,s]),g.jsx(g.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 g.jsx(Jb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}if(a.type==="alert"){const{props:u}=a;return g.jsx(vb,{...u,open:a.open,onClose:()=>o(a.id)},a.id)}const{props:c}=a;return g.jsx(f2,{...c,open:a.open,onClose:()=>o(a.id),children:typeof c.children=="function"?c.children(()=>o(a.id)):c.children},a.id)})})};function LN(e){var t;(t=window==null?void 0:window.openModal)==null||t.call(window,e)}function RN(e){var t;(t=window==null?void 0:window.openCustomModal)==null||t.call(window,e)}function FN(e){var t;(t=window==null?void 0:window.closeModal)==null||t.call(window,e)}function VN(e,t,n){const r=t[e];if(O.isValidElement(r)&&typeof r.type!="string")return O.cloneElement(r,n);if(typeof r=="function"){const s=r;return g.jsx(s,{...n})}return r??g.jsx("div",{children:"no content"})}const Hd=[];function a2(e="bottom-center"){var t;if(!Hd.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")}Hd.push({id:e,element:n}),document.body.appendChild(n)}return(t=Hd.find(n=>n.id===e))==null?void 0:t.element}function cl(e,t="success",{position:n="top-right",duration:r=3e3}={}){import("react-dom/client").then(({createRoot:s})=>{const o=a2(n);if(!o)return;const a=document.createElement("div"),c=s(a),u=()=>{c.unmount(),o.removeChild(a)};c.render(g.jsx(ff,{content:e,type:t,duration:r,onClose:u})),o.prepend(a),setTimeout(()=>{a.classList.add("mt-[0.5rem]")},10)})}const qd=(e,t,n={})=>{import("react-dom/client").then(({createRoot:r})=>{const s=a2(n.position);if(!s)return;const o=document.createElement("div"),a=r(o),c=()=>{a.unmount(),s.removeChild(o)};a.render(g.jsx(ex,{promise:e,messages:t,options:n,onClose:c})),s.prepend(o),setTimeout(()=>{o.classList.add("mt-[0.5rem]")},10)})},l2=(e,t={})=>{let n=()=>{},r=()=>{};const s=new Promise((o,a)=>{n=o,r=a});return qd(s,e,t),{resolve:o=>{typeof o=="string"&&(e.success={title:"Success",description:o}),n(o)},reject:o=>{typeof o=="string"&&(e.error={title:"Error",description:o}),r(o)}}},BN={success:(e,t={})=>cl(e,"success",t),error:(e,t={})=>cl(e,"error",t),warning:(e,t={})=>cl(e,"warning",t),notification:(e,t={})=>cl(e,"notification",t),async:(e,t,n={})=>qd(e,t,n),loading:(e,t={})=>l2(e,t)},c2=({containerProps:e={},imageProps:t={},src:n="",alt:r="",size:s=30,user:o=null})=>{const{className:a=" ",...c}=e,{className:u=" ",...d}=t,h=s+"px",m=s*.5+"px",p=s*.4+"px",[x,S]=O.useState(!1),b=()=>r?df(r):o?df(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=E=>{try{return E?(new URL(E),!0):!1}catch(N){return console.log(N),!1}},v=()=>T(n)?n:o!=null&&o.image&&T(o.image)?o.image:o!=null&&o.image?wx(o.image):"",A=()=>r?g.jsx("h4",{className:"text-white uppercase font-600 text-nowrap",style:{fontSize:p},children:r}):o?g.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]}):g.jsx(Pe,{style:{maxWidth:m,maxHeight:m,minWidth:m,minHeight:m},icon:gO,className:"w-full text-white"}),C=()=>{S(!0)},I=v();return g.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:b()},...c,children:[I&&!x&&g.jsx("img",{src:I,alt:r,className:`
|
|
725
725
|
object-cover w-full h-full text-center indent-[10000px] absolute
|
|
726
726
|
z-10
|
|
727
727
|
${u}
|
|
@@ -733,10 +733,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
733
733
|
${s?"cursor-not-allowed":"cursor-pointer"}
|
|
734
734
|
${s?m:h[n]}
|
|
735
735
|
${a}
|
|
736
|
-
`,style:{width:`${r}px`,height:`${r}px`,minWidth:`${r}px`,minHeight:`${r}px`},onClick:d,...c,children:u&&g.jsx(Pe,{icon:bb,className:"text-white",style:{fontSize:`${r*.6}px`}})})},WN=({bgColor:e="bg-green-100",textColor:t="text-green-700",label:n="Completed",labelClassName:r="",className:s="",size:o="sm",showDot:a=!1,style:c={}})=>g.jsxs("div",{className:`flex items-center justify-center rounded-[6px] ${o==="md"?"py-8 px-12":"py-4 px-8"} text-center text-nowrap h-fit w-fit ${a?"gap-[6px]":""} ${e} ${t} ${s}`,style:c,children:[a&&g.jsx(Pe,{icon:G6,className:"text-[6px]"}),g.jsx("div",{className:`font-semibold ${o==="md"?"text-[16px] leading-[22px]":"text-[12px] leading-[16px]"} ${r}`,children:n})]});var Xd,d2;function UN(){if(d2)return Xd;d2=1;function e(v){this._maxSize=v,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(v){return this._values[v]},e.prototype.set=function(v,A){return this._size>=this._maxSize&&this.clear(),v in this._values||this._size++,this._values[v]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);Xd={Cache:e,split:m,normalizePath:h,setter:function(v){var A=h(v);return u.get(v)||u.set(v,function(I,E){for(var D=0,F=A.length,R=I;D<F-1;){var Y=A[D];if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return I;R=R[A[D++]]}R[A[D]]=E})},getter:function(v,A){var C=h(v);return d.get(v)||d.set(v,function(E){for(var D=0,F=C.length;D<F;)if(E!=null||!A)E=E[C[D++]];else return;return E})},join:function(v){return v.reduce(function(A,C){return A+(x(C)||n.test(C)?"["+C+"]":(A?".":"")+C)},"")},forEach:function(v,A,C){p(Array.isArray(v)?v:m(v),A,C)}};function h(v){return c.get(v)||c.set(v,m(v).map(function(A){return A.replace(o,"$2")}))}function m(v){return v.match(t)||[""]}function p(v,A,C){var I=v.length,E,D,F,R;for(D=0;D<I;D++)E=v[D],E&&(T(E)&&(E='"'+E+'"'),R=x(E),F=!R&&/^\d+$/.test(E),A.call(C,E,R,F,D,v))}function x(v){return typeof v=="string"&&v&&["'",'"'].indexOf(v.charAt(0))!==-1}function S(v){return v.match(r)&&!v.match(n)}function b(v){return s.test(v)}function T(v){return!x(v)&&(S(v)||b(v))}return Xd}var vs=UN(),Zd,h2;function zN(){if(h2)return Zd;h2=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(),s=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return Zd={words:t,upperFirst:n,camelCase:s,pascalCase:h=>n(s(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},Zd}var Jd=zN(),ul={exports:{}},m2;function GN(){if(m2)return ul.exports;m2=1,ul.exports=function(s){return e(t(s),s)},ul.exports.array=e;function e(s,o){var a=s.length,c=new Array(a),u={},d=a,h=n(o),m=r(s);for(o.forEach(function(x){if(!m.has(x[0])||!m.has(x[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(s[d],d,new Set);return c;function p(x,S,b){if(b.has(x)){var T;try{T=", node was:"+JSON.stringify(x)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(x))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(x));if(!u[S]){u[S]=!0;var v=h.get(x)||new Set;if(v=Array.from(v),S=v.length){b.add(x);do{var A=v[--S];p(A,m.get(A),b)}while(S);b.delete(x)}c[--a]=x}}}function t(s){for(var o=new Set,a=0,c=s.length;a<c;a++){var u=s[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(s){for(var o=new Map,a=0,c=s.length;a<c;a++){var u=s[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(s){for(var o=new Map,a=0,c=s.length;a<c;a++)o.set(s[a],a);return o}return ul.exports}var YN=GN();const HN=Am(YN),qN=Object.prototype.toString,KN=Error.prototype.toString,XN=RegExp.prototype.toString,ZN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",JN=/^Symbol\((.*)\)(.*)$/;function QN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function p2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return QN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ZN.call(e).replace(JN,"Symbol($1)");const r=qN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+KN.call(e)+"]":r==="RegExp"?XN.call(e):null}function Fr(e,t){let n=p2(e,t);return n!==null?n:JSON.stringify(e,function(r,s){let o=p2(this[r],t);return o!==null?o:s},2)}function g2(e){return e==null?[]:[].concat(e)}let y2,x2,v2,ek=/\$\{\s*(\w+)\s*\}/g;y2=Symbol.toStringTag;class b2{constructor(t,n,r,s){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[y2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=s,this.errors=[],this.inner=[],g2(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]}}x2=Symbol.hasInstance,v2=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(ek,(s,o)=>Fr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,s,o){const a=new b2(t,n,r,s);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[v2]="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[x2](t){return b2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Rn={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 s=r!=null&&r!==n?` (cast from the value \`${Fr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Fr(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Fr(n,!0)}\``+s}},Lt={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"},tk={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"},Qd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nk={isValue:"${path} field must be ${value}"},fl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Rn,string:Lt,number:tk,date:Qd,object:fl,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:nk,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,s=r.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``}return jt.formatError(Rn.notType,e)}}});const eh=e=>e&&e.__isYupSchema__;class dl{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:s,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new dl(t,(c,u)=>{var d;let h=a(...c)?s: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)),s=this.fn(r,t,n);if(s===void 0||s===t)return t;if(!eh(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const hl={context:"$",value:"."};class bs{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]===hl.context,this.isValue=this.key[0]===hl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?hl.context:this.isValue?hl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vs.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let s=this.isContext?r:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}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}}bs.prototype.__isYupRef=!0;const ws=e=>e==null;function xi(e){function t({value:n,path:r="",options:s,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:x}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=s;function A(Q){return bs.isRef(Q)?Q.getValue(n,S,b):Q}function C(Q={}){const fe=Object.assign({value:n,originalValue:o,label:a.spec.label,path:Q.path||r,spec:a.spec,disableStackTrace:Q.disableStackTrace||v},m,Q.params);for(const ce of Object.keys(fe))fe[ce]=A(fe[ce]);const oe=new jt(jt.formatError(Q.message||p,fe),n,fe.path,Q.type||d,fe.disableStackTrace);return oe.params=fe,oe}const I=T?c:u;let E={path:r,parent:S,type:d,from:s.from,createError:C,resolve:A,options:s,originalValue:o,schema:a};const D=Q=>{jt.isError(Q)?I(Q):Q?u(null):I(C())},F=Q=>{jt.isError(Q)?I(Q):c(Q)};if(x&&ws(n))return D(!0);let Y;try{var ee;if(Y=h.call(E,n,E),typeof((ee=Y)==null?void 0:ee.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(Y).then(D,F)}}catch(Q){F(Q);return}D(Y)}return t.OPTIONS=e,t}function rk(e,t,n,r=n){let s,o,a;return t?(vs.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:s,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. `);s=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}")`);s=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}class ml extends Set{describe(){const t=[];for(const n of this.values())t.push(bs.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 ml(this.values())}merge(t,n){const r=this.clone();return t.forEach(s=>r.add(s)),n.forEach(s=>r.delete(s)),r}}function vi(e,t=new Map){if(eh(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]=vi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,s]of e.entries())n.set(r,vi(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(vi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,s]of Object.entries(e))n[r]=vi(s,t)}else throw Error(`Unable to clone ${e}`);return n}class Fn{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 ml,this._blacklist=new ml,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Rn.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=vi(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 s=Object.assign({},n.spec,r.spec);return r.spec=s,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((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,s,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:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(s&&ws(o))return o;let a=Fr(t),c=Fr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
736
|
+
`,style:{width:`${r}px`,height:`${r}px`,minWidth:`${r}px`,minHeight:`${r}px`},onClick:d,...c,children:u&&g.jsx(Pe,{icon:bb,className:"text-white",style:{fontSize:`${r*.6}px`}})})},WN=({bgColor:e="bg-green-100",textColor:t="text-green-700",label:n="Completed",labelClassName:r="",className:s="",size:o="sm",showDot:a=!1,style:c={}})=>g.jsxs("div",{className:`flex items-center justify-center rounded-[6px] ${o==="md"?"py-8 px-12":"py-4 px-8"} text-center text-nowrap h-fit w-fit ${a?"gap-[6px]":""} ${e} ${t} ${s}`,style:c,children:[a&&g.jsx(Pe,{icon:G6,className:"text-[6px]"}),g.jsx("div",{className:`font-semibold ${o==="md"?"text-[16px] leading-[22px]":"text-[12px] leading-[16px]"} ${r}`,children:n})]});var Xd,d2;function UN(){if(d2)return Xd;d2=1;function e(v){this._maxSize=v,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(v){return this._values[v]},e.prototype.set=function(v,A){return this._size>=this._maxSize&&this.clear(),v in this._values||this._size++,this._values[v]=A};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,o=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,c=new e(a),u=new e(a),d=new e(a);Xd={Cache:e,split:m,normalizePath:h,setter:function(v){var A=h(v);return u.get(v)||u.set(v,function(I,E){for(var N=0,R=A.length,F=I;N<R-1;){var G=A[N];if(G==="__proto__"||G==="constructor"||G==="prototype")return I;F=F[A[N++]]}F[A[N]]=E})},getter:function(v,A){var C=h(v);return d.get(v)||d.set(v,function(E){for(var N=0,R=C.length;N<R;)if(E!=null||!A)E=E[C[N++]];else return;return E})},join:function(v){return v.reduce(function(A,C){return A+(x(C)||n.test(C)?"["+C+"]":(A?".":"")+C)},"")},forEach:function(v,A,C){p(Array.isArray(v)?v:m(v),A,C)}};function h(v){return c.get(v)||c.set(v,m(v).map(function(A){return A.replace(o,"$2")}))}function m(v){return v.match(t)||[""]}function p(v,A,C){var I=v.length,E,N,R,F;for(N=0;N<I;N++)E=v[N],E&&(T(E)&&(E='"'+E+'"'),F=x(E),R=!F&&/^\d+$/.test(E),A.call(C,E,F,R,N,v))}function x(v){return typeof v=="string"&&v&&["'",'"'].indexOf(v.charAt(0))!==-1}function S(v){return v.match(r)&&!v.match(n)}function b(v){return s.test(v)}function T(v){return!x(v)&&(S(v)||b(v))}return Xd}var vs=UN(),Zd,h2;function zN(){if(h2)return Zd;h2=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(),s=h=>t(h).reduce((m,p)=>`${m}${m?p[0].toUpperCase()+p.slice(1).toLowerCase():p.toLowerCase()}`,"");return Zd={words:t,upperFirst:n,camelCase:s,pascalCase:h=>n(s(h)),snakeCase:h=>r(h,"_"),kebabCase:h=>r(h,"-"),sentenceCase:h=>n(r(h," ")),titleCase:h=>t(h).map(n).join(" ")},Zd}var Jd=zN(),ul={exports:{}},m2;function GN(){if(m2)return ul.exports;m2=1,ul.exports=function(s){return e(t(s),s)},ul.exports.array=e;function e(s,o){var a=s.length,c=new Array(a),u={},d=a,h=n(o),m=r(s);for(o.forEach(function(x){if(!m.has(x[0])||!m.has(x[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||p(s[d],d,new Set);return c;function p(x,S,b){if(b.has(x)){var T;try{T=", node was:"+JSON.stringify(x)}catch{T=""}throw new Error("Cyclic dependency"+T)}if(!m.has(x))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(x));if(!u[S]){u[S]=!0;var v=h.get(x)||new Set;if(v=Array.from(v),S=v.length){b.add(x);do{var A=v[--S];p(A,m.get(A),b)}while(S);b.delete(x)}c[--a]=x}}}function t(s){for(var o=new Set,a=0,c=s.length;a<c;a++){var u=s[a];o.add(u[0]),o.add(u[1])}return Array.from(o)}function n(s){for(var o=new Map,a=0,c=s.length;a<c;a++){var u=s[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(s){for(var o=new Map,a=0,c=s.length;a<c;a++)o.set(s[a],a);return o}return ul.exports}var YN=GN();const HN=Am(YN),qN=Object.prototype.toString,KN=Error.prototype.toString,XN=RegExp.prototype.toString,ZN=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",JN=/^Symbol\((.*)\)(.*)$/;function QN(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function p2(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return QN(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ZN.call(e).replace(JN,"Symbol($1)");const r=qN.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+KN.call(e)+"]":r==="RegExp"?XN.call(e):null}function Fr(e,t){let n=p2(e,t);return n!==null?n:JSON.stringify(e,function(r,s){let o=p2(this[r],t);return o!==null?o:s},2)}function g2(e){return e==null?[]:[].concat(e)}let y2,x2,v2,ek=/\$\{\s*(\w+)\s*\}/g;y2=Symbol.toStringTag;class b2{constructor(t,n,r,s){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[y2]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=s,this.errors=[],this.inner=[],g2(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]}}x2=Symbol.hasInstance,v2=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(ek,(s,o)=>Fr(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,s,o){const a=new b2(t,n,r,s);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[v2]="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[x2](t){return b2[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Rn={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 s=r!=null&&r!==n?` (cast from the value \`${Fr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Fr(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${Fr(n,!0)}\``+s}},Lt={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"},tk={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"},Qd={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nk={isValue:"${path} field must be ${value}"},fl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:Rn,string:Lt,number:tk,date:Qd,object:fl,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:nk,tuple:{notType:e=>{const{path:t,value:n,spec:r}=e,s=r.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${Fr(n,!0)}\``}return jt.formatError(Rn.notType,e)}}});const eh=e=>e&&e.__isYupSchema__;class dl{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:s,otherwise:o}=n,a=typeof r=="function"?r:(...c)=>c.every(u=>u===r);return new dl(t,(c,u)=>{var d;let h=a(...c)?s: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)),s=this.fn(r,t,n);if(s===void 0||s===t)return t;if(!eh(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const hl={context:"$",value:"."};class bs{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]===hl.context,this.isValue=this.key[0]===hl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?hl.context:this.isValue?hl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&vs.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let s=this.isContext?r:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}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}}bs.prototype.__isYupRef=!0;const ws=e=>e==null;function xi(e){function t({value:n,path:r="",options:s,originalValue:o,schema:a},c,u){const{name:d,test:h,params:m,message:p,skipAbsent:x}=e;let{parent:S,context:b,abortEarly:T=a.spec.abortEarly,disableStackTrace:v=a.spec.disableStackTrace}=s;function A(ee){return bs.isRef(ee)?ee.getValue(n,S,b):ee}function C(ee={}){const le=Object.assign({value:n,originalValue:o,label:a.spec.label,path:ee.path||r,spec:a.spec,disableStackTrace:ee.disableStackTrace||v},m,ee.params);for(const ue of Object.keys(le))le[ue]=A(le[ue]);const oe=new jt(jt.formatError(ee.message||p,le),n,le.path,ee.type||d,le.disableStackTrace);return oe.params=le,oe}const I=T?c:u;let E={path:r,parent:S,type:d,from:s.from,createError:C,resolve:A,options:s,originalValue:o,schema:a};const N=ee=>{jt.isError(ee)?I(ee):ee?u(null):I(C())},R=ee=>{jt.isError(ee)?I(ee):c(ee)};if(x&&ws(n))return N(!0);let G;try{var re;if(G=h.call(E,n,E),typeof((re=G)==null?void 0:re.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(G).then(N,R)}}catch(ee){R(ee);return}N(G)}return t.OPTIONS=e,t}function rk(e,t,n,r=n){let s,o,a;return t?(vs.forEach(t,(c,u,d)=>{let h=u?c.slice(1,c.length-1):c;e=e.resolve({context:r,parent:s,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. `);s=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}")`);s=n,n=n&&n[h],e=e.fields[h]}o=h,a=u?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:o}):{parent:s,parentPath:t,schema:e}}class ml extends Set{describe(){const t=[];for(const n of this.values())t.push(bs.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 ml(this.values())}merge(t,n){const r=this.clone();return t.forEach(s=>r.add(s)),n.forEach(s=>r.delete(s)),r}}function vi(e,t=new Map){if(eh(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]=vi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,s]of e.entries())n.set(r,vi(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(vi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,s]of Object.entries(e))n[r]=vi(s,t)}else throw Error(`Unable to clone ${e}`);return n}class Fn{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 ml,this._blacklist=new ml,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Rn.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=vi(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 s=Object.assign({},n.spec,r.spec);return r.spec=s,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((s,o)=>o.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,s,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:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(o=t.disableStackTrace)!=null?o:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(s&&ws(o))return o;let a=Fr(t),c=Fr(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
737
737
|
|
|
738
738
|
attempted value: ${a}
|
|
739
|
-
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,s){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 s(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,s)})}runTests(t,n,r){let s=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{s||(s=!0,n(b,a))},m=b=>{s||(s=!0,r(b,a))},p=o.length,x=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(A){A&&(Array.isArray(A)?x.push(...A):x.push(A)),--p<=0&&m(x)})}}asNestedTest({key:t,index:n,parent:r,parentPath:s,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(".")?`${s||""}[${u?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(m,p,x)=>this.resolve(h)._validate(d,h,p,x)}validate(t,n){var r;let s=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return new Promise((a,c)=>s._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 s=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return s._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):vi(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=xi({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xi({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Rn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Rn.notNull){return this.nullability(!1,t)}required(t=Rn.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=Rn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),s=xi(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===s.OPTIONS.test))),r.tests.push(s),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),s=g2(t).map(o=>new bs(o));return s.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new dl(s,n):dl.fromOptions(s,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xi({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=Rn.oneOf){let r=this.clone();return t.forEach(s=>{r._whitelist.add(s),r._blacklist.delete(s)}),r.internalTests.whiteList=xi({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Rn.notOneOf){let r=this.clone();return t.forEach(s=>{r._blacklist.add(s),r._whitelist.delete(s)}),r.internalTests.blacklist=xi({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(s)?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:s,optional:o,nullable:a}=n.spec;return{meta:s,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)}}}Fn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fn.prototype[`${e}At`]=function(t,n,r={}){const{parent:s,parentPath:o,schema:a}=rk(this,t,n,r.context);return a[e](s&&s[o],Object.assign({},r,{parent:s,path:t}))};for(const e of["equals","is"])Fn.prototype[e]=Fn.prototype.oneOf;for(const e of["not","nope"])Fn.prototype[e]=Fn.prototype.notOneOf;const sk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ik(e){const t=th(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 th(e){var t,n;const r=sk.exec(e);return r?{year:cr(r[1]),month:cr(r[2],1)-1,day:cr(r[3],1),hour:cr(r[4]),minute:cr(r[5]),second:cr(r[6]),millisecond:r[7]?cr(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:cr(r[10]),minuteOffset:cr(r[11])}:null}function cr(e,t=0){return Number(e)||t}let ok=/^[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])?)*$/,ak=/^((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,lk=/^(?:[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,ck="^\\d{4}-\\d{2}-\\d{2}",uk="\\d{2}:\\d{2}:\\d{2}",fk="(([+-]\\d{2}(:?\\d{2})?)|Z)",dk=new RegExp(`${ck}T${uk}(\\.\\d+)?${fk}$`),hk=e=>ws(e)||e===e.trim(),mk={}.toString();function Vr(){return new w2}class w2 extends Fn{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 s=t!=null&&t.toString?t.toString():t;return s===mk?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Rn.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=Lt.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=Lt.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=Lt.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,s,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||Lt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Lt.email){return this.matches(ok,{name:"email",message:t,excludeEmptyString:!0})}url(t=Lt.url){return this.matches(ak,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Lt.uuid){return this.matches(lk,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,s;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:s=void 0}=t:n=t),this.matches(dk,{name:"datetime",message:n||Lt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Lt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=th(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Lt.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const a=th(o);return a?a.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Lt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:hk})}lowercase(t=Lt.lowercase){return this.transform(n=>ws(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toLowerCase()})}uppercase(t=Lt.uppercase){return this.transform(n=>ws(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toUpperCase()})}}Vr.prototype=w2.prototype;let pk=new Date(""),gk=e=>Object.prototype.toString.call(e)==="[object Date]";class nh extends Fn{constructor(){super({type:"date",check(t){return gk(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ik(t),isNaN(t)?nh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bs.isRef(t))r=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=s}return r}min(t,n=Qd.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(r)}})}max(t,n=Qd.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(r)}})}}nh.INVALID_DATE=pk;function yk(e,t=[]){let n=[],r=new Set,s=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=vs.split(a)[0];r.add(u),s.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),bs.isRef(c)&&c.isSibling?o(c.path,a):eh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return HN.array(Array.from(r),n).reverse()}function S2(e,t){let n=1/0;return e.some((r,s)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=s,!0}),n}function T2(e){return(t,n)=>S2(e,t)-S2(e,n)}const xk=(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 pl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=pl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=pl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(pl)}):"optional"in e?e.optional():e}const vk=(e,t)=>{const n=[...vs.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),s=vs.getter(vs.join(n),!0)(e);return!!(s&&r in s)};let C2=e=>Object.prototype.toString.call(e)==="[object Object]";function E2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const bk=T2([]);function rh(e){return new P2(e)}class P2 extends Fn{constructor(t){super({type:"object",check(n){return C2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=bk,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).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],x=m in s;if(p){let S,b=s[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let T=p instanceof Fn?p.spec:void 0,v=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in s;continue}S=!n.__validating||!v?p.cast(s[m],d):s[m],S!==void 0&&(u[m]=S)}else x&&!a&&(u[m]=s[m]);(x!==m in u||u[m]!==s[m])&&(h=!0)}return h?u:s}_validate(t,n={},r,s){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||!C2(d)){s(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bs.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=>{s(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[s,o]of Object.entries(this.fields)){const a=r[s];r[s]=a===void 0?o:a}return n.withMutation(s=>s.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 s;const o=this.fields[r];let a=t;(s=a)!=null&&s.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=yk(t,n),r._sortErrors=T2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let s=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),s)})}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 pl(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,s])=>t.includes(r)&&t.includes(s)))}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 s=vs.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return vk(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=s(o)),a})}json(){return this.transform(xk)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||fl.exact,test(n){if(n==null)return!0;const r=E2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=fl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const o=E2(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=fl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const s of Object.keys(n))r[t(s)]=n[s];return r})}camelCase(){return this.transformKeys(Jd.camelCase)}snakeCase(){return this.transformKeys(Jd.snakeCase)}constantCase(){return this.transformKeys(t=>Jd.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 s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}rh.prototype=P2.prototype,rh().shape({labelES:Vr().required(),label:Vr().required(),code:Vr().required(),codeISO2:Vr().required(),phone:Vr().required()});const A2=[{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"}],wk=({countries:e=A2,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ee,Be,ie;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=O.useState(!1),[x,S]=O.useState(""),[b,T]=O.useState(d.value||null),v=O.useRef(null),A=O.useRef(null),C=O.useRef(null),{x:I,y:E,strategy:D,refs:F,context:R,placement:Y,middlewareData:ee}=or({open:m,onOpenChange:p,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ge,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(ge-10,300)}px`})},padding:8}),gs({element:A})],placement:"bottom-start",whileElementsMounted:er}),Q=sr(R),fe=ir(R),{getReferenceProps:oe,getFloatingProps:ce}=ar([Q,fe]),{isMounted:le,styles:ue}=lr(R,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(Array.isArray(e)?e:[]).filter(ge=>{if(!x.trim())return!0;const De=o==="es"&&ge.labelES?ge.labelES.toLowerCase():ge.label.toLowerCase(),ft=ge.code?ge.code.toLowerCase():"";return De.includes(x.toLowerCase())||ft.includes(x.toLowerCase())}),K=ge=>{T(ge),p(!1),S(""),d.onChange(ge)},$=()=>{p(!m),!m&&v.current&&setTimeout(()=>{var ge;(ge=v.current)==null||ge.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};O.useEffect(()=>{T(d.value)},[d.value]),O.useEffect(()=>{const ge=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",ge),()=>{document.removeEventListener("mousedown",ge)}},[d]);const X=ge=>{var De;return ge?ge.codeISO2?ge.codeISO2.toLowerCase():((De=ge.code)==null?void 0:De.toLowerCase())||"":""},W=(Ee=ee.arrow)==null?void 0:Ee.x,re=(Be=ee.arrow)==null?void 0:Be.y,B={top:"bottom",right:"left",bottom:"top",left:"right"}[Y.split("-")[0]],J=oe({onClick:$,onBlur:k}),ae=u(r),se=u(s),he=(ie=h.error)==null?void 0:ie.message;return g.jsxs("div",{ref:C,className:`w-full relative flex flex-col gap-8 ${a}`,children:[ae&&g.jsx("label",{className:`text-gray-600 font-600 group ${he&&"!text-red-500"} text-label`,children:ae}),g.jsxs("div",{ref:F.setReference,className:`flex items-center justify-between bg-light rounded-full p-16 cursor-pointer border transition-all duration-200 hover:border-blue-400 ${he&&"border-red-500 hover:border-red-600"} ${le?"border-blue-400":"border-blue-100"}`,...J,tabIndex:0,children:[b!=null&&b.code?g.jsxs("div",{className:"flex items-center w-full gap-10",children:[X(b)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${X(b)}.png`,srcSet:`https://flagcdn.com/w40/${X(b)}.png 2x`,alt:b.label,onError:ge=>{ge.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:se}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),he&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(he,{x:u(c||"")||u(t)})}),le&&g.jsxs("div",{ref:F.setFloating,style:{position:D,top:E??0,left:I??0,...ue},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ce(),children:[g.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:W!=null?`${W}px`:"",top:re!=null?`${re}px`:"",right:"",bottom:"",[B]:"-2px",borderRight:B==="left"?"1px solid":"none",borderBottom:B==="top"?"1px solid":"none",borderLeft:B==="right"?"1px solid":"none",borderTop:B==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:v,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:x,onChange:ge=>S(ge.target.value),onClick:ge=>ge.stopPropagation(),onBlur:ge=>{ge.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:U.length>0?g.jsx("ul",{className:"flex flex-col",children:U.map((ge,De)=>{var Ss;const ft=ge.codeISO2?ge.codeISO2.toLowerCase():((Ss=ge.code)==null?void 0:Ss.toLowerCase())||"";return g.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(),K(ge)},children:[ft&&g.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:ge.label,onError:dt=>{dt.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&ge.labelES?ge.labelES:ge.label,ge.code?` (${ge.code})`:"Country not found"]})]},`${ge.code}-${De}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Sk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return g.jsxs("div",{className:"flex items-center gap-8",children:[g.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"}}),g.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Tk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ve();return g.jsx(Un.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>g.jsx(Ck,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(s),language:o,error:h==null?void 0:h.message,className:a})})},Ck=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",error:a,className:c=""})=>{var W,re;const{t:u}=Ve(),[d,h]=O.useState(!1),[m,p]=O.useState(""),[x,S]=O.useState(t||null),b=O.useRef(null),T=O.useRef(null),{x:v,y:A,strategy:C,refs:I,context:E,placement:D,middlewareData:F}=or({open:d,onOpenChange:h,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),gs({element:T})],placement:"bottom-start",whileElementsMounted:er}),R=sr(E),Y=ir(E),{getReferenceProps:ee,getFloatingProps:Q}=ar([R,Y]),{isMounted:fe,styles:oe}=lr(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),le=(Array.isArray(e)?e:[]).filter(B=>{if(!m.trim())return!0;const J=o==="es"&&B.labelES?B.labelES.toLowerCase():B.label.toLowerCase(),ae=B.code?B.code.toLowerCase():"";return J.includes(m.toLowerCase())||ae.includes(m.toLowerCase())}),ue=B=>{S(B),h(!1),p(""),n(B)},z=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var B;(B=b.current)==null||B.focus()},100)};O.useEffect(()=>{S(t)},[t]);const U=B=>{var J;return B?B.codeISO2?B.codeISO2.toLowerCase():((J=B.code)==null?void 0:J.toLowerCase())||"":""},K=(W=F.arrow)==null?void 0:W.x,$=(re=F.arrow)==null?void 0:re.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],X=ee({onClick:z});return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[r&&g.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),g.jsxs("div",{ref:I.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"} ${fe?"border-blue-400":"border-blue-100"}`,...X,children:[x!=null&&x.code?g.jsxs("div",{className:"flex items-center w-full",children:[U(x)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${U(x)}.png`,srcSet:`https://flagcdn.com/w40/${U(x)}.png 2x`,alt:x.label,onError:B=>{B.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-500",children:s}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),fe&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...Q(),children:[g.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:K!=null?`${K}px`:"",top:$!=null?`${$}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:B=>p(B.target.value),onClick:B=>B.stopPropagation(),autoFocus:!0})}),g.jsx("div",{children:le.length>0?g.jsx("ul",{className:"flex flex-col",children:le.map((B,J)=>{var se;const ae=B.codeISO2?B.codeISO2.toLowerCase():((se=B.code)==null?void 0:se.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:he=>{he.stopPropagation(),ue(B)},children:[ae&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ae}.png`,srcSet:`https://flagcdn.com/w40/${ae}.png 2x`,alt:B.label,onError:he=>{he.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&B.labelES?B.labelES:B.label,B.code?` (${B.code})`:"Country not found"]})]},`${B.code}-${J}`)})}):g.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},sh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:s,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ve(),h=t||d;return g.jsx("button",{...u,className:`${PN(e,h,n,r)} ${c}`,children:s?g.jsx(Pe,{...o,className:Do(n),icon:s}):a})};function Ek(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 Pk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:s="",name:o,control:a,user:c})=>{const[u,d]=O.useState(e||null),[h,m]=O.useState(!!e),p=O.useRef(null),x=Un.useController({name:o,control:a}),S=!!a;O.useEffect(()=>{if(S){const A=x==null?void 0:x.field.value;if(Ek(A)){const C=URL.createObjectURL(A);return d(C),m(!0),()=>URL.revokeObjectURL(C)}else typeof A=="string"&&A&&A!==e?(d(A),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[x==null?void 0:x.field.value,e]);const b=()=>{var A;n&&((A=p.current)==null||A.click())},T=A=>{var I;const C=(I=A.target.files)==null?void 0:I[0];if(C){const E=URL.createObjectURL(C);d(E),m(!0),S&&(x==null||x.field.onChange(C)),r&&r(C)}},v=A=>{A.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(x==null||x.field.onChange(null)),r&&r(null)};return g.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&g.jsx("button",{type:"button",onClick:v,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:g.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:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),g.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${s}`,onClick:b,children:[u?g.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):g.jsx(c2,{size:60,user:c}),n&&g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"file",ref:A=>{p.current=A,x&&x.field.ref(A)},onChange:T,onBlur:x==null?void 0:x.field.onBlur,accept:"image/*",className:"hidden"}),!h&&g.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:g.jsx(Pe,{icon:q6,className:"text-blue-500"})})]})]})]})},Ak=rh({name:Vr(),base64:Vr()}),Mk=({imageUrl:e,title:t,subtitle:n})=>g.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[g.jsx("img",{src:e,alt:t,width:100,height:100}),g.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),g.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Ok=e=>{switch(e){case"small":return{containerStyles:"p-12",titleStyles:"text-sm",descriptionStyles:"text-xs",iconStyles:"p-4 text-xs"};case"normal":return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"};default:return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"}}},$k=e=>{switch(e){case"success":return"bg-green-100 text-green-500";case"warning":return"bg-yellow-100 text-yellow-500";case"error":return"bg-red-100 text-red-500";case"informative":return"bg-blue-100 text-blue-500";default:return"bg-blue-100 text-blue-500"}},_k=e=>{switch(e){case"success":return t0;case"warning":return Ui;case"error":return r0;case"informative":return LE;default:return"info"}},Ik=({description:e,title:t,showIcon:n=!0,type:r="informative",size:s="normal"})=>{const o=Ok(s),a=_k(r),c=$k(r);return g.jsx("div",{className:`w-full rounded-xl bg-white border border-blue-100 ${o.containerStyles}`,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex items-center gap-12",children:[n&&g.jsx(Pe,{icon:a,className:`rounded-full ${o.iconStyles} ${c}`}),g.jsx("h5",{className:`font-semibold text-blue-900 self-center ${o.titleStyles}`,children:t})]}),e&&g.jsx("p",{className:`text-gray-500 leading-[16px] ${o.descriptionStyles}`,children:e})]})})},Dk=[{rotate:"0deg",delay:"0s"},{rotate:"90deg",delay:"0.3s"},{rotate:"270deg",delay:"0.9s"},{rotate:"180deg",delay:"0.6s"}],Nk=({variant:e="circle",size:t=16,color:n="#1DA696",...r})=>{const{className:s="",...o}=r;if(e==="cube"){const d=t/Math.SQRT2;return g.jsx("div",{...o,className:`relative flex items-center justify-center overflow-hidden ${s}`,style:{width:t,height:t},children:g.jsx("div",{className:"relative rotate-45",style:{width:d,height:d},children:Dk.map((h,m)=>g.jsx("div",{className:"float-left w-1/2 h-1/2 relative",style:{transform:`scale(1.1) rotate(${h.rotate})`},children:g.jsx("span",{className:"absolute inset-0 origin-bottom-right animate-sk-fold-cube",style:{backgroundColor:n,animationDelay:h.delay}})},m))})})}const a=Math.max(1,Math.round(t*.125)),c=(t-a)/2,u=2*Math.PI*c;return g.jsx("div",{...o,className:`relative flex items-center justify-center ${s}`,children:g.jsx("svg",{height:t,width:t,className:"animate-spin",children:g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:a,strokeDasharray:`${u} ${u}`,strokeDashoffset:u/4,r:c,cx:t/2,cy:t/2})})})},kk=({label:e,control:t,name:n,placeholder:r,className:s="",disabled:o=!1,size:a="md",leftSide:c})=>{const{field:{value:u="",onChange:d,ref:h,onBlur:m},fieldState:{error:p}}=Un.useController({name:n,control:t}),[x,S]=O.useState(!1),{t:b}=Ve(),v={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8"}}[a];return g.jsxs("label",{className:`flex flex-col group select-none ${v.gap} ${o&&"cursor-not-allowed"} ${s}`,htmlFor:n,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${p&&"!text-red-500"} ${v.label} ${o&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:n,className:`
|
|
739
|
+
`+(c!==a?`result of cast: ${c}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((s,o)=>o.call(this,s,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,s){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 s(h,u);this.runTests({path:o,value:u,originalValue:a,options:n,tests:this.tests},r,s)})}runTests(t,n,r){let s=!1,{tests:o,value:a,originalValue:c,path:u,options:d}=t,h=b=>{s||(s=!0,n(b,a))},m=b=>{s||(s=!0,r(b,a))},p=o.length,x=[];if(!p)return m([]);let S={value:a,originalValue:c,path:u,options:d,schema:this};for(let b=0;b<o.length;b++){const T=o[b];T(S,h,function(A){A&&(Array.isArray(A)?x.push(...A):x.push(A)),--p<=0&&m(x)})}}asNestedTest({key:t,index:n,parent:r,parentPath:s,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(".")?`${s||""}[${u?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(m,p,x)=>this.resolve(h)._validate(d,h,p,x)}validate(t,n){var r;let s=this.resolve(Object.assign({},n,{value:t})),o=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return new Promise((a,c)=>s._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 s=this.resolve(Object.assign({},n,{value:t})),o,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:s.spec.disableStackTrace;return s._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):vi(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=xi({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=xi({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Rn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Rn.notNull){return this.nullability(!1,t)}required(t=Rn.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=Rn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),s=xi(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===s.OPTIONS.test))),r.tests.push(s),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),s=g2(t).map(o=>new bs(o));return s.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new dl(s,n):dl.fromOptions(s,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=xi({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=Rn.oneOf){let r=this.clone();return t.forEach(s=>{r._whitelist.add(s),r._blacklist.delete(s)}),r.internalTests.whiteList=xi({message:n,name:"oneOf",skipAbsent:!0,test(s){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(s)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=Rn.notOneOf){let r=this.clone();return t.forEach(s=>{r._blacklist.add(s),r._whitelist.delete(s)}),r.internalTests.blacklist=xi({message:n,name:"notOneOf",test(s){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(s)?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:s,optional:o,nullable:a}=n.spec;return{meta:s,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)}}}Fn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Fn.prototype[`${e}At`]=function(t,n,r={}){const{parent:s,parentPath:o,schema:a}=rk(this,t,n,r.context);return a[e](s&&s[o],Object.assign({},r,{parent:s,path:t}))};for(const e of["equals","is"])Fn.prototype[e]=Fn.prototype.oneOf;for(const e of["not","nope"])Fn.prototype[e]=Fn.prototype.notOneOf;const sk=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function ik(e){const t=th(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 th(e){var t,n;const r=sk.exec(e);return r?{year:cr(r[1]),month:cr(r[2],1)-1,day:cr(r[3],1),hour:cr(r[4]),minute:cr(r[5]),second:cr(r[6]),millisecond:r[7]?cr(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:cr(r[10]),minuteOffset:cr(r[11])}:null}function cr(e,t=0){return Number(e)||t}let ok=/^[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])?)*$/,ak=/^((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,lk=/^(?:[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,ck="^\\d{4}-\\d{2}-\\d{2}",uk="\\d{2}:\\d{2}:\\d{2}",fk="(([+-]\\d{2}(:?\\d{2})?)|Z)",dk=new RegExp(`${ck}T${uk}(\\.\\d+)?${fk}$`),hk=e=>ws(e)||e===e.trim(),mk={}.toString();function Vr(){return new w2}class w2 extends Fn{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 s=t!=null&&t.toString?t.toString():t;return s===mk?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Rn.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=Lt.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=Lt.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=Lt.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,s,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:s,name:o}=n:s=n),this.test({name:o||"matches",message:s||Lt.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Lt.email){return this.matches(ok,{name:"email",message:t,excludeEmptyString:!0})}url(t=Lt.url){return this.matches(ak,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Lt.uuid){return this.matches(lk,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,s;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:s=void 0}=t:n=t),this.matches(dk,{name:"datetime",message:n||Lt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Lt.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:o=>{if(!o||r)return!0;const a=th(o);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Lt.datetime_precision,params:{precision:s},skipAbsent:!0,test:o=>{if(!o||s==null)return!0;const a=th(o);return a?a.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Lt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:hk})}lowercase(t=Lt.lowercase){return this.transform(n=>ws(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toLowerCase()})}uppercase(t=Lt.uppercase){return this.transform(n=>ws(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ws(n)||n===n.toUpperCase()})}}Vr.prototype=w2.prototype;let pk=new Date(""),gk=e=>Object.prototype.toString.call(e)==="[object Date]";class nh extends Fn{constructor(){super({type:"date",check(t){return gk(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=ik(t),isNaN(t)?nh.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(bs.isRef(t))r=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=s}return r}min(t,n=Qd.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(r)}})}max(t,n=Qd.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(r)}})}}nh.INVALID_DATE=pk;function yk(e,t=[]){let n=[],r=new Set,s=new Set(t.map(([a,c])=>`${a}-${c}`));function o(a,c){let u=vs.split(a)[0];r.add(u),s.has(`${c}-${u}`)||n.push([c,u])}for(const a of Object.keys(e)){let c=e[a];r.add(a),bs.isRef(c)&&c.isSibling?o(c.path,a):eh(c)&&"deps"in c&&c.deps.forEach(u=>o(u,a))}return HN.array(Array.from(r),n).reverse()}function S2(e,t){let n=1/0;return e.some((r,s)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=s,!0}),n}function T2(e){return(t,n)=>S2(e,t)-S2(e,n)}const xk=(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 pl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=pl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=pl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(pl)}):"optional"in e?e.optional():e}const vk=(e,t)=>{const n=[...vs.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),s=vs.getter(vs.join(n),!0)(e);return!!(s&&r in s)};let C2=e=>Object.prototype.toString.call(e)==="[object Object]";function E2(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const bk=T2([]);function rh(e){return new P2(e)}class P2 extends Fn{constructor(t){super({type:"object",check(n){return C2(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=bk,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).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],x=m in s;if(p){let S,b=s[m];d.path=(n.path?`${n.path}.`:"")+m,p=p.resolve({value:b,context:n.context,parent:u});let T=p instanceof Fn?p.spec:void 0,v=T==null?void 0:T.strict;if(T!=null&&T.strip){h=h||m in s;continue}S=!n.__validating||!v?p.cast(s[m],d):s[m],S!==void 0&&(u[m]=S)}else x&&!a&&(u[m]=s[m]);(x!==m in u||u[m]!==s[m])&&(h=!0)}return h?u:s}_validate(t,n={},r,s){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||!C2(d)){s(u,d);return}a=a||d;let h=[];for(let m of this._nodes){let p=this.fields[m];!p||bs.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=>{s(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[s,o]of Object.entries(this.fields)){const a=r[s];r[s]=a===void 0?o:a}return n.withMutation(s=>s.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 s;const o=this.fields[r];let a=t;(s=a)!=null&&s.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=yk(t,n),r._sortErrors=T2(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let s=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),s)})}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 pl(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,s])=>t.includes(r)&&t.includes(s)))}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 s=vs.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return vk(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=s(o)),a})}json(){return this.transform(xk)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||fl.exact,test(n){if(n==null)return!0;const r=E2(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=fl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const o=E2(this.schema,s);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=fl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const s of Object.keys(n))r[t(s)]=n[s];return r})}camelCase(){return this.transformKeys(Jd.camelCase)}snakeCase(){return this.transformKeys(Jd.snakeCase)}constantCase(){return this.transformKeys(t=>Jd.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 s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[o]})),r.fields[o]=a.describe(c)}return r}}rh.prototype=P2.prototype,rh().shape({labelES:Vr().required(),label:Vr().required(),code:Vr().required(),codeISO2:Vr().required(),phone:Vr().required()});const A2=[{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"}],wk=({countries:e=A2,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a="",translateKey:c})=>{var Ee,Be,ie;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:t,control:n,rules:{validate:{}},defaultValue:null}),[m,p]=O.useState(!1),[x,S]=O.useState(""),[b,T]=O.useState(d.value||null),v=O.useRef(null),A=O.useRef(null),C=O.useRef(null),{x:I,y:E,strategy:N,refs:R,context:F,placement:G,middlewareData:re}=or({open:m,onOpenChange:p,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ge,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(ge-10,300)}px`})},padding:8}),gs({element:A})],placement:"bottom-start",whileElementsMounted:er}),ee=sr(F),le=ir(F),{getReferenceProps:oe,getFloatingProps:ue}=ar([ee,le]),{isMounted:ce,styles:fe}=lr(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),W=(Array.isArray(e)?e:[]).filter(ge=>{if(!x.trim())return!0;const De=o==="es"&&ge.labelES?ge.labelES.toLowerCase():ge.label.toLowerCase(),ft=ge.code?ge.code.toLowerCase():"";return De.includes(x.toLowerCase())||ft.includes(x.toLowerCase())}),K=ge=>{T(ge),p(!1),S(""),d.onChange(ge)},$=()=>{p(!m),!m&&v.current&&setTimeout(()=>{var ge;(ge=v.current)==null||ge.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};O.useEffect(()=>{T(d.value)},[d.value]),O.useEffect(()=>{const ge=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",ge),()=>{document.removeEventListener("mousedown",ge)}},[d]);const J=ge=>{var De;return ge?ge.codeISO2?ge.codeISO2.toLowerCase():((De=ge.code)==null?void 0:De.toLowerCase())||"":""},H=(Ee=re.arrow)==null?void 0:Ee.x,Z=(Be=re.arrow)==null?void 0:Be.y,B={top:"bottom",right:"left",bottom:"top",left:"right"}[G.split("-")[0]],X=oe({onClick:$,onBlur:k}),ae=u(r),se=u(s),he=(ie=h.error)==null?void 0:ie.message;return g.jsxs("div",{ref:C,className:`w-full relative flex flex-col gap-8 ${a}`,children:[ae&&g.jsx("label",{className:`text-gray-600 font-600 group ${he&&"!text-red-500"} text-label`,children:ae}),g.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 ${he&&"border-red-500 hover:border-red-600"} ${ce?"border-blue-400":"border-blue-100"}`,...X,tabIndex:0,children:[b!=null&&b.code?g.jsxs("div",{className:"flex items-center w-full gap-10",children:[J(b)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${J(b)}.png`,srcSet:`https://flagcdn.com/w40/${J(b)}.png 2x`,alt:b.label,onError:ge=>{ge.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow font-600 text-body-m",children:[o==="es"&&b.labelES?b.labelES:b.label,b.code?` (${b.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m",children:se}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${m?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),he&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(he,{x:u(c||"")||u(t)})}),ce&&g.jsxs("div",{ref:R.setFloating,style:{position:N,top:E??0,left:I??0,...fe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ue(),children:[g.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:H!=null?`${H}px`:"",top:Z!=null?`${Z}px`:"",right:"",bottom:"",[B]:"-2px",borderRight:B==="left"?"1px solid":"none",borderBottom:B==="top"?"1px solid":"none",borderLeft:B==="right"?"1px solid":"none",borderTop:B==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:v,type:"text",className:"w-full p-16 text-body-s",placeholder:u("search")+"...",value:x,onChange:ge=>S(ge.target.value),onClick:ge=>ge.stopPropagation(),onBlur:ge=>{ge.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:W.length>0?g.jsx("ul",{className:"flex flex-col",children:W.map((ge,De)=>{var Ss;const ft=ge.codeISO2?ge.codeISO2.toLowerCase():((Ss=ge.code)==null?void 0:Ss.toLowerCase())||"";return g.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(),K(ge)},children:[ft&&g.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:ge.label,onError:dt=>{dt.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&ge.labelES?ge.labelES:ge.label,ge.code?` (${ge.code})`:"Country not found"]})]},`${ge.code}-${De}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Sk=({country:e})=>{const t=n=>{var r;return n?n.codeISO2?n.codeISO2.toLowerCase():((r=n.code)==null?void 0:r.toLowerCase())||"":""};return g.jsxs("div",{className:"flex items-center gap-8",children:[g.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"}}),g.jsx("p",{className:"text-body-s text-gray-600",children:e.label})]})},Tk=({countries:e,name:t,control:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",className:a=""})=>{const{t:c}=Ve();return g.jsx(Un.Controller,{name:t,control:n,render:({field:{onChange:u,value:d},fieldState:{error:h}})=>g.jsx(Ck,{countries:e,value:d,onChange:u,label:c(r),placeholder:c(s),language:o,error:h==null?void 0:h.message,className:a})})},Ck=({countries:e,value:t,onChange:n,label:r="select_a_country",placeholder:s="type_to_search",language:o="en",error:a,className:c=""})=>{var H,Z;const{t:u}=Ve(),[d,h]=O.useState(!1),[m,p]=O.useState(""),[x,S]=O.useState(t||null),b=O.useRef(null),T=O.useRef(null),{x:v,y:A,strategy:C,refs:I,context:E,placement:N,middlewareData:R}=or({open:d,onOpenChange:h,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:B,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),gs({element:T})],placement:"bottom-start",whileElementsMounted:er}),F=sr(E),G=ir(E),{getReferenceProps:re,getFloatingProps:ee}=ar([F,G]),{isMounted:le,styles:oe}=lr(E,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ce=(Array.isArray(e)?e:[]).filter(B=>{if(!m.trim())return!0;const X=o==="es"&&B.labelES?B.labelES.toLowerCase():B.label.toLowerCase(),ae=B.code?B.code.toLowerCase():"";return X.includes(m.toLowerCase())||ae.includes(m.toLowerCase())}),fe=B=>{S(B),h(!1),p(""),n(B)},U=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var B;(B=b.current)==null||B.focus()},100)};O.useEffect(()=>{S(t)},[t]);const W=B=>{var X;return B?B.codeISO2?B.codeISO2.toLowerCase():((X=B.code)==null?void 0:X.toLowerCase())||"":""},K=(H=R.arrow)==null?void 0:H.x,$=(Z=R.arrow)==null?void 0:Z.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[N.split("-")[0]],J=re({onClick:U});return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[r&&g.jsx("label",{className:`text-gray-600 font-600 group ${a&&"!text-red-500"} text-label`,children:r}),g.jsxs("div",{ref:I.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"} ${le?"border-blue-400":"border-blue-100"}`,...J,children:[x!=null&&x.code?g.jsxs("div",{className:"flex items-center w-full",children:[W(x)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${W(x)}.png`,srcSet:`https://flagcdn.com/w40/${W(x)}.png 2x`,alt:x.label,onError:B=>{B.currentTarget.style.display="none"}}),g.jsxs("span",{className:"flex-grow",children:[o==="es"&&x.labelES?x.labelES:x.label,x.code?` (${x.code})`:u("select_country")]})]}):g.jsx("span",{className:"text-gray-500",children:s}),g.jsx("svg",{className:`w-16 h-16 transition-transform ${d?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),a&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:a}),le&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...oe},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...ee(),children:[g.jsx("div",{ref:T,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:K!=null?`${K}px`:"",top:$!=null?`${$}px`:"",right:"",bottom:"",[k]:"-2px",borderRight:k==="left"?"1px solid":"none",borderBottom:k==="top"?"1px solid":"none",borderLeft:k==="right"?"1px solid":"none",borderTop:k==="bottom"?"1px solid":"none"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20",children:g.jsx("input",{ref:b,type:"text",className:"w-full p-16",placeholder:u("search")+"...",value:m,onChange:B=>p(B.target.value),onClick:B=>B.stopPropagation(),autoFocus:!0})}),g.jsx("div",{children:ce.length>0?g.jsx("ul",{className:"flex flex-col",children:ce.map((B,X)=>{var se;const ae=B.codeISO2?B.codeISO2.toLowerCase():((se=B.code)==null?void 0:se.toLowerCase())||"";return g.jsxs("li",{className:"flex items-center gap-10 px-16 py-8 transition-all duration-200 hover:bg-blue-100/50 cursor-pointer",onClick:he=>{he.stopPropagation(),fe(B)},children:[ae&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${ae}.png`,srcSet:`https://flagcdn.com/w40/${ae}.png 2x`,alt:B.label,onError:he=>{he.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&B.labelES?B.labelES:B.label,B.code?` (${B.code})`:"Country not found"]})]},`${B.code}-${X}`)})}):g.jsx("div",{className:"px-3 py-2 text-gray-500",children:"No countries found"})})]})]})},sh=({variant:e="filled",color:t,size:n="base",shadow:r="none",icon:s,iconProps:o={},children:a,className:c,...u})=>{const{defaultColorScheme:d}=Ve(),h=t||d;return g.jsx("button",{...u,className:`${PN(e,h,n,r)} ${c}`,children:s?g.jsx(Pe,{...o,className:Do(n),icon:s}):a})};function Ek(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 Pk=({src:e,alt:t,isEditable:n=!1,onChange:r,className:s="",name:o,control:a,user:c})=>{const[u,d]=O.useState(e||null),[h,m]=O.useState(!!e),p=O.useRef(null),x=Un.useController({name:o,control:a}),S=!!a;O.useEffect(()=>{if(S){const A=x==null?void 0:x.field.value;if(Ek(A)){const C=URL.createObjectURL(A);return d(C),m(!0),()=>URL.revokeObjectURL(C)}else typeof A=="string"&&A&&A!==e?(d(A),m(!0)):e?(d(e),m(!0)):(d(null),m(!1))}},[x==null?void 0:x.field.value,e]);const b=()=>{var A;n&&((A=p.current)==null||A.click())},T=A=>{var I;const C=(I=A.target.files)==null?void 0:I[0];if(C){const E=URL.createObjectURL(C);d(E),m(!0),S&&(x==null||x.field.onChange(C)),r&&r(C)}},v=A=>{A.stopPropagation(),d(null),m(!1),p.current&&(p.current.value=""),S&&(x==null||x.field.onChange(null)),r&&r(null)};return g.jsxs("div",{className:"relative flex items-center gap-10",children:[n&&h&&g.jsx("button",{type:"button",onClick:v,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:g.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:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),g.jsxs("div",{className:`relative flex items-center justify-center h-40 w-40 ${n?"cursor-pointer hover:opacity-80":""} ${s}`,onClick:b,children:[u?g.jsx("img",{src:u,alt:t,className:"w-full h-full object-cover rounded-full"}):g.jsx(c2,{size:60,user:c}),n&&g.jsxs(g.Fragment,{children:[g.jsx("input",{type:"file",ref:A=>{p.current=A,x&&x.field.ref(A)},onChange:T,onBlur:x==null?void 0:x.field.onBlur,accept:"image/*",className:"hidden"}),!h&&g.jsx("div",{className:"absolute bottom-0 right-0 bg-blue-100 rounded-full h-20 w-20 flex items-center justify-center",children:g.jsx(Pe,{icon:q6,className:"text-blue-500"})})]})]})]})},Ak=rh({name:Vr(),base64:Vr()}),Mk=({imageUrl:e,title:t,subtitle:n})=>g.jsxs("section",{className:"gap-10 flex flex-col items-center justify-center",children:[g.jsx("img",{src:e,alt:t,width:100,height:100}),g.jsx("h1",{className:"font-bold text-2xl align-middle",children:t}),g.jsx("p",{className:"text-lg align-middle font-semibold text-gray-500",children:n})]}),Ok=e=>{switch(e){case"small":return{containerStyles:"p-12",titleStyles:"text-sm",descriptionStyles:"text-xs",iconStyles:"p-4 text-xs"};case"normal":return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"};default:return{containerStyles:"p-16",titleStyles:"text-14",descriptionStyles:"text-sm",iconStyles:"p-6 text-md"}}},$k=e=>{switch(e){case"success":return"bg-green-100 text-green-500";case"warning":return"bg-yellow-100 text-yellow-500";case"error":return"bg-red-100 text-red-500";case"informative":return"bg-blue-100 text-blue-500";default:return"bg-blue-100 text-blue-500"}},_k=e=>{switch(e){case"success":return t0;case"warning":return Ui;case"error":return r0;case"informative":return LE;default:return"info"}},Ik=({description:e,title:t,showIcon:n=!0,type:r="informative",size:s="normal"})=>{const o=Ok(s),a=_k(r),c=$k(r);return g.jsx("div",{className:`w-full rounded-xl bg-white border border-blue-100 ${o.containerStyles}`,children:g.jsxs("div",{className:"space-y-8",children:[g.jsxs("div",{className:"flex items-center gap-12",children:[n&&g.jsx(Pe,{icon:a,className:`rounded-full ${o.iconStyles} ${c}`}),g.jsx("h5",{className:`font-semibold text-blue-900 self-center ${o.titleStyles}`,children:t})]}),e&&g.jsx("p",{className:`text-gray-500 leading-[16px] ${o.descriptionStyles}`,children:e})]})})},Dk=[{rotate:"0deg",delay:"0s"},{rotate:"90deg",delay:"0.3s"},{rotate:"270deg",delay:"0.9s"},{rotate:"180deg",delay:"0.6s"}],Nk=({variant:e="circle",size:t=16,color:n="#1DA696",...r})=>{const{className:s="",...o}=r;if(e==="cube"){const d=t/Math.SQRT2;return g.jsx("div",{...o,className:`relative flex items-center justify-center overflow-hidden ${s}`,style:{width:t,height:t},children:g.jsx("div",{className:"relative rotate-45",style:{width:d,height:d},children:Dk.map((h,m)=>g.jsx("div",{className:"float-left w-1/2 h-1/2 relative",style:{transform:`scale(1.1) rotate(${h.rotate})`},children:g.jsx("span",{className:"absolute inset-0 origin-bottom-right animate-sk-fold-cube",style:{backgroundColor:n,animationDelay:h.delay}})},m))})})}const a=Math.max(1,Math.round(t*.125)),c=(t-a)/2,u=2*Math.PI*c;return g.jsx("div",{...o,className:`relative flex items-center justify-center ${s}`,children:g.jsx("svg",{height:t,width:t,className:"animate-spin",children:g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:a,strokeDasharray:`${u} ${u}`,strokeDashoffset:u/4,r:c,cx:t/2,cy:t/2})})})},kk=({label:e,control:t,name:n,placeholder:r,className:s="",disabled:o=!1,size:a="md",leftSide:c})=>{const{field:{value:u="",onChange:d,ref:h,onBlur:m},fieldState:{error:p}}=Un.useController({name:n,control:t}),[x,S]=O.useState(!1),{t:b}=Ve(),v={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8"}}[a];return g.jsxs("label",{className:`flex flex-col group select-none ${v.gap} ${o&&"cursor-not-allowed"} ${s}`,htmlFor:n,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${p&&"!text-red-500"} ${v.label} ${o&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:n,className:`
|
|
740
740
|
flex items-center justify-between gap-8 ${v.container}
|
|
741
741
|
|
|
742
742
|
${p&&"!border-red-500"}
|
|
@@ -752,11 +752,11 @@ attempted value: ${a}
|
|
|
752
752
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
753
753
|
|
|
754
754
|
group-disabled:bg-gray-500
|
|
755
|
-
`,children:[c&&c,g.jsx("input",{id:n,type:x?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:u,onChange:A=>d(A.target.value),onBlur:m,ref:h,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${v.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`}),g.jsx(Pe,{icon:x?f3:l3,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>S(!x)})]}),(p==null?void 0:p.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${v.error}`,children:b(p.message,{x:b(n)})})]})},jk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:s="en",className:o="",translateKey:a,countries:c=A2})=>{var Ts,vl,Wr,bl;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:e,control:t,rules:{validate:{}}}),m=((Ts=d.value)==null?void 0:Ts.split(" "))||[],p=m[0]||null,x=m[1]||"",S=c.find(ve=>p===ve.phone),[b,T]=O.useState(!1),[v,A]=O.useState(""),[C,I]=O.useState(S||null),[E,D]=O.useState(x),[F,R]=O.useState(!1),Y=O.useRef(null),ee=O.useRef(null),Q=O.useRef(null),fe=O.useRef(null),{x:oe,y:ce,strategy:le,refs:ue,context:z,placement:U,middlewareData:K}=or({open:b,onOpenChange:T,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),gs({element:ee})],placement:"bottom-start",whileElementsMounted:er}),$=sr(z),k=ir(z),{getReferenceProps:X,getFloatingProps:W}=ar([$,k]),{isMounted:re,styles:B}=lr(z,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(Array.isArray(c)?c:[]).filter(ve=>{if(!v.trim())return!0;const Ze=s==="es"&&ve.labelES?ve.labelES.toLowerCase():ve.label.toLowerCase(),Pt=ve.code?ve.code.toLowerCase():"",xn=ve.phone?ve.phone.toLowerCase():"";return Ze.includes(v.toLowerCase())||Pt.includes(v.toLowerCase())||xn.includes(v.toLowerCase())}),se=ve=>{I(ve),T(!1),A("");const Ze=`${ve.phone} ${E}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=Q.current)==null||Pt.focus()},100)},he=ve=>{const Ze=ve.target.value;if(D(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&Y.current&&setTimeout(()=>{var ve;(ve=Y.current)==null||ve.focus()},100)},Be=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{R(!0)},ge=()=>{R(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(ur=>ur.phone===Ze);xn&&I(xn),D(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{fe.current&&!fe.current.contains(Ze.target)&&d.onBlur()};return document.addEventListener("mousedown",ve),()=>{document.removeEventListener("mousedown",ve)}},[d]);const De=ve=>{var Ze;return ve?ve.codeISO2?ve.codeISO2.toLowerCase():((Ze=ve.code)==null?void 0:Ze.toLowerCase())||"":""},ft=(vl=K.arrow)==null?void 0:vl.x,Ss=(Wr=K.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[U.split("-")[0]],yl=X({onClick:Ee,onBlur:Be}),xl=()=>h.error?"border-red-500":F||b?"border-blue-400":"border-blue-100",Br=u(n),qt=u(r),yn=(bl=h.error)==null?void 0:bl.message;return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[Br&&g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Br}),g.jsxs("div",{ref:fe,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:ge,children:[g.jsxs("div",{ref:ue.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${yn?"border-red-500":xl()}`,style:{minWidth:"140px"},...yl,tabIndex:0,children:[C!=null&&C.code?g.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:ve=>{ve.currentTarget.style.display="none"}}),g.jsxs("span",{children:["+",C.phone]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),g.jsx(Pe,{icon:n0,className:"w-14 h-14 min-w-14 min-h-14"})]}),g.jsx("input",{ref:Q,type:"tel",className:`placeholder:text-gray-400 flex-grow bg-light rounded-r-full font-600 text-body-m p-16 border transition-all duration-200 ${yn?"border-red-500":xl()}`,placeholder:qt,value:E,onChange:he,onBlur:Be})]}),yn&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(a||"")||e})}),re&&g.jsxs("div",{ref:ue.setFloating,style:{position:le,top:ce??0,left:oe??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...W(),children:[g.jsx("div",{ref:ee,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ss!=null?`${Ss}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"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:g.jsx("input",{ref:Y,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:v,onChange:ve=>A(ve.target.value),onClick:ve=>ve.stopPropagation(),onBlur:ve=>{ve.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:ae.length>0?g.jsx("ul",{className:"flex flex-col",children:ae.map((ve,Ze)=>{var xn;const Pt=ve.codeISO2?ve.codeISO2.toLowerCase():((xn=ve.code)==null?void 0:xn.toLowerCase())||"";return g.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:ur=>{ur.stopPropagation(),se(ve)},children:[Pt&&g.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:ve.label,onError:ur=>{ur.currentTarget.style.display="none"}}),g.jsxs("span",{className:"text-gray-500",children:["+",ve.phone]})]},`${ve.code}-${Ze}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Lk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Rk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Fk=e=>{switch(e){case"aqua":return Rk;case"blue":default:return Lk}},Vk=({progress:e,showPercentage:t=!1,color:n,className:r="",...s})=>{const{defaultColorScheme:o}=Ve(),a=n||o,{bgColor:c,fillColor:u}=Fk(a),d=Math.min(Math.max(e,0),100);return g.jsxs("div",{className:`flex items-center gap-12 ${r}`,...s,children:[g.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:g.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&g.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Bk=()=>{const[e,t]=O.useState(!1),n=O.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},s=()=>{t(!1)};return g.jsx("div",{className:"relative flex items-center",children:g.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:[g.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:g.jsx(Pe,{icon:Y6})}),g.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:s,style:{border:"none",outline:"none"}})]})})},Wk="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",Uk={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"},zk={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"},Gk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=zk[n];break;case"blue":default:r=Uk[n];break}return Ln(Wk,r)},Yk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Gk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]})},Hk="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",qk={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},Kk={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},Xk="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Zk={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"},Jk={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"},M2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Zk[n];break;case"aqua":default:r=Jk[n];break}return Ln(Xk,r)},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Kk[n];break;case"blue":default:r=qk[n];break}return Ln(Hk,r)},ej=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},tj=e=>{const{display:t,...n}=e;return t==="desktop"?g.jsx(Yk,{...n}):t==="mobile"?g.jsx(ej,{...n}):null},nj=({options:e,name:t,control:n,label:r="",placeholder:s="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0,size:h="md"})=>{const{field:{value:m,onChange:p},fieldState:{error:x}}=Un.useController({name:t,control:n});return g.jsx(rj,{options:e,value:m,onChange:p,label:r,placeholder:s,error:x==null?void 0:x.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d,size:h})},rj=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:s="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0,size:m="md"})=>{var X;const{t:p}=Ve(),[x,S]=O.useState(!1),[b,T]=O.useState(""),[v,A]=O.useState(t||null),C=O.useRef(null),I=O.useRef(null),D={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16"}}[m],{x:F,y:R,strategy:Y,refs:ee,context:Q}=or({open:x,onOpenChange:S,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:W,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(W-10,300)}px`})},padding:8}),gs({element:I})],placement:"bottom-start",whileElementsMounted:er}),fe=sr(Q),oe=ir(Q),{getReferenceProps:ce,getFloatingProps:le}=ar([fe,oe]),{isMounted:ue,styles:z}=lr(Q,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),U=(()=>{const W=Array.isArray(e)?e:[];if(!b.trim())return W;const re=b.toLowerCase();return W.filter(B=>B.label.toLowerCase().includes(re)||B.key.toLowerCase().includes(re))})(),K=W=>{A(W),S(!1),T(""),n(W)},$=()=>{S(!x),!x&&C.current&&setTimeout(()=>{var W;return(W=C.current)==null?void 0:W.focus()},100)};O.useEffect(()=>{A(t)},[t]);const k=ce({onClick:$});return g.jsxs("div",{className:`relative flex flex-col ${D.gap} ${c}`,children:[r&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none ${o?"!text-red-500":""} ${D.label}`,children:r}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
|
|
756
|
-
${
|
|
755
|
+
`,children:[c&&c,g.jsx("input",{id:n,type:x?"text":"password",autoComplete:"off","aria-autocomplete":"none",name:n,disabled:o,placeholder:r,value:u,onChange:A=>d(A.target.value),onBlur:m,ref:h,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${v.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none`}),g.jsx(Pe,{icon:x?f5:l5,className:"min-h-16 max-h-16 text-gray-400 hover:text-gray-500 transition-colors duration-150 cursor-pointer ease-in-out",onClick:()=>S(!x)})]}),(p==null?void 0:p.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${v.error}`,children:b(p.message,{x:b(n)})})]})},jk=({name:e,control:t,label:n="phone_number",placeholder:r="enter_phone_number",language:s="en",className:o="",translateKey:a,countries:c=A2})=>{var Ts,vl,Wr,bl;const{t:u}=Ve(),{field:d,fieldState:h}=Un.useController({name:e,control:t,rules:{validate:{}}}),m=((Ts=d.value)==null?void 0:Ts.split(" "))||[],p=m[0]||null,x=m[1]||"",S=c.find(ve=>p===ve.phone),[b,T]=O.useState(!1),[v,A]=O.useState(""),[C,I]=O.useState(S||null),[E,N]=O.useState(x),[R,F]=O.useState(!1),G=O.useRef(null),re=O.useRef(null),ee=O.useRef(null),le=O.useRef(null),{x:oe,y:ue,strategy:ce,refs:fe,context:U,placement:W,middlewareData:K}=or({open:b,onOpenChange:T,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),gs({element:re})],placement:"bottom-start",whileElementsMounted:er}),$=sr(U),k=ir(U),{getReferenceProps:J,getFloatingProps:H}=ar([$,k]),{isMounted:Z,styles:B}=lr(U,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=(Array.isArray(c)?c:[]).filter(ve=>{if(!v.trim())return!0;const Ze=s==="es"&&ve.labelES?ve.labelES.toLowerCase():ve.label.toLowerCase(),Pt=ve.code?ve.code.toLowerCase():"",xn=ve.phone?ve.phone.toLowerCase():"";return Ze.includes(v.toLowerCase())||Pt.includes(v.toLowerCase())||xn.includes(v.toLowerCase())}),se=ve=>{I(ve),T(!1),A("");const Ze=`${ve.phone} ${E}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},he=ve=>{const Ze=ve.target.value;if(N(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&G.current&&setTimeout(()=>{var ve;(ve=G.current)==null||ve.focus()},100)},Be=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},ge=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(ur=>ur.phone===Ze);xn&&I(xn),N(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{le.current&&!le.current.contains(Ze.target)&&d.onBlur()};return document.addEventListener("mousedown",ve),()=>{document.removeEventListener("mousedown",ve)}},[d]);const De=ve=>{var Ze;return ve?ve.codeISO2?ve.codeISO2.toLowerCase():((Ze=ve.code)==null?void 0:Ze.toLowerCase())||"":""},ft=(vl=K.arrow)==null?void 0:vl.x,Ss=(Wr=K.arrow)==null?void 0:Wr.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],yl=J({onClick:Ee,onBlur:Be}),xl=()=>h.error?"border-red-500":R||b?"border-blue-400":"border-blue-100",Br=u(n),qt=u(r),yn=(bl=h.error)==null?void 0:bl.message;return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${o}`,children:[Br&&g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Br}),g.jsxs("div",{ref:le,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:ge,children:[g.jsxs("div",{ref:fe.setReference,className:`flex items-center justify-between text-lg max-w-120 font-600 bg-light rounded-l-full p-16 cursor-pointer border border-r-0 transition-all duration-200 ${yn?"border-red-500":xl()}`,style:{minWidth:"140px"},...yl,tabIndex:0,children:[C!=null&&C.code?g.jsxs("div",{className:"flex items-center truncate",children:[De(C)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${De(C)}.png`,srcSet:`https://flagcdn.com/w40/${De(C)}.png 2x`,alt:C.label,onError:ve=>{ve.currentTarget.style.display="none"}}),g.jsxs("span",{children:["+",C.phone]})]}):g.jsx("span",{className:"text-gray-400 font-600 text-body-m truncate",children:u("select_country")}),g.jsx(Pe,{icon:n0,className:"w-14 h-14 min-w-14 min-h-14"})]}),g.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 ${yn?"border-red-500":xl()}`,placeholder:qt,value:E,onChange:he,onBlur:Be})]}),yn&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(yn,{x:u(a||"")||e})}),Z&&g.jsxs("div",{ref:fe.setFloating,style:{position:ce,top:ue??0,left:oe??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...H(),children:[g.jsx("div",{ref:re,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:Ss!=null?`${Ss}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"}}),g.jsx("div",{className:"sticky top-0 bg-white p-2 z-20 w-fit",children:g.jsx("input",{ref:G,type:"text",className:"w-fit p-16",placeholder:u("search")+"...",value:v,onChange:ve=>A(ve.target.value),onClick:ve=>ve.stopPropagation(),onBlur:ve=>{ve.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:ae.length>0?g.jsx("ul",{className:"flex flex-col",children:ae.map((ve,Ze)=>{var xn;const Pt=ve.codeISO2?ve.codeISO2.toLowerCase():((xn=ve.code)==null?void 0:xn.toLowerCase())||"";return g.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:ur=>{ur.stopPropagation(),se(ve)},children:[Pt&&g.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:ve.label,onError:ur=>{ur.currentTarget.style.display="none"}}),g.jsxs("span",{className:"text-gray-500",children:["+",ve.phone]})]},`${ve.code}-${Ze}`)})}):g.jsx("div",{className:"px-16 py-8 text-gray-500 text-body-s",children:u("no_countries_found")})})]})]})},Lk={bgColor:"bg-blue-100",fillColor:"bg-blue-500"},Rk={bgColor:"bg-aqua-100",fillColor:"bg-aqua-500"},Fk=e=>{switch(e){case"aqua":return Rk;case"blue":default:return Lk}},Vk=({progress:e,showPercentage:t=!1,color:n,className:r="",...s})=>{const{defaultColorScheme:o}=Ve(),a=n||o,{bgColor:c,fillColor:u}=Fk(a),d=Math.min(Math.max(e,0),100);return g.jsxs("div",{className:`flex items-center gap-12 ${r}`,...s,children:[g.jsx("div",{className:`w-full h-8 ${c} rounded-full`,children:g.jsx("div",{className:`h-full ${u} rounded-full transition-all duration-300 ease-in-out`,style:{width:`${d}%`}})}),t&&g.jsxs("span",{className:"text-sm text-gray-400 font-500",children:[d,"%"]})]})},Bk=()=>{const[e,t]=O.useState(!1),n=O.useRef(null),r=()=>{t(!0),setTimeout(()=>{var o;return(o=n.current)==null?void 0:o.focus()},100)},s=()=>{t(!1)};return g.jsx("div",{className:"relative flex items-center",children:g.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:[g.jsx("button",{onClick:r,className:"size-[40px] flex items-center justify-center rounded-full hover:bg-gray-100 transition-all",children:g.jsx(Pe,{icon:Y6})}),g.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:s,style:{border:"none",outline:"none"}})]})})},Wk="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",Uk={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"},zk={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"},Gk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=zk[n];break;case"blue":default:r=Uk[n];break}return Ln(Wk,r)},Yk=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Gk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx(Pe,{icon:a,className:Do()}),e]})},Hk="w-fit transition-colors group ease-in-out duration-200 flex flex-col items-center justify-center gap-12 text-base font-600",qk={true:"text-blue-500 hover:text-blue-500",false:"text-gray-800 hover:text-blue-500"},Kk={true:"text-aqua-500 hover:text-aqua-500",false:"text-gray-800 hover:text-aqua-500"},Xk="flex h-32 w-32 items-center justify-center transition-colors ease-in-out duration-200 rounded-full",Zk={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"},Jk={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"},M2=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"blue":r=Zk[n];break;case"aqua":default:r=Jk[n];break}return Ln(Xk,r)},Qk=(e=!1,t="blue")=>{const n=String(e);let r;switch(t){case"aqua":r=Kk[n];break;case"blue":default:r=qk[n];break}return Ln(Hk,r)},ej=({label:e,href:t,onClick:n,active:r=!1,disabled:s=!1,className:o,icon:a,color:c})=>{const{defaultColorScheme:u}=Ve(),d=c||u,h=p=>{if(s){p.preventDefault();return}n==null||n(p)},m=`${Qk(r,d)} ${s?"!text-gray-300 cursor-not-allowed !bg-transparent":""}`;return t?g.jsxs("a",{href:t,className:`${m} ${o||""}`,onClick:h,"aria-disabled":s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]}):g.jsxs("button",{className:`${m} ${o||""}`,onClick:h,disabled:s,children:[a&&g.jsx("div",{className:M2(r,d),children:g.jsx(Pe,{icon:a,className:"size-16 max-h-16 max-w-16"})}),e]})},tj=e=>{const{display:t,...n}=e;return t==="desktop"?g.jsx(Yk,{...n}):t==="mobile"?g.jsx(ej,{...n}):null},nj=({options:e,name:t,control:n,label:r="",placeholder:s="Type to search...",className:o="",input:a=!0,dropdownStyle:c={},innerClassName:u="",showChevron:d=!0,size:h="md",required:m=!1})=>{const{field:{value:p,onChange:x},fieldState:{error:S}}=Un.useController({name:t,control:n});return g.jsx(rj,{options:e,value:p,onChange:x,label:r,placeholder:s,error:S==null?void 0:S.message,className:o,input:a,dropdownStyle:c,innerClassName:u,showChevron:d,size:h,required:m})},rj=({options:e,value:t,onChange:n,label:r="Select an option",placeholder:s="Type to search...",error:o,input:a=!0,className:c="",dropdownStyle:u={},innerClassName:d="",showChevron:h=!0,size:m="md",required:p=!1})=>{var H;const{t:x}=Ve(),[S,b]=O.useState(!1),[T,v]=O.useState(""),[A,C]=O.useState(t||null),I=O.useRef(null),E=O.useRef(null),R={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16"}}[m],{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:S,onOpenChange:b,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:Z,elements:B}){Object.assign(B.floating.style,{maxHeight:`${Math.min(Z-10,300)}px`})},padding:8}),gs({element:E})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=(()=>{const Z=Array.isArray(e)?e:[];if(!T.trim())return Z;const B=T.toLowerCase();return Z.filter(X=>X.label.toLowerCase().includes(B)||X.key.toLowerCase().includes(B))})(),$=Z=>{C(Z),b(!1),v(""),n(Z)},k=()=>{b(!S),!S&&I.current&&setTimeout(()=>{var Z;return(Z=I.current)==null?void 0:Z.focus()},100)};O.useEffect(()=>{C(t)},[t]);const J=ce({onClick:k});return g.jsxs("div",{className:`relative flex flex-col ${R.gap} ${c}`,children:[r&&g.jsxs("h6",{className:`text-gray-600 font-600 leading-none ${o?"!text-red-500":""} ${R.label}`,children:[r,p&&g.jsx("span",{className:"text-red-500 ml-4",children:"*"})]}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
|
|
756
|
+
${R.container} cursor-pointer hover:border-blue-400
|
|
757
757
|
${o?"border-red-500 hover:border-red-600":""}
|
|
758
|
-
${
|
|
759
|
-
${(
|
|
758
|
+
${S?"border-blue-400":"border-blue-100"}`,...J,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${R.text} ${A?"":"text-gray-400"}`,children:x(A?A.label:s)})}),h&&g.jsx("svg",{className:`${R.icon} transition-transform ${S?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),o&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${R.error}`,children:o}),U&&g.jsxs("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,width:(H=ee.reference.current)==null?void 0:H.clientWidth,zIndex:50,...u},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:[a&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.jsx("input",{ref:I,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:x("search_options"),value:T,onChange:Z=>v(Z.target.value),onClick:Z=>Z.stopPropagation(),autoFocus:!0})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((Z,B)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer
|
|
759
|
+
${(A==null?void 0:A.key)===Z.key?"bg-blue-100/30 text-blue-500 font-medium":""}`,onClick:X=>{X.stopPropagation(),$(Z)},children:g.jsx("span",{className:R.text,children:typeof Z.label=="string"?x(Z.label):Z.expandedLabel||Z.label})},`${Z.key}-${B}`))}):g.jsx("div",{className:"px-16 py-16 text-center text-gray-500",children:g.jsx("p",{className:"text-body-s",children:"No matches found"})})})]})]})},sj={activeTextColor:"text-blue-500",activeBgColor:"bg-blue-100",hoverBgColor:"hover:bg-blue-100",activeIconColor:"text-blue-500"},ij={activeTextColor:"text-aqua-500",activeBgColor:"bg-aqua-100",hoverBgColor:"hover:bg-aqua-100",activeIconColor:"text-aqua-500"},oj=e=>{switch(e){case"aqua":return ij;case"blue":default:return sj}},aj=({active:e,icon:t,label:n,onClick:r,expanded:s,disabled:o=!1,color:a})=>{const{defaultColorScheme:c}=Ve(),u=a||c,{activeTextColor:d,activeBgColor:h,hoverBgColor:m,activeIconColor:p}=oj(u);return g.jsxs("div",{onClick:()=>!o&&r(),className:`
|
|
760
760
|
flex items-center rounded-full text-gray transition-all duration-150 h-[40px] w-full px-[12.3px]
|
|
761
761
|
${!s&&"w-fit"}
|
|
762
762
|
${o?"cursor-not-allowed opacity-50":`cursor-pointer ${m}`}
|
|
@@ -800,11 +800,11 @@ attempted value: ${a}
|
|
|
800
800
|
group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
|
|
801
801
|
|
|
802
802
|
group-disabled:bg-gray-500
|
|
803
|
-
`,children:[a&&a,g.jsx("input",{id:n,name:n,disabled:o,required:h,placeholder:r,value:p,onChange:
|
|
803
|
+
`,children:[a&&a,g.jsx("input",{id:n,name:n,disabled:o,required:h,placeholder:r,value:p,onChange:N=>x(N.target.value),onBlur:b,ref:S,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${C.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...m}),c&&c]}),(T==null?void 0:T.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${C.error}`,children:v(T.message,{x:E||I})})]})},yj=({label:e,value:t,className:n})=>g.jsxs("div",{className:`flex flex-col gap-4 ${n||""}`,children:[g.jsx("p",{className:"text-lg font-600 text-gray-800",children:e}),g.jsx("p",{className:"text-base font-400 text-gray-600",children:t})]}),_2=({options:e,onChange:t,value:n,disabled:r,error:s,label:o="",placeholder:a="",allowSearch:c=!1,className:u="",innerClassName:d="",dropdownStyle:h={},showChevron:m=!0,size:p="md"})=>{const[x,S]=O.useState(!1),[b,T]=O.useState(""),v=O.useRef(null),A=O.useRef(null),C=e.find(H=>H.value===n),E={sm:{container:"px-16 py-8",text:"text-sm",label:"text-sm",error:"text-sm",gap:"gap-8",icon:"w-12 h-12",option:"text-sm"},md:{container:"p-16",text:"text-14",label:"text-14",error:"text-sm",gap:"gap-8",icon:"w-16 h-16",option:"text-14"}}[p],N=O.useMemo(()=>e.map(H=>({...H,searchableLabel:typeof H.label=="string"?H.label:O.isValidElement(H.label)?gl(H.label):String(H.label),searchableValue:String(H.value)})),[e]),R=O.useMemo(()=>{const H={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 lT(N,H)},[N]),{x:F,y:G,strategy:re,refs:ee,context:le}=or({open:x,onOpenChange:S,middleware:[tr(8),rr(),nr({padding:8}),Rr({apply({availableHeight:H,elements:Z}){Object.assign(Z.floating.style,{maxHeight:`${Math.min(H-10,300)}px`})},padding:8}),gs({element:A})],placement:"bottom-start",whileElementsMounted:er}),oe=sr(le),ue=ir(le),{getReferenceProps:ce,getFloatingProps:fe}=ar([oe,ue]),{isMounted:U,styles:W}=lr(le,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=O.useMemo(()=>b.trim()?R.search(b).map(Z=>({...Z.item,score:Z.score,matches:Z.matches})):e,[b,R,e]),$=H=>{t(H.value),S(!1),T("")},J=ce({onClick:()=>{r||(S(!x),!x&&v.current&&c&&setTimeout(()=>{var H;return(H=v.current)==null?void 0:H.focus()},100))}});return g.jsxs("div",{className:`relative flex flex-col ${E.gap} ${u}`,children:[o&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${s?"!text-red-500":""} ${E.label} ${r?"text-gray-300":""}`,children:o}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full
|
|
804
804
|
${E.container} cursor-pointer border transition-all duration-200
|
|
805
805
|
${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
|
|
806
806
|
${s?"border-red-500 hover:border-red-600":""}
|
|
807
|
-
${x?"border-blue-400":"border-blue-100"}`,...X,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${E.text} ${C?"":"text-gray-400"}`,children:C?C.label:a})}),m&&g.jsx("svg",{className:`${E.icon} transition-transform ${x?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),s&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${E.error}`,children:s}),z&&g.jsxs("div",{ref:Q.setFloating,style:{position:ee,top:Y??0,left:R??0,...U,width:Q.reference.current instanceof Element?Q.reference.current.clientWidth:void 0,zIndex:50,...h},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...ue(),children:[c&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.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:b,onChange:W=>T(W.target.value),onClick:W=>W.stopPropagation(),autoFocus:!0}),b&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:W=>{W.stopPropagation(),T("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((W,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${E.option} ${n===W.value?"bg-blue-100/30 text-blue-500 font-medium text":""}`,onClick:B=>{B.stopPropagation(),$(W)},children:g.jsx("span",{children:(W==null?void 0:W.expandedLabel)||W.label})},`${W.value}-${re}`))}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',b,'"']})]})})]})]})},gl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(O.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(gl).join(" "):gl(n):""}return Array.isArray(e)?e.map(gl).join(" "):""},ih=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:s="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=O.useState(o),m=(e-t)/2,p=2*Math.PI*m,x=p*(1-d/100),{className:S="",...b}=u;return O.useEffect(()=>{if(!a)return;let T,v;const A=C=>{T||(T=C);const I=C-T,E=Math.min(100,I/r*100);h(E),E<100&&(v=requestAnimationFrame(A))};return v=requestAnimationFrame(A),()=>{v&&cancelAnimationFrame(v)}},[r,a]),g.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[g.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[g.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:x,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),g.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[s&&g.jsx("div",{className:"text-xs font-medium text-gray-500",children:s}),c&&g.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},xj=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:s=["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",size:m})=>{const{t:p}=Ve(),x={sm:"text-base",md:"text-lg",lg:"text-xl"},S={sm:"text-sm",md:"text-base",lg:"text-lg"},b=m??(h==="row"?"md":"lg"),[T,v]=O.useState(!1),[A,C]=O.useState(""),I=O.useRef(null),E=s.map(oe=>`.${oe}`).join(","),D=oe=>{const ce=[];let le=!1;Array.from(oe).forEach(ue=>{var U;const z=((U=ue.name.split(".").pop())==null?void 0:U.toLowerCase())||"";if(!s.includes(z)){C(`El archivo ${ue.name} tiene una extensión no permitida.`),le=!0;return}if(ue.size>o*1024){C(`El archivo ${ue.name} excede el tamaño máximo de ${o}KB.`),le=!0;return}ce.push(ue)}),!le&&ce.length>0&&(C(""),r(ce))},F=()=>{I.current&&I.current.click()},R=oe=>{const ce=oe.target.files;ce&&ce.length>0&&D(ce),oe.target.value=""},Y=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!0)},ee=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!1)},Q=oe=>{oe.preventDefault(),oe.stopPropagation(),T||v(!0)},fe=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!1);const ce=oe.dataTransfer.files;ce.length>0&&D(ce)};return h==="row"?a?g.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:g.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:[g.jsx(ih,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:g.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 ${T?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:Y,onDragLeave:ee,onDragOver:Q,onDrop:fe,onClick:F,children:[g.jsx("div",{className:"flex justify-center shrink-0",children:g.jsx(Pe,{icon:kE,className:"text-blue-500 text-2xl"})}),g.jsxs("div",{className:"flex flex-col items-start text-left grow",children:[g.jsx("h3",{className:`font-600 text-dark ${x[b]}`,children:p(e)}),t&&g.jsx("p",{className:`font-400 text-gray-500 ${S[b]}`,children:p(t)})]}),g.jsx("div",{className:"shrink-0",children:g.jsx(xs,{color:"blue",variant:"transparent",children:p(n)})}),g.jsx("input",{type:"file",ref:I,className:"hidden",multiple:!0,accept:E,onChange:R})]})}),A&&g.jsx("div",{className:"mt-3 text-sm text-red-500",children:A})]}):a?g.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:g.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:[g.jsx(ih,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:g.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 ${T?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:Y,onDragLeave:ee,onDragOver:Q,onDrop:fe,onClick:F,children:[g.jsx("div",{className:"flex justify-center translate-y-4",children:g.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx("h3",{className:`font-600 text-dark ${x[b]}`,children:p(e)}),t&&g.jsx("p",{className:`font-400 text-gray-500 ${S[b]}`,children:p(t)}),g.jsx($2,{color:"blue",children:p(n)}),g.jsx("input",{type:"file",ref:I,className:"hidden",multiple:!0,accept:E,onChange:R})]})]})}),A&&g.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:A}),g.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:g.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[s.join(", ").toUpperCase()," ",p("formats"),". ",p("maximum_size"),":"," ",bx(o,"mb")]})})]})},vj=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:s="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:x="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:v="#ef4444",mediumColor:A="#eab308",highColor:C="#22c55e",singleColor:I,clockwise:E=!0,startAngle:D=-90})=>{const F=K=>{if(I)return I;if(S&&S.length>0){const $=[...S].sort((k,X)=>k.threshold-X.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].color;return $[0].color}return K<b?v:K<T?A:C},R=K=>{if(!S||S.length===0)return;const $=[...S].sort((k,X)=>k.threshold-X.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].label;return $[0].label},Y=Math.min(100,Math.max(0,e)),ee=F(Y),Q=R(Y),fe=d/2,oe=(d-h)/2,ce=2*Math.PI*oe,le=ce,ue=ce-Y/100*ce,U=`rotate(${D} ${fe} ${fe}) scale(${E?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[g.jsxs("div",{className:"relative",style:{width:d,height:d},children:[g.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[g.jsx("circle",{cx:fe,cy:fe,r:oe,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),g.jsx("circle",{cx:fe,cy:fe,r:oe,fill:"transparent",stroke:ee,strokeWidth:h,strokeDasharray:le,strokeDashoffset:ue,strokeLinecap:"round",transform:U,className:p?"transition-all ease-out":"",style:p?{transitionDuration:x,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(Y),"%"]}),(Q||s)&&n&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:Q||s})]})})]}),r&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},bj=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:s="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:x="bg-green-500",singleColor:S})=>{const b=E=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((F,R)=>F.threshold-R.threshold);for(let F=D.length-1;F>=0;F--)if(E>=D[F].threshold)return D[F].color;return D[0].color}return E<d?m:E<h?p:x},T=E=>{if(!u||u.length===0)return;const D=[...u].sort((F,R)=>F.threshold-R.threshold);for(let F=D.length-1;F>=0;F--)if(E>=D[F].threshold)return D[F].label;return D[0].label},v=Math.min(100,Math.max(0,e)),A=b(v),C=T(v),I=a?`transition-all ${c} ease-in-out`:"";return g.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[g.jsx("div",{className:`flex-1 ${o} rounded-full ${s} overflow-hidden`,children:g.jsx("div",{className:`h-full ${A} ${I} rounded-full`,style:{width:`${v}%`}})}),t&&g.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[g.jsxs("span",{className:"font-bold",children:[Math.round(v),"%"]}),C&&g.jsxs("span",{className:"text-xs text-gray-500",children:["(",C,")"]}),g.jsx("span",{className:"text-gray-600",children:n})]})]})},wj=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:s="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:x=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,v=(n-r)/2,A=2*Math.PI*v,C=A,I=A-b/100*A,D=`rotate(${S} ${T} ${T}) scale(${x?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[g.jsxs("div",{className:"relative",style:{width:n,height:n},children:[g.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:s,strokeWidth:r,strokeDasharray:C,strokeDashoffset:I,strokeLinecap:"round",transform:D,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},Sj=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ve();return g.jsxs("button",{onClick:t,className:`
|
|
807
|
+
${x?"border-blue-400":"border-blue-100"}`,...J,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${E.text} ${C?"":"text-gray-400"}`,children:C?C.label:a})}),m&&g.jsx("svg",{className:`${E.icon} transition-transform ${x?"transform rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),s&&g.jsx("p",{className:`font-500 text-red-500 leading-none ${E.error}`,children:s}),U&&g.jsxs("div",{ref:ee.setFloating,style:{position:re,top:G??0,left:F??0,...W,width:ee.reference.current instanceof Element?ee.reference.current.clientWidth:void 0,zIndex:50,...h},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...fe(),children:[c&&g.jsx("div",{className:"sticky top-0 bg-white p-8 border-b border-gray-100 z-20",children:g.jsxs("div",{className:"relative",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-12 flex items-center pointer-events-none",children:g.jsx("svg",{className:"h-16 w-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),g.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:b,onChange:H=>T(H.target.value),onClick:H=>H.stopPropagation(),autoFocus:!0}),b&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:H=>{H.stopPropagation(),T("")},children:g.jsx("svg",{className:"h-16 w-16 text-gray-400 hover:text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:K.length>0?g.jsx("ul",{className:"py-4",children:K.map((H,Z)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${E.option} ${n===H.value?"bg-blue-100/30 text-blue-500 font-medium text":""}`,onClick:B=>{B.stopPropagation(),$(H)},children:g.jsx("span",{children:(H==null?void 0:H.expandedLabel)||H.label})},`${H.value}-${Z}`))}):g.jsxs("div",{className:"px-16 py-16 text-center text-gray-500",children:[g.jsx("svg",{className:"mx-auto h-24 w-24 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.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"})}),g.jsxs("p",{className:"mt-8 text-body-s",children:['No matches found for "',b,'"']})]})})]})]})},gl=e=>{if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(!e)return"";if(O.isValidElement(e)){const n=e.props.children;return n?Array.isArray(n)?n.map(gl).join(" "):gl(n):""}return Array.isArray(e)?e.map(gl).join(" "):""},ih=({size:e=100,strokeWidth:t=4,color:n="#1DA696",duration:r=3e3,label:s="",initialProgress:o=0,automaticProgress:a=!0,showProgress:c=!0,...u})=>{const[d,h]=O.useState(o),m=(e-t)/2,p=2*Math.PI*m,x=p*(1-d/100),{className:S="",...b}=u;return O.useEffect(()=>{if(!a)return;let T,v;const A=C=>{T||(T=C);const I=C-T,E=Math.min(100,I/r*100);h(E),E<100&&(v=requestAnimationFrame(A))};return v=requestAnimationFrame(A),()=>{v&&cancelAnimationFrame(v)}},[r,a]),g.jsxs("div",{...b,className:`relative flex items-center justify-center ${S}`,children:[g.jsxs("svg",{height:e,width:e,className:"transform -rotate-90",children:[g.jsx("circle",{stroke:"#E5E7EB",fill:"transparent",strokeWidth:t,r:m,cx:e/2,cy:e/2}),g.jsx("circle",{stroke:n,fill:"transparent",strokeWidth:t,strokeDasharray:p,strokeDashoffset:x,strokeLinecap:"round",r:m,cx:e/2,cy:e/2})]}),g.jsxs("div",{className:"absolute flex flex-col items-center justify-center",children:[s&&g.jsx("div",{className:"text-xs font-medium text-gray-500",children:s}),c&&g.jsxs("div",{className:"text-lg font-semibold",style:{color:n},children:[Math.round(d),"%"]})]})]})},xj=({title:e="drag_and_drop_your_files_here",subtitle:t=null,buttonTitle:n="choose_files",onUpload:r=()=>{},acceptedExtensions:s=["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",size:m})=>{const{t:p}=Ve(),x={sm:"text-base",md:"text-lg",lg:"text-xl"},S={sm:"text-sm",md:"text-base",lg:"text-lg"},b=m??(h==="row"?"md":"lg"),[T,v]=O.useState(!1),[A,C]=O.useState(""),I=O.useRef(null),E=s.map(oe=>`.${oe}`).join(","),N=oe=>{const ue=[];let ce=!1;Array.from(oe).forEach(fe=>{var W;const U=((W=fe.name.split(".").pop())==null?void 0:W.toLowerCase())||"";if(!s.includes(U)){C(`El archivo ${fe.name} tiene una extensión no permitida.`),ce=!0;return}if(fe.size>o*1024){C(`El archivo ${fe.name} excede el tamaño máximo de ${o}KB.`),ce=!0;return}ue.push(fe)}),!ce&&ue.length>0&&(C(""),r(ue))},R=()=>{I.current&&I.current.click()},F=oe=>{const ue=oe.target.files;ue&&ue.length>0&&N(ue),oe.target.value=""},G=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!0)},re=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!1)},ee=oe=>{oe.preventDefault(),oe.stopPropagation(),T||v(!0)},le=oe=>{oe.preventDefault(),oe.stopPropagation(),v(!1);const ue=oe.dataTransfer.files;ue.length>0&&N(ue)};return h==="row"?a?g.jsx("div",{className:`w-full mx-auto h-fit ${u} flex flex-col`,children:g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full flex flex-col",children:g.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:[g.jsx(ih,{size:28,showProgress:!1,duration:c,strokeWidth:3,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full h-fit flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-8 rounded-2xl h-full",children:g.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 ${T?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:G,onDragLeave:re,onDragOver:ee,onDrop:le,onClick:R,children:[g.jsx("div",{className:"flex justify-center shrink-0",children:g.jsx(Pe,{icon:kE,className:"text-blue-500 text-2xl"})}),g.jsxs("div",{className:"flex flex-col items-start text-left grow",children:[g.jsx("h3",{className:`font-600 text-dark ${x[b]}`,children:p(e)}),t&&g.jsx("p",{className:`font-400 text-gray-500 ${S[b]}`,children:p(t)})]}),g.jsx("div",{className:"shrink-0",children:g.jsx(xs,{color:"blue",variant:"transparent",children:p(n)})}),g.jsx("input",{type:"file",ref:I,className:"hidden",multiple:!0,accept:E,onChange:F})]})}),A&&g.jsx("div",{className:"mt-3 text-sm text-red-500",children:A})]}):a?g.jsx("div",{className:`w-full mx-auto h-full ${u} flex flex-col grow`,children:g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full flex flex-col grow",children:g.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:[g.jsx(ih,{size:75,duration:c,strokeWidth:6,color:"#4570EB"}),g.jsxs("h4",{className:"text-body-s text-gray-400",children:[p("loading"),"..."]})]})})}):g.jsxs("div",{className:`w-full mx-auto h-full flex flex-col ${u}`,children:[g.jsx("div",{className:"bg-blue-50 p-16 rounded-2xl h-full grow",children:g.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 ${T?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:G,onDragLeave:re,onDragOver:ee,onDrop:le,onClick:R,children:[g.jsx("div",{className:"flex justify-center translate-y-4",children:g.jsx("img",{className:"w-full h-auto max-w-160",src:"/images/svg/empty-state/empty-state-upload.svg",alt:"empty-state"})}),g.jsxs("div",{className:"flex flex-col items-center",children:[g.jsx("h3",{className:`font-600 text-dark ${x[b]}`,children:p(e)}),t&&g.jsx("p",{className:`font-400 text-gray-500 ${S[b]}`,children:p(t)}),g.jsx($2,{color:"blue",children:p(n)}),g.jsx("input",{type:"file",ref:I,className:"hidden",multiple:!0,accept:E,onChange:F})]})]})}),A&&g.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:A}),g.jsx("div",{className:"mt-10 w-full flex justify-center shrink-0",children:g.jsxs("span",{className:"text-gray-500 font-400 text-base",children:[s.join(", ").toUpperCase()," ",p("formats"),". ",p("maximum_size"),":"," ",bx(o,"mb")]})})]})},vj=({progress:e=0,showPercentage:t=!0,showPercentageLabel:n=!1,label:r,percentageLabel:s="progreso",percentageClassName:o="",percentageLabelClassName:a="",labelClassName:c="",className:u="",size:d=120,strokeWidth:h=8,backgroundColor:m="#e5e7eb",animated:p=!0,animationDuration:x="1.5s",colorThresholds:S,lowThreshold:b=30,mediumThreshold:T=70,lowColor:v="#ef4444",mediumColor:A="#eab308",highColor:C="#22c55e",singleColor:I,clockwise:E=!0,startAngle:N=-90})=>{const R=K=>{if(I)return I;if(S&&S.length>0){const $=[...S].sort((k,J)=>k.threshold-J.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].color;return $[0].color}return K<b?v:K<T?A:C},F=K=>{if(!S||S.length===0)return;const $=[...S].sort((k,J)=>k.threshold-J.threshold);for(let k=$.length-1;k>=0;k--)if(K>=$[k].threshold)return $[k].label;return $[0].label},G=Math.min(100,Math.max(0,e)),re=R(G),ee=F(G),le=d/2,oe=(d-h)/2,ue=2*Math.PI*oe,ce=ue,fe=ue-G/100*ue,W=`rotate(${N} ${le} ${le}) scale(${E?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${u}`,children:[g.jsxs("div",{className:"relative",style:{width:d,height:d},children:[g.jsxs("svg",{width:d,height:d,className:"transform -rotate-90",viewBox:`0 0 ${d} ${d}`,children:[g.jsx("circle",{cx:le,cy:le,r:oe,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),g.jsx("circle",{cx:le,cy:le,r:oe,fill:"transparent",stroke:re,strokeWidth:h,strokeDasharray:ce,strokeDashoffset:fe,strokeLinecap:"round",transform:W,className:p?"transition-all ease-out":"",style:p?{transitionDuration:x,transitionProperty:"stroke-dashoffset, stroke"}:{}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${o}`,children:[Math.round(G),"%"]}),(ee||s)&&n&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${a}`,children:ee||s})]})})]}),r&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${c}`,children:r})]})},bj=({progress:e,showPercentage:t=!1,percentageLabel:n="",className:r="",height:s="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:x="bg-green-500",singleColor:S})=>{const b=E=>{if(S)return S;if(u&&u.length>0){const N=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=N.length-1;R>=0;R--)if(E>=N[R].threshold)return N[R].color;return N[0].color}return E<d?m:E<h?p:x},T=E=>{if(!u||u.length===0)return;const N=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=N.length-1;R>=0;R--)if(E>=N[R].threshold)return N[R].label;return N[0].label},v=Math.min(100,Math.max(0,e)),A=b(v),C=T(v),I=a?`transition-all ${c} ease-in-out`:"";return g.jsxs("div",{className:`w-full flex gap-4 items-center ${r}`,children:[g.jsx("div",{className:`flex-1 ${o} rounded-full ${s} overflow-hidden`,children:g.jsx("div",{className:`h-full ${A} ${I} rounded-full`,style:{width:`${v}%`}})}),t&&g.jsxs("div",{className:"text-sm text-gray-700 font-medium text-nowrap flex items-center gap-1",children:[g.jsxs("span",{className:"font-bold",children:[Math.round(v),"%"]}),C&&g.jsxs("span",{className:"text-xs text-gray-500",children:["(",C,")"]}),g.jsx("span",{className:"text-gray-600",children:n})]})]})},wj=({progress:e=0,showPercentage:t=!0,size:n=120,strokeWidth:r=8,color:s="#4570EB",backgroundColor:o="#E4E4E7",label:a,className:c="",labelClassName:u="",percentageLabel:d="",percentageClassName:h="",showPercentageLabel:m=!1,percentageLabelClassName:p="",clockwise:x=!0,startAngle:S=-90})=>{const b=Math.min(100,Math.max(0,e)),T=n/2,v=(n-r)/2,A=2*Math.PI*v,C=A,I=A-b/100*A,N=`rotate(${S} ${T} ${T}) scale(${x?1:-1}, 1)`;return g.jsxs("div",{className:`flex flex-col items-center gap-2 ${c}`,children:[g.jsxs("div",{className:"relative",style:{width:n,height:n},children:[g.jsxs("svg",{width:n,height:n,className:"transform -rotate-90",viewBox:`0 0 ${n} ${n}`,children:[g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:o,strokeWidth:r,className:"opacity-20"}),g.jsx("circle",{cx:T,cy:T,r:v,fill:"transparent",stroke:s,strokeWidth:r,strokeDasharray:C,strokeDashoffset:I,strokeLinecap:"round",transform:N,className:"transition-all ease-out",style:{transitionDuration:"1.5s",transitionProperty:"stroke-dashoffset, stroke"}})]}),g.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:g.jsxs("div",{className:"text-center",children:[t&&g.jsxs("div",{className:`text-2xl font-bold text-gray-800 ${h}`,children:[Math.round(b),"%"]}),d&&m&&g.jsx("div",{className:`text-xs text-gray-500 mt-1 ${p}`,children:d})]})})]}),a&&g.jsx("p",{className:`text-gray-500 text-label mt-6 ${u}`,children:a})]})},Sj=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ve();return g.jsxs("button",{onClick:t,className:`
|
|
808
808
|
relative inline-flex min-h-24 min-w-48 items-center rounded-full
|
|
809
809
|
transition-colors duration-200 ease-in-out focus:outline-none
|
|
810
810
|
shadow-lg
|
|
@@ -813,4 +813,4 @@ attempted value: ${a}
|
|
|
813
813
|
inline-block h-20 w-20 transform rounded-full bg-white
|
|
814
814
|
transition-transform duration-200 ease-in-out drop-shadow-xl
|
|
815
815
|
${e?"translate-x-24":"translate-x-3"}
|
|
816
|
-
`})]})},Tj=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,x,S,b,T,v,A,C;const[r,s]=O.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=(I,E)=>n[I]||E,d=(I,E=[])=>{const
|
|
816
|
+
`})]})},Tj=({filter:e,filterControl:t,translations:n={}})=>{var h,m,p,x,S,b,T,v,A,C;const[r,s]=O.useState(!0),{updateFilter:o,removeFilter:a}=t,c=!!(e!=null&&e.value),u=(I,E)=>n[I]||E,d=(I,E=[])=>{const N=E.find(R=>R.value===I);return N?N.label:String(I)};return g.jsx(ys,{open:r,onClose:()=>s(!1),placement:"bottom",className:"min-w-[400px]",component:g.jsxs("div",{children:[g.jsx("p",{children:u(e.key,e.label)}),e.type==="date"?g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! relative z-99",children:g.jsx(Gd,{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:I=>o({key:e.key,value:{...e.value||{},startDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de inicio",translatedKey:"start_date"})}),g.jsx("div",{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! ",children:g.jsx(Gd,{currentDate:(p=e.value)!=null&&p.endDate?new Date(e.value.endDate):null,minDate:(x=e.value)!=null&&x.startDate?new Date(e.value.startDate):void 0,onDateChange:I=>o({key:e.key,value:{...e.value||{},endDate:(I==null?void 0:I.toISOString())||""},label:e.label,type:e.type}),label:"Fecha de fin",futureDates:!0,translatedKey:"end_date"})})]}):e.type==="select"?g.jsx(_2,{className:"scale-[0.8] origin-left -mr-[10%] w-[125%]! p-0! m-0!",value:e.value||"",options:e.options||[],label:"",allowSearch:!0,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)}):g.jsx(al,{size:"sm",name:e.key,value:e.value,onChange:I=>o({key:e.key,value:I,label:e.label,type:e.type}),placeholder:u(e.key,e.label)})]}),children:g.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:()=>s(!0),children:[g.jsxs("div",{className:"flex justify-between items-center gap-[6px] min-w-0",children:[g.jsx(Pe,{icon:e.icon||jE,className:"text-[14px] text-blue-500"}),g.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)||"..."} - ${((b=e.value)==null?void 0:b.endDate)||"..."}`:String(e.value||u(e.key,e.label)),children:e.value&&(e.type==="date"?(T=e.value)!=null&&T.startDate||(v=e.value)!=null&&v.endDate:e.value)?g.jsxs(g.Fragment,{children:[u(e.key,e.label),":"," ",g.jsx("span",{className:"text-gray-600 truncate overflow-hidden whitespace-nowrap",children:e.type==="date"?`${(A=e.value)!=null&&A.startDate?new Date(e.value.startDate).toLocaleDateString():"..."} - ${(C=e.value)!=null&&C.endDate?new Date(e.value.endDate).toLocaleDateString():"..."}`:e.type==="select"?d(e.value,e.options):String(e.value)})]}):u(e.key,e.label)})]}),g.jsx("div",{className:"flex justify-center items-center",onClick:()=>a({key:e.key}),children:g.jsx(Pe,{icon:s0,className:"text-[10px] text-gray-400"})})]})})},I2=({children:e,onClickAway:t,enabled:n=!0,mouseEvent:r="onClick",touchEvent:s="onTouchEnd"})=>{const o=O.useRef(null);return O.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(s);return document.addEventListener(d,a,!0),document.addEventListener(h,a,!0),()=>{document.removeEventListener(d,a,!0),document.removeEventListener(h,a,!0)}},[n,t,r,s]),g.jsx("div",{ref:o,style:{display:"contents"},children:e})},oh=({status:e,shouldAnimate:t,color:n,index:r,sizeClass:s})=>{const o=e==="done",a=e==="focus",{focusIconColor:c,completedIconColor:u,pendingIconColor:d,focusBgColor:h,completedBgColor:m,pendingBgColor:p}=ll(n),x=o?u:a?c:d,S=o?m:a?h:p;return g.jsx(st.div,{animate:{backgroundColor:S},transition:{duration:t?.3:0,ease:"easeOut"},className:`size-[35px] rounded-full flex items-center justify-center font-bold text-sm ${s} ${x}`,children:g.jsx(Kn,{mode:"wait",children:o?g.jsx(st.div,{initial:t?{opacity:0,scale:.5}:{opacity:1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},className:"flex items-center justify-center",children:g.jsx(Pe,{icon:xO})},"check"):g.jsx(st.div,{initial:t?{opacity:0}:{opacity:1},animate:{opacity:1},className:"leading-none flex items-center justify-center",children:r+1},"number")})})},Cj="Alejo",Ej=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(xb.Provider,{value:n,children:t})};te.ActionButton=IE,te.AlertModal=vb,te.AsyncToast=ex,te.AutocompleteInput=MN,te.Avatar=c2,te.BoxContainer=yi,te.Button=xs,te.CalendarSelector=Ud,te.CenterModal=f2,te.Checkbox=Kd,te.Chip=WN,te.CircleProgress=wj,te.ClickAwayListener=I2,te.CountryDropdown=Tk,te.CountryInput=wk,te.CountryLabel=Sk,te.DateInput=iN,te.DialogModal=Jb,te.Divider=u2,te.Dropdown=lN,te.EmptyState=NN,te.FileUpload=cN,te.FilterPill=Tj,te.FiltersMenu=_N,te.FloatingMenu=ys,te.IconButton=sh,te.ImageProfileInput=Pk,te.IndexedStep=e2,te.IndexedStepper=uN,te.InfoCard=Mk,te.InformationContainer=t2,te.InformationDisclaimer=Ik,te.LoadingProgress=ih,te.LoadingSpinner=Nk,te.ModalContainer=jN,te.MultiSelectDropdown=IN,te.Organism=Cj,te.PasswordInput=kk,te.PhoneInput=jk,te.Pill=Yd,te.PillsContainer=ON,te.ProgressBar=Vk,te.SearchBar=Bk,te.SearchModal=dN,te.SectionButton=tj,te.SelectInput=nj,te.SideModal=$N,te.SidebarButton=aj,te.SingleSelectDropdown=DN,te.StepIndicator=oh,te.Stepper=yN,te.Switch=Sj,te.Tab=O2,te.Tabs=xN,te.TextArea=pj,te.TextButton=$2,te.TextInput=gj,te.TextStaticInput=yj,te.ThemeProvider=Ej,te.ThresholdCircleProgress=vj,te.ThresholdProgressBar=bj,te.Toast=ff,te.Tooltip=kN,te.UncontrolledDateInput=Gd,te.UncontrolledSelector=_2,te.UncontrolledTextInput=al,te.UploadContainer=xj,te.capitalizeFirstLetter=vx,te.closeModal=FN,te.defaultTheme=Pd,te.formatLocalizedDate=s5,te.getImageUrl=wx,te.openCustomModal=RN,te.openModal=LN,te.renderTabContent=VN,te.showToastAsync=qd,te.showToastLoading=l2,te.stringToColor=df,te.toBase64=i5,te.toast=BN,te.translateBytes=bx,te.useFilterToggler=z6,te.useTheme=Ve,te.yupImageProfileValidator=Ak,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
|