1import{r as v,j as at}from"./react-daO8XSXc.js";const Be=v.createContext({});function Z(t){const e=v.useRef(null);return e.current===null&&(e.current=t()),e.current}const Cc=typeof window<"u",Qt=Cc?v.useLayoutEffect:v.useEffect,ge=v.createContext(null);function Rs(t,e){t.indexOf(e)===-1&&t.push(e)}function qt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Mc([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s<t.length){const i=n<0?t.length+n:n,[r]=t.splice(e,1);t.splice(i,0,r)}return t}const ht=(t,e,n)=>n>e?e:n<t?t:n;function Vc(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let gm=()=>{},An=()=>{};const xt={},br=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Cr=t=>typeof t=="object"&&t!==null,Mr=t=>/^0[^.\s]+$/u.test(t);function Ls(t){let e;return()=>(e===void 0&&(e=t()),e)}const nt=t=>t,Ue=(...t)=>t.reduce((e,n)=>s=>n(e(s))),Zt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class ks{constructor(){this.subscriptions=[]}add(e){return Rs(this.subscriptions,e),()=>qt(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 r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const X=t=>t*1e3,gt=t=>t/1e3,Is=(t,e)=>e?t*(1e3/e):0,qn=new Set;function ym(t){return qn.has(t)}function Ec(t,e,n){t||qn.has(e)||(console.warn(Vc(e,n)),qn.add(e))}const ln=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},Vr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Dc=1e-7,Rc=12;function Lc(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Vr(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Dc&&++a<Rc);return o}function Ke(t,e,n,s){if(t===e&&n===s)return nt;const i=r=>Lc(r,0,1,t,n);return r=>r===0||r===1?r:Vr(i(r),e,s)}const Er=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Bs=t=>e=>1-t(1-e),Dr=Ke(.33,1.53,.69,.99),Os=Bs(Dr),Rr=Er(Os),Lr=t=>t>=1?1:(t*=2)<1?.5*Os(t):.5*(2-Math.pow(2,-10*(t-1))),Fs=t=>1-Math.sin(Math.acos(t)),kr=Bs(Fs),Ir=Er(Fs),kc=Ke(.42,0,1,1),Ic=Ke(0,0,.58,1),Br=Ke(.42,0,.58,1);function vm(t,e="end"){return n=>{n=e==="end"?Math.min(n,.999):Math.max(n,.001);const s=n*t,i=e==="end"?Math.floor(s):Math.ceil(s);return ht(0,1,i/t)}}const Or=t=>Array.isArray(t)&&typeof t[0]!="number";function Fr(t,e){return Or(t)?t[ln(0,t.length,e)]:t}const js=t=>Array.isArray(t)&&typeof t[0]=="number",Bc={linear:nt,easeIn:kc,easeInOut:Br,easeOut:Ic,circIn:Fs,circInOut:Ir,circOut:kr,backIn:Os,backInOut:Rr,backOut:Dr,anticipate:Lr},Oc=t=>typeof t=="string",Zn=t=>{if(js(t)){An(t.length===4);const[e,n,s,i]=t;return Ke(e,n,s,i)}else if(Oc(t))return Bc[t];return t},Ae=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Fc(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(c.schedule(u),t()),u(o)}const c={schedule:(u,l=!1,f=!1)=>{const d=f&&s?e:n;return l&&r.add(u),d.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0;const l=e;e=n,n=l,e.forEach(a),e.clear(),s=!1,i&&(i=!1,c.process(u))}};return c}const jc=40;function jr(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ae.reduce((x,T)=>(x[T]=Fc(r),x),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:f,preRender:h,render:d,postRender:p}=o,y=()=>{const x=xt.useManualTiming,T=x?i.timestamp:performance.now();n=!1,x||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,jc),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),f.process(i),h.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},g=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Ae.reduce((x,T)=>{const S=o[T];return x[T]=(D,V=!1,P=!1)=>(n||g(),S.schedule(D,V,P)),x},{}),cancel:x=>{for(let T=0;T<Ae.length;T++)o[Ae[T]].cancel(x)},state:i,steps:o}}const{schedule:E,cancel:ct,state:$,steps:ae}=jr(typeof requestAnimationFrame<"u"?requestAnimationFrame:nt,!0);let en;function Wc(){en=void 0}const rt={now:()=>(en===void 0&&rt.set($.isProcessing||xt.useManualTiming?$.timestamp:performance.now()),en),set
vendor: 14,234 bytes, line 1
1:t=>{en=t,queueMicrotask(Wc)}},Wr=t=>e=>typeof e=="string"&&e.startsWith(t),Ws=Wr("--"),Nc=Wr("var(--"),Ns=t=>Nc(t)?$c.test(t.split("/*")[0].trim()):!1,$c=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Di(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const ye={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Oe={...ye,transform:t=>ht(0,1,t)},Xe={...ye,default:1},Me=t=>Math.round(t*1e5)/1e5,$s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Uc(t){return t==null}const Kc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Us=(t,e)=>n=>!!(typeof n=="string"&&Kc.test(n)&&n.startsWith(t)||e&&!Uc(n)&&Object.prototype.hasOwnProperty.call(n,e)),Nr=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match($s);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},zc=t=>ht(0,255,t),Rn={...ye,transform:t=>Math.round(zc(t))},zt={test:Us("rgb","red"),parse:Nr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Rn.transform(t)+", "+Rn.transform(e)+", "+Rn.transform(n)+", "+Me(Oe.transform(s))+")"};function Hc(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 Jn={test:Us("#"),parse:Hc,transform:zt.transform},ze=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Vt=ze("deg"),bt=ze("%"),b=ze("px"),Gc=ze("vh"),Xc=ze("vw"),Ri={...bt,parse:t=>bt.parse(t)/100,transform:t=>bt.transform(t*100)},se={test:Us("hsl","hue"),parse:Nr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+bt.transform(Me(e))+", "+bt.transform(Me(n))+", "+Me(Oe.transform(s))+")"},q={test:t=>zt.test(t)||Jn.test(t)||se.test(t),parse:t=>zt.test(t)?zt.parse(t):se.test(t)?se.parse(t):Jn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?zt.transform(t):se.transform(t),getAnimatableNone:t=>{const e=q.parse(t);return e.alpha=0,q.transform(e)}},Yc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _c(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match($s))==null?void 0:e.length)||0)+(((n=t.match(Yc))==null?void 0:n.length)||0)>0}const $r="number",Ur="color",qc="var",Zc="var(",Li="${}",Jc=/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 le(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Jc,c=>(q.test(c)?(s.color.push(r),i.push(Ur),n.push(q.parse(c))):c.startsWith(Zc)?(s.var.push(r),i.push(qc),n.push(c)):(s.number.push(r),i.push($r),n.push(parseFloat(c))),++r,Li)).split(Li);return{values:n,split:a,indexes:s,types:i}}function Qc(t){return le(t).values}function Kr({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===$r?i+=Me(s[r]):o===Ur?i+=q.transform(s[r]):i+=s[r]}return i}}function tu(t){return Kr(le(t))}const eu=t=>typeof t=="number"?0:q.test(t)?q.getAnimatableNone(t):t,nu=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:eu(t);function su(t){const e=le(t);return Kr(e)(e.values.map((s,i)=>nu(s,e.split[i])))}const wt={test:_c,parse:Qc,createTransformer:tu,getAnimatableNone:su};function Ln(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 iu({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Ln(c,a,t+1/3),r=Ln(c,a,t),o=Ln(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function fn(t,e){return n=>n>0?e:t}const W=(t,e,n)=>t+(e-t)*n,kn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},ou=[Jn,zt,se],ru=t=>ou.find(e=>e.test(t));function ki(t){const e=ru(t);if(!e)return!1;let n=e.parse(t);return e===se&&(n=iu(n)),n}const Ii=(t,e)=>{const n=ki(t),s=ki(e);if(!n||!s)return fn(t,e);const i={...n};return r=>(i.red=kn(n.red,s.red,r),i.green=kn(n.green,s.green,r),i.blue=kn(n.blue,s.blue,r),i.alpha=W(n.alpha,s.alpha,r),zt.transform(i))},Qn=new Set(["none","hidden"]);function au(t,e){return Qn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function cu(t,e){return n=>W(t,e,n)}function Ks(t){return typeof t=="number"?cu:typeof t=="string"?Ns(t)?fn:q.test(t)?Ii:fu:Array.isArray(t)?zr:typeof t=="object"?q.test(t)?Ii:uu:fn}function zr(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>Ks(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function uu(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Ks(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function lu(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const fu=(t,e)=>{const n=wt.createTransformer(e),s=le(t),i=le(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?Qn.has(t)&&!i.values.length||Qn.has(e)&&!s.values.length?au(t,e):Ue(zr(lu(s,i),i.values),n):fn(t,e)};function Hr(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?W(t,e,n):Ks(t)(t,e)}const hu=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>E.update(e,n),stop:()=>ct(e),now:()=>$.isProcessing?$.timestamp:rt.now()}},Gr=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},hn=2e4;function zs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<hn;)e+=n,s=t.next(e);return e>=hn?1/0:e}function Xr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(zs(s),hn);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:gt(i)}}const Y={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 ts(t,e){return t*Math.sqrt(1-e*e)}const du=12;function pu(t,e,n){let s=n;for(let i=1;i<du;i++)s=s-t(s)/e(s);return s}const In=.001;function mu({duration:t=Y.duration,bounce:e=Y.bounce,velocity:n=Y.velocity,mass:s=Y.mass}){let i,r,o=1-e;o=ht(Y.minDamping,Y.maxDamping,o),t=ht(Y.minDuration,Y.maxDuration,gt(t)),o<1?(i=u=>{const l=u*o,f=l*t,h=l-n,d=ts(u,o),p=Math.exp(-f);return In-h/d*p},r=u=>{const f=u*o*t,h=f*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,p=Math.exp(-f),y=ts(Math.pow(u,2),o);return(-i(u)+In>0?-1:1)*((h-d)*p)/y}):(i=u=>{const l=Math.exp(-u*t),f=(u-n)*t+1;return-In+l*f},r=u=>{const l=Math.exp(-u*t),f=(n-u)*(t*t);return l*f});const a=5/t,c=pu(i,r,a);if(t=X(t),isNaN(c))return{stiffness:Y.stiffness,damping:Y.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const gu=["duration","bounce"],yu=["stiffness","damping","mass"];function Bi(t,e){return e.some(n=>t[n]!==void 0)}function vu(t){let e={velocity:Y.velocity,stiffness:Y.stiffness,damping:Y.damping,mass:Y.mass,isResolvedFromDuration:!1,...t};if(!Bi(t,yu)&&Bi(t,gu))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*ht(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Y.mass,stiffness:i,damping:r}}else{const n=mu({...t,velocity:0});e={...e,...n,mass:Y.mass},e.isResolvedFromDuration=!0}return e}function Fe(t=Y.visualDuration,e=Y.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:u,mass:l,duration:f,velocity:h,isResolvedFromDuration:d}=vu({...n,velocity:-gt(n.velocity||0)}),p=h||0,y=u/(2*Math.sqrt(c*l)),g=o-r,m=gt(Math.sqrt(c/l)),w=Math.abs(g)<5;s||(s=w?Y.restSpeed.granular:Y.restSpeed.default),i||(i=w?Y.restDelta.granular:Y.restDelta.default);let x,T,S,D,V,P;if(y<1)S=ts(m,y),D=(p+y*m*g)/S,x=M=>{const I=Math.exp(-y*m*M);return o-I*(D*Math.sin(S*M)+g*Math.cos(S*M))},V=y*m*D+g*S,P=y*m*g-D*S,T=M=>Math.exp(-y*m*M)*(V*Math.sin(S*M)+P*Math.cos(S*M));else if(y===1){x=I=>o-Math.exp(-m*I)*(g+(p+m*g)*I);const M=p+m*g;T=I=>Math.exp(-m*I)*(m*M*I-p)}else{const M=m*Math.sqrt(y*y-1);x=ot=>{const st=Math.exp(-y*m*ot),R=Math.min(M*ot,300);return o-st*((p+y*m*g)*Math.sinh(R)+M*g*Math.cosh(R))/M};const I=(p+y*m*g)/M,z=y*m*I-g*M,J=y*m*g-I*M;T=ot=>{const st=Math.exp(-y*m*ot),R=Math.min(M*ot,300);return st*(z*Math.sinh(R)+J*Math.cosh(R))}}const C={calculatedDuration:d&&f||null,velocity:M=>X(T(M)),next:M=>{if(!d&&y<1){const z=Math.exp(-y*m*M),J=Math.sin(S*M),ot=Math.cos(S*M),st=o-z*(D*J+g*ot),R=X(z*(V*J+P*ot));return a.done=Math.abs(R)<=s&&Math.abs(o-st)<=i,a.value=a.done?o:st,a}const I=x(M);if(d)a.done=M>=f;else{const z=X(T(M));a.done=Math.abs(z)<=s&&Math.abs(o-I)<=i}return a.value=a.done?o:I,a},toString:()=>{const M=Math.min(zs(C),hn),I=Gr(z=>C.next(M*z).value,M,30);return M+"ms "+I},toTransition:()=>{}};return C}Fe.applyToOptions=t=>{const e=Xr(t,100,Fe);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};const wu=5;function Yr(t,e,n){const s=Math.max(e-wu,0);return Is(n-t(s),e-s)}function es({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:u=.5,restSpeed:l}){const f=t[0],h={done:!1,value:f},d=P=>a!==void 0&&P<a||c!==void 0&&P>c,p=P=>a===void 0?c:c===void 0||Math.abs(a-P)<Math.abs(c-P)?a:c;let y=n*e;const g=f+y,m=o===void 0?g:o(g);m!==g&&(y=m-f);const w=P=>-y*Math.exp(-P/s),x=P=>m+w(P),T=P=>{const C=w(P),M=x(P);h.done=Math.abs(C)<=u,h.value=h.done?m:M};let S,D;const V=P=>{d(h.value)&&(S=P,D=Fe({keyframes:[h.value,p(h.value)],velocity:Yr(x,P,h.value),damping:i,stiffness:r,restDelta:u,restSpeed:l}))};return V(0),{calculatedDuration:null,next:P=>{let C=!1;return!D&&S===void 0&&(C=!0,T(P),V(P)),S!==void 0&&P>=S?D.next(P-S):(!C&&T(P),h)}}}function xu(t,e,n){const s=[],i=n||xt.mix||Hr,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||nt:e;a=Ue(c,a)}s.push(a)}return s}function Hs(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(An(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=xu(e,s,i),c=a.length,u=l=>{if(o&&l<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const h=Zt(t[f],t[f+1],l);return a[f](h)};return n?l=>u(ht(t[0],t[r-1],l)):u}function _r(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Zt(0,e,s);t.push(W(n,1,i))}}function Gs(t){const e=[0];return _r(e,t.length-1),e}function Tu(t,e){return t.map(n=>n*e)}function Su(t,e){return t.map(()=>e||Br).splice(0,t.length-1)}function Ve({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Or(s)?s.map(Zn):Zn(s),r={done:!1,value:e[0]},o=Tu(n&&n.length===e.length?n:Gs(e),t),a=Hs(o,e,{ease:Array.isArray(i)?i:Su(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Au=t=>t!==null;function Pn(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Au),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Pu={decay:es,inertia:es,tween:Ve,keyframes:Ve,spring:Fe};function qr(t){typeof t.type=="string"&&(t.type=Pu[t.type])}class Xs{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 bu=t=>t/100;class fe extends Xs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==rt.now()&&this.tick(rt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;qr(e);const{type:n=Ve,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Ve;c!==Ve&&typeof a[0]!="number"&&(this.mixKeyframes=Ue(bu,Hr(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=zs(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:r,mirroredGenerator:o,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:p,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const m=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?m<0:m>i;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,T=s;if(f){const P=Math.min(this.currentTime,i)/a;let C=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&C--,C=Math.min(C,f+1),!!(C%2)&&(h==="reverse"?(M=1-M,d&&(M-=d/a)):h==="mirror"&&(T=o)),x=ht(0,1,M)*a}let S;w?(this.delayState.value=l[0],S=this.delayState):S=T.next(x),r&&!w&&(S.value=r(S.value));let{done:D}=S;
1!w&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return V&&p!==es&&(S.value=Pn(l,this.options,g,this.speed)),y&&y(S.value),V&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return gt(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+gt(e)}get time(){return gt(this.currentTime)}set time(e){e=X(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 Yr(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(rt.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=gt(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:e=hu,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(rt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function wm(t){return new fe(t)}function Zr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Ht=t=>t*180/Math.PI,ns=t=>{const e=Ht(Math.atan2(t[1],t[0]));return ss(e)},Cu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ns,rotateZ:ns,skewX:t=>Ht(Math.atan(t[1])),skewY:t=>Ht(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ss=t=>(t=t%360,t<0&&(t+=360),t),Oi=ns,Fi=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ji=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fi,scaleY:ji,scale:t=>(Fi(t)+ji(t))/2,rotateX:t=>ss(Ht(Math.atan2(t[6],t[5]))),rotateY:t=>ss(Ht(Math.atan2(-t[2],t[0]))),rotateZ:Oi,rotate:Oi,skewX:t=>Ht(Math.atan(t[4])),skewY:t=>Ht(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function is(t){return t.includes("scale")?1:0}function os(t,e){if(!t||t==="none")return is(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Mu,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Cu,i=a}if(!i)return is(e);const r=s[e],o=i[1].split(",").map(Eu);return typeof r=="function"?r(o):o[r]}const Vu=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return os(n,e)};function Eu(t){return parseFloat(t.trim())}const Ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rt=new Set([...Ot,"pathRotation"]),Wi=t=>t===ye||t===b,Du=new Set(["x","y","z"]),Ru=Ot.filter(t=>!Du.has(t));function Lu(t){const e=[];return Ru.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Bt={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})=>os(e,"x"),y:(t,{transform:e})=>os(e,"y")};Bt.translateX=Bt.x;Bt.translateY=Bt.y;const Gt=new Set;let rs=!1,as=!1,cs=!1;function Jr(){if(as){const t=Array.from(Gt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Lu(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);
1i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}as=!1,rs=!1,Gt.forEach(t=>t.complete(cs)),Gt.clear()}function Qr(){Gt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(as=!0)})}function ku(){cs=!0,Qr(),Jr(),cs=!1}class Ys{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Gt.add(this),rs||(rs=!0,E.read(Qr),E.resolveKeyframes(Jr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Zr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Gt.delete(this)}cancel(){this.state==="scheduled"&&(Gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _s=t=>t.startsWith("--");function ta(t,e,n){_s(e)?t.style.setProperty(e,n):t.style[e]=n}const Iu={};function qs(t,e){const n=Ls(t);return()=>Iu[e]??n()}const Zs=qs(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ea=qs(()=>window.ViewTimeline!==void 0,"viewTimeline"),dn=qs(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pe=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,us={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pe([0,.65,.55,1]),circOut:Pe([.55,0,1,.45]),backIn:Pe([.31,.01,.66,-.59]),backOut:Pe([.33,1.53,.69,.99])};function pn(t,e){if(t)return typeof t=="function"?dn()?Gr(t,e):"ease-out":js(t)?Pe(t):Array.isArray(t)?t.map(n=>pn(n,e)||us.easeOut):us[t]}function ls(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const f=pn(a,i);Array.isArray(f)&&(l.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),t.animate(l,h)}function Js(t){return typeof t=="function"&&"applyToOptions"in t}function fs({type:t,...e}){return Js(t)&&dn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class he extends Xs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,An(typeof e.type!="string");const u=fs(e);this.animation=ls(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=Pn(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),ta(n,s,l),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return gt(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+gt(e)}get time(){return gt(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=X(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Zs()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),nt):i(this)}}const na={anticipate:Lr,backInOut:Rr,circInOut:Ir};function Bu(t){return t in na}function Ou(t){typeof t.ease=="string"&&Bu(t.ease)&&(t.ease=na[t.ease])}const Bn=10;class Fu extends he{constructor(e){Ou(e),qr(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:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new fe({...o,autoplay:!1}),c=Math.max(Bn,rt.now()-this.startTime),u=ht(0,Bn,c-Bn),l=a.sample(c).value,{name:f}=this.options;r&&f&&ta(r,f,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const Ni=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(wt.test(t)||t==="0")&&!t.startsWith("url("));function ju(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 Wu(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Ni(i,e),a=Ni(r,e);return!o||!a?!1:ju(t)||(n==="spring"||Js(n))&&s}function hs(t){t.duration=0,t.type="keyframes"}const Qs=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Nu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function $u(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Nu.test(t[e]))return!0;return!1}const Uu=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ku=Ls(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zu(t){var f;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t,c=(f=e==null?void 0:e.owner)==null?void 0:f.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Ku()&&n&&(Qs.has(n)||Uu.has(n)&&$u(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const Hu=40;class Gu extends Xs{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:u,element:l,...f}){var p;super(),this.stop=()=>{var y,g;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=rt.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:u,element:l,...f},d=(l==null?void 0:l.KeyframeResolver)||Ys;this.keyframeResolver=new d(a,(y,g,m)=>this.onKeyframesResolved(y,g,h,!m),c,u,l),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(e,n,s,i){var m,w;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=rt.now();let f=!0;Wu(e,r,o,a)||(f=!1,(xt.instantAnimations||!c)&&(l==null||l(Pn(e,s,n))),e[0]=e[e.length-1],hs(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Hu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=f&&!u&&zu(d),y=(w=(m=d.motionValue)==null?void 0:m.owner)==null?void 0:w.current;let g;if(p)try{g=new Fu({...d,element:y})}catch{g=new fe(d)}else g=new fe(d);g.finished.then(()=>{this.notifyFinished()}).catch(nt),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),ku()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}class Ee{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return $i(this.animations,"duration")}get iterationDuration(){return $i(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function $i(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class sa extends Ee{then(e,n){return this.finished.finally(e).then(()=>{})}}class Ui extends he{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}}const Ki=new WeakMap,Xu=(t,e="")=>`${t}:${e}`;function Yu(t){let e=Ki.get(t);return e||(e=new Map,Ki.set(t,e)),e}function ia(t,e,n,s=0,i=1){const r=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const zi=30,_u=t=>!isNaN(parseFloat(t)),Xt={current:void 0};class ce{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=rt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.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=rt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=_u(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 ks);const s=this.events[e].add(n);return e==="change"?()=>{s(),E.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Xt.current&&Xt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zi);return Is(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ut(t,e){return new ce(t,e)}function ti(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function Dt(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?ti(n,t):n}const qu={type:"spring",stiffness:500,damping:25,restSpeed:10},Zu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ju={type:"keyframes",duration:.8},Qu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tl=(t,{keyframes:e})=>e.length>2?Ju:Rt.has(t)?t.startsWith("scale")?Zu(e[1]):qu:Qu,el=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function nl(t){for(const e in t)if(!el.has(e))return!0;return!1}const bn=(t,e,n,s={},i,r)=>
1o=>{const a=Dt(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-X(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:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};nl(a)||Object.assign(l,tl(t,l)),l.duration&&(l.duration=X(l.duration)),l.repeatDelay&&(l.repeatDelay=X(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(hs(l),l.delay===0&&(f=!0)),(xt.instantAnimations||xt.skipAnimations||i!=null&&i.shouldSkipAnimations||a.skipAnimations)&&(f=!0,hs(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,f&&!r&&e.get()!==void 0){const h=Pn(l.keyframes,a);if(h!==void 0){E.update(()=>{l.onUpdate(h),l.onComplete()});return}}return a.isSync?new fe(l):new Gu(l)},sl=20;function Hi(t,e,n,s){const i=1-t;return i*i*e+2*i*t*n+t*t*s}function On(t,e,n,s,i,r,o){const a=2*(1-t)*(n-e)+2*t*(s-n),c=2*(1-t)*(r-i)+2*t*(o-r);return Math.atan2(c,a)*(180/Math.PI)}function Gi(t,e,n,s,i,r){const o=n-t,a=s-e,c=Math.sqrt(o*o+a*a);if(c>0){const u=-a/c,l=o/c,f=i*c;return{x:t+o*r+u*f,y:e+a*r+l*f}}return{x:t,y:e}}function il({strength:t=.5,peak:e=.5,direction:n,rotate:s=!1}={}){const i=s===!0?1:typeof s=="number"?s:0;let r;return(a,c)=>{const u=c.x-a.x,l=c.y-a.y;let f;n==="cw"?f=-t:n==="ccw"?f=t:f=(Math.abs(u)>=Math.abs(l)?u:l)<0?-t:t;let h=Gi(a.x,a.y,c.x,c.y,f,e);if(n===void 0){const g=Math.abs(u)<Math.abs(l),m=a.x+u*e,w=a.y+l*e,x=Math.sign(g?h.x-m:h.y-w);r!==void 0&&x!==0&&x!==r?(f=-f,h=Gi(a.x,a.y,c.x,c.y,f,e)):x!==0&&(r=x)}const d=i?On(0,a.x,h.x,c.x,a.y,h.y,c.y):0,p=i?On(1,a.x,h.x,c.x,a.y,h.y,c.y):0,y=i?ln(-180,180,p-d):0;return g=>
1{const m={x:Hi(g,a.x,h.x,c.x),y:Hi(g,a.y,h.y,c.y)};if(i){const w=On(g,a.x,h.x,c.x,a.y,h.y,c.y),x=d+y*g;m.rotate=ln(-180,180,w-x)*i}return m}}}function xm(t={}){const e=il(t);return{interpolateProjection(s){const i=s.x.translate,r=s.y.translate;if(!(Math.sqrt(i*i+r*r)<sl))return e({x:i,y:r},{x:0,y:0})},animateVisualElement(s,i,r,o,a){if(!("x"in i||"y"in i))return;const c=s.getValue("x",s.latestValues.x??0),u=s.getValue("y",s.latestValues.y??0),l=i.x,f=i.y,h=(Array.isArray(l)&&l[0]!=null?l[0]:c==null?void 0:c.get())??0,d=(Array.isArray(f)&&f[0]!=null?f[0]:u==null?void 0:u.get())??0,p=Array.isArray(l)?l[l.length-1]:l??h,y=Array.isArray(f)?f[f.length-1]:f??d,g=e({x:h,y:d},{x:p,y}),m=g(0).rotate!==void 0?s.getValue("pathRotation",0):void 0,w={delay:o,...Dt(r||{},"x")};delete w.path;const x=ut(0);x.start(bn("",x,[0,1e3],{...w,isSync:!0,velocity:0,onUpdate:T=>{const S=g(T/1e3);c==null||c.set(S.x),u==null||u.set(S.y),m&&S.rotate!==void 0&&m.set(S.rotate)},onComplete:()=>{c==null||c.set(p),u==null||u.set(y),m==null||m.set(0)},onStop:()=>m==null?void 0:m.set(0),onCancel:()=>m==null?void 0:m.set(0)})),x.animation&&a.push(x.animation),delete i.x,delete i.y}}}const ol=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rl(t){const e=ol.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function oa(t,e,n=1){const[s,i]=rl(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return br(o)?parseFloat(o):o}return Ns(i)?oa(i,e,n+1):i}function Xi(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function ei(t,e,n,s){if(typeof e=="function"){const[i,r]=Xi(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Xi(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function Yt(t,e,n){const s=t.getProps();return ei(s,e,n!==void 0?n:s.custom,t)}const ra=new Set(["width","height","top","left","right","bottom",...Ot]),ds=t=>Array.isArray(t);function al(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ut(n))}function cl(t){return ds(t)?t[t.length-1]||0:t}function ni(t,e){const n=Yt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=cl(r[o]);al(t,o,a)}}const K=t=>!!(t&&t.getVelocity);function ul(t){return!!(K(t)&&t.add)}function ps(t,e){const n=t.getValue("willChange");if(ul(n))return n.add(e);if(!n&&xt.WillChange){const s=new xt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Cn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const aa="framerAppearId",ca="data-"+Cn(aa);function si(t){return t.props[ca]}function ll({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ii(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const c=t.getDefaultTransition();r=r?ti(r,c):c;const u=r==null?void 0:r.reduceMotion,l=r==null?void 0:r.skipAnimations;s&&(r=s);const f=[],h=i&&t.animationState&&t.animationState.getState()[i],d=r==null?void 0:r.path;d&&d.animateVisualElement(t,a,r,n,f);for(const p in a){const y=t.getValue(p,t.latestValues[p]??null),g=a[p];if(g===void 0||h&&ll(h,p))continue;const m={delay:n,...Dt(r||{},p)};l&&(m.skipAnimations=!0);const w=y.get();if(w!==void 0&&!y.isAnimating()&&!Array.isArray(g)&&g===w&&!m.velocity){E.update(()=>y.set(g));continue}let x=!1;if(window.MotionHandoffAnimation){const D=si(t);if(D){const V=window.MotionHandoffAnimation(D,p,E);V!==null&&(m.startTime=V,x=!0)}}ps(t,p);const T=u??t.shouldReduceMotion;y.start(bn(p,y,g,T&&ra.has(p)?{type:!1}:m,t,x));const S=y.animation;S&&f.push(S)}if(o){const p=()=>E.update(()=>{o&&ni(t,o)});f.length?Promise.all(f).then(p):p()}return f}function ms(t,e,n={}){var c;const s=Yt(t,e,n.type==="exit"?(c=t.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(ii(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:f,staggerDirection:h}=i;return fl(t,e,u,l,f,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function fl(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(ms(c,e,{...o,delay:n+(typeof s=="function"?0:s)+ia(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function oi(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>ms(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=ms(t,e,n);else{const i=typeof e=="function"?Yt(t,e,n.custom):e;s=Promise.all(ii(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const hl={test:t=>t==="auto",parse:t=>t},ua=t=>e=>e.test(t),la=[ye,b,bt,Vt,Xc,Gc,hl],Yi=t=>la.find(ua(t));function dl(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Mr(t):!0}const pl=new Set(["brightness","contrast","saturate","opacity"]);function ml(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match($s)||[];if(!s)return t;const i=n.replace(s,"");let r=pl.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const gl=/\b([a-z-]*)\(.*?\)/gu,gs={...wt,getAnimatableNone:t=>{const e=t.match(gl);return e?e.map(ml).join(" "):t}},ys={...wt,getAnimatableNone:t=>{const e=wt.parse(t);return wt.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},_i={...ye,transform:Math.round},yl={rotate:Vt,pathRotation:Vt,rotateX:Vt,rotateY:Vt,rotateZ:Vt,scale:Xe,scaleX:Xe,scaleY:Xe,scaleZ:Xe,skew:Vt,skewX:Vt,skewY:Vt,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:Oe,originX:Ri,originY:Ri,originZ:b},je={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,inset:b,insetBlock:b,insetBlockStart:b,insetBlockEnd:b,insetInline:b,insetInlineStart:b,insetInlineEnd:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,paddingBlock:b,paddingBlockStart:b,paddingBlockEnd:b,paddingInline:b,paddingInlineStart:b,paddingInlineEnd:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,marginBlock:b,marginBlockStart:b,marginBlockEnd:b,marginInline:b,marginInlineStart:b,marginInlineEnd:b,fontSize:b,backgroundPositionX:b,backgroundPositionY:b,...yl,zIndex:_i,fillOpacity:Oe,strokeOpacity:Oe,numOctaves:_i},vl={...je,color:q,backgroundColor:q,outlineColor:q,fill:q,stroke:q,borderColor:q,borderTopColor:q,borderRightColor:q,borderBottomColor:q,borderLeftColor:q,filter:gs,WebkitFilter:gs,mask:ys,WebkitMask:ys},fa=t=>vl[t],wl=new Set([gs,ys]);function ha(t,e){let n=fa(t);return wl.has(n)||(n=wt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,717 bytes, line 1
1const xl=new Set(["auto","none","0"]);function Tl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!xl.has(r)&&le(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=ha(n,i)}class Sl extends Ys{constructor(e,n,s,i,r){super(e,n,s,i,r,!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(),Ns(f))){const h=oa(f,n.current);h!==void 0&&(e[l]=h),l===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ra.has(s)||e.length!==2)return;const[i,r]=e,o=Yi(i),a=Yi(r),c=Di(i),u=Di(r);if(c!==u&&Bt[s]){this.needsMeasurement=!0;return}if(o!==a)if(Wi(o)&&Wi(a))for(let l=0;l<e.length;l++){const f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}else Bt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||dl(e[i]))&&s.push(i);s.length&&Tl(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=Bt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var a;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=Bt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEac
1h(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const de=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Al=new Set(["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius",...de,"width","maxWidth","height","maxHeight","top","right","bottom","left","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","fontSize","backgroundPositionX","backgroundPositionY"]);function Pl(t,e){for(let n=0;n<t.length;n++)typeof t[n]=="number"&&Al.has(e)&&(t[n]=t[n]+"px")}function bl(t){return!!(typeof t=="function"&&dn()||!t||typeof t=="string"&&(t in us||dn())||js(t)||Array.isArray(t)&&t.every(bl))}const Tm=Ls(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0});function Lt(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;e&&(s=e.current);const i=(n==null?void 0:n[t])??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}function ri(t){return(e,n)=>{const s=Lt(e),i=[];for(const r of s){const o=t(r,n);i.push(o)}return()=>{for(const r of i)r()}}}const mn=(t,e)=>e&&typeof t=="number"?e.transform(t):t;class Cl{constructor(){this.latest={},this.values=new Map}set(e,n,s,i,r=!0){const o=this.values.get(e);o&&o.onRemove();const a=()=>{const l=n.get();r?this.latest[e]=mn(l,je[e]):this.latest[e]=l,s&&E.render(s)};a();const c=n.on("change",a);i&&n.addDependent(i);const u=()=>{c(),s&&ct(s),this.values.delete(e),i&&n.removeDependent(i)};return this.values.set(e,{value:n,onRemove:u}),u}get(e){var n;return(n=this.values.get(e))==null?void 0:n.value}}function Mn(t){const e=new WeakMap;return(n,s)=>{const i=e.get(n)??new Cl;e.set(n,i);const r=[];for(const o in s){const a=s[o],c=t(n,i,o,a);r.push(c)}return()=>{for(const o of r)o()}}}function Ml(t,e){if(!(e in t))return!1;const n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);return n&&typeof n.set=="function"}const vs=(t,e,n,s)=>{const i=Ml(t,n),r=i?n:n.startsWith("data")||n.startsWith("aria")?Cn(n):n,o=i?()=>{t[r]=e.latest[n]}:()=>{const a=e.latest[n];a==null?t.removeAttribute(r):t.setAttribute(r,String(a))};return e.set(n,s,o)},Sm=ri(Mn(vs)),Am=Mn((t,e,n,s)=>e.set(n,s,()=>{t[n]=e.latest[n]},void 0,!1));function ue(t){return Cr(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const Vl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function El(t){let e="",n=!0;for(let i=0;i<Ot.length;i++){const r=Ot[i],o=t.latest[r];if(o===void 0)continue;let a=!0;if(typeof o=="number")a=o===(r.startsWith("scale")?1:0);else{const c=parseFloat(o);a=r.startsWith("scale")?c===1:c===0}if(!a){n=!1;const c=Vl[r]||r;e+=`${c}(${o}) `}}const s=t.latest.pathRotation;return s&&(n=!1,e+=`rotate(${typeof s=="number"?`${s}deg`:s}) `),n?"none":e.trim()}const Dl=new Set(["originX","originY","originZ"]),ai=(t,e,n,s)=>{let i,r;return Rt.has(n)?(e.get("transform")||(!ue(t)&&!e.get("transformBox")&&ai(t,e,"transformBox",new ce("fill-box")),e.set("transform",new ce("none"),()=>{t.style.transform=El(e)})),r=e.get("transform")):Dl.has(n)?(e.get("transformOrigin")||e.set("transformOrigin",new ce(""),()=>{const o=e.latest.originX??"50%",a=e.latest.originY??"50%",c=e.latest.originZ??0;t.style.transformOrigin=`${o} ${a} ${c}`}),r=e.get("transformOrigin")):_s(n)?i=()=>{t.style.setProperty(n,e.latest[n])}:i=()=>{t.style[n]=e.latest[n]},e.set(n,s,i,r)},Pm=ri(Mn(ai));function Rl(t,e,n,s){return E.render(()=>t.setAttribute("pathLength","1")),n==="pathOffset"?e.set(n,s,()=>{const i=e.latest[n];t.setAttribute("stroke-dashoffset",`${-i}`)}):(e.get("stroke-dasharray")||e.set("stroke-dasharray",new ce("1 1"),()=>{const{pathLength:i=1,pathSpacing:r}=e.latest;t.setAttribute("stroke-dasharray",`${i} ${r??1-Number(i)}`)}),e.set(n,s,void 0,e.get("stroke-dasharray")))}const Ll=(t,e,n,s)=>n.startsWith("path")?Rl(t,e,n,s):n.startsWith("attr")?vs(t,e,kl(n),s):(n in t.style?ai:vs)(t,e,n,s),bm=ri(Mn(Ll));function kl(t){return t.replace(/^attr([A-Z])/,(e,n)=>n.toLowerCase())}const{schedule:Ft,cancel:da}=jr(queueMicrotask,!1),vt={x:!1,y:!1};function pa(){return vt.x||vt.y}function Il(t){return t==="x"||t==="y"?vt[t]?null:(vt[t]=!0,()=>{vt[t]=!1}):vt.x||vt.y?null:(vt.x=vt.y=!0,()=>{vt.x=vt.y=!1})}function ma(t,e){const n=Lt(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Bl(t){return!(t.pointerType==="touch"||pa())}function Ol(t,e,n={}){const[s,i,r]=ma(t,n);
1return s.forEach(o=>{let a=!1,c=!1,u;const l=()=>{o.removeEventListener("pointerleave",p)},f=g=>{u&&(u(g),u=void 0),l()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},p=g=>{if(g.pointerType!=="touch"){if(a){c=!0;return}f(g)}},y=g=>{if(!Bl(g))return;c=!1;const m=e(o,g);typeof m=="function"&&(u=m,o.addEventListener("pointerleave",p,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",d,i)}),r}const ga=(t,e)=>e?t===e?!0:ga(t,e.parentElement):!1,ci=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Fl=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jl(t){return Fl.has(t.tagName)||t.isContentEditable===!0}const Wl=new Set(["INPUT","SELECT","TEXTAREA"]);function Nl(t){return Wl.has(t.tagName)||t.isContentEditable===!0}const nn=new WeakSet;function qi(t){return e=>{e.key==="Enter"&&t(e)}}function Fn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const $l=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=qi(()=>{if(nn.has(n))return;Fn(n,"down");const i=qi(()=>{Fn(n,"up")}),r=()=>Fn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Zi(t){return ci(t)&&!pa()}const Ji=new WeakSet;function Ul(t,e,n={}){const[s,i,r]=ma(t,n),o=a=>{const c=a.currentTarget;if(!Zi(a)||Ji.has(a))return;nn.add(c),n.stopPropagation&&Ji.add(a);const u=e(c,a),l={...i,capture:!0},f=(p,y)=>{window.removeEventListener("pointerup",h,l),window.removeEventListener("pointercancel",d,l),nn.has(c)&&nn.delete(c),Zi(p)&&typeof u=="function"&&u(p,{success:y})},h=p=>{f(p,c===window||c===document||n.useGlobalTarget||ga(c,p.target))},d=p=>{f(p,!1)};window.addEventListener("pointerup",h,l),window.addEventListener("pointercancel",d,l)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),ue(a)&&(a.addEventListener("focus",u=>$l(u,i)),!jl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Qi(t,e){const n=window.getComputedStyle(t);return _s(e)?n.getPropertyValue(e):n[e]}function Vn(t){return Cr(t)&&"ownerSVGElement"in t}const sn=new WeakMap;let kt;const ya=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Vn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Kl=ya("inline","width","offsetWidth"),zl=ya("block","height","offsetHeight");function Hl({target:t,borderBoxSize:e}){var n;(n=sn.get(t))==null||n.forEach(s=>{s(t,{get width(){return Kl(t,e)},get height(){return zl(t,e)}})})}function Gl(t){t.forEach(Hl)}function Xl(){typeof ResizeObserver>"u"||(kt=new ResizeObserver(Gl))}function Yl(t,e){kt||Xl();const n=Lt(t);return n.forEach(s=>{let i=sn.get(s);i||(i=new Set,sn.set(s,i)),i.add(e),kt==null||kt.observe(s)}),()=>{n.forEach(s=>{const i=sn.get(s);i==null||i.delete(e),i!=null&&i.size||kt==null||kt.unobserve(s)})}}const on=new Set;let ie;function _l(){ie=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};on.forEach(e=>e(t))},window.addEventListener("resize",ie)}function ql(t){return on.add(t),ie||_l(),()=>{on.delete(t),!on.size&&typeof ie=="function"&&(window.removeEventListener("resize",ie),ie=void 0)}}function ws(t,e){return typeof t=="function"?ql(t):Yl(t,e)}function va(t,e){let n;const s=()=>{const{currentTime:i}=e,o=(i===null?0:i.value)/100;n!==o&&t(o),n=o};return E.preUpdate(s,!0),()=>ct(s)}const Pt={value:null,addProjectionMetrics:null};function Zl(){Pt.value=null,Pt.addProjectionMetrics=null}function Cm(){if(Pt.value)throw Zl(),new Error("Stats are already being measured");const t=Pt;t.value={layoutProjection:{nodes:[],calculatedTargetDeltas:[],calculatedProjections:[]}}
1,t.addProjectionMetrics=e=>{const{layoutProjection:n}=t.value;n.nodes.push(e.nodes),n.calculatedTargetDeltas.push(e.calculatedTargetDeltas),n.calculatedProjections.push(e.calculatedProjections)}}function wa(t){return Vn(t)&&t.tagName==="svg"}function Jl(t,e){if(t==="first")return 0;{const n=e-1;return t==="last"?n:n/2}}function Mm(t=.1,{startDelay:e=0,from:n=0,ease:s}={}){return(i,r)=>{const o=typeof n=="number"?n:Jl(n,r),a=Math.abs(o-i);let c=t*a;if(s){const u=r*t;c=Zn(s)(c/u)*u}return e+c}}function xa(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],r=t[2+n],o=t[3+n],a=Hs(i,r,o);return e?a(s):a}function Ql(t,e){const n=K(t)?t.get():t,s=ut(n);return ui(s,t,e),s}function ui(t,e,n={}){const s=t.get();let i=null,r=s,o;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,c=()=>{i&&(i.stop(),i=null),t.animation=void 0},u=()=>{const f=to(t.get()),h=to(r);if(f===h){c();return}const d=i?i.getGeneratorVelocity():t.getVelocity();c(),i=new fe({keyframes:[f,h],velocity:d,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},l=()=>{var f;u(),t.animation=i??void 0,(f=t.events.animationStart)==null||f.notify(),i==null||i.then(()=>{var h;t.animation=void 0,(h=t.events.animationComplete)==null||h.notify()})};if(t.attach((f,h)=>{r=f,o=d=>h(jn(d,a)),E.postRender(l)},c),K(e)){let f=n.skipInitialAnimation===!0;const h=e.on("change",p=>{f?(f=!1,t.jump(jn(p,a),!1)):t.set(jn(p,a))}),d=t.on("destroy",h);return()=>{h(),d()}}return c}function jn(t,e){return e?t+e:t}function to(t){return typeof t=="number"?t:parseFloat(t)}function tf(t,e,n){const s=()=>e.set(n()),i=()=>E.preRender(s,!1,!0),r=t.map(o=>o.on("change",i));e.on("destroy",()=>{r.forEach(o=>o()),ct(s)})}function ef(t){const e=[];Xt.current=e;const n=t();Xt.current=void 0;const s=ut(n);return tf(e,s,t),s}function Vm(t,e,n,s){const i=xa(e,n,s);return ef(()=>i(t.get()))}function Em(t,e){return Ql(t,{type:"spring",...e})}function Dm(t,e,n){return ui(t,e,{type:"spring",...n})}const nf=[...la,q,wt],sf=t=>nf.find(ua(t));let of=0;const eo=()=>`motion-view-${of++}`,rf=t=>t.startsWith("motion-view-");function no(t,e,n){var s;e&&((s=t.style)==null||s.setProperty("view-transition-class",e),n.push(t))}function so(t,e,n,s,i){var r;if(n&&((r=t.style)==null||r.setProperty("view-transition-group",n),s.push(t),n!=="none"&&i)){const o=getComputedStyle(t);(o.overflowX!=="visible"||o.overflowY!=="visible")&&i.add(e)}}function Wn(t,e,n,s,i,r=[],o,a=[],c){const u=Lt(t);if(s)return u.map((f,h)=>{var y;const d=e.get(f);if(d)return d;const p=s[h]??eo();return(y=f.style)==null||y.setProperty("view-transition-name",p),n.push(f),e.set(f,p),no(f,i,r),so(f,p,o,a,c),p});const l=u.map(f=>e.has(f)?void 0:getComputedStyle(f).getPropertyValue("view-transition-name"));return u.map((f,h)=>{var g;const d=e.get(f);if(d)return d;const p=l[h];let y;return p&&p!=="none"&&p!=="auto"&&p!=="match-element"&&!rf(p)?y=p:(y=eo(),(g=f.style)==null||g.setProperty("view-transition-name",y),n.push(f)),e.set(f,y),no(f,i,r),so(f,y,o,a,c),y})}function af(t,e=[],n=[]){var s,i,r;for(const o of t)(s=o.style)==null||s.removeProperty("view-transition-name");for(const o of e)(i=o.style)==null||i.removeProperty("view-transition-class");for(const o of n)(r=o.style)==null||r.removeProperty("view-transition-group")}function cf(t){return t==="layout"?"group":t==="enter"||t==="new"?"new":"old"}let Ye={},Mt=null;const Nt={set:(t,e)=>{Ye[t]=e},commit:()=>{Mt||(Mt=document.createElement("style"),Mt.id="motion-view");let t="";for(const e in Ye){const n=Ye[e];t+=`${e} { 2`;for(const[s,i]of Object.entries(n))t+=` ${s}: ${i}; 3`;t+=`} 4`}Mt.textContent=t,document.head.appendChild(Mt),Ye={}},remove:()=>{Mt&&Mt.parentElement&&Mt.parentElement.removeChild(Mt)}};function uf(t){const e=t.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return e?{layer:e[2],type:e[1]}:null}function lf(){return document.getAnimations().filter(t=>{var n;const{effect:e}=t;return!!e&&e.target===document.documentElement&&((n=e.pseudoElement)==null?void 0:n.startsWith("::view-transition"))})}function ff(t,e){return e.has(t)&&Object.keys(e.get(t)).length>0}const hf=["layout","enter","exit","new","old"],io=t=>t.split(" ").every(e=>parseFloat(e)===0),df={group:["layout"],new:["new","enter"],old:["old","exit"]},pf={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},mf=.2;function gf(t){const{update:e,targets:n,resolveDefs:s,cropOverride:i,pairs:r,classNames:o,flatGroups:a,options:c}=t;if(!document.startViewTransition)return(async()=>(await e(),new Ee([])))();const u=new Map,l=[],f=[],h=[],d=new Set,p=new Map,y=new Set,g=new Map,m=new Map,w=new Map,x=new Map,T=R=>
4{n.forEach((L,A)=>{var H;const k=o.get(A),N=A==="root"||!s.has(A)?void 0:a.has(A)?"none":"contain";let O;if(A==="root"||!s.has(A))O=[A];else if(r.has(A))if(R==="old")x.set(A,Lt(A)),O=Wn(A,u,l,void 0,k,f,N,h,d),w.set(A,O);else{for(const F of x.get(A)??[])(H=F.style)==null||H.removeProperty("view-transition-name"),u.delete(F);O=Wn(r.get(A),u,l,w.get(A),k,f,N,h,d)}else O=Wn(A,u,l,void 0,k,f,N,h,d);const j=i.get(A);O.forEach((F,B)=>{const Q=p.get(F);p.set(F,Q&&Q!==L?{...Q,...L}:L),j!==void 0&&g.set(F,j);const it=m.get(F)??{};it[R]=[B,O.length],m.set(F,it)})})},S=(R,L)=>{const A=m.get(R);return(L==="old"?A==null?void 0:A.old:L==="new"?A==null?void 0:A.new:(A==null?void 0:A.new)??(A==null?void 0:A.old))??[-1,1]},D=(R,L,A,k,N)=>{const O=oo(Dt(c,A),Dt(yf(R,L)??{},A));return typeof O.delay=="function"&&(O.delay=O.delay(k,N)),O},V=R=>{const[L,A]=S(R,"group"),k=D(p.get(R),"group","layout",L===-1?0:L,A);k.duration&&(k.duration=X(k.duration));const{delay:N=0,duration:O,ease:j}=fs(k);return{delay:X(N),duration:O,ease:j}},P=new Map,C=R=>u.forEach((L,A)=>{var O;const k=A,N=(O=k.getBoundingClientRect)==null?void 0:O.call(k);if(N&&N.height){const j=getComputedStyle(k),H={};for(const B of de)H[B]=j[B];const F=P.get(L)??{};F[R]={width:N.width,height:N.height,radii:H},P.set(L,F)}}),M=()=>{y.clear();for(const R of m.keys())R!=="root"&&(g.get(R)??I(R))&&y.add(R)},I=R=>{const L=P.get(R);return!(L!=null&&L.old)||!(L!=null&&L.new)||!L.old.height||!L.new.height?!1:Math.abs(L.old.width/L.old.height-L.new.width/L.new.height)>mf},z=()=>{ff("root",n)||Nt.set(":root",{"view-transition-name":"none"}),Nt.set("::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)",{"animation-timing-function":"linear !important"}),y.forEach(R=>{Nt.set(`::view-transition-group(${R})`,{overflow:"clip"}),Nt.set(`::view-transition-old(${R}), ::view-transition-new(${R})`,{width:"100%",height:"100%","object-fit":"cover"})}),d.forEach(R=>{Nt.set(`::view-transition-group-children(${R})`,{overflow:"clip"})}),Nt.commit()},J=()=>{af(l,f,h),Nt.remove()},ot=async()=>{await e(),T("new"),C("new"),M(),z()};let st;try{T("old"),C("old"),z(),st=document.startViewTransition(ot)}catch(R){return J(),Promise.reject(R)}return st.finished.finally(J),new Promise((R,L)=>{st.ready.then(()=>{const A=lf(),k=[],N=new Set,O=new Set;p.forEach((j,H)=>{var it,tt,dt,pt;const F=m.get(H),B=!!(F!=null&&F.new)&&!(F!=null&&F.old),Q=!!(F!=null&&F.old)&&!(F!=null&&F.new);for(const G of hf){if(!j[G]||G==="enter"&&!B||G==="exit"&&!Q)continue;const U=cf(G),[mt,ve]=S(H,U);if(mt===-1)continue;const{keyframes:ft,options:Wt}=j[G];for(let[et,we]of Object.entries(ft)){if(we==null)continue;if(et==="x"||et==="y"){Ec(!1,`animateView() animates view-transition layers with CSS properties; the "${et}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(G==="new"&&B&&((it=j.enter)==null?void 0:it.keyframes[et])!=null||G==="old"&&Q&&((tt=j.exit)==null?void 0:tt.keyframes[et])!=null)continue;const Tt=oo(Dt(c,et),Dt(Wt,et));if(!Array.isArray(we)){const xe=G==="enter"?(dt=j.exit)==null?void 0:dt.keyframes[et]:void 0,bc=et==="opacity"||(U==="new"?B:Q),Ei=xe!=null?Array.isArray(xe)?xe[xe.length-1]:xe:bc?(pt=pf[U])==null?void 0:pt[et]:void 0;Ei!==void 0&&(we=[Ei,we])}typeof Tt.delay=="function"&&(Tt.delay=Tt.delay(mt,ve)),Tt.duration&&(Tt.duration=X(Tt.duration)),Tt.delay&&(Tt.delay=X(Tt.delay)),k.push(new he({...Tt,element:document.documentElement,name:et,pseudoElement:`::view-transition-${U}(${H})`,keyframes:we})),N.add(`${H}:${U}`),et==="opacity"&&O.add(`${H}:${U}`)}}});for(const j of A){if(j.playState==="finished")continue;const{effect:H}=j;if(!H||!(H instanceof KeyframeEffect))continue;const{pseudoElement:F}=H;if(!F)continue;const B=uf(F);if(!B)continue;const Q=p.get(B.layer);if(N.has(`${B.layer}:${B.type}`)){O.has(`${B.layer}:new`)&&O.has(`${B.layer}:old`)&&H.getKeyframes().some(U=>U.mixBlendMode)?k.push(new Ui(j)):j.cancel();continue}const it=B.type==="old"?"new":B.type==="new"?"old":void 0;if(it&&N.has(`${B.layer}:${it}`)&&!O.has(`${B.layer}:${it}`)){j.cancel();continue}const tt=m.get(B.layer),dt=(B.type==="old"||B.type==="new")&&!!(tt!=null&&tt.old)&&!!(tt!=null&&tt.new);let pt;if(B.type.startsWith("group")){const{delay:G,duration:U,ease:mt}=V(B.layer);pt={delay:G,duration:U,easing:pn(mt,U)}}else{const G=dt?"group":B.type,[U,mt]=S(B.layer,G);let ft=D(Q,G,G==="group"?"layout":"",U===-1?0:U,mt);const Wt=ft.visualDuration;ft.duration&&(ft.duration=X(ft.duration)),ft=fs(ft),pt={delay:X(ft.delay??0),duration:dt&&Wt!==void 0?X(Wt):ft.duration,easing:dt?"linear":pn(ft.ease,ft.duration)}}H.updateTiming(pt),k.push(new Ui(j))}P.forEach((j,H)=>{var it,tt,dt,pt;if(!y.has(H))return;const{delay:F,duration:B,ease:Q}=V(H);for(const G of de){const U=((it=j.old)==null?void 0:it.radii[G])||((tt=j.new)==null?void 0:tt.radii[G])||"0px",mt=((dt=j.new)==null?void 0:dt.radii[G])||((pt=j.old)==null?void 0:pt.radii[G])||"0px";io(U)&&io(mt)||k.push(new he({element:document.documentElement,name:G,pseudoElement:`::view-transition-group(${H})`,keyframes:[U,mt],delay:F,duration:B,ease:Q}))}}),R(new Ee(k))}).catch(()=>st.updateCallbackDone.then(()=>R(new Ee([])),L))})}function yf(t,e){var n;for(const s of df[e]??[]){const i=(n=t==null?void 0:t[s])==null?void 0:n.options;if(i)return i}}function oo(t,e){const n={...t,...e};return e.duration!==void 0&&(e.visualDuration===void 0&&delete n.visualDuration,e.type===void 0&&delete n.type),n}let Et=[],li=null;function Ta(){li=null;const[t]=Et;t&&vf(t)}function vf(t){qt(Et,t),li=t,gf(t).then(e=>(t.notifyReady(e),e.finished)).catch(e=>t.notifyReject(e)).finally(Ta)}function wf(){var t;for(let e=Et.length-1;e>=0;e--){const n=Et[e],{interrupt:s}=n.options;if(s==="immediate"){const i=Et.slice(0,e+1).map(o=>o.update),r=Et.slice(e+1);n.update=()=>
4{i.forEach(o=>o())},Et=[n,...r];break}}(!li||((t=Et[0])==null?void 0:t.options.interrupt)==="immediate")&&Ta()}function xf(t){Et.push(t),Ft.render(wf)}class Tf{constructor(e,n={}){this.currentSubject="root",this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=nt,this.notifyReject=nt,this.readyPromise=new Promise((s,i)=>{this.notifyReady=s,this.notifyReject=i}),this.update=e,this.options={interrupt:"wait",...n},this.readyPromise.catch(nt),xf(this)}add(e,n){return this.currentSubject=e,this.resolveDefs.add(e),n!==void 0&&this.pairs.set(e,n),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget("layout",{},e),this}enter(e,n){return this.updateTarget("enter",e,n),this}exit(e,n){return this.updateTarget("exit",e,n),this}new(e,n){return this.updateTarget("new",e,n),this}old(e,n){return this.updateTarget("old",e,n),this}updateTarget(e,n,s={}){const{currentSubject:i,targets:r}=this;r.has(i)||r.set(i,{});const o=r.get(i);o[e]={keyframes:n,options:s}}then(e,n){return this.readyPromise.then(e,n)}}function Rm(t,e={}){return new Tf(t,e)}const ro=()=>({translate:0,scale:1,origin:0,originPoint:0}),oe=()=>({x:ro(),y:ro()}),ao=()=>({min:0,max:0}),_=()=>({x:ao(),y:ao()}),pe=new WeakMap;function En(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function We(t){return typeof t=="string"||Array.isArray(t)}const fi=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hi=["initial",...fi];function Dn(t){return En(t.animate)||hi.some(e=>We(t[e]))}function Sa(t){return!!(Dn(t)||t.variants)}function Sf(t,e,n){for(const s in e){const i=e[s],r=n[s];if(K(i))t.addValue(s,i);else if(K(r))t.addValue(s,ut(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,ut(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const gn={current:null},di={current:!1},Af=typeof window<"u";function Aa(){if(di.current=!0,!!Af)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>gn.current=t.matches;t.addEventListener("change",e),e()}else gn.current=!1}const co=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yn={};function Pa(t){yn=t}function Pf(){return yn}class pi{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,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=Ys,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=rt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,E.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=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Dn(n),this.isVariantNode=Sa(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 p=h[d];u[d]!==void 0&&K(p)&&p.set(u[d])}}mount(e){var n,s;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,pe.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.forEac
vendor: 19,797 bytes, line 4
4h((i,r)=>this.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(di.current||Aa(),this.shouldReduceMotion=gn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),ct(this.notifyUpdate),ct(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Qs.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,f=new he({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:X(l)}),h=o(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=Rt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&E.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}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 yn){const n=yn[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 r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_()}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<co.length;s++){const i=co[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Sf(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=ut(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"&&(br(s)||Mr(s))?s=parseFloat(s):!sf(s)&&wt.test(n)&&(s=ha(e,n)),this.setBaseTarget(e,K(s)?s.get():s)),K(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=ei(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!K(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 ks),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Ft.render(this.render)}}class ba extends pi{constructor(){super(...arguments),this.KeyframeResolver=Sl}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;K(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class jt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ca({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function bf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Cf(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 Nn(t){return t===void 0||t===1}function xs({scale:t,scaleX:e,scaleY:n}){return!Nn(t)||!Nn(e)||!Nn(n)}function It(t){return xs(t)||Ma(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ma(t){return uo(t.x)||uo(t.y)}function uo(t){return t&&t!=="0%"}function vn(t,e,n){const s=t-n,i=e*s;return n+i}function lo(t,e,n,s,i){return i!==void 0&&(t=vn(t,i,s)),vn(t,n,s)+e}function Ts(t,e=0,n=1,s,i){t.min=lo(t.min,e,n,s,i),t.max=lo(t.max,e,n,s,i)}function Va(t,{x:e,y:n}){Ts(t.x,e.translate,e.scale,e.originPoint),Ts(t.y,n.translate,n.scale,n.originPoint)}const fo=.999999999999,ho=1.0000000000001;function Mf(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let c=0;c<i;c++){r=n[c],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(At(t.x,-r.scroll.offset.x),At(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Va(t,o)),s&&It(r.latestValues)&&rn(t,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}e.x<ho&&e.x>fo&&(e.x=1),e.y<ho&&e.y>fo&&(e.y=1)}function At(t,e){t.min+=e,t.max+=e}function po(t,e,n,s,i=.5){const r=W(t.min,t.max,i);Ts(t,e,n,r,s)}function mo(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function rn(t,e,n){const s=n??t;po(t.x,mo(e.x,s.x),e.scaleX,e.scale,e.originX),po(t.y,mo(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ea(t,e){return Ca(Cf(t.getBoundingClientRect(),e))}function Vf(t,e,n){const s=Ea(t,n),{scroll:i}=e;return i&&(At(s.x,i.offset.x),At(s.y,i.offset.y)),s}const Ef={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Df=Ot.length;function Rf(t,e,n){let s="",i=!0;for(let o=0;o<Df;o++){const a=Ot[o],c=t[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||n){const l=mn(c,je[a]);if(!u){i=!1;const f=Ef[a]||a;s+=`${f}(${l}) `}n&&(e[a]=l)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${mn(r,je.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function mi(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const u=e[c];if(Rt.has(c)){o=!0;continue}else if(Ws(c)){i[c]=u;continue}else{const l=mn(u,je[c]);c.startsWith("origin")?(a=!0,r[c]=l):s[c]=l}}if(e.transform||(o||n?s.transform=Rf(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=r;s.transformOrigin=`${c} ${u} ${l}`}}function Da(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i==null||i.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function go(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Te={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(b.test(t))t=parseFloat(t);else return t;const n=go(t,e.target.x),s=go(t,e.target.y);return`${n}% ${s}%`}},Lf={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=wt.parse(t);if(i.length>5)return s;const r=wt.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const u=W(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Ne={borderRadius:{...Te,applyTo:[...de]},borderTopLeftRadius:Te,borderTopRightRadius:Te,borderBottomLeftRadius:Te,borderBottomRightRadius:Te,boxShadow:Lf};function Lm(t){for(const e in t)Ne[e]=t[e],Ws(e)&&(Ne[e].isCSSVariable=!0)}function Ra(t,{layout:e,layoutId:n}){return Rt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ne[t]||t==="opacity")}function gi(t,e,n){var o;const s=t.style,i=e==null?void 0:e.style,r={};if(!s)return r;for(const a in s)(K(s[a])||i&&K(i[a])||Ra(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function kf(t){return window.getComputedStyle(t)}class yi extends ba{constructor(){super(...arguments),this.type="html",this.renderInstance=Da}mount(e){An(!!e.style),super.mount(e)}readValueFromInstance(e,n){var s;if(Rt.has(n))return(s=this.projection)!=null&&s.isProjecting?is(n):Vu(e,n);{const i=kf(e),r=(Ws(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ea(e,n)}build(e,n,s){mi(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return gi(e,n,s)}}function If(t,e){return t in e}class Bf extends pi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(If(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return _()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}const Of={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ff={offset:"strokeDashoffset",array:"strokeDasharray"};function jf(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?Of:Ff;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Wf=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function La(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,u,l){if(mi(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==null?void 0:l.transformBox)??"fill-box",delete f.transformBox);for(const d of Wf)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&&jf(f,i,r,o,!1)}const ka=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"]),Ia=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Nf(t,e,n,s){Da(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(ka.has(i)?i:Cn(i),e.attrs[i])}function Ba(t,e,n){const s=gi(t,e,n);for(const i in t)if(K(t[i])||K(e[i])){const r=Ot.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Oa extends ba{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rt.has(n)){const s=fa(n);return s&&s.default||0}return n=ka.has(n)?n:Cn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Ba(e,n,s)}build(e,n,s){La(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Nf(e,n,s,i)}mount(e){this.isSVGTag=Ia(e.tagName),super.mount(e)}}const $f=hi.length;function Fa(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Fa(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<$f;n++){const s=hi[n],i=t.props[s];(We(i)||i===!1)&&(e[s]=i)}return e}function ja(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 Uf=[...fi].reverse(),Kf=fi.length;function zf(t){return e=>Promise.all(e.map(({animation:n,options:s})=>oi(t,n,s)))}function Hf(t){let e=zf(t),n=yo(),s=!0,i=!1;const r=u=>(l,f)=>{var d;const h=Yt(t,f,u==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:p,transitionEnd:y,...g}=h;l={...l,...g,...y}}return l};function o(u){e=u(t)}function a(u){const{props:l}=t,f=Fa(t.parent)||{},h=[],d=new Set;let p={},y=1/0;for(let m=0;m<Kf;m++){const w=Uf[m],x=n[w],T=l[w]!==void 0?l[w]:f[w],S=We(T),D=w===u?x.isActive:null;D===!1&&(y=m);let V=T===f[w]&&T!==l[w]&&S;if(V&&(s||i)&&t.manuallyAnimateOnMount&&(V=!1),x.protectedKeys={...p},!x.isActive&&D===null||!T&&!x.prevProp||En(T)||typeof T=="boolean")continue;if(w==="exit"&&x.isActive&&D!==!0){x.prevResolvedValues&&(p={...p,...x.prevResolvedValues});continue}const P=Gf(x.prevProp,T);let C=P||w===u&&x.isActive&&!V&&S||m>y&&S,M=!1;const I=Array.isArray(T)?T:[T];let z=I.reduce(r(w),{});D===!1&&(z={});const{prevResolvedValues:J={}}=x,ot={...J,...z},st=A=>{C=!0,d.has(A)&&(M=!0,d.delete(A)),x.needsAnimating[A]=!0;const k=t.getValue(A);k&&(k.liveStyle=!1)};for(const A in ot){const k=z[A],N=J[A];if(p.hasOwnProperty(A))continue;let O=!1;ds(k)&&ds(N)?O=!ja(k,N)||P:O=k!==N,O?k!=null?st(A):d.add(A):k!==void 0&&d.has(A)?st(A):x.protectedKeys[A]=!0}x.prevProp=T,x.prevResolvedValues=z,x.isActive&&(p={...p,...z}),(s||i)&&t.blockInitialAnimation&&(C=!1);const R=V&&P;C&&(!R||M)&&h.push(...I.map(A=>{const k={type:w};if(typeof A=="string"&&(s||i)&&!R&&t.manuallyAnimateOnMount&&t.parent){const{parent:N}=t,O=Yt(N,A);if(N.enteringChildren&&O){const{delayChildren:j}=O.transition||{};k.delay=ia(N.enteringChildren,t,j)}}return{animation:A,options:k}}))}if(d.size){const m={};if(typeof l.initial!="boolean"){const w=Yt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);w&&w.transition&&(m.transition=w.transition)}d.forEach(w=>{const x=t.getBaseTarget(w),T=t.getValue(w);T&&(T.liveStyle=!0),m[w]=x??null}),h.push({animation:m})}let g=!!h.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),s=!1,i=!1,g?e(h):Promise.resolve()}function c(u,l){var h;if(n[u].isActive===l)return Promise.resolve();(h=t.variantChildren)==null||h.forEach(d=>{var p;return(p=d.animationState)==null?void 0:p.setActive(u,l)}),n[u].isActive=l;const f=a(u);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=yo(),i=!0}}}function Gf(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ja(e,t):!1}function $t(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yo(){return{animate:$t(!0),whileInView:$t(),whileHover:$t(),whileTap:$t(),whileDrag:$t(),whileFocus:$t(),exit:$t()}}function Ss(t,e){t.min=e.min,t.max=e.max}function yt(t,e){Ss(t.x,e.x),Ss(t.y,e.y)}function vo(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Wa=1e-4,Xf=1-Wa,Yf=1+Wa,Na=.01,_f=0-Na,qf=0+Na;function lt(t){return t.max-t.min}function Zf(t,e,n){return Math.abs(t-e)<=n}function wo(t,e,n,s=.5){t.origin=s,t.originPoint=W(e.min,e.max,t.origin),t.scale=lt(n)/lt(e),t.translate=W(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Xf&&t.scale<=Yf||isNaN(t.scale))&&(t.scale=1),(t.translate>=_f&&t.translate<=qf||isNaN(t.translate))&&(t.translate=0)}function De(t,e,n,s){wo(t.x,e.x,n.x,s?s.originX:void 0),wo(t.y,e.y,n.y,s?s.originY:void 0)}function xo(t,e,n,s=0){const i=s?W(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+lt(e)}function Jf(t,e,n,s){xo(t.x,e.x,n.x,s==null?void 0:s.x),xo(t.y,e.y,n.y,s==null?void 0:s.y)}function To(t,e,n,s=0){const i=s?W(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+lt(e)}function wn(t,e,n,s){To(t.x,e.x,n.x,s==null?void 0:s.x),To(t.y,e.y,n.y,s==null?void 0:s.y)}function So(t,e,n,s,i){return t-=e,t=vn(t,1/n,s),i!==void 0&&(t=vn(t,1/i,s)),t}function Qf(t,e=0,n=1,s=.5,i,r=t,o=t){if(bt.test(e)&&(e=parseFloat(e),e=W(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=W(r.min,r.max,s);t===r&&(a-=e),t.min=So(t.min,e,n,a,i),t.max=So(t.max,e,n,a,i)}function Ao(t,e,[n,s,i],r,o){Qf(t,e[n],e[s],e[i],e.scale,r,o)}const th=["x","scaleX","originX"],eh=["y","scaleY","originY"];function Po(t,e,n,s){Ao(t.x,e,th,n?n.x:void 0,s?s.x:void 0),Ao(t.y,e,eh,n?n.y:void 0,s?s.y:void 0)}function bo(t){return t.translate===0&&t.scale===1}function $a(t){return bo(t.x)&&bo(t.y)}function Co(t,e){return t.min===e.min&&t.max===e.max}function nh(t,e){return Co(t.x,e.x)&&Co(t.y,e.y)}function Mo(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ua(t,e){return Mo(t.x,e.x)&&Mo(t.y,e.y)}function Vo(t){return lt(t.x)/lt(t.y)}function Eo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function St(t){return[t("x"),t("y")]}function sh(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,pathRotation:f,rotateX:h,rotateY:d,skewX:p,skewY:y}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),f&&(s+=`rotate(${f}deg) `),h&&(s+=`rotateX(${h}deg) `),d&&(s+=`rotateY(${d}deg) `),p&&(s+=`skewX(${p}deg) `),y&&(s+=`skewY(${y}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 ih=de.length,Do=t=>typeof t=="string"?parseFloat(t):t,Ro=t=>typeof t=="number"||b.test(t);function oh(t,e,n,s,i,r){i?(t.opacity=W(0,n.opacity??1,rh(s)),t.opacityExit=W(e.opacity??1,0,ah(s))):r&&(t.opacity=W(e.opacity??1,n.opacity??1,s));for(let o=0;o<ih;o++){const a=de[o];let c=Lo(e,a),u=Lo(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Ro(c)===Ro(u)?(t[a]=Math.max(W(Do(c),Do(u),s),0),(bt.test(u)||bt.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=W(e.rotate||0,n.rotate||0,s))}function Lo(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const rh=Ka(0,.5,kr),ah=Ka(.5,.95,nt);function Ka(t,e,n){return s=>s<t?0:s>e?1:n(Zt(t,e,s))}function za(t,e,n){const s=K(t)?t:ut(t);return s.start(bn("",s,e,n)),s.animation}function me(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const ch=(t,e)=>t.depth-e.depth;class uh{constructor(){this.children=[],this.isDirty=!1}add(e){Rs(this.children,e),this.isDirty=!0}remove(e){qt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ch),this.isDirty=!1,this.children.forEac
4h(e)}}function Ha(t,e){const n=rt.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(ct(s),t(r-e))};return E.setup(s,!0),()=>ct(s)}function km(t,e){return Ha(t,X(e))}function an(t){return K(t)?t.get():t}class lh{constructor(){this.members=[]}add(e){Rs(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&&(qt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(qt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,r,o;(s=(n=e.options).onExitComplete)==null||s.call(n),(o=(i=e.resumingFrom)==null?void 0:(r=i.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const cn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ut={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},$n=["","X","Y","Z"],fh=1e3;let hh=0;function Un(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ga(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=si(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",E,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&Ga(s)}function Xa({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=hh++,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,Pt.value&&(Ut.nodes=Ut.calculatedTargetDeltas=Ut.calculatedProjections=0),this.nodes.forEach(mh),this.nodes.forEach(Th),this.nodes.forEach(Sh),this.nodes.forEach(gh),Pt.addProjectionMetrics&&Pt.addProjectionMetrics(Ut)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 uh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ks),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=Vn(o)&&!wa(o),this.instance=o;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),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;E.read(()=>{f=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,l&&l(),l=Ha(h,250),cn.hasAnimatedSinceResize&&(cn.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 4,533 bytes, line 4
4h(Bo)))})}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 p=this.options.transition||u.getDefaultTransition()||Mh,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=u.getProps(),m=!this.targetLayout||!Ua(this.targetLayout,d),w=!f&&h;if(this.options.layoutRoot||this.resumeFrom||w||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Dt(p,"layout"),onPlay:y,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(l,w,x.path)}else f||Bo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ct(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(Ah),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ga(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(),o&&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(vh),this.nodes.forEach(ko);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Io);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wh),this.nodes.forEach(xh),this.nodes.forEach(dh),this.nodes.forEach(ph)):this.nodes.forEach(Io),this.clearAllSnapshots();const a=rt.now();$.delta=ht(0,1e3/60,a-$.timestamp),$.timestamp=a,$.isProcessing=!0,ae.update.process($),ae.preRender.process($),ae.render.process($),$.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ft.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yh),this.sharedNodes.forEach(Ph)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.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 o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=_()),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=s(this.instance);
4this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!$a(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||It(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Vh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return _();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Eh))){const{scroll:l}=this.root;l&&(At(a.x,l.offset.x),At(a.y,l.offset.y))}return a}removeElementScroll(o){var c;const a=_();if(yt(a,o),(c=this.scroll)!=null&&c.wasRoot)return a;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:f,options:h}=l;l!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&yt(a,o),At(a.x,f.offset.x),At(a.y,f.offset.y))}return a}applyTransform(o,a=!1,c){var l,f;const u=c||_();yt(u,o);for(let h=0;h<this.path.length;h++){const d=this.path[h];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(At(u.x,-d.scroll.offset.x),At(u.y,-d.scroll.offset.y)),It(d.latestValues)&&rn(u,d.latestValues,(l=d.layout)==null?void 0:l.layoutBox)}return It(this.latestValues)&&rn(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(o){var c;const a=_();yt(a,o);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!It(l.latestValues))continue;let f;l.instance&&(xs(l.latestValues)&&l.updateSnapshot(),f=_(),yt(f,l.measurePageBox())),Po(a,l.latestValues,(c=l.snapshot)==null?void 0:c.layoutBox,f)}return It(this.latestValues)&&Po(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==$.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=$.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=_(),this.targetWithTransforms=_()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Jf(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):yt(this.target,this.layout.layoutBox),Va(this.target,this.targetDelta)):yt(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),Pt.value&&Ut.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||xs(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_(),this.relativeTargetOrigin=_(),wn(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),yt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&
4(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===$.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;yt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Mf(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=_());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vo(this.prevProjectionDelta.x,this.projectionDelta.x),vo(this.prevProjectionDelta.y,this.projectionDelta.y)),De(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Eo(this.projectionDelta.x,this.prevProjectionDelta.x)||!Eo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d)),Pt.value&&Ut.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oe(),this.projectionDelta=oe(),this.projectionDeltaWithTransform=oe()}setAnimationOrigin(o,a=!1,c){const u=this.snapshot,l=u?u.latestValues:{},f={...this.latestValues},h=oe();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=_(),p=u?u.source:void 0,y=this.layout?this.layout.source:void 0,g=p!==y,m=this.getStack(),w=!m||m.members.length<=1,x=!!(g&&!w&&this.options.crossfade===!0&&!this.path.some(Ch));this.animationProgress=0;let T;const S=c==null?void 0:c.interpolateProjection(o);this.mixTargetDelta=D=>{const V=D/1e3,P=S==null?void 0:S(V);P?(h.x.translate=P.x,h.x.scale=W(o.x.scale,1,V),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=P.y,h.y.scale=W(o.y.scale,1,V),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Oo(h.x,o.x,V),Oo(h.y,o.y,V)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wn(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),bh(this.relativeTarget,this.relativeTargetOrigin,d,V),T&&nh(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=_()),yt(T,this.relativeTarget)),g&&(this.animationValues=f,oh(f,l,this.latestValues,V,x,w)),P&&P.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=P.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,c,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ct(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{cn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ut(0)),this.motionValue.jump(0,!1),this.currentAnimation=za(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=o;if(!(!a||!c||!u)){if(this!==o&&this.layout&&u&&Ya(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||_();const f=lt(this.layout.layoutBox.x);
4c.x.min=o.target.x.min,c.x.max=c.x.min+f;const h=lt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}yt(a,c),rn(a,l),De(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new lh),this.sharedNodes.get(o).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 o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&Un("z",o,u,this.animationValues);for(let l=0;l<$n.length;l++)Un(`rotate${$n[l]}`,o,u,this.animationValues),Un(`skew${$n[l]}`,o,u,this.animationValues);o.render();for(const l in u)o.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=an(a==null?void 0:a.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=an(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!It(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=sh(this.projectionDeltaWithTransform,this.treeScale,l);c&&(f=c(l,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?o.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:o.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in Ne){if(l[p]===void 0)continue;const{correct:y,applyTo:g,isCSSVariable:m}=Ne[p],w=f==="none"?l[p]:y(l[p],u);if(g){const x=g.length;for(let T=0;T<x;T++)o[g[T]]=w}else m?this.options.visualElement.renderState.vars[p]=w:o[p]=w}this.options.layoutId&&(o.pointerEvents=u===this?an(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ko),this.root.sharedNodes.clear()}}}function dh(t){t.updateLayout()}function ph(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")St(f=>{const h=o?e.measuredBox[f]:e.layoutBox[f],d=lt(h);h.min=s[f].min,h.max=h.min+d});else if(r==="x"||r==="y"){const f=r==="x"?"y":"x";Ss(o?e.measuredBox[f]:e.layoutBox[f],s[f])}else Ya(r,e.layoutBox,s)&&St(f=>{const h=o?e.measuredBox[f]:e.layoutBox[f],d=lt(s[f]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+d)});const a=oe();De(a,s,e.layoutBox);const c=oe();o?De(c,t.applyTransform(i,!0),e.measuredBox):De(c,s,e.layoutBox);const u=!$a(a);let l=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const p=t.options.layoutAnchor||void 0,y=_();wn(y,e.layoutBox,h.layoutBox,p);const g=_();wn(g,s,d.layoutBox,p),Ua(y,g)||(l=!0),f.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function mh(t){Pt.value&&Ut.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
4isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function gh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function yh(t){t.clearSnapshot()}function ko(t){t.clearMeasurements()}function vh(t){t.isLayoutDirty=!0,t.updateLayout()}function Io(t){t.isLayoutDirty=!1}function wh(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function xh(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Bo(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Th(t){t.resolveTargetDelta()}function Sh(t){t.calcProjection()}function Ah(t){t.resetSkewAndRotation()}function Ph(t){t.removeLeadSnapshot()}function Oo(t,e,n){t.translate=W(e.translate,0,n),t.scale=W(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Fo(t,e,n,s){t.min=W(e.min,n.min,s),t.max=W(e.max,n.max,s)}function bh(t,e,n,s){Fo(t.x,e.x,n.x,s),Fo(t.y,e.y,n.y,s)}function Ch(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Mh={duration:.45,ease:[.4,0,.1,1]},jo=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Wo=jo("applewebkit/")&&!jo("chrome/")?Math.round:nt;function No(t){t.min=Wo(t.min),t.max=Wo(t.max)}function Vh(t){No(t.x),No(t.y)}function Ya(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zf(Vo(e),Vo(n),.2)}function Eh(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const Dh=Xa({attachResizeListener:(t,e)=>me(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Rh=t=>!t.isLayoutDirty&&t.willUpdate(!1);function $o(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Rh);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",n))},remove:s=>{t.delete(s);const i=e.get(s);i&&(i(),e.delete(s)),n()},dirty:n}}const _t={current:void 0},vi=Xa({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!_t.current){const t=new Dh({});t.mount(window),t.setOptions({layoutScroll:!0}),_t.current=t}return _t.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Uo="[data-layout],[data-layout-id]",xn=new WeakMap;let Re;function Ko(t){const e=[];return t instanceof HTMLElement&&t.matches(Uo)&&e.push(t),t.querySelectorAll(Uo).forEach(n=>{n instanceof HTMLElement&&e.push(n)}),e}function Lh(){if($.isProcessing)return;const t=rt.now();$.delta=ht(0,1e3/60,t-$.timestamp),$.timestamp=t,$.isProcessing=!0,ae.update.process($),ae.preRender.process($),ae.render.process($),$.isProcessing=!1}function kh(t){let e=t.parentElement;for(;e;){const n=xn.get(e);if(n&&n.instance)return n;e=e.parentElement}}function Ih(){return new yi({props:{},presenceContext:null,visualState:{latestValues:{},renderState:{transform:{},transformOrigin:{},style:{},vars:{}}}},{allowProjection:!0})}function zo(t,e){const n=t.getAttribute("data-layout");return{layoutId:t.getAttribute("data-layout-id")??void 0,layout:n!==null?!0:void 0,animationType:!n||n==="true"?"both":n,transition:e}}function _a(t,e){let n=xn.get(t);if(n)n.setOptions(zo(t,e));else{let s=pe.get(t);s||(s=Ih()),t.style.transform&&!It(s.latestValues)&&(t.style.transform=""),n=new vi(s.latestValues,kh(t)),s.projection=n,n.setOptions({...zo(t,e),visualElement:s}),n.mount(t),xn.set(t,n)}return n.isPresent=!0,n.options.onExitComplete&&n.setOptions({onExitComplete:void 0}),n}function Bh(t){return[...t].sort((e,n)=>e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Ho(t,e){var s;e.setOptions({onExitComplete:void 0}),(!e.getStack()||e.isLead())&&((s=e.currentAnimation)==null||s.stop()),e.unmount(),xn.delete(t)}function Oh(){const t=Re;Re=void 0,Lh();const e=new Map;for(const r of t)for(const o of r.collectTargets()){const a=e.get(o);a?a.push(r):e.set(o,[r])}const n=new Map;for(const r of Bh(e.keys())){const o=e.get(r),a=_a(r,o[o.length-1].transitionFor(r));for(const c of o)c.adopt(r,a);n.set(r,a)}n.forEach(r=>{r.isLayoutDirty=!1,r.willUpdate()});const s=[];for(const r of t){const o=r.runUpdate();o&&s.push(o)}const i=()=>{const r=new Set;for(const a of t)a.reconcileAdditions(r);for(const a of t)a.reconcileRemovals(r);let o;
4n.forEach(a=>o||(o=a.root));for(const a of t)o||(o=a.getRoot());o==null||o.didUpdate(),Ft.render(()=>{for(const a of t)a.finalize()})};s.length?Promise.all(s).then(i):i()}class Bm{constructor(e,n,s){this.scope=e,this.updateDom=n,this.defaultOptions=s,this.sharedTransitions=new Map,this.notifyReady=()=>{},this.rejectReady=()=>{},this.tracked=new Map,this.restorePoints=new Map,this.readyPromise=new Promise((i,r)=>{this.notifyReady=i,this.rejectReady=r}),Re||(Re=[],queueMicrotask(Oh)),Re.push(this)}shared(e,n){return this.sharedTransitions.set(e,n),this}then(e,n){return this.readyPromise.then(e,n)}transitionFor(e){const n=e.getAttribute("data-layout-id");return n&&this.sharedTransitions.get(n)||this.defaultOptions}adopt(e,n){this.tracked.set(e,n),this.restorePoints.set(e,{parent:e.parentElement,next:e.nextSibling})}collectTargets(){return Ko(this.scope)}runUpdate(){try{const e=this.updateDom();if(e&&typeof e.then=="function")return e.then(void 0,n=>{this.updateError=n})}catch(e){this.updateError=e}}reconcileAdditions(e){for(const n of Ko(this.scope)){if(this.tracked.has(n))continue;const s=_a(n,this.transitionFor(n));this.adopt(n,s),s.options.layoutId&&e.add(s.options.layoutId)}}reconcileRemovals(e){this.tracked.forEach((n,s)=>{if(s.isConnected)return;const i=this.restorePoints.get(s);this.restorePoints.delete(s);const{layoutId:r}=n.options,o=n.getStack(),a=o&&o.members.some(c=>{var u;return c!==n&&((u=c.instance)==null?void 0:u.isConnected)});if(r&&n.isLead()&&a&&!e.has(r)&&i&&i.parent.isConnected){if(i.parent.insertBefore(s,i.next&&i.next.parentNode===i.parent?i.next:null),n.isPresent=!1,n.setOptions({onExitComplete:()=>{s.remove(),Ho(s,n)}}),n.relegate())return;s.remove()}Ho(s,n),this.tracked.delete(s)})}getRoot(){let e;return this.tracked.forEach(n=>e||(e=n.root)),e}finalize(){if(this.updateError){this.rejectReady(this.updateError);return}const e=new Set;this.tracked.forEach(n=>{n.instance&&n.currentAnimation&&e.add(n.currentAnimation)}),this.notifyReady(new Ee([...e]))}}function Om(t,e,n){return typeof t=="function"?{scope:document,updateDom:t,defaultOptions:e}:{scope:t instanceof Document?t:Lt(t)[0]??document,updateDom:e,defaultOptions:n}}const Fm=E,jm=Ae.reduce((t,e)=>(t[e]=n=>ct(n),t),{}),Ct=v.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Go(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Fh(...t){return e=>{let n=!1;const s=t.map(i=>{const r=Go(i,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<s.length;i++){const r=s[i];typeof r=="function"?r():Go(t[i],null)}}}}function jh(...t){return v.useCallback(Fh(...t),t)}class Wh extends v.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(ue(n)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=n.offsetParent,i=ue(s)&&s.offsetWidth||0,r=ue(s)&&s.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Nh({children:t,isPresent:e,anchorX:n,anchorY:s,root:i,pop:r}){var h;const o=v.useId(),a=v.useRef(null),c=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=v.useContext(Ct),l=r!==!1?((h=t.props)==null?void 0:h.ref)??(t==null?void 0:t.ref):void 0,f=jh(a,l);return v.useInsertionEffect(()=>{const{width:d,height:p,top:y,left:g,right:m,bottom:w,direction:x}=c.current;if(e||r===!1||!a.current||!d||!p)return;const T=x==="rtl",S=n==="left"?T?`right: ${m}`:`left: ${g}`:T?`left: ${g}`:`right: ${m}`,D=s==="bottom"?`bottom: ${w}`:`top: ${y}`;a.current.dataset.motionPopId=o;const V=document.createElement("style");u&&(V.nonce=u);const P=i??document.head;return P.appendChild(V),V.sheet&&V.sheet.insertRule(` 5 [data-motion-pop-id="${o}"] { 6 position: absolute !important; 7 width: ${d}px !important; 8 height: ${p}px !important; 9 ${S}px !important; 10 ${D}px !important; 11 } 12 `),()=>{var C;(C=a.current)==null||C.removeAttribute("data-motion-pop-id"),P.contains(V)&&P.removeChild(V)}},[e]),at.jsx(Wh,{isPresent:e,childRef:a,sizeRef:c,pop:r,children:r===!1?t:v.cloneElement(t,{ref:f})})}const $h=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:c,root:u})=>{const l=Z(Uh),f=v.useId(),h=v.useRef(n),d=v.useRef(s);Qt(()=>{h.current=n,d.current=s});let p=!0,y=v.useMemo(()=>(p=!1,{id:f,initial:e,isPresent:n,custom:i,onExitComplete:g=>{l.set(g,!0);for(const m of l.values())if(!m)return;s&&s()},register:g=>(l.set(g,!1),()=>{var m;l.delete(g),!h.current&&!l.size&&((m=d.current)==null||m.call(d))})}),[n,l,s]);return r&&p&&(y={...y}),v.useMemo(()=>{l.forEach((g,m)=>l.set(m,!1))},[n]),v.useEffect(()=>{!n&&!l.size&&s&&s()},[n]),t=at.jsx(Nh,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:c,root:u,children:t}),at.jsx(ge.Provider,{value:y,children:t})};function Uh(){return new Map}function qa(t=!0){const e=v.useContext(ge);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=v.useId();v.useEffect(()=>{if(t)return i(r)},[t]);const o=v.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}function Wm(){return Kh(v.useContext(ge))}function Kh(t){return t===null?!0:t.isPresent}const _e=t=>t.key||"";function Xo(t){const e=[];
12return v.Children.forEach(t,n=>{v.isValidElement(n)&&e.push(n)}),e}const Nm=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:c="top",root:u})=>{const[l,f]=qa(o),h=v.useMemo(()=>Xo(t),[t]),d=o&&!l?[]:h.map(_e),p=v.useRef(!0),y=v.useRef(h),g=Z(()=>new Map),m=v.useRef(new Set),[w,x]=v.useState(h),[T,S]=v.useState(h);Qt(()=>{p.current=!1,y.current=h;for(let P=0;P<T.length;P++){const C=_e(T[P]);d.includes(C)?(g.delete(C),m.current.delete(C)):g.get(C)!==!0&&g.set(C,!1)}},[T,d.length,d.join("-")]);const D=[];if(h!==w){let P=[...h];for(let C=0;C<T.length;C++){const M=T[C],I=_e(M);d.includes(I)||(P.splice(C,0,M),D.push(M))}return r==="wait"&&D.length&&(P=D),S(Xo(P)),x(h),null}const{forceRender:V}=v.useContext(Be);return at.jsx(at.Fragment,{children:T.map(P=>{const C=_e(P),M=o&&!l?!1:h===T||d.includes(C),I=()=>{if(m.current.has(C))return;if(g.has(C))m.current.add(C),g.set(C,!0);else return;let z=!0;g.forEach(J=>{J||(z=!1)}),z&&(V==null||V(),S(y.current),o&&(f==null||f()),s&&s())};return at.jsx($h,{isPresent:M,initial:!p.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:r,root:u,onExitComplete:M?void 0:I,anchorX:a,anchorY:c,children:P},C)})})},zh=v.createContext(null);function Hh(){const t=v.useRef(!1);return Qt(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Za(){const t=Hh(),[e,n]=v.useState(0),s=v.useCallback(()=>{t.current&&n(e+1)},[e]);return[v.useCallback(()=>E.postRender(s),[s]),e]}const Ja=t=>t===!0,Gh=t=>Ja(t===!0)||t==="id",Xh=({children:t,id:e,inherit:n=!0})=>{const s=v.useContext(Be),i=v.useContext(zh),[r,o]=Za(),a=v.useRef(null),c=s.id||i;a.current===null&&(Gh(n)&&c&&(e=e?c+"-"+e:c),a.current={id:e,group:Ja(n)&&s.group||$o()});const u=v.useMemo(()=>({...a.current,forceRender:r}),[o]);return at.jsx(Be.Provider,{value:u,children:t})},wi=v.createContext({strict:!1}),Yo={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 _o=!1;function Yh(){if(_o)return;const t={};for(const e in Yo)t[e]={isEnabled:n=>Yo[e].some(s=>!!n[s])};Pa(t),_o=!0}function Qa(){return Yh(),Pf()}function As(t){const e=Qa();for(const n in t)e[n]={...e[n],...t[n]};Pa(e)}function $m({children:t,features:e,strict:n=!1}){const[,s]=v.useState(!Kn(e)),i=v.useRef(void 0);if(!Kn(e)){const{renderer:r,...o}=e;i.current=r,As(o)}return v.useEffect(()=>{Kn(e)&&e().then(({renderer:r,...o})=>{As(o),i.current=r,s(!0)})},[]),at.jsx(wi.Provider,{value:{renderer:i.current,strict:n},children:t})}function Kn(t){return typeof t=="function"}const _h=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 Tn(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||_h.has(t)}let tc=t=>!Tn(t);function ec(t){typeof t=="function"&&(tc=e=>e.startsWith("on")?!Tn(e):t(e))}try{ec(require("@emotion/is-prop-valid").default)}catch{}function qh(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||K(t[i])||(tc(i)||n===!0&&Tn(i)||!e&&!Tn(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function Um({children:t,isValidProp:e,...n}){e&&ec(e);const s=v.useContext(Ct);n={...s,...n},n.transition=ti(n.transition,s.transition),n.isStatic=Z(()=>n.isStatic);const i=v.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return at.jsx(Ct.Provider,{value:i,children:t})}const He=v.createContext({});function Zh(t,e){if(Dn(t)){const{initial:n,animate:s}=t;return{initial:n===!1||We(n)?n:void 0,animate:We(s)?s:void 0}}return t.inherit!==!1?e:{}}function Jh(t){const{initial:e,animate:n}=Zh(t,v.useContext(He));return v.useMemo(()=>({initial:e,animate:n}),[qo(e),qo(n)])}function qo(t){return Array.isArray(t)?t.join(" "):t}const xi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nc(t,e,n){for(const s in e)!K(e[s])&&!Ra(s,n)&&(t[s]=e[s])}function Qh({transformTemplate:t},e){return v.useMemo(()=>{const n=xi();return mi(n,e,t),Object.assign({},n.vars,n.style)},[e])}function td(t,e){const n=t.style||{},s={};return nc(s,n,t),Object.assign(s,Qh(t,e)),s}function ed(t,e){const n={},s=td(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 sc=()=>({...xi(),attrs:{}});
vendor: 20,602 bytes, line 12
12function nd(t,e,n,s){const i=v.useMemo(()=>{const r=sc();return La(r,e,Ia(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};nc(r,t.style,t),i.style={...r,...i.style}}return i}const sd=["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 Ti(t){return typeof t!="string"||t.includes("-")?!1:!!(sd.indexOf(t)>-1||/[A-Z]/u.test(t))}function id(t,e,n,{latestValues:s},i,r=!1,o){const c=(o??Ti(t)?nd:ed)(e,s,i,t),u=qh(e,typeof t=="string",r),l=t!==v.Fragment?{...u,...c,ref:n}:{},{children:f}=e,h=v.useMemo(()=>K(f)?f.get():f,[f]);return v.createElement(t,{...l,children:h})}function od({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:rd(n,s,i,t),renderState:e()}}function rd(t,e,n,s){const i={},r=s(t,{});for(const h in r)i[h]=an(r[h]);let{initial:o,animate:a}=t;const c=Dn(t),u=Sa(t);e&&u&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||o===!1;const f=l?a:o;if(f&&typeof f!="boolean"&&!En(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=ei(t,h[d]);if(p){const{transitionEnd:y,transition:g,...m}=p;for(const w in m){let x=m[w];if(Array.isArray(x)){const T=l?x.length-1:0;x=x[T]}x!==null&&(i[w]=x)}for(const w in y)i[w]=y[w]}}}return i}const Si=t=>(e,n)=>{const s=v.useContext(He),i=v.useContext(ge),r=()=>od(t,e,s,i);return n?r():Z(r)},ad=Si({scrapeMotionValuesFromProps:gi,createRenderState:xi}),cd=Si({scrapeMotionValuesFromProps:Ba,createRenderState:sc}),Ai=Symbol.for("motionComponentSymbol");function ud(t,e,n){const s=v.useRef(n);v.useInsertionEffect(()=>{s.current=n});const i=v.useRef(null);return v.useCallback(r=>{var a;r&&((a=t.onMount)==null||a.call(t,r)),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const c=o(r);typeof c=="function"&&(i.current=c)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const ic=v.createContext({});function ne(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ld(t,e,n,s,i,r){var x,T;const{visualElement:o}=v.useContext(He),a=v.useContext(wi),c=v.useContext(ge),u=v.useContext(Ct),l=u.reducedMotion,f=u.skipAnimations,h=v.useRef(null),d=v.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:f,isSVG:r}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,y=v.useContext(ic);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&fd(h.current,n,i,y);const g=v.useRef(!1);v.useInsertionEffect(()=>{p&&g.current&&p.update(n,c)});const m=n[ca],w=v.useRef(!!m&&typeof window<"u"&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,m))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,m)));return Qt(()=>{d.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),v.useEffect(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var S;(S=window.MotionHandoffMarkAsComplete)==null||S.call(window,m)}),w.current=!1),p.enteringChildren=void 0)}),p}function fd(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:oc(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&ne(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function oc(t){if(t)return t.options.allowProjection!==!1?t.projection:oc(t.parent)}function zn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&As(s);const r=n?n==="svg":Ti(t),o=r?cd:ad;function a(u,l){let f;const h={...v.useContext(Ct),...u,layoutId:hd(u)},{isStatic:d}=h,p=Jh(u),y=o(u,d);if(!d&&typeof window<"u"){dd();const g=pd(h);f=g.MeasureLayout,p.visualElement=ld(t,y,h,i,g.ProjectionNode,r)}return at.jsxs(He.Provider,{value:p,children:[f&&p.visualElement?at.jsx(f,{visualElement:p.visualElement,...h}):null,id(t,u,ud(y,p.visualElement,l),y,d,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=v.forwardRef(a);return c[Ai]=t,c}function hd({layoutId:t}){const e=v.useContext(Be).id;return e&&t!==void 0?e+"-"+t:t}function dd(t,e){v.useContext(wi).strict}function pd(t){const e=Qa(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function rc(t,e){if(typeof Proxy>"u")return zn;const n=new Map,s=(r,o)=>zn(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,zn(o,void 0,t,e)),n.get(o))})}const Km=rc(),Pi=(t,e)=>e.isSVG??Ti(t)?new Oa(e):new yi(e,{allowProjection:t!==v.Fragment});class md extends jt{constructor(e){super(e),e.animationState||(e.animationState=Hf(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();En(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let gd=0;class yd extends jt{constructor(){super(...arguments),this.id=gd++,this.isExitComplete=!1}update(){var r;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:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const c=Yt(this.node,o,a);if(c){const{transition:u,transitionEnd:l,...f}=c;for(const h in f)(r=this.node.getValue(h))==null||r.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const bi={animation:{Feature:md},exit:{Feature:yd}};function Ge(t){return{point:{x:t.pageX,y:t.pageY}}}const vd=t=>e=>ci(e)&&t(e,Ge(e));function Le(t,e,n,s){return me(t,e,vd(n),s)}const ac=({current:t})=>t?t.ownerDocument.defaultView:null,Zo=(t,e)=>Math.abs(t-e);function wd(t,e){const n=Zo(t.x,e.x),s=Zo(t.y,e.y);return Math.sqrt(n**2+s**2)}const Jo=new Set(["auto","scroll"]);class cc{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=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=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=qe(this.lastRawMoveEventInfo,this.transformPagePoint));const p=Hn(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=wd(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!g)return;const{point:m}=p,{timestamp:w}=$;this.history.push({...m,timestamp:w});const{onStart:x,onMove:T}=this.handlers;y||(x&&x(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=y,this.lastMoveEventInfo=qe(y,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Hn(p.type==="pointercancel"?this.lastMoveEventInfo:qe(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,x),m&&m(p,x)},!ci(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=Ge(e),u=qe(c,this.transformPagePoint),{point:l}=u,{timestamp:f}=$;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,Hn(u,this.history));const d={passive:!0,capture:!0};this.removeListeners=Ue(Le(this.contextWindow,"pointermove",this.handlePointerMove,d),Le(this.contextWindow,"pointerup",this.handlePointerUp,d),Le(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Jo.has(s.overflowX)||Jo.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},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),E.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ct(this.updatePoint)}}function qe(t,e){return e?{point:e(t.point)}:t}function Qo(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Hn({point:t},e){return{point:t,delta:Qo(t,uc(e)),offset:Qo(t,xd(e)),velocity:Td(e,.1)}}function xd(t){return t[0]}function uc(t){return t[t.length-1]}function Td(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=uc(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>X(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>X(e)*2&&(s=t[1]);const r=gt(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Sd(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?W(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?W(n,t,s.max):Math.min(t,n)),t}function tr(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 Ad(t,{top:e,left:n,bottom:s,right:i}){return{x:tr(t.x,n,i),y:tr(t.y,e,s)}}function er(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 Pd(t,e){return{x:er(t.x,e.x),y:er(t.y,e.y)}}function bd(t,e){let n=.5;const s=lt(t),i=lt(e);return i>s?n=Zt(e.min,e.max-s,t.min):s>i&&(n=Zt(t.min,t.max-i,e.min)),ht(0,1,n)}function Cd(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 Ps=.35;function Md(t=Ps){return t===!1?t=0:t===!0&&(t=Ps),{x:nr(t,"left","right"),y:nr(t,"top","bottom")}}function nr(t,e,n){return{min:sr(t,e),max:sr(t,n)}}function sr(t,e){return typeof t=="number"?t:t[e]||0}const Vd=new WeakMap;class Ed{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=_(),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 r=f=>{n&&this.snapToCursor(Ge(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:y}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Il(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),St(m=>{let w=this.getAxisMotionValue(m).get()||0;if(bt.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[m];T&&(w=lt(T)*(parseFloat(w)/100))}}this.originPoint[m]=w}),y&&E.update(()=>y(f,h),!1,!0),ps(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:y,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:m}=h;if(p&&this.currentDirection===null){this.currentDirection=Rd(m),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,m),this.updateAxis("y",h.point,m),this.visualElement.render(),g&&E.update(()=>g(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new cc(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:ac(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&E.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||!Ze(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=Sd(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,i=this.constraints;e&&ne(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Ad(s.layoutBox,e):this.constraints=!1,this.elastic=Md(n),i!==this.constraints&&!ne(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&St(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Cd(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ne(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=Vf(s,i.root,this.visualElement.getTransformPagePoint());let o=Pd(i.layout.layoutBox,r);if(n){const a=n(bf(o));this.hasMutatedConstraints=!!a,a&&(o=Ca(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=St(l=>{if(!Ze(l,n,this.currentDirection))return;let f=c&&c[l]||{};(o===!0||o===l)&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ps(this.visualElement,e),s.start(bn(e,s,0,n,this.visualElement,!1))}stopAnimation(){St(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){St(n=>{const{drag:s}=this.getProps();if(!Ze(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],c=r.get()||0;r.set(e[n]-W(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!ne(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};St(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=bd({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),St(o=>{if(!Ze(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];a.set(W(c,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Vd.set(this.visualElement,this);const e=this.visualElement.current,n=Le(e,"pointerdown",u=>{const{drag:l,dragListener:f=!0}=this.getProps(),h=u.target,d=h!==e&&Nl(h);l&&f&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();ne(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Dd(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),E.read(i);const a=me(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(St(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(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ps,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function ir(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Dd(t,e,n){const s=ws(t,ir(n)),i=ws(e,ir(n));return()=>{s(),i()}}function Ze(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Rd(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Ld extends jt{constructor(e){super(e),this.removeGroupControls=nt,this.removeListeners=nt,this.controls=new Ed(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nt}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 Gn=t=>(e,n)=>{t&&E.update(()=>t(e,n),!1,!0)};class kd extends jt{constructor(){super(...arguments),this.removePointerDownListener=nt}onPointerDown(e){this.session=new cc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ac(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Gn(e),onStart:Gn(n),onMove:Gn(s),onEnd:(r,o)=>{delete this.session,i&&E.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Le(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}
12let Xn=!1;class Id extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Xn&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cn.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Xn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||E.postRender(()=>{const a=o.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(),Ft.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Xn=!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 lc(t){const[e,n]=qa(),s=v.useContext(Be);return at.jsx(Id,{...t,layoutGroup:s,switchLayoutGroup:v.useContext(ic),isPresent:e,safeToRemove:n})}const fc={pan:{Feature:kd},drag:{Feature:Ld,ProjectionNode:vi,MeasureLayout:lc}};function or(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&E.postRender(()=>r(e,Ge(e)))}class Bd extends jt{mount(){const{current:e}=this.node;e&&(this.unmount=Ol(e,(n,s)=>(or(this.node,s,"Start"),i=>or(this.node,i,"End"))))}unmount(){}}class Od extends jt{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=Ue(me(this.node.current,"focus",()=>this.onFocus()),me(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rr(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),r=s[i];r&&E.postRender(()=>r(e,Ge(e)))}class Fd extends jt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Ul(e,(i,r)=>(rr(this.node,r,"Start"),(o,{success:a})=>rr(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const bs=new WeakMap,Yn=new WeakMap,jd=t=>{const e=bs.get(t.target);e&&e(t)},Wd=t=>{t.forEach(jd)};function Nd({root:t,...e}){const n=t||document;Yn.has(n)||Yn.set(n,{});const s=Yn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Wd,{root:t,...e})),s[i]}function $d(t,e,n){const s=Nd(e);return bs.set(t,n),s.observe(t),()=>{bs.delete(t),s.unobserve(t)}}const Ud={some:0,all:1};class Kd extends jt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var c;(c=this.stopObserver)==null||c.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ud[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),d=l?f:h;d&&d(u)};this.stopObserver=$d(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(zd(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function zd({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const hc={inView:{Feature:Kd},tap:{Feature:Fd},focus:{Feature:Od},hover:{Feature:Bd}},dc={layout:{ProjectionNode:vi,MeasureLayout:lc}},Hd={...bi,...hc,...fc,...dc},pc=rc(Hd,Pi);function mc(t){return v.useEffect(()=>()=>t(),[])}const Gd={renderer:Pi,...bi,...hc},zm={...Gd,...fc,...dc},Hm={renderer:Pi,...bi};function Xd(t,e,n){v.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function Sn(t){return typeof window>"u"?!1:t?ea():Zs()}const Yd=50,ar=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),_d=()=>({time:0,x:ar(),y:ar()}),qd={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function cr(t,e,n,s){const i=n[e],{length:r,position:o}=qd[e],a=i.current,c=n.time;i.current=Math.abs(t[`scroll${o}`]),i.scrollLength=t[`scroll${r}`]-t[`client${r}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Zt(0,i.scrollLength,i.current);const u=s-c;
12i.velocity=u>Yd?0:Is(i.current-a,u)}function Zd(t,e,n){cr(t,"x",e,n),cr(t,"y",e,n),e.time=n}function Jd(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(ue(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 r=s.getBoundingClientRect();n.x+=i.left-r.left,n.y+=i.top-r.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:r}=s.getBBox();n.x+=i,n.y+=r;let o=null,a=s.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=s.parentNode;s=o}else break;return n}const Cs={start:0,center:.5,end:1};function ur(t,e,n=0){let s=0;if(t in Cs&&(t=Cs[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 Qd=[0,0];function tp(t,e,n,s){let i=Array.isArray(t)?t:Qd,r=0,o=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,Cs[t]?t:"0"]),r=ur(i[0],n,s),o=ur(i[1],e),r-o}const be={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},ep={x:0,y:0};function np(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function sp(t,e,n){const{offset:s=be.All}=n,{target:i=t,axis:r="y"}=n,o=r==="y"?"height":"width",a=i!==t?Jd(i,t):ep,c=i===t?{width:t.scrollWidth,height:t.scrollHeight}:np(i),u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let l=!e[r].interpolate;const f=s.length;for(let h=0;h<f;h++){const d=tp(s[h],u[o],c[o],a[r]);!l&&d!==e[r].interpolatorOffsets[h]&&(l=!0),e[r].offset[h]=d}l&&(e[r].interpolate=Hs(e[r].offset,Gs(s),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=ht(0,1,e[r].interpolate(e[r].current))}function ip(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 op(t,e,n,s={}){return{measure:i=>{ip(t,s.target,n),Zd(t,n,i),(s.offset||s.target)&&sp(t,n,s)},notify:()=>e(n)}}const te=new WeakMap,lr=new WeakMap,_n=new WeakMap,fr=new WeakMap,Je=new WeakMap,hr=t=>t===document.scrollingElement?window:t;function gc(t,{container:e=document.scrollingElement,trackContentSize:n=!1,...s}={}){if(!e)return nt;let i=_n.get(e);i||(i=new Set,_n.set(e,i));const r=_d(),o=op(e,t,r,s);if(i.add(o),!te.has(e)){const c=()=>{for(const h of i)h.measure($.timestamp);E.preUpdate(u)},u=()=>{for(const h of i)h.notify()},l=()=>E.read(c);te.set(e,l);const f=hr(e);window.addEventListener("resize",l),e!==document.documentElement&&lr.set(e,ws(e,l)),f.addEventListener("scroll",l),l()}
12if(n&&!Je.has(e)){const c=te.get(e),u={width:e.scrollWidth,height:e.scrollHeight};fr.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=E.read(l,!0);Je.set(e,f)}const a=te.get(e);return E.read(a,!1,!0),()=>{var f;ct(a);const c=_n.get(e);if(!c||(c.delete(o),c.size))return;const u=te.get(e);te.delete(e),u&&(hr(e).removeEventListener("scroll",u),(f=lr.get(e))==null||f(),window.removeEventListener("resize",u));const l=Je.get(e);l&&(ct(l),Je.delete(e)),fr.delete(e)}}const rp=[[be.Enter,"entry"],[be.Exit,"exit"],[be.Any,"cover"],[be.All,"contain"]],dr={start:0,end:1};function ap(t){const e=t.trim().split(/\s+/);if(e.length!==2)return;const n=dr[e[0]],s=dr[e[1]];if(!(n===void 0||s===void 0))return[n,s]}function cp(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=ap(n);if(!s)return;e.push(s)}else return;return e}function up(t,e){const n=cp(t);if(!n)return!1;for(let s=0;s<2;s++){const i=n[s],r=e[s];if(i[0]!==r[0]||i[1]!==r[1])return!1}return!0}function Ci(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[e,n]of rp)if(up(t,e))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const pr=new Map;function mr(t){const e={value:0},n=gc(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function yc({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);let i=pr.get(e);i||(i=new Map,pr.set(e,i));const r=n.target??"self";let o=i.get(r);o||(o={},i.set(r,o));const a=s+(n.offset??[]).join(",");return o[a]||(n.target&&Sn(n.target)?Ci(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:s}):o[a]=mr({container:e,...n}):Sn()?o[a]=new ScrollTimeline({source:e,axis:s}):o[a]=mr({container:e,...n})),o[a]}function lp(t,e){const n=yc(e),s=e.target?Ci(e.offset):void 0,i=e.target?Sn(e.target)&&!!s:Sn();return t.attachTimeline({timeline:i?n:void 0,...s&&i&&{rangeStart:s.rangeStart,rangeEnd:s.rangeEnd},observe:r=>(r.pause(),va(o=>{r.time=r.iterationDuration*o},n))})}function fp(t){return t&&(t.target||t.offset)}function hp(t){return t.length===2}function dp(t,e){return hp(t)||fp(e)?gc(n=>{t(n[e.axis].progress,n)},e):va(t,yc(e))}function vc(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return nt;const i={axis:e,container:n,...s};return typeof t=="function"?dp(t,i):lp(t,i)}const pp=()=>({scrollX:ut(0),scrollY:ut(0),scrollXProgress:ut(0),scrollYProgress:ut(0)}),re=t=>t?!t.current:!1;function gr(t,e,n,s){return{factory:i=>{let r;const o=()=>{if(re(n)||re(s)){Ft.read(o);return}r=vc(i,{...e,axis:t,container:(n==null?void 0:n.current)||void 0,target:(s==null?void 0:s.current)||void 0})};return Ft.read(o),()=>{da(o),r==null||r()}},times:[0,1],keyframes:[0,1],ease:i=>i,duration:1}}function mp(t,e){return typeof window>"u"?!1:t?ea()&&!!Ci(e):Zs()}function wc({container:t,target:e,...n}={}){const s=Z(pp);mp(e,n.offset)&&(s.scrollXProgress.accelerate=gr("x",n,t,e),s.scrollYProgress.accelerate=gr("y",n,t,e));const i=v.useRef(null),r=v.useRef(!1),o=v.useCallback(()=>(i.current=vc((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==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}),()=>{var a;(a=i.current)==null||a.call(i)}),[t,e,JSON.stringify(n.offset)]);return Qt(()=>{if(r.current=!1,re(t)||re(e)){r.current=!0;return}else return o()},[o]),v.useEffect(()=>{if(!r.current)return;let a;const c=()=>{const u=re(t),l=re(e);!u&&!l&&(a=o())};return Ft.read(c),()=>{da(c),a==null||a()}},[o]),s}function Gm(t){return wc({container:t})}function Xm(){return wc()}function Jt(t){const e=Z(()=>ut(t)),{isStatic:n}=v.useContext(Ct);if(n){const[,s]=v.useState(t);v.useEffect(()=>e.on("change",s),[])}return e}function Mi(t,e){const n=Jt(e()),s=()=>n.set(e());return s(),Qt(()=>{const i=()=>E.preRender(s,!1,!0),r=t.map(o=>o.on("change",i));return()=>{r.forEach(o=>o()),ct(s)}}),n}function Ym(t,...e){const n=t.length;function s(){let i="";for(let r=0;r<n;r++){i+=t[r];const o=e[r];o&&(i+=K(o)?o.get():o)}return i}return Mi(e.filter(K),s)}function gp(t){Xt.current=[],t();const e=Mi(Xt.current,t);return Xt.current=void 0,e}function $e(t,e,n,s){if(typeof t=="function")return gp(t);
12if(n!==void 0&&!Array.isArray(n)&&typeof e!="function")return yp(t,e,n,s);const o=typeof e=="function"?e:xa(e,n,s),a=Array.isArray(t)?yr(t,o):yr([t],([u])=>o(u)),c=Array.isArray(t)?void 0:t.accelerate;return c&&!c.isTransformed&&typeof e!="function"&&Array.isArray(n)&&(s==null?void 0:s.clamp)!==!1&&(a.accelerate={...c,times:e,keyframes:n,isTransformed:!0,...s!=null&&s.ease?{ease:s.ease}:{}}),a}function yr(t,e){const n=Z(()=>[]);return Mi(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function yp(t,e,n,s){const i=Z(()=>Object.keys(n)),r=Z(()=>({}));for(const o of i)r[o]=$e(t,e,n[o],s);return r}function vp(t,e={}){const{isStatic:n}=v.useContext(Ct),s=()=>K(t)?t.get():t;if(n)return $e(s);const i=Jt(s());return v.useInsertionEffect(()=>ui(i,t,e),[i,JSON.stringify(e)]),i}function _m(t,e={}){return vp(t,{type:"spring",...e})}function wp(t){const e=v.useRef(0),{isStatic:n}=v.useContext(Ct);v.useEffect(()=>{if(n)return;const s=({timestamp:i,delta:r})=>{e.current||(e.current=i),t(i-e.current,r)};return E.update(s,!0),()=>ct(s)},[t])}function qm(){const t=Jt(0);return wp(e=>t.set(e)),t}function Zm(t){const e=Jt(t.getVelocity()),n=()=>{const s=t.getVelocity();e.set(s),s&&E.update(n)};return Xd(t,"change",()=>{E.update(n,!1,!0)}),e}class xp extends ce{constructor(){super(...arguments),this.isEnabled=!1}add(e){(Rt.has(e)||Qs.has(e))&&(this.isEnabled=!0,this.update())}update(){this.set(this.isEnabled?"transform":"auto")}}function Jm(){return Z(()=>new xp("auto"))}function Tp(){!di.current&&Aa();const[t]=v.useState(gn.current);return t}function Sp(){const t=Tp(),{reducedMotion:e}=v.useContext(Ct);return e==="never"?!1:e==="always"?!0:t}function Ap(t){t.values.forEach(e=>e.stop())}function Ms(t,e){[...e].reverse().forEach(s=>{const i=t.getVariant(s);i&&ni(t,i),t.variantChildren&&t.variantChildren.forEach(r=>{Ms(r,e)})})}function Pp(t,e){if(Array.isArray(e))return Ms(t,e);if(typeof e=="string")return Ms(t,[e]);ni(t,e)}function bp(){const t=new Set,e={subscribe(n){return t.add(n),()=>void t.delete(n)},start(n,s){const i=[];return t.forEach(r=>{i.push(oi(r,n,{transitionOverride:s}))}),Promise.all(i)},set(n){return t.forEach(s=>{Pp(s,n)})},stop(){t.forEach(n=>{Ap(n)})},mount(){return()=>{e.stop()}}};return e}function Vi(t){return typeof t=="object"&&!Array.isArray(t)}function xc(t,e,n,s){return t==null?[]:typeof t=="string"&&Vi(e)?Lt(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t.filter(i=>i!=null):[t]}function Cp(t,e,n){return t*(e+1)+n*e}function vr(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function Mp(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(qt(t,i),s--)}}function Vp(t,e,n,s,i,r){Mp(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:W(i,r,s[o]),easing:Fr(n,o)})}function Ep(t,e,n=0){const s=e+1+e*n;for(let i=0;i<t.length;i++)t[i]=t[i]/s}function Dp(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Rp="easeInOut",Lp=20;function kp(t,{defaultTransition:e={},...n}={},s,i){const r=e.duration||.3,o=new Map,a=new Map,c={},u=new Map;let l=0,f=0,h=0;for(let d=0;d<t.length;d++){const p=t[d];if(typeof p=="string"){u.set(p,f);continue}else if(!Array.isArray(p)){u.set(p.name,vr(f,p.at,l,u));continue}let[y,g,m={}]=p;m.at!==void 0&&(f=vr(f,m.at,l,u));let w=0;const x=(T,S,D,V=0,P=0)=>{const C=Ip(T),{delay:M=0,times:I=Gs(C),type:z=e.type||"keyframes",repeat:J,repeatType:ot,repeatDelay:st=0,...R}=S;let{ease:L=e.ease||"easeOut",duration:A}=S;const k=typeof M=="function"?M(V,P):M,N=C.length,O=Js(z)?z:i==null?void 0:i[z||"keyframes"];if(N<=2&&O){let B=100;if(N===2&&Fp(C)){const tt=C[1]-C[0];B=Math.abs(tt)}const Q={...e,...R};A!==void 0&&(Q.duration=X(A));const it=Xr(Q,B,O);L=it.ease,A=it.duration}A??(A=r);const j=f+k;I.length===1&&I[0]===0&&(I[1]=1);const H=I.length-C.length;if(H>0&&_r(I,H),C.length===1&&C.unshift(null),J&&J<Lp){const B=A>0?st/A:0;A=Cp(A,J,st);const Q=[...C],it=[...I];L=Array.isArray(L)?[...L]:[L];const tt=[...L],dt=ot==="reverse"||ot==="mirror";let pt=Q,G=tt;dt&&(pt=[...Q].reverse(),ot==="reverse"&&(G=[...tt].reverse().map(U=>typeof U=="function"?Bs(U):U)));for(let U=0;U<J;U++){const mt=dt&&U%2===0,ve=mt?pt:Q,ft=mt?G:tt,Wt=(U+1)*(1+B);B>0&&(C.push(C[C.length-1]),I.push(Wt),L.push("linear")),C.push(...ve);for(let et=0;et<ve.length;et++)I.push(it[et]+Wt),L.push(et===0?"linear":Fr(ft,et-1))}Ep(I,J,B)}const F=j+A;Vp(D,C,L,I,j,F),w=Math.max(k+A,w),h=Math.max(F,h)};if(K(y)){const T=wr(y,a);x(g,m,xr("default",T))}else{const T=xc(y,g,s,c),S=T.length;for(let D=0;D<S;D++){g=g,m=m;const V=T[D],P=wr(V,a);for(const C in g)x(g[C],Bp(m,C),xr(C,P),D,S)}}l=f,f+=w}return a.forEach((d,p)=>{for(const y in d){const g=d[y];g.sort(Dp);const m=[],w=[],x=[];for(let V=0;V<g.length;V++){const{at:P,value:C,easing:M}=g[V];m.push(C),w.push(Zt(0,h,P)),x.push(M||"easeOut")}w[0]!==0&&(w.unshift(0),m.unshift(m[0]),x.unshift(Rp)),w[w.length-1]!==1&&(w.push(1),m.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const T=o.get(p);T.keyframes[y]=m;const{type:S,...D}=e;T.transition[y]={...D,duration:h,ease:x,times:w,...n}}}),o}function wr(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function xr(t,e){return e[t]||(e[t]=[]),e[t]}function Ip(t){return Array.isArray(t)?t:[t]}function Bp(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Op=t=>typeof t=="number",Fp=t=>t.every(Op);function jp(t){const e={presenceContext:null,props:{}
12,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Vn(t)&&!wa(t)?new Oa(e):new yi(e);n.mount(t),pe.set(t,n)}function Wp(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Bf(e);n.mount(t),pe.set(t,n)}function Np(t,e){return K(t)||typeof t=="number"||typeof t=="string"&&!Vi(e)}function Tc(t,e,n,s){const i=[];if(Np(t,e))i.push(za(t,Vi(e)&&e.default||e,n&&(n.default||n)));else{if(t==null)return i;const r=xc(t,e,s),o=r.length;for(let a=0;a<o;a++){const c=r[a],u=c instanceof Element?jp:Wp;pe.has(c)||u(c);const l=pe.get(c),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...ii(l,{...e,transition:f},{}))}}return i}function $p(t,e,n){const s=[],i=t.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],c=ut(0);return c.on("change",a),o.length===1?[c,[0,1]]:o.length===2?[c,[0,1],o[1]]:[c,o[1],o[2]]}return o});return kp(i,e,n,{spring:Fe}).forEach(({keyframes:o,transition:a},c)=>{s.push(...Tc(c,o,a))}),s}function Up(t){return Array.isArray(t)&&t.some(Array.isArray)}function Sc(t={}){const{scope:e,reduceMotion:n,skipAnimations:s}=t;function i(r,o,a){let c=[],u;const l={};if(n!==void 0&&(l.reduceMotion=n),s!==void 0&&(l.skipAnimations=s),Up(r)){const{onComplete:h,...d}=o||{};typeof h=="function"&&(u=h),c=$p(r,{...l,...d},e)}else{const{onComplete:h,...d}=a||{};typeof h=="function"&&(u=h),c=Tc(r,o,{...l,...d},e)}const f=new sa(c);return u&&f.finished.then(u),e&&(e.animations.push(f),f.finished.then(()=>{qt(e.animations,f)})),f}return i}const Qm=Sc();function tg(){const t=Z(()=>({current:null,animations:[]})),e=Sp()??void 0,{skipAnimations:n}=v.useContext(Ct),s=v.useMemo(()=>Sc({scope:t,reduceMotion:e,skipAnimations:n}),[t,e,n]);return mc(()=>{t.animations.forEach(i=>i.stop()),t.animations.length=0}),[t,s]}function Kp(t,e,n,s){if(t==null)return[];const i=Lt(t,s),r=i.length,o=[];for(let c=0;c<r;c++){const u=i[c],l={...n};typeof l.delay=="function"&&(l.delay=l.delay(c,r));for(const f in e){let h=e[f];Array.isArray(h)||(h=[h]);const d={...Dt(l,f)};d.duration&&(d.duration=X(d.duration)),d.delay&&(d.delay=X(d.delay));const p=Yu(u),y=Xu(f,d.pseudoElement||""),g=p.get(y);g&&g.stop(),o.push({map:p,key:y,unresolvedKeyframes:h,options:{...d,element:u,name:f,allowFlatten:!l.type&&!l.ease}})}}for(let c=0;c<o.length;c++){const{unresolvedKeyframes:u,options:l}=o[c],{element:f,name:h,pseudoElement:d}=l;!d&&u[0]===null&&(u[0]=Qi(f,h)),Zr(u),Pl(u,h),!d&&u.length<2&&u.unshift(Qi(f,h)),l.keyframes=u}const a=[];for(let c=0;c<o.length;c++){const{map:u,key:l,options:f}=o[c],h=new he(f);u.set(l,h),h.finished.finally(()=>u.delete(l)),a.push(h)}return a}const Ac=t=>{function e(n,s,i){return new sa(Kp(n,s,i,t))}return e},eg=Ac();function ng(){const t=Z(()=>({current:null,animations:[]})),e=Z(()=>Ac(t));return mc(()=>{t.animations.forEach(n=>n.stop())}),[t,e]}function zp(){const t=Z(bp);return Qt(t.mount,[]),t}const sg=zp;function ig(){const t=v.useContext(ge);return t?t.custom:void 0}function og(t,e,n,s){v.useEffect(()=>{const i=t.current;if(n&&i)return me(i,e,n,s)},[t,e,n,s])}class Hp{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,n){this.componentControls.forEach(s=>{s.start(e.nativeEvent||e,n)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}}const Gp=()=>new Hp;function rg(){return Z(Gp)}function Xp(t){return t!==null&&typeof t=="object"&&Ai in t}function ag(t){if(Xp(t))return t[Ai]}function Yp(){return _p}function _p(t){_t.current&&(_t.current.isUpdating=!1,_t.current.blockUpdate(),t&&t())}function cg(){return v.useCallback(()=>{const e=_t.current;e&&e.resetTree()},[])}function ug(...t){const e=v.useRef(0),[n,s]=v.useState(t[e.current]),i=v.useCallback(r=>{e.current=typeof r!="number"?ln(0,t.length,e.current+1):r,s(t[e.current])},[t.length,...t]);return[n,i]}const qp={some:0,all:1};function Zp(t,e,{root:n,margin:s,amount:i="some"}={}){const r=Lt(t),o=new WeakMap,a=u=>{u.forEach(l=>{const f=o.get(l.target);if(l.isIntersecting!==!!f)if(l.isIntersecting){const h=e(l.target,l);typeof h=="function"?o.set(l.target,h):c.unobserve(l.target)}else typeof f=="function"&&(f(l),o.delete(l.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:qp[i]});return r.forEach(u=>c.observe(u)),()=>c.disconnect()}function lg(t,{root:e,margin:n,amount:s,once:i=!1,initial:r=!1}={}){const[o,a]=v.useState(r);return v.useEffect(()=>{if(!t.current||i&&o)return;const c=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:s};return Zp(t.current,c,u)},[e,t,n,i,s]),o}function fg(){const[t,e]=Za(),n=Yp(),s=v.useRef(-1);return v.useEffect(()=>{E.postRender(()=>E.postRender(()=>{e===s.current&&(xt.instantAnimations=!1)}))},[e]),i=>{n(()=>{xt.instantAnimations=!0,t(),i(),s.current=e+1})}}function hg(){xt.instantAnimations=!1}function dg(){const[t,e]=v.useState(!0);return v.useEffect(()=>{const n=()=>e(!document.hidden);return document.hidden&&n(),document.addEventListener("visibilitychange",n),(
12)=>{document.removeEventListener("visibilitychange",n)}},[]),t}function pg(t){return e=>{var u;const n=t.current;if(!n)return e;const s=(u=n.viewBox)==null?void 0:u.baseVal;if(!s||s.width===0&&s.height===0)return e;const i=n.getBoundingClientRect();if(i.width===0||i.height===0)return e;const r=s.width/i.width,o=s.height/i.height,a=i.left+window.scrollX,c=i.top+window.scrollY;return{x:(e.x-a)*r+a,y:(e.y-c)*o+c}}}function mg(t){return e=>{const n=t.current;if(!n)return e;const s=Jp(n);if(!s)return e;const i=n.getBoundingClientRect(),r=i.left+window.scrollX+i.width/2,o=i.top+window.scrollY+i.height/2,a=e.x-r,c=e.y-o;return{x:r+s.a*a+s.c*c,y:o+s.b*a+s.d*c}}}function Jp(t){const{transform:e}=getComputedStyle(t);if(!e||e==="none")return null;const n=e.match(/^matrix3d\((.*)\)$/u)||e.match(/^matrix\((.*)\)$/u);if(!n)return null;const s=n[1].split(",").map(Number),i=e.startsWith("matrix3d"),r=s[0],o=s[1],a=i?s[4]:s[2],c=i?s[5]:s[3],u=r*c-o*a;return Math.abs(u)<1e-10?null:{a:c/u,b:-o/u,c:-a/u,d:r/u}}const Kt=new Map,Se=new Map,un=(t,e)=>{const n=Rt.has(e)?"transform":e;return`${t}: ${n}`};function Tr(t,e,n){var c;const s=un(t,e),i=Kt.get(s);if(!i)return null;const{animation:r,startTime:o}=i;function a(){var u;(u=window.MotionCancelOptimisedAnimation)==null||u.call(window,t,e,n)}return r.onfinish=a,o===null||(c=window.MotionHandoffIsComplete)!=null&&c.call(window,t)?(a(),null):o}let Qe,ee;const Vs=new Set;function Qp(){Vs.forEach(t=>{t.animation.play(),t.animation.startTime=t.startTime}),Vs.clear()}function gg(t,e,n,s,i){if(window.MotionIsMounted)return;const r=t.dataset[aa];if(!r)return;window.MotionHandoffAnimation=Tr;const o=un(r,e);ee||(ee=ls(t,e,[n[0],n[0]],{duration:1e4,ease:"linear"}),Kt.set(o,{animation:ee,startTime:null}),window.MotionHandoffAnimation=Tr,window.MotionHasOptimisedAnimation=(c,u)=>{if(!c)return!1;if(!u)return Se.has(c);const l=un(c,u);return!!Kt.get(l)},window.MotionHandoffMarkAsComplete=c=>{Se.has(c)&&Se.set(c,!0)},window.MotionHandoffIsComplete=c=>Se.get(c)===!0,window.MotionCancelOptimisedAnimation=(c,u,l,f)=>{const h=un(c,u),d=Kt.get(h);d&&(l&&f===void 0?l.postRender(()=>{l.postRender(()=>{d.animation.cancel()})}):d.animation.cancel(),l&&f?(Vs.add(d),l.render(Qp)):(Kt.delete(h),Kt.size||(window.MotionCancelOptimisedAnimation=void 0)))},window.MotionCheckAppearSync=(c,u,l)=>{var y,g;const f=si(c);if(!f)return;const h=(y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,f,u),d=(g=c.props.values)==null?void 0:g[u];if(!h||!d)return;const p=l.on("change",m=>{var w;d.get()!==m&&((w=window.MotionCancelOptimisedAnimation)==null||w.call(window,f,u),p())});return p});const a=()=>{ee.cancel();const c=ls(t,e,n,s);Qe===void 0&&(Qe=performance.now()),c.startTime=Qe,Kt.set(o,{animation:c,startTime:Qe}),i&&i(c)};Se.set(r,!1),ee.ready?ee.ready.then(a).catch(nt):a()}const Es=()=>({});class tm extends pi{constructor(){super(...arguments),this.measureInstanceViewportBox=_}build(){}resetTransform(){}restoreTransform(){}removeValueFromRenderState(){}renderInstance(){}scrapeMotionValuesFromProps(){return Es()}getBaseTargetFromProps(){}readValueFromInstance(e,n,s){return s.initialState[n]||0}sortInstanceNodePosition(){return 0}}const em=Si({scrapeMotionValuesFromProps:Es,createRenderState:Es});function yg(t){const[e,n]=v.useState(t),s=em({},!1),i=Z(()=>new tm({props:{onUpdate:o=>{n({...o})}},visualState:s,presenceContext:null},{initialState:t}));v.useLayoutEffect(()=>(i.mount({}),()=>i.unmount()),[i]);const r=Z(()=>o=>oi(i,o));return[e,r]}let nm=0;const vg=({children:t})=>(v.useEffect(()=>{},[]),at.jsx(Xh,{id:Z(()=>`asl-${nm++}`),children:t})),sm=1e5,Sr=t=>t>.001?1/t:sm;function wg(t){let e=Jt(1),n=Jt(1);const{visualElement:s}=v.useContext(He);t?(e=t.scaleX||e,n=t.scaleY||n):s&&(e=s.getValue("scaleX",1),n=s.getValue("scaleY",1));const i=$e(e,Sr),r=$e(n,Sr);return{scaleX:i,scaleY:r}}const Pc=v.createContext(null);function im(t,e,n,s){if(!s)return t;const i=t.findIndex(l=>l.value===e);if(i===-1)return t;const r=s>0?1:-1,o=t[i+r];if(!o)return t;const a=t[i],c=o.layout,u=W(c.min,c.max,.5);return r===1&&a.layout.max+n>u||r===-1&&a.layout.min+n<u?Mc(t,i,i+r):t}function om({children:t,as:e="ul",axis:n="y",onReorder:s,values:i,...r},o){const a=Z(()=>pc[e]),c=[],u=v.useRef(!1),l=v.useRef(null),f={axis:n,groupRef:l,registerItem:(p,y)=>{const g=c.findIndex(m=>p===m.value);g!==-1?c[g].layout=y[n]:c.push({value:p,layout:y[n]}),c.sort(am)},updateOrder:(p,y,g)=>{if(u.current)return;const m=im(c,p,y,g);if(c!==m){u.current=!0;const w=[...i];for(let x=0;x<m.length;x++)if(c[x].value!==m[x].value){const T=i.indexOf(c[x].value),S=i.indexOf(m[x].value);T!==-1&&S!==-1&&([w[T],w[S]]=[w[S],w[T]]);break}s(w)}}};v.useEffect(()=>{u.current=!1});const h=p=>{l.current=p,typeof o=="function"?o(p):o&&(o.current=p)},d={overflowAnchor:"none",...r.style};return at.jsx(a,{...r,style:d,ref:h,ignoreStrict:!0,children:at.jsx(Pc.Provider,{value:f,children:t})})}const rm=v.forwardRef(om);function am(t,e){return t.layout.min-e.layout.min}const tn=50,Ar=25,cm=new Set(["auto","scroll"]),ke=new WeakMap,Ie=new WeakMap;let Ce=null;function um(){if(Ce){const t=Ds(Ce,"y");t&&(Ie.delete(t),ke.delete(t));const e=Ds(Ce,"x");e&&e!==t&&(Ie.delete(e),ke.delete(e)),Ce=null}}function lm(t,e){const n=getComputedStyle(t),s=e==="x"?n.overflowX:n.overflowY,i=t===document.body||t===document.documentElement;return cm.has(s)||i}function Ds(t,e){let n=t==null?void 0:t.parentElement;for(;n;){if(lm(n,e))return n;n=n.parentElement}return null}function fm(t,e,n){const s=e.getBoundingClientRect(),i=n==="x"?Math.max(0,s.left):Math.max(0,s.top),r=n==="x"?Math.min(window.innerWidth,s.right):Math.min(window.innerHeight,s.bottom),o=t-i,a=r-t;if(o<tn){const c=1-o/tn;return{amount:-Ar*c*c,edge:"start"}}else if(a<tn){const c=1-a/tn;return{amount:Ar*c*c,edge:"end"}}return{amount:0,edge:null}}function hm(t,e,n,s){if(!t)return;Ce=t;const i=Ds(t,n);if(!i)return;const r=e-(n==="x"?window.scrollX:window.scrollY),{amount:o,edge:a}=fm(r,i,n);if(a===null){Ie.delete(i),ke.delete(i);return}const c=Ie.get(i),u=i===document.body||i===document.documentElement;if(c!==a){if(!(a==="start"&&s<0||a==="end"&&s>0))return;Ie.set(i,a);const f=n==="x"?i.scrollWidth-(u?window.innerWidth:i.clientWidth):i.scrollHeight-(u?window.innerHeight:i.clientHeight);ke.set(i,f)}if(o>0){const l=ke.get(i);if((n==="x"?u?window.scrollX:i.scrollLeft:u?window.scrollY:i.scrollTop)>=l)return}n==="x"?u?window.scrollBy({left:o}):i.scrollLeft+=o:u?window.scrollBy({top:o}):i.scrollTop+=o}function Pr(t,e=0){return K(t)?t:Jt(e)}function dm({children:t,style:e={},value:n,as:s="li",onDrag:i,onDragEnd:r,layout:o=!0,...a},c){const u=Z(()=>pc[s]),l=v.useContext(Pc),f={x:Pr(e.x),y:Pr(e.y)},h=$e([f.x,f.y],([m,w])=>m||w?1:"unset"),{axis:d,registerItem:p,updateOrder:y,groupRef:g}=l;return at.jsx(u,{drag:d,...a,dragSnapToOrigin:!0,style:{...e,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:(m,w)=>{const{velocity:x,point:T}=w,S=f[d].get();y(n,S,x[d]),hm(g.current,T[d],d,x[d]),i&&i(m,w)},onDragEnd:(m,w)=>{um(),r&&r(m,w)},onLayoutMeasure:m=>{p(n,m)},ref:c,ignoreStrict:!0,children:t})}const pm=v.forwardRef(dm),xg=Object.freeze(Object.defineProperty({__proto__:null,Group:rm,Item:pm},Symbol.toStringTag,{value:"Module"}));
12export{Nm as AnimatePresence,vg as AnimateSharedLayout,Gu as AsyncMotionValueAnimation,Sl as DOMKeyframesResolver,ba as DOMVisualElement,zh as DeprecatedLayoutGroupContext,Dh as DocumentProjectionNode,Hp as DragControls,jt as Feature,uh as FlatTree,Ee as GroupAnimation,sa as GroupAnimationWithThen,vi as HTMLProjectionNode,yi as HTMLVisualElement,fe as JSAnimation,Ys as KeyframeResolver,Bm as LayoutAnimationBuilder,Xh as LayoutGroup,Be as LayoutGroupContext,$m as LazyMotion,Um as MotionConfig,Ct as MotionConfigContext,He as MotionContext,xt as MotionGlobalConfig,ce as MotionValue,he as NativeAnimation,Fu as NativeAnimationExtended,Ui as NativeAnimationWrapper,lh as NodeStack,Bf as ObjectVisualElement,Nh as PopChild,$h as PresenceChild,ge as PresenceContext,xg as Reorder,Oa as SVGVisualElement,ks as SubscriptionManager,ic as SwitchLayoutGroupContext,Tf as ViewTransitionBuilder,pi as VisualElement,xp as WillChangeMotionValue,Qs as acceleratedValues,vs as addAttrValue,me as addDomEvent,Le as addPointerEvent,vd as addPointerInfo,Lm as addScaleCorrector,ai as addStyleValue,Rs as addUniqueItem,ps as addValueToWillChange,Oe as alpha,le as analyseComplexValue,Qm as animate,eg as animateMini,bn as animateMotionValue,za as animateSingleValue,ii as animateTarget,wm as animateValue,ms as animateVariant,Rm as animateView,oi as animateVisualElement,bp as animationControls,Xu as animationMapKey,bi as animations,Lr as anticipate,Ts as applyAxisDelta,Va as applyBoxDelta,fs as applyGeneratorOptions,lo as applyPointDelta,Pl as applyPxDefaults,Mf as applyTreeDeltas,xm as arc,Vo as aspectRatio,ui as attachFollow,Dm as attachSpring,Sm as attrEffect,Eo as axisDeltaEquals,Co as axisEquals,Mo as axisEqualsRounded,Os as backIn,Rr as backInOut,Dr as backOut,nh as boxEquals,Ua as boxEqualsRounded,mi as buildHTMLStyles,sh as buildProjectionTransform,La as buildSVGAttrs,jf as buildSVGPath,Rf as buildTransform,wo as calcAxisDelta,De as calcBoxDelta,ia as calcChildStagger,zs as calcGeneratorDuration,lt as calcLength,xo as calcRelativeAxis,To as calcRelativeAxisPosition,Jf as calcRelativeBox,wn as calcRelativePosition,ka as camelCaseAttributes,Cn as camelToDash,ct as cancelFrame,da as cancelMicrotask,jm as cancelSync,Gf as checkVariantsDidChange,Fs as circIn,Ir as circInOut,kr as circOut,ht as clamp,gh as cleanDirtyNodes,Xt as collectMotionValues,q as color,ch as compareByDepth,wt as complex,Di as containsCSSVariable,Ca as convertBoundingBoxToBox,bf as convertBoxToBoundingBox,Tu as convertOffsetToTimes,vo as copyAxisDeltaInto,Ss as copyAxisInto,yt as copyBoxInto,Te as correctBorderRadius,Lf as correctBoxShadow,mg as correctParentTransform,Hf as createAnimationState,ao as createAxis,ro as createAxisDelta,_ as createBox,oe as createDelta,Xr as createGeneratorEasing,Xa as createProjectionNode,jr as createRenderBatcher,Sc as createScopedAnimate,Ke as cubicBezier,Pe as cubicBezierAsString,Su as defaultEasing,Gs as defaultOffset,is as defaultTransformValue,vl as defaultValueTypes,Vt as degrees,Ha as delay,km as delayInSeconds,la as dimensionValueTypes,hg as disableInstantTransitions,Zo as distance,wd as distance2D,Gd as domAnimation,zm as domMax,Hm as domMin,St as eachAxis,kc as easeIn,Br as easeInOut,Ic as easeOut,Zn as easingDefinitionToFunction,_r as fillOffset,Zr as fillWildcards,qh as filterProps,Yi as findDimensionValueType,sf as findValueType,ku as flushKeyframeResolvers,Ql as followValue,E as frame,$ as frameData,ae as frameSteps,Gr as generateLinearEasing,ha as getAnimatableNone,Yu as getAnimationMap,Qi as getComputedStyle,tl as getDefaultTransition,fa as getDefaultValueType,Fr as getEasingForSegment,Pf as getFeatureDefinitions,Pn as getFinalKeyframe,Ks as getMixer,si as getOptimisedAppearId,Jl as getOriginIndex,mn as getValueAsType,Dt as getValueTransition,oa as getVariableValue,Fa as getVariantContext,uf as getViewAnimationLayerInfo,lf as getViewAnimations,cn as globalProjectionState,Ma as has2DTranslate,di as hasReducedMotionListener,xs as hasScale,It as hasTransform,ym as hasWarned,Jn as hex,Ol as hover,se as hsla,iu as hslaToRgba,Zp as inView,es as inertia,Aa as initPrefersReducedMotion,Hs as interpolate,An as invariant,Qn as invisibleValues,En as isAnimationControls,js as isBezierDefinition,Cc as isBrowser,Ws as isCSSVariableName,Ns as isCSSVariableToken,Dn as isControllingVariants,$a as isDeltaZero,pa as isDragActive,vt as isDragging,Or as isEasingArray,jl as isElementKeyboardAccessible,Nl as isElementTextInput,Ra as isForcedMotionValue,Js as isGenerator,ue as isHTMLElement,ds as isKeyframesTarget,Xp as isMotionComponent,K as isMotionValue,Zf as isNear,ga as isNodeOrChild,br as isNumericalString,Cr as isObject,ci as isPrimaryPointer,Vn as isSVGElement,wa as isSVGSVGElement,Ia as isSVGTag,
12nl as isTransitionDefined,Tn as isValidMotionProp,We as isVariantLabel,Sa as isVariantNode,bl as isWaapiSupportedEasing,ul as isWillChangeMotionValue,Mr as isZeroValueString,Ve as keyframes,Km as m,hs as makeAnimationInstant,Si as makeUseVisualState,pn as mapEasingToNativeEasing,Vm as mapValue,hn as maxGeneratorDuration,Vf as measurePageBox,Ea as measureViewportBox,Ls as memo,Ft as microtask,gt as millisecondsToSeconds,Er as mirrorEasing,Hr as mix,zr as mixArray,Ii as mixColor,fu as mixComplex,fn as mixImmediate,kn as mixLinearColor,W as mixNumber,uu as mixObject,oh as mixValues,au as mixVisibility,pc as motion,ut as motionValue,Mc as moveItem,$o as nodeGroup,nt as noop,ye as number,je as numberValueTypes,va as observeTimeline,ca as optimizedAppearDataAttribute,aa as optimizedAppearDataId,Om as parseAnimateLayoutArgs,rl as parseCSSVariable,os as parseValueFromTransform,bt as percent,Ue as pipe,go as pixelsToPercent,ra as positionalKeys,gn as prefersReducedMotion,Ul as press,Zt as progress,Ri as progressPercentage,Am as propEffect,mh as propagateDirtyNodes,b as px,Vu as readTransformValue,Cm as recordStats,Qf as removeAxisDelta,Ao as removeAxisTransforms,Po as removeBoxTransforms,qt as removeItem,So as removePointDelta,Da as renderHTML,Nf as renderSVG,ws as resize,Lt as resolveElements,an as resolveMotionValue,ti as resolveTransition,Yt as resolveVariant,ei as resolveVariantFromProps,Bs as reverseEasing,Rn as rgbUnit,zt as rgba,_t as rootProjectionNode,Xe as scale,Ne as scaleCorrectors,vn as scalePoint,gi as scrapeHTMLMotionValuesFromProps,Ba as scrapeSVGMotionValuesFromProps,vc as scroll,gc as scrollInfo,X as secondsToMilliseconds,Il as setDragLock,Pa as setFeatureDefinitions,ta as setStyle,ni as setTarget,Fe as spring,Em as springValue,Mm as stagger,gg as startOptimizedAppearAnimation,ls as startWaapiAnimation,Pt as statsBuffer,vm as steps,Pm as styleEffect,us as supportedWaapiEasing,zu as supportsBrowserAnimation,Iu as supportsFlags,dn as supportsLinearEasing,Tm as supportsPartialKeyframes,Zs as supportsScrollTimeline,ea as supportsViewTimeline,bm as svgEffect,Fm as sync,ua as testValueType,rt as time,xa as transform,po as transformAxis,rn as transformBox,Cf as transformBoxPoints,Ot as transformPropOrder,Rt as transformProps,ef as transformValue,yl as transformValueTypes,pg as transformViewBoxPoint,At as translateAxis,ag as unwrapMotionComponent,Sf as updateMotionValuesFromProps,tg as useAnimate,ng as useAnimateMini,sg as useAnimation,zp as useAnimationControls,wp as useAnimationFrame,jh as useComposedRefs,ug as useCycle,yg as useDeprecatedAnimatedState,wg as useDeprecatedInvertedScale,og as useDomEvent,rg as useDragControls,Gm as useElementScroll,vp as useFollowValue,Za as useForceUpdate,lg as useInView,Yp as useInstantLayoutTransition,fg as useInstantTransition,Wm as useIsPresent,Qt as useIsomorphicLayoutEffect,Ym as useMotionTemplate,Jt as useMotionValue,Xd as useMotionValueEvent,dg as usePageInView,qa as usePresence,ig as usePresenceData,Tp as useReducedMotion,Sp as useReducedMotionConfig,cg as useResetProjection,wc as useScroll,_m as useSpring,qm as useTime,$e as useTransform,mc as useUnmountEffect,Zm as useVelocity,Xm as useViewportScroll,Jm as useWillChange,fi as variantPriorityOrder,hi as variantProps,Is as velocityPerSecond,Gc as vh,pe as visualElementStore,Xc as vw,Ec as warnOnce,gm as warning,ln as wrap};
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.