PageSourceSearch

https://homeceo.ai/assets/vendor-ui-DWksU_uq.js

js homeceo.ai collected 2026-10-05 14:35:56 UTC 171,326 bytes, 11 lines download raw bytes

vendor: 4,588 bytes, line 1
1function Mc(t,e){for(var n=0;n<e.length;n++){const s=e[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Dc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vn={exports:{}},ae={},Mn={exports:{}},j={};var Si;function kc(){if(Si)return j;Si=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),f=Symbol.iterator;function h(p){return p===null||typeof p!="object"?null:(p=f&&p[f]||p["@@iterator"],typeof p=="function"?p:null)}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(p,w,D){this.props=p,this.context=w,this.refs=y,this.updater=D||d}v.prototype.isReactComponent={},v.prototype.setState=function(p,w){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,w,"setState")},v.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function x(){}x.prototype=v.prototype;function g(p,w,D){this.props=p,this.context=w,this.refs=y,this.updater=D||d}var S=g.prototype=new x;S.constructor=g,m(S,v.prototype),S.isPureReactComponent=!0;var b=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function T(p,w,D){var L,k={},U=null,_=null;if(w!=null)for(L in w.ref!==void 0&&(_=w.ref),w.key!==void 0&&(U=""+w.key),w)A.call(w,L)&&!R.hasOwnProperty(L)&&(k[L]=w[L]);var Y=arguments.length-2;if(Y===1)k.children=D;else if(1<Y){for(var z=Array(Y),tt=0;tt<Y;tt++)z[tt]=arguments[tt+2];k.children=z}if(p&&p.defaultProps)for(L in Y=p.defaultProps,Y)k[L]===void 0&&(k[L]=Y[L]);return{$$typeof:t,type:p,key:U,ref:_,props:k,_owner:V.current}}function M(p,w){return{$$typeof:t,type:p.type,key:w,ref:p.ref,props:p.props,_owner:p._owner}}function E(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function O(p){var w={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(D){return w[D]})}var $=/\/+/g;function N(p,w){return typeof p=="object"&&p!==null&&p.key!=null?O(""+p.key):w.toString(36)}function K(p,w,D,L,k){var U=typeof p;(U==="undefined"||U==="boolean")&&(p=null);var _=!1;if(p===null)_=!0;else switch(U){case"string":case"number":_=!0;break;case"object":switch(p.$$typeof){case t:case e:_=!0}}if(_)return _=p,k=k(_),p=L===""?"."+N(_,0):L,b(k)?(D="",p!=null&&(D=p.replace($,"$&/")+"/"),K(k,w,D,"",function(tt){return tt})):k!=null&&(E(k)&&(k=M(k,D+(!k.key||_&&_.key===k.key?"":(""+k.key).replace($,"$&/")+"/")+p)),w.push(k)),1;if(_=0,L=L===""?".":L+":",b(p))for(var Y=0;Y<p.length;Y++){U=p[Y];var z=L+N(U,Y);_+=K(U,w,D,z,k)}else if(z=h(p),typeof z=="function")for(p=z.call(p),Y=0;!(U=p.next()).done;)U=U.value,z=L+N(U,Y++),_+=K(U,w,D,z,k);else if(U==="object")throw w=String(p),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.");return _}function J(p,w,D){if(p==null)return p;var L=[],k=0;return K(p,L,"","",function(U){return w.call(D,U,k++)}),L}function ot(p){if(p._status===-1){var w=p._result;w=w(),w.then(function(D){(p._status===0||p._status===-1)&&(p._status=1,p._result=D)},function(D){(p._status===0||p._status===-1)&&(p._status=2,p._result=D)}),p._status===-1&&(p._status=0,p._result=w)}if(p._status===1)return p._result.default;throw p._result}var Q={current:null},W={transition:null},X={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:W,ReactCurrentOwner:V};function q(){throw Error("act(...) is not supported in production builds of React.")}return j.Children={map:J,forEach:function(p,w,D){J(p,function(){w.apply(this,arguments)},D)},count:function(p){var w=0;return J(p,function(){w++}),w},toArray:function(p){return J(p,function(w){return w})||[]},only:function(p){if(!E(p))throw Error("React.Children.only expected to receive a single React element child.");return p}}
vendor: 7,714 bytes, line 1
1,j.Component=v,j.Fragment=n,j.Profiler=i,j.PureComponent=g,j.StrictMode=s,j.Suspense=c,j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,j.act=q,j.cloneElement=function(p,w,D){if(p==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+p+".");var L=m({},p.props),k=p.key,U=p.ref,_=p._owner;if(w!=null){if(w.ref!==void 0&&(U=w.ref,_=V.current),w.key!==void 0&&(k=""+w.key),p.type&&p.type.defaultProps)var Y=p.type.defaultProps;for(z in w)A.call(w,z)&&!R.hasOwnProperty(z)&&(L[z]=w[z]===void 0&&Y!==void 0?Y[z]:w[z])}var z=arguments.length-2;if(z===1)L.children=D;else if(1<z){Y=Array(z);for(var tt=0;tt<z;tt++)Y[tt]=arguments[tt+2];L.children=Y}return{$$typeof:t,type:p.type,key:k,ref:U,props:L,_owner:_}},j.createContext=function(p){return p={$$typeof:r,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},p.Provider={$$typeof:o,_context:p},p.Consumer=p},j.createElement=T,j.createFactory=function(p){var w=T.bind(null,p);return w.type=p,w},j.createRef=function(){return{current:null}},j.forwardRef=function(p){return{$$typeof:a,render:p}},j.isValidElement=E,j.lazy=function(p){return{$$typeof:l,_payload:{_status:-1,_result:p},_init:ot}},j.memo=function(p,w){return{$$typeof:u,type:p,compare:w===void 0?null:w}},j.startTransition=function(p){var w=W.transition;W.transition={};try{p()}finally{W.transition=w}},j.unstable_act=q,j.useCallback=function(p,w){return Q.current.useCallback(p,w)},j.useContext=function(p){return Q.current.useContext(p)},j.useDebugValue=function(){},j.useDeferredValue=function(p){return Q.current.useDeferredValue(p)},j.useEffect=function(p,w){return Q.current.useEffect(p,w)},j.useId=function(){return Q.current.useId()},j.useImperativeHandle=function(p,w,D){return Q.current.useImperativeHandle(p,w,D)},j.useInsertionEffect=function(p,w){return Q.current.useInsertionEffect(p,w)},j.useLayoutEffect=function(p,w){return Q.current.useLayoutEffect(p,w)},j.useMemo=function(p,w){return Q.current.useMemo(p,w)},j.useReducer=function(p,w,D){return Q.current.useReducer(p,w,D)},j.useRef=function(p){return Q.current.useRef(p)},j.useState=function(p){return Q.current.useState(p)},j.useSyncExternalStore=function(p,w,D){return Q.current.useSyncExternalStore(p,w,D)},j.useTransition=function(){return Q.current.useTransition()},j.version="18.3.1",j}var bi;function uo(){return bi||(bi=1,Mn.exports=kc()),Mn.exports}var Ti;function Lc(){if(Ti)return ae;Ti=1;var t=uo(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function r(a,c,u){var l,f={},h=null,d=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(d=c.ref);for(l in c)s.call(c,l)&&!o.hasOwnProperty(l)&&(f[l]=c[l]);if(a&&a.defaultProps)for(l in c=a.defaultProps,c)f[l]===void 0&&(f[l]=c[l]);return{$$typeof:e,type:a,key:h,ref:d,props:f,_owner:i.current}}return ae.Fragment=n,ae.jsx=r,ae.jsxs=r,ae}var Pi;function Ic(){return Pi||(Pi=1,Vn.exports=Lc()),Vn.exports}var Et=Ic(),P=uo();const ft=Dc(P),um=Mc({__proto__:null,default:ft},[P]);var G="-ms-",me="-moz-",B="-webkit-",fo="comm",yn="rule",Ls="decl",Oc="@import",jc="@namespace",ho="@keyframes",Fc="@layer",po=Math.abs,Is=String.fromCharCode,ts=Object.assign;function Bc(t,e){return it(t,0)^45?(((e<<2^it(t,0))<<2^it(t,1))<<2^it(t,2))<<2^it(t,3):0}function mo(t){return t.trim()}function Ct(t,e){return(t=e.exec(t))?t[0]:t}function I(t,e,n){return t.replace(e,n)}function Ue(t,e,n){return t.indexOf(e,n)}function it(t,e){return t.charCodeAt(e)|0}function zt(t,e,n){return t.slice(e,n)}function vt(t){return t.length}function go(t){return t.length}function ue(t,e){return e.push(t),t}function Nc(t,e){return t.map(e).join("")}function Ai(t,e){return t.filter(function(n){return!Ct(n,e)})}var vn=1,Jt=1,yo=0,pt=0,nt=0,se="";function xn(t,e,n,s,i,o,r,a){return{value:t,root:e,parent:n,type:s,props:i,children:o,line:vn,column:Jt,length:r,return:"",siblings:a}}function Rt(t,e){return ts(xn("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function Gt(t){for(;t.root;)t=Rt(t.root,{children:[t]});ue(t,t.siblings)}function _c(){return nt}function $c(){return nt=pt>0?it(se,--pt):0,Jt--,nt===10&&(Jt=1,vn--),nt}function wt(){return nt=pt<yo?it(se,pt++):0,Jt++,nt===10&&(Jt=1,vn++),nt}function Mt(){return it(se,pt)}function ze(){return pt}function wn(t,e){return zt(se,t,e)}function Te(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 Wc(t){return vn=Jt=1,yo=vt(se=t),pt=0,[]}function Uc(t){return se="",t}function Dn(t){return mo(wn(pt-1,es(t===91?t+2:t===40?t+1:t)))}function zc(t){for(;(nt=Mt())&&nt<33;)wt();return Te(t)>2||Te(nt)>3?"":" "}function Gc(t,e){for(;--e&&wt()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return wn(t,ze()+(e<6&&Mt()==32&&wt()==32))}function es(t){for(;wt();)switch(nt){case t:return pt;case 34:case 39:t!==34&&t!==39&&es(nt);break;case 40:t===41&&es(t);break;case 92:wt();break}return pt}function Hc(t,e){for(;wt()&&t+nt!==57;)if(t+nt===84&&Mt()===47)break;return"/*"+wn(e,pt-1)+"*"+Is(t===47?t:wt())}function Kc(t){for(;!Te(Mt());)wt();return wn(t,pt)}function Yc(t){return Uc(Ge("",null,null,null,[""],t=Wc(t),0,[0],t))}function Ge(t,e,n,s,i,o,r,a,c){for(var u=0,l=0,f=r,h=0,d=0,m=0,y=1,v=1,x=1,g=0,S="",b=i,A=o,V=s,R=S;v;)switch(m=g,g=wt()){case 40:if(m!=108&&it(R,f-1)==58){Ue(R+=I(Dn(g),"&","&\f"),"&\f",po(u?a[u-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:R+=Dn(g);break;case 9:case 10:case 13:case 32:R+=zc(m);break;case 92:R+=Gc(ze()-1,7);continue;case 47:switch(Mt()){case 42:case 47:ue(Xc(Hc(wt(),ze()),e,n,c),c),(Te(m||1)==5||Te(Mt()||1)==5)&&vt(R)&&zt(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*y:a[u++]=vt(R)*x;case 125*y:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+l:x==-1&&(R=I(R,/\f/g,"")),d>0&&(vt(R)-f||y===0&&m===47)&&ue(d>32?Ei(R+";",s,n,f-1,c):Ei(I(R," ","")+";",s,n,f-2,c),c);break;case 59:R+=";";default:if(ue(V=Ci(R,e,n,u,l,i,a,S,b=[],A=[],f,o),o),g===123)if(l===0)Ge(R,e,V,V,b,o,f,a,A);else{switch(h){case 99:if(it(R,3)===110)break;case 108:if(it(R,2)===97)break;default:l=0;case 100:case 109:case 115:}l?Ge(t,V,V,s&&ue(Ci(t,V,V,0,0,i,a,S,i,b=[],f,A),A),i,A,f,a,s?b:A):Ge(R,V,V,V,[""],A,0,a,A)}}u=l=d=0,y=x=1,S=R="",f=r;break;case 58:f=1+vt(R),d=m;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&$c()==125)continue}switch(R+=Is(g),g*y){case 38:x=l>0?1:(R+="\f",-1);break;case 44:a[u++]=(vt(R)-1)*x,x=1;break;case 64:Mt()===45&&(R+=Dn(wt())),h=Mt(),l=f=vt(S=R+=Kc(ze())),g++;break;case 45:m===45&&vt(R)==2&&(y=0)}}return o}function Ci(t,e,n,s,i,o,r,a,c,u,l,f){for(var h=i-1,d=i===0?o:[""],m=go(d),y=0,v=0,x=0;y<s;++y)for(var g=0,S=zt(t,h+1,h=po(v=r[y])),b=t;g<m;++g)(b=mo(v>0?d[g]+" "+S:I(S,/&\f/g,d[g])))&&(c[x++]=b);return xn(t,e,n,i===0?yn:a,c,u,l,f)}function Xc(t,e,n,s){return xn(t,e,n,fo,Is(_c()),zt(t,2,-2),0,s)}function Ei(t,e,n,s,i){return xn(t,e,n,Ls,zt(t,0,s),zt(t,s+1,-1),s,i)}function vo(t,e,n){switch(Bc(t,e)){case 5103:return B+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return B+t+t;case 4855:return B+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return me+t+t;
1case 5349:case 4246:case 4810:case 6968:case 2756:return B+t+me+t+G+t+t;case 5936:switch(it(t,e+11)){case 114:return B+t+G+I(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return B+t+G+I(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return B+t+G+I(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return B+t+G+t+t;case 6165:return B+t+G+"flex-"+t+t;case 5187:return B+t+I(t,/(\w+).+(:[^]+)/,B+"box-$1$2"+G+"flex-$1$2")+t;case 5443:return B+t+G+"flex-item-"+I(t,/flex-|-self/g,"")+(Ct(t,/flex-|baseline/)?"":G+"grid-row-"+I(t,/flex-|-self/g,""))+t;case 4675:return B+t+G+"flex-line-pack"+I(t,/align-content|flex-|-self/g,"")+t;case 5548:return B+t+G+I(t,"shrink","negative")+t;case 5292:return B+t+G+I(t,"basis","preferred-size")+t;case 6060:return B+"box-"+I(t,"-grow","")+B+t+G+I(t,"grow","positive")+t;case 4554:return B+I(t,/([^-])(transform)/g,"$1"+B+"$2")+t;case 6187:return I(I(I(t,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),t,"")+t;case 5495:case 3959:return I(t,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return I(I(t,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+G+"flex-pack:$3"),/space-between/,"justify")+B+t+t;case 4200:if(!Ct(t,/flex-|baseline/))return G+"grid-column-align"+zt(t,e)+t;break;case 2592:case 3360:return G+I(t,"template-","")+t;case 4384:case 3616:return n&&n.some(function(s,i){return e=i,Ct(s.props,/grid-\w+-end/)})?~Ue(t+(n=n[e].value),"span",0)?t:G+I(t,"-start","")+t+G+"grid-row-span:"+(~Ue(n,"span",0)?Ct(n,/\d+/):+Ct(n,/\d+/)-+Ct(t,/\d+/))+";":G+I(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(s){return Ct(s.props,/grid-\w+-start/)})?t:G+I(I(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return I(t,/(.+)-inline(.+)/,B+"$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(vt(t)-1-e>6)switch(it(t,e+1)){case 109:if(it(t,e+4)!==45)break;case 102:return I(t,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+me+(it(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ue(t,"stretch",0)?vo(I(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return I(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(s,i,o,r,a,c,u){return G+i+":"+o+u+(r?G+i+"-span:"+(a?c:+c-+o)+u:"")+t});case 4949:if(it(t,e+6)===121)return I(t,":",":"+B)+t;break;case 6444:switch(it(t,it(t,14)===45?18:11)){case 120:return I(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+B+(it(t,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+G+"$2box$3")+t;case 100:return I(t,":",":"+G)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return I(t,"scroll-","scroll-snap-")+t}return t}function nn(t,e){for(var n="",s=0;s<t.length;s++)n+=e(t[s],s,t,e)||"";return n}function qc(t,e,n,s){switch(t.type){case Fc:if(t.children.length)break;case Oc:case jc:case Ls:return t.return=t.return||t.value;case fo:return"";case ho:return t.return=t.value+"{"+nn(t.children,s)+"}";case yn:if(!vt(t.value=t.props.join(",")))return""}return vt(n=nn(t.children,s))?t.return=t.value+"{"+n+"}":""}function Zc(t){var e=go(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 Jc(t){return function(e){e.root||(e=e.return)&&t(e)}}function Qc(t,e,n,s){if(t.length>-1&&!t.return)switch(t.type){case Ls:t.return=vo(t.value,t.length,n);return;case ho:return nn([Rt(t,{value:I(t.value,"@","@"+B)})],s);case yn:if(t.length)return Nc(n=t.props,function(i){switch(Ct(i,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gt(Rt(t,{props:[I(i,/:(read-\w+)/,":"+me+"$1")]})),Gt(Rt(t,{props:[i]})),ts(t,{props:Ai(n,s)});break;case"::placeholder":Gt(Rt(t,{props:[I(i,/:(plac\w+)/,":"+B+"input-$1")]})),Gt(Rt(t,{props:[I(i,/:(plac\w+)/,":"+me+"$1")]})),Gt(Rt(t,{props:[I(i,/:(plac\w+)/,G+"input-$1")]})),Gt(Rt(t,{props:[i]})),ts(t,{props:Ai(n,s)});break}return""})}}var Zt={},kn,Ln;const Qt=typeof process<"u"&&Zt!==void 0&&(Zt.REACT_APP_SC_ATTR||Zt.SC_ATTR)||"data-styled",xo="active",wo="data-styled-version",Sn="6.4.1",Os=`/*!sc*/
2`,ge=typeof window<"u"&&typeof document<"u";function Ri(t){if(typeof process<"u"&&Zt!==void 0){const e=Zt[t];if(e!==void 0&&e!=="")return e!=="false"}}const tl=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:(Ln=(kn=Ri("REACT_APP_SC_DISABLE_SPEEDY"))!==null&&kn!==void 0?kn:Ri("SC_DISABLE_SPEEDY"))!==null&&Ln!==void 0?Ln:typeof process>"u"||Zt===void 0),So="sc-keyframes-",el={};function Ve(t,...e){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${t} for more information.${e.length>0?` Args: ${e.join(", ")}`:""}`)}let He=new Map,sn=new Map,Ke=1;const fe=t=>{if(He.has(t))return He.get(t);for(;sn.has(Ke);)Ke++;const e=Ke++;return He.set(t,e),sn.set(e,t),e},nl=t=>sn.get(t),sl=(t,e)=>{Ke=e+1,He.set(t,e),sn.set(e,t)},js=Object.freeze([]),te=Object.freeze({});function bo(t,e,n=te){return t.theme!==n.theme&&t.theme||e||n.theme}const il=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rl=/(^-|-$)/g;function To(t){return t.replace(il,"-").replace(rl,"")}const ol=/(a)(d)/gi,Vi=t=>String.fromCharCode(t+(t>25?39:97));function Fs(t){let e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Vi(e%52)+n;return(Vi(e%52)+n).replace(ol,"$1-$2")}const ns=5381,$t=(t,e)=>{let n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t},Po=t=>$t(ns,t);function Bs(t){return Fs(Po(t)>>>0)}function al(t){return t.displayName||t.name||"Component"}function ss(t){return typeof t=="string"&&!0}function cl(t){return ss(t)?`styled.${t}`:`Styled(${al(t)})`}const Ao=Symbol.for("react.memo"),ll=Symbol.for("react.forward_ref"),ul={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},fl={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Co={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0}
vendor: 8,635 bytes, line 2
2,hl={[ll]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Ao]:Co};function Mi(t){return("type"in(e=t)&&e.type.$$typeof)===Ao?Co:"$$typeof"in t?hl[t.$$typeof]:ul;var e}const dl=Object.defineProperty,pl=Object.getOwnPropertyNames,ml=Object.getOwnPropertySymbols,gl=Object.getOwnPropertyDescriptor,yl=Object.getPrototypeOf,vl=Object.prototype;function Eo(t,e,n){if(typeof e!="string"){const s=yl(e);s&&s!==vl&&Eo(t,s,n);const i=pl(e).concat(ml(e)),o=Mi(t),r=Mi(e);for(let a=0;a<i.length;++a){const c=i[a];if(!(c in fl||n&&n[c]||r&&c in r||o&&c in o)){const u=gl(e,c);try{dl(t,c,u)}catch{}}}}return t}function Me(t){return typeof t=="function"}function Ns(t){return typeof t=="object"&&"styledComponentId"in t}function he(t,e){return t&&e?t+" "+e:t||e||""}function rn(t,e){return t.join("")}function Pe(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function is(t,e,n=!1){if(!n&&!Pe(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(let s=0;s<e.length;s++)t[s]=is(t[s],e[s]);else if(Pe(e))for(const s in e)t[s]=is(t[s],e[s]);return t}function _s(t,e){Object.defineProperty(t,"toString",{value:e})}const xl=class{constructor(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t,this._cGroup=0,this._cIndex=0}indexOfGroup(t){if(t===this._cGroup)return this._cIndex;let e=this._cIndex;if(t>this._cGroup)for(let n=this._cGroup;n<t;n++)e+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=t;n--)e-=this.groupSizes[n];return this._cGroup=t,this._cIndex=e,e}insertRules(t,e){if(t>=this.groupSizes.length){const i=this.groupSizes,o=i.length;let r=o;for(;t>=r;)if(r<<=1,r<0)throw Ve(16,`${t}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(i),this.length=r;for(let a=o;a<r;a++)this.groupSizes[a]=0}let n=this.indexOfGroup(t+1),s=0;for(let i=0,o=e.length;i<o;i++)this.tag.insertRule(n,e[i])&&(this.groupSizes[t]++,n++,s++);s>0&&this._cGroup>t&&(this._cIndex+=s)}clearGroup(t){if(t<this.length){const e=this.groupSizes[t],n=this.indexOfGroup(t),s=n+e;this.groupSizes[t]=0;for(let i=n;i<s;i++)this.tag.deleteRule(n);e>0&&this._cGroup>t&&(this._cIndex-=e)}}getGroup(t){let e="";if(t>=this.length||this.groupSizes[t]===0)return e;const n=this.groupSizes[t],s=this.indexOfGroup(t),i=s+n;for(let o=s;o<i;o++)e+=this.tag.getRule(o)+Os;return e}},wl=`style[${Qt}][${wo}="${Sn}"]`,Sl=new RegExp(`^${Qt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Di=t=>typeof ShadowRoot<"u"&&t instanceof ShadowRoot||"host"in t&&t.nodeType===11,rs=t=>{if(!t)return document;if(Di(t))return t;if("getRootNode"in t){const e=t.getRootNode();if(Di(e))return e}return document},bl=(t,e,n)=>{const s=n.split(",");let i;for(let o=0,r=s.length;o<r;o++)(i=s[o])&&t.registerName(e,i)},Tl=(t,e)=>{var n;const s=((n=e.textContent)!==null&&n!==void 0?n:"").split(Os),i=[];for(let o=0,r=s.length;o<r;o++){const a=s[o].trim();if(!a)continue;const c=a.match(Sl);if(c){const u=0|parseInt(c[1],10),l=c[2];u!==0&&(sl(l,u),bl(t,l,c[3]),t.getTag().insertRules(u,i)),i.length=0}else i.push(a)}},In=t=>{const e=rs(t.options.target).querySelectorAll(wl);for(let n=0,s=e.length;n<s;n++){const i=e[n];i&&i.getAttribute(Qt)!==xo&&(Tl(t,i),i.parentNode&&i.parentNode.removeChild(i))}};let ce=!1;function Pl(){if(ce!==!1)return ce;if(typeof document<"u"){const t=document.head.querySelector('meta[property="csp-nonce"]');if(t)return ce=t.nonce||t.getAttribute("content")||void 0;const e=document.head.querySelector('meta[name="sc-nonce"]');if(e)return ce=e.getAttribute("content")||void 0}return ce=typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}const Ro=(t,e)=>{const n=document.head,s=t||n,i=document.createElement("style"),o=(c=>{const u=Array.from(c.querySelectorAll(`style[${Qt}]`));return u[u.length-1]})(s),r=o!==void 0?o.nextSibling:null;i.setAttribute(Qt,xo),i.setAttribute(wo,Sn);const a=e||Pl();return a&&i.setAttribute("nonce",a),s.insertBefore(i,r),i},Al=class{constructor(t,e){this.element=Ro(t,e),this.element.appendChild(document.createTextNode("")),this.sheet=(n=>{var s;if(n.sheet)return n.sheet;const i=(s=n.getRootNode().styleSheets)!==null&&s!==void 0?s:document.styleSheets;for(let o=0,r=i.length;o<r;o++){const a=i[o];if(a.ownerNode===n)return a}throw Ve(17)})(this.element),this.length=0}insertRule(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch{return!1}}deleteRule(t){this.sheet.deleteRule(t),this.length--}getRule(t){const e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""}},Cl=class{constructor(t,e){this.element=Ro(t,e),this.nodes=this.element.childNodes,this.length=0}insertRule(t,e){if(t<=this.length&&t>=0){const n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1}deleteRule(t){this.element.removeChild(this.nodes[t]),this.length--}getRule(t){return t<this.length?this.nodes[t].textContent:""}};let ki=ge;const El={isServer:!ge,useCSSOMInjection:!tl};class De{static registerId(e){return fe(e)}constructor(e=te,n={},s){this.options=Object.assign(Object.assign({},El),e),this.gs=n,this.keyframeIds=new Set,this.names=new Map(s),this.server=!!e.isServer,!this.server&&ge&&ki&&(ki=!1,In(this)),_s(this,()=>(i=>{const o=i.getTag(),{length:r}=o;let a="";for(let c=0;c<r;c++){const u=nl(c);if(u===void 0)continue;const l=i.names.get(u);if(l===void 0||!l.size)continue;const f=o.getGroup(c);if(f.length===0)continue;const h=Qt+".g"+c+'[id="'+u+'"]';let d="";for(const m of l)m.length>0&&(d+=m+",");a+=f+h+'{content:"'+d+'"}'+Os}return a})(this))}rehydrate(){!this.server&&ge&&In(this)}reconstructWithOptions(e,n=!0){const s=new De(Object.assign(Object.assign({},this.options),e),this.gs,n&&this.names||void 0);return s.keyframeIds=new Set(this.keyframeIds),!this.server&&ge&&e.target!==this.options.target&&rs(this.options.target)!==rs(e.target)&&In(s),s}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:n,target:s,nonce:i})=>n?new Al(s,i):new Cl(s,i))(this.options),new xl(e)));var e}hasNameForId(e,n){var s,i;return(i=(s=this.names.get(e))===null||s===void 0?void 0:s.has(n))!==null&&i!==void 0&&i}registerName(e,n){fe(e),e.startsWith(So)&&this.keyframeIds.add(e);const s=this.names.get(e);s?s.add(n):this.names.set(e,new Set([n]))}insertRules(e,n,s){this.registerName(e,n),this.getTag().insertRules(fe(e),s)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(fe(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Vo=new WeakSet,Rl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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};function Vl(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e!="number"||e===0||t in Rl||t.startsWith("--")?String(e).trim():e+"px"}const Bt=47;function Li(t){if(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return t;let e="";for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e+=s>=65&&s<=90?"-"+String.fromCharCode(s+32):t[n]}return e.startsWith("ms-")?"-"+e:e}const Mo=Symbol.for("sc-keyframes");function Ml(t){return typeof t=="object"&&t!==null&&Mo in t}function Do(t){return Me(t)&&!(t.prototype&&t.prototype.isReactComponent)}const ko=t=>t==null||t===!1||t==="",Dl=Symbol.for("react.client.reference");function Ii(t){return t.$$typeof===Dl}function Lo(t,e){for(const n in t){const s=t[n];t.hasOwnProperty(n)&&!ko(s)&&(Array.isArray(s)&&Vo.has(s)||Me(s)?e.push(Li(n)+":",s,";"):Pe(s)?(e.push(n+" {"),Lo(s,e),e.push("}")):e.push(Li(n)+": "+Vl(n,s)+";"))}}function kt(t,e,n,s,i=[]){if(ko(t))return i;const o=typeof t;if(o==="string")return i.push(t),i;if(o==="function"){if(Ii(t))return i;if(Do(t)&&e){const r=t(e);return kt(r,e,n,s,i)}return i.push(t),i}if(Array.isArray(t)){for(let r=0;r<t.length;r++)kt(t[r],e,n,s,i);return i}return Ns(t)?(i.push(`.${t.styledComponentId}`),i):Ml(t)?(n?(t.inject(n,s),i.push(t.getName(s))):i.push(t),i):Ii(t)?i:Pe(t)?(Lo(t,i),i):(i.push(t.toString()),i)}const kl=Po(Sn);class Ll{constructor(e,n,s){this.rules=e,this.componentId=n,this.baseHash=$t(kl,n),this.baseStyle=s,De.registerId(n)}generateAndInjectStyles(e,n,s){let i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,n,s):"";{let o="";for(let r=0;r<this.rules.length;r++){const a=this.rules[r];
2if(typeof a=="string")o+=a;else if(a)if(Do(a)){const c=a(e);typeof c=="string"?o+=c:c!=null&&c!==!1&&(o+=rn(kt(c,e,n,s)))}else o+=rn(kt(a,e,n,s))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const r=s.hash?s.hash+o:o;let a=this.dynamicNameCache.get(r);if(!a){if(a=Fs($t($t(this.baseHash,s.hash),o)>>>0),this.dynamicNameCache.size>=200){const c=this.dynamicNameCache.keys().next().value;c!==void 0&&this.dynamicNameCache.delete(c)}this.dynamicNameCache.set(r,a)}if(!n.hasNameForId(this.componentId,a)){const c=s(o,"."+a,void 0,this.componentId);n.insertRules(this.componentId,a,c)}i=he(i,a)}}return i}}const Il=/&/g;function Io(t,e){let n=0;for(;--e>=0&&t.charCodeAt(e)===92;)n++;return!(1&~n)}function On(t){const e=t.length;let n="",s=0,i=0,o=0,r=!1,a=!1;for(let c=0;c<e;c++){const u=t.charCodeAt(c);if(o!==0||r||u!==Bt||t.charCodeAt(c+1)!==42)if(r)u===42&&t.charCodeAt(c+1)===Bt&&(r=!1,c++);else if(u!==34&&u!==39||Io(t,c)){if(o===0)if(u===123)i++;else if(u===125){if(i--,i<0){a=!0;let l=c+1;for(;l<e;){const f=t.charCodeAt(l);if(f===59||f===10)break;l++}l<e&&t.charCodeAt(l)===59&&l++,i=0,c=l-1,s=l;continue}i===0&&(n+=t.substring(s,c+1),s=c+1)}else u===59&&i===0&&(n+=t.substring(s,c+1),s=c+1)}else o===0?o=u:o===u&&(o=0);else r=!0,c++}return a||i!==0||o!==0?(s<e&&i===0&&o===0&&(n+=t.substring(s)),n):t}function Oo(t,e){const n=e+" ",s=","+n;for(let i=0;i<t.length;i++){const o=t[i];if(o.type==="rule"){o.value=(n+o.value).replaceAll(",",s);const r=o.props,a=[];for(let c=0;c<r.length;c++)a[c]=n+r[c];o.props=a}Array.isArray(o.children)&&o.type!=="@keyframes"&&Oo(o.children,e)}return t}function Ol({options:t=te,plugins:e=js}=te){let n,s,i;const o=(h,d,m)=>m.startsWith(s)&&m.endsWith(s)&&m.replaceAll(s,"").length>0?`.${n}`:h,r=e.slice();r.push(h=>{h.type===yn&&h.value.includes("&")&&(i||(i=new RegExp(`\\${s}\\b`,"g")),h.props[0]=h.props[0].replace(Il,s).replace(i,o))}),t.prefix&&r.push(Qc),r.push(qc);let a=[];const c=Zc(r.concat(Jc(h=>a.push(h)))),u=(h,d="",m="",y="&")=>{n=y,s=d,i=void 0;const v=(function(g){const S=g.indexOf("//")!==-1,b=g.indexOf("}")!==-1;if(!S&&!b)return g;if(!S)return On(g);const A=g.length;let V="",R=0,T=0,M=0,E=0,O=0,$=!1;for(;T<A;){const N=g.charCodeAt(T);if(N!==34&&N!==39||Io(g,T))if(M===0)if(N===Bt&&T+1<A&&g.charCodeAt(T+1)===42){for(T+=2;T+1<A&&(g.charCodeAt(T)!==42||g.charCodeAt(T+1)!==Bt);)T++;T+=2}else if(N!==40)if(N!==41)if(E>0)T++;else if(N===42&&T+1<A&&g.charCodeAt(T+1)===Bt)V+=g.substring(R,T),T+=2,R=T,$=!0;else if(N===Bt&&T+1<A&&g.charCodeAt(T+1)===Bt){for(V+=g.substring(R,T);T<A&&g.charCodeAt(T)!==10;)T++;R=T,$=!0}else N===123?O++:N===125&&O--,T++;else E>0&&E--,T++;else E++,T++;else T++;else M===0?M=N:M===N&&(M=0),T++}return $?(R<A&&(V+=g.substring(R)),O===0?V:On(V)):O===0?g:On(g)})(h);let x=Yc(m||d?m+" "+d+" { "+v+" }":v);return t.namespace&&(x=Oo(x,t.namespace)),a=[],nn(x,c),a},l=t;let f=ns;for(let h=0;h<e.length;h++)e[h].name||Ve(15),f=$t(f,e[h].name);return l?.namespace&&(f=$t(f,l.namespace)),l?.prefix&&(f=$t(f,"p")),u.hash=f!==ns?f.toString():"",u}const jl=new De,os=Ol(),jo=ft.createContext({shouldForwardProp:void 0,styleSheet:jl,stylis:os,stylisPlugins:void 0});jo.Consumer;function Fo(){return ft.useContext(jo)}const $s=ft.createContext(void 0);$s.Consumer;const Oi=Object.prototype.hasOwnProperty,jn={};function Fl(t,e){const n=typeof t!="string"?"sc":To(t);jn[n]=(jn[n]||0)+1;const s=n+"-"+Bs(Sn+n+jn[n]);return e?e+"-"+s:s}function Bl(t,e,n){const s=Ns(t),i=t,o=!ss(t),{attrs:r=js,componentId:a=Fl(e.displayName,e.parentComponentId),displayName:c=cl(t)}=e,u=e.displayName&&e.componentId?To(e.displayName)+"-"+e.componentId:e.componentId||a,l=s&&i.attrs?i.attrs.concat(r).filter(Boolean):r;let{shouldForwardProp:f}=e;if(s&&i.shouldForwardProp){const y=i.shouldForwardProp;if(e.shouldForwardProp){const v=e.shouldForwardProp;f=(x,g)=>y(x,g)&&v(x,g)}else f=y}const h=new Ll(n,u,s?i.componentStyle:void 0);function d(y,v){return(function(x,g,S){const{attrs:b,componentStyle:A,defaultProps:V,foldedComponentIds:R,styledComponentId:T,target:M}=x,E=ft.useContext($s),O=Fo(),$=x.shouldForwardProp||O.shouldForwardProp,N=bo(g,E,V)||te;let K,J;{const X=ft.useRef(null),q=X.current;if(q!==null&&q[1]===N&&q[2]===O.styleSheet&&q[3]===O.stylis&&q[7]===A&&(function(p,w,D){const L=p,k=w;let U=0;for(const _ in k)if(Oi.call(k,_)&&(U++,L[_]!==k[_]))return!1;return U===D})(q[0],g,q[4]))K=q[5],J=q[6];else{K=(function(w,D,L){const k=Object.assign(Object.assign({},D),{className:void 0,theme:L}),U=w.length>1;for(let _=0;_<w.length;_++){const Y=w[_],z=Me(Y)?Y(U?Object.assign({},k):k):Y;for(const tt in z)tt==="className"?k.className=he(k.className,z[tt]):tt==="style"?k.style=Object.assign(Object.assign({},k.style),z[tt]):tt in D&&D[tt]===void 0||(k[tt]=z[tt])}return"className"in D&&typeof D.className=="string"&&(k.className=he(k.className,D.className)),k})(b,g,N),J=(function(w,D,L,k){return w.generateAndInjectStyles(D,L,k)})(A,K,O.styleSheet,O.stylis);let p=0;for(const w in g)Oi.call(g,w)&&p++;X.current=[g,N,O.styleSheet,O.stylis,p,K,J,A]}}const ot=K.as||M,Q=(function(X,q,p,w){const D={};for(const L in X)X[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&X.theme===p||(L==="forwardedAs"?D.as=X.forwardedAs:w&&!w(L,q)||(D[L]=X[L]));return D})(K,ot,N,$);let W=he(R,T);return J&&(W+=" "+J),K.className&&(W+=" "+K.className),Q[ss(ot)&&ot.includes("-")?"class":"className"]=W,S&&(Q.ref=S),P.createElement(ot,Q)})(m,y,v)}d.displayName=c;let m=ft.forwardRef(d);return m.attrs=l,m.componentStyle=h,m.displayName=c,m.shouldForwardProp=f,m.foldedComponentIds=s?he(i.foldedComponentIds,i.styledComponentId):"",m.
vendor: 4,427 bytes, line 2
2styledComponentId=u,m.target=s?i.target:t,Object.defineProperty(m,"defaultProps",{get(){return this._foldedDefaultProps},set(y){this._foldedDefaultProps=s?(function(v,...x){for(const g of x)is(v,g,!0);return v})({},i.defaultProps,y):y}}),_s(m,()=>`.${m.styledComponentId}`),o&&Eo(m,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),m}var Nl=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function ji(t,e){const n=[t[0]];for(let s=0,i=e.length;s<i;s+=1)n.push(e[s],t[s+1]);return n}const Fi=t=>(Vo.add(t),t);function Ws(t,...e){if(Me(t)||Pe(t))return Fi(kt(ji(js,[t,...e])));const n=t;return e.length===0&&n.length===1&&typeof n[0]=="string"?kt(n):Fi(kt(ji(n,e)))}function as(t,e,n=te){if(!e)throw Ve(1,e);const s=(i,...o)=>t(e,n,Ws(i,...o));return s.attrs=i=>as(t,e,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)})),s.withConfig=i=>as(t,e,Object.assign(Object.assign({},n),i)),s}const Bo=t=>as(Bl,t),_l=Bo;Nl.forEach(t=>{_l[t]=Bo(t)});class $l{constructor(e,n){this.instanceRules=new Map,this.rules=e,this.componentId=n,this.isStatic=(function(s){for(let i=0;i<s.length;i+=1){const o=s[i];if(Me(o)&&!Ns(o))return!1}return!0})(e),De.registerId(this.componentId)}removeStyles(e,n){this.instanceRules.delete(e),this.rebuildGroup(n)}renderStyles(e,n,s,i){const o=this.componentId;if(this.isStatic){if(s.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,n,s,i);else{const a=this.computeRules(e,n,s,i);s.insertRules(o,a.name,a.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,n,s,i),!s.server&&r){const a=r.rules,c=this.instanceRules.get(e).rules;if(a.length===c.length){let u=!0;for(let l=0;l<a.length;l++)if(a[l]!==c[l]){u=!1;break}if(u)return}}this.rebuildGroup(s)}computeRules(e,n,s,i){const o=rn(kt(this.rules,n,s,i)),r={name:this.componentId+e,rules:i(o,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const n=this.componentId;e.clearRules(n);for(const s of this.instanceRules.values())e.insertRules(n,s.name,s.rules)}}function fm(t,...e){const n=Ws(t,...e),s=`sc-global-${Bs(JSON.stringify(n))}`,i=new $l(n,s),o=a=>{const c=Fo(),u=ft.useContext($s);let l;{const f=ft.useRef(null);f.current===null&&(f.current=c.styleSheet.allocateGSInstance(s)),l=f.current}c.styleSheet.server&&r(l,a,c.styleSheet,u,c.stylis);{const f=i.isStatic?[l,c.styleSheet,i]:[l,a,c.styleSheet,u,c.stylis,i],h=ft.useRef(i);ft.useLayoutEffect(()=>{c.styleSheet.server||(h.current!==i&&(c.styleSheet.clearRules(s),h.current=i),r(l,a,c.styleSheet,u,c.stylis))},f),ft.useLayoutEffect(()=>()=>{c.styleSheet.server||i.removeStyles(l,c.styleSheet)},[l,c.styleSheet,i])}return c.styleSheet.server&&i.instanceRules.delete(l),null};function r(a,c,u,l,f){if(i.isStatic)i.renderStyles(a,el,u,f);else{const h=Object.assign(Object.assign({},c),{theme:bo(c,l,o.defaultProps)});i.renderStyles(a,h,u,f)}}return ft.memo(o)}var No;class Wl{constructor(e,n){this[No]=!0,this.inject=(s,i=os)=>{const o=this.getName(i);if(!s.hasNameForId(this.id,o)){const r=i(this.rules,o,"@keyframes");s.insertRules(this.id,o,r)}}
vendor: 29,643 bytes, line 2
2,this.name=e,this.id=So+e,this.rules=n,fe(this.id),_s(this,()=>{throw Ve(12,String(this.name))})}getName(e=os){return e.hash?this.name+Fs(+e.hash>>>0):this.name}}function hm(t,...e){const n=rn(Ws(t,...e)),s=Bs(n);return new Wl(s,n)}No=Mo;const Us=P.createContext({});function Lt(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Ul=typeof window<"u",bn=Ul?P.useLayoutEffect:P.useEffect,Tn=P.createContext(null);function zs(t,e){t.indexOf(e)===-1&&t.push(e)}function on(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const bt=(t,e,n)=>n>e?e:n<t?t:n;let Ae=()=>{};const It={},_o=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function $o(t){return typeof t=="object"&&t!==null}const Wo=t=>/^0[^.\s]+$/u.test(t);function Uo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ut=t=>t,zl=(t,e)=>n=>e(t(n)),ke=(...t)=>t.reduce(zl),ee=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Gs{constructor(){this.subscriptions=[]}add(e){return zs(this.subscriptions,e),()=>on(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 ht=t=>t*1e3,dt=t=>t/1e3;function Hs(t,e){return e?t*(1e3/e):0}const zo=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Gl=1e-7,Hl=12;function Kl(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=zo(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Gl&&++a<Hl);return r}function Le(t,e,n,s){if(t===e&&n===s)return ut;const i=o=>Kl(o,0,1,t,n);return o=>o===0||o===1?o:zo(i(o),e,s)}const Go=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ho=t=>e=>1-t(1-e),Ko=Le(.33,1.53,.69,.99),Ks=Ho(Ko),Yo=Go(Ks),Xo=t=>t>=1?1:(t*=2)<1?.5*Ks(t):.5*(2-Math.pow(2,-10*(t-1))),Ys=t=>1-Math.sin(Math.acos(t)),qo=Ho(Ys),Zo=Go(Ys),Yl=Le(.42,0,1,1),Xl=Le(0,0,.58,1),Jo=Le(.42,0,.58,1),ql=t=>Array.isArray(t)&&typeof t[0]!="number",Qo=t=>Array.isArray(t)&&typeof t[0]=="number",Zl={linear:ut,easeIn:Yl,easeInOut:Jo,easeOut:Xl,circIn:Ys,circInOut:Zo,circOut:qo,backIn:Ks,backInOut:Yo,backOut:Ko,anticipate:Xo},Jl=t=>typeof t=="string",Bi=t=>{if(Qo(t)){Ae(t.length===4);const[e,n,s,i]=t;return Le(e,n,s,i)}else if(Jl(t))return Zl[t];return t},je=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ql(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(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,f=!1,h=!1)=>{const m=h&&i?n:s;return f&&r.add(l),m.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0;const f=n;n=s,s=f,n.forEach(c),n.clear(),i=!1,o&&(o=!1,u.process(l))}};return u}const tu=40;function ta(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=je.reduce((S,b)=>(S[b]=Ql(o),S),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:f,preRender:h,render:d,postRender:m}=r,y=()=>{const S=It.useManualTiming,b=S?i.timestamp:performance.now();n=!1,S||(i.delta=s?1e3/60:Math.max(Math.min(b-i.timestamp,tu),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},v=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:je.reduce((S,b)=>{const A=r[b];return S[b]=(V,R=!1,T=!1)=>(n||v(),A.schedule(V,R,T)),S},{}),cancel:S=>{for(let b=0;b<je.length;b++)r[je[b]].cancel(S)},state:i,steps:r}}const{schedule:F,cancel:mt,state:rt,steps:Fn}=ta(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0);let Ye;function eu(){Ye=void 0}const ct={now:()=>(Ye===void 0&&ct.set(rt.isProcessing||It.useManualTiming?rt.timestamp:performance.now()),Ye),set:t=>{Ye=t,queueMicrotask(eu)}},ea=t=>e=>typeof e=="string"&&e.startsWith(t),na=ea("--"),nu=ea("var(--"),Xs=t=>nu(t)?su.test(t.split("/*")[0].trim()):!1,su=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ni(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const ie={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Ce={...ie,transform:t=>bt(0,1,t)},Fe={...ie,default:1},ye=t=>Math.round(t*1e5)/1e5,qs=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iu(t){return t==null}const ru=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zs=(t,e)=>n=>!!(typeof n=="string"&&ru.test(n)&&n.startsWith(t)||e&&!iu(n)&&Object.prototype.hasOwnProperty.call(n,e)),sa=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(qs);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},ou=t=>bt(0,255,t),Bn={...ie,transform:t=>Math.round(ou(t))},Nt={test:Zs("rgb","red"),parse:sa("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Bn.transform(t)+", "+Bn.transform(e)+", "+Bn.transform(n)+", "+ye(Ce.transform(s))+")"};function au(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 cs={test:Zs("#"),parse:au,transform:Nt.transform},Ie=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Vt=Ie("deg"),At=Ie("%"),C=Ie("px"),cu=Ie("vh"),lu=Ie("vw"),_i={...At,parse:t=>At.parse(t)/100,transform:t=>At.transform(t*100)},Yt={test:Zs("hsl","hue"),parse:sa("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+At.transform(ye(e))+", "+At.transform(ye(n))+", "+ye(Ce.transform(s))+")"},et={test:t=>Nt.test(t)||cs.test(t)||Yt.test(t),parse:t=>Nt.test(t)?Nt.parse(t):Yt.test(t)?Yt.parse(t):cs.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Nt.transform(t):Yt.transform(t),getAnimatableNone:t=>{const e=et.parse(t);return e.alpha=0,et.transform(e)}},uu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fu(t){return isNaN(t)&&typeof t=="string"&&(t.match(qs)?.length||0)+(t.match(uu)?.length||0)>0}const ia="number",ra="color",hu="var",du="var(",$i="${}",pu=/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 ne(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(pu,c=>(et.test(c)?(s.color.push(o),i.push(ra),n.push(et.parse(c))):c.startsWith(du)?(s.var.push(o),i.push(hu),n.push(c)):(s.number.push(o),i.push(ia),n.push(parseFloat(c))),++o,$i)).split($i);return{values:n,split:a,indexes:s,types:i}}function mu(t){return ne(t).values}function oa({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===ia?i+=ye(s[o]):r===ra?i+=et.transform(s[o]):i+=s[o]}return i}}function gu(t){return oa(ne(t))}const yu=t=>typeof t=="number"?0:et.test(t)?et.getAnimatableNone(t):t,vu=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:yu(t);function xu(t){const e=ne(t);return oa(e)(e.values.map((s,i)=>vu(s,e.split[i])))}const St={test:fu,parse:mu,createTransformer:gu,getAnimatableNone:xu};function Nn(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 wu({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=Nn(c,a,t+1/3),o=Nn(c,a,t),r=Nn(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function an(t,e){return n=>n>0?e:t}const H=(t,e,n)=>t+(e-t)*n,_n=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Su=[cs,Nt,Yt],bu=t=>Su.find(e=>e.test(t));function Wi(t){const e=bu(t);if(!e)return!1;let n=e.parse(t);return e===Yt&&(n=wu(n)),n}const Ui=(t,e)=>{const n=Wi(t),s=Wi(e);if(!n||!s)return an(t,e);const i={...n};return o=>(i.red=_n(n.red,s.red,o),i.green=_n(n.green,s.green,o),i.blue=_n(n.blue,s.blue,o),i.alpha=H(n.alpha,s.alpha,o),Nt.transform(i))},ls=new Set(["none","hidden"]);function Tu(t,e){return ls.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Pu(t,e){return n=>H(t,e,n)}function Js(t){return typeof t=="number"?Pu:typeof t=="string"?Xs(t)?an:et.test(t)?Ui:Eu:Array.isArray(t)?aa:typeof t=="object"?et.test(t)?Ui:Au:an}function aa(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Js(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Au(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Js(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Cu(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 Eu=(t,e)=>{const n=St.createTransformer(e),s=ne(t),i=ne(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?ls.has(t)&&!i.values.length||ls.has(e)&&!s.values.length?Tu(t,e):ke(aa(Cu(s,i),i.values),n):an(t,e)};function ca(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?H(t,e,n):Js(t)(t,e)}const Ru=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>F.update(e,n),stop:()=>mt(e),now:()=>rt.isProcessing?rt.timestamp:ct.now()}},la=(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)})`},cn=2e4;function Qs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<cn;)e+=n,s=t.next(e);return e>=cn?1/0:e}function Vu(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Qs(s),cn);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:dt(i)}}const Z={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 us(t,e){return t*Math.sqrt(1-e*e)}const Mu=12;function Du(t,e,n){let s=n;for(let i=1;i<Mu;i++)s=s-t(s)/e(s);return s}const $n=.001;function ku({duration:t=Z.duration,bounce:e=Z.bounce,velocity:n=Z.velocity,mass:s=Z.mass}){let i,o,r=1-e;r=bt(Z.minDamping,Z.maxDamping,r),t=bt(Z.minDuration,Z.maxDuration,dt(t)),r<1?(i=u=>{const l=u*r,f=l*t,h=l-n,d=us(u,r),m=Math.exp(-f);return $n-h/d*m},o=u=>{const f=u*r*t,h=f*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,m=Math.exp(-f),y=us(Math.pow(u,2),r);return(-i(u)+$n>0?-1:1)*((h-d)*m)/y}):(i=u=>{const l=Math.exp(-u*t),f=(u-n)*t+1;return-$n+l*f},o=u=>{const l=Math.exp(-u*t),f=(n-u)*(t*t);return l*f});const a=5/t,c=Du(i,o,a);if(t=ht(t),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const Lu=["duration","bounce"],Iu=["stiffness","damping","mass"];function zi(t,e){return e.some(n=>t[n]!==void 0)}function Ou(t){let e={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...t};if(!zi(t,Iu)&&zi(t,Lu))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*bt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Z.mass,stiffness:i,damping:o}}else{const n=ku({...t,velocity:0});e={...e,...n,mass:Z.mass},e.isResolvedFromDuration=!0}return e}function ln(t=Z.visualDuration,e=Z.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:u,mass:l,duration:f,velocity:h,isResolvedFromDuration:d}=Ou({...n,velocity:-dt(n.velocity||0)}),m=h||0,y=u/(2*Math.sqrt(c*l)),v=r-o,x=dt(Math.sqrt(c/l)),g=Math.abs(v)<5;s||(s=g?Z.restSpeed.granular:Z.restSpeed.default),i||(i=g?Z.restDelta.granular:Z.restDelta.default);let S,b,A,V,R,T;if(y<1)A=us(x,y),V=(m+y*x*v)/A,S=E=>{const O=Math.exp(-y*x*E);return r-O*(V*Math.sin(A*E)+v*Math.cos(A*E))},R=y*x*V+v*A,T=y*x*v-V*A,b=E=>Math.exp(-y*x*E)*(R*Math.sin(A*E)+T*Math.cos(A*E));else if(y===1){S=O=>r-Math.exp(-x*O)*(v+(m+x*v)*O);const E=m+x*v;b=O=>Math.exp(-x*O)*(x*E*O-m)}else{const E=x*Math.sqrt(y*y-1);S=K=>{const J=Math.exp(-y*x*K),ot=Math.min(E*K,300);return r-J*((m+y*x*v)*Math.sinh(ot)+E*v*Math.cosh(ot))/E};const O=(m+y*x*v)/E,$=y*x*O-v*E,N=y*x*v-O*E;b=K=>{const J=Math.exp(-y*x*K),ot=Math.min(E*K,300);return J*($*Math.sinh(ot)+N*Math.cosh(ot))}}const M={calculatedDuration:d&&f||null,velocity:E=>ht(b(E)),next:E=>{if(!d&&y<1){const $=Math.exp(-y*x*E),N=Math.sin(A*E),K=Math.cos(A*E),J=r-$*(V*N+v*K),ot=ht($*(R*N+T*K));return a.done=Math.abs(ot)<=s&&Math.abs(r-J)<=i,a.value=a.done?r:J,a}const O=S(E);if(d)a.done=E>=f;else{const $=ht(b(E));a.done=Math.abs($)<=s&&Math.abs(r-O)<=i}return a.value=a.done?r:O,a},toString:()=>{const E=Math.min(Qs(M),cn),O=la($=>M.next(E*$).value,E,30);return E+"ms "+O},toTransition:()=>{}};return M}ln.applyToOptions=t=>{const e=Vu(t,100,ln);return t.ease=e.ease,t.duration=ht(e.duration),t.type="keyframes",t};const ju=5;function ua(t,e,n){const s=Math.max(e-ju,0);return Hs(n-t(s),e-s)}function fs({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const f=t[0],h={done:!1,value:f},d=T=>a!==void 0&&T<a||c!==void 0&&T>c,m=T=>a===void 0?c:c===void 0||Math.abs(a-T)<Math.abs(c-T)?a:c;let y=n*e;const v=f+y,x=r===void 0?v:r(v);x!==v&&(y=x-f);const g=T=>-y*Math.exp(-T/s),S=T=>x+g(T),b=T=>{const M=g(T),E=S(T);h.done=Math.abs(M)<=u,h.value=h.done?x:E};let A,V;const R=T=>{d(h.value)&&(A=T,V=ln({keyframes:[h.value,m(h.value)],velocity:ua(S,T,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return R(0),{calculatedDuration:null,next:T=>{let M=!1;return!V&&A===void 0&&(M=!0,b(T),R(T)),A!==void 0&&T>=A?V.next(T-A):(!M&&b(T),h)}}}function Fu(t,e,n){const s=[],i=n||It.mix||ca,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]||ut:e;a=ke(c,a)}s.push(a)}return s}function ti(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ae(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=Fu(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const h=ee(t[f],t[f+1],l);return a[f](h)};return n?l=>u(bt(t[0],t[o-1],l)):u}function Bu(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ee(0,e,s);t.push(H(n,1,i))}}function fa(t){const e=[0];return Bu(e,t.length-1),e}function Nu(t,e){return t.map(n=>n*e)}function _u(t,e){return t.map(()=>e||Jo).splice(0,t.length-1)}function ve({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ql(s)?s.map(Bi):Bi(s),o={done:!1,value:e[0]},r=Nu(n&&n.length===e.length?n:fa(e),t),a=ti(r,e,{ease:Array.isArray(i)?i:_u(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const $u=t=>t!==null;function Pn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter($u),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Wu={decay:fs,inertia:fs,tween:ve,keyframes:ve,spring:ln};function ha(t){typeof t.type=="string"&&(t.type=Wu[t.type])}class ei{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 Uu=t=>t/100;class un extends ei{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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ct.now()&&this.tick(ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ha(e);const{type:n=ve,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||ve;c!==ve&&typeof a[0]!="number"&&(this.mixKeyframes=ke(Uu,ca(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Qs(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}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:u=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:v}=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 x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,b=s;if(f){const T=Math.min(this.currentTime,i)/a;let M=Math.floor(T),E=T%1;!E&&T>=1&&(E=1),E===1&&M--,M=Math.min(M,f+1),M%2&&(h==="reverse"?(E=1-E,d&&(E-=d/a)):h==="mirror"&&(b=r)),S=bt(0,1,E)*a}let A;g?(this.delayState.value=l[0],A=this.delayState):A=b.next(S),o&&!g&&(A.value=o(A.value));let{done:V}=A;!g&&c!==null&&(V=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return R&&m!==fs&&(A.value=Pn(l,this.options,v,this.speed)),y&&y(A.value),R&&this.finish(),A}then(e,n){return this.finished.then(e,n)}get duration(){return dt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+dt(e)}get time(){return dt(this.currentTime)}set time(e){e=ht(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 ua(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(ct.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=dt(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ru,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();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(ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}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){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function zu(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const _t=t=>t*180/Math.PI,hs=t=>{const e=_t(Math.atan2(t[1],t[0]));return ds(e)},Gu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:hs,rotateZ:hs,skewX:t=>_t(Math.atan(t[1])),skewY:t=>_t(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ds=t=>(t=t%360,t<0&&(t+=360),t),Gi=hs,Hi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ki=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Hu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hi,scaleY:Ki,scale:t=>(Hi(t)+Ki(t))/2,rotateX:t=>ds(_t(Math.atan2(t[6],t[5]))),rotateY:t=>ds(_t(Math.atan2(-t[2],t[0]))),rotateZ:Gi,rotate:Gi,skewX:t=>_t(Math.atan(t[4])),skewY:t=>_t(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function ps(t){return t.includes("scale")?1:0}function ms(t,e){if(!t||t==="none")return ps(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Hu,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Gu,i=a}if(!i)return ps(e);const o=s[e],r=i[1].split(",").map(Yu);return typeof o=="function"?o(r):r[o]}const Ku=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ms(n,e)};function Yu(t){return parseFloat(t.trim())}const re=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oe=new Set(re),Yi=t=>t===ie||t===C,Xu=new Set(["x","y","z"]),qu=re.filter(t=>!Xu.has(t));function Zu(t){const e=[];return qu.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Dt={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})=>ms(e,"x"),y:(t,{transform:e})=>ms(e,"y")};Dt.translateX=Dt.x;Dt.translateY=Dt.y;const Wt=new Set;let gs=!1,ys=!1,vs=!1;function da(){if(ys){const t=Array.from(Wt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Zu(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])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}ys=!1,gs=!1,Wt.forEach(t=>t.complete(vs)),Wt.clear()}function pa(){Wt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ys=!0)})}function Ju(){vs=!0,pa(),da(),vs=!1}class ni{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?(Wt.add(this),gs||(gs=!0,F.read(pa),F.resolveKeyframes(da))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=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])}zu(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Wt.delete(this)}cancel(){this.state==="scheduled"&&(Wt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qu=t=>t.startsWith("--");function ma(t,e,n){Qu(e)?t.style.setProperty(e,n):t.style[e]=n}const tf={};function si(t,e){const n=Uo(t);return()=>tf[e]??n()}const ii=si(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ga=si(()=>window.ViewTimeline!==void 0,"viewTimeline"),ya=si(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),de=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Xi={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:de([0,.65,.55,1]),circOut:de([.55,0,1,.45]),backIn:de([.31,.01,.66,-.59]),backOut:de([.33,1.53,.69,.99])};function va(t,e){if(t)return typeof t=="function"?ya()?la(t,e):"ease-out":Qo(t)?de(t):Array.isArray(t)?t.map(n=>va(n,e)||Xi.easeOut):Xi[t]}function ef(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const f=va(a,i);Array.isArray(f)&&(l.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 u&&(h.pseudoElement=u),t.animate(l,h)}function xa(t){return typeof t=="function"&&"applyToOptions"in t}function nf({type:t,...e}){return xa(t)&&ya()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class wa extends ei{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,Ae(typeof e.type!="string");const u=nf(e);this.animation=ef(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=Pn(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),ma(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}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(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return dt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+dt(e)}get time(){return dt(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ht(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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ii()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),ut):i(this)}}const Sa={anticipate:Xo,backInOut:Yo,circInOut:Zo};function sf(t){return t in Sa}function rf(t){typeof t.ease=="string"&&sf(t.ease)&&(t.ease=Sa[t.ease])}const Wn=10;class of extends wa{constructor(e){rf(e),ha(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 un({...r,autoplay:!1}),c=Math.max(Wn,ct.now()-this.startTime),u=bt(0,Wn,c-Wn),l=a.sample(c).value,{name:f}=this.options;o&&f&&ma(o,f,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const qi=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(St.test(t)||t==="0")&&!t.startsWith("url("));function af(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 cf(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=qi(i,e),a=qi(o,e);return!r||!a?!1:af(t)||(n==="spring"||xa(n))&&s}function xs(t){t.duration=0,t.type="keyframes"}const ba=new Set(["opacity","clipPath","filter","transform"]),lf=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function uf(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&lf.test(t[e]))return!0;return!1}const ff=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),hf=Uo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function df(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return hf()&&n&&(ba.has(n)||ff.has(n)&&uf(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const pf=40;class mf extends ei{constructor({autoplay:e=!0,delay:n=0,type:s="
2keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ct.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...f},d=l?.KeyframeResolver||ni;this.keyframeResolver=new d(a,(m,y,v)=>this.onKeyframesResolved(m,y,h,!v),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=ct.now();let f=!0;cf(e,o,r,a)||(f=!1,(It.instantAnimations||!c)&&l?.(Pn(e,s,n)),e[0]=e[e.length-1],xs(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>pf?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=f&&!u&&df(d),y=d.motionValue?.owner?.current;let v;if(m)try{v=new of({...d,element:y})}catch{v=new un(d)}else v=new un(d);v.finished.then(()=>{this.notifyFinished()}).catch(ut),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ju()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ta(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const gf=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yf(t){const e=gf.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Pa(t,e,n=1){const[s,i]=yf(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return _o(r)?parseFloat(r):r}return Xs(i)?Pa(i,e,n+1):i}const vf={type:"spring",stiffness:500,damping:25,restSpeed:10},xf=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),wf={type:"keyframes",duration:.8},Sf={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bf=(t,{keyframes:e})=>e.length>2?wf:oe.has(t)?t.startsWith("scale")?xf(e[1]):vf:Sf;function Aa(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function ri(t,e){const n=t?.[e]??t?.default??t;return n!==t?Aa(n,t):n}const Tf=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Pf(t){for(const e in t)if(!Tf.has(e))return!0;return!1}const oi=(t,e,n,s={},i,o)=>r=>{const a=ri(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-ht(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,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};Pf(a)||Object.assign(l,bf(t,l)),l.duration&&(l.duration=ht(l.duration)),l.repeatDelay&&(l.repeatDelay=ht(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(xs(l),l.delay===0&&(f=!0)),(It.instantAnimations||It.skipAnimations||i?.shouldSkipAnimations)&&(f=!0,xs(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=Pn(l.keyframes,a);if(h!==void 0){F.update(()=>{l.onUpdate(h),l.onComplete()});return}}return a.isSync?new un(l):new mf(l)};function Zi(t){const e=[{},{}];
vendor: 58,321 bytes, line 2
2return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function ai(t,e,n,s){if(typeof e=="function"){const[i,o]=Zi(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]=Zi(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Ut(t,e,n){const s=t.getProps();return ai(s,e,n!==void 0?n:s.custom,t)}const Ca=new Set(["width","height","top","left","right","bottom",...re]),Ji=30,Af=t=>!isNaN(parseFloat(t)),xe={current:void 0};class Cf{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=ct.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=ct.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Af(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 Gs);const s=this.events[e].add(n);return e==="change"?()=>{s(),F.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(){this.events.change?.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 xe.current&&xe.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ji)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ji);return Hs(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(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xt(t,e){return new Cf(t,e)}const ws=t=>Array.isArray(t);function Ef(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,xt(n))}function Rf(t){return ws(t)?t[t.length-1]||0:t}function Vf(t,e){const n=Ut(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Rf(o[r]);Ef(t,r,a)}}const at=t=>!!(t&&t.getVelocity);function Mf(t){return!!(at(t)&&t.add)}function Ss(t,e){const n=t.getValue("willChange");if(Mf(n))return n.add(e);if(!n&&It.WillChange){const s=new It.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ci(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Df="framerAppearId",Ea="data-"+ci(Df);function Ra(t){return t.props[Ea]}function kf({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Va(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Aa(o,c):c;const u=o?.reduceMotion;s&&(o=s);const l=[],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&&kf(f,h))continue;const y={delay:n,...ri(o||{},h)},v=d.get();if(v!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===v&&!y.velocity){F.update(()=>d.set(m));continue}let x=!1;if(window.MotionHandoffAnimation){const b=Ra(t);if(b){const A=window.MotionHandoffAnimation(b,h,F);A!==null&&(y.startTime=A,x=!0)}}Ss(t,h);const g=u??t.shouldReduceMotion;d.start(oi(h,d,m,g&&Ca.has(h)?{type:!1}:y,t,x));const S=d.animation;S&&l.push(S)}if(r){const h=()=>F.update(()=>{r&&Vf(t,r)});l.length?Promise.all(l).then(h):h()}return l}function bs(t,e,n={}){const s=Ut(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Va(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:f}=i;return Lf(t,e,c,u,l,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function Lf(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(bs(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Ta(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function If(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>bs(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=bs(t,e,n);else{const i=typeof e=="function"?Ut(t,e,n.custom):e;s=Promise.all(Va(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Of={test:t=>t==="auto",parse:t=>t},Ma=t=>e=>e.test(t),Da=[ie,C,At,Vt,lu,cu,Of],Qi=t=>Da.find(Ma(t));function jf(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Wo(t):!0}const Ff=new Set(["brightness","contrast","saturate","opacity"]);function Bf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(qs)||[];if(!s)return t;const i=n.replace(s,"");let o=Ff.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Nf=/\b([a-z-]*)\(.*?\)/gu,Ts={...St,getAnimatableNone:t=>{const e=t.match(Nf);return e?e.map(Bf).join(" "):t}},Ps={...St,getAnimatableNone:t=>{const e=St.parse(t);return St.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},tr={...ie,transform:Math.round},_f={rotate:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:Fe,scaleX:Fe,scaleY:Fe,scaleZ:Fe,skew:Vt,skewX:Vt,skewY:Vt,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:Ce,originX:_i,originY:_i,originZ:C},li={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,inset:C,insetBlock:C,insetBlockStart:C,insetBlockEnd:C,insetInline:C,insetInlineStart:C,insetInlineEnd:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,paddingBlock:C,paddingBlockStart:C,paddingBlockEnd:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,marginBlock:C,marginBlockStart:C,marginBlockEnd:C,marginInline:C,marginInlineStart:C,marginInlineEnd:C,fontSize:C,backgroundPositionX:C,backgroundPositionY:C,..._f,zIndex:tr,fillOpacity:Ce,strokeOpacity:Ce,numOctaves:tr},$f={...li,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:Ts,WebkitFilter:Ts,mask:Ps,WebkitMask:Ps},ka=t=>$f[t],Wf=new Set([Ts,Ps]);function La(t,e){let n=ka(t);return Wf.has(n)||(n=St),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Uf=new Set(["auto","none","0"]);function zf(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Uf.has(o)&&ne(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=La(n,i)}class Gf extends ni{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 l=0;l<e.length;l++){let f=e[l];if(typeof f=="string"&&(f=f.trim(),Xs(f))){const h=Pa(f,n.current);h!==void 0&&(e[l]=h),l===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Ca.has(s)||e.length!==2)return;const[i,o]=e,r=Qi(i),a=Qi(o),c=Ni(i),u=Ni(o);if(c!==u&&Dt[s]){this.needsMeasurement=!0;return}if(r!==a)if(Yi(r)&&Yi(a))for(let l=0;l<e.length;l++){const f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}else Dt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||jf(e[i]))&&s.push(i);s.length&&zf(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=Dt[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(){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]=Dt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Ia(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Oa=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function we(t){return $o(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:ui}=ta(queueMicrotask,!1),yt={x:!1,y:!1};function ja(){return yt.x||yt.y}function Hf(t){return t==="x"||t==="y"?yt[t]?null:(yt[t]=!0,()=>{yt[t]=!1}):yt.x||yt.y?null:(yt.x=yt.y=!0,()=>{yt.x=yt.y=!1})}function Fa(t,e){const n=Ia(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Kf(t){return!(t.pointerType==="touch"||ja())}function Yf(t,e,n={}){const[s,i,o]=Fa(t,n);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",m)},f=v=>{u&&(u(v),u=void 0),l()},h=v=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(v))},d=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=v=>{if(v.pointerType!=="touch"){if(a){c=!0;return}f(v)}},y=v=>{if(!Kf(v))return;c=!1;const x=e(r,v);typeof x=="function"&&(u=x,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",y,i),r.addEventListener("pointerdown",d,i)}),o}const Ba=(t,e)=>e?t===e?!0:Ba(t,e.parentElement):!1,fi=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Xf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qf(t){return Xf.has(t.tagName)||t.isContentEditable===!0}const Zf=new Set(["INPUT","SELECT","TEXTAREA"]);function Jf(t){return Zf.has(t.tagName)||t.isContentEditable===!0}const Xe=new WeakSet;function er(t){return e=>{e.key==="Enter"&&t(e)}}function Un(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Qf=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=er(()=>{if(Xe.has(n))return;Un(n,"down");const i=er(()=>{Un(n,"up")}),o=()=>Un(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 nr(t){return fi(t)&&!ja()}const sr=new WeakSet;function th(t,e,n={}){const[s,i,o]=Fa(t,n),r=a=>{const c=a.currentTarget;if(!nr(a)||sr.has(a))return;Xe.add(c),n.stopPropagation&&sr.add(a);const u=e(c,a),l=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Xe.has(c)&&Xe.delete(c),nr(d)&&typeof u=="function"&&u(d,{success:m})},f=d=>{l(d,c===window||c===document||n.useGlobalTarget||Ba(c,d.target))},h=d=>{l(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),we(a)&&(a.addEventListener("focus",u=>Qf(u,i)),!qf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function hi(t){return $o(t)&&"ownerSVGElement"in t}const qe=new WeakMap;let Ze;const Na=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:hi(s)&&"getBBox"in s?s.getBBox()[e]:s[n],eh=Na("inline","width","offsetWidth"),nh=Na("block","height","offsetHeight");function sh({target:t,borderBoxSize:e}){qe.get(t)?.forEach(n=>{n(t,{get width(){return eh(t,e)},get height(){return nh(t,e)}})})}function ih(t){t.forEach(sh)}function rh(){typeof ResizeObserver>"u"||(Ze=new ResizeObserver(ih))}function oh(t,e){Ze||rh();const n=Ia(t);return n.forEach(s=>{let i=qe.get(s);i||(i=new Set,qe.set(s,i)),i.add(e),Ze?.observe(s)}),()=>{n.forEach(s=>{const i=qe.get(s);i?.delete(e),i?.size||Ze?.unobserve(s)})}}const Je=new Set;let Xt;function ah(){Xt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Je.forEach(e=>e(t))},window.addEventListener("resize",Xt)}function ch(t){return Je.add(t),Xt||ah(),()=>{Je.delete(t),!Je.size&&typeof Xt=="function"&&(window.removeEventListener("resize",Xt),Xt=void 0)}}function As(t,e){return typeof t=="function"?ch(t):oh(t,e)}function _a(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return F.preUpdate(s,!0),()=>mt(s)}function lh(t){return hi(t)&&t.tagName==="svg"}function uh(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=ti(i,o,r);return e?a(s):a}const fh=[...Da,et,St],hh=t=>fh.find(Ma(t)),ir=()=>({translate:0,scale:1,origin:0,originPoint:0}),qt=()=>({x:ir(),y:ir()}),rr=()=>({min:0,max:0}),st=()=>({x:rr(),y:rr()}),dh=new WeakMap;function An(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ee(t){return typeof t=="string"||Array.isArray(t)}const di=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pi=["initial",...di];function Cn(t){return An(t.animate)||pi.some(e=>Ee(t[e]))}function $a(t){return!!(Cn(t)||t.variants)}function ph(t,e,n){for(const s in e){const i=e[s],o=n[s];if(at(i))t.addValue(s,i);else if(at(o))t.addValue(s,xt(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,xt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const fn={current:null},mi={current:!1},mh=typeof window<"u";function Wa(){if(mi.current=!0,!!mh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>fn.current=t.matches;t.addEventListener("change",e),e()}else fn.current=!1}const or=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let hn={};function Ua(t){hn=t}function gh(){return hn}class yh{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=ni,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=ct.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,F.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,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=Cn(n),this.isVariantNode=$a(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];u[d]!==void 0&&at(m)&&m.set(u[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,dh.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((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(mi.current||Wa(),this.shouldReduceMotion=fn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),mt(this.notifyUpdate),mt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.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&&ba.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,f=new wa({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:ht(l)}),h=r(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=oe.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&F.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 hn){const n=hn[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):st()}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<or.length;s++){const i=or[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=ph(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=xt(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"&&(_o(s)||Wo(s))?s=parseFloat(s):!hh(s)&&St.test(n)&&(s=La(e,n)),this.setBaseTarget(e,at(s)?s.get():s)),at(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=ai(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!at(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 Gs),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){ui.render(this.render)}}class za extends yh{constructor(){super(...arguments),this.KeyframeResolver=Gf}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;at(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Ot{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ga({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function vh({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xh(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 zn(t){return t===void 0||t===1}function Cs({scale:t,scaleX:e,scaleY:n}){return!zn(t)||!zn(e)||!zn(n)}function Ft(t){return Cs(t)||Ha(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ha(t){return ar(t.x)||ar(t.y)}function ar(t){return t&&t!=="0%"}function dn(t,e,n){const s=t-n,i=e*s;return n+i}function cr(t,e,n,s,i){return i!==void 0&&(t=dn(t,i,s)),dn(t,n,s)+e}function Es(t,e=0,n=1,s,i){t.min=cr(t.min,e,n,s,i),t.max=cr(t.max,e,n,s,i)}function Ka(t,{x:e,y:n}){Es(t.x,e.translate,e.scale,e.originPoint),Es(t.y,n.translate,n.scale,n.originPoint)}const lr=.999999999999,ur=1.0000000000001;function wh(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Pt(t.x,-o.scroll.offset.x),Pt(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Ka(t,r)),s&&Ft(o.latestValues)&&Qe(t,o.latestValues,o.layout?.layoutBox))}e.x<ur&&e.x>lr&&(e.x=1),e.y<ur&&e.y>lr&&(e.y=1)}function Pt(t,e){t.min+=e,t.max+=e}function fr(t,e,n,s,i=.5){const o=H(t.min,t.max,i);Es(t,e,n,o,s)}function hr(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Qe(t,e,n){const s=n??t;fr(t.x,hr(e.x,s.x),e.scaleX,e.scale,e.originX),fr(t.y,hr(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ya(t,e){return Ga(xh(t.getBoundingClientRect(),e))}function Sh(t,e,n){const s=Ya(t,n),{scroll:i}=e;return i&&(Pt(s.x,i.offset.x),Pt(s.y,i.offset.y)),s}const bh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Th=re.length;function Ph(t,e,n){let s="",i=!0;for(let o=0;o<Th;o++){const r=re[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 u=parseFloat(a);c=r.startsWith("scale")?u===1:u===0}if(!c||n){const u=Oa(a,li[r]);if(!c){i=!1;const l=bh[r]||r;s+=`${l}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function gi(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(oe.has(c)){r=!0;continue}else if(na(c)){i[c]=u;continue}else{const l=Oa(u,li[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=Ph(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function Xa(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function dr(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const le={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=dr(t,e.target.x),s=dr(t,e.target.y);return`${n}% ${s}%`}},Ah={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=St.parse(t);if(i.length>5)return s;const o=St.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 u=H(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},Rs={borderRadius:{...le,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:le,borderTopRightRadius:le,borderBottomLeftRadius:le,borderBottomRightRadius:le,boxShadow:Ah};function qa(t,{layout:e,layoutId:n}){return oe.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Rs[t]||t==="opacity")}function yi(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(at(s[r])||i&&at(i[r])||qa(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Ch(t){return window.getComputedStyle(t)}class Eh extends za{constructor(){super(...arguments),this.type="html",this.renderInstance=Xa}readValueFromInstance(e,n){if(oe.has(n))return this.projection?.isProjecting?ps(n):Ku(e,n);{const s=Ch(e),i=(na(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ya(e,n)}build(e,n,s){gi(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return yi(e,n,s)}}const Rh={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vh={offset:"strokeDashoffset",array:"strokeDasharray"};function Mh(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Rh:Vh;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const Dh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Za(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(gi(t,a,u),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=l?.transformBox??"fill-box",delete f.transformBox);for(const d of Dh)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&&Mh(f,i,o,r,!1)}const Ja=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"]),Qa=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kh(t,e,n,s){Xa(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Ja.has(i)?i:ci(i),e.attrs[i])}function tc(t,e,n){const s=yi(t,e,n);for(const i in t)if(at(t[i])||at(e[i])){const o=re.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class Lh extends za{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(oe.has(n)){const s=ka(n);return s&&s.default||0}return n=Ja.has(n)?n:ci(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return tc(e,n,s)}build(e,n,s){Za(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){kh(e,n,s,i)}mount(e){this.isSVGTag=Qa(e.tagName),super.mount(e)}}const Ih=pi.length;function ec(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ec(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Ih;n++){const s=pi[n],i=t.props[s];(Ee(i)||i===!1)&&(e[s]=i)}return e}function nc(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 Oh=[...di].reverse(),jh=di.length;function Fh(t){return e=>Promise.all(e.map(({animation:n,options:s})=>If(t,n,s)))}function Bh(t){let e=Fh(t),n=pr(),s=!0,i=!1;const o=u=>(l,f)=>{const h=Ut(t,f,u==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:d,transitionEnd:m,...y}=h;l={...l,...y,...m}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,f=ec(t.parent)||{},h=[],d=new Set;let m={},y=1/0;for(let x=0;x<jh;x++){const g=Oh[x],S=n[g],b=l[g]!==void 0?l[g]:f[g],A=Ee(b),V=g===u?S.isActive:null;V===!1&&(y=x);let R=b===f[g]&&b!==l[g]&&A;if(R&&(s||i)&&t.manuallyAnimateOnMount&&(R=!1),S.protectedKeys={...m},!S.isActive&&V===null||!b&&!S.prevProp||An(b)||typeof b=="boolean")continue;if(g==="exit"&&S.isActive&&V!==!0){S.prevResolvedValues&&(m={...m,...S.prevResolvedValues});continue}const T=Nh(S.prevProp,b);let M=T||g===u&&S.isActive&&!R&&A||x>y&&A,E=!1;const O=Array.isArray(b)?b:[b];let $=O.reduce(o(g),{});V===!1&&($={});const{prevResolvedValues:N={}}=S,K={...N,...$},J=W=>{M=!0,d.has(W)&&(E=!0,d.delete(W)),S.needsAnimating[W]=!0;const X=t.getValue(W);X&&(X.liveStyle=!1)};for(const W in K){const X=$[W],q=N[W];if(m.hasOwnProperty(W))continue;let p=!1;ws(X)&&ws(q)?p=!nc(X,q):p=X!==q,p?X!=null?J(W):d.add(W):X!==void 0&&d.has(W)?J(W):S.protectedKeys[W]=!0}S.prevProp=b,S.prevResolvedValues=$,S.isActive&&(m={...m,...$}),(s||i)&&t.blockInitialAnimation&&(M=!1);const ot=R&&T;M&&(!ot||E)&&h.push(...O.map(W=>{const X={type:g};if(typeof W=="string"&&(s||i)&&!ot&&t.manuallyAnimateOnMount&&t.parent){const{parent:q}=t,p=Ut(q,W);if(q.enteringChildren&&p){const{delayChildren:w}=p.transition||{};X.delay=Ta(q.enteringChildren,t,w)}}return{animation:W,options:X}}))}if(d.size){const x={};if(typeof l.initial!="boolean"){const g=Ut(t,Array.isArray(l.initial)?l.initial[0]:l.initial);g&&g.transition&&(x.transition=g.transition)}d.forEach(g=>{const S=t.getBaseTarget(g),b=t.getValue(g);b&&(b.liveStyle=!0),x[g]=S??null}),h.push({animation:x})}let v=!!h.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),s=!1,i=!1,v?e(h):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(u,l)),n[u].isActive=l;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=pr(),i=!0}}}function Nh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!nc(e,t):!1}function jt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pr(){return{animate:jt(!0),whileInView:jt(),whileHover:jt(),whileTap:jt(),whileDrag:jt(),whileFocus:jt(),exit:jt()}}function Vs(t,e){t.min=e.min,t.max=e.max}function gt(t,e){Vs(t.x,e.x),Vs(t.y,e.y)}function mr(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const sc=1e-4,_h=1-sc,$h=1+sc,ic=.01,Wh=0-ic,Uh=0+ic;function lt(t){return t.max-t.min}function zh(t,e,n){return Math.abs(t-e)<=n}function gr(t,e,n,s=.5){t.origin=s,t.originPoint=H(e.min,e.max,t.origin),t.scale=lt(n)/lt(e),t.translate=H(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_h&&t.scale<=$h||isNaN(t.scale))&&(t.scale=1),(t.translate>=Wh&&t.translate<=Uh||isNaN(t.translate))&&(t.translate=0)}function Se(t,e,n,s){gr(t.x,e.x,n.x,s?s.originX:void 0),gr(t.y,e.y,n.y,s?s.originY:void 0)}function yr(t,e,n,s=0){const i=s?H(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+lt(e)}function Gh(t,e,n,s){yr(t.x,e.x,n.x,s?.x),yr(t.y,e.y,n.y,s?.y)}function vr(t,e,n,s=0){const i=s?H(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+lt(e)}function pn(t,e,n,s){vr(t.x,e.x,n.x,s?.x),vr(t.y,e.y,n.y,s?.y)}function xr(t,e,n,s,i){return t-=e,t=dn(t,1/n,s),i!==void 0&&(t=dn(t,1/i,s)),t}function Hh(t,e=0,n=1,s=.5,i,o=t,r=t){if(At.test(e)&&(e=parseFloat(e),e=H(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=H(o.min,o.max,s);t===o&&(a-=e),t.min=xr(t.min,e,n,a,i),t.max=xr(t.max,e,n,a,i)}function wr(t,e,[n,s,i],o,r){Hh(t,e[n],e[s],e[i],e.scale,o,r)}const Kh=["x","scaleX","originX"],Yh=["y","scaleY","originY"];function Sr(t,e,n,s){wr(t.x,e,Kh,n?n.x:void 0,s?s.x:void 0),wr(t.y,e,Yh,n?n.y:void 0,s?s.y:void 0)}function br(t){return t.translate===0&&t.scale===1}function rc(t){return br(t.x)&&br(t.y)}function Tr(t,e){return t.min===e.min&&t.max===e.max}function Xh(t,e){return Tr(t.x,e.x)&&Tr(t.y,e.y)}function Pr(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function oc(t,e){return Pr(t.x,e.x)&&Pr(t.y,e.y)}function Ar(t){return lt(t.x)/lt(t.y)}function Cr(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Tt(t){return[t("x"),t("y")]}function qh(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=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:u,rotate:l,rotateX:f,rotateY:h,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}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 ac=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Zh=ac.length,Er=t=>typeof t=="string"?parseFloat(t):t,Rr=t=>typeof t=="number"||C.test(t);function Jh(t,e,n,s,i,o){i?(t.opacity=H(0,n.opacity??1,Qh(s)),t.opacityExit=H(e.opacity??1,0,td(s))):o&&(t.opacity=H(e.opacity??1,n.opacity??1,s));for(let r=0;r<Zh;r++){const a=ac[r];let c=Vr(e,a),u=Vr(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Rr(c)===Rr(u)?(t[a]=Math.max(H(Er(c),Er(u),s),0),(At.test(u)||At.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=H(e.rotate||0,n.rotate||0,s))}function Vr(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Qh=cc(0,.5,qo),td=cc(.5,.95,ut);function cc(t,e,n){return s=>s<t?0:s>e?1:n(ee(t,e,s))}function ed(t,e,n){const s=at(t)?t:xt(t);return s.start(oi("",s,e,n)),s.animation}function Re(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const nd=(t,e)=>t.depth-e.depth;class sd{constructor(){this.children=[],this.isDirty=!1}add(e){zs(this.children,e),this.isDirty=!0}remove(e){on(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nd),this.isDirty=!1,this.children.forEach(e)}}function id(t,e){const n=ct.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(mt(s),t(o-e))};return F.setup(s,!0),()=>mt(s)}function tn(t){return at(t)?t.get():t}class rd{constructor(){this.members=[]}add(e){zs(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&&(on(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(on(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){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const en={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gn=["","X","Y","Z"],od=1e3;let ad=0;function Hn(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function lc(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Ra(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",F,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&lc(s)}function uc({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=ad++,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(ud),this.nodes.forEach(gd),this.nodes.forEach(yd),this.nodes.forEach(fd)},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 sd)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Gs),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=hi(r)&&!lh(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,f=0;const h=()=>this.root.updateBlockedByResize=!1;F.read(()=>{f=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,l&&l(),l=id(h,250),en.hasAnimatedSinceResize&&(en.hasAnimatedSinceResize=!1,this.nodes.forEach(kr)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||bd,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),x=!this.targetLayout||!oc(this.targetLayout,d),g=!f&&h;if(this.options.layoutRoot||this.resumeFrom||g||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...ri(m,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(l,g)}else f||kr(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(vd),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&&lc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const f=this.path[l];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 u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(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(dd),this.nodes.forEach(Mr);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Dr);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pd),this.nodes.forEach(md),this.nodes.forEach(cd),this.nodes.forEach(ld)):this.nodes.forEach(Dr),this.clearAllSnapshots();const a=ct.now();rt.delta=bt(0,1e3/60,a-rt.timestamp),rt.timestamp=a,rt.isProcessing=!0,Fn.update.process(rt),Fn.preRender.process(rt),Fn.render.process(rt),rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ui.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hd),this.sharedNodes.forEach(xd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,F.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){F.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!lt(this.snapshot.measuredBox.x)&&!lt(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=st()),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&&!rc(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Ft(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Td(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return st();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pd))){const{scroll:u}=this.root;u&&(Pt(a.x,u.offset.x),Pt(a.y,u.offset.y))}return a}removeElementScroll(r){const a=st();if(gt(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:f}=u;u!==this.root&&l&&f.layoutScroll&&(l.wasRoot&&gt(a,r),Pt(a.x,l.offset.x),Pt(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||st();gt(u,r);for(let l=0;l<this.path.length;l++){const f=this.path[l];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Pt(u.x,-f.scroll.offset.x),Pt(u.y,-f.scroll.offset.y)),Ft(f.latestValues)&&Qe(u,f.latestValues,f.layout?.layoutBox)}return Ft(this.latestValues)&&Qe(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=st();gt(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Ft(u.latestValues))continue;let l;u.instance&&(Cs(u.latestValues)&&u.updateSnapshot(),l=st(),gt(l,u.measurePageBox())),Sr(a,u.latestValues,u.snapshot?.layoutBox,l)}return Ft(this.latestValues)&&Sr(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!==rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){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||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=rt.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=st(),this.targetWithTransforms=st()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gh(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):gt(this.target,this.layout.layoutBox),Ka(this.target,this.targetDelta)):gt(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||Cs(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=st(),this.relativeTargetOrigin=st(),pn(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),gt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;gt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;wh(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=st());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mr(this.prevProjectionDelta.x,this.projectionDelta.x),mr(this.prevProjectionDelta.y,this.projectionDelta.y)),Se(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Cr(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cr(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){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=qt(),this.projectionDelta=qt(),this.projectionDeltaWithTransform=qt()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},f=qt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=st(),d=c?c.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,v=this.getStack(),x=!v||v.members.length<=1,g=!!(y&&!x&&this.options.crossfade===!0&&!this.path.some(Sd));this.animationProgress=0;let S;this.mixTargetDelta=b=>{const A=b/1e3;Lr(f.x,r.x,A),Lr(f.y,r.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pn(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),wd(this.relativeTarget,this.relativeTargetOrigin,h,A),S&&Xh(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=st()),gt(S,this.relativeTarget)),y&&(this.animationValues=l,Jh(l,u,this.latestValues,A,g,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(mt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=F.update(()=>{en.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ed(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},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(od),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&fc(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||st();const f=lt(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+f;const h=lt(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+h}gt(a,c),Qe(a,l),Se(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new rd),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.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 u=this.getStack();u&&u.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 u={};c.z&&Hn("z",r,u,this.animationValues);for(let l=0;l<Gn.length;l++)Hn(`rotate${Gn[l]}`,r,u,this.animationValues),Hn(`skew${Gn[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);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=tn(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=tn(a?.pointerEvents)||""),this.hasProjected&&!Ft(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=qh(this.projectionDeltaWithTransform,this.treeScale,l);c&&(f=c(l,f)),r.transform=f;const{x:h,y:d}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const m in Rs){if(l[m]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:x}=Rs[m],g=f==="none"?l[m]:y(l[m],u);if(v){const S=v.length;for(let b=0;b<S;b++)r[v[b]]=g}else x?this.options.visualElement.renderState.vars[m]=g:r[m]=g}this.options.layoutId&&(r.pointerEvents=u===this?tn(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Mr),this.root.sharedNodes.clear()}}}function cd(t){t.updateLayout()}function ld(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;if(i==="size")Tt(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=lt(f);f.min=n[l].min,f.max=f.min+h});else if(i==="x"||i==="y"){const l=i==="x"?"y":"x";Vs(o?e.measuredBox[l]:e.layoutBox[l],n[l])}else fc(i,e.layoutBox,n)&&Tt(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=lt(n[l]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+h)});const r=qt();Se(r,n,e.layoutBox);const a=qt();o?Se(a,t.applyTransform(s,!0),e.measuredBox):Se(a,n,e.layoutBox);const c=!rc(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:f,layout:h}=l;if(f&&h){const d=t.options.layoutAnchor||void 0,m=st();pn(m,e.layoutBox,f.layoutBox,d);
vendor: 13,190 bytes, lines 2-10
2const y=st();pn(y,n,h.layoutBox,d),oc(m,y)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function ud(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 fd(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function hd(t){t.clearSnapshot()}function Mr(t){t.clearMeasurements()}function dd(t){t.isLayoutDirty=!0,t.updateLayout()}function Dr(t){t.isLayoutDirty=!1}function pd(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function md(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function kr(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function gd(t){t.resolveTargetDelta()}function yd(t){t.calcProjection()}function vd(t){t.resetSkewAndRotation()}function xd(t){t.removeLeadSnapshot()}function Lr(t,e,n){t.translate=H(e.translate,0,n),t.scale=H(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ir(t,e,n,s){t.min=H(e.min,n.min,s),t.max=H(e.max,n.max,s)}function wd(t,e,n,s){Ir(t.x,e.x,n.x,s),Ir(t.y,e.y,n.y,s)}function Sd(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bd={duration:.45,ease:[.4,0,.1,1]},Or=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),jr=Or("applewebkit/")&&!Or("chrome/")?Math.round:ut;function Fr(t){t.min=jr(t.min),t.max=jr(t.max)}function Td(t){Fr(t.x),Fr(t.y)}function fc(t,e,n){return t==="position"||t==="preserve-aspect"&&!zh(Ar(e),Ar(n),.2)}function Pd(t){return t!==t.root&&t.scroll?.wasRoot}const Ad=uc({attachResizeListener:(t,e)=>Re(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Kn={current:void 0},hc=uc({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Kn.current){const t=new Ad({});t.mount(window),t.setOptions({layoutScroll:!0}),Kn.current=t}return Kn.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),En=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Br(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Cd(...t){return e=>{let n=!1;const s=t.map(i=>{const o=Br(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():Br(t[i],null)}}}}function Ed(...t){return P.useCallback(Cd(...t),t)}class Rd extends P.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(we(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=we(s)&&s.offsetWidth||0,o=we(s)&&s.offsetHeight||0,r=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(r.height),a.width=parseFloat(r.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=o-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function Vd({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:o}){const r=P.useId(),a=P.useRef(null),c=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=P.useContext(En),l=t.props?.ref??t?.ref,f=Ed(a,l);return P.useInsertionEffect(()=>{const{width:h,height:d,top:m,left:y,right:v,bottom:x}=c.current;if(e||o===!1||!a.current||!h||!d)return;const g=n==="left"?`left: ${y}`:`right: ${v}`,S=s==="bottom"?`bottom: ${x}`:`top: ${m}`;a.current.dataset.motionPopId=r;const b=document.createElement("style");u&&(b.nonce=u);const A=i??document.head;return A.appendChild(b),b.sheet&&b.sheet.insertRule(`
3          [data-motion-pop-id="${r}"] {
4            position: absolute !important;
5            width: ${h}px !important;
6            height: ${d}px !important;
7            ${g}px !important;
8            ${S}px !important;
9          }
10        `),()=>{a.current?.removeAttribute("data-motion-pop-id"),A.contains(b)&&A.removeChild(b)}},[e]),Et.jsx(Rd,{isPresent:e,childRef:a,sizeRef:c,pop:o,children:o===!1?t:P.cloneElement(t,{ref:f})})}const Md=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,anchorY:c,root:u})=>{const l=Lt(Dd),f=P.useId();let h=!0,d=P.useMemo(()=>(h=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:m=>{l.set(m,!0);for(const y of l.values())if(!y)return;s&&s()},register:m=>(l.set(m,!1),()=>l.delete(m))}),[n,l,s]);return o&&h&&(d={...d}),P.useMemo(()=>{l.forEach((m,y)=>l.set(y,!1))},[n]),P.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),t=Et.jsx(Vd,{pop:r==="popLayout",isPresent:n,anchorX:a,anchorY:c,root:u,children:t}),Et.jsx(Tn.Provider,{value:d,children:t})};function Dd(){return new Map}function dc(t=!0){const e=P.useContext(Tn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=P.useId();P.useEffect(()=>{if(t)return i(o)},[t]);const r=P.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const Be=t=>t.key||"";function Nr(t){const e=[];return P.Children.forEach(t,n=>{P.isValidElement(n)&&e.push(n)}),e}const pm=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",anchorY:c="top",root:u})=>{const[l,f]=dc(r),h=P.useMemo(()=>Nr(t),[t]),d=r&&!l?[]:h.map(Be),m=P.useRef(!0),y=P.useRef(h),v=Lt(()=>new Map),x=P.useRef(new Set),[g,S]=P.useState(h),[b,A]=P.useState(h);bn(()=>{m.current=!1,y.current=h;for(let T=0;T<b.length;T++){const M=Be(b[T]);d.includes(M)?(v.delete(M),x.current.delete(M)):v.get(M)!==!0&&v.set(M,!1)}},[b,d.length,d.join("-")]);const V=[];if(h!==g){let T=[...h];for(let M=0;M<b.length;M++){const E=b[M],O=Be(E);d.includes(O)||(T.splice(M,0,E),V.push(E))}return o==="wait"&&V.length&&(T=V),A(Nr(T)),S(h),null}const{forceRender:R}=P.useContext(Us);return Et.jsx(Et.Fragment,{children:b.map(T=>{const M=Be(T),E=r&&!l?!1:h===b||d.includes(M),O=()=>{if(x.current.has(M))return;if(v.has(M))x.current.add(M),v.set(M,!0);else return;let $=!0;v.forEach(N=>{N||($=!1)}),$&&(R?.(),A(y.current),r&&f?.(),s&&s())};return Et.jsx(Md,{isPresent:E,initial:!m.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:u,onExitComplete:E?void 0:O,anchorX:a,anchorY:c,children:T},M)})})},pc=P.createContext({strict:!1}),_r={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 $r=!1;function kd(){if($r)return;const t={};for(const e in _r)t[e]={isEnabled:n=>_r[e].some(s=>!!n[s])};Ua(t),$r=!0}function mc(){return kd(),gh()}function Ld(t){const e=mc();for(const n in t)e[n]={...e[n],...t[n]};Ua(e)}const Id=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 mn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Id.has(t)}let gc=t=>!mn(t);function Od(t){typeof t=="function"&&(gc=e=>e.startsWith("on")?!mn(e):t(e))}try{Od(require("@emotion/is-prop-valid").default)}catch{}function jd(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||at(t[i])||(gc(i)||n===!0&&mn(i)||!e&&!mn(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Rn=P.createContext({});function Fd(t,e){if(Cn(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ee(n)?n:void 0,animate:Ee(s)?s:void 0}}return t.inherit!==!1?e:{}}function Bd(t){const{initial:e,animate:n}=Fd(t,P.useContext(Rn));return P.useMemo(()=>({initial:e,animate:n}),[Wr(e),Wr(n)])}function Wr(t){return Array.isArray(t)?t.join(" "):t}const vi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yc(t,e,n){for(const s in e)!at(e[s])&&!qa(s,n)&&(t[s]=e[s])}function Nd({transformTemplate:t},e){return P.useMemo(()=>{const n=vi();return gi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function _d(t,e){const n=t.style||{},s={};return yc(s,n,t),Object.assign(s,Nd(t,e)),s}function $d(t,e){const n={},s=_d(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 vc=()=>({...vi(),attrs:{}});function Wd(t,e,n,s){const i=P.useMemo(()=>{const o=vc();return Za(o,e,Qa(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};yc(o,t.style,t),i.style={...o,...i.style}}return i}const Ud=["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 xi(t){return typeof t!="string"||t.includes("-")?!1:!!(Ud.indexOf(t)>-1||/[A-Z]/u.test(t))}function zd(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??xi(t)?Wd:$d)(e,s,i,t),u=jd(e,typeof t=="string",o),l=t!==P.Fragment?{...u,...c,ref:n}:{},{children:f}=e,h=P.useMemo(()=>at(f)?f.get():f,[f]);return P.createElement(t,{...l,children:h})}function Gd({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Hd(n,s,i,t),renderState:e()}}function Hd(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=tn(o[h]);let{initial:r,animate:a}=t;const c=Cn(t),u=$a(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const f=l?a:r;if(f&&typeof f!="boolean"&&!An(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=ai(t,h[d]);if(m){const{transitionEnd:y,transition:v,...x}=m;for(const g in x){let S=x[g];if(Array.isArray(S)){const b=l?S.length-1:0;S=S[b]}S!==null&&(i[g]=S)}for(const g in y)i[g]=y[g]}}}return i}const xc=t=>(e,n)=>{const s=P.useContext(Rn),i=P.useContext(Tn),o=()=>Gd(t,e,s,i);return n?o():Lt(o)},Kd=xc({scrapeMotionValuesFromProps:yi,createRenderState:vi}),Yd=xc({scrapeMotionValuesFromProps:tc,createRenderState:vc}),Xd=Symbol.for("motionComponentSymbol");function qd(t,e,n){const s=P.useRef(n);P.useInsertionEffect(()=>{s.current=n});const i=P.useRef(null);return P.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const wc=P.createContext({});function Kt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Zd(t,e,n,s,i,o){const{visualElement:r}=P.useContext(Rn),a=P.useContext(pc),c=P.useContext(Tn),u=P.useContext(En),l=u.reducedMotion,f=u.skipAnimations,h=P.useRef(null),d=P.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:l,skipAnimations:f,isSVG:o}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,y=P.useContext(wc);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Jd(h.current,n,i,y);const v=P.useRef(!1);P.useInsertionEffect(()=>{m&&v.current&&m.update(n,c)});const x=n[Ea],g=P.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return bn(()=>{d.current=!0,m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),g.current&&m.animationState&&m.animationState.animateChanges())}),P.useEffect(()=>{m&&(!g.current&&m.animationState&&m.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),g.current=!1),m.enteringChildren=void 0)}),m}function Jd(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Sc(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Kt(a),visualElement:t,animationType:typeof o=="str
10ing"?o:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function Sc(t){if(t)return t.options.allowProjection!==!1?t.projection:Sc(t.parent)}function Yn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Ld(s);const o=n?n==="svg":xi(t),r=o?Yd:Kd;function a(u,l){let f;const h={...P.useContext(En),...u,layoutId:Qd(u)},{isStatic:d}=h,m=Bd(u),y=r(u,d);if(!d&&typeof window<"u"){tp();const v=ep(h);f=v.MeasureLayout,m.visualElement=Zd(t,y,h,i,v.ProjectionNode,o)}return Et.jsxs(Rn.Provider,{value:m,children:[f&&m.visualElement?Et.jsx(f,{visualElement:m.visualElement,...h}):null,zd(t,u,qd(y,m.visualElement,l),y,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=P.forwardRef(a);return c[Xd]=t,c}function Qd({layoutId:t}){const e=P.useContext(Us).id;return e&&t!==void 0?e+"-"+t:t}function tp(t,e){P.useContext(pc).strict}function ep(t){const e=mc(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function np(t,e){if(typeof Proxy>"u")return Yn;const n=new Map,s=(o,r)=>Yn(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,Yn(r,void 0,t,e)),n.get(r))})}const sp=(t,e)=>e.isSVG??xi(t)?new Lh(e):new Eh(e,{allowProjection:t!==P.Fragment});class ip extends Ot{constructor(e){super(e),e.animationState||(e.animationState=Bh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();An(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(){this.node.animationState.reset(),this.unmountControls?.()}}let rp=0;class op extends Ot{constructor(){super(...arguments),this.id=rp++,this.isExitComplete=!1}update(){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:o,custom:r}=this.node.getProps();if(typeof o=="string"){const a=Ut(this.node,o,r);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const f in l)this.node.getValue(f)?.jump(l[f])}}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 ap={animation:{Feature:ip},exit:{Feature:op}};function Oe(t){return{point:{x:t.pageX,y:t.pageY}}}const cp=t=>e=>fi(e)&&t(e,Oe(e));function be(t,e,n,s){return Re(t,e,cp(n),s)}const bc=({current:t})=>t?t.ownerDocument.defaultView:null,Ur=(t,e)=>Math.abs(t-e);function lp(t,e){const n=Ur(t.x,e.x),s=Ur(t.y,e.y);return Math.sqrt(n**2+s**2)}const zr=new Set(["auto","scroll"]);class Tc{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=Ne(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Xn(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=lp(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:v}=d,{timestamp:x}=rt;this.history.push({...v,timestamp:x});const{onStart:g,onMove:S}=this.handlers;m||(g&&g(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=Ne(m,this.transformPagePoint),F.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:x}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Xn(d.type==="pointercancel"?this.lastMoveEventInfo:Ne(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,g),v&&v(d,g)},!fi(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=Oe(e),u=Ne(c,this.transformPagePoint),{point:l}=u,{timestamp:f}=rt;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,Xn(u,this.history)),this.removeListeners=ke(be(this.contextWindow,"pointermove",this.handlePointerMove),be(this.contextWindow,"pointerup",this.handlePointerUp),be(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(zr.has(s.overflowX)||zr.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),F.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 Ne(t,e){return e?{point:e(t.point)}:t}function Gr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xn({point:t},e){return{point:t,delta:Gr(t,Pc(e)),offset:Gr(t,up(e)),velocity:fp(e,.1)}}function up(t){return t[0]}function Pc(t){return t[t.length-1]}function fp(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Pc(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>ht(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>ht(e)*2&&(s=t[1]);const o=dt(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 hp(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?H(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?H(n,t,s.max):Math.min(t,n)),t}function Hr(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 dp(t,{top:e,left:n,bottom:s,right:i}){return{x:Hr(t.x,n,i),y:Hr(t.y,e,s)}}function Kr(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 pp(t,e){return{x:Kr(t.x,e.x),y:Kr(t.y,e.y)}}function mp(t,e){let n=.5;const s=lt(t),i=lt(e);return i>s?n=ee(e.min,e.max-s,t.min):s>i&&(n=ee(t.min,t.max-i,e.min)),bt(0,1,n)}function gp(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 Ms=.35;function yp(t=Ms){return t===!1?t=0:t===!0&&(t=Ms),{x:Yr(t,"left","right"),y:Yr(t,"top","bottom")}}function Yr(t,e,n){return{min:Xr(t,e),max:Xr(t,n)}}function Xr(t,e){return typeof t=="number"?t:t[e]||0}const vp=new WeakMap;class xp{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=st(),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(Oe(f).point),this.stopAnimation()},r=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Hf(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),Tt(x=>{let g=this.getAxisMotionValue(x).get()||0;if(At.test(g)){const{projection:S}=this.visualElement;if(S&&S.layout){const b=S.layout.layoutBox[x];b&&(g=lt(b)*(parseFloat(g)/100))}}this.originPoint[x]=g}),y&&F.update(()=>y(f,h),!1,!0),Ss(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:x}=h;if(m&&this.currentDirection===null){this.currentDirection=Sp(x),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,x),this.updateAxis("y",h.point,x),this.visualElement.render(),v&&F.update(()=>v(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Tc(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:bc(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&&F.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||!_e(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=hp(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Kt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=dp(s.layoutBox,e):this.constraints=!1,this.elastic=yp(n),i!==this.constraints&&!Kt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Tt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=gp(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Kt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Sh(s,i.root,this.visualElement.getTransformPagePoint());let r=pp(i.layout.layoutBox,o);if(n){const a=n(vh(r));this.hasMutatedConstraints=!!a,a&&(r=Ga(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=Tt(l=>{if(!_e(l,n,this.currentDirection))return;let f=c&&c[l]||{};(r===!0||r===l)&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[l]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(l,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ss(this.visualElement,e),s.start(oi(e,s,0,n,this.visualElement,!1))}stopAnimation(){Tt(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){Tt(n=>{const{drag:s}=this.getProps();if(!_e(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]-H(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Kt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=mp({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(),Tt(r=>{if(!_e(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(H(c,u,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;vp.set(this.visualElement,this);const e=this.visualElement.current,n=be(e,"pointerdown",u=>{const{drag:l,dragListener:f=!0}=this.getProps(),h=u.target,d=h!==e&&Jf(h);l&&f&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();Kt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=wp(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),F.read(i);const a=Re(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(Tt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[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=Ms,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function qr(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function wp(t,e,n){const s=As(t,qr(n)),i=As(e,qr(n));return()=>{s(),i()}}function _e(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Sp(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class bp extends Ot{constructor(e){super(e),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new xp(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}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 qn=t=>(e,n)=>{t&&F.update(()=>t(e,n),!1,!0)};class Tp extends Ot{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(e){this.session=new Tc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:bc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:qn(e),onStart:qn(n),onMove:qn(s),onEnd:(o,r)=>{delete this.session,i&&F.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=be(this.
vendor: 5,304 bytes, line 10
10node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zn=!1;class Pp extends P.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),Zn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),en.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}),Zn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||F.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(),ui.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Zn=!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 Ac(t){const[e,n]=dc(),s=P.useContext(Us);return Et.jsx(Pp,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(wc),isPresent:e,safeToRemove:n})}const Ap={pan:{Feature:Tp},drag:{Feature:bp,ProjectionNode:hc,MeasureLayout:Ac}};function Zr(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&&F.postRender(()=>o(e,Oe(e)))}class Cp extends Ot{mount(){const{current:e}=this.node;e&&(this.unmount=Yf(e,(n,s)=>(Zr(this.node,s,"Start"),i=>Zr(this.node,i,"End"))))}unmount(){}}class Ep extends Ot{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=ke(Re(this.node.current,"focus",()=>this.onFocus()),Re(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jr(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&&F.postRender(()=>o(e,Oe(e)))}class Rp extends Ot{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=th(e,(i,o)=>(Jr(this.node,o,"Start"),(r,{success:a})=>Jr(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Ds=new WeakMap,Jn=new WeakMap,Vp=t=>{const e=Ds.get(t.target);e&&e(t)},Mp=t=>{t.forEach(Vp)};function Dp({root:t,...e}){const n=t||document;Jn.has(n)||Jn.set(n,{});const s=Jn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Mp,{root:t,...e})),s[i]}function kp(t,e,n){const s=Dp(e);return Ds.set(t,n),s.observe(t),()=>{Ds.delete(t),s.unobserve(t)}}const Lp={some:0,all:1};class Ip extends Ot{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();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:Lp[i]},a=c=>{const{isIntersecting:u}=c;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:l,onViewportLeave:f}=this.node.getProps(),h=u?l:f;h&&h(c)};this.stopObserver=kp(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(Op(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Op({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const jp={inView:{Feature:Ip},tap:{Feature:Rp},focus:{Feature:Ep},hover:{Feature:Cp}},Fp={layout:{ProjectionNode:hc,MeasureLayout:Ac}},Bp={...ap,...jp,...Ap,...Fp},mm=np(Bp,sp);function gn(t){return typeof window>"u"?!1:t?ga():ii()}const Np=50,Qr=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_p=()=>({time:0,x:Qr(),y:Qr()}),$p={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function to(t,e,n,s){const i=n[e],{length:o,position:r}=$p[e],a=i.current,c=n.time;i.current=Math.abs(t[`scroll${r}`]),i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ee(0,i.scrollLength,i.current);const u=s-c;
10i.velocity=u>Np?0:Hs(i.current-a,u)}function Wp(t,e,n){to(t,"x",e,n),to(t,"y",e,n),e.time=n}function Up(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(we(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const ks={start:0,center:.5,end:1};function eo(t,e,n=0){let s=0;if(t in ks&&(t=ks[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const zp=[0,0];function Gp(t,e,n,s){let i=Array.isArray(t)?t:zp,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,ks[t]?t:"0"]),o=eo(i[0],n,s),r=eo(i[1],e),o-r}const pe={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Hp={x:0,y:0};function Kp(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function Yp(t,e,n){const{offset:s=pe.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?Up(i,t):Hp,c=i===t?{width:t.scrollWidth,height:t.scrollHeight}:Kp(i),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let l=!e[o].interpolate;const f=s.length;for(let h=0;h<f;h++){const d=Gp(s[h],u[r],c[r],a[o]);!l&&d!==e[o].interpolatorOffsets[h]&&(l=!0),e[o].offset[h]=d}l&&(e[o].interpolate=ti(e[o].offset,fa(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=bt(0,1,e[o].interpolate(e[o].current))}function Xp(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function qp(t,e,n,s={}){return{measure:i=>{Xp(t,s.target,n),Wp(t,n,i),(s.offset||s.target)&&Yp(t,n,s)},notify:()=>e(n)}}const Ht=new WeakMap,no=new WeakMap,Qn=new WeakMap,so=new WeakMap,$e=new WeakMap,io=t=>t===document.scrollingElement?window:t;function Cc(t,{container:e=document.scrollingElement,trackContentSize:n=!1,...s}={}){if(!e)return ut;let i=Qn.get(e);i||(i=new Set,Qn.set(e,i));const o=_p(),r=qp(e,t,o,s);if(i.add(r),!Ht.has(e)){const c=()=>{for(const h of i)h.measure(rt.timestamp);F.preUpdate(u)},u=()=>{for(const h of i)h.notify()},l=()=>F.read(c);Ht.set(e,l);const f=io(e);window.addEventListener("resize",l),e!==document.documentElement&&no.set(e,As(e,l)),f.addEventListener("scroll",l),l()}
10if(n&&!$e.has(e)){const c=Ht.get(e),u={width:e.scrollWidth,height:e.scrollHeight};so.set(e,u);const l=()=>{const h=e.scrollWidth,d=e.scrollHeight;(u.width!==h||u.height!==d)&&(c(),u.width=h,u.height=d)},f=F.read(l,!0);$e.set(e,f)}const a=Ht.get(e);return F.read(a,!1,!0),()=>{mt(a);const c=Qn.get(e);if(!c||(c.delete(r),c.size))return;const u=Ht.get(e);Ht.delete(e),u&&(io(e).removeEventListener("scroll",u),no.get(e)?.(),window.removeEventListener("resize",u));const l=$e.get(e);l&&(mt(l),$e.delete(e)),so.delete(e)}}const Zp=[[pe.Enter,"entry"],[pe.Exit,"exit"],[pe.Any,"cover"],[pe.All,"contain"]],ro={start:0,end:1};function Jp(t){const e=t.trim().split(/\s+/);if(e.length!==2)return;const n=ro[e[0]],s=ro[e[1]];if(!(n===void 0||s===void 0))return[n,s]}function Qp(t){if(t.length!==2)return;const e=[];for(const n of t)if(Array.isArray(n))e.push(n);else if(typeof n=="string"){const s=Jp(n);if(!s)return;e.push(s)}else return;return e}function tm(t,e){const n=Qp(t);if(!n)return!1;for(let s=0;s<2;s++){const i=n[s],o=e[s];if(i[0]!==o[0]||i[1]!==o[1])return!1}return!0}function wi(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[e,n]of Zp)if(tm(t,e))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const oo=new Map;function ao(t){const e={value:0},n=Cc(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function Ec({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);let i=oo.get(e);i||(i=new Map,oo.set(e,i));const o=n.target??"self";let r=i.get(o);r||(r={},i.set(o,r));const a=s+(n.offset??[]).join(",");return r[a]||(n.target&&gn(n.target)?wi(n.offset)?r[a]=new ViewTimeline({subject:n.target,axis:s}):r[a]=ao({container:e,...n}):gn()?r[a]=new ScrollTimeline({source:e,axis:s}):r[a]=ao({container:e,...n})),r[a]}function em(t,e){const n=Ec(e),s=e.target?wi(e.offset):void 0,i=e.target?gn(e.target)&&!!s:gn();return t.attachTimeline({timeline:i?n:void 0,...s&&i&&{rangeStart:s.rangeStart,rangeEnd:s.rangeEnd},observe:o=>(o.pause(),_a(r=>{o.time=o.iterationDuration*r},n))})}function nm(t){return t.length===2}function sm(t,e){return nm(t)?Cc(n=>{t(n[e.axis].progress,n)},e):_a(t,Ec(e))}function Rc(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return ut;const i={axis:e,container:n,...s};return typeof t=="function"?sm(t,i):em(t,i)}const im=()=>({scrollX:xt(0),scrollY:xt(0),scrollXProgress:xt(0),scrollYProgress:xt(0)}),We=t=>t?!t.current:!1;function co(t,e,n,s){return{factory:i=>Rc(i,{...e,axis:t,container:n?.current||void 0,target:s?.current||void 0}),times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function rm(t,e){return typeof window>"u"?!1:t?ga()&&!!wi(e):ii()}function gm({container:t,target:e,...n}={}){const s=Lt(im);rm(e,n.offset)&&(s.scrollXProgress.accelerate=co("x",n,t,e),s.scrollYProgress.accelerate=co("y",n,t,e));const i=P.useRef(null),o=P.useRef(!1),r=P.useCallback(()=>(i.current=Rc((a,{x:c,y:u})=>{s.scrollX.set(c.current),s.scrollXProgress.set(c.progress),s.scrollY.set(u.current),s.scrollYProgress.set(u.progress)},{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{i.current?.()}),[t,e,JSON.stringify(n.offset)]);return bn(()=>{if(o.current=!1,We(t)||We(e)){o.current=!0;return}else return r()},[r]),P.useEffect(()=>{if(o.current)return Ae(!We(t)),Ae(!We(e)),r()},[r]),s}function om(t){const e=Lt(()=>xt(t)),{isStatic:n}=P.useContext(En);if(n){const[,s]=P.useState(t);P.useEffect(()=>e.on("change",s),[])}return e}function Vc(t,e){const n=om(e()),s=()=>n.set(e());return s(),bn(()=>{const i=()=>F.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),mt(s)}}),n}function am(t){xe.current=[],t();const e=Vc(xe.current,t);return xe.current=void 0,e}function cm(t,e,n,s){if(typeof t=="function")return am(t);if(n!==void 0&&!Array.isArray(n)&&typeof e!="function")return lm(t,e,n,s);const r=typeof e=="function"?e:uh(e,n,s),a=Array.isArray(t)?lo(t,r):lo([t],([u])=>r(u)),c=Array.isArray(t)?void 0:t.accelerate;return c&&!c.isTransformed&&typeof e!="function"&&Array.isArray(n)&&s?.clamp!==!1&&(a.accelerate={...c,times:e,keyframes:n,isTransformed:!0}),a}function lo(t,e){const n=Lt(()=>[]);return Vc(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function lm(t,e,n,s){const i=Lt(()=>Object.keys(n)),o=Lt(()=>({}));for(const r of i)o[r]=cm(t,e,n[r],s);return o}function ym(){!mi.current&&Wa();const[t]=P.useState(fn.current);return t}export{pm as A,hm as O,um as R,P as a,gm as b,cm as c,ft as d,Dc as g,Et as j,mm as m,Ws as p,uo as r,ym as u,fm as v,_l as y};
11//# sourceMappingURL=vendor-ui-DWksU_uq.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.