@fgbg/mdocs 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-skills/changelog/SKILL.md +18 -0
- package/dist/server/routes/assets.routes.js +9 -4
- package/dist/server/routes/assets.routes.js.map +1 -1
- package/dist/server/routes/assets.routes.upload.test.js +1 -0
- package/dist/server/routes/assets.routes.upload.test.js.map +1 -1
- package/dist/web/assets/{AgentChatPanel-C8TMWDuE.js → AgentChatPanel-Bt38gm3b.js} +2 -2
- package/dist/web/assets/{AgentSkillFormCard-yk7PWF0W.js → AgentSkillFormCard-CtfWIf7Y.js} +1 -1
- package/dist/web/assets/AiWriteWorkbench-Boie5E_-.js +7 -0
- package/dist/web/assets/{DiagramEditor-NtNY3sZL-Bw4wHaBD.js → DiagramEditor-NtNY3sZL-CZy-tmEe.js} +1 -1
- package/dist/web/assets/DocumentEditor-1A6lpvV-.js +26 -0
- package/dist/web/assets/{MergeView-royv5YkB.js → MergeView-Dip0aW7s.js} +1 -1
- package/dist/web/assets/PlaygroundPage-C4X6Lj-Q.js +8 -0
- package/dist/web/assets/{SettingsPage-D8HfepZ8.js → SettingsPage-nlnmzNZK.js} +1 -1
- package/dist/web/assets/{Toolbar-BDJ6WABq.js → Toolbar-BHLX-ug4.js} +2 -2
- package/dist/web/assets/{VisitorPickerModal-DPKIoySi.js → VisitorPickerModal-BPyEWlQo.js} +1 -1
- package/dist/web/assets/{copy-UwfRYkpI.js → copy-BE64wQqi.js} +1 -1
- package/dist/web/assets/diagram-CT58wBdU.js +5772 -0
- package/dist/web/assets/{editor-ONzd_YnO.js → editor-CL03se2B.js} +1 -1
- package/dist/web/assets/{index-4TuRcE3b.js → index-BkKvQv2F.js} +24 -24
- package/dist/web/assets/index-DKshvHIN.css +1 -0
- package/dist/web/assets/{meta2d-D3b5RRN8.js → meta2d-1-g23JOU.js} +1 -1
- package/dist/web/assets/{meta2dEngine-BD2XbzaV-D1J2-XNv.js → meta2dEngine-BD2XbzaV-z-eR7E_V.js} +1 -1
- package/dist/web/assets/{motion-DddvD-ez.js → motion-DX3HNq_4.js} +2 -2
- package/dist/web/assets/{plus-CiGwts52.js → plus-ECzYbQfA.js} +1 -1
- package/dist/web/assets/react-GP8hKHRA.js +2122 -0
- package/dist/web/assets/react-vendor-BuABiQkA.js +242 -0
- package/dist/web/assets/ui-BQStT3dY.js +3116 -0
- package/dist/web/index.html +6 -6
- package/package.json +2 -2
- package/dist/web/assets/AiWriteWorkbench-ChCJt24m.js +0 -7
- package/dist/web/assets/DocumentEditor-B3Dsq02C.js +0 -26
- package/dist/web/assets/PlaygroundPage-B-_1l4Ix.js +0 -8
- package/dist/web/assets/diagram--gCCJK__.js +0 -6257
- package/dist/web/assets/index-C4ESYs7f.css +0 -1
- package/dist/web/assets/react-B99eF5mm.js +0 -2377
- package/dist/web/assets/react-vendor-BJFXgntS.js +0 -242
- package/dist/web/assets/ui-BHvBMRFE.js +0 -3126
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var Xa=Object.defineProperty;var Ya=(t,e,n)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ve=(t,e,n)=>Ya(t,typeof e!="symbol"?e+"":e,n);import{r as v,a as ti,j as In}from"./react-vendor-BJFXgntS.js";import{u as On,c as ps,w as ei,a as qa,b as Za,s as Ja,g as Qa,d as tc,e as ec}from"./ui-BHvBMRFE.js";function nc(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function sc(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ic=function(){function t(n){var s=this;this._insertTag=function(i){var o;s.tags.length===0?s.insertionPoint?o=s.insertionPoint.nextSibling:s.prepend?o=s.container.firstChild:o=s.before:o=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(i,o),s.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(s){s.forEach(this._insertTag)},e.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sc(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=nc(i);try{o.insertRule(s,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(s));this.ctr++},e.flush=function(){this.tags.forEach(function(s){var i;return(i=s.parentNode)==null?void 0:i.removeChild(s)}),this.tags=[],this.ctr=0},t}(),X="-ms-",je="-moz-",V="-webkit-",kr="comm",ys="rule",gs="decl",rc="@import",Lr="@keyframes",oc="@layer",ac=Math.abs,Ye=String.fromCharCode,cc=Object.assign;function uc(t,e){return z(t,0)^45?(((e<<2^z(t,0))<<2^z(t,1))<<2^z(t,2))<<2^z(t,3):0}function Ir(t){return t.trim()}function lc(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Fn(t,e){return t.indexOf(e)}function z(t,e){return t.charCodeAt(e)|0}function ie(t,e,n){return t.slice(e,n)}function mt(t){return t.length}function vs(t){return t.length}function xe(t,e){return e.push(t),t}function fc(t,e){return t.map(e).join("")}var qe=1,Kt=1,Or=0,tt=0,N=0,zt="";function Ze(t,e,n,s,i,o,r){return{value:t,root:e,parent:n,type:s,props:i,children:o,line:qe,column:Kt,length:r,return:""}}function qt(t,e){return cc(Ze("",null,null,"",null,null,0),t,{length:-t.length},e)}function hc(){return N}function dc(){return N=tt>0?z(zt,--tt):0,Kt--,N===10&&(Kt=1,qe--),N}function nt(){return N=tt<Or?z(zt,tt++):0,Kt++,N===10&&(Kt=1,qe++),N}function gt(){return z(zt,tt)}function Me(){return tt}function fe(t,e){return ie(zt,t,e)}function re(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fr(t){return qe=Kt=1,Or=mt(zt=t),tt=0,[]}function Br(t){return zt="",t}function Ve(t){return Ir(fe(tt-1,Bn(t===91?t+2:t===40?t+1:t)))}function mc(t){for(;(N=gt())&&N<33;)nt();return re(t)>2||re(N)>3?"":" "}function pc(t,e){for(;--e&&nt()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return fe(t,Me()+(e<6&>()==32&&nt()==32))}function Bn(t){for(;nt();)switch(N){case t:return tt;case 34:case 39:t!==34&&t!==39&&Bn(N);break;case 40:t===41&&Bn(t);break;case 92:nt();break}return tt}function yc(t,e){for(;nt()&&t+N!==57;)if(t+N===84&>()===47)break;return"/*"+fe(e,tt-1)+"*"+Ye(t===47?t:nt())}function gc(t){for(;!re(gt());)nt();return fe(t,tt)}function vc(t){return Br(Re("",null,null,null,[""],t=Fr(t),0,[0],t))}function Re(t,e,n,s,i,o,r,a,c){for(var l=0,u=0,f=r,h=0,d=0,m=0,p=1,g=1,y=1,x=0,T="",S=i,w=o,M=s,A=T;g;)switch(m=x,x=nt()){case 40:if(m!=108&&z(A,f-1)==58){Fn(A+=R(Ve(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Ve(x);break;case 9:case 10:case 13:case 32:A+=mc(m);break;case 92:A+=pc(Me()-1,7);continue;case 47:switch(gt()){case 42:case 47:xe(xc(yc(nt(),Me()),e,n),c);break;default:A+="/"}break;case 123*p:a[l++]=mt(A)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:y==-1&&(A=R(A,/\f/g,"")),d>0&&mt(A)-f&&xe(d>32?si(A+";",s,n,f-1):si(R(A," ","")+";",s,n,f-2),c);break;case 59:A+=";";default:if(xe(M=ni(A,e,n,l,u,i,a,T,S=[],w=[],f),o),x===123)if(u===0)Re(A,e,M,M,S,o,f,a,w);else switch(h===99&&z(A,3)===110?100:h){case 100:case 108:case 109:case 115:Re(t,M,M,s&&xe(ni(t,M,M,0,0,i,a,T,i,S=[],f),w),i,w,f,a,s?S:w);break;default:Re(A,M,M,M,[""],w,0,a,w)}}l=u=d=0,p=y=1,T=A="",f=r;break;case 58:f=1+mt(A),d=m;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&dc()==125)continue}switch(A+=Ye(x),x*p){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(mt(A)-1)*y,y=1;break;case 64:gt()===45&&(A+=Ve(nt())),h=gt(),u=f=mt(T=A+=gc(Me())),x++;break;case 45:m===45&&mt(A)==2&&(p=0)}}return o}function ni(t,e,n,s,i,o,r,a,c,l,u){for(var f=i-1,h=i===0?o:[""],d=vs(h),m=0,p=0,g=0;m<s;++m)for(var y=0,x=ie(t,f+1,f=ac(p=r[m])),T=t;y<d;++y)(T=Ir(p>0?h[y]+" "+x:R(x,/&\f/g,h[y])))&&(c[g++]=T);return Ze(t,e,n,i===0?ys:a,c,l,u)}function xc(t,e,n){return Ze(t,e,n,kr,Ye(hc()),ie(t,2,-2),0)}function si(t,e,n,s){return Ze(t,e,n,gs,ie(t,0,s),ie(t,s+1,-1),s)}function Wt(t,e){for(var n="",s=vs(t),i=0;i<s;i++)n+=e(t[i],i,t,e)||"";return n}function Tc(t,e,n,s){switch(t.type){case oc:if(t.children.length)break;case rc:case gs:return t.return=t.return||t.value;case kr:return"";case Lr:return t.return=t.value+"{"+Wt(t.children,s)+"}";case ys:t.value=t.props.join(",")}return mt(n=Wt(t.children,s))?t.return=t.value+"{"+n+"}":""}function Sc(t){var e=vs(t);return function(n,s,i,o){for(var r="",a=0;a<e;a++)r+=t[a](n,s,i,o)||"";return r}}function bc(t){return function(e){e.root||(e=e.return)&&t(e)}}var ii=function(e){var n=new WeakMap;return function(s){if(n.has(s))return n.get(s);var i=e(s);return n.set(s,i),i}};function wc(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pc=function(e,n,s){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[s]=1),!re(o);)nt();return fe(e,tt)},Ac=function(e,n){var s=-1,i=44;do switch(re(i)){case 0:i===38&>()===12&&(n[s]=1),e[s]+=Pc(tt-1,n,s);break;case 2:e[s]+=Ve(i);break;case 4:if(i===44){e[++s]=gt()===58?"&\f":"",n[s]=e[s].length;break}default:e[s]+=Ye(i)}while(i=nt());return e},Cc=function(e,n){return Br(Ac(Fr(e),n))},ri=new WeakMap,Ec=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,s=e.parent,i=e.column===s.column&&e.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ri.get(s))&&!i){ri.set(e,!0);for(var o=[],r=Cc(n,o),a=s.props,c=0,l=0;c<r.length;c++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[c]?r[c].replace(/&\f/g,a[u]):a[u]+" "+r[c]}}},Mc=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function jr(t,e){switch(uc(t,e)){case 5103:return V+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return V+t+je+t+X+t+t;case 6828:case 4268:return V+t+X+t+t;case 6165:return V+t+X+"flex-"+t+t;case 5187:return V+t+R(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+X+"flex-$1$2")+t;case 5443:return V+t+X+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return V+t+X+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+X+R(t,"shrink","negative")+t;case 5292:return V+t+X+R(t,"basis","preferred-size")+t;case 6060:return V+"box-"+R(t,"-grow","")+V+t+X+R(t,"grow","positive")+t;case 4554:return V+R(t,/([^-])(transform)/g,"$1"+V+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,V+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(t)-1-e>6)switch(z(t,e+1)){case 109:if(z(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+je+(z(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Fn(t,"stretch")?jr(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(z(t,e+1)!==115)break;case 6444:switch(z(t,mt(t)-3-(~Fn(t,"!important")&&10))){case 107:return R(t,":",":"+V)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(z(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+X+"$2box$3")+t}break;case 5936:switch(z(t,e+11)){case 114:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+X+t+t}return t}var Vc=function(e,n,s,i){if(e.length>-1&&!e.return)switch(e.type){case gs:e.return=jr(e.value,e.length);break;case Lr:return Wt([qt(e,{value:R(e.value,"@","@"+V)})],i);case ys:if(e.length)return fc(e.props,function(o){switch(lc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wt([qt(e,{props:[R(o,/:(read-\w+)/,":"+je+"$1")]})],i);case"::placeholder":return Wt([qt(e,{props:[R(o,/:(plac\w+)/,":"+V+"input-$1")]}),qt(e,{props:[R(o,/:(plac\w+)/,":"+je+"$1")]}),qt(e,{props:[R(o,/:(plac\w+)/,X+"input-$1")]})],i)}return""})}},Rc=[Vc],Nr=function(e){var n=e.key;if(n==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||Rc,o={},r,a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)o[g[y]]=!0;a.push(p)});var c,l=[Ec,Mc];{var u,f=[Tc,bc(function(p){u.insert(p)})],h=Sc(l.concat(i,f)),d=function(g){return Wt(vc(g),h)};c=function(g,y,x,T){u=x,d(g?g+"{"+y.styles+"}":y.styles),T&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new ic({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(a),m};function Dc(t){for(var e=0,n,s=0,i=t.length;i>=4;++s,i-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(s+2)&255)<<16;case 2:e^=(t.charCodeAt(s+1)&255)<<8;case 1:e^=t.charCodeAt(s)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var kc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lc=/[A-Z]|^ms/g,Ic=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$r=function(e){return e.charCodeAt(1)===45},oi=function(e){return e!=null&&typeof e!="boolean"},yn=wc(function(t){return $r(t)?t:t.replace(Lc,"-$&").toLowerCase()}),ai=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ic,function(s,i,o){return pt={name:i,styles:o,next:pt},i})}return kc[e]!==1&&!$r(e)&&typeof n=="number"&&n!==0?n+"px":n};function oe(t,e,n){if(n==null)return"";var s=n;if(s.__emotion_styles!==void 0)return s;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pt={name:i.name,styles:i.styles,next:pt},i.name;var o=n;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)pt={name:r.name,styles:r.styles,next:pt},r=r.next;var a=o.styles+";";return a}return Oc(t,e,n)}case"function":{if(t!==void 0){var c=pt,l=n(t);return pt=c,oe(t,e,l)}break}}var u=n;if(e==null)return u;var f=e[u];return f!==void 0?f:u}function Oc(t,e,n){var s="";if(Array.isArray(n))for(var i=0;i<n.length;i++)s+=oe(t,e,n[i])+";";else for(var o in n){var r=n[o];if(typeof r!="object"){var a=r;e!=null&&e[a]!==void 0?s+=o+"{"+e[a]+"}":oi(a)&&(s+=yn(o)+":"+ai(o,a)+";")}else if(Array.isArray(r)&&typeof r[0]=="string"&&(e==null||e[r[0]]===void 0))for(var c=0;c<r.length;c++)oi(r[c])&&(s+=yn(o)+":"+ai(o,r[c])+";");else{var l=oe(t,e,r);switch(o){case"animation":case"animationName":{s+=yn(o)+":"+l+";";break}default:s+=o+"{"+l+"}"}}}return s}var ci=/label:\s*([^\s;{]+)\s*(;|$)/g,pt;function Qt(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,i="";pt=void 0;var o=t[0];if(o==null||o.raw===void 0)s=!1,i+=oe(n,e,o);else{var r=o;i+=r[0]}for(var a=1;a<t.length;a++)if(i+=oe(n,e,t[a]),s){var c=o;i+=c[a]}ci.lastIndex=0;for(var l="",u;(u=ci.exec(i))!==null;)l+="-"+u[1];var f=Dc(i)+l;return{name:f,styles:i,next:pt}}var Fc=!0;function xs(t,e,n){var s="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(s+=i+" ")}),s}var Ur=function(e,n,s){var i=e.key+"-"+n.name;(s===!1||Fc===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Ts=function(e,n,s){Ur(e,n,s);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function ui(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function li(t,e,n){var s=[],i=xs(t,s,n);return s.length<2?n:i+e(s)}var Bc=function(e){var n=Nr(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var s=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered,void 0);return Ts(n,f,!1),n.key+"-"+f.name},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered),h="animation-"+f.name;return ui(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered);ui(n,f)},r=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return li(n.registered,s,jc(l))};return{css:s,cx:r,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(l){n.inserted[l]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:xs.bind(null,n.registered),merge:li.bind(null,n.registered,s)}},jc=function t(e){for(var n="",s=0;s<e.length;s++){var i=e[s];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var r in i)i[r]&&r&&(o&&(o+=" "),o+=r)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Tt=Bc({key:"css"});Tt.flush;Tt.hydrate;Tt.cx;Tt.merge;Tt.getRegisteredStyles;Tt.injectGlobal;Tt.keyframes;Tt.css;Tt.sheet;var vm=Tt.cache;function jn(){return jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)({}).hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},jn.apply(null,arguments)}var Wr={exports:{}},D={};/** @license React v16.13.1
|
|
1
|
+
var Xa=Object.defineProperty;var Ya=(t,e,n)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ve=(t,e,n)=>Ya(t,typeof e!="symbol"?e+"":e,n);import{r as v,a as ti,j as In}from"./react-vendor-BuABiQkA.js";import{u as On,c as ps,w as ei,a as qa,b as Za,s as Ja,g as Qa,d as tc,e as ec}from"./ui-BQStT3dY.js";function nc(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function sc(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var ic=function(){function t(n){var s=this;this._insertTag=function(i){var o;s.tags.length===0?s.insertionPoint?o=s.insertionPoint.nextSibling:s.prepend?o=s.container.firstChild:o=s.before:o=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(i,o),s.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(s){s.forEach(this._insertTag)},e.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sc(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=nc(i);try{o.insertRule(s,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(s));this.ctr++},e.flush=function(){this.tags.forEach(function(s){var i;return(i=s.parentNode)==null?void 0:i.removeChild(s)}),this.tags=[],this.ctr=0},t}(),X="-ms-",je="-moz-",V="-webkit-",kr="comm",ys="rule",gs="decl",rc="@import",Lr="@keyframes",oc="@layer",ac=Math.abs,Ye=String.fromCharCode,cc=Object.assign;function uc(t,e){return _(t,0)^45?(((e<<2^_(t,0))<<2^_(t,1))<<2^_(t,2))<<2^_(t,3):0}function Ir(t){return t.trim()}function lc(t,e){return(t=e.exec(t))?t[0]:t}function R(t,e,n){return t.replace(e,n)}function Fn(t,e){return t.indexOf(e)}function _(t,e){return t.charCodeAt(e)|0}function ie(t,e,n){return t.slice(e,n)}function mt(t){return t.length}function vs(t){return t.length}function xe(t,e){return e.push(t),t}function fc(t,e){return t.map(e).join("")}var qe=1,Kt=1,Or=0,tt=0,N=0,_t="";function Ze(t,e,n,s,i,o,r){return{value:t,root:e,parent:n,type:s,props:i,children:o,line:qe,column:Kt,length:r,return:""}}function qt(t,e){return cc(Ze("",null,null,"",null,null,0),t,{length:-t.length},e)}function hc(){return N}function dc(){return N=tt>0?_(_t,--tt):0,Kt--,N===10&&(Kt=1,qe--),N}function nt(){return N=tt<Or?_(_t,tt++):0,Kt++,N===10&&(Kt=1,qe++),N}function gt(){return _(_t,tt)}function Me(){return tt}function fe(t,e){return ie(_t,t,e)}function re(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Fr(t){return qe=Kt=1,Or=mt(_t=t),tt=0,[]}function Br(t){return _t="",t}function Ve(t){return Ir(fe(tt-1,Bn(t===91?t+2:t===40?t+1:t)))}function mc(t){for(;(N=gt())&&N<33;)nt();return re(t)>2||re(N)>3?"":" "}function pc(t,e){for(;--e&&nt()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return fe(t,Me()+(e<6&>()==32&&nt()==32))}function Bn(t){for(;nt();)switch(N){case t:return tt;case 34:case 39:t!==34&&t!==39&&Bn(N);break;case 40:t===41&&Bn(t);break;case 92:nt();break}return tt}function yc(t,e){for(;nt()&&t+N!==57;)if(t+N===84&>()===47)break;return"/*"+fe(e,tt-1)+"*"+Ye(t===47?t:nt())}function gc(t){for(;!re(gt());)nt();return fe(t,tt)}function vc(t){return Br(Re("",null,null,null,[""],t=Fr(t),0,[0],t))}function Re(t,e,n,s,i,o,r,a,c){for(var l=0,u=0,f=r,h=0,d=0,m=0,p=1,g=1,y=1,x=0,T="",S=i,w=o,M=s,A=T;g;)switch(m=x,x=nt()){case 40:if(m!=108&&_(A,f-1)==58){Fn(A+=R(Ve(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Ve(x);break;case 9:case 10:case 13:case 32:A+=mc(m);break;case 92:A+=pc(Me()-1,7);continue;case 47:switch(gt()){case 42:case 47:xe(xc(yc(nt(),Me()),e,n),c);break;default:A+="/"}break;case 123*p:a[l++]=mt(A)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:y==-1&&(A=R(A,/\f/g,"")),d>0&&mt(A)-f&&xe(d>32?si(A+";",s,n,f-1):si(R(A," ","")+";",s,n,f-2),c);break;case 59:A+=";";default:if(xe(M=ni(A,e,n,l,u,i,a,T,S=[],w=[],f),o),x===123)if(u===0)Re(A,e,M,M,S,o,f,a,w);else switch(h===99&&_(A,3)===110?100:h){case 100:case 108:case 109:case 115:Re(t,M,M,s&&xe(ni(t,M,M,0,0,i,a,T,i,S=[],f),w),i,w,f,a,s?S:w);break;default:Re(A,M,M,M,[""],w,0,a,w)}}l=u=d=0,p=y=1,T=A="",f=r;break;case 58:f=1+mt(A),d=m;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&dc()==125)continue}switch(A+=Ye(x),x*p){case 38:y=u>0?1:(A+="\f",-1);break;case 44:a[l++]=(mt(A)-1)*y,y=1;break;case 64:gt()===45&&(A+=Ve(nt())),h=gt(),u=f=mt(T=A+=gc(Me())),x++;break;case 45:m===45&&mt(A)==2&&(p=0)}}return o}function ni(t,e,n,s,i,o,r,a,c,l,u){for(var f=i-1,h=i===0?o:[""],d=vs(h),m=0,p=0,g=0;m<s;++m)for(var y=0,x=ie(t,f+1,f=ac(p=r[m])),T=t;y<d;++y)(T=Ir(p>0?h[y]+" "+x:R(x,/&\f/g,h[y])))&&(c[g++]=T);return Ze(t,e,n,i===0?ys:a,c,l,u)}function xc(t,e,n){return Ze(t,e,n,kr,Ye(hc()),ie(t,2,-2),0)}function si(t,e,n,s){return Ze(t,e,n,gs,ie(t,0,s),ie(t,s+1,-1),s)}function Wt(t,e){for(var n="",s=vs(t),i=0;i<s;i++)n+=e(t[i],i,t,e)||"";return n}function Tc(t,e,n,s){switch(t.type){case oc:if(t.children.length)break;case rc:case gs:return t.return=t.return||t.value;case kr:return"";case Lr:return t.return=t.value+"{"+Wt(t.children,s)+"}";case ys:t.value=t.props.join(",")}return mt(n=Wt(t.children,s))?t.return=t.value+"{"+n+"}":""}function Sc(t){var e=vs(t);return function(n,s,i,o){for(var r="",a=0;a<e;a++)r+=t[a](n,s,i,o)||"";return r}}function bc(t){return function(e){e.root||(e=e.return)&&t(e)}}var ii=function(e){var n=new WeakMap;return function(s){if(n.has(s))return n.get(s);var i=e(s);return n.set(s,i),i}};function wc(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pc=function(e,n,s){for(var i=0,o=0;i=o,o=gt(),i===38&&o===12&&(n[s]=1),!re(o);)nt();return fe(e,tt)},Ac=function(e,n){var s=-1,i=44;do switch(re(i)){case 0:i===38&>()===12&&(n[s]=1),e[s]+=Pc(tt-1,n,s);break;case 2:e[s]+=Ve(i);break;case 4:if(i===44){e[++s]=gt()===58?"&\f":"",n[s]=e[s].length;break}default:e[s]+=Ye(i)}while(i=nt());return e},Cc=function(e,n){return Br(Ac(Fr(e),n))},ri=new WeakMap,Ec=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,s=e.parent,i=e.column===s.column&&e.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!ri.get(s))&&!i){ri.set(e,!0);for(var o=[],r=Cc(n,o),a=s.props,c=0,l=0;c<r.length;c++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[c]?r[c].replace(/&\f/g,a[u]):a[u]+" "+r[c]}}},Mc=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function jr(t,e){switch(uc(t,e)){case 5103:return V+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return V+t+je+t+X+t+t;case 6828:case 4268:return V+t+X+t+t;case 6165:return V+t+X+"flex-"+t+t;case 5187:return V+t+R(t,/(\w+).+(:[^]+)/,V+"box-$1$2"+X+"flex-$1$2")+t;case 5443:return V+t+X+"flex-item-"+R(t,/flex-|-self/,"")+t;case 4675:return V+t+X+"flex-line-pack"+R(t,/align-content|flex-|-self/,"")+t;case 5548:return V+t+X+R(t,"shrink","negative")+t;case 5292:return V+t+X+R(t,"basis","preferred-size")+t;case 6060:return V+"box-"+R(t,"-grow","")+V+t+X+R(t,"grow","positive")+t;case 4554:return V+R(t,/([^-])(transform)/g,"$1"+V+"$2")+t;case 6187:return R(R(R(t,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),t,"")+t;case 5495:case 3959:return R(t,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return R(R(t,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+t+t;case 4095:case 3583:case 4068:case 2532:return R(t,/(.+)-inline(.+)/,V+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(t)-1-e>6)switch(_(t,e+1)){case 109:if(_(t,e+4)!==45)break;case 102:return R(t,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+je+(_(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Fn(t,"stretch")?jr(R(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(_(t,e+1)!==115)break;case 6444:switch(_(t,mt(t)-3-(~Fn(t,"!important")&&10))){case 107:return R(t,":",":"+V)+t;case 101:return R(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(_(t,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+X+"$2box$3")+t}break;case 5936:switch(_(t,e+11)){case 114:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return V+t+X+R(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return V+t+X+t+t}return t}var Vc=function(e,n,s,i){if(e.length>-1&&!e.return)switch(e.type){case gs:e.return=jr(e.value,e.length);break;case Lr:return Wt([qt(e,{value:R(e.value,"@","@"+V)})],i);case ys:if(e.length)return fc(e.props,function(o){switch(lc(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wt([qt(e,{props:[R(o,/:(read-\w+)/,":"+je+"$1")]})],i);case"::placeholder":return Wt([qt(e,{props:[R(o,/:(plac\w+)/,":"+V+"input-$1")]}),qt(e,{props:[R(o,/:(plac\w+)/,":"+je+"$1")]}),qt(e,{props:[R(o,/:(plac\w+)/,X+"input-$1")]})],i)}return""})}},Rc=[Vc],Nr=function(e){var n=e.key;if(n==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=e.stylisPlugins||Rc,o={},r,a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)o[g[y]]=!0;a.push(p)});var c,l=[Ec,Mc];{var u,f=[Tc,bc(function(p){u.insert(p)})],h=Sc(l.concat(i,f)),d=function(g){return Wt(vc(g),h)};c=function(g,y,x,T){u=x,d(g?g+"{"+y.styles+"}":y.styles),T&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new ic({key:n,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return m.sheet.hydrate(a),m};function Dc(t){for(var e=0,n,s=0,i=t.length;i>=4;++s,i-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(s+2)&255)<<16;case 2:e^=(t.charCodeAt(s+1)&255)<<8;case 1:e^=t.charCodeAt(s)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var kc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lc=/[A-Z]|^ms/g,Ic=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$r=function(e){return e.charCodeAt(1)===45},oi=function(e){return e!=null&&typeof e!="boolean"},yn=wc(function(t){return $r(t)?t:t.replace(Lc,"-$&").toLowerCase()}),ai=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ic,function(s,i,o){return pt={name:i,styles:o,next:pt},i})}return kc[e]!==1&&!$r(e)&&typeof n=="number"&&n!==0?n+"px":n};function oe(t,e,n){if(n==null)return"";var s=n;if(s.__emotion_styles!==void 0)return s;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pt={name:i.name,styles:i.styles,next:pt},i.name;var o=n;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)pt={name:r.name,styles:r.styles,next:pt},r=r.next;var a=o.styles+";";return a}return Oc(t,e,n)}case"function":{if(t!==void 0){var c=pt,l=n(t);return pt=c,oe(t,e,l)}break}}var u=n;if(e==null)return u;var f=e[u];return f!==void 0?f:u}function Oc(t,e,n){var s="";if(Array.isArray(n))for(var i=0;i<n.length;i++)s+=oe(t,e,n[i])+";";else for(var o in n){var r=n[o];if(typeof r!="object"){var a=r;e!=null&&e[a]!==void 0?s+=o+"{"+e[a]+"}":oi(a)&&(s+=yn(o)+":"+ai(o,a)+";")}else if(Array.isArray(r)&&typeof r[0]=="string"&&(e==null||e[r[0]]===void 0))for(var c=0;c<r.length;c++)oi(r[c])&&(s+=yn(o)+":"+ai(o,r[c])+";");else{var l=oe(t,e,r);switch(o){case"animation":case"animationName":{s+=yn(o)+":"+l+";";break}default:s+=o+"{"+l+"}"}}}return s}var ci=/label:\s*([^\s;{]+)\s*(;|$)/g,pt;function Qt(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,i="";pt=void 0;var o=t[0];if(o==null||o.raw===void 0)s=!1,i+=oe(n,e,o);else{var r=o;i+=r[0]}for(var a=1;a<t.length;a++)if(i+=oe(n,e,t[a]),s){var c=o;i+=c[a]}ci.lastIndex=0;for(var l="",u;(u=ci.exec(i))!==null;)l+="-"+u[1];var f=Dc(i)+l;return{name:f,styles:i,next:pt}}var Fc=!0;function xs(t,e,n){var s="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(s+=i+" ")}),s}var Ur=function(e,n,s){var i=e.key+"-"+n.name;(s===!1||Fc===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},Ts=function(e,n,s){Ur(e,n,s);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function ui(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function li(t,e,n){var s=[],i=xs(t,s,n);return s.length<2?n:i+e(s)}var Bc=function(e){var n=Nr(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var s=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered,void 0);return Ts(n,f,!1),n.key+"-"+f.name},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered),h="animation-"+f.name;return ui(n,{name:f.name,styles:"@keyframes "+h+"{"+f.styles+"}"}),h},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var f=Qt(l,n.registered);ui(n,f)},r=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return li(n.registered,s,jc(l))};return{css:s,cx:r,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(l){n.inserted[l]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:xs.bind(null,n.registered),merge:li.bind(null,n.registered,s)}},jc=function t(e){for(var n="",s=0;s<e.length;s++){var i=e[s];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var r in i)i[r]&&r&&(o&&(o+=" "),o+=r)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},Tt=Bc({key:"css"});Tt.flush;Tt.hydrate;Tt.cx;Tt.merge;Tt.getRegisteredStyles;Tt.injectGlobal;Tt.keyframes;Tt.css;Tt.sheet;var vm=Tt.cache;function jn(){return jn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)({}).hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},jn.apply(null,arguments)}var Wr={exports:{}},D={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var K=typeof Symbol=="function"&&Symbol.for,Ss=K?Symbol.for("react.element"):60103,bs=K?Symbol.for("react.portal"):60106,Je=K?Symbol.for("react.fragment"):60107,Qe=K?Symbol.for("react.strict_mode"):60108,tn=K?Symbol.for("react.profiler"):60114,en=K?Symbol.for("react.provider"):60109,nn=K?Symbol.for("react.context"):60110,ws=K?Symbol.for("react.async_mode"):60111,sn=K?Symbol.for("react.concurrent_mode"):60111,rn=K?Symbol.for("react.forward_ref"):60112,on=K?Symbol.for("react.suspense"):60113,Nc=K?Symbol.for("react.suspense_list"):60120,an=K?Symbol.for("react.memo"):60115,cn=K?Symbol.for("react.lazy"):60116,$c=K?Symbol.for("react.block"):60121,Uc=K?Symbol.for("react.fundamental"):60117,Wc=K?Symbol.for("react.responder"):60118,Kc=K?Symbol.for("react.scope"):60119;function it(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Ss:switch(t=t.type,t){case ws:case sn:case Je:case tn:case Qe:case on:return t;default:switch(t=t&&t.$$typeof,t){case nn:case rn:case cn:case an:case en:return t;default:return e}}case bs:return e}}}function Kr(t){return it(t)===sn}D.AsyncMode=ws;D.ConcurrentMode=sn;D.ContextConsumer=nn;D.ContextProvider=en;D.Element=Ss;D.ForwardRef=rn;D.Fragment=Je;D.Lazy=cn;D.Memo=an;D.Portal=bs;D.Profiler=tn;D.StrictMode=Qe;D.Suspense=on;D.isAsyncMode=function(t){return Kr(t)||it(t)===ws};D.isConcurrentMode=Kr;D.isContextConsumer=function(t){return it(t)===nn};D.isContextProvider=function(t){return it(t)===en};D.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ss};D.isForwardRef=function(t){return it(t)===rn};D.isFragment=function(t){return it(t)===Je};D.isLazy=function(t){return it(t)===cn};D.isMemo=function(t){return it(t)===an};D.isPortal=function(t){return it(t)===bs};D.isProfiler=function(t){return it(t)===tn};D.isStrictMode=function(t){return it(t)===Qe};D.isSuspense=function(t){return it(t)===on};D.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Je||t===sn||t===tn||t===Qe||t===on||t===Nc||typeof t=="object"&&t!==null&&(t.$$typeof===cn||t.$$typeof===an||t.$$typeof===en||t.$$typeof===nn||t.$$typeof===rn||t.$$typeof===Uc||t.$$typeof===Wc||t.$$typeof===Kc||t.$$typeof===$c)};D.typeOf=it;Wr.exports=D;var Gc=Wr.exports,Gr=Gc,_c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_r={};_r[Gr.ForwardRef]=_c;_r[Gr.Memo]=zc;var Hc=function(e){return e()},zr=ti.useInsertionEffect?ti.useInsertionEffect:!1,Xc=zr||Hc,fi=zr||v.useLayoutEffect,Hr=v.createContext(typeof HTMLElement<"u"?Nr({key:"css"}):null);Hr.Provider;var Xr=function(e){return v.forwardRef(function(n,s){var i=v.useContext(Hr);return e(n,i,s)})},Ne=v.createContext({}),Yc=function(e,n){if(typeof n=="function"){var s=n(e);return s}return jn({},e,n)},qc=ii(function(t){return ii(function(e){return Yc(t,e)})}),xm=function(e){var n=v.useContext(Ne);return e.theme!==n&&(n=qc(n)(e.theme)),v.createElement(Ne.Provider,{value:n},e.children)},Ps={}.hasOwnProperty,Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zc=function(e,n){var s={};for(var i in n)Ps.call(n,i)&&(s[i]=n[i]);return s[Nn]=e,s},Jc=function(e){var n=e.cache,s=e.serialized,i=e.isStringTag;return Ur(n,s,i),Xc(function(){return Ts(n,s,i)}),null},Qc=Xr(function(t,e,n){var s=t.css;typeof s=="string"&&e.registered[s]!==void 0&&(s=e.registered[s]);var i=t[Nn],o=[s],r="";typeof t.className=="string"?r=xs(e.registered,o,t.className):t.className!=null&&(r=t.className+" ");var a=Qt(o,void 0,v.useContext(Ne));r+=e.key+"-"+a.name;var c={};for(var l in t)Ps.call(t,l)&&l!=="css"&&l!==Nn&&(c[l]=t[l]);return c.className=r,n&&(c.ref=n),v.createElement(v.Fragment,null,v.createElement(Jc,{cache:e,serialized:a,isStringTag:typeof i=="string"}),v.createElement(i,c))}),tu=Qc,hi=function(e,n){var s=arguments;if(n==null||!Ps.call(n,"css"))return v.createElement.apply(void 0,s);var i=s.length,o=new Array(i);o[0]=tu,o[1]=Zc(e,n);for(var r=2;r<i;r++)o[r]=s[r];return v.createElement.apply(null,o)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(hi||(hi={}));var Tm=Xr(function(t,e){var n=t.styles,s=Qt([n],void 0,v.useContext(Ne)),i=v.useRef();return fi(function(){var o=e.key+"-global",r=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+o+" "+s.name+'"]');return e.sheet.tags.length&&(r.before=e.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",o),r.hydrate([c])),i.current=[r,a],function(){r.flush()}},[e]),fi(function(){var o=i.current,r=o[0],a=o[1];if(a){o[1]=!1;return}if(s.next!==void 0&&Ts(e,s.next,!0),r.tags.length){var c=r.tags[r.tags.length-1].nextElementSibling;r.before=c,r.flush()}e.insert("",s,r,!1)},[e,s.name]),null});function Sm(t){for(var e=0,n,s=0,i=t.length;i>=4;++s,i-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(s+2)&255)<<16;case 2:e^=(t.charCodeAt(s+1)&255)<<8;case 1:e^=t.charCodeAt(s)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var bm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Yr=v.createContext({}),wm=t=>{const{children:e,...n}=t,s=v.useMemo(()=>({motion:n.motion}),[n.motion]);return v.createElement(Yr.Provider,{value:s},e)};function eu(t){const[,e]=v.useReducer(o=>o+1,0),n=v.useRef(t),s=On(()=>n.current),i=On(o=>{n.current=typeof o=="function"?o(n.current):o,e()});return[s,i]}const ht="none",Te="appear",Se="enter",be="leave",di="none",lt="prepare",kt="start",Lt="active",As="end",qr="prepared";function mi(t,e){const n={};return n[t.toLowerCase()]=e.toLowerCase(),n[`Webkit${t}`]=`webkit${e}`,n[`Moz${t}`]=`moz${e}`,n[`ms${t}`]=`MS${e}`,n[`O${t}`]=`o${e.toLowerCase()}`,n}function nu(t,e){const n={animationend:mi("Animation","AnimationEnd"),transitionend:mi("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}const su=nu(ps(),typeof window<"u"?window:{});let Zr={};ps()&&({style:Zr}=document.createElement("div"));const we={};function Jr(t){if(we[t])return we[t];const e=su[t];if(e){const n=Object.keys(e),s=n.length;for(let i=0;i<s;i+=1){const o=n[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in Zr)return we[t]=e[o],we[t]}}return""}const Qr=Jr("animationend"),to=Jr("transitionend"),iu=!!(Qr&&to),pi=Qr||"animationend",yi=to||"transitionend";function gi(t,e){if(!t)return null;if(typeof t=="object"){const n=e.replace(/-\w/g,s=>s[1].toUpperCase());return t[n]}return`${t}-${e}`}const ru=t=>{const e=v.useRef();function n(i){i&&(i.removeEventListener(yi,t),i.removeEventListener(pi,t))}function s(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(yi,t),i.addEventListener(pi,t),e.current=i)}return v.useEffect(()=>()=>{n(e.current),e.current=null},[]),[s,n]},eo=ps()?v.useLayoutEffect:v.useEffect,ou=()=>{const t=v.useRef(null);function e(){ei.cancel(t.current)}function n(s,i=2){e();const o=ei(()=>{i<=1?s({isCanceled:()=>o!==t.current}):n(s,i-1)});t.current=o}return v.useEffect(()=>()=>{e()},[]),[n,e]},au=[lt,kt,Lt,As],cu=[lt,qr],no=!1,uu=!0;function so(t){return t===Lt||t===As}const lu=(t,e,n)=>{const[s,i]=qa(di),[o,r]=ou();function a(){i(lt,!0)}const c=e?cu:au;return eo(()=>{if(s!==di&&s!==As){const l=c.indexOf(s),u=c[l+1],f=n(s);f===no?i(u,!0):u&&o(h=>{function d(){h.isCanceled()||i(u,!0)}f===!0?d():Promise.resolve(f).then(d)})}},[t,s]),v.useEffect(()=>()=>{r()},[]),[a,s]};function fu(t,e,n,{motionEnter:s=!0,motionAppear:i=!0,motionLeave:o=!0,motionDeadline:r,motionLeaveImmediately:a,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:f,onEnterStart:h,onLeaveStart:d,onAppearActive:m,onEnterActive:p,onLeaveActive:g,onAppearEnd:y,onEnterEnd:x,onLeaveEnd:T,onVisibleChanged:S}){const[w,M]=v.useState(),[A,E]=eu(ht),[O,P]=v.useState([null,null]),C=A(),L=v.useRef(!1),G=v.useRef(null);function W(){return n()}const rt=v.useRef(!1);function et(){E(ht),P([null,null])}const dn=On(B=>{const Q=A();if(Q===ht)return;const St=W();if(B&&!B.deadline&&B.target!==St)return;const ye=rt.current;let ge;Q===Te&&ye?ge=y==null?void 0:y(St,B):Q===Se&&ye?ge=x==null?void 0:x(St,B):Q===be&&ye&&(ge=T==null?void 0:T(St,B)),ye&&ge!==!1&&et()}),[$]=ru(dn),Y=B=>{switch(B){case Te:return{[lt]:c,[kt]:f,[Lt]:m};case Se:return{[lt]:l,[kt]:h,[Lt]:p};case be:return{[lt]:u,[kt]:d,[Lt]:g};default:return{}}},J=v.useMemo(()=>Y(C),[C]),[bt,wt]=lu(C,!t,B=>{var Q;if(B===lt){const St=J[lt];return St?St(W()):no}return B in J&&P([((Q=J[B])==null?void 0:Q.call(J,W(),null))||null,B]),B===Lt&&C!==ht&&($(W()),r>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{dn({deadline:!0})},r))),B===qr&&et(),uu}),za=so(wt);rt.current=za;const Qs=v.useRef(null);eo(()=>{if(L.current&&Qs.current===e)return;M(e);const B=L.current;L.current=!0;let Q;!B&&e&&i&&(Q=Te),B&&e&&s&&(Q=Se),(B&&!e&&o||!B&&a&&!e&&o)&&(Q=be);const St=Y(Q);Q&&(t||St[lt])?(E(Q),bt()):E(ht),Qs.current=e},[e]),v.useEffect(()=>{(C===Te&&!i||C===Se&&!s||C===be&&!o)&&E(ht)},[i,s,o]),v.useEffect(()=>()=>{L.current=!1,clearTimeout(G.current)},[]);const mn=v.useRef(!1);v.useEffect(()=>{w&&(mn.current=!0),w!==void 0&&C===ht&&((mn.current||w)&&(S==null||S(w)),mn.current=!0)},[w,C]);let pn=O[0];J[lt]&&wt===kt&&(pn={transition:"none",...pn});const Ha=O[1];return[A,wt,pn,w??e,!L.current&&C===ht&&t&&i?"NONE":wt===kt||wt===Lt?Ha===wt:!0]}function io(t){return(t==null?void 0:t.length)<2}function hu(t){let e=t;typeof t=="object"&&({transitionSupport:e}=t);function n(i,o){return!!(i.motionName&&e&&o!==!1)}const s=v.forwardRef((i,o)=>{const{visible:r=!0,removeOnLeave:a=!0,forceRender:c,children:l,motionName:u,leavedClassName:f,eventProps:h}=i,{motion:d}=v.useContext(Yr),m=n(i,d),p=v.useRef();function g(){return ec(p.current)}const[y,x,T,S,w]=fu(m,r,g,i),M=y(),A=v.useRef(S);S&&(A.current=!0);const E=v.useMemo(()=>{const C={};return Object.defineProperties(C,{nativeElement:{enumerable:!0,get:g},inMotion:{enumerable:!0,get:()=>()=>y()!==ht},enableMotion:{enumerable:!0,get:()=>()=>m}}),C},[]);v.useImperativeHandle(o,()=>E,[]);const O=v.useRef(0);w&&(O.current+=1);const P=v.useMemo(()=>{if(w==="NONE")return null;let C;const L={...h,visible:r};if(!l)C=null;else if(M===ht)S?C=l({...L},p):!a&&A.current&&f?C=l({...L,className:f},p):c||!a&&!f?C=l({...L,style:{display:"none"}},p):C=null;else{let G;x===lt?G="prepare":so(x)?G="active":x===kt&&(G="start");const W=gi(u,`${M}-${G}`);C=l({...L,className:Za(gi(u,M),{[W]:W&&G,[u]:typeof u=="string"}),style:T},p)}return C},[O.current]);if(io(l)&&Ja(P)){const C=Qa(P);if(C!==p)return v.cloneElement(P,{ref:tc(C,p)})}return P});return s.displayName="CSSMotion",s}const du=hu(iu),$n="add",Un="keep",Wn="remove",gn="removed";function mu(t){let e;return t&&typeof t=="object"&&"key"in t?e=t:e={key:t},{...e,key:String(e.key)}}function Kn(t=[]){return t.map(mu)}function pu(t=[],e=[]){let n=[],s=0;const i=e.length,o=Kn(t),r=Kn(e);o.forEach(l=>{let u=!1;for(let f=s;f<i;f+=1){const h=r[f];if(h.key===l.key){s<f&&(n=n.concat(r.slice(s,f).map(d=>({...d,status:$n}))),s=f),n.push({...h,status:Un}),s+=1,u=!0;break}}u||n.push({...l,status:Wn})}),s<i&&(n=n.concat(r.slice(s).map(l=>({...l,status:$n}))));const a={};return n.forEach(({key:l})=>{a[l]=(a[l]||0)+1}),Object.keys(a).filter(l=>a[l]>1).forEach(l=>{n=n.filter(({key:u,status:f})=>u!==l||f!==Wn),n.forEach(u=>{u.key===l&&(u.status=Un)})}),n}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Gn.apply(this,arguments)}const yu=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gu(t,e=du){class n extends v.Component{constructor(){super(...arguments);ve(this,"state",{keyEntities:[]});ve(this,"removeKey",o=>{this.setState(r=>({keyEntities:r.keyEntities.map(c=>c.key!==o?c:{...c,status:gn})}),()=>{const{keyEntities:r}=this.state;r.filter(({status:c})=>c!==gn).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:o},{keyEntities:r}){const a=Kn(o);return{keyEntities:pu(r,a).filter(l=>{const u=r.find(({key:f})=>l.key===f);return!(u&&u.status===gn&&l.status===Wn)})}}render(){const{keyEntities:o}=this.state,{component:r,children:a,onVisibleChanged:c,onAllRemoved:l,...u}=this.props,f=r||v.Fragment,h={};return yu.forEach(d=>{h[d]=u[d],delete u[d]}),delete u.keys,v.createElement(f,u,o.map(({status:d,...m},p)=>{const g=d===$n||d===Un;return v.createElement(e,Gn({},h,{key:m.key,visible:g,eventProps:m,onVisibleChanged:y=>{c==null||c(y,{key:m.key}),y||this.removeKey(m.key)}}),io(a)?y=>a({...y,index:p}):(y,x)=>a({...y,index:p},x))}))}}return ve(n,"defaultProps",{component:"div"}),n}const Pm=gu();function Am(t,e,n){if(e)return e;if(n)return n[t]||n.other}const ro=v.createContext({});function vu(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const xu=typeof window<"u",Tu=xu?v.useLayoutEffect:v.useEffect,Cs=v.createContext(null);function Es(t,e){t.indexOf(e)===-1&&t.push(e)}function $e(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const xt=(t,e,n)=>n>e?e:n<t?t:n;let Ms=()=>{};const Et={},oo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ao(t){return typeof t=="object"&&t!==null}const co=t=>/^0[^.\s]+$/u.test(t);function uo(t){let e;return()=>(e===void 0&&(e=t()),e)}const at=t=>t,Su=(t,e)=>n=>e(t(n)),he=(...t)=>t.reduce(Su),ae=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Vs{constructor(){this.subscriptions=[]}add(e){return Es(this.subscriptions,e),()=>$e(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const st=t=>t*1e3,ot=t=>t/1e3;function lo(t,e){return e?t*(1e3/e):0}const fo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bu=1e-7,wu=12;function Pu(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=fo(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>bu&&++a<wu);return r}function de(t,e,n,s){if(t===e&&n===s)return at;const i=o=>Pu(o,0,1,t,n);return o=>o===0||o===1?o:fo(i(o),e,s)}const ho=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,mo=t=>e=>1-t(1-e),po=de(.33,1.53,.69,.99),Rs=mo(po),yo=ho(Rs),go=t=>t>=1?1:(t*=2)<1?.5*Rs(t):.5*(2-Math.pow(2,-10*(t-1))),Ds=t=>1-Math.sin(Math.acos(t)),vo=mo(Ds),xo=ho(Ds),Au=de(.42,0,1,1),Cu=de(0,0,.58,1),To=de(.42,0,.58,1),Eu=t=>Array.isArray(t)&&typeof t[0]!="number",So=t=>Array.isArray(t)&&typeof t[0]=="number",Mu={linear:at,easeIn:Au,easeInOut:To,easeOut:Cu,circIn:Ds,circInOut:xo,circOut:vo,backIn:Rs,backInOut:yo,backOut:po,anticipate:go},Vu=t=>typeof t=="string",vi=t=>{if(So(t)){Ms(t.length===4);const[e,n,s,i]=t;return de(e,n,s,i)}else if(Vu(t))return Mu[t];return t},Pe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ru(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){r.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&r.add(u),m.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0;const f=n;n=s,s=f,n.forEach(c),n.clear(),i=!1,o&&(o=!1,l.process(u))}};return l}const Du=40;function bo(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Pe.reduce((T,S)=>(T[S]=Ru(o),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:d,postRender:m}=r,p=()=>{const T=Et.useManualTiming,S=T?i.timestamp:performance.now();n=!1,T||(i.delta=s?1e3/60:Math.max(Math.min(S-i.timestamp,Du),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},g=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Pe.reduce((T,S)=>{const w=r[S];return T[S]=(M,A=!1,E=!1)=>(n||g(),w.schedule(M,A,E)),T},{}),cancel:T=>{for(let S=0;S<Pe.length;S++)r[Pe[S]].cancel(T)},state:i,steps:r}}const{schedule:k,cancel:Mt,state:_,steps:vn}=bo(typeof requestAnimationFrame<"u"?requestAnimationFrame:at,!0);let De;function ku(){De=void 0}const q={now:()=>(De===void 0&&q.set(_.isProcessing||Et.useManualTiming?_.timestamp:performance.now()),De),set:t=>{De=t,queueMicrotask(ku)}},wo=t=>e=>typeof e=="string"&&e.startsWith(t),Po=wo("--"),Lu=wo("var(--"),ks=t=>Lu(t)?Iu.test(t.split("/*")[0].trim()):!1,Iu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function xi(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ce={...Ht,transform:t=>xt(0,1,t)},Ae={...Ht,default:1},te=t=>Math.round(t*1e5)/1e5,Ls=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ou(t){return t==null}const Fu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Is=(t,e)=>n=>!!(typeof n=="string"&&Fu.test(n)&&n.startsWith(t)||e&&!Ou(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ao=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Ls);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Bu=t=>xt(0,255,t),xn={...Ht,transform:t=>Math.round(Bu(t))},It={test:Is("rgb","red"),parse:Ao("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+xn.transform(t)+", "+xn.transform(e)+", "+xn.transform(n)+", "+te(ce.transform(s))+")"};function ju(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const _n={test:Is("#"),parse:ju,transform:It.transform},me=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pt=me("deg"),vt=me("%"),b=me("px"),Nu=me("vh"),$u=me("vw"),Ti={...vt,parse:t=>vt.parse(t)/100,transform:t=>vt.transform(t*100)},Nt={test:Is("hsl","hue"),parse:Ao("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+vt.transform(te(e))+", "+vt.transform(te(n))+", "+te(ce.transform(s))+")"},j={test:t=>It.test(t)||_n.test(t)||Nt.test(t),parse:t=>It.test(t)?It.parse(t):Nt.test(t)?Nt.parse(t):_n.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?It.transform(t):Nt.transform(t),getAnimatableNone:t=>{const e=j.parse(t);return e.alpha=0,j.transform(e)}},Uu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wu(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ls))==null?void 0:e.length)||0)+(((n=t.match(Uu))==null?void 0:n.length)||0)>0}const Co="number",Eo="color",Ku="var",Gu="var(",Si="${}",_u=/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 Gt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(_u,c=>(j.test(c)?(s.color.push(o),i.push(Eo),n.push(j.parse(c))):c.startsWith(Gu)?(s.var.push(o),i.push(Ku),n.push(c)):(s.number.push(o),i.push(Co),n.push(parseFloat(c))),++o,Si)).split(Si);return{values:n,split:a,indexes:s,types:i}}function zu(t){return Gt(t).values}function Mo({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===Co?i+=te(s[o]):r===Eo?i+=j.transform(s[o]):i+=s[o]}return i}}function Hu(t){return Mo(Gt(t))}const Xu=t=>typeof t=="number"?0:j.test(t)?j.getAnimatableNone(t):t,Yu=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:Xu(t);function qu(t){const e=Gt(t);return Mo(e)(e.values.map((s,i)=>Yu(s,e.split[i])))}const ft={test:Wu,parse:zu,createTransformer:Hu,getAnimatableNone:qu};function Tn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Zu({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Tn(c,a,t+1/3),o=Tn(c,a,t),r=Tn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ue(t,e){return n=>n>0?e:t}const I=(t,e,n)=>t+(e-t)*n,Sn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ju=[_n,It,Nt],Qu=t=>Ju.find(e=>e.test(t));function bi(t){const e=Qu(t);if(!e)return!1;let n=e.parse(t);return e===Nt&&(n=Zu(n)),n}const wi=(t,e)=>{const n=bi(t),s=bi(e);if(!n||!s)return Ue(t,e);const i={...n};return o=>(i.red=Sn(n.red,s.red,o),i.green=Sn(n.green,s.green,o),i.blue=Sn(n.blue,s.blue,o),i.alpha=I(n.alpha,s.alpha,o),It.transform(i))},zn=new Set(["none","hidden"]);function tl(t,e){return zn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function el(t,e){return n=>I(t,e,n)}function Os(t){return typeof t=="number"?el:typeof t=="string"?ks(t)?Ue:j.test(t)?wi:il:Array.isArray(t)?Vo:typeof t=="object"?j.test(t)?wi:nl:Ue}function Vo(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Os(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function nl(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Os(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function sl(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const il=(t,e)=>{const n=ft.createTransformer(e),s=Gt(t),i=Gt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?zn.has(t)&&!i.values.length||zn.has(e)&&!s.values.length?tl(t,e):he(Vo(sl(s,i),i.values),n):Ue(t,e)};function Ro(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?I(t,e,n):Os(t)(t,e)}const rl=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>k.update(e,n),stop:()=>Mt(e),now:()=>_.isProcessing?_.timestamp:q.now()}},Do=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},We=2e4;function Fs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<We;)e+=n,s=t.next(e);return e>=We?1/0:e}function ol(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Fs(s),We);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:ot(i)}}const F={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};function Hn(t,e){return t*Math.sqrt(1-e*e)}const al=12;function cl(t,e,n){let s=n;for(let i=1;i<al;i++)s=s-t(s)/e(s);return s}const bn=.001;function ul({duration:t=F.duration,bounce:e=F.bounce,velocity:n=F.velocity,mass:s=F.mass}){let i,o,r=1-e;r=xt(F.minDamping,F.maxDamping,r),t=xt(F.minDuration,F.maxDuration,ot(t)),r<1?(i=l=>{const u=l*r,f=u*t,h=u-n,d=Hn(l,r),m=Math.exp(-f);return bn-h/d*m},o=l=>{const f=l*r*t,h=f*n+n,d=Math.pow(r,2)*Math.pow(l,2)*t,m=Math.exp(-f),p=Hn(Math.pow(l,2),r);return(-i(l)+bn>0?-1:1)*((h-d)*m)/p}):(i=l=>{const u=Math.exp(-l*t),f=(l-n)*t+1;return-bn+u*f},o=l=>{const u=Math.exp(-l*t),f=(n-l)*(t*t);return u*f});const a=5/t,c=cl(i,o,a);if(t=st(t),isNaN(c))return{stiffness:F.stiffness,damping:F.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:r*2*Math.sqrt(s*l),duration:t}}}const ll=["duration","bounce"],fl=["stiffness","damping","mass"];function Pi(t,e){return e.some(n=>t[n]!==void 0)}function hl(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!Pi(t,fl)&&Pi(t,ll))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*xt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:F.mass,stiffness:i,damping:o}}else{const n=ul({...t,velocity:0});e={...e,...n,mass:F.mass},e.isResolvedFromDuration=!0}return e}function Ke(t=F.visualDuration,e=F.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:f,velocity:h,isResolvedFromDuration:d}=hl({...n,velocity:-ot(n.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(c*u)),g=r-o,y=ot(Math.sqrt(c/u)),x=Math.abs(g)<5;s||(s=x?F.restSpeed.granular:F.restSpeed.default),i||(i=x?F.restDelta.granular:F.restDelta.default);let T,S,w,M,A,E;if(p<1)w=Hn(y,p),M=(m+p*y*g)/w,T=P=>{const C=Math.exp(-p*y*P);return r-C*(M*Math.sin(w*P)+g*Math.cos(w*P))},A=p*y*M+g*w,E=p*y*g-M*w,S=P=>Math.exp(-p*y*P)*(A*Math.sin(w*P)+E*Math.cos(w*P));else if(p===1){T=C=>r-Math.exp(-y*C)*(g+(m+y*g)*C);const P=m+y*g;S=C=>Math.exp(-y*C)*(y*P*C-m)}else{const P=y*Math.sqrt(p*p-1);T=W=>{const rt=Math.exp(-p*y*W),et=Math.min(P*W,300);return r-rt*((m+p*y*g)*Math.sinh(et)+P*g*Math.cosh(et))/P};const C=(m+p*y*g)/P,L=p*y*C-g*P,G=p*y*g-C*P;S=W=>{const rt=Math.exp(-p*y*W),et=Math.min(P*W,300);return rt*(L*Math.sinh(et)+G*Math.cosh(et))}}const O={calculatedDuration:d&&f||null,velocity:P=>st(S(P)),next:P=>{if(!d&&p<1){const L=Math.exp(-p*y*P),G=Math.sin(w*P),W=Math.cos(w*P),rt=r-L*(M*G+g*W),et=st(L*(A*G+E*W));return a.done=Math.abs(et)<=s&&Math.abs(r-rt)<=i,a.value=a.done?r:rt,a}const C=T(P);if(d)a.done=P>=f;else{const L=st(S(P));a.done=Math.abs(L)<=s&&Math.abs(r-C)<=i}return a.value=a.done?r:C,a},toString:()=>{const P=Math.min(Fs(O),We),C=Do(L=>O.next(P*L).value,P,30);return P+"ms "+C},toTransition:()=>{}};return O}Ke.applyToOptions=t=>{const e=ol(t,100,Ke);return t.ease=e.ease,t.duration=st(e.duration),t.type="keyframes",t};const dl=5;function ko(t,e,n){const s=Math.max(e-dl,0);return lo(n-t(s),e-s)}function Xn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},d=E=>a!==void 0&&E<a||c!==void 0&&E>c,m=E=>a===void 0?c:c===void 0||Math.abs(a-E)<Math.abs(c-E)?a:c;let p=n*e;const g=f+p,y=r===void 0?g:r(g);y!==g&&(p=y-f);const x=E=>-p*Math.exp(-E/s),T=E=>y+x(E),S=E=>{const O=x(E),P=T(E);h.done=Math.abs(O)<=l,h.value=h.done?y:P};let w,M;const A=E=>{d(h.value)&&(w=E,M=Ke({keyframes:[h.value,m(h.value)],velocity:ko(T,E,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:E=>{let O=!1;return!M&&w===void 0&&(O=!0,S(E),A(E)),w!==void 0&&E>=w?M.next(E-w):(!O&&S(E),h)}}}function ml(t,e,n){const s=[],i=n||Et.mix||Ro,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||at:e;a=he(c,a)}s.push(a)}return s}function pl(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ms(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ml(e,s,i),c=a.length,l=u=>{if(r&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const h=ae(t[f],t[f+1],u);return a[f](h)};return n?u=>l(xt(t[0],t[o-1],u)):l}function yl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ae(0,e,s);t.push(I(n,1,i))}}function gl(t){const e=[0];return yl(e,t.length-1),e}function vl(t,e){return t.map(n=>n*e)}function xl(t,e){return t.map(()=>e||To).splice(0,t.length-1)}function ee({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Eu(s)?s.map(vi):vi(s),o={done:!1,value:e[0]},r=vl(n&&n.length===e.length?n:gl(e),t),a=pl(r,e,{ease:Array.isArray(i)?i:xl(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Tl=t=>t!==null;function un(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Tl),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Sl={decay:Xn,inertia:Xn,tween:ee,keyframes:ee,spring:Ke};function Lo(t){typeof t.type=="string"&&(t.type=Sl[t.type])}class Bs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const bl=t=>t/100;class Ge extends Bs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Lo(e);const{type:n=ee,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||ee;c!==ee&&typeof a[0]!="number"&&(this.mixKeyframes=he(bl,Ro(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=Fs(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,S=s;if(f){const E=Math.min(this.currentTime,i)/a;let O=Math.floor(E),P=E%1;!P&&E>=1&&(P=1),P===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(h==="reverse"?(P=1-P,d&&(P-=d/a)):h==="mirror"&&(S=r)),T=xt(0,1,P)*a}let w;x?(this.delayState.value=u[0],w=this.delayState):w=S.next(T),o&&!x&&(w.value=o(w.value));let{done:M}=w;!x&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return A&&m!==Xn&&(w.value=un(u,this.options,g,this.speed)),p&&p(w.value),A&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return ot(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(this.currentTime)}set time(e){e=st(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return ko(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=ot(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=rl,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function wl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ot=t=>t*180/Math.PI,Yn=t=>{const e=Ot(Math.atan2(t[1],t[0]));return qn(e)},Pl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Yn,rotateZ:Yn,skewX:t=>Ot(Math.atan(t[1])),skewY:t=>Ot(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},qn=t=>(t=t%360,t<0&&(t+=360),t),Ai=Yn,Ci=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ei=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Al={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ci,scaleY:Ei,scale:t=>(Ci(t)+Ei(t))/2,rotateX:t=>qn(Ot(Math.atan2(t[6],t[5]))),rotateY:t=>qn(Ot(Math.atan2(-t[2],t[0]))),rotateZ:Ai,rotate:Ai,skewX:t=>Ot(Math.atan(t[4])),skewY:t=>Ot(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Zn(t){return t.includes("scale")?1:0}function Jn(t,e){if(!t||t==="none")return Zn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Al,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Pl,i=a}if(!i)return Zn(e);const o=s[e],r=i[1].split(",").map(El);return typeof o=="function"?o(r):r[o]}const Cl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Jn(n,e)};function El(t){return parseFloat(t.trim())}const Xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(Xt),Mi=t=>t===Ht||t===b,Ml=new Set(["x","y","z"]),Vl=Xt.filter(t=>!Ml.has(t));function Rl(t){const e=[];return Vl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Ct={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Jn(e,"x"),y:(t,{transform:e})=>Jn(e,"y")};Ct.translateX=Ct.x;Ct.translateY=Ct.y;const Ft=new Set;let Qn=!1,ts=!1,es=!1;function Io(){if(ts){const t=Array.from(Ft).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Rl(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ts=!1,Qn=!1,Ft.forEach(t=>t.complete(es)),Ft.clear()}function Oo(){Ft.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ts=!0)})}function Dl(){es=!0,Oo(),Io(),es=!1}class js{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ft.add(this),Qn||(Qn=!0,k.read(Oo),k.resolveKeyframes(Io))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}wl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ft.delete(this)}cancel(){this.state==="scheduled"&&(Ft.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kl=t=>t.startsWith("--");function Fo(t,e,n){kl(e)?t.style.setProperty(e,n):t.style[e]=n}const Ll={};function Bo(t,e){const n=uo(t);return()=>Ll[e]??n()}const Il=Bo(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),jo=Bo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Vi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function No(t,e){if(t)return typeof t=="function"?jo()?Do(t,e):"ease-out":So(t)?Jt(t):Array.isArray(t)?t.map(n=>No(n,e)||Vi.easeOut):Vi[t]}function Ol(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const f=No(a,i);Array.isArray(f)&&(u.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),t.animate(u,h)}function $o(t){return typeof t=="function"&&"applyToOptions"in t}function Fl({type:t,...e}){return $o(t)&&jo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Uo extends Bs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Ms(typeof e.type!="string");const l=Fl(e);this.animation=Ol(n,s,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=un(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Fo(n,s,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return ot(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=st(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Il()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),at):i(this)}}const Wo={anticipate:go,backInOut:yo,circInOut:xo};function Bl(t){return t in Wo}function jl(t){typeof t.ease=="string"&&Bl(t.ease)&&(t.ease=Wo[t.ease])}const wn=10;class Nl extends Uo{constructor(e){jl(e),Lo(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ge({...r,autoplay:!1}),c=Math.max(wn,q.now()-this.startTime),l=xt(0,wn,c-wn),u=a.sample(c).value,{name:f}=this.options;o&&f&&Fo(o,f,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const Ri=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function $l(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Ul(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ri(i,e),a=Ri(o,e);return!r||!a?!1:$l(t)||(n==="spring"||$o(n))&&s}function ns(t){t.duration=0,t.type="keyframes"}const Ko=new Set(["opacity","clipPath","filter","transform"]),Wl=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Kl(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Wl.test(t[e]))return!0;return!1}const Gl=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),_l=uo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zl(t){var f;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(((f=e==null?void 0:e.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return _l()&&n&&(Ko.has(n)||Gl.has(n)&&Kl(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Hl=40;class Xl extends Bs{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){var m;super(),this.stop=()=>{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=q.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:l,element:u,...f},d=(u==null?void 0:u.KeyframeResolver)||js;this.keyframeResolver=new d(a,(p,g,y)=>this.onKeyframesResolved(p,g,h,!y),c,l,u),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){var y,x;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=q.now();let f=!0;Ul(e,o,r,a)||(f=!1,(Et.instantAnimations||!c)&&(u==null||u(un(e,s,n))),e[0]=e[e.length-1],ns(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Hl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=f&&!l&&zl(d),p=(x=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:x.current;let g;if(m)try{g=new Nl({...d,element:p})}catch{g=new Ge(d)}else g=new Ge(d);g.finished.then(()=>{this.notifyFinished()}).catch(at),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Dl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Go(t,e,n,s=0,i=1){const o=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Yl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ql(t){const e=Yl.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function _o(t,e,n=1){const[s,i]=ql(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return oo(r)?parseFloat(r):r}return ks(i)?_o(i,e,n+1):i}const Zl={type:"spring",stiffness:500,damping:25,restSpeed:10},Jl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ql={type:"keyframes",duration:.8},tf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ef=(t,{keyframes:e})=>e.length>2?Ql:Yt.has(t)?t.startsWith("scale")?Jl(e[1]):Zl:tf;function zo(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Ns(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?zo(n,t):n}const nf=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function sf(t){for(const e in t)if(!nf.has(e))return!0;return!1}const $s=(t,e,n,s={},i,o)=>r=>{const a=Ns(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-st(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};sf(a)||Object.assign(u,ef(t,u)),u.duration&&(u.duration=st(u.duration)),u.repeatDelay&&(u.repeatDelay=st(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ns(u),u.delay===0&&(f=!0)),(Et.instantAnimations||Et.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,ns(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=un(u.keyframes,a);if(h!==void 0){k.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Ge(u):new Xl(u)};function Di(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Us(t,e,n,s){if(typeof e=="function"){const[i,o]=Di(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Di(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Bt(t,e,n){const s=t.getProps();return Us(s,e,n!==void 0?n:s.custom,t)}const Ho=new Set(["width","height","top","left","right","bottom",...Xt]),ki=30,rf=t=>!isNaN(parseFloat(t));class of{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=q.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=rf(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Vs);const s=this.events[e].add(n);return e==="change"?()=>{s(),k.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ki)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ki);return lo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _t(t,e){return new of(t,e)}const ss=t=>Array.isArray(t);function af(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,_t(n))}function cf(t){return ss(t)?t[t.length-1]||0:t}function uf(t,e){const n=Bt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=cf(o[r]);af(t,r,a)}}const H=t=>!!(t&&t.getVelocity);function lf(t){return!!(H(t)&&t.add)}function is(t,e){const n=t.getValue("willChange");if(lf(n))return n.add(e);if(!n&&Et.WillChange){const s=new Et.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Ws(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ff="framerAppearId",Xo="data-"+Ws(ff);function Yo(t){return t.props[Xo]}function hf({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?zo(o,c):c;const l=o==null?void 0:o.reduceMotion;s&&(o=s);const u=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const d=t.getValue(h,t.latestValues[h]??null),m=a[h];if(m===void 0||f&&hf(f,h))continue;const p={delay:n,...Ns(o||{},h)},g=d.get();if(g!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===g&&!p.velocity){k.update(()=>d.set(m));continue}let y=!1;if(window.MotionHandoffAnimation){const S=Yo(t);if(S){const w=window.MotionHandoffAnimation(S,h,k);w!==null&&(p.startTime=w,y=!0)}}is(t,h);const x=l??t.shouldReduceMotion;d.start($s(h,d,m,x&&Ho.has(h)?{type:!1}:p,t,y));const T=d.animation;T&&u.push(T)}if(r){const h=()=>k.update(()=>{r&&uf(t,r)});u.length?Promise.all(u).then(h):h()}return u}function rs(t,e,n={}){var c;const s=Bt(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(qo(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:h}=i;return df(t,e,l,u,f,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function df(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(rs(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Go(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function mf(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>rs(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=rs(t,e,n);else{const i=typeof e=="function"?Bt(t,e,n.custom):e;s=Promise.all(qo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const pf={test:t=>t==="auto",parse:t=>t},Zo=t=>e=>e.test(t),Jo=[Ht,b,vt,Pt,$u,Nu,pf],Li=t=>Jo.find(Zo(t));function yf(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||co(t):!0}const gf=new Set(["brightness","contrast","saturate","opacity"]);function vf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ls)||[];if(!s)return t;const i=n.replace(s,"");let o=gf.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const xf=/\b([a-z-]*)\(.*?\)/gu,os={...ft,getAnimatableNone:t=>{const e=t.match(xf);return e?e.map(vf).join(" "):t}},as={...ft,getAnimatableNone:t=>{const e=ft.parse(t);return ft.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Ii={...Ht,transform:Math.round},Tf={rotate:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:Ae,scaleX:Ae,scaleY:Ae,scaleZ:Ae,skew:Pt,skewX:Pt,skewY:Pt,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:ce,originX:Ti,originY:Ti,originZ:b},Ks={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...Tf,zIndex:Ii,fillOpacity:ce,strokeOpacity:ce,numOctaves:Ii},Sf={...Ks,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:os,WebkitFilter:os,mask:as,WebkitMask:as},Qo=t=>Sf[t],bf=new Set([os,as]);function ta(t,e){let n=Qo(t);return bf.has(n)||(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const wf=new Set(["auto","none","0"]);function Pf(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!wf.has(o)&&Gt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=ta(n,i)}class Af extends js{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),ks(f))){const h=_o(f,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Ho.has(s)||e.length!==2)return;const[i,o]=e,r=Li(i),a=Li(o),c=xi(i),l=xi(o);if(c!==l&&Ct[s]){this.needsMeasurement=!0;return}if(r!==a)if(Mi(r)&&Mi(a))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else Ct[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||yf(e[i]))&&s.push(i);s.length&&Pf(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ct[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=Ct[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{e.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function ea(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const na=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Cf(t){return ao(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Gs}=bo(queueMicrotask,!1),ut={x:!1,y:!1};function sa(){return ut.x||ut.y}function Ef(t){return t==="x"||t==="y"?ut[t]?null:(ut[t]=!0,()=>{ut[t]=!1}):ut.x||ut.y?null:(ut.x=ut.y=!0,()=>{ut.x=ut.y=!1})}function ia(t,e){const n=ea(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mf(t){return!(t.pointerType==="touch"||sa())}function Vf(t,e,n={}){const[s,i,o]=ia(t,n);return s.forEach(r=>{let a=!1,c=!1,l;const u=()=>{r.removeEventListener("pointerleave",m)},f=g=>{l&&(l(g),l=void 0),u()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=g=>{if(g.pointerType!=="touch"){if(a){c=!0;return}f(g)}},p=g=>{if(!Mf(g))return;c=!1;const y=e(r,g);typeof y=="function"&&(l=y,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",p,i),r.addEventListener("pointerdown",d,i)}),o}const ra=(t,e)=>e?t===e?!0:ra(t,e.parentElement):!1,_s=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Rf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Df(t){return Rf.has(t.tagName)||t.isContentEditable===!0}const kf=new Set(["INPUT","SELECT","TEXTAREA"]);function Lf(t){return kf.has(t.tagName)||t.isContentEditable===!0}const ke=new WeakSet;function Oi(t){return e=>{e.key==="Enter"&&t(e)}}function Pn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const If=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Oi(()=>{if(ke.has(n))return;Pn(n,"down");const i=Oi(()=>{Pn(n,"up")}),o=()=>Pn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Fi(t){return _s(t)&&!sa()}const Bi=new WeakSet;function Of(t,e,n={}){const[s,i,o]=ia(t,n),r=a=>{const c=a.currentTarget;if(!Fi(a)||Bi.has(a))return;ke.add(c),n.stopPropagation&&Bi.add(a);const l=e(c,a),u=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),ke.has(c)&&ke.delete(c),Fi(d)&&typeof l=="function"&&l(d,{success:m})},f=d=>{u(d,c===window||c===document||n.useGlobalTarget||ra(c,d.target))},h=d=>{u(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Cf(a)&&(a.addEventListener("focus",l=>If(l,i)),!Df(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function zs(t){return ao(t)&&"ownerSVGElement"in t}const Le=new WeakMap;let At;const oa=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:zs(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Ff=oa("inline","width","offsetWidth"),Bf=oa("block","height","offsetHeight");function jf({target:t,borderBoxSize:e}){var n;(n=Le.get(t))==null||n.forEach(s=>{s(t,{get width(){return Ff(t,e)},get height(){return Bf(t,e)}})})}function Nf(t){t.forEach(jf)}function $f(){typeof ResizeObserver>"u"||(At=new ResizeObserver(Nf))}function Uf(t,e){At||$f();const n=ea(t);return n.forEach(s=>{let i=Le.get(s);i||(i=new Set,Le.set(s,i)),i.add(e),At==null||At.observe(s)}),()=>{n.forEach(s=>{const i=Le.get(s);i==null||i.delete(e),i!=null&&i.size||At==null||At.unobserve(s)})}}const Ie=new Set;let $t;function Wf(){$t=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ie.forEach(e=>e(t))},window.addEventListener("resize",$t)}function Kf(t){return Ie.add(t),$t||Wf(),()=>{Ie.delete(t),!Ie.size&&typeof $t=="function"&&(window.removeEventListener("resize",$t),$t=void 0)}}function ji(t,e){return typeof t=="function"?Kf(t):Uf(t,e)}function Gf(t){return zs(t)&&t.tagName==="svg"}const _f=[...Jo,j,ft],zf=t=>_f.find(Zo(t)),Ni=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ut=()=>({x:Ni(),y:Ni()}),$i=()=>({min:0,max:0}),U=()=>({x:$i(),y:$i()}),Hf=new WeakMap;function ln(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ue(t){return typeof t=="string"||Array.isArray(t)}const Hs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xs=["initial",...Hs];function fn(t){return ln(t.animate)||Xs.some(e=>ue(t[e]))}function aa(t){return!!(fn(t)||t.variants)}function Xf(t,e,n){for(const s in e){const i=e[s],o=n[s];if(H(i))t.addValue(s,i);else if(H(o))t.addValue(s,_t(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,_t(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const cs={current:null},ca={current:!1},Yf=typeof window<"u";function qf(){if(ca.current=!0,!!Yf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>cs.current=t.matches;t.addEventListener("change",e),e()}else cs.current=!1}const Ui=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let _e={};function ua(t){_e=t}function Zf(){return _e}class Jf{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=js,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 d=q.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=fn(n),this.isVariantNode=aa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const m=h[d];l[d]!==void 0&&H(m)&&m.set(l[d])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,Hf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ca.current||qf(),this.shouldReduceMotion=cs.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Mt(this.notifyUpdate),Mt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ko.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,f=new Uo({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:st(u)}),h=r(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=Yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in _e){const n=_e[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];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):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ui.length;s++){const i=Ui[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Xf(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=_t(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(oo(s)||co(s))?s=parseFloat(s):!zf(s)&&ft.test(n)&&(s=ta(e,n)),this.setBaseTarget(e,H(s)?s.get():s)),H(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Us(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!H(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Vs),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Gs.render(this.render)}}class la extends Jf{constructor(){super(...arguments),this.KeyframeResolver=Af}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;H(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function fa({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Qf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function th(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function An(t){return t===void 0||t===1}function us({scale:t,scaleX:e,scaleY:n}){return!An(t)||!An(e)||!An(n)}function Dt(t){return us(t)||ha(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ha(t){return Wi(t.x)||Wi(t.y)}function Wi(t){return t&&t!=="0%"}function ze(t,e,n){const s=t-n,i=e*s;return n+i}function Ki(t,e,n,s,i){return i!==void 0&&(t=ze(t,i,s)),ze(t,n,s)+e}function ls(t,e=0,n=1,s,i){t.min=Ki(t.min,e,n,s,i),t.max=Ki(t.max,e,n,s,i)}function da(t,{x:e,y:n}){ls(t.x,e.translate,e.scale,e.originPoint),ls(t.y,n.translate,n.scale,n.originPoint)}const Gi=.999999999999,_i=1.0000000000001;function eh(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let c=0;c<i;c++){o=n[c],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(yt(t.x,-o.scroll.offset.x),yt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,da(t,r)),s&&Dt(o.latestValues)&&Oe(t,o.latestValues,(a=o.layout)==null?void 0:a.layoutBox))}e.x<_i&&e.x>Gi&&(e.x=1),e.y<_i&&e.y>Gi&&(e.y=1)}function yt(t,e){t.min+=e,t.max+=e}function zi(t,e,n,s,i=.5){const o=I(t.min,t.max,i);ls(t,e,n,o,s)}function Hi(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Oe(t,e,n){const s=n??t;zi(t.x,Hi(e.x,s.x),e.scaleX,e.scale,e.originX),zi(t.y,Hi(e.y,s.y),e.scaleY,e.scale,e.originY)}function ma(t,e){return fa(th(t.getBoundingClientRect(),e))}function nh(t,e,n){const s=ma(t,n),{scroll:i}=e;return i&&(yt(s.x,i.offset.x),yt(s.y,i.offset.y)),s}const sh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ih=Xt.length;function rh(t,e,n){let s="",i=!0;for(let o=0;o<ih;o++){const r=Xt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(r.startsWith("scale")?1:0);else{const l=parseFloat(a);c=r.startsWith("scale")?l===1:l===0}if(!c||n){const l=na(a,Ks[r]);if(!c){i=!1;const u=sh[r]||r;s+=`${u}(${l}) `}n&&(e[r]=l)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ys(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const l=e[c];if(Yt.has(c)){r=!0;continue}else if(Po(c)){i[c]=l;continue}else{const u=na(l,Ks[c]);c.startsWith("origin")?(a=!0,o[c]=u):s[c]=u}}if(e.transform||(r||n?s.transform=rh(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;s.transformOrigin=`${c} ${l} ${u}`}}function pa(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Zt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=Xi(t,e.target.x),s=Xi(t,e.target.y);return`${n}% ${s}%`}},oh={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=ft.parse(t);if(i.length>5)return s;const o=ft.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const l=I(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=l),typeof i[3+r]=="number"&&(i[3+r]/=l),o(i)}},fs={borderRadius:{...Zt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomLeftRadius:Zt,borderBottomRightRadius:Zt,boxShadow:oh};function ya(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fs[t]||t==="opacity")}function qs(t,e,n){var r;const s=t.style,i=e==null?void 0:e.style,o={};if(!s)return o;for(const a in s)(H(s[a])||i&&H(i[a])||ya(a,t)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function ah(t){return window.getComputedStyle(t)}class ch extends la{constructor(){super(...arguments),this.type="html",this.renderInstance=pa}readValueFromInstance(e,n){var s;if(Yt.has(n))return(s=this.projection)!=null&&s.isProjecting?Zn(n):Cl(e,n);{const i=ah(e),o=(Po(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ma(e,n)}build(e,n,s){Ys(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return qs(e,n,s)}}const uh={offset:"stroke-dashoffset",array:"stroke-dasharray"},lh={offset:"strokeDashoffset",array:"strokeDasharray"};function fh(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?uh:lh;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const hh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ga(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,l,u){if(Ys(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox);for(const d of hh)f[d]!==void 0&&(h[d]=f[d],delete f[d]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&fh(f,i,o,r,!1)}const va=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"]),xa=t=>typeof t=="string"&&t.toLowerCase()==="svg";function dh(t,e,n,s){pa(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(va.has(i)?i:Ws(i),e.attrs[i])}function Ta(t,e,n){const s=qs(t,e,n);for(const i in t)if(H(t[i])||H(e[i])){const o=Xt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class mh extends la{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const s=Qo(n);return s&&s.default||0}return n=va.has(n)?n:Ws(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ta(e,n,s)}build(e,n,s){ga(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){dh(e,n,s,i)}mount(e){this.isSVGTag=xa(e.tagName),super.mount(e)}}const ph=Xs.length;function Sa(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Sa(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ph;n++){const s=Xs[n],i=t.props[s];(ue(i)||i===!1)&&(e[s]=i)}return e}function ba(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const yh=[...Hs].reverse(),gh=Hs.length;function vh(t){return e=>Promise.all(e.map(({animation:n,options:s})=>mf(t,n,s)))}function xh(t){let e=vh(t),n=Yi(),s=!0,i=!1;const o=l=>(u,f)=>{var d;const h=Bt(t,f,l==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:m,transitionEnd:p,...g}=h;u={...u,...g,...p}}return u};function r(l){e=l(t)}function a(l){const{props:u}=t,f=Sa(t.parent)||{},h=[],d=new Set;let m={},p=1/0;for(let y=0;y<gh;y++){const x=yh[y],T=n[x],S=u[x]!==void 0?u[x]:f[x],w=ue(S),M=x===l?T.isActive:null;M===!1&&(p=y);let A=S===f[x]&&S!==u[x]&&w;if(A&&(s||i)&&t.manuallyAnimateOnMount&&(A=!1),T.protectedKeys={...m},!T.isActive&&M===null||!S&&!T.prevProp||ln(S)||typeof S=="boolean")continue;if(x==="exit"&&T.isActive&&M!==!0){T.prevResolvedValues&&(m={...m,...T.prevResolvedValues});continue}const E=Th(T.prevProp,S);let O=E||x===l&&T.isActive&&!A&&w||y>p&&w,P=!1;const C=Array.isArray(S)?S:[S];let L=C.reduce(o(x),{});M===!1&&(L={});const{prevResolvedValues:G={}}=T,W={...G,...L},rt=$=>{O=!0,d.has($)&&(P=!0,d.delete($)),T.needsAnimating[$]=!0;const Y=t.getValue($);Y&&(Y.liveStyle=!1)};for(const $ in W){const Y=L[$],J=G[$];if(m.hasOwnProperty($))continue;let bt=!1;ss(Y)&&ss(J)?bt=!ba(Y,J):bt=Y!==J,bt?Y!=null?rt($):d.add($):Y!==void 0&&d.has($)?rt($):T.protectedKeys[$]=!0}T.prevProp=S,T.prevResolvedValues=L,T.isActive&&(m={...m,...L}),(s||i)&&t.blockInitialAnimation&&(O=!1);const et=A&&E;O&&(!et||P)&&h.push(...C.map($=>{const Y={type:x};if(typeof $=="string"&&(s||i)&&!et&&t.manuallyAnimateOnMount&&t.parent){const{parent:J}=t,bt=Bt(J,$);if(J.enteringChildren&&bt){const{delayChildren:wt}=bt.transition||{};Y.delay=Go(J.enteringChildren,t,wt)}}return{animation:$,options:Y}}))}if(d.size){const y={};if(typeof u.initial!="boolean"){const x=Bt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(y.transition=x.transition)}d.forEach(x=>{const T=t.getBaseTarget(x),S=t.getValue(x);S&&(S.liveStyle=!0),y[x]=T??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(h):Promise.resolve()}function c(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Yi(),i=!0}}}function Th(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ba(e,t):!1}function Rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yi(){return{animate:Rt(!0),whileInView:Rt(),whileHover:Rt(),whileTap:Rt(),whileDrag:Rt(),whileFocus:Rt(),exit:Rt()}}function hs(t,e){t.min=e.min,t.max=e.max}function ct(t,e){hs(t.x,e.x),hs(t.y,e.y)}function qi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const wa=1e-4,Sh=1-wa,bh=1+wa,Pa=.01,wh=0-Pa,Ph=0+Pa;function Z(t){return t.max-t.min}function Ah(t,e,n){return Math.abs(t-e)<=n}function Zi(t,e,n,s=.5){t.origin=s,t.originPoint=I(e.min,e.max,t.origin),t.scale=Z(n)/Z(e),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Sh&&t.scale<=bh||isNaN(t.scale))&&(t.scale=1),(t.translate>=wh&&t.translate<=Ph||isNaN(t.translate))&&(t.translate=0)}function ne(t,e,n,s){Zi(t.x,e.x,n.x,s?s.originX:void 0),Zi(t.y,e.y,n.y,s?s.originY:void 0)}function Ji(t,e,n,s=0){const i=s?I(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+Z(e)}function Ch(t,e,n,s){Ji(t.x,e.x,n.x,s==null?void 0:s.x),Ji(t.y,e.y,n.y,s==null?void 0:s.y)}function Qi(t,e,n,s=0){const i=s?I(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+Z(e)}function He(t,e,n,s){Qi(t.x,e.x,n.x,s==null?void 0:s.x),Qi(t.y,e.y,n.y,s==null?void 0:s.y)}function tr(t,e,n,s,i){return t-=e,t=ze(t,1/n,s),i!==void 0&&(t=ze(t,1/i,s)),t}function Eh(t,e=0,n=1,s=.5,i,o=t,r=t){if(vt.test(e)&&(e=parseFloat(e),e=I(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=I(o.min,o.max,s);t===o&&(a-=e),t.min=tr(t.min,e,n,a,i),t.max=tr(t.max,e,n,a,i)}function er(t,e,[n,s,i],o,r){Eh(t,e[n],e[s],e[i],e.scale,o,r)}const Mh=["x","scaleX","originX"],Vh=["y","scaleY","originY"];function nr(t,e,n,s){er(t.x,e,Mh,n?n.x:void 0,s?s.x:void 0),er(t.y,e,Vh,n?n.y:void 0,s?s.y:void 0)}function sr(t){return t.translate===0&&t.scale===1}function Aa(t){return sr(t.x)&&sr(t.y)}function ir(t,e){return t.min===e.min&&t.max===e.max}function Rh(t,e){return ir(t.x,e.x)&&ir(t.y,e.y)}function rr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ca(t,e){return rr(t.x,e.x)&&rr(t.y,e.y)}function or(t){return Z(t.x)/Z(t.y)}function ar(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function dt(t){return[t("x"),t("y")]}function Dh(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:h,skewX:d,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),f&&(s+=`rotateX(${f}deg) `),h&&(s+=`rotateY(${h}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Ea=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],kh=Ea.length,cr=t=>typeof t=="string"?parseFloat(t):t,ur=t=>typeof t=="number"||b.test(t);function Lh(t,e,n,s,i,o){i?(t.opacity=I(0,n.opacity??1,Ih(s)),t.opacityExit=I(e.opacity??1,0,Oh(s))):o&&(t.opacity=I(e.opacity??1,n.opacity??1,s));for(let r=0;r<kh;r++){const a=Ea[r];let c=lr(e,a),l=lr(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||ur(c)===ur(l)?(t[a]=Math.max(I(cr(c),cr(l),s),0),(vt.test(l)||vt.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,s))}function lr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ih=Ma(0,.5,vo),Oh=Ma(.5,.95,at);function Ma(t,e,n){return s=>s<t?0:s>e?1:n(ae(t,e,s))}function Fh(t,e,n){const s=H(t)?t:_t(t);return s.start($s("",s,e,n)),s.animation}function le(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Bh=(t,e)=>t.depth-e.depth;class jh{constructor(){this.children=[],this.isDirty=!1}add(e){Es(this.children,e),this.isDirty=!0}remove(e){$e(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bh),this.isDirty=!1,this.children.forEach(e)}}function Nh(t,e){const n=q.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Mt(s),t(o-e))};return k.setup(s,!0),()=>Mt(s)}function Fe(t){return H(t)?t.get():t}class $h{constructor(){this.members=[]}add(e){Es(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&($e(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if($e(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:o}=s.options,{layoutDependency:r}=e.options;(o===void 0||o!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,o,r;(s=(n=e.options).onExitComplete)==null||s.call(n),(r=(i=e.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||r.call(o)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const Be={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cn=["","X","Y","Z"],Uh=1e3;let Wh=0;function En(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Va(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Va(s)}function Ra({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Wh++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,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(_h),this.nodes.forEach(Zh),this.nodes.forEach(Jh),this.nodes.forEach(zh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new jh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Vs),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=zs(r)&&!Gf(r),this.instance=r;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;k.read(()=>{f=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,u&&u(),u=Nh(h,250),Be.hasAnimatedSinceResize&&(Be.hasAnimatedSinceResize=!1,this.nodes.forEach(dr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||sd,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=l.getProps(),y=!this.targetLayout||!Ca(this.targetLayout,d),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ns(m,"layout"),onPlay:p,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else f||dr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Mt(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(Qh),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Va(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Xh),this.nodes.forEach(fr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Yh),this.nodes.forEach(qh),this.nodes.forEach(Kh),this.nodes.forEach(Gh)):this.nodes.forEach(hr),this.clearAllSnapshots();const a=q.now();_.delta=xt(0,1e3/60,a-_.timestamp),_.timestamp=a,_.isProcessing=!0,vn.update.process(_),vn.preRender.process(_),vn.render.process(_),_.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hh),this.sharedNodes.forEach(td)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Z(this.snapshot.measuredBox.x)&&!Z(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=U()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Aa(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||Dt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),id(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:r}=this.options;if(!r)return U();const a=r.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(rd))){const{scroll:u}=this.root;u&&(yt(a.x,u.offset.x),yt(a.y,u.offset.y))}return a}removeElementScroll(r){var c;const a=U();if(ct(a,r),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:h}=u;u!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&ct(a,r),yt(a.x,f.offset.x),yt(a.y,f.offset.y))}return a}applyTransform(r,a=!1,c){var u,f;const l=c||U();ct(l,r);for(let h=0;h<this.path.length;h++){const d=this.path[h];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(yt(l.x,-d.scroll.offset.x),yt(l.y,-d.scroll.offset.y)),Dt(d.latestValues)&&Oe(l,d.latestValues,(u=d.layout)==null?void 0:u.layoutBox)}return Dt(this.latestValues)&&Oe(l,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),l}removeTransform(r){var c;const a=U();ct(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!Dt(u.latestValues))continue;let f;u.instance&&(us(u.latestValues)&&u.updateSnapshot(),f=U(),ct(f,u.measurePageBox())),nr(a,u.latestValues,(c=u.snapshot)==null?void 0:c.layoutBox,f)}return Dt(this.latestValues)&&nr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==_.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=_.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ch(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ct(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||us(this.parent.latestValues)||ha(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),He(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),ct(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===_.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;ct(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;eh(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=U());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qi(this.prevProjectionDelta.x,this.projectionDelta.x),qi(this.prevProjectionDelta.y,this.projectionDelta.y)),ne(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ar(this.projectionDelta.x,this.prevProjectionDelta.x)||!ar(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ut(),this.projectionDelta=Ut(),this.projectionDeltaWithTransform=Ut()}setAnimationOrigin(r,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=U(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,g=this.getStack(),y=!g||g.members.length<=1,x=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(nd));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const w=S/1e3;mr(f.x,r.x,w),mr(f.y,r.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(He(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ed(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Rh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=U()),ct(T,this.relativeTarget)),p&&(this.animationValues=u,Lh(u,l,this.latestValues,w,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(Mt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_t(0)),this.motionValue.jump(0,!1),this.currentAnimation=Fh(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Uh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&Da(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||U();const f=Z(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+f;const h=Z(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+h}ct(a,c),Oe(a,u),ne(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new $h),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&En("z",r,l,this.animationValues);for(let u=0;u<Cn.length;u++)En(`rotate${Cn[u]}`,r,l,this.animationValues),En(`skew${Cn[u]}`,r,l,this.animationValues);r.render();for(const u in l)r.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Fe(a==null?void 0:a.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Fe(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Dt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Dh(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),r.transform=f;const{x:h,y:d}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,l.animationValues?r.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in fs){if(u[m]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=fs[m],x=f==="none"?u[m]:p(u[m],l);if(g){const T=g.length;for(let S=0;S<T;S++)r[g[S]]=x}else y?this.options.visualElement.renderState.vars[m]=x:r[m]=x}this.options.layoutId&&(r.pointerEvents=l===this?Fe(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(fr),this.root.sharedNodes.clear()}}}function Kh(t){t.updateLayout()}function Gh(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;if(o==="size")dt(f=>{const h=r?e.measuredBox[f]:e.layoutBox[f],d=Z(h);h.min=s[f].min,h.max=h.min+d});else if(o==="x"||o==="y"){const f=o==="x"?"y":"x";hs(r?e.measuredBox[f]:e.layoutBox[f],s[f])}else Da(o,e.layoutBox,s)&&dt(f=>{const h=r?e.measuredBox[f]:e.layoutBox[f],d=Z(s[f]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+d)});const a=Ut();ne(a,s,e.layoutBox);const c=Ut();r?ne(c,t.applyTransform(i,!0),e.measuredBox):ne(c,s,e.layoutBox);const l=!Aa(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const m=t.options.layoutAnchor||void 0,p=U();He(p,e.layoutBox,h.layoutBox,m);const g=U();He(g,s,d.layoutBox,m),Ca(p,g)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function _h(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function zh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hh(t){t.clearSnapshot()}function fr(t){t.clearMeasurements()}function Xh(t){t.isLayoutDirty=!0,t.updateLayout()}function hr(t){t.isLayoutDirty=!1}function Yh(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function qh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function dr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zh(t){t.resolveTargetDelta()}function Jh(t){t.calcProjection()}function Qh(t){t.resetSkewAndRotation()}function td(t){t.removeLeadSnapshot()}function mr(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function pr(t,e,n,s){t.min=I(e.min,n.min,s),t.max=I(e.max,n.max,s)}function ed(t,e,n,s){pr(t.x,e.x,n.x,s),pr(t.y,e.y,n.y,s)}function nd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const sd={duration:.45,ease:[.4,0,.1,1]},yr=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),gr=yr("applewebkit/")&&!yr("chrome/")?Math.round:at;function vr(t){t.min=gr(t.min),t.max=gr(t.max)}function id(t){vr(t.x),vr(t.y)}function Da(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ah(or(e),or(n),.2)}function rd(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const od=Ra({attachResizeListener:(t,e)=>le(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Mn={current:void 0},ka=Ra({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mn.current){const t=new od({});t.mount(window),t.setOptions({layoutScroll:!0}),Mn.current=t}return Mn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),La=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ad(t=!0){const e=v.useContext(Cs);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=v.useId();v.useEffect(()=>{if(t)return i(o)},[t]);const r=v.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ia=v.createContext({strict:!1}),xr={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"]};let Tr=!1;function cd(){if(Tr)return;const t={};for(const e in xr)t[e]={isEnabled:n=>xr[e].some(s=>!!n[s])};ua(t),Tr=!0}function Oa(){return cd(),Zf()}function ud(t){const e=Oa();for(const n in t)e[n]={...e[n],...t[n]};ua(e)}const ld=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","propagate","ignoreStrict","viewport"]);function Xe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ld.has(t)}let Fa=t=>!Xe(t);function fd(t){typeof t=="function"&&(Fa=e=>e.startsWith("on")?!Xe(e):t(e))}try{fd(require("@emotion/is-prop-valid").default)}catch{}function hd(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||H(t[i])||(Fa(i)||n===!0&&Xe(i)||!e&&!Xe(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const hn=v.createContext({});function dd(t,e){if(fn(t)){const{initial:n,animate:s}=t;return{initial:n===!1||ue(n)?n:void 0,animate:ue(s)?s:void 0}}return t.inherit!==!1?e:{}}function md(t){const{initial:e,animate:n}=dd(t,v.useContext(hn));return v.useMemo(()=>({initial:e,animate:n}),[Sr(e),Sr(n)])}function Sr(t){return Array.isArray(t)?t.join(" "):t}const Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ba(t,e,n){for(const s in e)!H(e[s])&&!ya(s,n)&&(t[s]=e[s])}function pd({transformTemplate:t},e){return v.useMemo(()=>{const n=Zs();return Ys(n,e,t),Object.assign({},n.vars,n.style)},[e])}function yd(t,e){const n=t.style||{},s={};return Ba(s,n,t),Object.assign(s,pd(t,e)),s}function gd(t,e){const n={},s=yd(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ja=()=>({...Zs(),attrs:{}});function vd(t,e,n,s){const i=v.useMemo(()=>{const o=ja();return ga(o,e,xa(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ba(o,t.style,t),i.style={...o,...i.style}}return i}const xd=["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 Js(t){return typeof t!="string"||t.includes("-")?!1:!!(xd.indexOf(t)>-1||/[A-Z]/u.test(t))}function Td(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??Js(t)?vd:gd)(e,s,i,t),l=hd(e,typeof t=="string",o),u=t!==v.Fragment?{...l,...c,ref:n}:{},{children:f}=e,h=v.useMemo(()=>H(f)?f.get():f,[f]);return v.createElement(t,{...u,children:h})}function Sd({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:bd(n,s,i,t),renderState:e()}}function bd(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=Fe(o[h]);let{initial:r,animate:a}=t;const c=fn(t),l=aa(t);e&&l&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const f=u?a:r;if(f&&typeof f!="boolean"&&!ln(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=Us(t,h[d]);if(m){const{transitionEnd:p,transition:g,...y}=m;for(const x in y){let T=y[x];if(Array.isArray(T)){const S=u?T.length-1:0;T=T[S]}T!==null&&(i[x]=T)}for(const x in p)i[x]=p[x]}}}return i}const Na=t=>(e,n)=>{const s=v.useContext(hn),i=v.useContext(Cs),o=()=>Sd(t,e,s,i);return n?o():vu(o)},wd=Na({scrapeMotionValuesFromProps:qs,createRenderState:Zs}),Pd=Na({scrapeMotionValuesFromProps:Ta,createRenderState:ja}),Ad=Symbol.for("motionComponentSymbol");function Cd(t,e,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.useCallback(o=>{var a;o&&((a=t.onMount)==null||a.call(t,o));const r=s.current;if(typeof r=="function")if(o){const c=r(o);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const $a=v.createContext({});function jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ed(t,e,n,s,i,o){var T,S;const{visualElement:r}=v.useContext(hn),a=v.useContext(Ia),c=v.useContext(Cs),l=v.useContext(La),u=l.reducedMotion,f=l.skipAnimations,h=v.useRef(null),d=v.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:o}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,p=v.useContext($a);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Md(h.current,n,i,p);const g=v.useRef(!1);v.useInsertionEffect(()=>{m&&g.current&&m.update(n,c)});const y=n[Xo],x=v.useRef(!!y&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return Tu(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),v.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,y)}),x.current=!1),m.enteringChildren=void 0)}),m}function Md(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ua(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&jt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ua(t){if(t)return t.options.allowProjection!==!1?t.projection:Ua(t.parent)}function Vn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&ud(s);const o=n?n==="svg":Js(t),r=o?Pd:wd;function a(l,u){let f;const h={...v.useContext(La),...l,layoutId:Vd(l)},{isStatic:d}=h,m=md(l),p=r(l,d);if(!d&&typeof window<"u"){Rd();const g=Dd(h);f=g.MeasureLayout,m.visualElement=Ed(t,p,h,i,g.ProjectionNode,o)}return In.jsxs(hn.Provider,{value:m,children:[f&&m.visualElement?In.jsx(f,{visualElement:m.visualElement,...h}):null,Td(t,l,Cd(p,m.visualElement,u),p,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=v.forwardRef(a);return c[Ad]=t,c}function Vd({layoutId:t}){const e=v.useContext(ro).id;return e&&t!==void 0?e+"-"+t:t}function Rd(t,e){v.useContext(Ia).strict}function Dd(t){const e=Oa(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function kd(t,e){if(typeof Proxy>"u")return Vn;const n=new Map,s=(o,r)=>Vn(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Vn(r,void 0,t,e)),n.get(r))})}const Ld=(t,e)=>e.isSVG??Js(t)?new mh(e):new ch(e,{allowProjection:t!==v.Fragment});class Id extends Vt{constructor(e){super(e),e.animationState||(e.animationState=xh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ln(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Od=0;class Fd extends Vt{constructor(){super(...arguments),this.id=Od++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:a}=this.node.getProps();if(typeof r=="string"){const c=Bt(this.node,r,a);if(c){const{transition:l,transitionEnd:u,...f}=c;for(const h in f)(o=this.node.getValue(h))==null||o.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Bd={animation:{Feature:Id},exit:{Feature:Fd}};function pe(t){return{point:{x:t.pageX,y:t.pageY}}}const jd=t=>e=>_s(e)&&t(e,pe(e));function se(t,e,n,s){return le(t,e,jd(n),s)}const Wa=({current:t})=>t?t.ownerDocument.defaultView:null,br=(t,e)=>Math.abs(t-e);function Nd(t,e){const n=br(t.x,e.x),s=br(t.y,e.y);return Math.sqrt(n**2+s**2)}const wr=new Set(["auto","scroll"]);class Ka{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ce(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Rn(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Nd(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=d,{timestamp:y}=_;this.history.push({...g,timestamp:y});const{onStart:x,onMove:T}=this.handlers;m||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Ce(m,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Rn(d.type==="pointercancel"?this.lastMoveEventInfo:Ce(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),g&&g(d,x)},!_s(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=pe(e),l=Ce(c,this.transformPagePoint),{point:u}=l,{timestamp:f}=_;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,Rn(l,this.history)),this.removeListeners=he(se(this.contextWindow,"pointermove",this.handlePointerMove),se(this.contextWindow,"pointerup",this.handlePointerUp),se(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(wr.has(s.overflowX)||wr.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),k.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Mt(this.updatePoint)}}function Ce(t,e){return e?{point:e(t.point)}:t}function Pr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rn({point:t},e){return{point:t,delta:Pr(t,Ga(e)),offset:Pr(t,$d(e)),velocity:Ud(e,.1)}}function $d(t){return t[0]}function Ga(t){return t[t.length-1]}function Ud(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ga(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>st(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>st(e)*2&&(s=t[1]);const o=ot(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Wd(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?I(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?I(n,t,s.max):Math.min(t,n)),t}function Ar(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Kd(t,{top:e,left:n,bottom:s,right:i}){return{x:Ar(t.x,n,i),y:Ar(t.y,e,s)}}function Cr(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Gd(t,e){return{x:Cr(t.x,e.x),y:Cr(t.y,e.y)}}function _d(t,e){let n=.5;const s=Z(t),i=Z(e);return i>s?n=ae(e.min,e.max-s,t.min):s>i&&(n=ae(t.min,t.max-i,e.min)),xt(0,1,n)}function zd(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ds=.35;function Hd(t=ds){return t===!1?t=0:t===!0&&(t=ds),{x:Er(t,"left","right"),y:Er(t,"top","bottom")}}function Er(t,e,n){return{min:Mr(t,e),max:Mr(t,n)}}function Mr(t,e){return typeof t=="number"?t:t[e]||0}const Xd=new WeakMap;class Yd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(pe(f).point),this.stopAnimation()},r=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ef(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dt(y=>{let x=this.getAxisMotionValue(y).get()||0;if(vt.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const S=T.layout.layoutBox[y];S&&(x=Z(S)*(parseFloat(x)/100))}}this.originPoint[y]=x}),p&&k.update(()=>p(f,h),!1,!0),is(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=Zd(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&k.update(()=>g(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ka(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Wa(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&k.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ee(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Wd(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&jt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Kd(s.layoutBox,e):this.constraints=!1,this.elastic=Hd(n),i!==this.constraints&&!jt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&dt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=zd(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!jt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=nh(s,i.root,this.visualElement.getTransformPagePoint());let r=Gd(i.layout.layoutBox,o);if(n){const a=n(Qf(r));this.hasMutatedConstraints=!!a,a&&(r=fa(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=dt(u=>{if(!Ee(u,n,this.currentDirection))return;let f=c&&c[u]||{};(r===!0||r===u)&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return is(this.visualElement,e),s.start($s(e,s,0,n,this.visualElement,!1))}stopAnimation(){dt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){dt(n=>{const{drag:s}=this.getProps();if(!Ee(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-I(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!jt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=_d({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),dt(r=>{if(!Ee(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(I(c,l,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Xd.set(this.visualElement,this);const e=this.visualElement.current,n=se(e,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps(),h=l.target,d=h!==e&&Lf(h);u&&f&&!d&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();jt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=qd(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),k.read(i);const a=le(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(dt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=ds,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Vr(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function qd(t,e,n){const s=ji(t,Vr(n)),i=ji(e,Vr(n));return()=>{s(),i()}}function Ee(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Zd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Jd extends Vt{constructor(e){super(e),this.removeGroupControls=at,this.removeListeners=at,this.controls=new Yd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||at}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Dn=t=>(e,n)=>{t&&k.update(()=>t(e,n),!1,!0)};class Qd extends Vt{constructor(){super(...arguments),this.removePointerDownListener=at}onPointerDown(e){this.session=new Ka(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wa(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Dn(e),onStart:Dn(n),onMove:Dn(s),onEnd:(o,r)=>{delete this.session,i&&k.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=se(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let kn=!1;class tm extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),kn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),kn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||k.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Gs.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;kn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function _a(t){const[e,n]=ad(),s=v.useContext(ro);return In.jsx(tm,{...t,layoutGroup:s,switchLayoutGroup:v.useContext($a),isPresent:e,safeToRemove:n})}const em={pan:{Feature:Qd},drag:{Feature:Jd,ProjectionNode:ka,MeasureLayout:_a}};function Rr(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&k.postRender(()=>o(e,pe(e)))}class nm extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=Vf(e,(n,s)=>(Rr(this.node,s,"Start"),i=>Rr(this.node,i,"End"))))}unmount(){}}class sm extends Vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=he(le(this.node.current,"focus",()=>this.onFocus()),le(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dr(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&k.postRender(()=>o(e,pe(e)))}class im extends Vt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Of(e,(i,o)=>(Dr(this.node,o,"Start"),(r,{success:a})=>Dr(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const ms=new WeakMap,Ln=new WeakMap,rm=t=>{const e=ms.get(t.target);e&&e(t)},om=t=>{t.forEach(rm)};function am({root:t,...e}){const n=t||document;Ln.has(n)||Ln.set(n,{});const s=Ln.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(om,{root:t,...e})),s[i]}function cm(t,e,n){const s=am(e);return ms.set(t,n),s.observe(t),()=>{ms.delete(t),s.unobserve(t)}}const um={some:0,all:1};class lm extends Vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var c;(c=this.stopObserver)==null||c.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:um[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),d=u?f:h;d&&d(l)};this.stopObserver=cm(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fm(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function fm({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hm={inView:{Feature:lm},tap:{Feature:im},focus:{Feature:sm},hover:{Feature:nm}},dm={layout:{ProjectionNode:ka,MeasureLayout:_a}},mm={...Bd,...hm,...em,...dm},Em=kd(mm,Ld);export{du as C,Tm as G,wm as M,Ne as T,jn as _,Pm as a,Am as b,vm as c,Bc as d,xm as e,Em as f,xs as g,Sm as m,Ur as r,Qt as s,bm as u};
|
|
8
|
+
*/var K=typeof Symbol=="function"&&Symbol.for,Ss=K?Symbol.for("react.element"):60103,bs=K?Symbol.for("react.portal"):60106,Je=K?Symbol.for("react.fragment"):60107,Qe=K?Symbol.for("react.strict_mode"):60108,tn=K?Symbol.for("react.profiler"):60114,en=K?Symbol.for("react.provider"):60109,nn=K?Symbol.for("react.context"):60110,ws=K?Symbol.for("react.async_mode"):60111,sn=K?Symbol.for("react.concurrent_mode"):60111,rn=K?Symbol.for("react.forward_ref"):60112,on=K?Symbol.for("react.suspense"):60113,Nc=K?Symbol.for("react.suspense_list"):60120,an=K?Symbol.for("react.memo"):60115,cn=K?Symbol.for("react.lazy"):60116,$c=K?Symbol.for("react.block"):60121,Uc=K?Symbol.for("react.fundamental"):60117,Wc=K?Symbol.for("react.responder"):60118,Kc=K?Symbol.for("react.scope"):60119;function it(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Ss:switch(t=t.type,t){case ws:case sn:case Je:case tn:case Qe:case on:return t;default:switch(t=t&&t.$$typeof,t){case nn:case rn:case cn:case an:case en:return t;default:return e}}case bs:return e}}}function Kr(t){return it(t)===sn}D.AsyncMode=ws;D.ConcurrentMode=sn;D.ContextConsumer=nn;D.ContextProvider=en;D.Element=Ss;D.ForwardRef=rn;D.Fragment=Je;D.Lazy=cn;D.Memo=an;D.Portal=bs;D.Profiler=tn;D.StrictMode=Qe;D.Suspense=on;D.isAsyncMode=function(t){return Kr(t)||it(t)===ws};D.isConcurrentMode=Kr;D.isContextConsumer=function(t){return it(t)===nn};D.isContextProvider=function(t){return it(t)===en};D.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ss};D.isForwardRef=function(t){return it(t)===rn};D.isFragment=function(t){return it(t)===Je};D.isLazy=function(t){return it(t)===cn};D.isMemo=function(t){return it(t)===an};D.isPortal=function(t){return it(t)===bs};D.isProfiler=function(t){return it(t)===tn};D.isStrictMode=function(t){return it(t)===Qe};D.isSuspense=function(t){return it(t)===on};D.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Je||t===sn||t===tn||t===Qe||t===on||t===Nc||typeof t=="object"&&t!==null&&(t.$$typeof===cn||t.$$typeof===an||t.$$typeof===en||t.$$typeof===nn||t.$$typeof===rn||t.$$typeof===Uc||t.$$typeof===Wc||t.$$typeof===Kc||t.$$typeof===$c)};D.typeOf=it;Wr.exports=D;var Gc=Wr.exports,Gr=Gc,zc={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zr={};zr[Gr.ForwardRef]=zc;zr[Gr.Memo]=_c;var Hc=function(e){return e()},_r=ti.useInsertionEffect?ti.useInsertionEffect:!1,Xc=_r||Hc,fi=_r||v.useLayoutEffect,Hr=v.createContext(typeof HTMLElement<"u"?Nr({key:"css"}):null);Hr.Provider;var Xr=function(e){return v.forwardRef(function(n,s){var i=v.useContext(Hr);return e(n,i,s)})},Ne=v.createContext({}),Yc=function(e,n){if(typeof n=="function"){var s=n(e);return s}return jn({},e,n)},qc=ii(function(t){return ii(function(e){return Yc(t,e)})}),xm=function(e){var n=v.useContext(Ne);return e.theme!==n&&(n=qc(n)(e.theme)),v.createElement(Ne.Provider,{value:n},e.children)},Ps={}.hasOwnProperty,Nn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zc=function(e,n){var s={};for(var i in n)Ps.call(n,i)&&(s[i]=n[i]);return s[Nn]=e,s},Jc=function(e){var n=e.cache,s=e.serialized,i=e.isStringTag;return Ur(n,s,i),Xc(function(){return Ts(n,s,i)}),null},Qc=Xr(function(t,e,n){var s=t.css;typeof s=="string"&&e.registered[s]!==void 0&&(s=e.registered[s]);var i=t[Nn],o=[s],r="";typeof t.className=="string"?r=xs(e.registered,o,t.className):t.className!=null&&(r=t.className+" ");var a=Qt(o,void 0,v.useContext(Ne));r+=e.key+"-"+a.name;var c={};for(var l in t)Ps.call(t,l)&&l!=="css"&&l!==Nn&&(c[l]=t[l]);return c.className=r,n&&(c.ref=n),v.createElement(v.Fragment,null,v.createElement(Jc,{cache:e,serialized:a,isStringTag:typeof i=="string"}),v.createElement(i,c))}),tu=Qc,hi=function(e,n){var s=arguments;if(n==null||!Ps.call(n,"css"))return v.createElement.apply(void 0,s);var i=s.length,o=new Array(i);o[0]=tu,o[1]=Zc(e,n);for(var r=2;r<i;r++)o[r]=s[r];return v.createElement.apply(null,o)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(hi||(hi={}));var Tm=Xr(function(t,e){var n=t.styles,s=Qt([n],void 0,v.useContext(Ne)),i=v.useRef();return fi(function(){var o=e.key+"-global",r=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+o+" "+s.name+'"]');return e.sheet.tags.length&&(r.before=e.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",o),r.hydrate([c])),i.current=[r,a],function(){r.flush()}},[e]),fi(function(){var o=i.current,r=o[0],a=o[1];if(a){o[1]=!1;return}if(s.next!==void 0&&Ts(e,s.next,!0),r.tags.length){var c=r.tags[r.tags.length-1].nextElementSibling;r.before=c,r.flush()}e.insert("",s,r,!1)},[e,s.name]),null});function Sm(t){for(var e=0,n,s=0,i=t.length;i>=4;++s,i-=4)n=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(s+2)&255)<<16;case 2:e^=(t.charCodeAt(s+1)&255)<<8;case 1:e^=t.charCodeAt(s)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var bm={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const Yr=v.createContext({}),wm=t=>{const{children:e,...n}=t,s=v.useMemo(()=>({motion:n.motion}),[n.motion]);return v.createElement(Yr.Provider,{value:s},e)};function eu(t){const[,e]=v.useReducer(o=>o+1,0),n=v.useRef(t),s=On(()=>n.current),i=On(o=>{n.current=typeof o=="function"?o(n.current):o,e()});return[s,i]}const ht="none",Te="appear",Se="enter",be="leave",di="none",lt="prepare",kt="start",Lt="active",As="end",qr="prepared";function mi(t,e){const n={};return n[t.toLowerCase()]=e.toLowerCase(),n[`Webkit${t}`]=`webkit${e}`,n[`Moz${t}`]=`moz${e}`,n[`ms${t}`]=`MS${e}`,n[`O${t}`]=`o${e.toLowerCase()}`,n}function nu(t,e){const n={animationend:mi("Animation","AnimationEnd"),transitionend:mi("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}const su=nu(ps(),typeof window<"u"?window:{});let Zr={};ps()&&({style:Zr}=document.createElement("div"));const we={};function Jr(t){if(we[t])return we[t];const e=su[t];if(e){const n=Object.keys(e),s=n.length;for(let i=0;i<s;i+=1){const o=n[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in Zr)return we[t]=e[o],we[t]}}return""}const Qr=Jr("animationend"),to=Jr("transitionend"),iu=!!(Qr&&to),pi=Qr||"animationend",yi=to||"transitionend";function gi(t,e){if(!t)return null;if(typeof t=="object"){const n=e.replace(/-\w/g,s=>s[1].toUpperCase());return t[n]}return`${t}-${e}`}const ru=t=>{const e=v.useRef();function n(i){i&&(i.removeEventListener(yi,t),i.removeEventListener(pi,t))}function s(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(yi,t),i.addEventListener(pi,t),e.current=i)}return v.useEffect(()=>()=>{n(e.current),e.current=null},[]),[s,n]},eo=ps()?v.useLayoutEffect:v.useEffect,ou=()=>{const t=v.useRef(null);function e(){ei.cancel(t.current)}function n(s,i=2){e();const o=ei(()=>{i<=1?s({isCanceled:()=>o!==t.current}):n(s,i-1)});t.current=o}return v.useEffect(()=>()=>{e()},[]),[n,e]},au=[lt,kt,Lt,As],cu=[lt,qr],no=!1,uu=!0;function so(t){return t===Lt||t===As}const lu=(t,e,n)=>{const[s,i]=qa(di),[o,r]=ou();function a(){i(lt,!0)}const c=e?cu:au;return eo(()=>{if(s!==di&&s!==As){const l=c.indexOf(s),u=c[l+1],f=n(s);f===no?i(u,!0):u&&o(h=>{function d(){h.isCanceled()||i(u,!0)}f===!0?d():Promise.resolve(f).then(d)})}},[t,s]),v.useEffect(()=>()=>{r()},[]),[a,s]};function fu(t,e,n,{motionEnter:s=!0,motionAppear:i=!0,motionLeave:o=!0,motionDeadline:r,motionLeaveImmediately:a,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:f,onEnterStart:h,onLeaveStart:d,onAppearActive:m,onEnterActive:p,onLeaveActive:g,onAppearEnd:y,onEnterEnd:x,onLeaveEnd:T,onVisibleChanged:S}){const[w,M]=v.useState(),[A,E]=eu(ht),[O,P]=v.useState([null,null]),C=A(),L=v.useRef(!1),G=v.useRef(null);function W(){return n()}const rt=v.useRef(!1);function et(){E(ht),P([null,null])}const dn=On(B=>{const Q=A();if(Q===ht)return;const St=W();if(B&&!B.deadline&&B.target!==St)return;const ye=rt.current;let ge;Q===Te&&ye?ge=y==null?void 0:y(St,B):Q===Se&&ye?ge=x==null?void 0:x(St,B):Q===be&&ye&&(ge=T==null?void 0:T(St,B)),ye&&ge!==!1&&et()}),[$]=ru(dn),Y=B=>{switch(B){case Te:return{[lt]:c,[kt]:f,[Lt]:m};case Se:return{[lt]:l,[kt]:h,[Lt]:p};case be:return{[lt]:u,[kt]:d,[Lt]:g};default:return{}}},J=v.useMemo(()=>Y(C),[C]),[bt,wt]=lu(C,!t,B=>{var Q;if(B===lt){const St=J[lt];return St?St(W()):no}return B in J&&P([((Q=J[B])==null?void 0:Q.call(J,W(),null))||null,B]),B===Lt&&C!==ht&&($(W()),r>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{dn({deadline:!0})},r))),B===qr&&et(),uu}),_a=so(wt);rt.current=_a;const Qs=v.useRef(null);eo(()=>{if(L.current&&Qs.current===e)return;M(e);const B=L.current;L.current=!0;let Q;!B&&e&&i&&(Q=Te),B&&e&&s&&(Q=Se),(B&&!e&&o||!B&&a&&!e&&o)&&(Q=be);const St=Y(Q);Q&&(t||St[lt])?(E(Q),bt()):E(ht),Qs.current=e},[e]),v.useEffect(()=>{(C===Te&&!i||C===Se&&!s||C===be&&!o)&&E(ht)},[i,s,o]),v.useEffect(()=>()=>{L.current=!1,clearTimeout(G.current)},[]);const mn=v.useRef(!1);v.useEffect(()=>{w&&(mn.current=!0),w!==void 0&&C===ht&&((mn.current||w)&&(S==null||S(w)),mn.current=!0)},[w,C]);let pn=O[0];J[lt]&&wt===kt&&(pn={transition:"none",...pn});const Ha=O[1];return[A,wt,pn,w??e,!L.current&&C===ht&&t&&i?"NONE":wt===kt||wt===Lt?Ha===wt:!0]}function io(t){return(t==null?void 0:t.length)<2}function hu(t){let e=t;typeof t=="object"&&({transitionSupport:e}=t);function n(i,o){return!!(i.motionName&&e&&o!==!1)}const s=v.forwardRef((i,o)=>{const{visible:r=!0,removeOnLeave:a=!0,forceRender:c,children:l,motionName:u,leavedClassName:f,eventProps:h}=i,{motion:d}=v.useContext(Yr),m=n(i,d),p=v.useRef();function g(){return ec(p.current)}const[y,x,T,S,w]=fu(m,r,g,i),M=y(),A=v.useRef(S);S&&(A.current=!0);const E=v.useMemo(()=>{const C={};return Object.defineProperties(C,{nativeElement:{enumerable:!0,get:g},inMotion:{enumerable:!0,get:()=>()=>y()!==ht},enableMotion:{enumerable:!0,get:()=>()=>m}}),C},[]);v.useImperativeHandle(o,()=>E,[]);const O=v.useRef(0);w&&(O.current+=1);const P=v.useMemo(()=>{if(w==="NONE")return null;let C;const L={...h,visible:r};if(!l)C=null;else if(M===ht)S?C=l({...L},p):!a&&A.current&&f?C=l({...L,className:f},p):c||!a&&!f?C=l({...L,style:{display:"none"}},p):C=null;else{let G;x===lt?G="prepare":so(x)?G="active":x===kt&&(G="start");const W=gi(u,`${M}-${G}`);C=l({...L,className:Za(gi(u,M),{[W]:W&&G,[u]:typeof u=="string"}),style:T},p)}return C},[O.current]);if(io(l)&&Ja(P)){const C=Qa(P);if(C!==p)return v.cloneElement(P,{ref:tc(C,p)})}return P});return s.displayName="CSSMotion",s}const du=hu(iu),$n="add",Un="keep",Wn="remove",gn="removed";function mu(t){let e;return t&&typeof t=="object"&&"key"in t?e=t:e={key:t},{...e,key:String(e.key)}}function Kn(t=[]){return t.map(mu)}function pu(t=[],e=[]){let n=[],s=0;const i=e.length,o=Kn(t),r=Kn(e);o.forEach(l=>{let u=!1;for(let f=s;f<i;f+=1){const h=r[f];if(h.key===l.key){s<f&&(n=n.concat(r.slice(s,f).map(d=>({...d,status:$n}))),s=f),n.push({...h,status:Un}),s+=1,u=!0;break}}u||n.push({...l,status:Wn})}),s<i&&(n=n.concat(r.slice(s).map(l=>({...l,status:$n}))));const a={};return n.forEach(({key:l})=>{a[l]=(a[l]||0)+1}),Object.keys(a).filter(l=>a[l]>1).forEach(l=>{n=n.filter(({key:u,status:f})=>u!==l||f!==Wn),n.forEach(u=>{u.key===l&&(u.status=Un)})}),n}function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Gn.apply(this,arguments)}const yu=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gu(t,e=du){class n extends v.Component{constructor(){super(...arguments);ve(this,"state",{keyEntities:[]});ve(this,"removeKey",o=>{this.setState(r=>({keyEntities:r.keyEntities.map(c=>c.key!==o?c:{...c,status:gn})}),()=>{const{keyEntities:r}=this.state;r.filter(({status:c})=>c!==gn).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})})}static getDerivedStateFromProps({keys:o},{keyEntities:r}){const a=Kn(o);return{keyEntities:pu(r,a).filter(l=>{const u=r.find(({key:f})=>l.key===f);return!(u&&u.status===gn&&l.status===Wn)})}}render(){const{keyEntities:o}=this.state,{component:r,children:a,onVisibleChanged:c,onAllRemoved:l,...u}=this.props,f=r||v.Fragment,h={};return yu.forEach(d=>{h[d]=u[d],delete u[d]}),delete u.keys,v.createElement(f,u,o.map(({status:d,...m},p)=>{const g=d===$n||d===Un;return v.createElement(e,Gn({},h,{key:m.key,visible:g,eventProps:m,onVisibleChanged:y=>{c==null||c(y,{key:m.key}),y||this.removeKey(m.key)}}),io(a)?y=>a({...y,index:p}):(y,x)=>a({...y,index:p},x))}))}}return ve(n,"defaultProps",{component:"div"}),n}const Pm=gu();function Am(t,e,n){if(e)return e;if(n)return n[t]||n.other}const ro=v.createContext({});function vu(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const xu=typeof window<"u",Tu=xu?v.useLayoutEffect:v.useEffect,Cs=v.createContext(null);function Es(t,e){t.indexOf(e)===-1&&t.push(e)}function $e(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const xt=(t,e,n)=>n>e?e:n<t?t:n;let Ms=()=>{};const Et={},oo=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function ao(t){return typeof t=="object"&&t!==null}const co=t=>/^0[^.\s]+$/u.test(t);function uo(t){let e;return()=>(e===void 0&&(e=t()),e)}const at=t=>t,Su=(t,e)=>n=>e(t(n)),he=(...t)=>t.reduce(Su),ae=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Vs{constructor(){this.subscriptions=[]}add(e){return Es(this.subscriptions,e),()=>$e(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const st=t=>t*1e3,ot=t=>t/1e3;function lo(t,e){return e?t*(1e3/e):0}const fo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,bu=1e-7,wu=12;function Pu(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=fo(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>bu&&++a<wu);return r}function de(t,e,n,s){if(t===e&&n===s)return at;const i=o=>Pu(o,0,1,t,n);return o=>o===0||o===1?o:fo(i(o),e,s)}const ho=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,mo=t=>e=>1-t(1-e),po=de(.33,1.53,.69,.99),Rs=mo(po),yo=ho(Rs),go=t=>t>=1?1:(t*=2)<1?.5*Rs(t):.5*(2-Math.pow(2,-10*(t-1))),Ds=t=>1-Math.sin(Math.acos(t)),vo=mo(Ds),xo=ho(Ds),Au=de(.42,0,1,1),Cu=de(0,0,.58,1),To=de(.42,0,.58,1),Eu=t=>Array.isArray(t)&&typeof t[0]!="number",So=t=>Array.isArray(t)&&typeof t[0]=="number",Mu={linear:at,easeIn:Au,easeInOut:To,easeOut:Cu,circIn:Ds,circInOut:xo,circOut:vo,backIn:Rs,backInOut:yo,backOut:po,anticipate:go},Vu=t=>typeof t=="string",vi=t=>{if(So(t)){Ms(t.length===4);const[e,n,s,i]=t;return de(e,n,s,i)}else if(Vu(t))return Mu[t];return t},Pe=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ru(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){r.has(u)&&(l.schedule(u),t()),u(a)}const l={schedule:(u,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&r.add(u),m.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0;const f=n;n=s,s=f,n.forEach(c),n.clear(),i=!1,o&&(o=!1,l.process(u))}};return l}const Du=40;function bo(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Pe.reduce((T,S)=>(T[S]=Ru(o),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:d,postRender:m}=r,p=()=>{const T=Et.useManualTiming,S=T?i.timestamp:performance.now();n=!1,T||(i.delta=s?1e3/60:Math.max(Math.min(S-i.timestamp,Du),1)),i.timestamp=S,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(p))},g=()=>{n=!0,s=!0,i.isProcessing||t(p)};return{schedule:Pe.reduce((T,S)=>{const w=r[S];return T[S]=(M,A=!1,E=!1)=>(n||g(),w.schedule(M,A,E)),T},{}),cancel:T=>{for(let S=0;S<Pe.length;S++)r[Pe[S]].cancel(T)},state:i,steps:r}}const{schedule:k,cancel:Mt,state:z,steps:vn}=bo(typeof requestAnimationFrame<"u"?requestAnimationFrame:at,!0);let De;function ku(){De=void 0}const q={now:()=>(De===void 0&&q.set(z.isProcessing||Et.useManualTiming?z.timestamp:performance.now()),De),set:t=>{De=t,queueMicrotask(ku)}},wo=t=>e=>typeof e=="string"&&e.startsWith(t),Po=wo("--"),Lu=wo("var(--"),ks=t=>Lu(t)?Iu.test(t.split("/*")[0].trim()):!1,Iu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function xi(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Ht={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ce={...Ht,transform:t=>xt(0,1,t)},Ae={...Ht,default:1},te=t=>Math.round(t*1e5)/1e5,Ls=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ou(t){return t==null}const Fu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Is=(t,e)=>n=>!!(typeof n=="string"&&Fu.test(n)&&n.startsWith(t)||e&&!Ou(n)&&Object.prototype.hasOwnProperty.call(n,e)),Ao=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Ls);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Bu=t=>xt(0,255,t),xn={...Ht,transform:t=>Math.round(Bu(t))},It={test:Is("rgb","red"),parse:Ao("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+xn.transform(t)+", "+xn.transform(e)+", "+xn.transform(n)+", "+te(ce.transform(s))+")"};function ju(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const zn={test:Is("#"),parse:ju,transform:It.transform},me=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pt=me("deg"),vt=me("%"),b=me("px"),Nu=me("vh"),$u=me("vw"),Ti={...vt,parse:t=>vt.parse(t)/100,transform:t=>vt.transform(t*100)},Nt={test:Is("hsl","hue"),parse:Ao("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+vt.transform(te(e))+", "+vt.transform(te(n))+", "+te(ce.transform(s))+")"},j={test:t=>It.test(t)||zn.test(t)||Nt.test(t),parse:t=>It.test(t)?It.parse(t):Nt.test(t)?Nt.parse(t):zn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?It.transform(t):Nt.transform(t),getAnimatableNone:t=>{const e=j.parse(t);return e.alpha=0,j.transform(e)}},Uu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wu(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ls))==null?void 0:e.length)||0)+(((n=t.match(Uu))==null?void 0:n.length)||0)>0}const Co="number",Eo="color",Ku="var",Gu="var(",Si="${}",zu=/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 Gt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(zu,c=>(j.test(c)?(s.color.push(o),i.push(Eo),n.push(j.parse(c))):c.startsWith(Gu)?(s.var.push(o),i.push(Ku),n.push(c)):(s.number.push(o),i.push(Co),n.push(parseFloat(c))),++o,Si)).split(Si);return{values:n,split:a,indexes:s,types:i}}function _u(t){return Gt(t).values}function Mo({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===Co?i+=te(s[o]):r===Eo?i+=j.transform(s[o]):i+=s[o]}return i}}function Hu(t){return Mo(Gt(t))}const Xu=t=>typeof t=="number"?0:j.test(t)?j.getAnimatableNone(t):t,Yu=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:Xu(t);function qu(t){const e=Gt(t);return Mo(e)(e.values.map((s,i)=>Yu(s,e.split[i])))}const ft={test:Wu,parse:_u,createTransformer:Hu,getAnimatableNone:qu};function Tn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Zu({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Tn(c,a,t+1/3),o=Tn(c,a,t),r=Tn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ue(t,e){return n=>n>0?e:t}const I=(t,e,n)=>t+(e-t)*n,Sn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Ju=[zn,It,Nt],Qu=t=>Ju.find(e=>e.test(t));function bi(t){const e=Qu(t);if(!e)return!1;let n=e.parse(t);return e===Nt&&(n=Zu(n)),n}const wi=(t,e)=>{const n=bi(t),s=bi(e);if(!n||!s)return Ue(t,e);const i={...n};return o=>(i.red=Sn(n.red,s.red,o),i.green=Sn(n.green,s.green,o),i.blue=Sn(n.blue,s.blue,o),i.alpha=I(n.alpha,s.alpha,o),It.transform(i))},_n=new Set(["none","hidden"]);function tl(t,e){return _n.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function el(t,e){return n=>I(t,e,n)}function Os(t){return typeof t=="number"?el:typeof t=="string"?ks(t)?Ue:j.test(t)?wi:il:Array.isArray(t)?Vo:typeof t=="object"?j.test(t)?wi:nl:Ue}function Vo(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Os(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function nl(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Os(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function sl(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const il=(t,e)=>{const n=ft.createTransformer(e),s=Gt(t),i=Gt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?_n.has(t)&&!i.values.length||_n.has(e)&&!s.values.length?tl(t,e):he(Vo(sl(s,i),i.values),n):Ue(t,e)};function Ro(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?I(t,e,n):Os(t)(t,e)}const rl=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>k.update(e,n),stop:()=>Mt(e),now:()=>z.isProcessing?z.timestamp:q.now()}},Do=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},We=2e4;function Fs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<We;)e+=n,s=t.next(e);return e>=We?1/0:e}function ol(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Fs(s),We);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:ot(i)}}const F={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};function Hn(t,e){return t*Math.sqrt(1-e*e)}const al=12;function cl(t,e,n){let s=n;for(let i=1;i<al;i++)s=s-t(s)/e(s);return s}const bn=.001;function ul({duration:t=F.duration,bounce:e=F.bounce,velocity:n=F.velocity,mass:s=F.mass}){let i,o,r=1-e;r=xt(F.minDamping,F.maxDamping,r),t=xt(F.minDuration,F.maxDuration,ot(t)),r<1?(i=l=>{const u=l*r,f=u*t,h=u-n,d=Hn(l,r),m=Math.exp(-f);return bn-h/d*m},o=l=>{const f=l*r*t,h=f*n+n,d=Math.pow(r,2)*Math.pow(l,2)*t,m=Math.exp(-f),p=Hn(Math.pow(l,2),r);return(-i(l)+bn>0?-1:1)*((h-d)*m)/p}):(i=l=>{const u=Math.exp(-l*t),f=(l-n)*t+1;return-bn+u*f},o=l=>{const u=Math.exp(-l*t),f=(n-l)*(t*t);return u*f});const a=5/t,c=cl(i,o,a);if(t=st(t),isNaN(c))return{stiffness:F.stiffness,damping:F.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:r*2*Math.sqrt(s*l),duration:t}}}const ll=["duration","bounce"],fl=["stiffness","damping","mass"];function Pi(t,e){return e.some(n=>t[n]!==void 0)}function hl(t){let e={velocity:F.velocity,stiffness:F.stiffness,damping:F.damping,mass:F.mass,isResolvedFromDuration:!1,...t};if(!Pi(t,fl)&&Pi(t,ll))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*xt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:F.mass,stiffness:i,damping:o}}else{const n=ul({...t,velocity:0});e={...e,...n,mass:F.mass},e.isResolvedFromDuration=!0}return e}function Ke(t=F.visualDuration,e=F.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:f,velocity:h,isResolvedFromDuration:d}=hl({...n,velocity:-ot(n.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(c*u)),g=r-o,y=ot(Math.sqrt(c/u)),x=Math.abs(g)<5;s||(s=x?F.restSpeed.granular:F.restSpeed.default),i||(i=x?F.restDelta.granular:F.restDelta.default);let T,S,w,M,A,E;if(p<1)w=Hn(y,p),M=(m+p*y*g)/w,T=P=>{const C=Math.exp(-p*y*P);return r-C*(M*Math.sin(w*P)+g*Math.cos(w*P))},A=p*y*M+g*w,E=p*y*g-M*w,S=P=>Math.exp(-p*y*P)*(A*Math.sin(w*P)+E*Math.cos(w*P));else if(p===1){T=C=>r-Math.exp(-y*C)*(g+(m+y*g)*C);const P=m+y*g;S=C=>Math.exp(-y*C)*(y*P*C-m)}else{const P=y*Math.sqrt(p*p-1);T=W=>{const rt=Math.exp(-p*y*W),et=Math.min(P*W,300);return r-rt*((m+p*y*g)*Math.sinh(et)+P*g*Math.cosh(et))/P};const C=(m+p*y*g)/P,L=p*y*C-g*P,G=p*y*g-C*P;S=W=>{const rt=Math.exp(-p*y*W),et=Math.min(P*W,300);return rt*(L*Math.sinh(et)+G*Math.cosh(et))}}const O={calculatedDuration:d&&f||null,velocity:P=>st(S(P)),next:P=>{if(!d&&p<1){const L=Math.exp(-p*y*P),G=Math.sin(w*P),W=Math.cos(w*P),rt=r-L*(M*G+g*W),et=st(L*(A*G+E*W));return a.done=Math.abs(et)<=s&&Math.abs(r-rt)<=i,a.value=a.done?r:rt,a}const C=T(P);if(d)a.done=P>=f;else{const L=st(S(P));a.done=Math.abs(L)<=s&&Math.abs(r-C)<=i}return a.value=a.done?r:C,a},toString:()=>{const P=Math.min(Fs(O),We),C=Do(L=>O.next(P*L).value,P,30);return P+"ms "+C},toTransition:()=>{}};return O}Ke.applyToOptions=t=>{const e=ol(t,100,Ke);return t.ease=e.ease,t.duration=st(e.duration),t.type="keyframes",t};const dl=5;function ko(t,e,n){const s=Math.max(e-dl,0);return lo(n-t(s),e-s)}function Xn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=t[0],h={done:!1,value:f},d=E=>a!==void 0&&E<a||c!==void 0&&E>c,m=E=>a===void 0?c:c===void 0||Math.abs(a-E)<Math.abs(c-E)?a:c;let p=n*e;const g=f+p,y=r===void 0?g:r(g);y!==g&&(p=y-f);const x=E=>-p*Math.exp(-E/s),T=E=>y+x(E),S=E=>{const O=x(E),P=T(E);h.done=Math.abs(O)<=l,h.value=h.done?y:P};let w,M;const A=E=>{d(h.value)&&(w=E,M=Ke({keyframes:[h.value,m(h.value)],velocity:ko(T,E,h.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:E=>{let O=!1;return!M&&w===void 0&&(O=!0,S(E),A(E)),w!==void 0&&E>=w?M.next(E-w):(!O&&S(E),h)}}}function ml(t,e,n){const s=[],i=n||Et.mix||Ro,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||at:e;a=he(c,a)}s.push(a)}return s}function pl(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ms(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ml(e,s,i),c=a.length,l=u=>{if(r&&u<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(u<t[f+1]);f++);const h=ae(t[f],t[f+1],u);return a[f](h)};return n?u=>l(xt(t[0],t[o-1],u)):l}function yl(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ae(0,e,s);t.push(I(n,1,i))}}function gl(t){const e=[0];return yl(e,t.length-1),e}function vl(t,e){return t.map(n=>n*e)}function xl(t,e){return t.map(()=>e||To).splice(0,t.length-1)}function ee({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Eu(s)?s.map(vi):vi(s),o={done:!1,value:e[0]},r=vl(n&&n.length===e.length?n:gl(e),t),a=pl(r,e,{ease:Array.isArray(i)?i:xl(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Tl=t=>t!==null;function un(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Tl),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Sl={decay:Xn,inertia:Xn,tween:ee,keyframes:ee,spring:Ke};function Lo(t){typeof t.type=="string"&&(t.type=Sl[t.type])}class Bs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const bl=t=>t/100;class Ge extends Bs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;Lo(e);const{type:n=ee,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||ee;c!==ee&&typeof a[0]!="number"&&(this.mixKeyframes=he(bl,Ro(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=Fs(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,S=s;if(f){const E=Math.min(this.currentTime,i)/a;let O=Math.floor(E),P=E%1;!P&&E>=1&&(P=1),P===1&&O--,O=Math.min(O,f+1),!!(O%2)&&(h==="reverse"?(P=1-P,d&&(P-=d/a)):h==="mirror"&&(S=r)),T=xt(0,1,P)*a}let w;x?(this.delayState.value=u[0],w=this.delayState):w=S.next(T),o&&!x&&(w.value=o(w.value));let{done:M}=w;!x&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return A&&m!==Xn&&(w.value=un(u,this.options,g,this.speed)),p&&p(w.value),A&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return ot(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(this.currentTime)}set time(e){e=st(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return ko(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=ot(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:e=rl,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),(o=(i=this.options).onPlay)==null||o.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function wl(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ot=t=>t*180/Math.PI,Yn=t=>{const e=Ot(Math.atan2(t[1],t[0]));return qn(e)},Pl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Yn,rotateZ:Yn,skewX:t=>Ot(Math.atan(t[1])),skewY:t=>Ot(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},qn=t=>(t=t%360,t<0&&(t+=360),t),Ai=Yn,Ci=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ei=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Al={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ci,scaleY:Ei,scale:t=>(Ci(t)+Ei(t))/2,rotateX:t=>qn(Ot(Math.atan2(t[6],t[5]))),rotateY:t=>qn(Ot(Math.atan2(-t[2],t[0]))),rotateZ:Ai,rotate:Ai,skewX:t=>Ot(Math.atan(t[4])),skewY:t=>Ot(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Zn(t){return t.includes("scale")?1:0}function Jn(t,e){if(!t||t==="none")return Zn(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Al,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Pl,i=a}if(!i)return Zn(e);const o=s[e],r=i[1].split(",").map(El);return typeof o=="function"?o(r):r[o]}const Cl=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Jn(n,e)};function El(t){return parseFloat(t.trim())}const Xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yt=new Set(Xt),Mi=t=>t===Ht||t===b,Ml=new Set(["x","y","z"]),Vl=Xt.filter(t=>!Ml.has(t));function Rl(t){const e=[];return Vl.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Ct={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Jn(e,"x"),y:(t,{transform:e})=>Jn(e,"y")};Ct.translateX=Ct.x;Ct.translateY=Ct.y;const Ft=new Set;let Qn=!1,ts=!1,es=!1;function Io(){if(ts){const t=Array.from(Ft).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Rl(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))==null||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ts=!1,Qn=!1,Ft.forEach(t=>t.complete(es)),Ft.clear()}function Oo(){Ft.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ts=!0)})}function Dl(){es=!0,Oo(),Io(),es=!1}class js{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ft.add(this),Qn||(Qn=!0,k.read(Oo),k.resolveKeyframes(Io))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i==null?void 0:i.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}wl(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ft.delete(this)}cancel(){this.state==="scheduled"&&(Ft.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kl=t=>t.startsWith("--");function Fo(t,e,n){kl(e)?t.style.setProperty(e,n):t.style[e]=n}const Ll={};function Bo(t,e){const n=uo(t);return()=>Ll[e]??n()}const Il=Bo(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),jo=Bo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Vi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jt([0,.65,.55,1]),circOut:Jt([.55,0,1,.45]),backIn:Jt([.31,.01,.66,-.59]),backOut:Jt([.33,1.53,.69,.99])};function No(t,e){if(t)return typeof t=="function"?jo()?Do(t,e):"ease-out":So(t)?Jt(t):Array.isArray(t)?t.map(n=>No(n,e)||Vi.easeOut):Vi[t]}function Ol(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const f=No(a,i);Array.isArray(f)&&(u.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),t.animate(u,h)}function $o(t){return typeof t=="function"&&"applyToOptions"in t}function Fl({type:t,...e}){return $o(t)&&jo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Uo extends Bs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Ms(typeof e.type!="string");const l=Fl(e);this.animation=Ol(n,s,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=un(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Fo(n,s,u),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return ot(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+ot(e)}get time(){return ot(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=st(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Il()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),at):i(this)}}const Wo={anticipate:go,backInOut:yo,circInOut:xo};function Bl(t){return t in Wo}function jl(t){typeof t.ease=="string"&&Bl(t.ease)&&(t.ease=Wo[t.ease])}const wn=10;class Nl extends Uo{constructor(e){jl(e),Lo(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Ge({...r,autoplay:!1}),c=Math.max(wn,q.now()-this.startTime),l=xt(0,wn,c-wn),u=a.sample(c).value,{name:f}=this.options;o&&f&&Fo(o,f,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const Ri=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ft.test(t)||t==="0")&&!t.startsWith("url("));function $l(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Ul(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ri(i,e),a=Ri(o,e);return!r||!a?!1:$l(t)||(n==="spring"||$o(n))&&s}function ns(t){t.duration=0,t.type="keyframes"}const Ko=new Set(["opacity","clipPath","filter","transform"]),Wl=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Kl(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Wl.test(t[e]))return!0;return!1}const Gl=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),zl=uo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _l(t){var f;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(((f=e==null?void 0:e.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return zl()&&n&&(Ko.has(n)||Gl.has(n)&&Kl(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Hl=40;class Xl extends Bs{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){var m;super(),this.stop=()=>{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=q.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:l,element:u,...f},d=(u==null?void 0:u.KeyframeResolver)||js;this.keyframeResolver=new d(a,(p,g,y)=>this.onKeyframesResolved(p,g,h,!y),c,l,u),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){var y,x;this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=q.now();let f=!0;Ul(e,o,r,a)||(f=!1,(Et.instantAnimations||!c)&&(u==null||u(un(e,s,n))),e[0]=e[e.length-1],ns(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Hl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=f&&!l&&_l(d),p=(x=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:x.current;let g;if(m)try{g=new Nl({...d,element:p})}catch{g=new Ge(d)}else g=new Ge(d);g.finished.then(()=>{this.notifyFinished()}).catch(at),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),Dl()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Go(t,e,n,s=0,i=1){const o=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Yl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ql(t){const e=Yl.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function zo(t,e,n=1){const[s,i]=ql(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return oo(r)?parseFloat(r):r}return ks(i)?zo(i,e,n+1):i}const Zl={type:"spring",stiffness:500,damping:25,restSpeed:10},Jl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ql={type:"keyframes",duration:.8},tf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ef=(t,{keyframes:e})=>e.length>2?Ql:Yt.has(t)?t.startsWith("scale")?Jl(e[1]):Zl:tf;function _o(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Ns(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?_o(n,t):n}const nf=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function sf(t){for(const e in t)if(!nf.has(e))return!0;return!1}const $s=(t,e,n,s={},i,o)=>r=>{const a=Ns(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-st(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};sf(a)||Object.assign(u,ef(t,u)),u.duration&&(u.duration=st(u.duration)),u.repeatDelay&&(u.repeatDelay=st(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ns(u),u.delay===0&&(f=!0)),(Et.instantAnimations||Et.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(f=!0,ns(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=un(u.keyframes,a);if(h!==void 0){k.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new Ge(u):new Xl(u)};function Di(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Us(t,e,n,s){if(typeof e=="function"){const[i,o]=Di(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Di(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Bt(t,e,n){const s=t.getProps();return Us(s,e,n!==void 0?n:s.custom,t)}const Ho=new Set(["width","height","top","left","right","bottom",...Xt]),ki=30,rf=t=>!isNaN(parseFloat(t));class of{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var o;const i=q.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=rf(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Vs);const s=this.events[e].add(n);return e==="change"?()=>{s(),k.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ki)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ki);return lo(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(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(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zt(t,e){return new of(t,e)}const ss=t=>Array.isArray(t);function af(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,zt(n))}function cf(t){return ss(t)?t[t.length-1]||0:t}function uf(t,e){const n=Bt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=cf(o[r]);af(t,r,a)}}const H=t=>!!(t&&t.getVelocity);function lf(t){return!!(H(t)&&t.add)}function is(t,e){const n=t.getValue("willChange");if(lf(n))return n.add(e);if(!n&&Et.WillChange){const s=new Et.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Ws(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ff="framerAppearId",Xo="data-"+Ws(ff);function Yo(t){return t.props[Xo]}function hf({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function qo(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?_o(o,c):c;const l=o==null?void 0:o.reduceMotion;s&&(o=s);const u=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const d=t.getValue(h,t.latestValues[h]??null),m=a[h];if(m===void 0||f&&hf(f,h))continue;const p={delay:n,...Ns(o||{},h)},g=d.get();if(g!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===g&&!p.velocity){k.update(()=>d.set(m));continue}let y=!1;if(window.MotionHandoffAnimation){const S=Yo(t);if(S){const w=window.MotionHandoffAnimation(S,h,k);w!==null&&(p.startTime=w,y=!0)}}is(t,h);const x=l??t.shouldReduceMotion;d.start($s(h,d,m,x&&Ho.has(h)?{type:!1}:p,t,y));const T=d.animation;T&&u.push(T)}if(r){const h=()=>k.update(()=>{r&&uf(t,r)});u.length?Promise.all(u).then(h):h()}return u}function rs(t,e,n={}){var c;const s=Bt(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(qo(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:h}=i;return df(t,e,l,u,f,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function df(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(rs(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Go(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function mf(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>rs(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=rs(t,e,n);else{const i=typeof e=="function"?Bt(t,e,n.custom):e;s=Promise.all(qo(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const pf={test:t=>t==="auto",parse:t=>t},Zo=t=>e=>e.test(t),Jo=[Ht,b,vt,Pt,$u,Nu,pf],Li=t=>Jo.find(Zo(t));function yf(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||co(t):!0}const gf=new Set(["brightness","contrast","saturate","opacity"]);function vf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ls)||[];if(!s)return t;const i=n.replace(s,"");let o=gf.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const xf=/\b([a-z-]*)\(.*?\)/gu,os={...ft,getAnimatableNone:t=>{const e=t.match(xf);return e?e.map(vf).join(" "):t}},as={...ft,getAnimatableNone:t=>{const e=ft.parse(t);return ft.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Ii={...Ht,transform:Math.round},Tf={rotate:Pt,rotateX:Pt,rotateY:Pt,rotateZ:Pt,scale:Ae,scaleX:Ae,scaleY:Ae,scaleZ:Ae,skew:Pt,skewX:Pt,skewY:Pt,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:ce,originX:Ti,originY:Ti,originZ:b},Ks={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...Tf,zIndex:Ii,fillOpacity:ce,strokeOpacity:ce,numOctaves:Ii},Sf={...Ks,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:os,WebkitFilter:os,mask:as,WebkitMask:as},Qo=t=>Sf[t],bf=new Set([os,as]);function ta(t,e){let n=Qo(t);return bf.has(n)||(n=ft),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const wf=new Set(["auto","none","0"]);function Pf(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!wf.has(o)&&Gt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=ta(n,i)}class Af extends js{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let f=e[u];if(typeof f=="string"&&(f=f.trim(),ks(f))){const h=zo(f,n.current);h!==void 0&&(e[u]=h),u===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Ho.has(s)||e.length!==2)return;const[i,o]=e,r=Li(i),a=Li(o),c=xi(i),l=xi(o);if(c!==l&&Ct[s]){this.needsMeasurement=!0;return}if(r!==a)if(Mi(r)&&Mi(a))for(let u=0;u<e.length;u++){const f=e[u];typeof f=="string"&&(e[u]=parseFloat(f))}else Ct[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||yf(e[i]))&&s.push(i);s.length&&Pf(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ct[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=Ct[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([c,l])=>{e.getValue(c).set(l)}),this.resolveNoneKeyframes()}}function ea(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const na=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Cf(t){return ao(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Gs}=bo(queueMicrotask,!1),ut={x:!1,y:!1};function sa(){return ut.x||ut.y}function Ef(t){return t==="x"||t==="y"?ut[t]?null:(ut[t]=!0,()=>{ut[t]=!1}):ut.x||ut.y?null:(ut.x=ut.y=!0,()=>{ut.x=ut.y=!1})}function ia(t,e){const n=ea(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Mf(t){return!(t.pointerType==="touch"||sa())}function Vf(t,e,n={}){const[s,i,o]=ia(t,n);return s.forEach(r=>{let a=!1,c=!1,l;const u=()=>{r.removeEventListener("pointerleave",m)},f=g=>{l&&(l(g),l=void 0),u()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=g=>{if(g.pointerType!=="touch"){if(a){c=!0;return}f(g)}},p=g=>{if(!Mf(g))return;c=!1;const y=e(r,g);typeof y=="function"&&(l=y,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",p,i),r.addEventListener("pointerdown",d,i)}),o}const ra=(t,e)=>e?t===e?!0:ra(t,e.parentElement):!1,zs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Rf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Df(t){return Rf.has(t.tagName)||t.isContentEditable===!0}const kf=new Set(["INPUT","SELECT","TEXTAREA"]);function Lf(t){return kf.has(t.tagName)||t.isContentEditable===!0}const ke=new WeakSet;function Oi(t){return e=>{e.key==="Enter"&&t(e)}}function Pn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const If=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Oi(()=>{if(ke.has(n))return;Pn(n,"down");const i=Oi(()=>{Pn(n,"up")}),o=()=>Pn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Fi(t){return zs(t)&&!sa()}const Bi=new WeakSet;function Of(t,e,n={}){const[s,i,o]=ia(t,n),r=a=>{const c=a.currentTarget;if(!Fi(a)||Bi.has(a))return;ke.add(c),n.stopPropagation&&Bi.add(a);const l=e(c,a),u=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),ke.has(c)&&ke.delete(c),Fi(d)&&typeof l=="function"&&l(d,{success:m})},f=d=>{u(d,c===window||c===document||n.useGlobalTarget||ra(c,d.target))},h=d=>{u(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Cf(a)&&(a.addEventListener("focus",l=>If(l,i)),!Df(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function _s(t){return ao(t)&&"ownerSVGElement"in t}const Le=new WeakMap;let At;const oa=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:_s(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Ff=oa("inline","width","offsetWidth"),Bf=oa("block","height","offsetHeight");function jf({target:t,borderBoxSize:e}){var n;(n=Le.get(t))==null||n.forEach(s=>{s(t,{get width(){return Ff(t,e)},get height(){return Bf(t,e)}})})}function Nf(t){t.forEach(jf)}function $f(){typeof ResizeObserver>"u"||(At=new ResizeObserver(Nf))}function Uf(t,e){At||$f();const n=ea(t);return n.forEach(s=>{let i=Le.get(s);i||(i=new Set,Le.set(s,i)),i.add(e),At==null||At.observe(s)}),()=>{n.forEach(s=>{const i=Le.get(s);i==null||i.delete(e),i!=null&&i.size||At==null||At.unobserve(s)})}}const Ie=new Set;let $t;function Wf(){$t=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ie.forEach(e=>e(t))},window.addEventListener("resize",$t)}function Kf(t){return Ie.add(t),$t||Wf(),()=>{Ie.delete(t),!Ie.size&&typeof $t=="function"&&(window.removeEventListener("resize",$t),$t=void 0)}}function ji(t,e){return typeof t=="function"?Kf(t):Uf(t,e)}function Gf(t){return _s(t)&&t.tagName==="svg"}const zf=[...Jo,j,ft],_f=t=>zf.find(Zo(t)),Ni=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ut=()=>({x:Ni(),y:Ni()}),$i=()=>({min:0,max:0}),U=()=>({x:$i(),y:$i()}),Hf=new WeakMap;function ln(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ue(t){return typeof t=="string"||Array.isArray(t)}const Hs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xs=["initial",...Hs];function fn(t){return ln(t.animate)||Xs.some(e=>ue(t[e]))}function aa(t){return!!(fn(t)||t.variants)}function Xf(t,e,n){for(const s in e){const i=e[s],o=n[s];if(H(i))t.addValue(s,i);else if(H(o))t.addValue(s,zt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,zt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const cs={current:null},ca={current:!1},Yf=typeof window<"u";function qf(){if(ca.current=!0,!!Yf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>cs.current=t.matches;t.addEventListener("change",e),e()}else cs.current=!1}const Ui=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ze={};function ua(t){ze=t}function Zf(){return ze}class Jf{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=js,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 d=q.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,k.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=fn(n),this.isVariantNode=aa(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const m=h[d];l[d]!==void 0&&H(m)&&m.set(l[d])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,Hf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ca.current||qf(),this.shouldReduceMotion=cs.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Mt(this.notifyUpdate),Mt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ko.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,f=new Uo({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:st(u)}),h=r(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=Yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&k.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ze){const n=ze[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];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):U()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Ui.length;s++){const i=Ui[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Xf(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=zt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(oo(s)||co(s))?s=parseFloat(s):!_f(s)&&ft.test(n)&&(s=ta(e,n)),this.setBaseTarget(e,H(s)?s.get():s)),H(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var o;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=Us(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!H(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Vs),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Gs.render(this.render)}}class la extends Jf{constructor(){super(...arguments),this.KeyframeResolver=Af}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;H(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Vt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function fa({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Qf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function th(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function An(t){return t===void 0||t===1}function us({scale:t,scaleX:e,scaleY:n}){return!An(t)||!An(e)||!An(n)}function Dt(t){return us(t)||ha(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ha(t){return Wi(t.x)||Wi(t.y)}function Wi(t){return t&&t!=="0%"}function _e(t,e,n){const s=t-n,i=e*s;return n+i}function Ki(t,e,n,s,i){return i!==void 0&&(t=_e(t,i,s)),_e(t,n,s)+e}function ls(t,e=0,n=1,s,i){t.min=Ki(t.min,e,n,s,i),t.max=Ki(t.max,e,n,s,i)}function da(t,{x:e,y:n}){ls(t.x,e.translate,e.scale,e.originPoint),ls(t.y,n.translate,n.scale,n.originPoint)}const Gi=.999999999999,zi=1.0000000000001;function eh(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let c=0;c<i;c++){o=n[c],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(yt(t.x,-o.scroll.offset.x),yt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,da(t,r)),s&&Dt(o.latestValues)&&Oe(t,o.latestValues,(a=o.layout)==null?void 0:a.layoutBox))}e.x<zi&&e.x>Gi&&(e.x=1),e.y<zi&&e.y>Gi&&(e.y=1)}function yt(t,e){t.min+=e,t.max+=e}function _i(t,e,n,s,i=.5){const o=I(t.min,t.max,i);ls(t,e,n,o,s)}function Hi(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Oe(t,e,n){const s=n??t;_i(t.x,Hi(e.x,s.x),e.scaleX,e.scale,e.originX),_i(t.y,Hi(e.y,s.y),e.scaleY,e.scale,e.originY)}function ma(t,e){return fa(th(t.getBoundingClientRect(),e))}function nh(t,e,n){const s=ma(t,n),{scroll:i}=e;return i&&(yt(s.x,i.offset.x),yt(s.y,i.offset.y)),s}const sh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ih=Xt.length;function rh(t,e,n){let s="",i=!0;for(let o=0;o<ih;o++){const r=Xt[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(r.startsWith("scale")?1:0);else{const l=parseFloat(a);c=r.startsWith("scale")?l===1:l===0}if(!c||n){const l=na(a,Ks[r]);if(!c){i=!1;const u=sh[r]||r;s+=`${u}(${l}) `}n&&(e[r]=l)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ys(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const l=e[c];if(Yt.has(c)){r=!0;continue}else if(Po(c)){i[c]=l;continue}else{const u=na(l,Ks[c]);c.startsWith("origin")?(a=!0,o[c]=u):s[c]=u}}if(e.transform||(r||n?s.transform=rh(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;s.transformOrigin=`${c} ${l} ${u}`}}function pa(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i==null||i.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Zt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=Xi(t,e.target.x),s=Xi(t,e.target.y);return`${n}% ${s}%`}},oh={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=ft.parse(t);if(i.length>5)return s;const o=ft.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const l=I(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=l),typeof i[3+r]=="number"&&(i[3+r]/=l),o(i)}},fs={borderRadius:{...Zt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zt,borderTopRightRadius:Zt,borderBottomLeftRadius:Zt,borderBottomRightRadius:Zt,boxShadow:oh};function ya(t,{layout:e,layoutId:n}){return Yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fs[t]||t==="opacity")}function qs(t,e,n){var r;const s=t.style,i=e==null?void 0:e.style,o={};if(!s)return o;for(const a in s)(H(s[a])||i&&H(i[a])||ya(a,t)||((r=n==null?void 0:n.getValue(a))==null?void 0:r.liveStyle)!==void 0)&&(o[a]=s[a]);return o}function ah(t){return window.getComputedStyle(t)}class ch extends la{constructor(){super(...arguments),this.type="html",this.renderInstance=pa}readValueFromInstance(e,n){var s;if(Yt.has(n))return(s=this.projection)!=null&&s.isProjecting?Zn(n):Cl(e,n);{const i=ah(e),o=(Po(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(e,{transformPagePoint:n}){return ma(e,n)}build(e,n,s){Ys(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return qs(e,n,s)}}const uh={offset:"stroke-dashoffset",array:"stroke-dasharray"},lh={offset:"strokeDashoffset",array:"strokeDasharray"};function fh(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?uh:lh;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const hh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ga(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,l,u){if(Ys(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete f.transformBox);for(const d of hh)f[d]!==void 0&&(h[d]=f[d],delete f[d]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&fh(f,i,o,r,!1)}const va=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"]),xa=t=>typeof t=="string"&&t.toLowerCase()==="svg";function dh(t,e,n,s){pa(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(va.has(i)?i:Ws(i),e.attrs[i])}function Ta(t,e,n){const s=qs(t,e,n);for(const i in t)if(H(t[i])||H(e[i])){const o=Xt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class mh extends la{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=U}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Yt.has(n)){const s=Qo(n);return s&&s.default||0}return n=va.has(n)?n:Ws(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ta(e,n,s)}build(e,n,s){ga(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){dh(e,n,s,i)}mount(e){this.isSVGTag=xa(e.tagName),super.mount(e)}}const ph=Xs.length;function Sa(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Sa(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ph;n++){const s=Xs[n],i=t.props[s];(ue(i)||i===!1)&&(e[s]=i)}return e}function ba(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const yh=[...Hs].reverse(),gh=Hs.length;function vh(t){return e=>Promise.all(e.map(({animation:n,options:s})=>mf(t,n,s)))}function xh(t){let e=vh(t),n=Yi(),s=!0,i=!1;const o=l=>(u,f)=>{var d;const h=Bt(t,f,l==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:m,transitionEnd:p,...g}=h;u={...u,...g,...p}}return u};function r(l){e=l(t)}function a(l){const{props:u}=t,f=Sa(t.parent)||{},h=[],d=new Set;let m={},p=1/0;for(let y=0;y<gh;y++){const x=yh[y],T=n[x],S=u[x]!==void 0?u[x]:f[x],w=ue(S),M=x===l?T.isActive:null;M===!1&&(p=y);let A=S===f[x]&&S!==u[x]&&w;if(A&&(s||i)&&t.manuallyAnimateOnMount&&(A=!1),T.protectedKeys={...m},!T.isActive&&M===null||!S&&!T.prevProp||ln(S)||typeof S=="boolean")continue;if(x==="exit"&&T.isActive&&M!==!0){T.prevResolvedValues&&(m={...m,...T.prevResolvedValues});continue}const E=Th(T.prevProp,S);let O=E||x===l&&T.isActive&&!A&&w||y>p&&w,P=!1;const C=Array.isArray(S)?S:[S];let L=C.reduce(o(x),{});M===!1&&(L={});const{prevResolvedValues:G={}}=T,W={...G,...L},rt=$=>{O=!0,d.has($)&&(P=!0,d.delete($)),T.needsAnimating[$]=!0;const Y=t.getValue($);Y&&(Y.liveStyle=!1)};for(const $ in W){const Y=L[$],J=G[$];if(m.hasOwnProperty($))continue;let bt=!1;ss(Y)&&ss(J)?bt=!ba(Y,J):bt=Y!==J,bt?Y!=null?rt($):d.add($):Y!==void 0&&d.has($)?rt($):T.protectedKeys[$]=!0}T.prevProp=S,T.prevResolvedValues=L,T.isActive&&(m={...m,...L}),(s||i)&&t.blockInitialAnimation&&(O=!1);const et=A&&E;O&&(!et||P)&&h.push(...C.map($=>{const Y={type:x};if(typeof $=="string"&&(s||i)&&!et&&t.manuallyAnimateOnMount&&t.parent){const{parent:J}=t,bt=Bt(J,$);if(J.enteringChildren&&bt){const{delayChildren:wt}=bt.transition||{};Y.delay=Go(J.enteringChildren,t,wt)}}return{animation:$,options:Y}}))}if(d.size){const y={};if(typeof u.initial!="boolean"){const x=Bt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);x&&x.transition&&(y.transition=x.transition)}d.forEach(x=>{const T=t.getBaseTarget(x),S=t.getValue(x);S&&(S.liveStyle=!0),y[x]=T??null}),h.push({animation:y})}let g=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(h):Promise.resolve()}function c(l,u){var h;if(n[l].isActive===u)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Yi(),i=!0}}}function Th(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ba(e,t):!1}function Rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yi(){return{animate:Rt(!0),whileInView:Rt(),whileHover:Rt(),whileTap:Rt(),whileDrag:Rt(),whileFocus:Rt(),exit:Rt()}}function hs(t,e){t.min=e.min,t.max=e.max}function ct(t,e){hs(t.x,e.x),hs(t.y,e.y)}function qi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const wa=1e-4,Sh=1-wa,bh=1+wa,Pa=.01,wh=0-Pa,Ph=0+Pa;function Z(t){return t.max-t.min}function Ah(t,e,n){return Math.abs(t-e)<=n}function Zi(t,e,n,s=.5){t.origin=s,t.originPoint=I(e.min,e.max,t.origin),t.scale=Z(n)/Z(e),t.translate=I(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Sh&&t.scale<=bh||isNaN(t.scale))&&(t.scale=1),(t.translate>=wh&&t.translate<=Ph||isNaN(t.translate))&&(t.translate=0)}function ne(t,e,n,s){Zi(t.x,e.x,n.x,s?s.originX:void 0),Zi(t.y,e.y,n.y,s?s.originY:void 0)}function Ji(t,e,n,s=0){const i=s?I(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+Z(e)}function Ch(t,e,n,s){Ji(t.x,e.x,n.x,s==null?void 0:s.x),Ji(t.y,e.y,n.y,s==null?void 0:s.y)}function Qi(t,e,n,s=0){const i=s?I(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+Z(e)}function He(t,e,n,s){Qi(t.x,e.x,n.x,s==null?void 0:s.x),Qi(t.y,e.y,n.y,s==null?void 0:s.y)}function tr(t,e,n,s,i){return t-=e,t=_e(t,1/n,s),i!==void 0&&(t=_e(t,1/i,s)),t}function Eh(t,e=0,n=1,s=.5,i,o=t,r=t){if(vt.test(e)&&(e=parseFloat(e),e=I(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=I(o.min,o.max,s);t===o&&(a-=e),t.min=tr(t.min,e,n,a,i),t.max=tr(t.max,e,n,a,i)}function er(t,e,[n,s,i],o,r){Eh(t,e[n],e[s],e[i],e.scale,o,r)}const Mh=["x","scaleX","originX"],Vh=["y","scaleY","originY"];function nr(t,e,n,s){er(t.x,e,Mh,n?n.x:void 0,s?s.x:void 0),er(t.y,e,Vh,n?n.y:void 0,s?s.y:void 0)}function sr(t){return t.translate===0&&t.scale===1}function Aa(t){return sr(t.x)&&sr(t.y)}function ir(t,e){return t.min===e.min&&t.max===e.max}function Rh(t,e){return ir(t.x,e.x)&&ir(t.y,e.y)}function rr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ca(t,e){return rr(t.x,e.x)&&rr(t.y,e.y)}function or(t){return Z(t.x)/Z(t.y)}function ar(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function dt(t){return[t("x"),t("y")]}function Dh(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:f,rotateY:h,skewX:d,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),f&&(s+=`rotateX(${f}deg) `),h&&(s+=`rotateY(${h}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Ea=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],kh=Ea.length,cr=t=>typeof t=="string"?parseFloat(t):t,ur=t=>typeof t=="number"||b.test(t);function Lh(t,e,n,s,i,o){i?(t.opacity=I(0,n.opacity??1,Ih(s)),t.opacityExit=I(e.opacity??1,0,Oh(s))):o&&(t.opacity=I(e.opacity??1,n.opacity??1,s));for(let r=0;r<kh;r++){const a=Ea[r];let c=lr(e,a),l=lr(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||ur(c)===ur(l)?(t[a]=Math.max(I(cr(c),cr(l),s),0),(vt.test(l)||vt.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=I(e.rotate||0,n.rotate||0,s))}function lr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ih=Ma(0,.5,vo),Oh=Ma(.5,.95,at);function Ma(t,e,n){return s=>s<t?0:s>e?1:n(ae(t,e,s))}function Fh(t,e,n){const s=H(t)?t:zt(t);return s.start($s("",s,e,n)),s.animation}function le(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Bh=(t,e)=>t.depth-e.depth;class jh{constructor(){this.children=[],this.isDirty=!1}add(e){Es(this.children,e),this.isDirty=!0}remove(e){$e(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bh),this.isDirty=!1,this.children.forEach(e)}}function Nh(t,e){const n=q.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Mt(s),t(o-e))};return k.setup(s,!0),()=>Mt(s)}function Fe(t){return H(t)?t.get():t}class $h{constructor(){this.members=[]}add(e){Es(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&($e(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if($e(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:o}=s.options,{layoutDependency:r}=e.options;(o===void 0||o!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,o,r;(s=(n=e.options).onExitComplete)==null||s.call(n),(r=(i=e.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||r.call(o)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const Be={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Cn=["","X","Y","Z"],Uh=1e3;let Wh=0;function En(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Va(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Yo(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",k,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Va(s)}function Ra({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Wh++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,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(zh),this.nodes.forEach(Zh),this.nodes.forEach(Jh),this.nodes.forEach(_h)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new jh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Vs),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=_s(r)&&!Gf(r),this.instance=r;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,f=0;const h=()=>this.root.updateBlockedByResize=!1;k.read(()=>{f=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,u&&u(),u=Nh(h,250),Be.hasAnimatedSinceResize&&(Be.hasAnimatedSinceResize=!1,this.nodes.forEach(dr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||sd,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=l.getProps(),y=!this.targetLayout||!Ca(this.targetLayout,d),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ns(m,"layout"),onPlay:p,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else f||dr(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Mt(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(Qh),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Va(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Xh),this.nodes.forEach(fr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Yh),this.nodes.forEach(qh),this.nodes.forEach(Kh),this.nodes.forEach(Gh)):this.nodes.forEach(hr),this.clearAllSnapshots();const a=q.now();z.delta=xt(0,1e3/60,a-z.timestamp),z.timestamp=a,z.isProcessing=!0,vn.update.process(z),vn.preRender.process(z),vn.render.process(z),z.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hh),this.sharedNodes.forEach(td)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,k.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){k.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Z(this.snapshot.measuredBox.x)&&!Z(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=U()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Aa(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||Dt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),id(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:r}=this.options;if(!r)return U();const a=r.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(rd))){const{scroll:u}=this.root;u&&(yt(a.x,u.offset.x),yt(a.y,u.offset.y))}return a}removeElementScroll(r){var c;const a=U();if(ct(a,r),(c=this.scroll)!=null&&c.wasRoot)return a;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:f,options:h}=u;u!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&ct(a,r),yt(a.x,f.offset.x),yt(a.y,f.offset.y))}return a}applyTransform(r,a=!1,c){var u,f;const l=c||U();ct(l,r);for(let h=0;h<this.path.length;h++){const d=this.path[h];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(yt(l.x,-d.scroll.offset.x),yt(l.y,-d.scroll.offset.y)),Dt(d.latestValues)&&Oe(l,d.latestValues,(u=d.layout)==null?void 0:u.layoutBox)}return Dt(this.latestValues)&&Oe(l,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),l}removeTransform(r){var c;const a=U();ct(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!Dt(u.latestValues))continue;let f;u.instance&&(us(u.latestValues)&&u.updateSnapshot(),f=U(),ct(f,u.measurePageBox())),nr(a,u.latestValues,(c=u.snapshot)==null?void 0:c.layoutBox,f)}return Dt(this.latestValues)&&nr(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==z.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:f}=this.options;if(!this.layout||!(u||f))return;this.resolvedRelativeTargetAt=z.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=U(),this.targetWithTransforms=U()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ch(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ct(this.target,this.layout.layoutBox),da(this.target,this.targetDelta)):ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||us(this.parent.latestValues)||ha(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=U(),this.relativeTargetOrigin=U(),He(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),ct(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===z.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;ct(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;eh(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=U());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(qi(this.prevProjectionDelta.x,this.projectionDelta.x),qi(this.prevProjectionDelta.y,this.projectionDelta.y)),ne(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ar(this.projectionDelta.x,this.prevProjectionDelta.x)||!ar(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),r){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ut(),this.projectionDelta=Ut(),this.projectionDeltaWithTransform=Ut()}setAnimationOrigin(r,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},f=Ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=U(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=d!==m,g=this.getStack(),y=!g||g.members.length<=1,x=!!(p&&!y&&this.options.crossfade===!0&&!this.path.some(nd));this.animationProgress=0;let T;this.mixTargetDelta=S=>{const w=S/1e3;mr(f.x,r.x,w),mr(f.y,r.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(He(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ed(this.relativeTarget,this.relativeTargetOrigin,h,w),T&&Rh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=U()),ct(T,this.relativeTarget)),p&&(this.animationValues=u,Lh(u,l,this.latestValues,w,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var a,c,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||l.stop(),this.pendingAnimation&&(Mt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=k.update(()=>{Be.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Fh(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Uh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&Da(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||U();const f=Z(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+f;const h=Z(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+h}ct(a,c),Oe(a,u),ne(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new $h),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var a;const{layoutId:r}=this.options;return r?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:r}=this.options;return r?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&En("z",r,l,this.animationValues);for(let u=0;u<Cn.length;u++)En(`rotate${Cn[u]}`,r,l,this.animationValues),En(`skew${Cn[u]}`,r,l,this.animationValues);r.render();for(const u in l)r.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Fe(a==null?void 0:a.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Fe(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Dt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=Dh(this.projectionDeltaWithTransform,this.treeScale,u);c&&(f=c(u,f)),r.transform=f;const{x:h,y:d}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,l.animationValues?r.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in fs){if(u[m]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=fs[m],x=f==="none"?u[m]:p(u[m],l);if(g){const T=g.length;for(let S=0;S<T;S++)r[g[S]]=x}else y?this.options.visualElement.renderState.vars[m]=x:r[m]=x}this.options.layoutId&&(r.pointerEvents=l===this?Fe(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(fr),this.root.sharedNodes.clear()}}}function Kh(t){t.updateLayout()}function Gh(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=e.source!==t.layout.source;if(o==="size")dt(f=>{const h=r?e.measuredBox[f]:e.layoutBox[f],d=Z(h);h.min=s[f].min,h.max=h.min+d});else if(o==="x"||o==="y"){const f=o==="x"?"y":"x";hs(r?e.measuredBox[f]:e.layoutBox[f],s[f])}else Da(o,e.layoutBox,s)&&dt(f=>{const h=r?e.measuredBox[f]:e.layoutBox[f],d=Z(s[f]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+d)});const a=Ut();ne(a,s,e.layoutBox);const c=Ut();r?ne(c,t.applyTransform(i,!0),e.measuredBox):ne(c,s,e.layoutBox);const l=!Aa(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const m=t.options.layoutAnchor||void 0,p=U();He(p,e.layoutBox,h.layoutBox,m);const g=U();He(g,s,d.layoutBox,m),Ca(p,g)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function zh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function _h(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hh(t){t.clearSnapshot()}function fr(t){t.clearMeasurements()}function Xh(t){t.isLayoutDirty=!0,t.updateLayout()}function hr(t){t.isLayoutDirty=!1}function Yh(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function qh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function dr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Zh(t){t.resolveTargetDelta()}function Jh(t){t.calcProjection()}function Qh(t){t.resetSkewAndRotation()}function td(t){t.removeLeadSnapshot()}function mr(t,e,n){t.translate=I(e.translate,0,n),t.scale=I(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function pr(t,e,n,s){t.min=I(e.min,n.min,s),t.max=I(e.max,n.max,s)}function ed(t,e,n,s){pr(t.x,e.x,n.x,s),pr(t.y,e.y,n.y,s)}function nd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const sd={duration:.45,ease:[.4,0,.1,1]},yr=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),gr=yr("applewebkit/")&&!yr("chrome/")?Math.round:at;function vr(t){t.min=gr(t.min),t.max=gr(t.max)}function id(t){vr(t.x),vr(t.y)}function Da(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ah(or(e),or(n),.2)}function rd(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const od=Ra({attachResizeListener:(t,e)=>le(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Mn={current:void 0},ka=Ra({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mn.current){const t=new od({});t.mount(window),t.setOptions({layoutScroll:!0}),Mn.current=t}return Mn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),La=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function ad(t=!0){const e=v.useContext(Cs);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=v.useId();v.useEffect(()=>{if(t)return i(o)},[t]);const r=v.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Ia=v.createContext({strict:!1}),xr={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"]};let Tr=!1;function cd(){if(Tr)return;const t={};for(const e in xr)t[e]={isEnabled:n=>xr[e].some(s=>!!n[s])};ua(t),Tr=!0}function Oa(){return cd(),Zf()}function ud(t){const e=Oa();for(const n in t)e[n]={...e[n],...t[n]};ua(e)}const ld=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","propagate","ignoreStrict","viewport"]);function Xe(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ld.has(t)}let Fa=t=>!Xe(t);function fd(t){typeof t=="function"&&(Fa=e=>e.startsWith("on")?!Xe(e):t(e))}try{fd(require("@emotion/is-prop-valid").default)}catch{}function hd(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||H(t[i])||(Fa(i)||n===!0&&Xe(i)||!e&&!Xe(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const hn=v.createContext({});function dd(t,e){if(fn(t)){const{initial:n,animate:s}=t;return{initial:n===!1||ue(n)?n:void 0,animate:ue(s)?s:void 0}}return t.inherit!==!1?e:{}}function md(t){const{initial:e,animate:n}=dd(t,v.useContext(hn));return v.useMemo(()=>({initial:e,animate:n}),[Sr(e),Sr(n)])}function Sr(t){return Array.isArray(t)?t.join(" "):t}const Zs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ba(t,e,n){for(const s in e)!H(e[s])&&!ya(s,n)&&(t[s]=e[s])}function pd({transformTemplate:t},e){return v.useMemo(()=>{const n=Zs();return Ys(n,e,t),Object.assign({},n.vars,n.style)},[e])}function yd(t,e){const n=t.style||{},s={};return Ba(s,n,t),Object.assign(s,pd(t,e)),s}function gd(t,e){const n={},s=yd(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const ja=()=>({...Zs(),attrs:{}});function vd(t,e,n,s){const i=v.useMemo(()=>{const o=ja();return ga(o,e,xa(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Ba(o,t.style,t),i.style={...o,...i.style}}return i}const xd=["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 Js(t){return typeof t!="string"||t.includes("-")?!1:!!(xd.indexOf(t)>-1||/[A-Z]/u.test(t))}function Td(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??Js(t)?vd:gd)(e,s,i,t),l=hd(e,typeof t=="string",o),u=t!==v.Fragment?{...l,...c,ref:n}:{},{children:f}=e,h=v.useMemo(()=>H(f)?f.get():f,[f]);return v.createElement(t,{...u,children:h})}function Sd({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:bd(n,s,i,t),renderState:e()}}function bd(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=Fe(o[h]);let{initial:r,animate:a}=t;const c=fn(t),l=aa(t);e&&l&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const f=u?a:r;if(f&&typeof f!="boolean"&&!ln(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=Us(t,h[d]);if(m){const{transitionEnd:p,transition:g,...y}=m;for(const x in y){let T=y[x];if(Array.isArray(T)){const S=u?T.length-1:0;T=T[S]}T!==null&&(i[x]=T)}for(const x in p)i[x]=p[x]}}}return i}const Na=t=>(e,n)=>{const s=v.useContext(hn),i=v.useContext(Cs),o=()=>Sd(t,e,s,i);return n?o():vu(o)},wd=Na({scrapeMotionValuesFromProps:qs,createRenderState:Zs}),Pd=Na({scrapeMotionValuesFromProps:Ta,createRenderState:ja}),Ad=Symbol.for("motionComponentSymbol");function Cd(t,e,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.useCallback(o=>{var a;o&&((a=t.onMount)==null||a.call(t,o));const r=s.current;if(typeof r=="function")if(o){const c=r(o);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const $a=v.createContext({});function jt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Ed(t,e,n,s,i,o){var T,S;const{visualElement:r}=v.useContext(hn),a=v.useContext(Ia),c=v.useContext(Cs),l=v.useContext(La),u=l.reducedMotion,f=l.skipAnimations,h=v.useRef(null),d=v.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:f,isSVG:o}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,p=v.useContext($a);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Md(h.current,n,i,p);const g=v.useRef(!1);v.useInsertionEffect(()=>{m&&g.current&&m.update(n,c)});const y=n[Xo],x=v.useRef(!!y&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return Tu(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),v.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,y)}),x.current=!1),m.enteringChildren=void 0)}),m}function Md(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ua(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&jt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ua(t){if(t)return t.options.allowProjection!==!1?t.projection:Ua(t.parent)}function Vn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&ud(s);const o=n?n==="svg":Js(t),r=o?Pd:wd;function a(l,u){let f;const h={...v.useContext(La),...l,layoutId:Vd(l)},{isStatic:d}=h,m=md(l),p=r(l,d);if(!d&&typeof window<"u"){Rd();const g=Dd(h);f=g.MeasureLayout,m.visualElement=Ed(t,p,h,i,g.ProjectionNode,o)}return In.jsxs(hn.Provider,{value:m,children:[f&&m.visualElement?In.jsx(f,{visualElement:m.visualElement,...h}):null,Td(t,l,Cd(p,m.visualElement,u),p,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=v.forwardRef(a);return c[Ad]=t,c}function Vd({layoutId:t}){const e=v.useContext(ro).id;return e&&t!==void 0?e+"-"+t:t}function Rd(t,e){v.useContext(Ia).strict}function Dd(t){const e=Oa(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function kd(t,e){if(typeof Proxy>"u")return Vn;const n=new Map,s=(o,r)=>Vn(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Vn(r,void 0,t,e)),n.get(r))})}const Ld=(t,e)=>e.isSVG??Js(t)?new mh(e):new ch(e,{allowProjection:t!==v.Fragment});class Id extends Vt{constructor(e){super(e),e.animationState||(e.animationState=xh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ln(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let Od=0;class Fd extends Vt{constructor(){super(...arguments),this.id=Od++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:a}=this.node.getProps();if(typeof r=="string"){const c=Bt(this.node,r,a);if(c){const{transition:l,transitionEnd:u,...f}=c;for(const h in f)(o=this.node.getValue(h))==null||o.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Bd={animation:{Feature:Id},exit:{Feature:Fd}};function pe(t){return{point:{x:t.pageX,y:t.pageY}}}const jd=t=>e=>zs(e)&&t(e,pe(e));function se(t,e,n,s){return le(t,e,jd(n),s)}const Wa=({current:t})=>t?t.ownerDocument.defaultView:null,br=(t,e)=>Math.abs(t-e);function Nd(t,e){const n=br(t.x,e.x),s=br(t.y,e.y);return Math.sqrt(n**2+s**2)}const wr=new Set(["auto","scroll"]);class Ka{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ce(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Rn(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Nd(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=d,{timestamp:y}=z;this.history.push({...g,timestamp:y});const{onStart:x,onMove:T}=this.handlers;m||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Ce(m,this.transformPagePoint),k.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Rn(d.type==="pointercancel"?this.lastMoveEventInfo:Ce(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,x),g&&g(d,x)},!zs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=pe(e),l=Ce(c,this.transformPagePoint),{point:u}=l,{timestamp:f}=z;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,Rn(l,this.history)),this.removeListeners=he(se(this.contextWindow,"pointermove",this.handlePointerMove),se(this.contextWindow,"pointerup",this.handlePointerUp),se(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(wr.has(s.overflowX)||wr.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),k.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Mt(this.updatePoint)}}function Ce(t,e){return e?{point:e(t.point)}:t}function Pr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Rn({point:t},e){return{point:t,delta:Pr(t,Ga(e)),offset:Pr(t,$d(e)),velocity:Ud(e,.1)}}function $d(t){return t[0]}function Ga(t){return t[t.length-1]}function Ud(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ga(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>st(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>st(e)*2&&(s=t[1]);const o=ot(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function Wd(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?I(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?I(n,t,s.max):Math.min(t,n)),t}function Ar(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Kd(t,{top:e,left:n,bottom:s,right:i}){return{x:Ar(t.x,n,i),y:Ar(t.y,e,s)}}function Cr(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Gd(t,e){return{x:Cr(t.x,e.x),y:Cr(t.y,e.y)}}function zd(t,e){let n=.5;const s=Z(t),i=Z(e);return i>s?n=ae(e.min,e.max-s,t.min):s>i&&(n=ae(t.min,t.max-i,e.min)),xt(0,1,n)}function _d(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const ds=.35;function Hd(t=ds){return t===!1?t=0:t===!0&&(t=ds),{x:Er(t,"left","right"),y:Er(t,"top","bottom")}}function Er(t,e,n){return{min:Mr(t,e),max:Mr(t,n)}}function Mr(t,e){return typeof t=="number"?t:t[e]||0}const Xd=new WeakMap;class Yd{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=U(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(pe(f).point),this.stopAnimation()},r=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ef(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dt(y=>{let x=this.getAxisMotionValue(y).get()||0;if(vt.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const S=T.layout.layoutBox[y];S&&(x=Z(S)*(parseFloat(x)/100))}}this.originPoint[y]=x}),p&&k.update(()=>p(f,h),!1,!0),is(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=Zd(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&k.update(()=>g(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ka(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Wa(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&k.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Ee(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=Wd(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var o;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;e&&jt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Kd(s.layoutBox,e):this.constraints=!1,this.elastic=Hd(n),i!==this.constraints&&!jt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&dt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=_d(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!jt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=nh(s,i.root,this.visualElement.getTransformPagePoint());let r=Gd(i.layout.layoutBox,o);if(n){const a=n(Qf(r));this.hasMutatedConstraints=!!a,a&&(r=fa(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=dt(u=>{if(!Ee(u,n,this.currentDirection))return;let f=c&&c[u]||{};(r===!0||r===u)&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return is(this.visualElement,e),s.start($s(e,s,0,n,this.visualElement,!1))}stopAnimation(){dt(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){dt(n=>{const{drag:s}=this.getProps();if(!Ee(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-I(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!jt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=zd({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),dt(r=>{if(!Ee(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(I(c,l,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Xd.set(this.visualElement,this);const e=this.visualElement.current,n=se(e,"pointerdown",l=>{const{drag:u,dragListener:f=!0}=this.getProps(),h=l.target,d=h!==e&&Lf(h);u&&f&&!d&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();jt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=qd(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),k.read(i);const a=le(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(dt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=ds,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Vr(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function qd(t,e,n){const s=ji(t,Vr(n)),i=ji(e,Vr(n));return()=>{s(),i()}}function Ee(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Zd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Jd extends Vt{constructor(e){super(e),this.removeGroupControls=at,this.removeListeners=at,this.controls=new Yd(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||at}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Dn=t=>(e,n)=>{t&&k.update(()=>t(e,n),!1,!0)};class Qd extends Vt{constructor(){super(...arguments),this.removePointerDownListener=at}onPointerDown(e){this.session=new Ka(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Wa(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Dn(e),onStart:Dn(n),onMove:Dn(s),onEnd:(o,r)=>{delete this.session,i&&k.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=se(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let kn=!1;class tm extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),kn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Be.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),kn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||k.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Gs.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;kn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function za(t){const[e,n]=ad(),s=v.useContext(ro);return In.jsx(tm,{...t,layoutGroup:s,switchLayoutGroup:v.useContext($a),isPresent:e,safeToRemove:n})}const em={pan:{Feature:Qd},drag:{Feature:Jd,ProjectionNode:ka,MeasureLayout:za}};function Rr(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&k.postRender(()=>o(e,pe(e)))}class nm extends Vt{mount(){const{current:e}=this.node;e&&(this.unmount=Vf(e,(n,s)=>(Rr(this.node,s,"Start"),i=>Rr(this.node,i,"End"))))}unmount(){}}class sm extends Vt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=he(le(this.node.current,"focus",()=>this.onFocus()),le(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dr(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&k.postRender(()=>o(e,pe(e)))}class im extends Vt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Of(e,(i,o)=>(Dr(this.node,o,"Start"),(r,{success:a})=>Dr(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const ms=new WeakMap,Ln=new WeakMap,rm=t=>{const e=ms.get(t.target);e&&e(t)},om=t=>{t.forEach(rm)};function am({root:t,...e}){const n=t||document;Ln.has(n)||Ln.set(n,{});const s=Ln.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(om,{root:t,...e})),s[i]}function cm(t,e,n){const s=am(e);return ms.set(t,n),s.observe(t),()=>{ms.delete(t),s.unobserve(t)}}const um={some:0,all:1};class lm extends Vt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var c;(c=this.stopObserver)==null||c.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:um[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),d=u?f:h;d&&d(l)};this.stopObserver=cm(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(fm(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function fm({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hm={inView:{Feature:lm},tap:{Feature:im},focus:{Feature:sm},hover:{Feature:nm}},dm={layout:{ProjectionNode:ka,MeasureLayout:za}},mm={...Bd,...hm,...em,...dm},Em=kd(mm,Ld);export{du as C,Tm as G,wm as M,Ne as T,Pm as a,Am as b,vm as c,Bc as d,xm as e,Em as f,xs as g,Sm as m,Ur as r,Qt as s,bm as u};
|