lawgic-dev-kit 0.23.6 → 0.23.8

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.
@@ -23,7 +23,7 @@ React keys must be passed directly to JSX without using spread:
23
23
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
24
24
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
25
25
  * Copyright 2024 Fonticons, Inc.
26
- */function hT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _m(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(r){hT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pT(e){var t=mT(e,"string");return typeof t=="symbol"?t:t+""}const Im=()=>{};let cc={},Dm={},Nm=null,km={mark:Im,measure:Im};try{typeof window<"u"&&(cc=window),typeof document<"u"&&(Dm=document),typeof MutationObserver<"u"&&(Nm=MutationObserver),typeof performance<"u"&&(km=performance)}catch{}const{userAgent:jm=""}=cc.navigator||{},br=cc,Ke=Dm,Lm=Nm,Zo=km;br.document;const Un=!!Ke.documentElement&&!!Ke.head&&typeof Ke.addEventListener=="function"&&typeof Ke.createElement=="function",Rm=~jm.indexOf("MSIE")||~jm.indexOf("Trident/");var gT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,yT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},xT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Vm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Jo="duotone",vT="sharp",bT="sharp-duotone",Bm=[wt,Jo,vT,bT],wT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},ST={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},TT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),CT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},ET=["fak","fa-kit","fakd","fa-kit-duotone"],Wm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},PT=["kit"],AT={kit:{"fa-kit":"fak"}},MT=["fak","fakd"],OT={kit:{fak:"fa-kit"}},Um={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Qo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},$T=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_T=["fak","fa-kit","fakd","fa-kit-duotone"],IT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},DT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},NT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},uc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},kT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],fc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...$T,...kT],jT=["solid","regular","light","thin","duotone","brands"],zm=[1,2,3,4,5,6,7,8,9,10],LT=zm.concat([11,12,13,14,15,16,17,18,19,20]),RT=[...Object.keys(NT),...jT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Qo.GROUP,Qo.SWAP_OPACITY,Qo.PRIMARY,Qo.SECONDARY].concat(zm.map(e=>"".concat(e,"x"))).concat(LT.map(e=>"w-".concat(e))),FT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const zn="___FONT_AWESOME___",dc=16,Gm="fa",Ym="svg-inline--fa",Zr="data-fa-i2svg",hc="data-fa-pseudo-element",VT="data-fa-pseudo-element-pending",mc="data-prefix",pc="data-icon",Hm="fontawesome-i2svg",BT="async",WT=["HTML","HEAD","STYLE","SCRIPT"],qm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function ji(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Km=te({},Fm);Km[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Fm[wt]),Wm.kit),Wm["kit-duotone"]);const UT=ji(Km),gc=te({},CT);gc[wt]=te(te(te(te({},{duotone:"fad"}),gc[wt]),Um.kit),Um["kit-duotone"]);const Xm=ji(gc),yc=te({},uc);yc[wt]=te(te({},yc[wt]),OT.kit);const xc=ji(yc),vc=te({},DT);vc[wt]=te(te({},vc[wt]),AT.kit),ji(vc);const zT=gT,Zm="fa-layers-text",GT=yT,YT=te({},wT);ji(YT);const HT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bc=xT,qT=[...PT,...RT],Li=br.FontAwesomeConfig||{};function KT(e){var t=Ke.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function XT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ke&&typeof Ke.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const s=XT(KT(n));s!=null&&(Li[r]=s)});const Jm={styleDefault:"solid",familyDefault:wt,cssPrefix:Gm,replacementClass:Ym,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Li.familyPrefix&&(Li.cssPrefix=Li.familyPrefix);const Ds=te(te({},Jm),Li);Ds.autoReplaceSvg||(Ds.observeMutations=!1);const xe={};Object.keys(Jm).forEach(e=>{Object.defineProperty(xe,e,{enumerable:!0,set:function(t){Ds[e]=t,Ri.forEach(n=>n(xe))},get:function(){return Ds[e]}})}),Object.defineProperty(xe,"familyPrefix",{enumerable:!0,set:function(e){Ds.cssPrefix=e,Ri.forEach(t=>t(xe))},get:function(){return Ds.cssPrefix}}),br.FontAwesomeConfig=xe;const Ri=[];function ZT(e){return Ri.push(e),()=>{Ri.splice(Ri.indexOf(e),1)}}const wr=dc,Tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function JT(e){if(!e||!Un)return;const t=Ke.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ke.head.childNodes;let r=null;for(let s=n.length-1;s>-1;s--){const o=n[s],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ke.head.insertBefore(t,r),e}const QT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fi(){let e=12,t="";for(;e-- >0;)t+=QT[Math.random()*62|0];return t}function Ns(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function wc(e){return e.classList?Ns(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Qm(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eC(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Qm(e[n]),'" '),"").trim()}function ea(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Sc(e){return e.size!==Tn.size||e.x!==Tn.x||e.y!==Tn.y||e.rotate!==Tn.rotate||e.flipX||e.flipY}function tC(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const s={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:u,path:d}}function nC(e){let{transform:t,width:n=dc,height:r=dc,startCentered:s=!1}=e,o="";return s&&Rm?o+="translate(".concat(t.x/wr-n/2,"em, ").concat(t.y/wr-r/2,"em) "):s?o+="translate(calc(-50% + ".concat(t.x/wr,"em), calc(-50% + ").concat(t.y/wr,"em)) "):o+="translate(".concat(t.x/wr,"em, ").concat(t.y/wr,"em) "),o+="scale(".concat(t.size/wr*(t.flipX?-1:1),", ").concat(t.size/wr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var rC=`:root, :host {
26
+ */function hT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _m(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 te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(n),!0).forEach(function(r){hT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mT(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pT(e){var t=mT(e,"string");return typeof t=="symbol"?t:t+""}const Im=()=>{};let cc={},Dm={},Nm=null,km={mark:Im,measure:Im};try{typeof window<"u"&&(cc=window),typeof document<"u"&&(Dm=document),typeof MutationObserver<"u"&&(Nm=MutationObserver),typeof performance<"u"&&(km=performance)}catch{}const{userAgent:jm=""}=cc.navigator||{},br=cc,Ke=Dm,Lm=Nm,Zo=km;br.document;const Un=!!Ke.documentElement&&!!Ke.head&&typeof Ke.addEventListener=="function"&&typeof Ke.createElement=="function",Rm=~jm.indexOf("MSIE")||~jm.indexOf("Trident/");var gT=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,yT=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Fm={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},xT={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Vm=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],wt="classic",Jo="duotone",vT="sharp",bT="sharp-duotone",Bm=[wt,Jo,vT,bT],wT={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},ST={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},TT=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),CT={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},ET=["fak","fa-kit","fakd","fa-kit-duotone"],Wm={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},PT=["kit"],AT={kit:{"fa-kit":"fak"}},MT=["fak","fakd"],OT={kit:{fak:"fa-kit"}},Um={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Qo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},$T=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],_T=["fak","fa-kit","fakd","fa-kit-duotone"],IT={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},DT={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},NT={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},uc={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},kT=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],fc=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...$T,...kT],jT=["solid","regular","light","thin","duotone","brands"],zm=[1,2,3,4,5,6,7,8,9,10],LT=zm.concat([11,12,13,14,15,16,17,18,19,20]),RT=[...Object.keys(NT),...jT,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Qo.GROUP,Qo.SWAP_OPACITY,Qo.PRIMARY,Qo.SECONDARY].concat(zm.map(e=>"".concat(e,"x"))).concat(LT.map(e=>"w-".concat(e))),FT={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const zn="___FONT_AWESOME___",dc=16,Gm="fa",Ym="svg-inline--fa",Jr="data-fa-i2svg",hc="data-fa-pseudo-element",VT="data-fa-pseudo-element-pending",mc="data-prefix",pc="data-icon",Hm="fontawesome-i2svg",BT="async",WT=["HTML","HEAD","STYLE","SCRIPT"],qm=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function ji(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[wt]}})}const Km=te({},Fm);Km[wt]=te(te(te(te({},{"fa-duotone":"duotone"}),Fm[wt]),Wm.kit),Wm["kit-duotone"]);const UT=ji(Km),gc=te({},CT);gc[wt]=te(te(te(te({},{duotone:"fad"}),gc[wt]),Um.kit),Um["kit-duotone"]);const Xm=ji(gc),yc=te({},uc);yc[wt]=te(te({},yc[wt]),OT.kit);const xc=ji(yc),vc=te({},DT);vc[wt]=te(te({},vc[wt]),AT.kit),ji(vc);const zT=gT,Zm="fa-layers-text",GT=yT,YT=te({},wT);ji(YT);const HT=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],bc=xT,qT=[...PT,...RT],Li=br.FontAwesomeConfig||{};function KT(e){var t=Ke.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function XT(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Ke&&typeof Ke.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const s=XT(KT(n));s!=null&&(Li[r]=s)});const Jm={styleDefault:"solid",familyDefault:wt,cssPrefix:Gm,replacementClass:Ym,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Li.familyPrefix&&(Li.cssPrefix=Li.familyPrefix);const Ds=te(te({},Jm),Li);Ds.autoReplaceSvg||(Ds.observeMutations=!1);const xe={};Object.keys(Jm).forEach(e=>{Object.defineProperty(xe,e,{enumerable:!0,set:function(t){Ds[e]=t,Ri.forEach(n=>n(xe))},get:function(){return Ds[e]}})}),Object.defineProperty(xe,"familyPrefix",{enumerable:!0,set:function(e){Ds.cssPrefix=e,Ri.forEach(t=>t(xe))},get:function(){return Ds.cssPrefix}}),br.FontAwesomeConfig=xe;const Ri=[];function ZT(e){return Ri.push(e),()=>{Ri.splice(Ri.indexOf(e),1)}}const wr=dc,Tn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function JT(e){if(!e||!Un)return;const t=Ke.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Ke.head.childNodes;let r=null;for(let s=n.length-1;s>-1;s--){const o=n[s],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return Ke.head.insertBefore(t,r),e}const QT="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Fi(){let e=12,t="";for(;e-- >0;)t+=QT[Math.random()*62|0];return t}function Ns(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function wc(e){return e.classList?Ns(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function Qm(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eC(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(Qm(e[n]),'" '),"").trim()}function ea(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Sc(e){return e.size!==Tn.size||e.x!==Tn.x||e.y!==Tn.y||e.rotate!==Tn.rotate||e.flipX||e.flipY}function tC(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const s={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(o," ").concat(a," ").concat(c)},d={transform:"translate(".concat(r/2*-1," -256)")};return{outer:s,inner:u,path:d}}function nC(e){let{transform:t,width:n=dc,height:r=dc,startCentered:s=!1}=e,o="";return s&&Rm?o+="translate(".concat(t.x/wr-n/2,"em, ").concat(t.y/wr-r/2,"em) "):s?o+="translate(calc(-50% + ".concat(t.x/wr,"em), calc(-50% + ").concat(t.y/wr,"em)) "):o+="translate(".concat(t.x/wr,"em, ").concat(t.y/wr,"em) "),o+="scale(".concat(t.size/wr*(t.flipX?-1:1),", ").concat(t.size/wr*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var rC=`:root, :host {
27
27
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
28
28
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
29
29
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
@@ -576,8 +576,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
576
576
  .svg-inline--fa mask .fa-primary,
577
577
  .svg-inline--fa mask .fa-secondary {
578
578
  fill: black;
579
- }`;function 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 Gn=br||{};Gn[zn]||(Gn[zn]={}),Gn[zn].styles||(Gn[zn].styles={}),Gn[zn].hooks||(Gn[zn].hooks={}),Gn[zn].shims||(Gn[zn].shims=[]);var Cn=Gn[zn];const np=[],rp=function(){Ke.removeEventListener("DOMContentLoaded",rp),ta=1,np.map(e=>e())};let ta=!1;Un&&(ta=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),ta||Ke.addEventListener("DOMContentLoaded",rp));function iC(e){Un&&(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]=te(te({},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 Jr(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=te(te({},pC(a)),{},{prefix:na(u,{family:d})});return te(te(te({},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=Jr(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=Jr(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]=te(te({},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 Qr(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=Jr(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,Qr("noAuto")},config:xe,dom:{i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Un?(Qr("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}),Qr("watch",e)})}},parse:{icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Jr(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:Jr(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:Jr(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Sr();return{prefix:t,iconName:Jr(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)&&Un&&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(!Un)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(te(te({},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:te(te({},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(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":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[Zr]=""),c&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||Fi())},children:[c]}),delete T.attributes.title);const A=te(te({},T),{},{prefix:r,iconName:s,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},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=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Zr]="");const d=te({},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=te(te(te({},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(te(te({},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(Zr):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(Zr)===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(Zr,""),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)})}),Un&&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 te({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(!Un)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(Zr,"])")].concat(o.map(h=>".".concat(h,":not([").concat(Zr,"])"))).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,te(te({},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(te({type:"icon"},e),()=>(Qr("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:te(te({},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"},()=>{Qr("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},()=>(Qr("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},()=>(Qr("beforeDOMElementCreation",{content:e,params:t}),xp({content:e,transform:te(te({},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=te(te(te(te({},{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(P=>{const D=_c(te(te({},C),{},{icons:{main:P,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=D.map(F=>Vi(F)).join(`
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 Gn=br||{};Gn[zn]||(Gn[zn]={}),Gn[zn].styles||(Gn[zn].styles={}),Gn[zn].hooks||(Gn[zn].hooks={}),Gn[zn].shims||(Gn[zn].shims=[]);var Cn=Gn[zn];const np=[],rp=function(){Ke.removeEventListener("DOMContentLoaded",rp),ta=1,np.map(e=>e())};let ta=!1;Un&&(ta=(Ke.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ke.readyState),ta||Ke.addEventListener("DOMContentLoaded",rp));function iC(e){Un&&(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]=te(te({},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=te(te({},pC(a)),{},{prefix:na(u,{family:d})});return te(te(te({},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]=te(te({},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 Un?(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)&&Un&&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(!Un)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(te(te({},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:te(te({},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(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let T={children:[],attributes:te(te({},h.attributes),{},{"data-prefix":r,"data-icon":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=te(te({},T),{},{prefix:r,iconName:s,main:t,mask:n,maskId:u,transform:o,symbol:a,styles:te(te({},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=te(te(te({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});c&&(u[Jr]="");const d=te({},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=te(te(te({},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(te(te({},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)})}),Un&&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 te({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(!Un)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,te(te({},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(te({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:te(te({},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:te(te({},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=te(te(te(te({},{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(P=>{const D=_c(te(te({},C),{},{icons:{main:P,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=D.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(Un)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:te({},p.outer),children:[{tag:"g",attributes:te({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:te(te({},n.icon.attributes),p.path)}]}]}}}};const 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:te(te({},Vc),{},{fill:"white"})},S=d.children?{children:d.children.map(jp)}:{},b={tag:"g",attributes:te({},p.inner),children:[jp(te({tag:d.tag,attributes:te(te({},d.attributes),p.path)},S))]},T={tag:"g",attributes:te({},p.outer),children:[b]},v="mask-".concat(a||Fi()),A="clip-".concat(a||Fi()),C={tag:"mask",attributes:te(te({},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:te({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:te(te({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=te(te({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:te(te({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:te(te({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:te(te({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:te(te({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:te(te({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:te(te({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:te(te({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},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
  *
@@ -618,20 +618,20 @@ 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:he.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]),he.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 P=0;P<v.length;P++){const D=da(v[P]);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 P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=da(R);m.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(a0(P)),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(P=>{const D=da(P),R=a&&!u?!1:h===v||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(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:P},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,Yn=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,P=!1,D=!1)=>(n||S(),C.schedule(I,P,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"],es=new Set(Ws);function D0(e,{layout:t,layoutId:n}){return es.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,Hn=(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=>Hn(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(es.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(es.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=>Hn(0,255,e),Nu={...Us,transform:e=>Math.round(aA(e))},ts={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:ts.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=>ts.test(e)||ku.test(e)||zs.test(e),parse:e=>ts.test(e)?ts.parse(e):zs.test(e)?zs.parse(e):ku.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ts.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 ns=e=>e*180/Math.PI,Lu=e=>{const t=ns(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=>ns(Math.atan(e[1])),skewY:e=>ns(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(ns(Math.atan2(e[6],e[5]))),rotateY:e=>Ru(ns(Math.atan2(-e[2],e[0]))),rotateZ:hg,rotate:hg,skewX:e=>ns(Math.atan(e[4])),skewY:e=>ns(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 rs=new Set;let Vu=!1,Bu=!1;function xg(){if(Bu){const e=Array.from(rs).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,rs.forEach(e=>e.complete()),rs.clear()}function vg(){rs.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?(rs.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),rs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,rs.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,ts,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),ts.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=Hn(et.minDamping,et.maxDamping,a),e=Hn(et.minDuration,et.maxDuration,Yn(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*Hn(.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:-Yn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Yn(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 P=Hu(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&m||null,next:P=>{const D=C(P);if(x)c.done=P>=m;else{let R=0;b<1&&(R=P===0?Pn(S):Ig(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(u0(I),au),D=d0(R=>I.next(P*R).value,P,30);return P+"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=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 W=A(F),Q=C(F);p.done=Math.abs(W)<=d,p.value=p.done?v:Q};let P,D;const R=F=>{x(p.value)&&(P=F,D=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 W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&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(Hn(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 W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&(I=a)),C=Hn(0,1,Q)*m}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=Ta(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Yn(t.calculatedDuration):0}get time(){return Yn(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=Yn(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 Yn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Yn(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:es.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),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||va(C)||typeof C=="boolean")continue;const R=DM(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,p.has(Y)&&(W=!0,p.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Au(z)&&Au(K)?$=!Ug(z,K):$=z!==K,$?z!=null?de(Y):p.add(Y):z!==void 0&&p.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&m.push(...Q.map(Y=>({animation:Y,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 ss(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gg(){return{animate:ss(!0),whileInView:ss(),whileHover:ss(),whileTap:ss(),whileDrag:ss(),whileFocus:ss(),exit:ss()}}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 is(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&&is(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=Yn(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)),Hn(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=Hn(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||is(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}),is(h.latestValues)&&qs(u,h.latestValues)}return is(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||!is(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 is(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 P=I/1e3;Wy(m.x,a.x,P),Wy(m.y,a.y,P),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,P),C&&T4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,y4(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(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&&!is(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 P=0;P<I;P++)d[v[P]]=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=es.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(es.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(es.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:he.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]),he.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 P=0;P<v.length;P++){const D=da(v[P]);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 P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=da(R);m.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(a0(P)),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(P=>{const D=da(P),R=a&&!u?!1:h===v||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(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:P},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,Yn=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,P=!1,D=!1)=>(n||S(),C.schedule(I,P,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,Hn=(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=>Hn(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=>Hn(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=Hn(et.minDamping,et.maxDamping,a),e=Hn(et.minDuration,et.maxDuration,Yn(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*Hn(.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:-Yn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Yn(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 P=Hu(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&m||null,next:P=>{const D=C(P);if(x)c.done=P>=m;else{let R=0;b<1&&(R=P===0?Pn(S):Ig(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(u0(I),au),D=d0(R=>I.next(P*R).value,P,30);return P+"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=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 W=A(F),Q=C(F);p.done=Math.abs(W)<=d,p.value=p.done?v:Q};let P,D;const R=F=>{x(p.value)&&(P=F,D=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 W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&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(Hn(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 W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&(I=a)),C=Hn(0,1,Q)*m}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=Ta(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Yn(t.calculatedDuration):0}get time(){return Yn(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=Yn(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 Yn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Yn(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),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||va(C)||typeof C=="boolean")continue;const R=DM(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,p.has(Y)&&(W=!0,p.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Au(z)&&Au(K)?$=!Ug(z,K):$=z!==K,$?z!=null?de(Y):p.add(Y):z!==void 0&&p.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&m.push(...Q.map(Y=>({animation:Y,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=Yn(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)),Hn(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=Hn(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 P=I/1e3;Wy(m.x,a.x,P),Wy(m.y,a.y,P),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,P),C&&T4(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=at()),nn(C,this.relativeTarget)),b&&(this.animationValues=h,y4(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(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 P=0;P<I;P++)d[v[P]]=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 We(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 We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return We(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 We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=ix(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return 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 We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):We(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(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 We(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 We(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"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):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 os(r);case"XXXXX":case"XXX":default:return os(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return hx(r);case"xxxx":case"xx":return os(r);case"xxxxx":case"xxx":default:return os(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"+os(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"+os(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return We(r,t.length)},T:function(e,t,n){return We(+e,t.length)}};function 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+We(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):os(e,t)}function os(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=We(Math.trunc(r/60),2),o=We(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 We(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 We(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):We(n+1,2)},d(e,t){return We(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return We(e.getHours()%12||12,t.length)},H(e,t){return We(e.getHours(),t.length)},m(e,t){return We(e.getMinutes(),t.length)},s(e,t){return We(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return We(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 We(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):We(o,t.length)},R:function(e,t){const n=ix(e);return We(n,t.length)},u:function(e,t){const n=e.getFullYear();return We(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return We(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return We(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return 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 We(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=f$(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):We(s,t.length)},I:function(e,t,n){const r=c$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):We(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Or.d(e,t)},D:function(e,t,n){const r=l$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):We(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return We(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(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 We(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 We(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"}):We(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):We(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):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 We(r,t.length)},T:function(e,t,n){return We(+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+We(o,2)}function hx(e,t){return e%60===0?(e>0?"-":"+")+We(Math.abs(e)/60,2):as(e,t)}function as(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=We(Math.trunc(r/60),2),o=We(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:{}};/**
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,P=32,D=64,R=128,F=256,W=512,Q=30,ee="...",ae=800,ge=16,de=1,le=2,ue=3,Y=1/0,z=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,X=k-1,U=k>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",W],["partial",P],["partialRight",D],["rearg",F]],B="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",se="[object Boolean]",fe="[object Date]",Ee="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[object GeneratorFunction]",De="[object Map]",ft="[object Number]",ws="[object Null]",dt="[object Object]",yl="[object Promise]",xl="[object Proxy]",Ss="[object RegExp]",qt="[object Set]",yn="[object String]",Ts="[object Symbol]",vl="[object Undefined]",Br="[object WeakMap]",bl="[object WeakSet]",ve="[object ArrayBuffer]",Ze="[object DataView]",Pt="[object Float32Array]",xn="[object Float64Array]",cr="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Ej=/\b__p \+= '';/g,Pj=/\b(__p \+=) '' \+/g,Aj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Mj=RegExp(D2.source),Oj=RegExp(N2.source),$j=/<%-([\s\S]+?)%>/g,_j=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Ij=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dj=/^\w*$/,Nj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,kj=RegExp(hh.source),mh=/^\s+/,jj=/\s/,Lj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rj=/\{\n\/\* \[wrapped with (.+)\] \*/,Fj=/,? & /,Vj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bj=/[()=,{}\[\]\/\s]/,Wj=/\\(\\)?/g,Uj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,zj=/^[-+]0x[0-9a-f]+$/i,Gj=/^0b[01]+$/i,Yj=/^\[object .+?Constructor\]$/,Hj=/^0o[0-7]+$/i,qj=/^(?:0|[1-9]\d*)$/,Kj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Xj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Zj="\\u0300-\\u036f",Jj="\\ufe20-\\ufe2f",Qj="\\u20d0-\\u20ff",L2=Zj+Jj+Qj,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",eL="\\xac\\xb1\\xd7\\xf7",tL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nL="\\u2000-\\u206f",rL=" \\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=eL+tL+nL+rL,ph="['’]",sL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",iL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",oL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",aL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=oL+"?",Q2="["+B2+"]?",lL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",cL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+lL,fL="(?:"+[iL,yh,xh].join("|")+")"+ew,dL="(?:"+[H2+Tl+"?",Tl,yh,xh,sL].join("|")+")",hL=RegExp(ph,"g"),mL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+dL+ew,"g"),pL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",aL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,uL,cL,z2,fL].join("|"),"g"),gL=RegExp("["+q2+Sl+L2+B2+"]"),yL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xL=["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"],vL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[cr]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[J]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[fe]=Xe[Ve]=Xe[ie]=Xe[De]=Xe[ft]=Xe[dt]=Xe[Ss]=Xe[qt]=Xe[yn]=Xe[Br]=!1;var qe={};qe[B]=qe[J]=qe[ve]=qe[Ze]=qe[se]=qe[fe]=qe[Pt]=qe[xn]=qe[cr]=qe[ah]=qe[lh]=qe[De]=qe[ft]=qe[dt]=qe[Ss]=qe[qt]=qe[yn]=qe[Ts]=qe[ch]=qe[uh]=qe[fh]=qe[dh]=!0,qe[Ve]=qe[ie]=qe[Br]=!1;var bL={À:"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"},wL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SL={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},TL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CL=parseFloat,EL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,PL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||PL||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 AL(j,G,V,me){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];G(me,ht,V(ht),j)}return me}function ln(j,G){for(var V=-1,me=j==null?0:j.length;++V<me&&G(j[V],V,j)!==!1;);return j}function ML(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,me=j==null?0:j.length;++V<me;)if(!G(j[V],V,j))return!1;return!0}function Wr(j,G){for(var V=-1,me=j==null?0:j.length,Ae=0,Le=[];++V<me;){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 me=-1,Ae=j==null?0:j.length;++me<Ae;)if(V(G,j[me]))return!0;return!1}function Je(j,G){for(var V=-1,me=j==null?0:j.length,Ae=Array(me);++V<me;)Ae[V]=G(j[V],V,j);return Ae}function Ur(j,G){for(var V=-1,me=G.length,Ae=j.length;++V<me;)j[Ae+V]=G[V];return j}function Th(j,G,V,me){var Ae=-1,Le=j==null?0:j.length;for(me&&Le&&(V=j[++Ae]);++Ae<Le;)V=G(V,j[Ae],Ae,j);return V}function OL(j,G,V,me){var Ae=j==null?0:j.length;for(me&&Ae&&(V=j[--Ae]);Ae--;)V=G(V,j[Ae],Ae,j);return V}function Ch(j,G){for(var V=-1,me=j==null?0:j.length;++V<me;)if(G(j[V],V,j))return!0;return!1}var $L=Eh("length");function _L(j){return j.split("")}function IL(j){return j.match(Vj)||[]}function uw(j,G,V){var me;return V(j,function(Ae,Le,ht){if(G(Ae,Le,ht))return me=Le,!1}),me}function El(j,G,V,me){for(var Ae=j.length,Le=V+(me?1:-1);me?Le--:++Le<Ae;)if(G(j[Le],Le,j))return Le;return-1}function wi(j,G,V){return G===G?zL(j,G,V):El(j,fw,V)}function DL(j,G,V,me){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(me(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,me,Ae){return Ae(j,function(Le,ht,Ge){V=me?(me=!1,Le):G(V,Le,ht,Ge)}),V}function NL(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,me=-1,Ae=j.length;++me<Ae;){var Le=G(j[me]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,G){for(var V=-1,me=Array(j);++V<j;)me[V]=G(V);return me}function kL(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,me=j.length;++V<me&&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 jL(j,G){for(var V=j.length,me=0;V--;)j[V]===G&&++me;return me}var LL=Ph(bL),RL=Ph(wL);function FL(j){return"\\"+TL[j]}function VL(j,G){return j==null?n:j[G]}function Si(j){return gL.test(j)}function BL(j){return yL.test(j)}function WL(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(me,Ae){V[++G]=[Ae,me]}),V}function yw(j,G){return function(V){return j(G(V))}}function zr(j,G){for(var V=-1,me=j.length,Ae=0,Le=[];++V<me;){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(me){V[++G]=me}),V}function UL(j){var G=-1,V=Array(j.size);return j.forEach(function(me){V[++G]=[me,me]}),V}function zL(j,G,V){for(var me=V-1,Ae=j.length;++me<Ae;)if(j[me]===G)return me;return-1}function GL(j,G,V){for(var me=V+1;me--;)if(j[me]===G)return me;return me}function Ti(j){return Si(j)?HL(j):$L(j)}function vn(j){return Si(j)?qL(j):_L(j)}function xw(j){for(var G=j.length;G--&&jj.test(j.charAt(G)););return G}var YL=Ph(SL);function HL(j){for(var G=vh.lastIndex=0;vh.test(j);)++G;return G}function qL(j){return j.match(vh)||[]}function KL(j){return j.match(pL)||[]}var XL=function j(G){G=G==null?vt:Ci.defaults(vt.Object(),G,Ci.pick(vt,xL));var V=G.Array,me=G.Date,Ae=G.Error,Le=G.Function,ht=G.Math,Ge=G.Object,_h=G.RegExp,ZL=G.String,cn=G.TypeError,Al=V.prototype,JL=Le.prototype,Ei=Ge.prototype,Ml=G["__core-js_shared__"],Ol=JL.toString,ze=Ei.hasOwnProperty,QL=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,eR=Ol.call(Ge),tR=vt._,nR=_h("^"+Ol.call(ze).replace(hh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_l=nw?G.Buffer:n,Gr=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=Gr?Gr.isConcatSpreadable:n,ko=Gr?Gr.iterator:n,Es=Gr?Gr.toStringTag:n,kl=function(){try{var i=$s(Ge,"defineProperty");return i({},"",{}),i}catch{}}(),rR=G.clearTimeout!==vt.clearTimeout&&G.clearTimeout,sR=me&&me.now!==vt.Date.now&&me.now,iR=G.setTimeout!==vt.setTimeout&&G.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,oR=_l?_l.isBuffer:n,Cw=G.isFinite,aR=Al.join,lR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,cR=me.now,uR=G.parseInt,Ew=ht.random,fR=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={},dR=_s(Dh),hR=_s(jo),mR=_s(Nh),pR=_s(Pi),gR=_s(Lo),Fl=Gr?Gr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function E(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}E.templateSettings={escape:$j,evaluate:_j,interpolate:k2,variable:"",imports:{_:E}},E.prototype=Vl.prototype,E.prototype.constructor=E,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 yR(){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 xR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function vR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=_F(0,w,this.__views__),_=M.start,N=M.end,L=N-_,H=y?N:_-1,q=this.__iteratees__,Z=q.length,ce=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&ce<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==de)continue e;break e}}Te[ce++]=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 bR(){this.__data__=Ro?Ro(null):{},this.size=0}function wR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function SR(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 TR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function CR(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=bR,Ps.prototype.delete=wR,Ps.prototype.get=SR,Ps.prototype.has=TR,Ps.prototype.set=CR;function ur(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 ER(){this.__data__=[],this.size=0}function PR(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 AR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function MR(i){return Bl(this.__data__,i)>-1}function OR(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}ur.prototype.clear=ER,ur.prototype.delete=PR,ur.prototype.get=AR,ur.prototype.has=MR,ur.prototype.set=OR;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 $R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||ur),string:new Ps}}function _R(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function IR(i){return Ql(this,i).get(i)}function DR(i){return Ql(this,i).has(i)}function NR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}fr.prototype.clear=$R,fr.prototype.delete=_R,fr.prototype.get=IR,fr.prototype.has=DR,fr.prototype.set=NR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new fr;++l<f;)this.add(i[l])}function kR(i){return this.__data__.set(i,u),this}function jR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=kR,As.prototype.has=jR;function bn(i){var l=this.__data__=new ur(i);this.size=l.size}function LR(){this.__data__=new ur,this.size=0}function RR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function FR(i){return this.__data__.get(i)}function VR(i){return this.__data__.has(i)}function BR(i,l){var f=this.__data__;if(f instanceof ur){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new fr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=LR,bn.prototype.delete=RR,bn.prototype.get=FR,bn.prototype.has=VR,bn.prototype.set=BR;function Aw(i,l){var f=Me(i),y=!f&&Is(i),w=!f&&!y&&Xr(i),M=!f&&!y&&!w&&Ii(i),_=f||y||w||M,N=_?Mh(i.length,ZL):[],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")||pr(H,L)))&&N.push(H);return N}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function WR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function UR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&dr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&dr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function zR(i,l,f,y){return Yr(i,function(w,M,_){l(y,w,f(w),_)}),y}function Ow(i,l){return i&&Bn(l,gt(l),i)}function GR(i,l){return i&&Bn(l,Vt(l),i)}function dr(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(_=DF(i),!N)return Rt(i,_)}else{var Z=Mt(i),ce=Z==ie||Z==pe;if(Xr(i))return Qw(i,N);if(Z==dt||Z==B||ce&&!w){if(_=L||ce?{}:xS(i),!N)return L?SF(i,GR(_,i)):wF(i,Ow(_,i))}else{if(!qe[Z])return w?i:{};_=NF(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 YR(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 ce=H;ce--;)if(l[ce]===Z)continue e;L.push(q)}else M(l,Z,y)||L.push(q)}return L}var Yr=sS(Vn),Iw=sS(Rh,!0);function HR(i,l){var f=!0;return Yr(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 qR(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 Yr(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=jF),w||(w=[]);++M<_;){var N=i[M];l>0&&f(N)?l>1?bt(N,l-1,f,y,w):Ur(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 Wr(l,function(f){return gr(i[f])})}function Os(i,l){l=qr(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:Ur(y,f(i))}function _t(i){return i==null?i===n?vl:ws:Es&&Es in Ge(i)?$F(i):UF(i)}function Fh(i,l){return i>l}function KR(i,l){return i!=null&&ze.call(i,l)}function XR(i,l){return i!=null&&l in Ge(i)}function ZR(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,ce=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,!(ce?No(ce,Te):y(H,Te,f))){for(_=M;--_;){var $e=N[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function JR(i,l,f,y){return Vn(i,function(w,M,_){l(y,f(w),M,_)}),y}function Wo(i,l,f){l=qr(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 QR(i){return ot(i)&&_t(i)==ve}function eF(i){return ot(i)&&_t(i)==fe}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:tF(i,l,f,y,Uo,w)}function tF(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,ce=L==H;if(ce&&Xr(i)){if(!Xr(l))return!1;_=!0,q=!1}if(ce&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):MF(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 ce?(M||(M=new bn),OF(i,l,f,y,w,M)):!1}function nF(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 ce=y(H,q,L,i,l,Z);if(!(ce===n?Uo(q,H,S|b,y,Z):ce))return!1}}return!0}function Lw(i){if(!rt(i)||RF(i))return!1;var l=gr(i)?nR:Yj;return l.test(_s(i))}function rF(i){return ot(i)&&_t(i)==Ss}function sF(i){return ot(i)&&Mt(i)==qt}function iF(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 lR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function oF(i){if(!rt(i))return WF(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 Yr(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))aF(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 aF(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 ce=Me(L),ye=!ce&&Xr(L),Te=!ce&&!ye&&Ii(L);q=L,ce||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)||gr(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,pr(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 NL(w,function(M,_){return bF(M,_,f)})}function lF(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,qr(_,i),N)}return M}function cF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?DL: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;pr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function uF(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>z)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 fF(i){return Mw(Di(i))}function dF(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=qr(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:pr(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,hF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function mF(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 pF(i,l){var f;return Yr(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<=U){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]),ce=Z!==n,ye=Z===null,Te=Z===Z,$e=Jt(Z);if(_)var Ce=y||Te;else H?Ce=Te&&(y||ce):N?Ce=Te&&ce&&(y||!ye):L?Ce=Te&&ce&&!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 Hr(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:PF(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 ce=L.length;ce--;)if(L[ce]===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=qr(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,Ur([y],w.args))},f)}function Kh(i,l,f){var y=i.length;if(y<2)return y?Hr(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 Hr(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 qr(i,l){return Me(i)?i:om(i,l)?[i]:PS(Be(i))}var gF=_e;function Kr(i,l,f){var y=i.length;return f=f===n?y:f,!l&&f>=y?i:dn(i,l,f)}var Jw=rR||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 yF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function xF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function vF(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 bF(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),ce=!y;++w<q;)Z[w]=i[w];for(var ye=w;++L<H;)Z[ye+L]=l[L];for(;++_<N;)(ce||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?dr(f,N,L):Vo(f,N,L)}return f}function wF(i,l){return Bn(i,im(i),l)}function SF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?AL:zR,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 TF(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=Be(l);var f=Si(l)?vn(l):n,y=f?f[0]:l.charAt(0),w=f?Kr(f,1).join(""):l.slice(1);return y[i]()+w}}function $i(i){return function(l){return Th(sT(rT(l).replace(hL,"")),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 CF(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?[]:zr(_,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 mr(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]==(R|C|P|F)&&!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,ce=f?l[Z].apply(this,H):q;++Z<f;)ce=l[Z].call(this,ce);return ce}})}function ql(i,l,f,y,w,M,_,N,L,H){var q=l&R,Z=l&T,ce=l&v,ye=l&(C|I),Te=l&W,$e=ce?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=jL(je,Dt);if(y&&(je=nS(je,y,w,ye)),M&&(je=rS(je,M,_,ye)),Ne-=en,ye&&Ne<H){var ut=zr(je,Dt);return fS(i,l,ql,Ce.placeholder,f,je,ut,N,L,H-Ne)}var Sn=Z?f:this,xr=ce?Sn[i]:i;return Ne=je.length,N?je=zF(je,N):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(xr=$e||Go(xr)),xr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return JR(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 mr(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)?Kr(vn(y),0,i).join(""):y.slice(0,i)}function EF(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),ce=this&&this!==vt&&this instanceof _?M:i;++H<q;)Z[H]=y[H];for(;L--;)Z[H++]=arguments[++N];return Kt(ce,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=yr(l),f===n?(f=l,l=0):f=yr(f),y=y===n?l<f?1:-1:yr(y),uF(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,ce=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?P:D,l&=~(q?D:P),l&A||(l&=-4);var $e=[i,l,w,ye,Z,Te,ce,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=(Be(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var PF=Pi&&1/Pl(new Pi([,-0]))[1]==Y?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?UL(l):kL(l,i(l))}}function hr(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 ce=L?n:rm(i),ye=[i,l,f,y,w,q,Z,M,_,N];if(ce&&BF(ye,ce),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=TF(i,l,f);else l==C||l==I?Te=CF(i,l,N):(l==P||l==(T|P))&&!w.length?Te=EF(i,l,f,y):Te=ql.apply(n,ye);var $e=ce?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 AF(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,ce=!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;ce=!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)})){ce=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){ce=!1;break}}return M.delete(i),M.delete(l),ce}function MF(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 fe:case ft:return wn(+i,+l);case Ve:return i.name==l.name&&i.message==l.message;case Ss: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 OF(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 ce=N[Z];if(!(_?ce in l:ze.call(l,ce)))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;){ce=N[Z];var Ne=i[ce],je=l[ce];if(y)var Qt=_?y(je,Ne,ce,l,i,M):y(Ne,je,ce,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=ce=="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 mr(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(E,"placeholder")?E:i;return l.placeholder}function be(){var i=E.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 LF(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=VL(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),Wr(Ih(i),function(l){return Sw.call(i,l)}))}:Tm,gS=Ih?function(i){for(var l=[];i;)Ur(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)!=Br)&&(Mt=function(i){var l=_t(i),f=l==dt?i.constructor:n,y=f?_s(f):"";if(y)switch(y){case dR:return Ze;case hR:return De;case mR:return yl;case pR:return qt;case gR:return Br}return l});function _F(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 IF(i){var l=i.match(Rj);return l?l[1].split(Fj):[]}function yS(i,l,f){l=qr(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)&&pr(_,w)&&(Me(i)||Is(i)))}function DF(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 NF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case fe:return new y(+i);case Ze:return yF(i,f);case Pt:case xn:case cr: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 Ss:return xF(i);case qt:return new y;case Ts:return vF(i)}}function kF(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(Lj,`{
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,P=32,D=64,R=128,F=256,W=512,Q=30,ee="...",ae=800,ge=16,de=1,le=2,ue=3,Y=1/0,z=9007199254740991,K=17976931348623157e292,$=NaN,k=4294967295,X=k-1,U=k>>>1,re=[["ary",R],["bind",T],["bindKey",v],["curry",C],["curryRight",I],["flip",W],["partial",P],["partialRight",D],["rearg",F]],B="[object Arguments]",J="[object Array]",oe="[object AsyncFunction]",se="[object Boolean]",fe="[object Date]",Ee="[object DOMException]",Ve="[object Error]",ie="[object Function]",pe="[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]",cr="[object Int8Array]",ah="[object Int16Array]",lh="[object Int32Array]",ch="[object Uint8Array]",uh="[object Uint8ClampedArray]",fh="[object Uint16Array]",dh="[object Uint32Array]",Ej=/\b__p \+= '';/g,Pj=/\b(__p \+=) '' \+/g,Aj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D2=/&(?:amp|lt|gt|quot|#39);/g,N2=/[&<>"']/g,Mj=RegExp(D2.source),Oj=RegExp(N2.source),$j=/<%-([\s\S]+?)%>/g,_j=/<%([\s\S]+?)%>/g,k2=/<%=([\s\S]+?)%>/g,Ij=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dj=/^\w*$/,Nj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hh=/[\\^$.*+?()[\]{}|]/g,kj=RegExp(hh.source),mh=/^\s+/,jj=/\s/,Lj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rj=/\{\n\/\* \[wrapped with (.+)\] \*/,Fj=/,? & /,Vj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bj=/[()=,{}\[\]\/\s]/,Wj=/\\(\\)?/g,Uj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,j2=/\w*$/,zj=/^[-+]0x[0-9a-f]+$/i,Gj=/^0b[01]+$/i,Yj=/^\[object .+?Constructor\]$/,Hj=/^0o[0-7]+$/i,qj=/^(?:0|[1-9]\d*)$/,Kj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wl=/($^)/,Xj=/['\n\r\u2028\u2029\\]/g,Sl="\\ud800-\\udfff",Zj="\\u0300-\\u036f",Jj="\\ufe20-\\ufe2f",Qj="\\u20d0-\\u20ff",L2=Zj+Jj+Qj,R2="\\u2700-\\u27bf",F2="a-z\\xdf-\\xf6\\xf8-\\xff",eL="\\xac\\xb1\\xd7\\xf7",tL="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nL="\\u2000-\\u206f",rL=" \\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=eL+tL+nL+rL,ph="['’]",sL="["+Sl+"]",U2="["+W2+"]",Tl="["+L2+"]",z2="\\d+",iL="["+R2+"]",G2="["+F2+"]",Y2="[^"+Sl+W2+z2+R2+F2+V2+"]",gh="\\ud83c[\\udffb-\\udfff]",oL="(?:"+Tl+"|"+gh+")",H2="[^"+Sl+"]",yh="(?:\\ud83c[\\udde6-\\uddff]){2}",xh="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+V2+"]",q2="\\u200d",K2="(?:"+G2+"|"+Y2+")",aL="(?:"+bi+"|"+Y2+")",X2="(?:"+ph+"(?:d|ll|m|re|s|t|ve))?",Z2="(?:"+ph+"(?:D|LL|M|RE|S|T|VE))?",J2=oL+"?",Q2="["+B2+"]?",lL="(?:"+q2+"(?:"+[H2,yh,xh].join("|")+")"+Q2+J2+")*",cL="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uL="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ew=Q2+J2+lL,fL="(?:"+[iL,yh,xh].join("|")+")"+ew,dL="(?:"+[H2+Tl+"?",Tl,yh,xh,sL].join("|")+")",hL=RegExp(ph,"g"),mL=RegExp(Tl,"g"),vh=RegExp(gh+"(?="+gh+")|"+dL+ew,"g"),pL=RegExp([bi+"?"+G2+"+"+X2+"(?="+[U2,bi,"$"].join("|")+")",aL+"+"+Z2+"(?="+[U2,bi+K2,"$"].join("|")+")",bi+"?"+K2+"+"+X2,bi+"+"+Z2,uL,cL,z2,fL].join("|"),"g"),gL=RegExp("["+q2+Sl+L2+B2+"]"),yL=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xL=["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"],vL=-1,Xe={};Xe[Pt]=Xe[xn]=Xe[cr]=Xe[ah]=Xe[lh]=Xe[ch]=Xe[uh]=Xe[fh]=Xe[dh]=!0,Xe[B]=Xe[J]=Xe[ve]=Xe[se]=Xe[Ze]=Xe[fe]=Xe[Ve]=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[fe]=qe[Pt]=qe[xn]=qe[cr]=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[Ve]=qe[ie]=qe[Wr]=!1;var bL={À:"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"},wL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},SL={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},TL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},CL=parseFloat,EL=parseInt,tw=typeof Ko=="object"&&Ko&&Ko.Object===Object&&Ko,PL=typeof self=="object"&&self&&self.Object===Object&&self,vt=tw||PL||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 AL(j,G,V,me){for(var Ae=-1,Le=j==null?0:j.length;++Ae<Le;){var ht=j[Ae];G(me,ht,V(ht),j)}return me}function ln(j,G){for(var V=-1,me=j==null?0:j.length;++V<me&&G(j[V],V,j)!==!1;);return j}function ML(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,me=j==null?0:j.length;++V<me;)if(!G(j[V],V,j))return!1;return!0}function Ur(j,G){for(var V=-1,me=j==null?0:j.length,Ae=0,Le=[];++V<me;){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 me=-1,Ae=j==null?0:j.length;++me<Ae;)if(V(G,j[me]))return!0;return!1}function Je(j,G){for(var V=-1,me=j==null?0:j.length,Ae=Array(me);++V<me;)Ae[V]=G(j[V],V,j);return Ae}function zr(j,G){for(var V=-1,me=G.length,Ae=j.length;++V<me;)j[Ae+V]=G[V];return j}function Th(j,G,V,me){var Ae=-1,Le=j==null?0:j.length;for(me&&Le&&(V=j[++Ae]);++Ae<Le;)V=G(V,j[Ae],Ae,j);return V}function OL(j,G,V,me){var Ae=j==null?0:j.length;for(me&&Ae&&(V=j[--Ae]);Ae--;)V=G(V,j[Ae],Ae,j);return V}function Ch(j,G){for(var V=-1,me=j==null?0:j.length;++V<me;)if(G(j[V],V,j))return!0;return!1}var $L=Eh("length");function _L(j){return j.split("")}function IL(j){return j.match(Vj)||[]}function uw(j,G,V){var me;return V(j,function(Ae,Le,ht){if(G(Ae,Le,ht))return me=Le,!1}),me}function El(j,G,V,me){for(var Ae=j.length,Le=V+(me?1:-1);me?Le--:++Le<Ae;)if(G(j[Le],Le,j))return Le;return-1}function wi(j,G,V){return G===G?zL(j,G,V):El(j,fw,V)}function DL(j,G,V,me){for(var Ae=V-1,Le=j.length;++Ae<Le;)if(me(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,me,Ae){return Ae(j,function(Le,ht,Ge){V=me?(me=!1,Le):G(V,Le,ht,Ge)}),V}function NL(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,me=-1,Ae=j.length;++me<Ae;){var Le=G(j[me]);Le!==n&&(V=V===n?Le:V+Le)}return V}function Mh(j,G){for(var V=-1,me=Array(j);++V<j;)me[V]=G(V);return me}function kL(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,me=j.length;++V<me&&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 jL(j,G){for(var V=j.length,me=0;V--;)j[V]===G&&++me;return me}var LL=Ph(bL),RL=Ph(wL);function FL(j){return"\\"+TL[j]}function VL(j,G){return j==null?n:j[G]}function Si(j){return gL.test(j)}function BL(j){return yL.test(j)}function WL(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(me,Ae){V[++G]=[Ae,me]}),V}function yw(j,G){return function(V){return j(G(V))}}function Gr(j,G){for(var V=-1,me=j.length,Ae=0,Le=[];++V<me;){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(me){V[++G]=me}),V}function UL(j){var G=-1,V=Array(j.size);return j.forEach(function(me){V[++G]=[me,me]}),V}function zL(j,G,V){for(var me=V-1,Ae=j.length;++me<Ae;)if(j[me]===G)return me;return-1}function GL(j,G,V){for(var me=V+1;me--;)if(j[me]===G)return me;return me}function Ti(j){return Si(j)?HL(j):$L(j)}function vn(j){return Si(j)?qL(j):_L(j)}function xw(j){for(var G=j.length;G--&&jj.test(j.charAt(G)););return G}var YL=Ph(SL);function HL(j){for(var G=vh.lastIndex=0;vh.test(j);)++G;return G}function qL(j){return j.match(vh)||[]}function KL(j){return j.match(pL)||[]}var XL=function j(G){G=G==null?vt:Ci.defaults(vt.Object(),G,Ci.pick(vt,xL));var V=G.Array,me=G.Date,Ae=G.Error,Le=G.Function,ht=G.Math,Ge=G.Object,_h=G.RegExp,ZL=G.String,cn=G.TypeError,Al=V.prototype,JL=Le.prototype,Ei=Ge.prototype,Ml=G["__core-js_shared__"],Ol=JL.toString,ze=Ei.hasOwnProperty,QL=0,vw=function(){var i=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),$l=Ei.toString,eR=Ol.call(Ge),tR=vt._,nR=_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{}}(),rR=G.clearTimeout!==vt.clearTimeout&&G.clearTimeout,sR=me&&me.now!==vt.Date.now&&me.now,iR=G.setTimeout!==vt.setTimeout&&G.setTimeout,jl=ht.ceil,Ll=ht.floor,Ih=Ge.getOwnPropertySymbols,oR=_l?_l.isBuffer:n,Cw=G.isFinite,aR=Al.join,lR=yw(Ge.keys,Ge),mt=ht.max,At=ht.min,cR=me.now,uR=G.parseInt,Ew=ht.random,fR=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={},dR=_s(Dh),hR=_s(jo),mR=_s(Nh),pR=_s(Pi),gR=_s(Lo),Fl=Yr?Yr.prototype:n,Fo=Fl?Fl.valueOf:n,Pw=Fl?Fl.toString:n;function E(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}E.templateSettings={escape:$j,evaluate:_j,interpolate:k2,variable:"",imports:{_:E}},E.prototype=Vl.prototype,E.prototype.constructor=E,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 yR(){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 xR(){if(this.__filtered__){var i=new ke(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function vR(){var i=this.__wrapped__.value(),l=this.__dir__,f=Me(i),y=l<0,w=f?i.length:0,M=_F(0,w,this.__views__),_=M.start,N=M.end,L=N-_,H=y?N:_-1,q=this.__iteratees__,Z=q.length,ce=0,ye=At(L,this.__takeCount__);if(!f||!y&&w==L&&ye==L)return Xw(i,this.__actions__);var Te=[];e:for(;L--&&ce<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==de)continue e;break e}}Te[ce++]=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 bR(){this.__data__=Ro?Ro(null):{},this.size=0}function wR(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function SR(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 TR(i){var l=this.__data__;return Ro?l[i]!==n:ze.call(l,i)}function CR(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=bR,Ps.prototype.delete=wR,Ps.prototype.get=SR,Ps.prototype.has=TR,Ps.prototype.set=CR;function ur(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 ER(){this.__data__=[],this.size=0}function PR(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 AR(i){var l=this.__data__,f=Bl(l,i);return f<0?n:l[f][1]}function MR(i){return Bl(this.__data__,i)>-1}function OR(i,l){var f=this.__data__,y=Bl(f,i);return y<0?(++this.size,f.push([i,l])):f[y][1]=l,this}ur.prototype.clear=ER,ur.prototype.delete=PR,ur.prototype.get=AR,ur.prototype.has=MR,ur.prototype.set=OR;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 $R(){this.size=0,this.__data__={hash:new Ps,map:new(jo||ur),string:new Ps}}function _R(i){var l=Ql(this,i).delete(i);return this.size-=l?1:0,l}function IR(i){return Ql(this,i).get(i)}function DR(i){return Ql(this,i).has(i)}function NR(i,l){var f=Ql(this,i),y=f.size;return f.set(i,l),this.size+=f.size==y?0:1,this}fr.prototype.clear=$R,fr.prototype.delete=_R,fr.prototype.get=IR,fr.prototype.has=DR,fr.prototype.set=NR;function As(i){var l=-1,f=i==null?0:i.length;for(this.__data__=new fr;++l<f;)this.add(i[l])}function kR(i){return this.__data__.set(i,u),this}function jR(i){return this.__data__.has(i)}As.prototype.add=As.prototype.push=kR,As.prototype.has=jR;function bn(i){var l=this.__data__=new ur(i);this.size=l.size}function LR(){this.__data__=new ur,this.size=0}function RR(i){var l=this.__data__,f=l.delete(i);return this.size=l.size,f}function FR(i){return this.__data__.get(i)}function VR(i){return this.__data__.has(i)}function BR(i,l){var f=this.__data__;if(f instanceof ur){var y=f.__data__;if(!jo||y.length<s-1)return y.push([i,l]),this.size=++f.size,this;f=this.__data__=new fr(y)}return f.set(i,l),this.size=f.size,this}bn.prototype.clear=LR,bn.prototype.delete=RR,bn.prototype.get=FR,bn.prototype.has=VR,bn.prototype.set=BR;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,ZL):[],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")||pr(H,L)))&&N.push(H);return N}function Mw(i){var l=i.length;return l?i[Gh(0,l-1)]:n}function WR(i,l){return ec(Rt(i),Ms(l,0,i.length))}function UR(i){return ec(Rt(i))}function kh(i,l,f){(f!==n&&!wn(i[l],f)||f===n&&!(l in i))&&dr(i,l,f)}function Vo(i,l,f){var y=i[l];(!(ze.call(i,l)&&wn(y,f))||f===n&&!(l in i))&&dr(i,l,f)}function Bl(i,l){for(var f=i.length;f--;)if(wn(i[f][0],l))return f;return-1}function zR(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 GR(i,l){return i&&Bn(l,Vt(l),i)}function dr(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(_=DF(i),!N)return Rt(i,_)}else{var Z=Mt(i),ce=Z==ie||Z==pe;if(Zr(i))return Qw(i,N);if(Z==dt||Z==B||ce&&!w){if(_=L||ce?{}:xS(i),!N)return L?SF(i,GR(_,i)):wF(i,Ow(_,i))}else{if(!qe[Z])return w?i:{};_=NF(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 YR(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 ce=H;ce--;)if(l[ce]===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 HR(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 qR(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=jF),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 gr(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):UF(i)}function Fh(i,l){return i>l}function KR(i,l){return i!=null&&ze.call(i,l)}function XR(i,l){return i!=null&&l in Ge(i)}function ZR(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,ce=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,!(ce?No(ce,Te):y(H,Te,f))){for(_=M;--_;){var $e=N[_];if(!($e?No($e,Te):y(i[_],Te,f)))continue e}ce&&ce.push(Te),H.push(ye)}}return H}function JR(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 QR(i){return ot(i)&&_t(i)==ve}function eF(i){return ot(i)&&_t(i)==fe}function Uo(i,l,f,y,w){return i===l?!0:i==null||l==null||!ot(i)&&!ot(l)?i!==i&&l!==l:tF(i,l,f,y,Uo,w)}function tF(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,ce=L==H;if(ce&&Zr(i)){if(!Zr(l))return!1;_=!0,q=!1}if(ce&&!q)return M||(M=new bn),_||Ii(i)?pS(i,l,f,y,w,M):MF(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 ce?(M||(M=new bn),OF(i,l,f,y,w,M)):!1}function nF(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 ce=y(H,q,L,i,l,Z);if(!(ce===n?Uo(q,H,S|b,y,Z):ce))return!1}}return!0}function Lw(i){if(!rt(i)||RF(i))return!1;var l=gr(i)?nR:Yj;return l.test(_s(i))}function rF(i){return ot(i)&&_t(i)==Br}function sF(i){return ot(i)&&Mt(i)==qt}function iF(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 lR(i);var l=[];for(var f in Ge(i))ze.call(i,f)&&f!="constructor"&&l.push(f);return l}function oF(i){if(!rt(i))return WF(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))aF(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 aF(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 ce=Me(L),ye=!ce&&Zr(L),Te=!ce&&!ye&&Ii(L);q=L,ce||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)||gr(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,pr(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 NL(w,function(M,_){return bF(M,_,f)})}function lF(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 cF(i){return function(l){return Os(l,i)}}function zh(i,l,f,y){var w=y?DL: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;pr(w)?Nl.call(i,w,1):qh(i,w)}}return i}function Gh(i,l){return i+Ll(Ew()*(l-i+1))}function uF(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>z)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 fF(i){return Mw(Di(i))}function dF(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:pr(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,hF=kl?function(i,l){return kl(i,"toString",{configurable:!0,enumerable:!1,value:vm(l),writable:!0})}:Bt;function mF(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 pF(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<=U){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]),ce=Z!==n,ye=Z===null,Te=Z===Z,$e=Jt(Z);if(_)var Ce=y||Te;else H?Ce=Te&&(y||ce):N?Ce=Te&&ce&&(y||!ye):L?Ce=Te&&ce&&!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:PF(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 ce=L.length;ce--;)if(L[ce]===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(Be(i))}var gF=_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=rR||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 yF(i,l){var f=l?Jh(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function xF(i){var l=new i.constructor(i.source,j2.exec(i));return l.lastIndex=i.lastIndex,l}function vF(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 bF(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),ce=!y;++w<q;)Z[w]=i[w];for(var ye=w;++L<H;)Z[ye+L]=l[L];for(;++_<N;)(ce||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?dr(f,N,L):Vo(f,N,L)}return f}function wF(i,l){return Bn(i,im(i),l)}function SF(i,l){return Bn(i,gS(i),l)}function Hl(i,l){return function(f,y){var w=Me(f)?AL:zR,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 TF(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=Be(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(hL,"")),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 CF(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 mr(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]==(R|C|P|F)&&!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,ce=f?l[Z].apply(this,H):q;++Z<f;)ce=l[Z].call(this,ce);return ce}})}function ql(i,l,f,y,w,M,_,N,L,H){var q=l&R,Z=l&T,ce=l&v,ye=l&(C|I),Te=l&W,$e=ce?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=jL(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,xr=ce?Sn[i]:i;return Ne=je.length,N?je=zF(je,N):Te&&Ne>1&&je.reverse(),q&&L<Ne&&(je.length=L),this&&this!==vt&&this instanceof Ce&&(xr=$e||Go(xr)),xr.apply(Sn,je)}return Ce}function cS(i,l){return function(f,y){return JR(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 mr(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 EF(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),ce=this&&this!==vt&&this instanceof _?M:i;++H<q;)Z[H]=y[H];for(;L--;)Z[H++]=arguments[++N];return Kt(ce,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=yr(l),f===n?(f=l,l=0):f=yr(f),y=y===n?l<f?1:-1:yr(y),uF(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,ce=q?n:_,ye=q?M:n,Te=q?n:M;l|=q?P:D,l&=~(q?D:P),l&A||(l&=-4);var $e=[i,l,w,ye,Z,Te,ce,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=(Be(f)+"e").split("e"),M=l(w[0]+"e"+(+w[1]+y));return w=(Be(M)+"e").split("e"),+(w[0]+"e"+(+w[1]-y))}return l(f)}}var PF=Pi&&1/Pl(new Pi([,-0]))[1]==Y?function(i){return new Pi(i)}:Sm;function dS(i){return function(l){var f=Mt(l);return f==De?$h(l):f==qt?UL(l):kL(l,i(l))}}function hr(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 ce=L?n:rm(i),ye=[i,l,f,y,w,q,Z,M,_,N];if(ce&&BF(ye,ce),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=TF(i,l,f);else l==C||l==I?Te=CF(i,l,N):(l==P||l==(T|P))&&!w.length?Te=EF(i,l,f,y):Te=ql.apply(n,ye);var $e=ce?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 AF(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,ce=!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;ce=!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)})){ce=!1;break}}else if(!(Te===$e||w(Te,$e,f,y,M))){ce=!1;break}}return M.delete(i),M.delete(l),ce}function MF(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 fe:case ft:return wn(+i,+l);case Ve: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 OF(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 ce=N[Z];if(!(_?ce in l:ze.call(l,ce)))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;){ce=N[Z];var Ne=i[ce],je=l[ce];if(y)var Qt=_?y(je,Ne,ce,l,i,M):y(Ne,je,ce,i,l,M);if(!(Qt===n?Ne===je||w(Ne,je,f,y,M):Qt)){$e=!1;break}Ce||(Ce=ce=="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 mr(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(E,"placeholder")?E:i;return l.placeholder}function be(){var i=E.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 LF(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=VL(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 dR:return Ze;case hR:return De;case mR:return yl;case pR:return qt;case gR:return Wr}return l});function _F(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 IF(i){var l=i.match(Rj);return l?l[1].split(Fj):[]}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)&&pr(_,w)&&(Me(i)||Is(i)))}function DF(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 NF(i,l,f){var y=i.constructor;switch(l){case ve:return Jh(i);case se:case fe:return new y(+i);case Ze:return yF(i,f);case Pt:case xn:case cr: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 xF(i);case qt:return new y;case Ts:return vF(i)}}function kF(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(Lj,`{
633
633
  /* [wrapped with `+l+`] */
634
- `)}function jF(i){return Me(i)||Is(i)||!!(Tw&&i&&i[Tw])}function pr(i,l){var f=typeof i;return l=l??z,!!l&&(f=="number"||f!="symbol"&&qj.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)&&pr(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:Dj.test(i)||!Ij.test(i)||l!=null&&i in Ge(l)}function LF(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=E[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 RF(i){return!!vw&&vw in i}var FF=Ml?gr: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 VF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function BF(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 N=l[3];if(N){var L=i[3];i[3]=L?nS(L,N,l[4]):N,i[4]=L?zr(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?zr(i[5],h):l[6]),N=l[7],N&&(i[7]=N),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 WF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function UF(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 zF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=pr(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=iR||function(i,l){return vt.setTimeout(i,l)},cm=ES(hF);function CS(i,l,f){var y=l+"";return cm(i,kF(y,GF(IF(y),f)))}function ES(i){var l=0,f=0;return function(){var y=cR(),w=ge-(y-f);if(f=y,w>0){if(++l>=ae)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=VF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Nj,function(f,y,w,M){l.push(w?M.replace(Wj,"$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 GF(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 YF(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 HF(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 qF(){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 Ur(Me(f)?Rt(f):[f],bt(l,1))}var KF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),XF=_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)):[]}),ZF=_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 JF(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 QF(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 e8(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function t8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function n8(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),qR(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 r8(i){var l=i==null?0:i.length;return l?bt(i,Y):[]}function s8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function i8(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 o8(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 a8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var l8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),c8=_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)):[]}),u8=_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 f8(i,l){return i==null?"":aR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function d8(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?GL(i,l,w):El(i,fw,w,!0)}function h8(i,l){return i&&i.length?Ww(i,Oe(l)):n}var m8=_e(IS);function IS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function p8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function g8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var y8=mr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Gw(i,Je(l,function(w){return pr(w,f)?+w:w}).sort(tS)),y});function x8(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:fR.call(i)}function v8(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 b8(i,l){return Gl(i,l)}function w8(i,l,f){return Hh(i,l,be(f,2))}function S8(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 T8(i,l){return Gl(i,l,!0)}function C8(i,l,f){return Hh(i,l,be(f,2),!0)}function E8(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 P8(i){return i&&i.length?Hw(i):[]}function A8(i,l){return i&&i.length?Hw(i,be(l,2)):[]}function M8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function O8(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 _8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function I8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var D8=_e(function(i){return Hr(bt(i,1,ct,!0))}),N8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Hr(bt(i,1,ct,!0),be(l,2))}),k8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Hr(bt(i,1,ct,!0),n,l)});function j8(i){return i&&i.length?Hr(i):[]}function L8(i,l){return i&&i.length?Hr(i,be(l,2)):[]}function R8(i,l){return l=typeof l=="function"?l:n,i&&i.length?Hr(i,n,l):[]}function fm(i){if(!(i&&i.length))return[];var l=0;return i=Wr(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 F8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),V8=_e(function(i){return Kh(Wr(i,ct))}),B8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Wr(i,ct),be(l,2))}),W8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Wr(i,ct),n,l)}),U8=_e(fm);function z8(i,l){return Zw(i||[],l||[],Vo)}function G8(i,l){return Zw(i||[],l||[],zo)}var Y8=_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=E(i);return l.__chain__=!0,l}function H8(i,l){return l(i),i}function tc(i,l){return l(i)}var q8=mr(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)||!pr(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 K8(){return NS(this)}function X8(){return new un(this.value(),this.__chain__)}function Z8(){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 J8(){return this}function Q8(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 e9(){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 t9(){return Xw(this.__wrapped__,this.__actions__)}var n9=Hl(function(i,l,f){ze.call(i,f)?++i[f]:dr(i,f,1)});function r9(i,l,f){var y=Me(i)?cw:HR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function s9(i,l){var f=Me(i)?Wr:Dw;return f(i,be(l,3))}var i9=aS(MS),o9=aS(OS);function a9(i,l){return bt(nc(i,l),1)}function l9(i,l){return bt(nc(i,l),Y)}function c9(i,l,f){return f=f===n?1:Oe(f),bt(nc(i,l),f)}function kS(i,l){var f=Me(i)?ln:Yr;return f(i,be(l,3))}function jS(i,l){var f=Me(i)?ML:Iw;return f(i,be(l,3))}var u9=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):dr(i,f,[l])});function f9(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 d9=_e(function(i,l,f){var y=-1,w=typeof l=="function",M=Ft(i)?V(i.length):[];return Yr(i,function(_){M[++y]=w?Kt(l,_,f):Wo(_,l,f)}),M}),h9=Hl(function(i,l,f){dr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Fw;return f(i,be(l,3))}function m9(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 p9=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function g9(i,l,f){var y=Me(i)?Th:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Yr)}function y9(i,l,f){var y=Me(i)?OL:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Iw)}function x9(i,l){var f=Me(i)?Wr:Dw;return f(i,ic(be(l,3)))}function v9(i){var l=Me(i)?Mw:fF;return l(i)}function b9(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?WR:dF;return y(i,l)}function w9(i){var l=Me(i)?UR:mF;return l(i)}function S9(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 T9(i,l,f){var y=Me(i)?Ch:pF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var C9=_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=sR||function(){return vt.Date.now()};function E9(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,hr(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=zr(f,_i(dm));y|=P}return hr(i,y,l,f,w)}),FS=_e(function(i,l,f){var y=T|v;if(f.length){var w=zr(f,_i(FS));y|=P}return hr(l,y,i,f,w)});function VS(i,l,f){l=f?n:l;var y=hr(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=hr(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,ce=!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,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var Sn=y,xr=w;return y=w=n,H=ut,_=i.apply(xr,Sn),_}function Te(ut){return H=ut,N=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,xr=ut-H,aT=l-Sn;return Z?At(aT,M-xr):aT}function Ce(ut){var Sn=ut-L,xr=ut-H;return L===n||Sn>=l||Sn<0||Z&&xr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);N=Ho(Ne,$e(ut))}function je(ut){return N=n,ce&&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 P9=_e(function(i,l){return _w(i,1,l)}),A9=_e(function(i,l,f){return _w(i,mn(l)||0,f)});function M9(i){return hr(i,W)}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||fr),f}sc.Cache=fr;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 O9(i){return RS(2,i)}var $9=gF(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=zr(l,_i(hm));return hr(i,P,n,l,f)}),US=_e(function(i,l){var f=zr(l,_i(US));return hr(i,D,n,l,f)}),_9=mr(function(i,l){return hr(i,F,n,n,n,l)});function I9(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function D9(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=Kr(f,0,l);return y&&Ur(w,y),Kt(i,this,w)})}function N9(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 k9(i){return LS(i,1)}function j9(i,l){return hm(Zh(l),i)}function L9(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function R9(i){return fn(i,x)}function F9(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function V9(i){return fn(i,m|x)}function B9(i,l){return l=typeof l=="function"?l:n,fn(i,m|x,l)}function W9(i,l){return l==null||$w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var U9=Zl(Fh),z9=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,G9=rw?Xt(rw):QR;function Ft(i){return i!=null&&oc(i.length)&&!gr(i)}function ct(i){return ot(i)&&Ft(i)}function Y9(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Xr=oR||Cm,H9=sw?Xt(sw):eF;function q9(i){return ot(i)&&i.nodeType===1&&!qo(i)}function K9(i){if(i==null)return!0;if(Ft(i)&&(Me(i)||typeof i=="string"||typeof i.splice=="function"||Xr(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 X9(i,l){return Uo(i,l)}function Z9(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==Ve||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function J9(i){return typeof i=="number"&&Cw(i)}function gr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==pe||l==oe||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<=z}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):nF;function Q9(i,l){return i===l||Bh(i,l,sm(l))}function eV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sm(l),f)}function tV(i){return YS(i)&&i!=+i}function nV(i){if(FF(i))throw new Ae(o);return Lw(i)}function rV(i){return i===null}function sV(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)==eR}var pm=ow?Xt(ow):rF;function iV(i){return zS(i)&&i>=-9007199254740991&&i<=z}var HS=aw?Xt(aw):sF;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):iF;function oV(i){return i===n}function aV(i){return ot(i)&&Mt(i)==Br}function lV(i){return ot(i)&&_t(i)==bl}var cV=Zl(Uh),uV=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 WL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function yr(i){if(!i)return i===0?i:0;if(i=mn(i),i===Y||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=yr(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=Gj.test(i);return f||Hj.test(i)?EL(i.slice(2),f?2:8):zj.test(i)?$:+i}function XS(i){return Bn(i,Vt(i))}function fV(i){return i?Ms(Oe(i),-9007199254740991,z):i===0?i:0}function Be(i){return i==null?"":Zt(i)}var dV=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)}),hV=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),mV=mr(jh);function pV(i,l){var f=Mi(i);return l==null?f:Ow(f,l)}var gV=_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}),yV=_e(function(i){return i.push(n,mS),Kt(JS,n,i)});function xV(i,l){return uw(i,be(l,3),Vn)}function vV(i,l){return uw(i,be(l,3),Rh)}function bV(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function wV(i,l){return i==null?i:Nw(i,be(l,3),Vt)}function SV(i,l){return i&&Vn(i,be(l,3))}function TV(i,l){return i&&Rh(i,be(l,3))}function CV(i){return i==null?[]:Ul(i,gt(i))}function EV(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 PV(i,l){return i!=null&&yS(i,l,KR)}function ym(i,l){return i!=null&&yS(i,l,XR)}var AV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vm(Bt)),MV=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),OV=_e(Wo);function gt(i){return Ft(i)?Aw(i):Wh(i)}function Vt(i){return Ft(i)?Aw(i,!0):oF(i)}function $V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,l(y,w,M),y)}),f}function _V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,w,l(y,w,M))}),f}var IV=Oi(function(i,l,f){zl(i,l,f)}),JS=Oi(function(i,l,f,y){zl(i,l,f,y)}),DV=mr(function(i,l){var f={};if(i==null)return f;var y=!1;l=Je(l,function(M){return M=qr(M,i),y||(y=M.length>1),M}),Bn(i,nm(i),f),y&&(f=fn(f,m|p|x,AF));for(var w=l.length;w--;)qh(f,l[w]);return f});function NV(i,l){return QS(i,ic(be(l)))}var kV=mr(function(i,l){return i==null?{}:lF(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 jV(i,l,f){l=qr(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=gr(M)?M.call(i):M}return i}function LV(i,l,f){return i==null?i:zo(i,l,f)}function RV(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 FV(i,l,f){var y=Me(i),w=y||Xr(i)||Ii(i);if(l=be(l,4),f==null){var M=i&&i.constructor;w?f=y?new M:[]:rt(i)?f=gr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,N,L){return l(f,_,N,L)}),f}function VV(i,l){return i==null?!0:qh(i,l)}function BV(i,l,f){return i==null?i:Kw(i,l,Zh(f))}function WV(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 UV(i){return i==null?[]:Oh(i,Vt(i))}function zV(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 GV(i,l,f){return l=yr(l),f===n?(f=l,l=0):f=yr(f),i=mn(i),ZR(i,l,f)}function YV(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=yr(i),l===n?(l=i,i=0):l=yr(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+CL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var HV=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?nT(l):l)});function nT(i){return xm(Be(i).toLowerCase())}function rT(i){return i=Be(i),i&&i.replace(Kj,LL).replace(mL,"")}function qV(i,l,f){i=Be(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 KV(i){return i=Be(i),i&&Oj.test(i)?i.replace(N2,RL):i}function XV(i){return i=Be(i),i&&kj.test(i)?i.replace(hh,"\\$&"):i}var ZV=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),JV=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),QV=oS("toLowerCase");function e7(i,l,f){i=Be(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 t7(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function n7(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function r7(i,l,f){return f||l==null?l=0:l&&(l=+l),uR(Be(i).replace(mh,""),l||0)}function s7(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(Be(i),l)}function i7(){var i=arguments,l=Be(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var o7=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function a7(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=Be(i),i&&(typeof l=="string"||l!=null&&!pm(l))&&(l=Zt(l),!l&&Si(i))?Kr(vn(i),0,f):i.split(l,f)):[]}var l7=$i(function(i,l,f){return i+(f?" ":"")+xm(l)});function c7(i,l,f){return i=Be(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function u7(i,l,f){var y=E.templateSettings;f&&It(i,l,f)&&(l=n),i=Be(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 += '",ce=_h((l.escape||wl).source+"|"+q.source+"|"+(q===k2?Uj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vL+"]")+`
634
+ `)}function jF(i){return Me(i)||Is(i)||!!(Tw&&i&&i[Tw])}function pr(i,l){var f=typeof i;return l=l??z,!!l&&(f=="number"||f!="symbol"&&qj.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)&&pr(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:Dj.test(i)||!Ij.test(i)||l!=null&&i in Ge(l)}function LF(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=E[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 RF(i){return!!vw&&vw in i}var FF=Ml?gr: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 VF(i){var l=sc(i,function(y){return f.size===d&&f.clear(),y}),f=l.cache;return l}function BF(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 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&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 WF(i){var l=[];if(i!=null)for(var f in Ge(i))l.push(f);return l}function UF(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 zF(i,l){for(var f=i.length,y=At(l.length,f),w=Rt(i);y--;){var M=l[y];i[y]=pr(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=iR||function(i,l){return vt.setTimeout(i,l)},cm=ES(hF);function CS(i,l,f){var y=l+"";return cm(i,kF(y,GF(IF(y),f)))}function ES(i){var l=0,f=0;return function(){var y=cR(),w=ge-(y-f);if(f=y,w>0){if(++l>=ae)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=VF(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Nj,function(f,y,w,M){l.push(w?M.replace(Wj,"$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 GF(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 YF(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 HF(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 qF(){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 KF=_e(function(i,l){return ct(i)?Bo(i,bt(l,1,ct,!0)):[]}),XF=_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)):[]}),ZF=_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 JF(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 QF(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 e8(i,l){return i&&i.length?Yl(i,be(l,3),!0,!0):[]}function t8(i,l){return i&&i.length?Yl(i,be(l,3),!0):[]}function n8(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),qR(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 r8(i){var l=i==null?0:i.length;return l?bt(i,Y):[]}function s8(i,l){var f=i==null?0:i.length;return f?(l=l===n?1:Oe(l),bt(i,l)):[]}function i8(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 o8(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 a8(i){var l=i==null?0:i.length;return l?dn(i,0,-1):[]}var l8=_e(function(i){var l=Je(i,Xh);return l.length&&l[0]===i[0]?Vh(l):[]}),c8=_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)):[]}),u8=_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 f8(i,l){return i==null?"":aR.call(i,l)}function hn(i){var l=i==null?0:i.length;return l?i[l-1]:n}function d8(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?GL(i,l,w):El(i,fw,w,!0)}function h8(i,l){return i&&i.length?Ww(i,Oe(l)):n}var m8=_e(IS);function IS(i,l){return i&&i.length&&l&&l.length?zh(i,l):i}function p8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,be(f,2)):i}function g8(i,l,f){return i&&i.length&&l&&l.length?zh(i,l,n,f):i}var y8=mr(function(i,l){var f=i==null?0:i.length,y=jh(i,l);return Gw(i,Je(l,function(w){return pr(w,f)?+w:w}).sort(tS)),y});function x8(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:fR.call(i)}function v8(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 b8(i,l){return Gl(i,l)}function w8(i,l,f){return Hh(i,l,be(f,2))}function S8(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 T8(i,l){return Gl(i,l,!0)}function C8(i,l,f){return Hh(i,l,be(f,2),!0)}function E8(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 P8(i){return i&&i.length?Hw(i):[]}function A8(i,l){return i&&i.length?Hw(i,be(l,2)):[]}function M8(i){var l=i==null?0:i.length;return l?dn(i,1,l):[]}function O8(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 _8(i,l){return i&&i.length?Yl(i,be(l,3),!1,!0):[]}function I8(i,l){return i&&i.length?Yl(i,be(l,3)):[]}var D8=_e(function(i){return qr(bt(i,1,ct,!0))}),N8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),qr(bt(i,1,ct,!0),be(l,2))}),k8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,qr(bt(i,1,ct,!0),n,l)});function j8(i){return i&&i.length?qr(i):[]}function L8(i,l){return i&&i.length?qr(i,be(l,2)):[]}function R8(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 F8=_e(function(i,l){return ct(i)?Bo(i,l):[]}),V8=_e(function(i){return Kh(Ur(i,ct))}),B8=_e(function(i){var l=hn(i);return ct(l)&&(l=n),Kh(Ur(i,ct),be(l,2))}),W8=_e(function(i){var l=hn(i);return l=typeof l=="function"?l:n,Kh(Ur(i,ct),n,l)}),U8=_e(fm);function z8(i,l){return Zw(i||[],l||[],Vo)}function G8(i,l){return Zw(i||[],l||[],zo)}var Y8=_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=E(i);return l.__chain__=!0,l}function H8(i,l){return l(i),i}function tc(i,l){return l(i)}var q8=mr(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)||!pr(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 K8(){return NS(this)}function X8(){return new un(this.value(),this.__chain__)}function Z8(){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 J8(){return this}function Q8(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 e9(){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 t9(){return Xw(this.__wrapped__,this.__actions__)}var n9=Hl(function(i,l,f){ze.call(i,f)?++i[f]:dr(i,f,1)});function r9(i,l,f){var y=Me(i)?cw:HR;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}function s9(i,l){var f=Me(i)?Ur:Dw;return f(i,be(l,3))}var i9=aS(MS),o9=aS(OS);function a9(i,l){return bt(nc(i,l),1)}function l9(i,l){return bt(nc(i,l),Y)}function c9(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)?ML:Iw;return f(i,be(l,3))}var u9=Hl(function(i,l,f){ze.call(i,f)?i[f].push(l):dr(i,f,[l])});function f9(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 d9=_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}),h9=Hl(function(i,l,f){dr(i,f,l)});function nc(i,l){var f=Me(i)?Je:Fw;return f(i,be(l,3))}function m9(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 p9=Hl(function(i,l,f){i[f?0:1].push(l)},function(){return[[],[]]});function g9(i,l,f){var y=Me(i)?Th:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Hr)}function y9(i,l,f){var y=Me(i)?OL:hw,w=arguments.length<3;return y(i,be(l,4),f,w,Iw)}function x9(i,l){var f=Me(i)?Ur:Dw;return f(i,ic(be(l,3)))}function v9(i){var l=Me(i)?Mw:fF;return l(i)}function b9(i,l,f){(f?It(i,l,f):l===n)?l=1:l=Oe(l);var y=Me(i)?WR:dF;return y(i,l)}function w9(i){var l=Me(i)?UR:mF;return l(i)}function S9(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 T9(i,l,f){var y=Me(i)?Ch:pF;return f&&It(i,l,f)&&(l=n),y(i,be(l,3))}var C9=_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=sR||function(){return vt.Date.now()};function E9(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,hr(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|=P}return hr(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|=P}return hr(l,y,i,f,w)});function VS(i,l,f){l=f?n:l;var y=hr(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=hr(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,ce=!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,ce="trailing"in f?!!f.trailing:ce);function ye(ut){var Sn=y,xr=w;return y=w=n,H=ut,_=i.apply(xr,Sn),_}function Te(ut){return H=ut,N=Ho(Ne,l),q?ye(ut):_}function $e(ut){var Sn=ut-L,xr=ut-H,aT=l-Sn;return Z?At(aT,M-xr):aT}function Ce(ut){var Sn=ut-L,xr=ut-H;return L===n||Sn>=l||Sn<0||Z&&xr>=M}function Ne(){var ut=rc();if(Ce(ut))return je(ut);N=Ho(Ne,$e(ut))}function je(ut){return N=n,ce&&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 P9=_e(function(i,l){return _w(i,1,l)}),A9=_e(function(i,l,f){return _w(i,mn(l)||0,f)});function M9(i){return hr(i,W)}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||fr),f}sc.Cache=fr;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 O9(i){return RS(2,i)}var $9=gF(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 hr(i,P,n,l,f)}),US=_e(function(i,l){var f=Gr(l,_i(US));return hr(i,D,n,l,f)}),_9=mr(function(i,l){return hr(i,F,n,n,n,l)});function I9(i,l){if(typeof i!="function")throw new cn(a);return l=l===n?l:Oe(l),_e(i,l)}function D9(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 N9(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 k9(i){return LS(i,1)}function j9(i,l){return hm(Zh(l),i)}function L9(){if(!arguments.length)return[];var i=arguments[0];return Me(i)?i:[i]}function R9(i){return fn(i,x)}function F9(i,l){return l=typeof l=="function"?l:n,fn(i,x,l)}function V9(i){return fn(i,m|x)}function B9(i,l){return l=typeof l=="function"?l:n,fn(i,m|x,l)}function W9(i,l){return l==null||$w(i,l,gt(l))}function wn(i,l){return i===l||i!==i&&l!==l}var U9=Zl(Fh),z9=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,G9=rw?Xt(rw):QR;function Ft(i){return i!=null&&oc(i.length)&&!gr(i)}function ct(i){return ot(i)&&Ft(i)}function Y9(i){return i===!0||i===!1||ot(i)&&_t(i)==se}var Zr=oR||Cm,H9=sw?Xt(sw):eF;function q9(i){return ot(i)&&i.nodeType===1&&!qo(i)}function K9(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 X9(i,l){return Uo(i,l)}function Z9(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==Ve||l==Ee||typeof i.message=="string"&&typeof i.name=="string"&&!qo(i)}function J9(i){return typeof i=="number"&&Cw(i)}function gr(i){if(!rt(i))return!1;var l=_t(i);return l==ie||l==pe||l==oe||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<=z}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):nF;function Q9(i,l){return i===l||Bh(i,l,sm(l))}function eV(i,l,f){return f=typeof f=="function"?f:n,Bh(i,l,sm(l),f)}function tV(i){return YS(i)&&i!=+i}function nV(i){if(FF(i))throw new Ae(o);return Lw(i)}function rV(i){return i===null}function sV(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)==eR}var pm=ow?Xt(ow):rF;function iV(i){return zS(i)&&i>=-9007199254740991&&i<=z}var HS=aw?Xt(aw):sF;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):iF;function oV(i){return i===n}function aV(i){return ot(i)&&Mt(i)==Wr}function lV(i){return ot(i)&&_t(i)==bl}var cV=Zl(Uh),uV=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 WL(i[ko]());var l=Mt(i),f=l==De?$h:l==qt?Pl:Di;return f(i)}function yr(i){if(!i)return i===0?i:0;if(i=mn(i),i===Y||i===-1/0){var l=i<0?-1:1;return l*K}return i===i?i:0}function Oe(i){var l=yr(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=Gj.test(i);return f||Hj.test(i)?EL(i.slice(2),f?2:8):zj.test(i)?$:+i}function XS(i){return Bn(i,Vt(i))}function fV(i){return i?Ms(Oe(i),-9007199254740991,z):i===0?i:0}function Be(i){return i==null?"":Zt(i)}var dV=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)}),hV=Oi(function(i,l,f,y){Bn(l,gt(l),i,y)}),mV=mr(jh);function pV(i,l){var f=Mi(i);return l==null?f:Ow(f,l)}var gV=_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}),yV=_e(function(i){return i.push(n,mS),Kt(JS,n,i)});function xV(i,l){return uw(i,be(l,3),Vn)}function vV(i,l){return uw(i,be(l,3),Rh)}function bV(i,l){return i==null?i:Lh(i,be(l,3),Vt)}function wV(i,l){return i==null?i:Nw(i,be(l,3),Vt)}function SV(i,l){return i&&Vn(i,be(l,3))}function TV(i,l){return i&&Rh(i,be(l,3))}function CV(i){return i==null?[]:Ul(i,gt(i))}function EV(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 PV(i,l){return i!=null&&yS(i,l,KR)}function ym(i,l){return i!=null&&yS(i,l,XR)}var AV=cS(function(i,l,f){l!=null&&typeof l.toString!="function"&&(l=$l.call(l)),i[l]=f},vm(Bt)),MV=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),OV=_e(Wo);function gt(i){return Ft(i)?Aw(i):Wh(i)}function Vt(i){return Ft(i)?Aw(i,!0):oF(i)}function $V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,l(y,w,M),y)}),f}function _V(i,l){var f={};return l=be(l,3),Vn(i,function(y,w,M){dr(f,w,l(y,w,M))}),f}var IV=Oi(function(i,l,f){zl(i,l,f)}),JS=Oi(function(i,l,f,y){zl(i,l,f,y)}),DV=mr(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,AF));for(var w=l.length;w--;)qh(f,l[w]);return f});function NV(i,l){return QS(i,ic(be(l)))}var kV=mr(function(i,l){return i==null?{}:lF(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 jV(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=gr(M)?M.call(i):M}return i}function LV(i,l,f){return i==null?i:zo(i,l,f)}function RV(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 FV(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=gr(M)?Mi(Dl(i)):{}:f={}}return(w?ln:Vn)(i,function(_,N,L){return l(f,_,N,L)}),f}function VV(i,l){return i==null?!0:qh(i,l)}function BV(i,l,f){return i==null?i:Kw(i,l,Zh(f))}function WV(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 UV(i){return i==null?[]:Oh(i,Vt(i))}function zV(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 GV(i,l,f){return l=yr(l),f===n?(f=l,l=0):f=yr(f),i=mn(i),ZR(i,l,f)}function YV(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=yr(i),l===n?(l=i,i=0):l=yr(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+CL("1e-"+((w+"").length-1))),l)}return Gh(i,l)}var HV=$i(function(i,l,f){return l=l.toLowerCase(),i+(f?nT(l):l)});function nT(i){return xm(Be(i).toLowerCase())}function rT(i){return i=Be(i),i&&i.replace(Kj,LL).replace(mL,"")}function qV(i,l,f){i=Be(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 KV(i){return i=Be(i),i&&Oj.test(i)?i.replace(N2,RL):i}function XV(i){return i=Be(i),i&&kj.test(i)?i.replace(hh,"\\$&"):i}var ZV=$i(function(i,l,f){return i+(f?"-":"")+l.toLowerCase()}),JV=$i(function(i,l,f){return i+(f?" ":"")+l.toLowerCase()}),QV=oS("toLowerCase");function e7(i,l,f){i=Be(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 t7(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?i+Xl(l-y,f):i}function n7(i,l,f){i=Be(i),l=Oe(l);var y=l?Ti(i):0;return l&&y<l?Xl(l-y,f)+i:i}function r7(i,l,f){return f||l==null?l=0:l&&(l=+l),uR(Be(i).replace(mh,""),l||0)}function s7(i,l,f){return(f?It(i,l,f):l===n)?l=1:l=Oe(l),Yh(Be(i),l)}function i7(){var i=arguments,l=Be(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var o7=$i(function(i,l,f){return i+(f?"_":"")+l.toLowerCase()});function a7(i,l,f){return f&&typeof f!="number"&&It(i,l,f)&&(l=f=n),f=f===n?k:f>>>0,f?(i=Be(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 l7=$i(function(i,l,f){return i+(f?" ":"")+xm(l)});function c7(i,l,f){return i=Be(i),f=f==null?0:Ms(Oe(f),0,i.length),l=Zt(l),i.slice(f,f+l.length)==l}function u7(i,l,f){var y=E.templateSettings;f&&It(i,l,f)&&(l=n),i=Be(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 += '",ce=_h((l.escape||wl).source+"|"+q.source+"|"+(q===k2?Uj:wl).source+"|"+(l.evaluate||wl).source+"|$","g"),ye="//# sourceURL="+(ze.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++vL+"]")+`
635
635
  `;i.replace(ce,function(Ce,Ne,je,Qt,Dt,en){return je||(je=Qt),Z+=i.slice(H,en).replace(Xj,FL),Ne&&(N=!0,Z+=`' +
636
636
  __e(`+Ne+`) +
637
637
  '`),Dt&&(L=!0,Z+=`';
@@ -648,7 +648,7 @@ __p += '`),je&&(Z+=`' +
648
648
  function print() { __p += __j.call(arguments, '') }
649
649
  `:`;
650
650
  `)+Z+`return __p
651
- }`;var $e=iT(function(){return Le(M,ye+"return "+Z).apply(n,_)});if($e.source=Z,mm($e))throw $e;return $e}function f7(i){return Be(i).toLowerCase()}function d7(i){return Be(i).toUpperCase()}function h7(i,l,f){if(i=Be(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 Kr(y,M,_).join("")}function m7(i,l,f){if(i=Be(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 Kr(y,0,w).join("")}function p7(i,l,f){if(i=Be(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 Kr(y,w).join("")}function g7(i,l){var f=Q,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=Be(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=_?Kr(_,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,Be(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 ce=L.lastIndexOf(w);ce>-1&&(L=L.slice(0,ce))}return L+y}function y7(i){return i=Be(i),i&&Mj.test(i)?i.replace(D2,YL):i}var x7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=Be(i),l=f?n:l,l===n?BL(i)?KL(i):IL(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)}}),v7=mr(function(i,l){return ln(l,function(f){f=Wn(f),dr(i,f,dm(i[f],i))}),i});function b7(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 w7(i){return YR(fn(i,m))}function vm(i){return function(){return i}}function S7(i,l){return i==null||i!==i?l:i}var T7=lS(),C7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function E7(i){return Vw(fn(i,m))}function P7(i,l){return Bw(i,fn(l,m))}var A7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),M7=_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,_=gr(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,Ur([this.value()],arguments))})}),i}function O7(){return vt._===this&&(vt._=tR),this}function Sm(){}function $7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var _7=Qh(Je),I7=Qh(cw),D7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):cF(i)}function N7(i){return function(l){return i==null?n:Os(i,l)}}var k7=uS(),j7=uS(!0);function Tm(){return[]}function Cm(){return!1}function L7(){return{}}function R7(){return""}function F7(){return!0}function V7(i,l){if(i=Oe(i),i<1||i>z)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 B7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(Be(i)))}function W7(i){var l=++QL;return Be(i)+l}var U7=Kl(function(i,l){return i+l},0),z7=em("ceil"),G7=Kl(function(i,l){return i/l},1),Y7=em("floor");function H7(i){return i&&i.length?Wl(i,Bt,Fh):n}function q7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function K7(i){return dw(i,Bt)}function X7(i,l){return dw(i,be(l,2))}function Z7(i){return i&&i.length?Wl(i,Bt,Uh):n}function J7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var Q7=Kl(function(i,l){return i*l},1),eB=em("round"),tB=Kl(function(i,l){return i-l},0);function nB(i){return i&&i.length?Ah(i,Bt):0}function rB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return E.after=E9,E.ary=LS,E.assign=dV,E.assignIn=ZS,E.assignInWith=lc,E.assignWith=hV,E.at=mV,E.before=RS,E.bind=dm,E.bindAll=v7,E.bindKey=FS,E.castArray=L9,E.chain=NS,E.chunk=YF,E.compact=HF,E.concat=qF,E.cond=b7,E.conforms=w7,E.constant=vm,E.countBy=n9,E.create=pV,E.curry=VS,E.curryRight=BS,E.debounce=WS,E.defaults=gV,E.defaultsDeep=yV,E.defer=P9,E.delay=A9,E.difference=KF,E.differenceBy=XF,E.differenceWith=ZF,E.drop=JF,E.dropRight=QF,E.dropRightWhile=e8,E.dropWhile=t8,E.fill=n8,E.filter=s9,E.flatMap=a9,E.flatMapDeep=l9,E.flatMapDepth=c9,E.flatten=$S,E.flattenDeep=r8,E.flattenDepth=s8,E.flip=M9,E.flow=T7,E.flowRight=C7,E.fromPairs=i8,E.functions=CV,E.functionsIn=EV,E.groupBy=u9,E.initial=a8,E.intersection=l8,E.intersectionBy=c8,E.intersectionWith=u8,E.invert=AV,E.invertBy=MV,E.invokeMap=d9,E.iteratee=bm,E.keyBy=h9,E.keys=gt,E.keysIn=Vt,E.map=nc,E.mapKeys=$V,E.mapValues=_V,E.matches=E7,E.matchesProperty=P7,E.memoize=sc,E.merge=IV,E.mergeWith=JS,E.method=A7,E.methodOf=M7,E.mixin=wm,E.negate=ic,E.nthArg=$7,E.omit=DV,E.omitBy=NV,E.once=O9,E.orderBy=m9,E.over=_7,E.overArgs=$9,E.overEvery=I7,E.overSome=D7,E.partial=hm,E.partialRight=US,E.partition=p9,E.pick=kV,E.pickBy=QS,E.property=oT,E.propertyOf=N7,E.pull=m8,E.pullAll=IS,E.pullAllBy=p8,E.pullAllWith=g8,E.pullAt=y8,E.range=k7,E.rangeRight=j7,E.rearg=_9,E.reject=x9,E.remove=x8,E.rest=I9,E.reverse=um,E.sampleSize=b9,E.set=LV,E.setWith=RV,E.shuffle=w9,E.slice=v8,E.sortBy=C9,E.sortedUniq=P8,E.sortedUniqBy=A8,E.split=a7,E.spread=D9,E.tail=M8,E.take=O8,E.takeRight=$8,E.takeRightWhile=_8,E.takeWhile=I8,E.tap=H8,E.throttle=N9,E.thru=tc,E.toArray=qS,E.toPairs=eT,E.toPairsIn=tT,E.toPath=B7,E.toPlainObject=XS,E.transform=FV,E.unary=k9,E.union=D8,E.unionBy=N8,E.unionWith=k8,E.uniq=j8,E.uniqBy=L8,E.uniqWith=R8,E.unset=VV,E.unzip=fm,E.unzipWith=DS,E.update=BV,E.updateWith=WV,E.values=Di,E.valuesIn=UV,E.without=F8,E.words=sT,E.wrap=j9,E.xor=V8,E.xorBy=B8,E.xorWith=W8,E.zip=U8,E.zipObject=z8,E.zipObjectDeep=G8,E.zipWith=Y8,E.entries=eT,E.entriesIn=tT,E.extend=ZS,E.extendWith=lc,wm(E,E),E.add=U7,E.attempt=iT,E.camelCase=HV,E.capitalize=nT,E.ceil=z7,E.clamp=zV,E.clone=R9,E.cloneDeep=V9,E.cloneDeepWith=B9,E.cloneWith=F9,E.conformsTo=W9,E.deburr=rT,E.defaultTo=S7,E.divide=G7,E.endsWith=qV,E.eq=wn,E.escape=KV,E.escapeRegExp=XV,E.every=r9,E.find=i9,E.findIndex=MS,E.findKey=xV,E.findLast=o9,E.findLastIndex=OS,E.findLastKey=vV,E.floor=Y7,E.forEach=kS,E.forEachRight=jS,E.forIn=bV,E.forInRight=wV,E.forOwn=SV,E.forOwnRight=TV,E.get=gm,E.gt=U9,E.gte=z9,E.has=PV,E.hasIn=ym,E.head=_S,E.identity=Bt,E.includes=f9,E.indexOf=o8,E.inRange=GV,E.invoke=OV,E.isArguments=Is,E.isArray=Me,E.isArrayBuffer=G9,E.isArrayLike=Ft,E.isArrayLikeObject=ct,E.isBoolean=Y9,E.isBuffer=Xr,E.isDate=H9,E.isElement=q9,E.isEmpty=K9,E.isEqual=X9,E.isEqualWith=Z9,E.isError=mm,E.isFinite=J9,E.isFunction=gr,E.isInteger=zS,E.isLength=oc,E.isMap=GS,E.isMatch=Q9,E.isMatchWith=eV,E.isNaN=tV,E.isNative=nV,E.isNil=sV,E.isNull=rV,E.isNumber=YS,E.isObject=rt,E.isObjectLike=ot,E.isPlainObject=qo,E.isRegExp=pm,E.isSafeInteger=iV,E.isSet=HS,E.isString=ac,E.isSymbol=Jt,E.isTypedArray=Ii,E.isUndefined=oV,E.isWeakMap=aV,E.isWeakSet=lV,E.join=f8,E.kebabCase=ZV,E.last=hn,E.lastIndexOf=d8,E.lowerCase=JV,E.lowerFirst=QV,E.lt=cV,E.lte=uV,E.max=H7,E.maxBy=q7,E.mean=K7,E.meanBy=X7,E.min=Z7,E.minBy=J7,E.stubArray=Tm,E.stubFalse=Cm,E.stubObject=L7,E.stubString=R7,E.stubTrue=F7,E.multiply=Q7,E.nth=h8,E.noConflict=O7,E.noop=Sm,E.now=rc,E.pad=e7,E.padEnd=t7,E.padStart=n7,E.parseInt=r7,E.random=YV,E.reduce=g9,E.reduceRight=y9,E.repeat=s7,E.replace=i7,E.result=jV,E.round=eB,E.runInContext=j,E.sample=v9,E.size=S9,E.snakeCase=o7,E.some=T9,E.sortedIndex=b8,E.sortedIndexBy=w8,E.sortedIndexOf=S8,E.sortedLastIndex=T8,E.sortedLastIndexBy=C8,E.sortedLastIndexOf=E8,E.startCase=l7,E.startsWith=c7,E.subtract=tB,E.sum=nB,E.sumBy=rB,E.template=u7,E.times=V7,E.toFinite=yr,E.toInteger=Oe,E.toLength=KS,E.toLower=f7,E.toNumber=mn,E.toSafeInteger=fV,E.toString=Be,E.toUpper=d7,E.trim=h7,E.trimEnd=m7,E.trimStart=p7,E.truncate=g7,E.unescape=y7,E.uniqueId=W7,E.upperCase=x7,E.upperFirst=xm,E.each=kS,E.eachRight=jS,E.first=_S,wm(E,function(){var i={};return Vn(E,function(l,f){ze.call(E.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),E.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){E[i].placeholder=E}),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==de||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=E[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(E.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(E,Ur([Ne],N));return y&&ce?je[0]:je};q&&f&&typeof H=="function"&&H.length!=1&&(L=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,$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,ce)}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);E.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=E[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=yR,ke.prototype.reverse=xR,ke.prototype.value=vR,E.prototype.at=q8,E.prototype.chain=K8,E.prototype.commit=X8,E.prototype.next=Z8,E.prototype.plant=Q8,E.prototype.reverse=e9,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=t9,E.prototype.first=E.prototype.head,ko&&(E.prototype[ko]=J8),E},Ci=XL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o3)}(uo,uo.exports)),uo.exports}var hf=a3();/*!
651
+ }`;var $e=iT(function(){return Le(M,ye+"return "+Z).apply(n,_)});if($e.source=Z,mm($e))throw $e;return $e}function f7(i){return Be(i).toLowerCase()}function d7(i){return Be(i).toUpperCase()}function h7(i,l,f){if(i=Be(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 m7(i,l,f){if(i=Be(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 p7(i,l,f){if(i=Be(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 g7(i,l){var f=Q,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=Be(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,Be(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 ce=L.lastIndexOf(w);ce>-1&&(L=L.slice(0,ce))}return L+y}function y7(i){return i=Be(i),i&&Mj.test(i)?i.replace(D2,YL):i}var x7=$i(function(i,l,f){return i+(f?" ":"")+l.toUpperCase()}),xm=oS("toUpperCase");function sT(i,l,f){return i=Be(i),l=f?n:l,l===n?BL(i)?KL(i):IL(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)}}),v7=mr(function(i,l){return ln(l,function(f){f=Wn(f),dr(i,f,dm(i[f],i))}),i});function b7(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 w7(i){return YR(fn(i,m))}function vm(i){return function(){return i}}function S7(i,l){return i==null||i!==i?l:i}var T7=lS(),C7=lS(!0);function Bt(i){return i}function bm(i){return Rw(typeof i=="function"?i:fn(i,m))}function E7(i){return Vw(fn(i,m))}function P7(i,l){return Bw(i,fn(l,m))}var A7=_e(function(i,l){return function(f){return Wo(f,i,l)}}),M7=_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,_=gr(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 O7(){return vt._===this&&(vt._=tR),this}function Sm(){}function $7(i){return i=Oe(i),_e(function(l){return Ww(l,i)})}var _7=Qh(Je),I7=Qh(cw),D7=Qh(Ch);function oT(i){return om(i)?Eh(Wn(i)):cF(i)}function N7(i){return function(l){return i==null?n:Os(i,l)}}var k7=uS(),j7=uS(!0);function Tm(){return[]}function Cm(){return!1}function L7(){return{}}function R7(){return""}function F7(){return!0}function V7(i,l){if(i=Oe(i),i<1||i>z)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 B7(i){return Me(i)?Je(i,Wn):Jt(i)?[i]:Rt(PS(Be(i)))}function W7(i){var l=++QL;return Be(i)+l}var U7=Kl(function(i,l){return i+l},0),z7=em("ceil"),G7=Kl(function(i,l){return i/l},1),Y7=em("floor");function H7(i){return i&&i.length?Wl(i,Bt,Fh):n}function q7(i,l){return i&&i.length?Wl(i,be(l,2),Fh):n}function K7(i){return dw(i,Bt)}function X7(i,l){return dw(i,be(l,2))}function Z7(i){return i&&i.length?Wl(i,Bt,Uh):n}function J7(i,l){return i&&i.length?Wl(i,be(l,2),Uh):n}var Q7=Kl(function(i,l){return i*l},1),eB=em("round"),tB=Kl(function(i,l){return i-l},0);function nB(i){return i&&i.length?Ah(i,Bt):0}function rB(i,l){return i&&i.length?Ah(i,be(l,2)):0}return E.after=E9,E.ary=LS,E.assign=dV,E.assignIn=ZS,E.assignInWith=lc,E.assignWith=hV,E.at=mV,E.before=RS,E.bind=dm,E.bindAll=v7,E.bindKey=FS,E.castArray=L9,E.chain=NS,E.chunk=YF,E.compact=HF,E.concat=qF,E.cond=b7,E.conforms=w7,E.constant=vm,E.countBy=n9,E.create=pV,E.curry=VS,E.curryRight=BS,E.debounce=WS,E.defaults=gV,E.defaultsDeep=yV,E.defer=P9,E.delay=A9,E.difference=KF,E.differenceBy=XF,E.differenceWith=ZF,E.drop=JF,E.dropRight=QF,E.dropRightWhile=e8,E.dropWhile=t8,E.fill=n8,E.filter=s9,E.flatMap=a9,E.flatMapDeep=l9,E.flatMapDepth=c9,E.flatten=$S,E.flattenDeep=r8,E.flattenDepth=s8,E.flip=M9,E.flow=T7,E.flowRight=C7,E.fromPairs=i8,E.functions=CV,E.functionsIn=EV,E.groupBy=u9,E.initial=a8,E.intersection=l8,E.intersectionBy=c8,E.intersectionWith=u8,E.invert=AV,E.invertBy=MV,E.invokeMap=d9,E.iteratee=bm,E.keyBy=h9,E.keys=gt,E.keysIn=Vt,E.map=nc,E.mapKeys=$V,E.mapValues=_V,E.matches=E7,E.matchesProperty=P7,E.memoize=sc,E.merge=IV,E.mergeWith=JS,E.method=A7,E.methodOf=M7,E.mixin=wm,E.negate=ic,E.nthArg=$7,E.omit=DV,E.omitBy=NV,E.once=O9,E.orderBy=m9,E.over=_7,E.overArgs=$9,E.overEvery=I7,E.overSome=D7,E.partial=hm,E.partialRight=US,E.partition=p9,E.pick=kV,E.pickBy=QS,E.property=oT,E.propertyOf=N7,E.pull=m8,E.pullAll=IS,E.pullAllBy=p8,E.pullAllWith=g8,E.pullAt=y8,E.range=k7,E.rangeRight=j7,E.rearg=_9,E.reject=x9,E.remove=x8,E.rest=I9,E.reverse=um,E.sampleSize=b9,E.set=LV,E.setWith=RV,E.shuffle=w9,E.slice=v8,E.sortBy=C9,E.sortedUniq=P8,E.sortedUniqBy=A8,E.split=a7,E.spread=D9,E.tail=M8,E.take=O8,E.takeRight=$8,E.takeRightWhile=_8,E.takeWhile=I8,E.tap=H8,E.throttle=N9,E.thru=tc,E.toArray=qS,E.toPairs=eT,E.toPairsIn=tT,E.toPath=B7,E.toPlainObject=XS,E.transform=FV,E.unary=k9,E.union=D8,E.unionBy=N8,E.unionWith=k8,E.uniq=j8,E.uniqBy=L8,E.uniqWith=R8,E.unset=VV,E.unzip=fm,E.unzipWith=DS,E.update=BV,E.updateWith=WV,E.values=Di,E.valuesIn=UV,E.without=F8,E.words=sT,E.wrap=j9,E.xor=V8,E.xorBy=B8,E.xorWith=W8,E.zip=U8,E.zipObject=z8,E.zipObjectDeep=G8,E.zipWith=Y8,E.entries=eT,E.entriesIn=tT,E.extend=ZS,E.extendWith=lc,wm(E,E),E.add=U7,E.attempt=iT,E.camelCase=HV,E.capitalize=nT,E.ceil=z7,E.clamp=zV,E.clone=R9,E.cloneDeep=V9,E.cloneDeepWith=B9,E.cloneWith=F9,E.conformsTo=W9,E.deburr=rT,E.defaultTo=S7,E.divide=G7,E.endsWith=qV,E.eq=wn,E.escape=KV,E.escapeRegExp=XV,E.every=r9,E.find=i9,E.findIndex=MS,E.findKey=xV,E.findLast=o9,E.findLastIndex=OS,E.findLastKey=vV,E.floor=Y7,E.forEach=kS,E.forEachRight=jS,E.forIn=bV,E.forInRight=wV,E.forOwn=SV,E.forOwnRight=TV,E.get=gm,E.gt=U9,E.gte=z9,E.has=PV,E.hasIn=ym,E.head=_S,E.identity=Bt,E.includes=f9,E.indexOf=o8,E.inRange=GV,E.invoke=OV,E.isArguments=Is,E.isArray=Me,E.isArrayBuffer=G9,E.isArrayLike=Ft,E.isArrayLikeObject=ct,E.isBoolean=Y9,E.isBuffer=Zr,E.isDate=H9,E.isElement=q9,E.isEmpty=K9,E.isEqual=X9,E.isEqualWith=Z9,E.isError=mm,E.isFinite=J9,E.isFunction=gr,E.isInteger=zS,E.isLength=oc,E.isMap=GS,E.isMatch=Q9,E.isMatchWith=eV,E.isNaN=tV,E.isNative=nV,E.isNil=sV,E.isNull=rV,E.isNumber=YS,E.isObject=rt,E.isObjectLike=ot,E.isPlainObject=qo,E.isRegExp=pm,E.isSafeInteger=iV,E.isSet=HS,E.isString=ac,E.isSymbol=Jt,E.isTypedArray=Ii,E.isUndefined=oV,E.isWeakMap=aV,E.isWeakSet=lV,E.join=f8,E.kebabCase=ZV,E.last=hn,E.lastIndexOf=d8,E.lowerCase=JV,E.lowerFirst=QV,E.lt=cV,E.lte=uV,E.max=H7,E.maxBy=q7,E.mean=K7,E.meanBy=X7,E.min=Z7,E.minBy=J7,E.stubArray=Tm,E.stubFalse=Cm,E.stubObject=L7,E.stubString=R7,E.stubTrue=F7,E.multiply=Q7,E.nth=h8,E.noConflict=O7,E.noop=Sm,E.now=rc,E.pad=e7,E.padEnd=t7,E.padStart=n7,E.parseInt=r7,E.random=YV,E.reduce=g9,E.reduceRight=y9,E.repeat=s7,E.replace=i7,E.result=jV,E.round=eB,E.runInContext=j,E.sample=v9,E.size=S9,E.snakeCase=o7,E.some=T9,E.sortedIndex=b8,E.sortedIndexBy=w8,E.sortedIndexOf=S8,E.sortedLastIndex=T8,E.sortedLastIndexBy=C8,E.sortedLastIndexOf=E8,E.startCase=l7,E.startsWith=c7,E.subtract=tB,E.sum=nB,E.sumBy=rB,E.template=u7,E.times=V7,E.toFinite=yr,E.toInteger=Oe,E.toLength=KS,E.toLower=f7,E.toNumber=mn,E.toSafeInteger=fV,E.toString=Be,E.toUpper=d7,E.trim=h7,E.trimEnd=m7,E.trimStart=p7,E.truncate=g7,E.unescape=y7,E.uniqueId=W7,E.upperCase=x7,E.upperFirst=xm,E.each=kS,E.eachRight=jS,E.first=_S,wm(E,function(){var i={};return Vn(E,function(l,f){ze.call(E.prototype,f)||(i[f]=l)}),i}(),{chain:!1}),E.VERSION=r,ln(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){E[i].placeholder=E}),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==de||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=E[y?"take"+(l=="last"?"Right":""):l],M=y||/^find/.test(l);w&&(E.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(E,zr([Ne],N));return y&&ce?je[0]:je};q&&f&&typeof H=="function"&&H.length!=1&&(L=q=!1);var ce=this.__chain__,ye=!!this.__actions__.length,Te=M&&!ce,$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,ce)}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);E.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=E[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=yR,ke.prototype.reverse=xR,ke.prototype.value=vR,E.prototype.at=q8,E.prototype.chain=K8,E.prototype.commit=X8,E.prototype.next=Z8,E.prototype.plant=Q8,E.prototype.reverse=e9,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=t9,E.prototype.first=E.prototype.head,ko&&(E.prototype[ko]=J8),E},Ci=XL();Cs?((Cs.exports=Ci)._=Ci,bh._=Ci):vt._=Ci}).call(o3)}(uo,uo.exports)),uo.exports}var hf=a3();/*!
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.
@@ -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:he.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]),he.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 qn=({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 P=0;P<v.length;P++){const D=Da(v[P]);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 P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=Da(R);m.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(Ex(P)),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(P=>{const D=Da(P),R=a&&!u?!1:h===v||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y3,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:P},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,P=!1,D=!1)=>(n||S(),C.schedule(I,P,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"],as=new Set(ni);function Rx(e,{layout:t,layoutId:n}){return as.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,Kn=(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=>Kn(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(as.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(as.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,Xn=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=>Kn(0,255,e),qf={...ri,transform:e=>Math.round(A5(e))},ls={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:ls.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=>ls.test(e)||Kf.test(e)||ii.test(e),parse:e=>ls.test(e)?ls.parse(e):ii.test(e)?ii.parse(e):Kf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ls.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 cs=e=>e*180/Math.PI,Zf=e=>{const t=cs(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=>cs(Math.atan(e[1])),skewY:e=>cs(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(cs(Math.atan2(e[6],e[5]))),rotateY:e=>Jf(cs(Math.atan2(-e[2],e[0]))),rotateZ:C1,rotate:C1,skewX:e=>cs(Math.atan(e[4])),skewY:e=>cs(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 us=new Set;let ed=!1,td=!1;function O1(){if(td){const e=Array.from(us).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,us.forEach(e=>e.complete()),us.clear()}function $1(){us.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?(us.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),us.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,us.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,ls,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),ls.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=Kn(nt.minDamping,nt.maxDamping,a),e=Kn(nt.minDuration,nt.maxDuration,Xn(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*Kn(.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:-Xn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Xn(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 P=ld(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&m||null,next:P=>{const D=C(P);if(x)c.done=P>=m;else{let R=0;b<1&&(R=P===0?Nn(S):z1(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(F1(I),rd),D=s1(R=>I.next(P*R).value,P,30);return P+"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=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 W=A(F),Q=C(F);p.done=Math.abs(W)<=d,p.value=p.done?v:Q};let P,D;const R=F=>{x(p.value)&&(P=F,D=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 W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&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(Kn(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 W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&(I=a)),C=Kn(0,1,Q)*m}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=za(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Xn(t.calculatedDuration):0}get time(){return Xn(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=Xn(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 Xn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Xn(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_:as.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),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=Q_(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,p.has(Y)&&(W=!0,p.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Df(z)&&Df(K)?$=!tv(z,K):$=z!==K,$?z!=null?de(Y):p.add(Y):z!==void 0&&p.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&m.push(...Q.map(Y=>({animation:Y,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 fs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rv(){return{animate:fs(!0),whileInView:fs(),whileHover:fs(),whileTap:fs(),whileDrag:fs(),whileFocus:fs(),exit:fs()}}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 ds(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&&ds(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=Xn(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)),Kn(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=Kn(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||ds(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}),ds(h.latestValues)&&ci(u,h.latestValues)}return ds(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||!ds(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 ds(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 P=I/1e3;tb(m.x,a.x,P),tb(m.y,a.y,P),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,P),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_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&&!ds(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 P=0;P<I;P++)d[v[P]]=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=as.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(as.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(as.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),Ue=()=>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}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(qn,{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(ys,{onClick:m,variant:"transparent",className:"px-24 py-10! text-lg!",children:c("cancel")}),s&&g.jsx(ys,{onClick:h,className:"px-24 py-16 text-lg!",children:c("confirm")})]})]})})})})})};/*!
663
+ `),()=>{document.head.removeChild(x)}},[t]),g.jsx(p3,{isPresent:t,childRef:s,sizeRef:o,children:he.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]),he.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 qn=({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 P=0;P<v.length;P++){const D=Da(v[P]);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 P=[...h];for(let D=0;D<v.length;D++){const R=v[D],F=Da(R);m.includes(F)||(P.splice(D,0,R),C.push(R))}return o==="wait"&&C.length&&(P=C),A(Ex(P)),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(P=>{const D=Da(P),R=a&&!u?!1:h===v||m.includes(D),F=()=>{if(S.has(D))S.set(D,!0);else return;let W=!0;S.forEach(Q=>{Q||(W=!1)}),W&&(I==null||I(),A(x.current),a&&(d==null||d()),r&&r())};return g.jsx(y3,{isPresent:R,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:o,onExitComplete:R?void 0:F,anchorX:c,children:P},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,P=!1,D=!1)=>(n||S(),C.schedule(I,P,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,Kn=(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=>Kn(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,Xn=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=>Kn(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=Kn(nt.minDamping,nt.maxDamping,a),e=Kn(nt.minDuration,nt.maxDuration,Xn(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*Kn(.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:-Xn(n.velocity||0)}),S=p||0,b=d/(2*Math.sqrt(u*h)),T=a-o,v=Xn(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 P=ld(v,b);C=D=>{const R=Math.exp(-b*v*D);return a-R*((S+b*v*T)/P*Math.sin(P*D)+T*Math.cos(P*D))}}else if(b===1)C=P=>a-Math.exp(-v*P)*(T+(S+v*T)*P);else{const P=v*Math.sqrt(b*b-1);C=D=>{const R=Math.exp(-b*v*D),F=Math.min(P*D,300);return a-R*((S+b*v*T)*Math.sinh(F)+P*T*Math.cosh(F))/P}}const I={calculatedDuration:x&&m||null,next:P=>{const D=C(P);if(x)c.done=P>=m;else{let R=0;b<1&&(R=P===0?Nn(S):z1(C,P,D));const F=Math.abs(R)<=r,W=Math.abs(a-D)<=s;c.done=F&&W}return c.value=c.done?a:D,c},toString:()=>{const P=Math.min(F1(I),rd),D=s1(R=>I.next(P*R).value,P,30);return P+"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=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 W=A(F),Q=C(F);p.done=Math.abs(W)<=d,p.value=p.done?v:Q};let P,D;const R=F=>{x(p.value)&&(P=F,D=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 W=!1;return!D&&P===void 0&&(W=!0,I(F),R(F)),P!==void 0&&F>=P?D.next(F-P):(!W&&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(Kn(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 W=Math.floor(F),Q=F%1;!Q&&F>=1&&(Q=1),Q===1&&W--,W=Math.min(W,x+1),!!(W%2)&&(S==="reverse"?(Q=1-Q,b&&(Q-=b/m)):S==="mirror"&&(I=a)),C=Kn(0,1,Q)*m}const P=A?{done:!1,value:u[0]}:I.next(C);c&&(P.value=c(P.value));let{done:D}=P;!A&&d!==null&&(D=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return R&&s!==void 0&&(P.value=za(u,this.options,s)),T&&T(P.value),R&&this.finish(),P}get duration(){const{resolved:t}=this;return t?Xn(t.calculatedDuration):0}get time(){return Xn(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=Xn(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 Xn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Xn(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),P=v===u?A.isActive:null;P===!1&&(S=T);let D=C===h[v]&&C!==d[v]&&I;if(D&&r&&e.manuallyAnimateOnMount&&(D=!1),A.protectedKeys={...x},!A.isActive&&P===null||!C&&!A.prevProp||Ra(C)||typeof C=="boolean")continue;const R=Q_(A.prevProp,C);let F=R||v===u&&A.isActive&&!D&&I||T>S&&I,W=!1;const Q=Array.isArray(C)?C:[C];let ee=Q.reduce(s(v),{});P===!1&&(ee={});const{prevResolvedValues:ae={}}=A,ge={...ae,...ee},de=Y=>{F=!0,p.has(Y)&&(W=!0,p.delete(Y)),A.needsAnimating[Y]=!0;const z=e.getValue(Y);z&&(z.liveStyle=!1)};for(const Y in ge){const z=ee[Y],K=ae[Y];if(x.hasOwnProperty(Y))continue;let $=!1;Df(z)&&Df(K)?$=!tv(z,K):$=z!==K,$?z!=null?de(Y):p.add(Y):z!==void 0&&p.has(Y)?de(Y):A.protectedKeys[Y]=!0}A.prevProp=C,A.prevResolvedValues=ee,A.isActive&&(x={...x,...ee}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(D&&R)||W)&&m.push(...Q.map(Y=>({animation:Y,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=Xn(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)),Kn(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=Kn(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 P=I/1e3;tb(m.x,a.x,P),tb(m.y,a.y,P),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,P),C&&GI(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=lt()),sn(C,this.relativeTarget)),b&&(this.animationValues=h,FI(h,d,this.latestValues,P,A,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_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 P=0;P<I;P++)d[v[P]]=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),Ue=()=>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}=Ue(),u={hidden:{opacity:0},visible:{opacity:1}},d={hidden:{opacity:0,scale:.8,y:-20},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",stiffness:300,damping:25}},exit:{opacity:0,scale:.8,y:20,transition:{duration:.2}}},h=()=>{s==null||s(),r()},m=()=>{o==null||o(),r()};return g.jsx(qn,{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=Jn(e);for(;Gt(t)&&!Zn(t);){if(Md(t))return t;if(Za(t))return null;t=Jn(t)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zn(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 Jn(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=Jn(e);return Zn(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 hs(e){return["top","bottom"].includes(Lr(e))?"y":"x"}function Dd(e){return Pb(hs(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=hs(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:P}=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}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):P.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},P=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:C,strategy:u}):A);return{top:(v.top-P.top+S.top)/I.y,bottom:(P.bottom-v.bottom+S.bottom)/I.y,left:(v.left-P.left+S.left)/I.x,right:(P.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],P=p[x]-o.reference[x],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=D?D[C]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[C]||o.floating[S]);const F=I/2-P/2,W=R/2-b[S]/2-1,Q=jr(m[v],W),ee=jr(m[A],W),ae=Q,ge=R-b[S]-ee,de=R/2-b[S]/2+F,le=_d(ae,de,ge),ue=!u.arrow&&di(s)!=null&&de!==le&&o.reference[S]/2-(de<ae?Q:ee)-b[S]/2<0,Y=ue?de<ae?de-ae:de-ge:0;return{[x]:p[x]+Y,data:{[x]:le,centerOffset:de-le-Y,...ue&&{alignmentOffset:Y}},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=hs(c),C=Lr(c)===c,I=await(u.isRTL==null?void 0:u.isRTL(d.floating)),P=p||(C||!b?[nl(c)]:iD(c)),D=S!=="none";!p&&D&&P.push(...aD(c,b,S,I));const R=[c,...P],F=await kd(t,T),W=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&W.push(F[v]),m){const de=sD(s,a,I);W.push(F[de[0]],F[de[1]])}if(Q=[...Q,{placement:s,overflows:W}],!W.every(de=>de<=0)){var ee,ae;const de=(((ee=o.flip)==null?void 0:ee.index)||0)+1,le=R[de];if(le)return{data:{index:de,overflows:Q},reset:{placement:le}};let ue=(ae=Q.filter(Y=>Y.overflows[0]<=0).sort((Y,z)=>Y.overflows[1]-z.overflows[1])[0])==null?void 0:ae.placement;if(!ue)switch(x){case"bestFit":{var ge;const Y=(ge=Q.filter(z=>{if(D){const K=hs(z.placement);return K===A||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,$)=>K+$,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:ge[0];Y&&(ue=Y);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=hs(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=hs(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=hs(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),P=jr(S-h[v],C),D=!t.middlewareData.shift;let R=I,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=A),D&&!p){const Q=Yt(h.left,0),ee=Yt(h.right,0),ae=Yt(h.top,0),ge=Yt(h.bottom,0);x?F=S-2*(Q!==0||ee!==0?Q+ee:Yt(h.left,h.right)):R=b-2*(ae!==0||ge!==0?ae+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:R});const W=await a.getDimensions(c.floating);return S!==W.width||b!==W.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 ms(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:ms(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=ms(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=ms(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=Jn(e);return n===t||!it(n)||Zn(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?Jn(e):e;for(;it(a)&&!Zn(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=Jn(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=ms(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=ms(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=Jn(e);for(;s&&!Zn(s);){if(it(s)&&!Rd(s))return s;s=Jn(s)}return n}let r=Nb(e,t);for(;r&&X6(r)&&Rd(r);)r=Nb(r,t);return r&&Zn(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 P(D){const R=D[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(P,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return a(!0),o}function Qn(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?ms(e):null;u&&T();function T(){const v=ms(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=he.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]=he.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,x]=he.useState(r);il(p,r)||x(r);const[S,b]=he.useState(null),[T,v]=he.useState(null),A=he.useCallback(z=>{z!==D.current&&(D.current=z,b(z))},[]),C=he.useCallback(z=>{z!==R.current&&(R.current=z,v(z))},[]),I=o||S,P=a||T,D=he.useRef(null),R=he.useRef(null),F=he.useRef(h),W=u!=null,Q=Fd(u),ee=Fd(s),ae=Fd(d),ge=he.useCallback(()=>{if(!D.current||!R.current)return;const z={placement:t,strategy:n,middleware:p};ee.current&&(z.platform=ee.current),kD(D.current,R.current,z).then(K=>{const $={...K,isPositioned:ae.current!==!1};de.current&&!il(F.current,$)&&(F.current=$,cT.flushSync(()=>{m($)}))})},[p,t,n,ee,ae]);sl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(z=>({...z,isPositioned:!1})))},[d]);const de=he.useRef(!1);sl(()=>(de.current=!0,()=>{de.current=!1}),[]),sl(()=>{if(I&&(D.current=I),P&&(R.current=P),I&&P){if(Q.current)return Q.current(I,P,ge);ge()}},[I,P,ge,Q,W]);const le=he.useMemo(()=>({reference:D,floating:R,setReference:A,setFloating:C}),[A,C]),ue=he.useMemo(()=>({reference:I,floating:P}),[I,P]),Y=he.useMemo(()=>{const z={position:n,left:0,top:0};if(!ue.floating)return z;const K=Fb(ue.floating,h.x),$=Fb(ue.floating,h.y);return c?{...z,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 he.useMemo(()=>({...h,update:ge,refs:le,elements:ue,floatingStyles:Y}),[h,ge,le,ue,Y])}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):{}}}},er=(e,t)=>({..._D(e),options:[e,t]}),tr=(e,t)=>({...ID(e),options:[e,t]}),nr=(e,t)=>({...DD(e),options:[e,t]}),Rr=(e,t)=>({...ND(e),options:[e,t]}),ps=(e,t)=>({...LD(e),options:[e,t]}),Vb={...he},RD=Vb.useInsertionEffect||(e=>e());function mi(e){const t=he.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return RD(()=>{t.current=e}),he.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]=he.useState(()=>Bb?Wb():void 0);return pi(()=>{e==null&&t(Wb())},[]),he.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=he.createContext(null),GD=he.createContext(null),YD=()=>{var e;return((e=he.useContext(zD))==null?void 0:e.id)||null},Ub=()=>he.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 rr(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=he.useRef(),x=he.useRef(!1),S=he.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 he.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 sr(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=he.useRef(!1),C=he.useRef(!1),{escapeKey:I,outsidePress:P}=Yb(x),{escapeKey:D,outsidePress:R}=Yb(S),F=he.useRef(!1),W=mi(le=>{var ue;if(!n||!a||!c||le.key!=="Escape"||F.current)return;const Y=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,z=b?Bd(b.nodesRef.current,Y):[];if(!I&&(le.stopPropagation(),z.length>0)){let K=!0;if(z.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")}),Q=mi(le=>{var ue;const Y=()=>{var z;W(le),(z=Io(le))==null||z.removeEventListener("keydown",Y)};(ue=Io(le))==null||ue.addEventListener("keydown",Y)}),ee=mi(le=>{var ue;const Y=A.current;A.current=!1;const z=C.current;if(C.current=!1,d==="click"&&z||Y||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&&!Zn(X);){const J=Jn(X);if(Zn(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)&&de){const J=Zn(K),oe=on(K),se=/auto|scroll/,fe=J||se.test(oe.overflowX),Ee=J||se.test(oe.overflowY),Ve=fe&&K.clientWidth>0&&K.scrollWidth>K.clientWidth,ie=Ee&&K.clientHeight>0&&K.scrollHeight>K.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?le.offsetX<=K.offsetWidth-K.clientWidth:le.offsetX>K.clientWidth),ft=Ve&&le.offsetY>K.clientHeight;if(De||ft)return}const U=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,re=b&&Bd(b.nodesRef.current,U).some(J=>{var oe;return $d(le,(oe=J.context)==null?void 0:oe.elements.floating)});if($d(le,s.floating)||$d(le,s.domReference)||re)return;const B=b?Bd(b.nodesRef.current,U):[];if(B.length>0){let J=!0;if(B.forEach(oe=>{var se;if((se=oe.context)!=null&&se.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,le,"outside-press")}),ae=mi(le=>{var ue;const Y=()=>{var z;ee(le),(z=Io(le))==null||z.removeEventListener(d,Y)};(ue=Io(le))==null||ue.addEventListener(d,Y)});he.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=I,o.current.__outsidePressBubbles=P;let le=-1;function ue(k){r(!1,k,"ancestor-scroll")}function Y(){window.clearTimeout(le),F.current=!0}function z(){le=window.setTimeout(()=>{F.current=!1},Ja()?5:0)}const K=Eb(s.floating);c&&(K.addEventListener("keydown",D?Q:W,D),K.addEventListener("compositionstart",Y),K.addEventListener("compositionend",z)),v&&K.addEventListener(d,R?ae: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 X;return k!==((X=K.defaultView)==null?void 0:X.visualViewport)}),$.forEach(k=>{k.addEventListener("scroll",ue,{passive:!0})}),()=>{c&&(K.removeEventListener("keydown",D?Q:W,D),K.removeEventListener("compositionstart",Y),K.removeEventListener("compositionend",z)),v&&K.removeEventListener(d,R?ae:ee,R),$.forEach(k=>{k.removeEventListener("scroll",ue)}),window.clearTimeout(le)}},[o,s,c,v,d,n,r,p,a,I,P,W,D,Q,ee,R,ae]),he.useEffect(()=>{A.current=!1},[v,d]);const ge=he.useMemo(()=>({onKeyDown:W,...h&&{[KD[m]]:le=>{r(!1,le.nativeEvent,"reference-press")},...m!=="click"&&{onClick(le){r(!1,le.nativeEvent,"reference-press")}}}}),[W,r,h,m]),de=he.useMemo(()=>({onKeyDown:W,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[XD[d]]:()=>{A.current=!0}}),[W,d]);return he.useMemo(()=>a?{reference:ge,floating:de}:{},[a,ge,de])}function ZD(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=BD(),o=he.useRef({}),[a]=he.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]=he.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=he.useMemo(()=>({setPositionReference:d}),[]),p=he.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return he.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:s,refs:m}),[t,h,p,a,s,m])}function ir(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]=he.useState(null),[c,u]=he.useState(null),h=(s==null?void 0:s.domReference)||o,m=he.useRef(null),p=Ub();pi(()=>{h&&(m.current=h)},[h]);const x=jD({...e,elements:{...s,...c&&{reference:c}}}),S=he.useCallback(C=>{const I=it(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u(I),x.refs.setReference(I)},[x.refs]),b=he.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=he.useMemo(()=>({...x.refs,setReference:b,setPositionReference:S,domReference:m}),[x.refs,b,S]),v=he.useMemo(()=>({...x.elements,domReference:h}),[x.elements,h]),A=he.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)}),he.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 or(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=he.useCallback(c=>Wd(c,e,"reference"),t),o=he.useCallback(c=>Wd(c,e,"floating"),n),a=he.useCallback(c=>Wd(c,e,"item"),r);return he.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]=he.useState(e);return e&&!n&&r(!0),he.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]=he.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 ar(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=he.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]=he.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 P=gi(v.current,d),D=gi(C.current,d),R=gi(I.current,d),F=gi(A.current,d)||Object.keys(P).reduce((W,Q)=>(W[Q]="",W),{});if(T==="initial"&&S(W=>({transitionProperty:W.transitionProperty,...R,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(Kb).join(","),transitionDuration:m+"ms",...R,...F}),T==="close"){const W=D||P;S({transitionProperty:Object.keys(W).map(Kb).join(","),transitionDuration:p+"ms",...R,...W})}},[p,C,v,A,I,m,T,d]),{isMounted:b,styles:x}}const gs=({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}=ir({strategy:a,open:m,onOpenChange:W=>{!W&&!e&&x()},middleware:[er(u),nr(),tr({padding:d})],whileElementsMounted:Qn,placement:s}),C=rr(A,{enabled:!1}),I=sr(A,{enabled:!1}),{getReferenceProps:P,getFloatingProps:D}=or([C,I]),{isMounted:R,styles:F}=ar(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,...P(),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},...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}=Ue(),C=sN(c),[I,P]=O.useState(!1),[D,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 z=M$(u);(!r||z>=r)&&d(z)},10)},W=()=>{v(1),setTimeout(()=>{d(sx(u,1))},10)},Q=z=>{if(s&&z>s||r&&z<r)return;const K=gx(yx(xx(z,0),0),S==="AM"?p%12:p%12+12);m(K),t(K)},ee=z=>{x(z);const K=gx(yx(xx(h,0),0),S==="AM"?z%12:z%12+12);m(K),t(K),P(!1)},ae=z=>{b(z)},ge=()=>{const z=new Date,K=20,$=5,[k,X]=O.useState(()=>Array.from({length:K+1},(J,oe)=>{const se=new Date(z.getFullYear(),z.getMonth()-oe,1);return{name:_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase()),index:se.getMonth(),year:se.getFullYear(),displayName:`${_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase())} ${se.getFullYear()}`}})),U=O.useRef(null),re=O.useRef(null);O.useEffect(()=>{U.current&&U.current.disconnect(),U.current=new IntersectionObserver(J=>{J[0].isIntersecting&&X(oe=>{const se=oe[oe.length-1],fe=new Date(se.year,se.index-1,1),Ee=Array.from({length:$},(Ve,ie)=>{const pe=new Date(fe.getFullYear(),fe.getMonth()-ie,1);return{name:_n(pe,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${_n(pe,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ee]})}),re.current&&U.current.observe(re.current)},[k]);const B=(J,oe)=>{const se=new Date(u);se.setMonth(J),se.setFullYear(oe),(!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((J,oe)=>{const se=oe===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:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},de=()=>g.jsxs("div",{className:"flex justify-between items-center mb-8",children:[g.jsx(gs,{open:D,onClose:()=>R(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:g.jsxs("button",{onClick:()=>R(!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(/^./,z=>z.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:W})]})]}),le=()=>{const z=Ks(OO(u)),K=_O(PO(u)),$=MO({start:z,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,U)=>{const re=ax(X,h),B=P$(X,u),J=A$(X),oe=X<k,se=X>k,fe=!B||oe&&!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=Jn(e);for(;Gt(t)&&!Zn(t);){if(Md(t))return t;if(Za(t))return null;t=Jn(t)}return null}function Ja(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zn(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 Jn(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=Jn(e);return Zn(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:P}=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}},P&&S<=50&&(S++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(d=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):P.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},P=rl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:C,strategy:u}):A);return{top:(v.top-P.top+S.top)/I.y,bottom:(P.bottom-v.bottom+S.bottom)/I.y,left:(v.left-P.left+S.left)/I.x,right:(P.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],P=p[x]-o.reference[x],D=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=D?D[C]:0;(!R||!await(a.isElement==null?void 0:a.isElement(D)))&&(R=c.floating[C]||o.floating[S]);const F=I/2-P/2,W=R/2-b[S]/2-1,Q=jr(m[v],W),ee=jr(m[A],W),ae=Q,ge=R-b[S]-ee,de=R/2-b[S]/2+F,le=_d(ae,de,ge),ue=!u.arrow&&di(s)!=null&&de!==le&&o.reference[S]/2-(de<ae?Q:ee)-b[S]/2<0,Y=ue?de<ae?de-ae:de-ge:0;return{[x]:p[x]+Y,data:{[x]:le,centerOffset:de-le-Y,...ue&&{alignmentOffset:Y}},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)),P=p||(C||!b?[nl(c)]:iD(c)),D=S!=="none";!p&&D&&P.push(...aD(c,b,S,I));const R=[c,...P],F=await kd(t,T),W=[];let Q=((r=o.flip)==null?void 0:r.overflows)||[];if(h&&W.push(F[v]),m){const de=sD(s,a,I);W.push(F[de[0]],F[de[1]])}if(Q=[...Q,{placement:s,overflows:W}],!W.every(de=>de<=0)){var ee,ae;const de=(((ee=o.flip)==null?void 0:ee.index)||0)+1,le=R[de];if(le)return{data:{index:de,overflows:Q},reset:{placement:le}};let ue=(ae=Q.filter(Y=>Y.overflows[0]<=0).sort((Y,z)=>Y.overflows[1]-z.overflows[1])[0])==null?void 0:ae.placement;if(!ue)switch(x){case"bestFit":{var ge;const Y=(ge=Q.filter(z=>{if(D){const K=ms(z.placement);return K===A||K==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(K=>K>0).reduce((K,$)=>K+$,0)]).sort((z,K)=>z[1]-K[1])[0])==null?void 0:ge[0];Y&&(ue=Y);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),P=jr(S-h[v],C),D=!t.middlewareData.shift;let R=I,F=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=A),D&&!p){const Q=Yt(h.left,0),ee=Yt(h.right,0),ae=Yt(h.top,0),ge=Yt(h.bottom,0);x?F=S-2*(Q!==0||ee!==0?Q+ee:Yt(h.left,h.right)):R=b-2*(ae!==0||ge!==0?ae+ge:Yt(h.top,h.bottom))}await u({...t,availableWidth:F,availableHeight:R});const W=await a.getDimensions(c.floating);return S!==W.width||b!==W.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=Jn(e);return n===t||!it(n)||Zn(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?Jn(e):e;for(;it(a)&&!Zn(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=Jn(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=Jn(e);for(;s&&!Zn(s);){if(it(s)&&!Rd(s))return s;s=Jn(s)}return n}let r=Nb(e,t);for(;r&&X6(r)&&Rd(r);)r=Nb(r,t);return r&&Zn(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 P(D){const R=D[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(P,{...C,root:s.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return a(!0),o}function Qn(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=he.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]=he.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,x]=he.useState(r);il(p,r)||x(r);const[S,b]=he.useState(null),[T,v]=he.useState(null),A=he.useCallback(z=>{z!==D.current&&(D.current=z,b(z))},[]),C=he.useCallback(z=>{z!==R.current&&(R.current=z,v(z))},[]),I=o||S,P=a||T,D=he.useRef(null),R=he.useRef(null),F=he.useRef(h),W=u!=null,Q=Fd(u),ee=Fd(s),ae=Fd(d),ge=he.useCallback(()=>{if(!D.current||!R.current)return;const z={placement:t,strategy:n,middleware:p};ee.current&&(z.platform=ee.current),kD(D.current,R.current,z).then(K=>{const $={...K,isPositioned:ae.current!==!1};de.current&&!il(F.current,$)&&(F.current=$,cT.flushSync(()=>{m($)}))})},[p,t,n,ee,ae]);sl(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,m(z=>({...z,isPositioned:!1})))},[d]);const de=he.useRef(!1);sl(()=>(de.current=!0,()=>{de.current=!1}),[]),sl(()=>{if(I&&(D.current=I),P&&(R.current=P),I&&P){if(Q.current)return Q.current(I,P,ge);ge()}},[I,P,ge,Q,W]);const le=he.useMemo(()=>({reference:D,floating:R,setReference:A,setFloating:C}),[A,C]),ue=he.useMemo(()=>({reference:I,floating:P}),[I,P]),Y=he.useMemo(()=>{const z={position:n,left:0,top:0};if(!ue.floating)return z;const K=Fb(ue.floating,h.x),$=Fb(ue.floating,h.y);return c?{...z,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 he.useMemo(()=>({...h,update:ge,refs:le,elements:ue,floatingStyles:Y}),[h,ge,le,ue,Y])}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):{}}}},er=(e,t)=>({..._D(e),options:[e,t]}),tr=(e,t)=>({...ID(e),options:[e,t]}),nr=(e,t)=>({...DD(e),options:[e,t]}),Rr=(e,t)=>({...ND(e),options:[e,t]}),gs=(e,t)=>({...LD(e),options:[e,t]}),Vb={...he},RD=Vb.useInsertionEffect||(e=>e());function mi(e){const t=he.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return RD(()=>{t.current=e}),he.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]=he.useState(()=>Bb?Wb():void 0);return pi(()=>{e==null&&t(Wb())},[]),he.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=he.createContext(null),GD=he.createContext(null),YD=()=>{var e;return((e=he.useContext(zD))==null?void 0:e.id)||null},Ub=()=>he.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 rr(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=he.useRef(),x=he.useRef(!1),S=he.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 he.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 sr(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=he.useRef(!1),C=he.useRef(!1),{escapeKey:I,outsidePress:P}=Yb(x),{escapeKey:D,outsidePress:R}=Yb(S),F=he.useRef(!1),W=mi(le=>{var ue;if(!n||!a||!c||le.key!=="Escape"||F.current)return;const Y=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,z=b?Bd(b.nodesRef.current,Y):[];if(!I&&(le.stopPropagation(),z.length>0)){let K=!0;if(z.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")}),Q=mi(le=>{var ue;const Y=()=>{var z;W(le),(z=Io(le))==null||z.removeEventListener("keydown",Y)};(ue=Io(le))==null||ue.addEventListener("keydown",Y)}),ee=mi(le=>{var ue;const Y=A.current;A.current=!1;const z=C.current;if(C.current=!1,d==="click"&&z||Y||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&&!Zn(X);){const J=Jn(X);if(Zn(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)&&de){const J=Zn(K),oe=on(K),se=/auto|scroll/,fe=J||se.test(oe.overflowX),Ee=J||se.test(oe.overflowY),Ve=fe&&K.clientWidth>0&&K.scrollWidth>K.clientWidth,ie=Ee&&K.clientHeight>0&&K.scrollHeight>K.clientHeight,pe=oe.direction==="rtl",De=ie&&(pe?le.offsetX<=K.offsetWidth-K.clientWidth:le.offsetX>K.clientWidth),ft=Ve&&le.offsetY>K.clientHeight;if(De||ft)return}const U=(ue=o.current.floatingContext)==null?void 0:ue.nodeId,re=b&&Bd(b.nodesRef.current,U).some(J=>{var oe;return $d(le,(oe=J.context)==null?void 0:oe.elements.floating)});if($d(le,s.floating)||$d(le,s.domReference)||re)return;const B=b?Bd(b.nodesRef.current,U):[];if(B.length>0){let J=!0;if(B.forEach(oe=>{var se;if((se=oe.context)!=null&&se.open&&!oe.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,le,"outside-press")}),ae=mi(le=>{var ue;const Y=()=>{var z;ee(le),(z=Io(le))==null||z.removeEventListener(d,Y)};(ue=Io(le))==null||ue.addEventListener(d,Y)});he.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=I,o.current.__outsidePressBubbles=P;let le=-1;function ue(k){r(!1,k,"ancestor-scroll")}function Y(){window.clearTimeout(le),F.current=!0}function z(){le=window.setTimeout(()=>{F.current=!1},Ja()?5:0)}const K=Eb(s.floating);c&&(K.addEventListener("keydown",D?Q:W,D),K.addEventListener("compositionstart",Y),K.addEventListener("compositionend",z)),v&&K.addEventListener(d,R?ae: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 X;return k!==((X=K.defaultView)==null?void 0:X.visualViewport)}),$.forEach(k=>{k.addEventListener("scroll",ue,{passive:!0})}),()=>{c&&(K.removeEventListener("keydown",D?Q:W,D),K.removeEventListener("compositionstart",Y),K.removeEventListener("compositionend",z)),v&&K.removeEventListener(d,R?ae:ee,R),$.forEach(k=>{k.removeEventListener("scroll",ue)}),window.clearTimeout(le)}},[o,s,c,v,d,n,r,p,a,I,P,W,D,Q,ee,R,ae]),he.useEffect(()=>{A.current=!1},[v,d]);const ge=he.useMemo(()=>({onKeyDown:W,...h&&{[KD[m]]:le=>{r(!1,le.nativeEvent,"reference-press")},...m!=="click"&&{onClick(le){r(!1,le.nativeEvent,"reference-press")}}}}),[W,r,h,m]),de=he.useMemo(()=>({onKeyDown:W,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[XD[d]]:()=>{A.current=!0}}),[W,d]);return he.useMemo(()=>a?{reference:ge,floating:de}:{},[a,ge,de])}function ZD(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=BD(),o=he.useRef({}),[a]=he.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]=he.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=he.useMemo(()=>({setPositionReference:d}),[]),p=he.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return he.useMemo(()=>({dataRef:o,open:t,onOpenChange:h,elements:p,events:a,floatingId:s,refs:m}),[t,h,p,a,s,m])}function ir(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]=he.useState(null),[c,u]=he.useState(null),h=(s==null?void 0:s.domReference)||o,m=he.useRef(null),p=Ub();pi(()=>{h&&(m.current=h)},[h]);const x=jD({...e,elements:{...s,...c&&{reference:c}}}),S=he.useCallback(C=>{const I=it(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;u(I),x.refs.setReference(I)},[x.refs]),b=he.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=he.useMemo(()=>({...x.refs,setReference:b,setPositionReference:S,domReference:m}),[x.refs,b,S]),v=he.useMemo(()=>({...x.elements,domReference:h}),[x.elements,h]),A=he.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)}),he.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 or(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=he.useCallback(c=>Wd(c,e,"reference"),t),o=he.useCallback(c=>Wd(c,e,"floating"),n),a=he.useCallback(c=>Wd(c,e,"item"),r);return he.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]=he.useState(e);return e&&!n&&r(!0),he.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]=he.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 ar(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=he.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]=he.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 P=gi(v.current,d),D=gi(C.current,d),R=gi(I.current,d),F=gi(A.current,d)||Object.keys(P).reduce((W,Q)=>(W[Q]="",W),{});if(T==="initial"&&S(W=>({transitionProperty:W.transitionProperty,...R,...P})),T==="open"&&S({transitionProperty:Object.keys(F).map(Kb).join(","),transitionDuration:m+"ms",...R,...F}),T==="close"){const W=D||P;S({transitionProperty:Object.keys(W).map(Kb).join(","),transitionDuration:p+"ms",...R,...W})}},[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}=ir({strategy:a,open:m,onOpenChange:W=>{!W&&!e&&x()},middleware:[er(u),nr(),tr({padding:d})],whileElementsMounted:Qn,placement:s}),C=rr(A,{enabled:!1}),I=sr(A,{enabled:!1}),{getReferenceProps:P,getFloatingProps:D}=or([C,I]),{isMounted:R,styles:F}=ar(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,...P(),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},...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}=Ue(),C=sN(c),[I,P]=O.useState(!1),[D,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 z=M$(u);(!r||z>=r)&&d(z)},10)},W=()=>{v(1),setTimeout(()=>{d(sx(u,1))},10)},Q=z=>{if(s&&z>s||r&&z<r)return;const K=gx(yx(xx(z,0),0),S==="AM"?p%12:p%12+12);m(K),t(K)},ee=z=>{x(z);const K=gx(yx(xx(h,0),0),S==="AM"?z%12:z%12+12);m(K),t(K),P(!1)},ae=z=>{b(z)},ge=()=>{const z=new Date,K=20,$=5,[k,X]=O.useState(()=>Array.from({length:K+1},(J,oe)=>{const se=new Date(z.getFullYear(),z.getMonth()-oe,1);return{name:_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase()),index:se.getMonth(),year:se.getFullYear(),displayName:`${_n(se,"MMMM",{locale:Js}).replace(/^./,fe=>fe.toUpperCase())} ${se.getFullYear()}`}})),U=O.useRef(null),re=O.useRef(null);O.useEffect(()=>{U.current&&U.current.disconnect(),U.current=new IntersectionObserver(J=>{J[0].isIntersecting&&X(oe=>{const se=oe[oe.length-1],fe=new Date(se.year,se.index-1,1),Ee=Array.from({length:$},(Ve,ie)=>{const pe=new Date(fe.getFullYear(),fe.getMonth()-ie,1);return{name:_n(pe,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase()),index:pe.getMonth(),year:pe.getFullYear(),displayName:`${_n(pe,"MMMM",{locale:Js}).replace(/^./,De=>De.toUpperCase())} ${pe.getFullYear()}`}});return[...oe,...Ee]})}),re.current&&U.current.observe(re.current)},[k]);const B=(J,oe)=>{const se=new Date(u);se.setMonth(J),se.setFullYear(oe),(!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((J,oe)=>{const se=oe===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:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="#F3F4F6")},onMouseLeave:fe=>{u.getMonth()===J.index&&u.getFullYear()===J.year||(fe.currentTarget.style.backgroundColor="transparent")},children:J.displayName},`${J.name}-${J.year}-${oe}`)})})},de=()=>g.jsxs("div",{className:"flex justify-between items-center mb-8",children:[g.jsx(ys,{open:D,onClose:()=>R(!1),component:ge,placement:"bottom",className:"!p-0 overflow-hidden bg-light",strategy:"fixed",children:g.jsxs("button",{onClick:()=>R(!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(/^./,z=>z.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:W})]})]}),le=()=>{const z=Ks(OO(u)),K=_O(PO(u)),$=MO({start:z,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,U)=>{const re=ax(X,h),B=P$(X,u),J=A$(X),oe=X<k,se=X>k,fe=!B||oe&&!a||se&&!o||r&&X<r||s&&X>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
  ${fe?"text-gray-400 pointer-events-none":"cursor-pointer"}
670
- `,onClick:()=>!fe&&Q(X),initial:!1,animate:{backgroundColor:re?C.primaryLight:"transparent",color:re?C.textLight:J?C.text:fe?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!fe&&!re?{backgroundColor:C.hoverLight}:{},whileTap:fe?{}:{backgroundColor:re?C.primaryDark:C.hoverLight},children:_n(X,"d")},U)})})},ue=()=>{const z=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:z.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(gs,{open:I,onClose:()=>P(!1),component:K,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:g.jsx(tN,{setHourMenuOpen:P,hourMenuOpen:I,selectedHour:p})}),g.jsx(eN,{selectedPeriod:S,handlePeriodChange:ae,colorVariants:C})]})]})},Y={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return g.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[de(),g.jsx(qn,{initial:!1,mode:"popLayout",children:g.jsx(st.div,{variants:Y,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:le()},_n(u,"yyyy-MM"))}),n&&ue()]})},al=({label:e,onChange:t,value:n,name:r,error:s,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="md",leftSide:h,rightSide:m,...p})=>{const{t:x}=Ue(),b={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"}}[d];return g.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${s&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:r,className:`
670
+ `,onClick:()=>!fe&&Q(X),initial:!1,animate:{backgroundColor:re?C.primaryLight:"transparent",color:re?C.textLight:J?C.text:fe?"#9CA3AF":"#000000"},transition:{duration:.2,ease:"easeInOut",backgroundColor:{duration:.2,ease:"easeOut"}},whileHover:!fe&&!re?{backgroundColor:C.hoverLight}:{},whileTap:fe?{}:{backgroundColor:re?C.primaryDark:C.hoverLight},children:_n(X,"d")},U)})})},ue=()=>{const z=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:z.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:()=>P(!1),component:K,placement:"bottom",className:"!p-0 overflow-hidden",strategy:"fixed",children:g.jsx(tN,{setHourMenuOpen:P,hourMenuOpen:I,selectedHour:p})}),g.jsx(eN,{selectedPeriod:S,handlePeriodChange:ae,colorVariants:C})]})]})},Y={slideNextEnter:{x:300,opacity:0},slidePrevEnter:{x:-300,opacity:0},center:{x:0,opacity:1,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slideNextExit:{x:-300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}},slidePrevExit:{x:300,opacity:0,transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.2}}}};return g.jsxs("div",{className:"rounded-3xl max-w-[300px] mx-auto bg-white p-24 relative overflow-hidden",children:[de(),g.jsx(qn,{initial:!1,mode:"popLayout",children:g.jsx(st.div,{variants:Y,initial:T===1?"slideNextEnter":T===-1?"slidePrevEnter":!1,animate:"center",exit:T===1?"slideNextExit":"slidePrevExit",className:"w-full",children:le()},_n(u,"yyyy-MM"))}),n&&ue()]})},al=({label:e,onChange:t,value:n,name:r,error:s,placeholder:o,className:a="",disabled:c=!1,disabledInput:u=!1,size:d="md",leftSide:h,rightSide:m,...p})=>{const{t:x}=Ue(),b={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"}}[d];return g.jsxs("label",{className:`flex flex-col group select-none ${b.gap} ${c&&"cursor-not-allowed"} ${a}`,htmlFor:r,children:[e&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${s&&"!text-red-500"} ${b.label} ${c&&"text-gray-300"}`,children:e}),g.jsxs("label",{htmlFor:r,className:`
671
671
  flex items-center justify-between gap-8 bg-light
672
672
  ${b.container} ${s&&"!border-red-500"} rounded-full border
673
673
  ${n&&!c?"border-blue-200":"border-blue-100"}
@@ -677,7 +677,7 @@ 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:[h&&h,g.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${b.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),m&&m]}),s&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:x(s,{x:x(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})=>{const{field:{value:d,onChange:h,onBlur:m},fieldState:{error:p}}=vr.useController({name:t,control:e}),{t:x}=Ue(),S=x(t),b=x(s),[T,v]=O.useState(!1),[A,C]=O.useState("");O.useEffect(()=>{d instanceof Date&&!isNaN(d.getTime())?C(Xb(d)):C("")},[d]);const I=Zb(A),P=R=>{const F=R.replace(/\D/g,"").slice(0,8),W=[];F.length>0&&W.push(F.slice(0,2)),F.length>2&&W.push(F.slice(2,4)),F.length>4&&W.push(F.slice(4,8));const Q=W.join("/");if(C(Q),v(!1),Q.length===10){const ee=Zb(Q);h(ee)}},D=()=>{h(null),C("")};return g.jsx(gs,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>v(!1),className:"p-0!",component:g.jsx(Ud,{date:I||new Date,onDateChange:R=>{C(Xb(R)),h(R),v(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:g.jsx(al,{size:u,onBlur:m,name:b||S,label:r,value:A,onFocus:R=>{R.preventDefault(),v(!0)},disabledInput:!0,onChange:R=>P(R),placeholder:o,error:p==null?void 0:p.message,rightSide:!!I&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:D})})})},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}=Ue();return g.jsx(qn,{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(ys,{size:"lg",onClick:m,variant:"transparent",children:p("cancel")}),!!s&&g.jsx(ys,{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}=Ue(),[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
680
+ `,children:[h&&h,g.jsx("input",{...p,id:r,name:r,disabled:c,placeholder:o,value:n,onChange:T=>{t(T.target.value)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${b.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${u&&"pointer-events-none !select-none !caret-transparent"}`}),m&&m]}),s&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${b.error}`,children:x(s,{x:x(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})=>{const{field:{value:d,onChange:h,onBlur:m},fieldState:{error:p}}=vr.useController({name:t,control:e}),{t:x}=Ue(),S=x(t),b=x(s),[T,v]=O.useState(!1),[A,C]=O.useState("");O.useEffect(()=>{d instanceof Date&&!isNaN(d.getTime())?C(Xb(d)):C("")},[d]);const I=Zb(A),P=R=>{const F=R.replace(/\D/g,"").slice(0,8),W=[];F.length>0&&W.push(F.slice(0,2)),F.length>2&&W.push(F.slice(2,4)),F.length>4&&W.push(F.slice(4,8));const Q=W.join("/");if(C(Q),v(!1),Q.length===10){const ee=Zb(Q);h(ee)}},D=()=>{h(null),C("")};return g.jsx(ys,{open:T,strategy:"fixed",padding:0,offset:0,onClose:()=>v(!1),className:"p-0!",component:g.jsx(Ud,{date:I||new Date,onDateChange:R=>{C(Xb(R)),h(R),v(!1)},showTimeSelector:n,futureDates:a,pastDates:c}),children:g.jsx(al,{size:u,onBlur:m,name:b||S,label:r,value:A,onFocus:R=>{R.preventDefault(),v(!0)},disabledInput:!0,onChange:R=>P(R),placeholder:o,error:p==null?void 0:p.message,rightSide:!!I&&g.jsx(Pe,{icon:tx,className:"text-gray-500 cursor-pointer",onClick:D})})})},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}=Ue();return g.jsx(qn,{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}=Ue(),[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
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(qn,{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}=Ue(),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 P=Math.min(I+C,99),D=Math.max(0,Math.round((100-P)/10));return m(D),P})},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:h3,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:d3})}),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:u3})})]}),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:`
@@ -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(qn,{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}=Ue(),{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}=Ue(),{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}=Ue(),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}=Ue(),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),P=[];I.length>0&&P.push(I.slice(0,2)),I.length>2&&P.push(I.slice(2,4)),I.length>4&&P.push(I.slice(4,8));const D=P.join("/");if(T(D),S(!1),D.length===10){const R=vN(D);R&&t(R)}},A=()=>{t(null),T("")};return g.jsx(gs,{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],ys=({icon:e,rightIcon:t,color:n,variant:r="filled",size:s="base",children:o,className:a,...c})=>{const{defaultColorScheme:u}=Ue(),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}=Ue(),[P,D]=O.useState(!1),R=O.useRef(null),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:P,onOpenChange:D,middleware:[er(8),nr(),tr({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:Qn}),ge=rr(ae,{enabled:b}),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{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(oe=>oe.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(!P),!P&&R.current&&setTimeout(()=>{var J;return(J=R.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:ee.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(qn,{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}=Ue(),{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}=Ue(),{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}=Ue(),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}=Ue(),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),P=[];I.length>0&&P.push(I.slice(0,2)),I.length>2&&P.push(I.slice(2,4)),I.length>4&&P.push(I.slice(4,8));const D=P.join("/");if(T(D),S(!1),D.length===10){const R=vN(D);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}=Ue(),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}=Ue(),[P,D]=O.useState(!1),R=O.useRef(null),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:P,onOpenChange:D,middleware:[er(8),nr(),tr({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:Qn}),ge=rr(ae,{enabled:b}),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{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(oe=>oe.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(!P),!P&&R.current&&setTimeout(()=>{var J;return(J=R.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:ee.setReference,className:`
696
696
  flex items-center justify-between gap-8 p-16
697
697
 
698
698
  ${t&&"!border-red-500"}
@@ -708,15 +708,15 @@ 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
- `,...re,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!P&&!m&&D(!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"&&D(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${P&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:X})]}),T&&g.jsx(ys,{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)})}),Y&&g.jsx("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,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",...ue(),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,J)=>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:oe=>{oe.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${J}`))}):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(qn,{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:c3})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{children:["Ver ",o.length," más"]})," ",g.jsx(Pe,{icon:m3})]})})]})},$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(qn,{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:`
711
+ `,...re,children:[A&&A,g.jsx("input",{ref:R,id:e,name:e,disabled:m,placeholder:d,value:n,onClick:()=>{S&&!P&&!m&&D(!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"&&D(!1)},className:`group bg-transparent w-full h-full font-600 placeholder:font-600 text-body-m disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-none ${m&&"pointer-events-none !select-none !caret-transparent"}`}),C&&!b?C:b&&g.jsx(Pe,{icon:NE,className:`text-xl text-gray-500 cursor-pointer ${P&&"rotate-180"} transition-transform duration-150 ease-in-out`,onClick:X})]}),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)})}),Y&&g.jsx("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,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",...ue(),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,J)=>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:oe=>{oe.stopPropagation(),$(B)},children:g.jsx("span",{children:I(B.label)})},`${B.label}-${J}`))}):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(qn,{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:c3})]}):g.jsxs(g.Fragment,{children:[g.jsxs("p",{children:["Ver ",o.length," más"]})," ",g.jsx(Pe,{icon:m3})]})})]})},$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(qn,{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(gs,{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 ue;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:P}=ir({open:d&&!c,onOpenChange:Y=>!c&&h(Y),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:Y,elements:z}){Object.assign(z.floating.style,{maxHeight:`${Math.min(Y-10,500)}px`})},padding:8}),ps({element:S})],placement:"bottom-start",whileElementsMounted:Qn}),D=rr(P,{enabled:!c}),R=sr(P),{getReferenceProps:F,getFloatingProps:W}=or([D,R]),{isMounted:Q,styles:ee}=ar(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=O.useCallback((Y,z)=>{if(c)return;let K;z?K=n.includes(Y)?n:[...n,Y]:K=n.filter($=>$!==Y),r(K)},[n,r,c]),ge=t.filter(Y=>Y.label.toLowerCase().includes(m.toLowerCase())),de=()=>{if(n.length===0)return s;const Y=t.filter(z=>n.includes(z.value)).map(z=>z.label);return Y.length===1?Y[0]:`${Y.length} seleccionados`},le=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:`
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 ue;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:P}=ir({open:d&&!c,onOpenChange:Y=>!c&&h(Y),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:Y,elements:z}){Object.assign(z.floating.style,{maxHeight:`${Math.min(Y-10,500)}px`})},padding:8}),gs({element:S})],placement:"bottom-start",whileElementsMounted:Qn}),D=rr(P,{enabled:!c}),R=sr(P),{getReferenceProps:F,getFloatingProps:W}=or([D,R]),{isMounted:Q,styles:ee}=ar(P,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ae=O.useCallback((Y,z)=>{if(c)return;let K;z?K=n.includes(Y)?n:[...n,Y]:K=n.filter($=>$!==Y),r(K)},[n,r,c]),ge=t.filter(Y=>Y.label.toLowerCase().includes(m.toLowerCase())),de=()=>{if(n.length===0)return s;const Y=t.filter(z=>n.includes(z.value)).map(z=>z.label);return Y.length===1?Y[0]:`${Y.length} seleccionados`},le=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
- `,...le,children:[g.jsx("span",{className:`flex-grow text-left truncate font-600 ${T.text} ${c?"text-gray-300":"text-gray-500"}`,children:de()}),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"})})]}),Q&&!c&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ee,width:(ue=I.reference.current)==null?void 0:ue.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...W(),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:Y=>p(Y.target.value),onClick:Y=>Y.stopPropagation(),autoFocus:!0}),m&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:Y=>{Y.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:ge.length>0?g.jsx("div",{className:"py-4",children:ge.map(Y=>{var K,$,k;const z=n.includes(Y.value);return g.jsxs(O.Fragment,{children:[Y.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:()=>ae(Y.value,!z),children:[g.jsx(Kd,{active:z,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=Y.colors)==null?void 0:K.bgColor)||""} ${(($=Y.colors)==null?void 0:$.textColor)||""}`,children:[((k=Y.colors)==null?void 0:k.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:Y.colors.dotColor}}),g.jsx("span",{className:`${T.text} font-semibold truncate`,children:Y.label})]})]})]},Y.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 Y,z,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:P,context:D}=ir({open:h&&!c,onOpenChange:k=>!c&&m(k),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:k,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(k-10,500)}px`})},padding:8}),ps({element:b})],placement:"bottom-start",whileElementsMounted:Qn}),R=rr(D,{enabled:!c}),F=sr(D),{getReferenceProps:W,getFloatingProps:Q}=or([R,F]),{isMounted:ee,styles:ae}=ar(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=t.find(k=>k.value===n),de=k=>{c||(r(n===k?null:k),m(!1),x(""))},le=t.filter(k=>k.label.toLowerCase().includes(p.toLowerCase())),ue=W({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:P.setReference,className:`
719
+ `,...le,children:[g.jsx("span",{className:`flex-grow text-left truncate font-600 ${T.text} ${c?"text-gray-300":"text-gray-500"}`,children:de()}),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"})})]}),Q&&!c&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ee,width:(ue=I.reference.current)==null?void 0:ue.clientWidth,zIndex:50},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...W(),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:Y=>p(Y.target.value),onClick:Y=>Y.stopPropagation(),autoFocus:!0}),m&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:Y=>{Y.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:ge.length>0?g.jsx("div",{className:"py-4",children:ge.map(Y=>{var K,$,k;const z=n.includes(Y.value);return g.jsxs(O.Fragment,{children:[Y.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:()=>ae(Y.value,!z),children:[g.jsx(Kd,{active:z,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=Y.colors)==null?void 0:K.bgColor)||""} ${(($=Y.colors)==null?void 0:$.textColor)||""}`,children:[((k=Y.colors)==null?void 0:k.dotColor)&&g.jsx("span",{className:"size-6 rounded-full flex-shrink-0",style:{background:Y.colors.dotColor}}),g.jsx("span",{className:`${T.text} font-semibold truncate`,children:Y.label})]})]})]},Y.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 Y,z,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:P,context:D}=ir({open:h&&!c,onOpenChange:k=>!c&&m(k),middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:k,elements:X}){Object.assign(X.floating.style,{maxHeight:`${Math.min(k-10,500)}px`})},padding:8}),gs({element:b})],placement:"bottom-start",whileElementsMounted:Qn}),R=rr(D,{enabled:!c}),F=sr(D),{getReferenceProps:W,getFloatingProps:Q}=or([R,F]),{isMounted:ee,styles:ae}=ar(D,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),ge=t.find(k=>k.value===n),de=k=>{c||(r(n===k?null:k),m(!1),x(""))},le=t.filter(k=>k.label.toLowerCase().includes(p.toLowerCase())),ue=W({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:P.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"}
@@ -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,P){for(var D=0,R=A.length,F=I;D<R-1;){var W=A[D];if(W==="__proto__"||W==="constructor"||W==="prototype")return I;F=F[A[D++]]}F[A[D]]=P})},getter:function(v,A){var C=h(v);return d.get(v)||d.set(v,function(P){for(var D=0,R=C.length;D<R;)if(P!=null||!A)P=P[C[D++]];else return;return P})},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,P,D,R,F;for(D=0;D<I;D++)P=v[D],P&&(T(P)&&(P='"'+P+'"'),F=x(P),R=!F&&/^\d+$/.test(P),A.call(C,P,F,R,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 xs=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 vs{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&&xs.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}}vs.prototype.__isYupRef=!0;const bs=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 vs.isRef(ee)?ee.getValue(n,S,b):ee}function C(ee={}){const ae=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 de of Object.keys(ae))ae[de]=A(ae[de]);const ge=new jt(jt.formatError(ee.message||p,ae),n,ae.path,ee.type||d,ae.disableStackTrace);return ge.params=ae,ge}const I=T?c:u;let P={path:r,parent:S,type:d,from:s.from,createError:C,resolve:A,options:s,originalValue:o,schema:a};const D=ee=>{jt.isError(ee)?I(ee):ee?u(null):I(C())},R=ee=>{jt.isError(ee)?I(ee):c(ee)};if(x&&bs(n))return D(!0);let W;try{var Q;if(W=h.call(P,n,P),typeof((Q=W)==null?void 0:Q.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(D,R)}}catch(ee){R(ee);return}D(W)}return t.OPTIONS=e,t}function rk(e,t,n,r=n){let s,o,a;return t?(xs.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(vs.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&&bs(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,P){for(var D=0,R=A.length,F=I;D<R-1;){var W=A[D];if(W==="__proto__"||W==="constructor"||W==="prototype")return I;F=F[A[D++]]}F[A[D]]=P})},getter:function(v,A){var C=h(v);return d.get(v)||d.set(v,function(P){for(var D=0,R=C.length;D<R;)if(P!=null||!A)P=P[C[D++]];else return;return P})},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,P,D,R,F;for(D=0;D<I;D++)P=v[D],P&&(T(P)&&(P='"'+P+'"'),F=x(P),R=!F&&/^\d+$/.test(P),A.call(C,P,F,R,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(ee){return bs.isRef(ee)?ee.getValue(n,S,b):ee}function C(ee={}){const ae=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 de of Object.keys(ae))ae[de]=A(ae[de]);const ge=new jt(jt.formatError(ee.message||p,ae),n,ae.path,ee.type||d,ae.disableStackTrace);return ge.params=ae,ge}const I=T?c:u;let P={path:r,parent:S,type:d,from:s.from,createError:C,resolve:A,options:s,originalValue:o,schema:a};const D=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 D(!0);let W;try{var Q;if(W=h.call(P,n,P),typeof((Q=W)==null?void 0:Q.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(W).then(D,R)}}catch(ee){R(ee);return}D(W)}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 vs(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:lr(r[1]),month:lr(r[2],1)-1,day:lr(r[3],1),hour:lr(r[4]),minute:lr(r[5]),second:lr(r[6]),millisecond:r[7]?lr(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:lr(r[10]),minuteOffset:lr(r[11])}:null}function lr(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=>bs(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=>bs(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>bs(n)||n===n.toLowerCase()})}uppercase(t=Lt.uppercase){return this.transform(n=>bs(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>bs(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(vs.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=xs.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),vs.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=[...xs.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),s=xs.getter(xs.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||vs.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=xs.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,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=vr.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:P,strategy:D,refs:R,context:F,placement:W,middlewareData:Q}=ir({open:m,onOpenChange:p,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),ps({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ee=rr(F),ae=sr(F),{getReferenceProps:ge,getFloatingProps:de}=or([ee,ae]),{isMounted:le,styles:ue}=ar(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(Array.isArray(e)?e:[]).filter(pe=>{if(!x.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(x.toLowerCase())||ft.includes(x.toLowerCase())}),K=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},$=()=>{p(!m),!m&&v.current&&setTimeout(()=>{var pe;(pe=v.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};O.useEffect(()=>{T(d.value)},[d.value]),O.useEffect(()=>{const pe=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const X=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},U=(Ee=Q.arrow)==null?void 0:Ee.x,re=(Ve=Q.arrow)==null?void 0:Ve.y,B={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],J=ge({onClick:$,onBlur:k}),oe=u(r),se=u(s),fe=(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:[g.jsx("label",{className:`text-gray-600 font-600 group ${fe&&"!text-red-500"} text-label`,children:oe}),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 ${fe&&"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:pe=>{pe.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"})})]}),fe&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(fe,{x:u(c||"")||u(t)})}),le&&g.jsxs("div",{ref:R.setFloating,style:{position:D,top:P??0,left:I??0,...ue},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[g.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:U!=null?`${U}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:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:z.length>0?g.jsx("ul",{className:"flex flex-col",children:z.map((pe,De)=>{var ws;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((ws=pe.code)==null?void 0:ws.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(pe)},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:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.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}=Ue();return g.jsx(vr.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 U,re;const{t:u}=Ue(),[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:P,placement:D,middlewareData:R}=ir({open:d,onOpenChange:h,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:B,elements:J}){Object.assign(J.floating.style,{maxHeight:`${Math.min(B-10,300)}px`})},padding:8}),ps({element:T})],placement:"bottom-start",whileElementsMounted:Qn}),F=rr(P),W=sr(P),{getReferenceProps:Q,getFloatingProps:ee}=or([F,W]),{isMounted:ae,styles:ge}=ar(P,{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(),oe=B.code?B.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),ue=B=>{S(B),h(!1),p(""),n(B)},Y=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var B;(B=b.current)==null||B.focus()},100)};O.useEffect(()=>{S(t)},[t]);const z=B=>{var J;return B?B.codeISO2?B.codeISO2.toLowerCase():((J=B.code)==null?void 0:J.toLowerCase())||"":""},K=(U=R.arrow)==null?void 0:U.x,$=(re=R.arrow)==null?void 0:re.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],X=Q({onClick:Y});return g.jsxs("div",{className:`w-full relative flex flex-col gap-8 ${c}`,children:[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"} ${ae?"border-blue-400":"border-blue-100"}`,...X,children:[x!=null&&x.code?g.jsxs("div",{className:"flex items-center w-full",children:[z(x)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${z(x)}.png`,srcSet:`https://flagcdn.com/w40/${z(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}),ae&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ge},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:le.length>0?g.jsx("ul",{className:"flex flex-col",children:le.map((B,J)=>{var se;const oe=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:fe=>{fe.stopPropagation(),ue(B)},children:[oe&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:B.label,onError:fe=>{fe.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}=Ue(),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=vr.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 P=URL.createObjectURL(C);d(P),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}}=vr.useController({name:n,control:t}),[x,S]=O.useState(!1),{t:b}=Ue(),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:[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:lr(r[1]),month:lr(r[2],1)-1,day:lr(r[3],1),hour:lr(r[4]),minute:lr(r[5]),second:lr(r[6]),millisecond:r[7]?lr(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:lr(r[10]),minuteOffset:lr(r[11])}:null}function lr(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,Ve,ie;const{t:u}=Ue(),{field:d,fieldState:h}=vr.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:P,strategy:D,refs:R,context:F,placement:W,middlewareData:Q}=ir({open:m,onOpenChange:p,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:pe,elements:De}){Object.assign(De.floating.style,{maxHeight:`${Math.min(pe-10,300)}px`})},padding:8}),gs({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ee=rr(F),ae=sr(F),{getReferenceProps:ge,getFloatingProps:de}=or([ee,ae]),{isMounted:le,styles:ue}=ar(F,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(Array.isArray(e)?e:[]).filter(pe=>{if(!x.trim())return!0;const De=o==="es"&&pe.labelES?pe.labelES.toLowerCase():pe.label.toLowerCase(),ft=pe.code?pe.code.toLowerCase():"";return De.includes(x.toLowerCase())||ft.includes(x.toLowerCase())}),K=pe=>{T(pe),p(!1),S(""),d.onChange(pe)},$=()=>{p(!m),!m&&v.current&&setTimeout(()=>{var pe;(pe=v.current)==null||pe.focus()},100)},k=()=>{setTimeout(()=>{m||d.onBlur()},200)};O.useEffect(()=>{T(d.value)},[d.value]),O.useEffect(()=>{const pe=De=>{C.current&&!C.current.contains(De.target)&&d.onBlur()};return document.addEventListener("mousedown",pe),()=>{document.removeEventListener("mousedown",pe)}},[d]);const X=pe=>{var De;return pe?pe.codeISO2?pe.codeISO2.toLowerCase():((De=pe.code)==null?void 0:De.toLowerCase())||"":""},U=(Ee=Q.arrow)==null?void 0:Ee.x,re=(Ve=Q.arrow)==null?void 0:Ve.y,B={top:"bottom",right:"left",bottom:"top",left:"right"}[W.split("-")[0]],J=ge({onClick:$,onBlur:k}),oe=u(r),se=u(s),fe=(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:[oe&&g.jsx("label",{className:`text-gray-600 font-600 group ${fe&&"!text-red-500"} text-label`,children:oe}),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 ${fe&&"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:pe=>{pe.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"})})]}),fe&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:u(fe,{x:u(c||"")||u(t)})}),le&&g.jsxs("div",{ref:R.setFloating,style:{position:D,top:P??0,left:I??0,...ue},className:"z-10 w-full bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto",...de(),children:[g.jsx("div",{ref:A,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:U!=null?`${U}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:pe=>S(pe.target.value),onClick:pe=>pe.stopPropagation(),onBlur:pe=>{pe.stopPropagation()},autoFocus:!0})}),g.jsx("div",{children:z.length>0?g.jsx("ul",{className:"flex flex-col",children:z.map((pe,De)=>{var Ss;const ft=pe.codeISO2?pe.codeISO2.toLowerCase():((Ss=pe.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(pe)},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:pe.label,onError:dt=>{dt.currentTarget.style.display="none"}}),g.jsxs("span",{children:[o==="es"&&pe.labelES?pe.labelES:pe.label,pe.code?` (${pe.code})`:"Country not found"]})]},`${pe.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}=Ue();return g.jsx(vr.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 U,re;const{t:u}=Ue(),[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:P,placement:D,middlewareData:R}=ir({open:d,onOpenChange:h,middleware:[er(8),nr(),tr({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:Qn}),F=rr(P),W=sr(P),{getReferenceProps:Q,getFloatingProps:ee}=or([F,W]),{isMounted:ae,styles:ge}=ar(P,{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(),oe=B.code?B.code.toLowerCase():"";return J.includes(m.toLowerCase())||oe.includes(m.toLowerCase())}),ue=B=>{S(B),h(!1),p(""),n(B)},Y=()=>{h(!d),!d&&b.current&&setTimeout(()=>{var B;(B=b.current)==null||B.focus()},100)};O.useEffect(()=>{S(t)},[t]);const z=B=>{var J;return B?B.codeISO2?B.codeISO2.toLowerCase():((J=B.code)==null?void 0:J.toLowerCase())||"":""},K=(U=R.arrow)==null?void 0:U.x,$=(re=R.arrow)==null?void 0:re.y,k={top:"bottom",right:"left",bottom:"top",left:"right"}[D.split("-")[0]],X=Q({onClick:Y});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"} ${ae?"border-blue-400":"border-blue-100"}`,...X,children:[x!=null&&x.code?g.jsxs("div",{className:"flex items-center w-full",children:[z(x)&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${z(x)}.png`,srcSet:`https://flagcdn.com/w40/${z(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}),ae&&g.jsxs("div",{ref:I.setFloating,style:{position:C,top:A??0,left:v??0,...ge},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:le.length>0?g.jsx("ul",{className:"flex flex-col",children:le.map((B,J)=>{var se;const oe=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:fe=>{fe.stopPropagation(),ue(B)},children:[oe&&g.jsx("img",{loading:"lazy",width:"24",height:"16",className:"mr-2",src:`https://flagcdn.com/w20/${oe}.png`,srcSet:`https://flagcdn.com/w40/${oe}.png 2x`,alt:B.label,onError:fe=>{fe.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}=Ue(),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=vr.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 P=URL.createObjectURL(C);d(P),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}}=vr.useController({name:n,control:t}),[x,S]=O.useState(!1),{t:b}=Ue(),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,7 +752,7 @@ 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,Br,bl;const{t:u}=Ue(),{field:d,fieldState:h}=vr.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),[P,D]=O.useState(x),[R,F]=O.useState(!1),W=O.useRef(null),Q=O.useRef(null),ee=O.useRef(null),ae=O.useRef(null),{x:ge,y:de,strategy:le,refs:ue,context:Y,placement:z,middlewareData:K}=ir({open:b,onOpenChange:T,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),ps({element:Q})],placement:"bottom-start",whileElementsMounted:Qn}),$=rr(Y),k=sr(Y),{getReferenceProps:X,getFloatingProps:U}=or([$,k]),{isMounted:re,styles:B}=ar(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(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} ${P}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},fe=ve=>{const Ze=ve.target.value;if(D(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&W.current&&setTimeout(()=>{var ve;(ve=W.current)==null||ve.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(cr=>cr.phone===Ze);xn&&I(xn),D(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{ae.current&&!ae.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,ws=(Br=K.arrow)==null?void 0:Br.y,dt={top:"bottom",right:"left",bottom:"top",left:"right"}[z.split("-")[0]],yl=X({onClick:Ee,onBlur:Ve}),xl=()=>h.error?"border-red-500":R||b?"border-blue-400":"border-blue-100",Ss=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:[g.jsx("label",{className:`text-gray-600 font-600 group ${yn&&"!text-red-500"} text-label`,children:Ss}),g.jsxs("div",{ref:ae,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,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: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:P,onChange:fe,onBlur:Ve})]}),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:de??0,left:ge??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...U(),children:[g.jsx("div",{ref:Q,className:"absolute w-4 h-4 bg-white rotate-45 border-blue-400",style:{left:ft!=null?`${ft}px`:"",top:ws!=null?`${ws}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:W,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:oe.length>0?g.jsx("ul",{className:"flex flex-col",children:oe.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:cr=>{cr.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:cr=>{cr.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}=Ue(),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}=Ue(),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}=Ue(),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}}=vr.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}=Ue(),[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:R,y:F,strategy:W,refs:Q,context:ee}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),ps({element:I})],placement:"bottom-start",whileElementsMounted:Qn}),ae=rr(ee),ge=sr(ee),{getReferenceProps:de,getFloatingProps:le}=or([ae,ge]),{isMounted:ue,styles:Y}=ar(ee,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(()=>{const U=Array.isArray(e)?e:[];if(!b.trim())return U;const re=b.toLowerCase();return U.filter(B=>B.label.toLowerCase().includes(re)||B.key.toLowerCase().includes(re))})(),K=U=>{A(U),S(!1),T(""),n(U)},$=()=>{S(!x),!x&&C.current&&setTimeout(()=>{var U;return(U=C.current)==null?void 0:U.focus()},100)};O.useEffect(()=>{A(t)},[t]);const k=de({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:Q.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
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}=Ue(),{field:d,fieldState:h}=vr.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),[P,D]=O.useState(x),[R,F]=O.useState(!1),W=O.useRef(null),Q=O.useRef(null),ee=O.useRef(null),ae=O.useRef(null),{x:ge,y:de,strategy:le,refs:ue,context:Y,placement:z,middlewareData:K}=ir({open:b,onOpenChange:T,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:ve,elements:Ze}){Object.assign(Ze.floating.style,{maxHeight:`${Math.min(ve-10,300)}px`})},padding:8}),gs({element:Q})],placement:"bottom-start",whileElementsMounted:Qn}),$=rr(Y),k=sr(Y),{getReferenceProps:X,getFloatingProps:U}=or([$,k]),{isMounted:re,styles:B}=ar(Y,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),oe=(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} ${P}`;d.onChange(Ze),setTimeout(()=>{var Pt;(Pt=ee.current)==null||Pt.focus()},100)},fe=ve=>{const Ze=ve.target.value;if(D(Ze),C){const Pt=`${C.phone} ${Ze}`;d.onChange(Pt)}},Ee=()=>{T(!b),!b&&W.current&&setTimeout(()=>{var ve;(ve=W.current)==null||ve.focus()},100)},Ve=()=>{setTimeout(()=>{b||d.onBlur()},200)},ie=()=>{F(!0)},pe=()=>{F(!1)};O.useEffect(()=>{if(d.value){const ve=d.value.split(" "),Ze=ve[0]||"",Pt=ve[1]||"",xn=c.find(cr=>cr.phone===Ze);xn&&I(xn),D(Pt)}},[d.value,c]),O.useEffect(()=>{const ve=Ze=>{ae.current&&!ae.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"}[z.split("-")[0]],yl=X({onClick:Ee,onBlur:Ve}),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:ae,className:"flex items-center w-full",onMouseEnter:ie,onMouseLeave:pe,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: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:P,onChange:fe,onBlur:Ve})]}),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:de??0,left:ge??0,...B},className:"z-10 w-fit bg-white border border-blue-400 rounded-3xl shadow-lg overflow-auto max-w-120",...U(),children:[g.jsx("div",{ref:Q,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:W,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:oe.length>0?g.jsx("ul",{className:"flex flex-col",children:oe.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:cr=>{cr.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:cr=>{cr.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}=Ue(),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}=Ue(),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}=Ue(),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}}=vr.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}=Ue(),[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:R,y:F,strategy:W,refs:Q,context:ee}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),gs({element:I})],placement:"bottom-start",whileElementsMounted:Qn}),ae=rr(ee),ge=sr(ee),{getReferenceProps:de,getFloatingProps:le}=or([ae,ge]),{isMounted:ue,styles:Y}=ar(ee,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),z=(()=>{const U=Array.isArray(e)?e:[];if(!b.trim())return U;const re=b.toLowerCase();return U.filter(B=>B.label.toLowerCase().includes(re)||B.key.toLowerCase().includes(re))})(),K=U=>{A(U),S(!1),T(""),n(U)},$=()=>{S(!x),!x&&C.current&&setTimeout(()=>{var U;return(U=C.current)==null?void 0:U.focus()},100)};O.useEffect(()=>{A(t)},[t]);const k=de({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:Q.setReference,className:`${d} flex items-center justify-between bg-light rounded-full border transition-all duration-200
756
756
  ${D.container} cursor-pointer hover:border-blue-400
757
757
  ${o?"border-red-500 hover:border-red-600":""}
758
758
  ${x?"border-blue-400":"border-blue-100"}`,...k,children:[g.jsx("div",{className:"flex items-center w-full overflow-hidden",children:g.jsx("span",{className:`flex-grow font-600 truncate ${D.text} ${v?"":"text-gray-400"}`,children:p(v?v.label:s)})}),h&&g.jsx("svg",{className:`${D.icon} transition-transform ${x?"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 ${D.error}`,children:o}),ue&&g.jsxs("div",{ref:Q.setFloating,style:{position:W,top:F??0,left:R??0,...Y,width:(X=Q.reference.current)==null?void 0:X.clientWidth,zIndex:50,...u},className:"bg-white border border-blue-400 rounded-3xl shadow-lg overflow-hidden",...le(),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:C,type:"text",className:"w-full py-8 pl-40 pr-12 rounded-full focus:outline-none text-body-s",placeholder:p("search_options"),value:b,onChange:U=>T(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0})]})}),g.jsx("div",{className:"max-h-[250px] overflow-y-auto",children:z.length>0?g.jsx("ul",{className:"py-4",children:z.map((U,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer
@@ -786,11 +786,11 @@ attempted value: ${a}
786
786
  group-focus-within:border-blue-500 transition-colors duration-200 ease-in-out
787
787
 
788
788
  group-disabled:bg-gray-500
789
- `,children:[a&&a,g.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:P=>p(P.target.value),onBlur:S,ref:x,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${A.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),(b==null?void 0:b.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:T(b.message,{x:I||C})})]})},gj=({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(U=>U.value===n),P={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],D=O.useMemo(()=>e.map(U=>({...U,searchableLabel:typeof U.label=="string"?U.label:O.isValidElement(U.label)?gl(U.label):String(U.label),searchableValue:String(U.value)})),[e]),R=O.useMemo(()=>{const U={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(D,U)},[D]),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),ps({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ge=rr(ae),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=O.useMemo(()=>b.trim()?R.search(b).map(re=>({...re.item,score:re.score,matches:re.matches})):e,[b,R,e]),$=U=>{t(U.value),S(!1),T("")},X=le({onClick:()=>{r||(S(!x),!x&&v.current&&c&&setTimeout(()=>{var U;return(U=v.current)==null?void 0:U.focus()},100))}});return g.jsxs("div",{className:`relative flex flex-col ${P.gap} ${u}`,children:[o&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${s?"!text-red-500":""} ${P.label} ${r?"text-gray-300":""}`,children:o}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full
789
+ `,children:[a&&a,g.jsx("input",{id:n,name:n,disabled:o,placeholder:r,value:m,onChange:P=>p(P.target.value),onBlur:S,ref:x,className:`group bg-transparent w-full h-full font-600 placeholder:font-600 select-text ${A.text} disabled:text-gray-300 disabled:placeholder:text-gray-300 placeholder:text-gray-400 disabled:cursor-not-allowed overflow-visible outline-hidden`,...h}),c&&c]}),(b==null?void 0:b.message)&&g.jsx("h4",{className:`font-500 text-red-500 leading-none ${A.error}`,children:T(b.message,{x:I||C})})]})},gj=({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(U=>U.value===n),P={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],D=O.useMemo(()=>e.map(U=>({...U,searchableLabel:typeof U.label=="string"?U.label:O.isValidElement(U.label)?gl(U.label):String(U.label),searchableValue:String(U.value)})),[e]),R=O.useMemo(()=>{const U={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(D,U)},[D]),{x:F,y:W,strategy:Q,refs:ee,context:ae}=ir({open:x,onOpenChange:S,middleware:[er(8),nr(),tr({padding:8}),Rr({apply({availableHeight:U,elements:re}){Object.assign(re.floating.style,{maxHeight:`${Math.min(U-10,300)}px`})},padding:8}),gs({element:A})],placement:"bottom-start",whileElementsMounted:Qn}),ge=rr(ae),de=sr(ae),{getReferenceProps:le,getFloatingProps:ue}=or([ge,de]),{isMounted:Y,styles:z}=ar(ae,{duration:{open:200,close:150},initial:{opacity:0,transform:"translateY(-4px)"}}),K=O.useMemo(()=>b.trim()?R.search(b).map(re=>({...re.item,score:re.score,matches:re.matches})):e,[b,R,e]),$=U=>{t(U.value),S(!1),T("")},X=le({onClick:()=>{r||(S(!x),!x&&v.current&&c&&setTimeout(()=>{var U;return(U=v.current)==null?void 0:U.focus()},100))}});return g.jsxs("div",{className:`relative flex flex-col ${P.gap} ${u}`,children:[o&&g.jsx("h6",{className:`text-gray-600 font-600 leading-none group ${s?"!text-red-500":""} ${P.label} ${r?"text-gray-300":""}`,children:o}),g.jsxs("div",{ref:ee.setReference,className:`${d} flex items-center justify-between bg-light rounded-full
790
790
  ${P.container} cursor-pointer border transition-all duration-200
791
791
  ${r?"opacity-60 cursor-not-allowed":"hover:border-blue-400"}
792
792
  ${s?"border-red-500 hover:border-red-600":""}
793
- ${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 ${P.text} ${C?"":"text-gray-400"}`,children:C?C.label:a})}),m&&g.jsx("svg",{className:`${P.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 ${P.error}`,children:s}),Y&&g.jsxs("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,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",...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:U=>T(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0}),b&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:U=>{U.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((U,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${P.option} ${n===U.value?"bg-blue-100/30 text-blue-500 font-medium text":""}`,onClick:B=>{B.stopPropagation(),$(U)},children:g.jsx("span",{children:(U==null?void 0:U.expandedLabel)||U.label})},`${U.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,P=Math.min(100,I/r*100);h(P),P<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),"%"]})]})]})},yj=({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"})=>{const{t:m}=Ue(),[p,x]=O.useState(!1),[S,b]=O.useState(""),T=O.useRef(null),v=s.map(W=>`.${W}`).join(","),A=W=>{const Q=[];let ee=!1;Array.from(W).forEach(ae=>{var de;const ge=((de=ae.name.split(".").pop())==null?void 0:de.toLowerCase())||"";if(!s.includes(ge)){b(`El archivo ${ae.name} tiene una extensión no permitida.`),ee=!0;return}if(ae.size>o*1024){b(`El archivo ${ae.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Q.push(ae)}),!ee&&Q.length>0&&(b(""),r(Q))},C=()=>{T.current&&T.current.click()},I=W=>{const Q=W.target.files;Q&&Q.length>0&&A(Q),W.target.value=""},P=W=>{W.preventDefault(),W.stopPropagation(),x(!0)},D=W=>{W.preventDefault(),W.stopPropagation(),x(!1)},R=W=>{W.preventDefault(),W.stopPropagation(),p||x(!0)},F=W=>{W.preventDefault(),W.stopPropagation(),x(!1);const Q=W.dataTransfer.files;Q.length>0&&A(Q)};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:[m("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 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,children:[g.jsx("div",{className:"flex justify-center shrink-0",children:g.jsx(Pe,{icon:kE,className:"text-blue-500 text-2xl"})}),g.jsx("div",{className:"flex flex-col items-start text-left grow",children:g.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),g.jsx("div",{className:"shrink-0",children:g.jsx(ys,{color:"blue",variant:"transparent",children:m(n)})}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):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:[m("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 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,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-xl text-dark",children:m(e)}),t&&g.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),g.jsx($2,{color:"blue",children:m(n)}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),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()," ",m("formats"),". ",m("maximum_size"),":"," ",bx(o,"mb")]})})]})},xj=({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:P=!0,startAngle:D=-90})=>{const R=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},F=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},W=Math.min(100,Math.max(0,e)),Q=R(W),ee=F(W),ae=d/2,ge=(d-h)/2,de=2*Math.PI*ge,le=de,ue=de-W/100*de,z=`rotate(${D} ${ae} ${ae}) scale(${P?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:ae,cy:ae,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),g.jsx("circle",{cx:ae,cy:ae,r:ge,fill:"transparent",stroke:Q,strokeWidth:h,strokeDasharray:le,strokeDashoffset:ue,strokeLinecap:"round",transform:z,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(W),"%"]}),(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})]})},vj=({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=P=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].color;return D[0].color}return P<d?m:P<h?p:x},T=P=>{if(!u||u.length===0)return;const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].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})]})]})},bj=({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})]})},wj=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return g.jsxs("button",{onClick:t,className:`
793
+ ${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 ${P.text} ${C?"":"text-gray-400"}`,children:C?C.label:a})}),m&&g.jsx("svg",{className:`${P.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 ${P.error}`,children:s}),Y&&g.jsxs("div",{ref:ee.setFloating,style:{position:Q,top:W??0,left:F??0,...z,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",...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:U=>T(U.target.value),onClick:U=>U.stopPropagation(),autoFocus:!0}),b&&g.jsx("button",{className:"absolute inset-y-0 right-0 pr-12 flex items-center",onClick:U=>{U.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((U,re)=>g.jsx("li",{className:`flex items-center px-16 py-10 transition-all duration-200 hover:bg-blue-50 cursor-pointer ${P.option} ${n===U.value?"bg-blue-100/30 text-blue-500 font-medium text":""}`,onClick:B=>{B.stopPropagation(),$(U)},children:g.jsx("span",{children:(U==null?void 0:U.expandedLabel)||U.label})},`${U.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,P=Math.min(100,I/r*100);h(P),P<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),"%"]})]})]})},yj=({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"})=>{const{t:m}=Ue(),[p,x]=O.useState(!1),[S,b]=O.useState(""),T=O.useRef(null),v=s.map(W=>`.${W}`).join(","),A=W=>{const Q=[];let ee=!1;Array.from(W).forEach(ae=>{var de;const ge=((de=ae.name.split(".").pop())==null?void 0:de.toLowerCase())||"";if(!s.includes(ge)){b(`El archivo ${ae.name} tiene una extensión no permitida.`),ee=!0;return}if(ae.size>o*1024){b(`El archivo ${ae.name} excede el tamaño máximo de ${o}KB.`),ee=!0;return}Q.push(ae)}),!ee&&Q.length>0&&(b(""),r(Q))},C=()=>{T.current&&T.current.click()},I=W=>{const Q=W.target.files;Q&&Q.length>0&&A(Q),W.target.value=""},P=W=>{W.preventDefault(),W.stopPropagation(),x(!0)},D=W=>{W.preventDefault(),W.stopPropagation(),x(!1)},R=W=>{W.preventDefault(),W.stopPropagation(),p||x(!0)},F=W=>{W.preventDefault(),W.stopPropagation(),x(!1);const Q=W.dataTransfer.files;Q.length>0&&A(Q)};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:[m("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 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,children:[g.jsx("div",{className:"flex justify-center shrink-0",children:g.jsx(Pe,{icon:kE,className:"text-blue-500 text-2xl"})}),g.jsx("div",{className:"flex flex-col items-start text-left grow",children:g.jsx("h3",{className:"font-600 text-lg text-dark",children:m(e)})}),g.jsx("div",{className:"shrink-0",children:g.jsx(xs,{color:"blue",variant:"transparent",children:m(n)})}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500",children:S})]}):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:[m("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 ${p?"border-blue-400 bg-blue-100/50":"border-blue-200 hover:border-blue-400"}`,onDragEnter:P,onDragLeave:D,onDragOver:R,onDrop:F,onClick:C,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-xl text-dark",children:m(e)}),t&&g.jsx("p",{className:"font-400 text-lg text-gray-500",children:m(t)}),g.jsx($2,{color:"blue",children:m(n)}),g.jsx("input",{type:"file",ref:T,className:"hidden",multiple:!0,accept:v,onChange:I})]})]})}),S&&g.jsx("div",{className:"mt-3 text-sm text-red-500 shrink-0",children:S}),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()," ",m("formats"),". ",m("maximum_size"),":"," ",bx(o,"mb")]})})]})},xj=({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:P=!0,startAngle:D=-90})=>{const R=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},F=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},W=Math.min(100,Math.max(0,e)),Q=R(W),ee=F(W),ae=d/2,ge=(d-h)/2,de=2*Math.PI*ge,le=de,ue=de-W/100*de,z=`rotate(${D} ${ae} ${ae}) scale(${P?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:ae,cy:ae,r:ge,fill:"transparent",stroke:m,strokeWidth:h,className:"opacity-20"}),g.jsx("circle",{cx:ae,cy:ae,r:ge,fill:"transparent",stroke:Q,strokeWidth:h,strokeDasharray:le,strokeDashoffset:ue,strokeLinecap:"round",transform:z,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(W),"%"]}),(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})]})},vj=({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=P=>{if(S)return S;if(u&&u.length>0){const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].color;return D[0].color}return P<d?m:P<h?p:x},T=P=>{if(!u||u.length===0)return;const D=[...u].sort((R,F)=>R.threshold-F.threshold);for(let R=D.length-1;R>=0;R--)if(P>=D[R].threshold)return D[R].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})]})]})},bj=({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})]})},wj=({active:e,onClick:t})=>{const{defaultColorScheme:n}=Ue();return g.jsxs("button",{onClick:t,className:`
794
794
  relative inline-flex min-h-24 min-w-48 items-center rounded-full
795
795
  transition-colors duration-200 ease-in-out focus:outline-none
796
796
  shadow-lg
@@ -799,4 +799,4 @@ attempted value: ${a}
799
799
  inline-block h-20 w-20 transform rounded-full bg-white
800
800
  transition-transform duration-200 ease-in-out drop-shadow-xl
801
801
  ${e?"translate-x-24":"translate-x-3"}
802
- `})]})},Sj=({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,P)=>n[I]||P,d=(I,P=[])=>{const D=P.find(R=>R.value===I);return D?D.label:String(I)};return g.jsx(gs,{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(qn,{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")})})},Tj="Alejo",Cj=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(xb.Provider,{value:n,children:t})};ne.ActionButton=IE,ne.AlertModal=vb,ne.AsyncToast=ex,ne.AutocompleteInput=MN,ne.Avatar=c2,ne.BoxContainer=yi,ne.Button=ys,ne.CalendarSelector=Ud,ne.CenterModal=f2,ne.Checkbox=Kd,ne.Chip=WN,ne.CircleProgress=bj,ne.ClickAwayListener=I2,ne.CountryDropdown=Tk,ne.CountryInput=wk,ne.CountryLabel=Sk,ne.DateInput=iN,ne.DialogModal=Jb,ne.Divider=u2,ne.Dropdown=lN,ne.EmptyState=NN,ne.FileUpload=cN,ne.FilterPill=Sj,ne.FiltersMenu=_N,ne.FloatingMenu=gs,ne.IconButton=sh,ne.ImageProfileInput=Pk,ne.IndexedStep=e2,ne.IndexedStepper=uN,ne.InfoCard=Mk,ne.InformationContainer=t2,ne.InformationDisclaimer=Ik,ne.LoadingProgress=ih,ne.LoadingSpinner=Nk,ne.ModalContainer=jN,ne.MultiSelectDropdown=IN,ne.Organism=Tj,ne.PasswordInput=kk,ne.PhoneInput=jk,ne.Pill=Yd,ne.PillsContainer=ON,ne.ProgressBar=Vk,ne.SearchBar=Bk,ne.SearchModal=dN,ne.SectionButton=tj,ne.SelectInput=nj,ne.SideModal=$N,ne.SidebarButton=aj,ne.SingleSelectDropdown=DN,ne.StepIndicator=oh,ne.Stepper=yN,ne.Switch=wj,ne.Tab=O2,ne.Tabs=xN,ne.TextButton=$2,ne.TextInput=pj,ne.TextStaticInput=gj,ne.ThemeProvider=Cj,ne.ThresholdCircleProgress=xj,ne.ThresholdProgressBar=vj,ne.Toast=ff,ne.Tooltip=kN,ne.UncontrolledDateInput=Gd,ne.UncontrolledSelector=_2,ne.UncontrolledTextInput=al,ne.UploadContainer=yj,ne.capitalizeFirstLetter=vx,ne.closeModal=FN,ne.defaultTheme=Pd,ne.formatLocalizedDate=s3,ne.getImageUrl=wx,ne.openCustomModal=RN,ne.openModal=LN,ne.renderTabContent=VN,ne.showToastAsync=qd,ne.showToastLoading=l2,ne.stringToColor=df,ne.toBase64=i3,ne.toast=BN,ne.translateBytes=bx,ne.useFilterToggler=z6,ne.useTheme=Ue,ne.yupImageProfileValidator=Ak,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});
802
+ `})]})},Sj=({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,P)=>n[I]||P,d=(I,P=[])=>{const D=P.find(R=>R.value===I);return D?D.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(qn,{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")})})},Tj="Alejo",Cj=({theme:e={},children:t})=>{const n={...Pd,...e};return g.jsx(xb.Provider,{value:n,children:t})};ne.ActionButton=IE,ne.AlertModal=vb,ne.AsyncToast=ex,ne.AutocompleteInput=MN,ne.Avatar=c2,ne.BoxContainer=yi,ne.Button=xs,ne.CalendarSelector=Ud,ne.CenterModal=f2,ne.Checkbox=Kd,ne.Chip=WN,ne.CircleProgress=bj,ne.ClickAwayListener=I2,ne.CountryDropdown=Tk,ne.CountryInput=wk,ne.CountryLabel=Sk,ne.DateInput=iN,ne.DialogModal=Jb,ne.Divider=u2,ne.Dropdown=lN,ne.EmptyState=NN,ne.FileUpload=cN,ne.FilterPill=Sj,ne.FiltersMenu=_N,ne.FloatingMenu=ys,ne.IconButton=sh,ne.ImageProfileInput=Pk,ne.IndexedStep=e2,ne.IndexedStepper=uN,ne.InfoCard=Mk,ne.InformationContainer=t2,ne.InformationDisclaimer=Ik,ne.LoadingProgress=ih,ne.LoadingSpinner=Nk,ne.ModalContainer=jN,ne.MultiSelectDropdown=IN,ne.Organism=Tj,ne.PasswordInput=kk,ne.PhoneInput=jk,ne.Pill=Yd,ne.PillsContainer=ON,ne.ProgressBar=Vk,ne.SearchBar=Bk,ne.SearchModal=dN,ne.SectionButton=tj,ne.SelectInput=nj,ne.SideModal=$N,ne.SidebarButton=aj,ne.SingleSelectDropdown=DN,ne.StepIndicator=oh,ne.Stepper=yN,ne.Switch=wj,ne.Tab=O2,ne.Tabs=xN,ne.TextButton=$2,ne.TextInput=pj,ne.TextStaticInput=gj,ne.ThemeProvider=Cj,ne.ThresholdCircleProgress=xj,ne.ThresholdProgressBar=vj,ne.Toast=ff,ne.Tooltip=kN,ne.UncontrolledDateInput=Gd,ne.UncontrolledSelector=_2,ne.UncontrolledTextInput=al,ne.UploadContainer=yj,ne.capitalizeFirstLetter=vx,ne.closeModal=FN,ne.defaultTheme=Pd,ne.formatLocalizedDate=s3,ne.getImageUrl=wx,ne.openCustomModal=RN,ne.openModal=LN,ne.renderTabContent=VN,ne.showToastAsync=qd,ne.showToastLoading=l2,ne.stringToColor=df,ne.toBase64=i3,ne.toast=BN,ne.translateBytes=bx,ne.useFilterToggler=z6,ne.useTheme=Ue,ne.yupImageProfileValidator=Ak,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})});