import{r as C,j as Nt}from"./vendor-react-CVHocMAO.js";const Dn=C.createContext({});function te(n){const t=C.useRef(null);return t.current===null&&(t.current=n()),t.current}const _f=typeof window<"u",$n=_f?C.useLayoutEffect:C.useEffect,Bi=C.createContext(null);function dr(n,t){n.indexOf(t)===-1&&n.push(t)}function Qe(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Kt=(n,t,e)=>e>t?t:e<n?n:e;let pr=()=>{};const de={},fu=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),hu=n=>typeof n=="object"&&n!==null,du=n=>/^0[^.\s]+$/u.test(n);function pu(n){let t;return()=>(t===void 0&&(t=n()),t)}const Ot=n=>n,Gn=(...n)=>n.reduce((t,e)=>i=>e(t(i))),Je=(n,t,e)=>{const i=t-n;return i?(e-n)/i:1};class mr{constructor(){this.subscriptions=[]}add(t){return dr(this.subscriptions,t),()=>Qe(this.subscriptions,t)}notify(t,e,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,e,i);else for(let r=0;r<s;r++){const o=this.subscriptions[r];o&&o(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gt=n=>n*1e3,Vt=n=>n/1e3,mu=(n,t)=>t?n*(1e3/t):0,vf=(n,t,e)=>{const i=t-n;return((e-n)%i+i)%i+n},gu=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,xf=1e-7,Tf=12;function wf(n,t,e,i,s){let r,o,a=0;do o=t+(e-t)/2,r=gu(o,i,s)-n,r>0?e=o:t=o;while(Math.abs(r)>xf&&++a<Tf);return o}function Yn(n,t,e,i){if(n===t&&e===i)return Ot;const s=r=>wf(r,0,1,n,e);return r=>r===0||r===1?r:gu(s(r),t,i)}const yu=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,gr=n=>t=>1-n(1-t),_u=Yn(.33,1.53,.69,.99),yr=gr(_u),vu=yu(yr),xu=n=>n>=1?1:(n*=2)<1?.5*yr(n):.5*(2-Math.pow(2,-10*(n-1))),_r=n=>1-Math.sin(Math.acos(n)),Tu=gr(_r),wu=yu(_r),bf=Yn(.42,0,1,1),Sf=Yn(0,0,.58,1),bu=Yn(.42,0,.58,1),Su=n=>Array.isArray(n)&&typeof n[0]!="number";function Pu(n,t){return Su(n)?n[vf(0,n.length,t)]:n}const Au=n=>Array.isArray(n)&&typeof n[0]=="number",Pf={linear:Ot,easeIn:bf,easeInOut:bu,easeOut:Sf,circIn:_r,circInOut:wu,circOut:Tu,backIn:yr,backInOut:vu,backOut:_u,anticipate:xu},Af=n=>typeof n=="string",mo=n=>{if(Au(n)){pr(n.length===4);const[t,e,i,s]=n;return Yn(t,e,i,s)}else if(Af(n))return Pf[n];return n},Zn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Cf(n,t){let e=new Set,i=new Set,s=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(c){o.has(c)&&(l.schedule(c),n()),c(a)}const l={schedule:(c,f=!1,h=!1)=>{const m=h&&s?e:i;return f&&o.add(c),m.add(c),c},cancel:c=>{i.delete(c),o.delete(c)},process:c=>{if(a=c,s){r=!0;return}s=!0;const f=e;e=i,i=f,e.forEach(u),e.clear(),s=!1,r&&(r=!1,l.process(c))}};return l}const Mf=40;function Cu(n,t){let e=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>e=!0,o=Zn.reduce((v,x)=>(v[x]=Cf(r),v),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:c,update:f,preRender:h,render:d,postRender:m}=o,p=()=>{const v=de.useManualTiming,x=v?s.timestamp:performance.now();e=!1,v||(s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,Mf),1)),s.timestamp=x,s.isProcessing=!0,a.process(s),u.process(s),l.process(s),c.process(s),f.process(s),h.process(s),d.process(s),m.process(s),s.isProcessing=!1,e&&t&&(i=!1,n(p))},g=()=>{e=!0,i=!0,s.isProcessing||n(p)};return{schedule:Zn.reduce((v,x)=>{const T=o[x];return v[x]=(P,S=!1,b=!1)=>(e||g(),T.schedule(P,S,b)),v},{}),cancel:v=>{for(let x=0;x<Zn.length;x++)o[Zn[x]].cancel(v)},state:s,steps:o}}const{schedule:N,cancel:ee,state:ot,steps:Hi}=Cu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ot,!0);let ri;function Df(){ri=void 0}const dt={now:()=>(ri===void 0&&dt.set(ot.isProcessing||de.useManualTiming?ot.timestamp:performance.now()),ri),set:n=>{ri=n,queueMicrotask(Df)}},Mu=n=>t=>typeof t=="string"&&t.startsWith(n),Du=Mu("--"),Rf=Mu("var(--"),vr=n=>Rf(n)?Vf.test(n.split("/*")[0].trim()):!1,Vf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function go(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const un={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Rn={...un,transform:n=>Kt(0,1,n)},Qn={...un,default:1},xn=n=>Math.round(n*1e5)/1e5,xr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ef(n){return n==null}const kf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tr=(n,t)=>e=>!!(typeof e=="string"&&kf.test(e)&&e.startsWith(n)||t&&!Ef(e)&&Object.prototype.hasOwnProperty.call(e,t)),Ru=(n,t,e)=>i=>{if(typeof i!="string")return i;const[s,r,o,a]=i.match(xr);return{[n]:parseFloat(s),[t]:parseFloat(r),[e]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Lf=n=>Kt(0,255,n),qi={...un,transform:n=>Math.round(Lf(n))},Ae={test:Tr("rgb","red"),parse:Ru("red","green","blue"),transform:({red:n,green:t,blue:e,alpha:i=1})=>"rgba("+qi.transform(n)+", "+qi.transform(t)+", "+qi.transform(e)+", "+xn(Rn.transform(i))+")"};function Of(n){let t="",e="",i="",s="";return n.length>5?(t=n.substring(1,3),e=n.substring(3,5),i=n.substring(5,7),s=n.substring(7,9)):(t=n.substring(1,2),e=n.substring(2,3),i=n.substring(3,4),s=n.substring(4,5),t+=t,e+=e,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const ws={test:Tr("#"),parse:Of,transform:Ae.transform},Kn=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),Ht=Kn("deg"),Yt=Kn("%"),D=Kn("px"),Ff=Kn("vh"),If=Kn("vw"),yo={...Yt,parse:n=>Yt.parse(n)/100,transform:n=>Yt.transform(n*100)},Ue={test:Tr("hsl","hue"),parse:Ru("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:e,alpha:i=1})=>"hsla("+Math.round(n)+", "+Yt.transform(xn(t))+", "+Yt.transform(xn(e))+", "+xn(Rn.transform(i))+")"},J={test:n=>Ae.test(n)||ws.test(n)||Ue.test(n),parse:n=>Ae.test(n)?Ae.parse(n):Ue.test(n)?Ue.parse(n):ws.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ae.transform(n):Ue.transform(n),getAnimatableNone:n=>{const t=J.parse(n);return t.alpha=0,J.transform(t)}},Bf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nf(n){var t,e;return isNaN(n)&&typeof n=="string"&&(((t=n.match(xr))==null?void 0:t.length)||0)+(((e=n.match(Bf))==null?void 0:e.length)||0)>0}const Vu="number",Eu="color",jf="var",zf="var(",_o="${}",Uf=/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 tn(n){const t=n.toString(),e=[],i={color:[],number:[],var:[]},s=[];let r=0;const a=t.replace(Uf,u=>(J.test(u)?(i.color.push(r),s.push(Eu),e.push(J.parse(u))):u.startsWith(zf)?(i.var.push(r),s.push(jf),e.push(u)):(i.number.push(r),s.push(Vu),e.push(parseFloat(u))),++r,_o)).split(_o);return{values:e,split:a,indexes:i,types:s}}function Wf(n){return tn(n).values}function ku({split:n,types:t}){const e=n.length;return i=>{let s="";for(let r=0;r<e;r++)if(s+=n[r],i[r]!==void 0){const o=t[r];o===Vu?s+=xn(i[r]):o===Eu?s+=J.transform(i[r]):s+=i[r]}return s}}function $f(n){return ku(tn(n))}const Gf=n=>typeof n=="number"?0:J.test(n)?J.getAnimatableNone(n):n,Yf=(n,t)=>typeof n=="number"?t!=null&&t.trim().endsWith("/")?n:0:Gf(n);function Kf(n){const t=tn(n);return ku(t)(t.values.map((i,s)=>Yf(i,t.split[s])))}const jt={test:Nf,parse:Wf,createTransformer:$f,getAnimatableNone:Kf};function Zi(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*(2/3-e)*6:n}function Xf({hue:n,saturation:t,lightness:e,alpha:i}){n/=360,t/=100,e/=100;let s=0,r=0,o=0;if(!t)s=r=o=e;else{const a=e<.5?e*(1+t):e+t-e*t,u=2*e-a;s=Zi(u,a,n+1/3),r=Zi(u,a,n),o=Zi(u,a,n-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function _i(n,t){return e=>e>0?t:n}const j=(n,t,e)=>n+(t-n)*e,Qi=(n,t,e)=>{const i=n*n,s=e*(t*t-i)+i;return s<0?0:Math.sqrt(s)},Hf=[ws,Ae,Ue],qf=n=>Hf.find(t=>t.test(n));function vo(n){const t=qf(n);if(!t)return!1;let e=t.parse(n);return t===Ue&&(e=Xf(e)),e}const xo=(n,t)=>{const e=vo(n),i=vo(t);if(!e||!i)return _i(n,t);const s={...e};return r=>(s.red=Qi(e.red,i.red,r),s.green=Qi(e.green,i.green,r),s.blue=Qi(e.blue,i.blue,r),s.alpha=j(e.alpha,i.alpha,r),Ae.transform(s))},bs=new Set(["none","hidden"]);function Zf(n,t){return bs.has(n)?e=>e<=0?n:t:e=>e>=1?t:n}function Qf(n,t){return e=>j(n,t,e)}function wr(n){return typeof n=="number"?Qf:typeof n=="string"?vr(n)?_i:J.test(n)?xo:eh:Array.isArray(n)?Lu:typeof n=="object"?J.test(n)?xo:Jf:_i}function Lu(n,t){const e=[...n],i=e.length,s=n.map((r,o)=>wr(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)e[o]=s[o](r);return e}}function Jf(n,t){const e={...n,...t},i={};for(const s in e)n[s]!==void 0&&t[s]!==void 0&&(i[s]=wr(n[s])(n[s],t[s]));return s=>{for(const r in i)e[r]=i[r](s);return e}}function th(n,t){const e=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const r=t.types[s],o=n.indexes[r][i[r]],a=n.values[o]??0;e[s]=a,i[r]++}return e}const eh=(n,t)=>{const e=jt.createTransformer(t),i=tn(n),s=tn(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?bs.has(n)&&!s.values.length||bs.has(t)&&!i.values.length?Zf(n,t):Gn(Lu(th(i,s),s.values),e):_i(n,t)};function Ou(n,t,e){return typeof n=="number"&&typeof t=="number"&&typeof e=="number"?j(n,t,e):wr(n)(n,t)}const nh=n=>{const t=({timestamp:e})=>n(e);return{start:(e=!0)=>N.update(t,e),stop:()=>ee(t),now:()=>ot.isProcessing?ot.timestamp:dt.now()}},Fu=(n,t,e=10)=>{let i="";const s=Math.max(Math.round(t/e),2);for(let r=0;r<s;r++)i+=Math.round(n(r/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},vi=2e4;function br(n){let t=0;const e=50;let i=n.next(t);for(;!i.done&&t<vi;)t+=e,i=n.next(t);return t>=vi?1/0:t}function Iu(n,t=100,e){const i=e({...n,keyframes:[0,t]}),s=Math.min(br(i),vi);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:Vt(s)}}const H={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 Ss(n,t){return n*Math.sqrt(1-t*t)}const ih=12;function sh(n,t,e){let i=e;for(let s=1;s<ih;s++)i=i-n(i)/t(i);return i}const Ji=.001;function rh({duration:n=H.duration,bounce:t=H.bounce,velocity:e=H.velocity,mass:i=H.mass}){let s,r,o=1-t;o=Kt(H.minDamping,H.maxDamping,o),n=Kt(H.minDuration,H.maxDuration,Vt(n)),o<1?(s=l=>{const c=l*o,f=c*n,h=c-e,d=Ss(l,o),m=Math.exp(-f);return Ji-h/d*m},r=l=>{const f=l*o*n,h=f*e+e,d=Math.pow(o,2)*Math.pow(l,2)*n,m=Math.exp(-f),p=Ss(Math.pow(l,2),o);return(-s(l)+Ji>0?-1:1)*((h-d)*m)/p}):(s=l=>{const c=Math.exp(-l*n),f=(l-e)*n+1;return-Ji+c*f},r=l=>{const c=Math.exp(-l*n),f=(e-l)*(n*n);return c*f});const a=5/n,u=sh(s,r,a);if(n=gt(n),isNaN(u))return{stiffness:H.stiffness,damping:H.damping,duration:n};{const l=Math.pow(u,2)*i;return{stiffness:l,damping:o*2*Math.sqrt(i*l),duration:n}}}const oh=["duration","bounce"],ah=["stiffness","damping","mass"];function To(n,t){return t.some(e=>n[e]!==void 0)}function uh(n){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...n};if(!To(n,ah)&&To(n,oh))if(t.velocity=0,n.visualDuration){const e=n.visualDuration,i=2*Math.PI/(e*1.2),s=i*i,r=2*Kt(.05,1,1-(n.bounce||0))*Math.sqrt(s);t={...t,mass:H.mass,stiffness:s,damping:r}}else{const e=rh({...n,velocity:0});t={...t,...e,mass:H.mass},t.isResolvedFromDuration=!0}return t}function Vn(n=H.visualDuration,t=H.bounce){const e=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:i,restDelta:s}=e;const r=e.keyframes[0],o=e.keyframes[e.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:h,isResolvedFromDuration:d}=uh({...e,velocity:-Vt(e.velocity||0)}),m=h||0,p=l/(2*Math.sqrt(u*c)),g=o-r,y=Vt(Math.sqrt(u/c)),_=Math.abs(g)<5;i||(i=_?H.restSpeed.granular:H.restSpeed.default),s||(s=_?H.restDelta.granular:H.restDelta.default);let v,x,T,P,S,b;if(p<1)T=Ss(y,p),P=(m+p*y*g)/T,v=A=>{const M=Math.exp(-p*y*A);return o-M*(P*Math.sin(T*A)+g*Math.cos(T*A))},S=p*y*P+g*T,b=p*y*g-P*T,x=A=>Math.exp(-p*y*A)*(S*Math.sin(T*A)+b*Math.cos(T*A));else if(p===1){v=M=>o-Math.exp(-y*M)*(g+(m+y*g)*M);const A=m+y*g;x=M=>Math.exp(-y*M)*(y*A*M-m)}else{const A=y*Math.sqrt(p*p-1);v=k=>{const O=Math.exp(-p*y*k),L=Math.min(A*k,300);return o-O*((m+p*y*g)*Math.sinh(L)+A*g*Math.cosh(L))/A};const M=(m+p*y*g)/A,R=p*y*M-g*A,V=p*y*g-M*A;x=k=>{const O=Math.exp(-p*y*k),L=Math.min(A*k,300);return O*(R*Math.sinh(L)+V*Math.cosh(L))}}const w={calculatedDuration:d&&f||null,velocity:A=>gt(x(A)),next:A=>{if(!d&&p<1){const R=Math.exp(-p*y*A),V=Math.sin(T*A),k=Math.cos(T*A),O=o-R*(P*V+g*k),L=gt(R*(S*V+b*k));return a.done=Math.abs(L)<=i&&Math.abs(o-O)<=s,a.value=a.done?o:O,a}const M=v(A);if(d)a.done=A>=f;else{const R=gt(x(A));a.done=Math.abs(R)<=i&&Math.abs(o-M)<=s}return a.value=a.done?o:M,a},toString:()=>{const A=Math.min(br(w),vi),M=Fu(R=>w.next(A*R).value,A,30);return A+"ms "+M},toTransition:()=>{}};return w}Vn.applyToOptions=n=>{const t=Iu(n,100,Vn);return n.ease=t.ease,n.duration=gt(t.duration),n.type="keyframes",n};const lh=5;function Bu(n,t,e){const i=Math.max(t-lh,0);return mu(e-n(i),t-i)}function Ps({keyframes:n,velocity:t=0,power:e=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=n[0],h={done:!1,value:f},d=b=>a!==void 0&&b<a||u!==void 0&&b>u,m=b=>a===void 0?u:u===void 0||Math.abs(a-b)<Math.abs(u-b)?a:u;let p=e*t;const g=f+p,y=o===void 0?g:o(g);y!==g&&(p=y-f);const _=b=>-p*Math.exp(-b/i),v=b=>y+_(b),x=b=>{const w=_(b),A=v(b);h.done=Math.abs(w)<=l,h.value=h.done?y:A};let T,P;const S=b=>{d(h.value)&&(T=b,P=Vn({keyframes:[h.value,m(h.value)],velocity:Bu(v,b,h.value),damping:s,stiffness:r,restDelta:l,restSpeed:c}))};return S(0),{calculatedDuration:null,next:b=>{let w=!1;return!P&&T===void 0&&(w=!0,x(b),S(b)),T!==void 0&&b>=T?P.next(b-T):(!w&&x(b),h)}}}function ch(n,t,e){const i=[],s=e||de.mix||Ou,r=n.length-1;for(let o=0;o<r;o++){let a=s(n[o],n[o+1]);if(t){const u=Array.isArray(t)?t[o]||Ot:t;a=Gn(u,a)}i.push(a)}return i}function Nu(n,t,{clamp:e=!0,ease:i,mixer:s}={}){const r=n.length;if(pr(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=n[0]===n[1];n[0]>n[r-1]&&(n=[...n].reverse(),t=[...t].reverse());const a=ch(t,i,s),u=a.length,l=c=>{if(o&&c<n[0])return t[0];let f=0;if(u>1)for(;f<n.length-2&&!(c<n[f+1]);f++);const h=Je(n[f],n[f+1],c);return a[f](h)};return e?c=>l(Kt(n[0],n[r-1],c)):l}function ju(n,t){const e=n[n.length-1];for(let i=1;i<=t;i++){const s=Je(0,t,i);n.push(j(e,1,s))}}function zu(n){const t=[0];return ju(t,n.length-1),t}function fh(n,t){return n.map(e=>e*t)}function hh(n,t){return n.map(()=>t||bu).splice(0,n.length-1)}function Tn({duration:n=300,keyframes:t,times:e,ease:i="easeInOut"}){const s=Su(i)?i.map(mo):mo(i),r={done:!1,value:t[0]},o=fh(e&&e.length===t.length?e:zu(t),n),a=Nu(o,t,{ease:Array.isArray(s)?s:hh(t,s)});return{calculatedDuration:n,next:u=>(r.value=a(u),r.done=u>=n,r)}}const dh=n=>n!==null;function Ni(n,{repeat:t,repeatType:e="loop"},i,s=1){const r=n.filter(dh),a=s<0||t&&e!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const ph={decay:Ps,inertia:Ps,tween:Tn,keyframes:Tn,spring:Vn};function Uu(n){typeof n.type=="string"&&(n.type=ph[n.type])}class Sr{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const mh=n=>n/100;class xi extends Sr{constructor(t){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 i,s;const{motionValue:e}=this.options;e&&e.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(i=this.options).onStop)==null||s.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Uu(t);const{type:e=Tn,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=e||Tn;u!==Tn&&typeof a[0]!="number"&&(this.mixKeyframes=Gn(mh,Ou(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=br(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return i.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,x=i;if(f){const b=Math.min(this.currentTime,s)/a;let w=Math.floor(b),A=b%1;!A&&b>=1&&(A=1),A===1&&w--,w=Math.min(w,f+1),!!(w%2)&&(h==="reverse"?(A=1-A,d&&(A-=d/a)):h==="mirror"&&(x=o)),v=Kt(0,1,A)*a}let T;_?(this.delayState.value=c[0],T=this.delayState):T=x.next(v),r&&!_&&(T.value=r(T.value));let{done:P}=T;!_&&u!==null&&(P=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return S&&m!==Ps&&(T.value=Ni(c,this.options,g,this.speed)),p&&p(T.value),S&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return Vt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(this.currentTime)}set time(t){t=gt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const e=this.generator.next(t).value;return Bu(i=>this.generator.next(i).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(dt.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=Vt(this.currentTime))}play(){var s,r;if(this.isStopped)return;const{driver:t=nh,startTime:e}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(s=this.options).onPlay)==null||r.call(s);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),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(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(e=this.driver)==null||e.stop(),t.observe(this)}}function gh(n){for(let t=1;t<n.length;t++)n[t]??(n[t]=n[t-1])}const Ce=n=>n*180/Math.PI,As=n=>{const t=Ce(Math.atan2(n[1],n[0]));return Cs(t)},yh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:As,rotateZ:As,skewX:n=>Ce(Math.atan(n[1])),skewY:n=>Ce(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Cs=n=>(n=n%360,n<0&&(n+=360),n),wo=As,bo=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),So=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),_h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:bo,scaleY:So,scale:n=>(bo(n)+So(n))/2,rotateX:n=>Cs(Ce(Math.atan2(n[6],n[5]))),rotateY:n=>Cs(Ce(Math.atan2(-n[2],n[0]))),rotateZ:wo,rotate:wo,skewX:n=>Ce(Math.atan(n[4])),skewY:n=>Ce(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Ms(n){return n.includes("scale")?1:0}function Ds(n,t){if(!n||n==="none")return Ms(t);const e=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(e)i=_h,s=e;else{const a=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=yh,s=a}if(!s)return Ms(t);const r=i[t],o=s[1].split(",").map(xh);return typeof r=="function"?r(o):o[r]}const vh=(n,t)=>{const{transform:e="none"}=getComputedStyle(n);return Ds(e,t)};function xh(n){return parseFloat(n.trim())}const ln=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cn=new Set([...ln,"pathRotation"]),Po=n=>n===un||n===D,Th=new Set(["x","y","z"]),wh=ln.filter(n=>!Th.has(n));function bh(n){const t=[];return wh.forEach(e=>{const i=n.getValue(e);i!==void 0&&(t.push([e,i.get()]),i.set(e.startsWith("scale")?1:0))}),t}const ae={width:({x:n},{paddingLeft:t="0",paddingRight:e="0",boxSizing:i})=>{const s=n.max-n.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(e)},height:({y:n},{paddingTop:t="0",paddingBottom:e="0",boxSizing:i})=>{const s=n.max-n.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(e)},top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>Ds(t,"x"),y:(n,{transform:t})=>Ds(t,"y")};ae.translateX=ae.x;ae.translateY=ae.y;const De=new Set;let Rs=!1,Vs=!1,Es=!1;function Wu(){if(Vs){const n=Array.from(De).filter(i=>i.needsMeasurement),t=new Set(n.map(i=>i.element)),e=new Map;t.forEach(i=>{const s=bh(i);s.length&&(e.set(i,s),i.render())}),n.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=e.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))==null||a.set(o)})}),n.forEach(i=>i.measureEndState()),n.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Vs=!1,Rs=!1,De.forEach(n=>n.complete(Es)),De.clear()}function $u(){De.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Vs=!0)})}function Sh(){Es=!0,$u(),Wu(),Es=!1}class Pr{constructor(t,e,i,s,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(De.add(this),Rs||(Rs=!0,N.read($u),N.resolveKeyframes(Wu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:i,motionValue:s}=this;if(t[0]===null){const r=s==null?void 0:s.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(i&&e){const a=i.readValue(e,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&r===void 0&&s.set(t[0])}gh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),De.delete(this)}cancel(){this.state==="scheduled"&&(De.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ph=n=>n.startsWith("--");function Gu(n,t,e){Ph(t)?n.style.setProperty(t,e):n.style[t]=e}const Ah={};function Yu(n,t){const e=pu(n);return()=>Ah[t]??e()}const Ch=Yu(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ku=Yu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mn=([n,t,e,i])=>`cubic-bezier(${n}, ${t}, ${e}, ${i})`,Ao={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mn([0,.65,.55,1]),circOut:mn([.55,0,1,.45]),backIn:mn([.31,.01,.66,-.59]),backOut:mn([.33,1.53,.69,.99])};function Xu(n,t){if(n)return typeof n=="function"?Ku()?Fu(n,t):"ease-out":Au(n)?mn(n):Array.isArray(n)?n.map(e=>Xu(e,t)||Ao.easeOut):Ao[n]}function Mh(n,t,e,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const c={[t]:e};u&&(c.offset=u);const f=Xu(a,s);Array.isArray(f)&&(c.easing=f);const h={delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),n.animate(c,h)}function Ar(n){return typeof n=="function"&&"applyToOptions"in n}function Dh({type:n,...t}){return Ar(n)&&Ku()?n.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Hu extends Sr{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:s,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,pr(typeof t.type!="string");const l=Dh(t);this.animation=Mh(e,i,s,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=Ni(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),Gu(e,i,c),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,i,s;const t=(e=this.options)==null?void 0:e.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(i=this.animation).commitStyles)==null||s.call(i))}get duration(){var e,i;const t=((i=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:i.call(e).duration)||0;return Vt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(Number(this.animation.currentTime)||0)}set time(t){const e=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=gt(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Ch()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),Ot):s(this)}}const qu={anticipate:xu,backInOut:vu,circInOut:wu};function Rh(n){return n in qu}function Vh(n){typeof n.ease=="string"&&Rh(n.ease)&&(n.ease=qu[n.ease])}const ts=10;class Eh extends Hu{constructor(t){Vh(t),Uu(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}const a=new xi({...o,autoplay:!1}),u=Math.max(ts,dt.now()-this.startTime),l=Kt(0,ts,u-ts),c=a.sample(u).value,{name:f}=this.options;r&&f&&Gu(r,f,c),e.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Co=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(jt.test(n)||n==="0")&&!n.startsWith("url("));function kh(n){const t=n[0];if(n.length===1)return!0;for(let e=0;e<n.length;e++)if(n[e]!==t)return!0}function Lh(n,t,e,i){const s=n[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const r=n[n.length-1],o=Co(s,t),a=Co(r,t);return!o||!a?!1:kh(n)||(e==="spring"||Ar(e))&&i}function ks(n){n.duration=0,n.type="keyframes"}const Zu=new Set(["opacity","clipPath","filter","transform"]),Oh=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Fh(n){for(let t=0;t<n.length;t++)if(typeof n[t]=="string"&&Oh.test(n[t]))return!0;return!1}const Ih=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Bh=pu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Nh(n){var f;const{motionValue:t,name:e,repeatDelay:i,repeatType:s,damping:r,type:o,keyframes:a}=n;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return Bh()&&e&&(Zu.has(e)||Ih.has(e)&&Fh(a))&&(e!=="transform"||!c)&&!l&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}const jh=40;class zh extends Sr{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){var m;super(),this.stop=()=>{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=dt.now();const h={autoplay:t,delay:e,type:i,repeat:s,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},d=(c==null?void 0:c.KeyframeResolver)||Pr;this.keyframeResolver=new d(a,(p,g,y)=>this.onKeyframesResolved(p,g,h,!y),u,l,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,e,i,s){var y,_;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=i;this.resolvedAt=dt.now();let f=!0;Lh(t,r,o,a)||(f=!1,(de.instantAnimations||!u)&&(c==null||c(Ni(t,i,e))),t[0]=t[t.length-1],ks(i),i.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>jh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=f&&!l&&Nh(d),p=(_=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:_.current;let g;if(m)try{g=new Eh({...d,element:p})}catch{g=new xi(d)}else g=new xi(d);g.finished.then(()=>{this.notifyFinished()}).catch(Ot),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(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Sh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Uh{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t){const e=this.animations.map(i=>i.attachTimeline(t));return()=>{e.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Mo(this.animations,"duration")}get iterationDuration(){return Mo(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(e=>e[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Mo(n,t){let e=0;for(let i=0;i<n.length;i++){const s=n[i][t];s!==null&&s>e&&(e=s)}return e}class Wh extends Uh{then(t,e){return this.finished.finally(t).then(()=>{})}}function Qu(n,t,e,i=0,s=1){const r=Array.from(n).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=n.size,a=(o-1)*i;return typeof e=="function"?e(r,o):s===1?r*i:a-r*i}const Do=30,$h=n=>!isNaN(parseFloat(n)),wn={current:void 0};class Gh{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var r;const s=dt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),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(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$h(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new mr);const i=this.events[t].add(e);return t==="change"?()=>{i(),N.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return wn.current&&wn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Do)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,Do);return mu(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 t,e;(t=this.dependents)==null||t.clear(),(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pe(n,t){return new Gh(n,t)}function Cr(n,t){if(n!=null&&n.inherit&&t){const{inherit:e,...i}=n;return{...t,...i}}return n}function Mr(n,t){const e=(n==null?void 0:n[t])??(n==null?void 0:n.default)??n;return e!==n?Cr(e,n):e}const Yh={type:"spring",stiffness:500,damping:25,restSpeed:10},Kh=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),Xh={type:"keyframes",duration:.8},Hh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qh=(n,{keyframes:t})=>t.length>2?Xh:cn.has(n)?n.startsWith("scale")?Kh(t[1]):Yh:Hh,Zh=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Qh(n){for(const t in n)if(!Zh.has(t))return!0;return!1}const Dr=(n,t,e,i={},s,r)=>o=>{const a=Mr(i,n)||{},u=a.delay||i.delay||0;let{elapsed:l=0}=i;l=l-gt(u);const c={keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:n,motionValue:t,element:r?void 0:s};Qh(a)||Object.assign(c,qh(n,c)),c.duration&&(c.duration=gt(c.duration)),c.repeatDelay&&(c.repeatDelay=gt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ks(c),c.delay===0&&(f=!0)),(de.instantAnimations||de.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ks(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const h=Ni(c.keyframes,a);if(h!==void 0){N.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new xi(c):new zh(c)},Jh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function td(n){const t=Jh.exec(n);if(!t)return[,];const[,e,i,s]=t;return[`--${e??i}`,s]}function Ju(n,t,e=1){const[i,s]=td(n);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const o=r.trim();return fu(o)?parseFloat(o):o}return vr(s)?Ju(s,t,e+1):s}function Ro(n){const t=[{},{}];return n==null||n.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function Rr(n,t,e,i){if(typeof t=="function"){const[s,r]=Ro(i);t=t(e!==void 0?e:n.custom,s,r)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[s,r]=Ro(i);t=t(e!==void 0?e:n.custom,s,r)}return t}function Re(n,t,e){const i=n.getProps();return Rr(i,t,e!==void 0?e:i.custom,n)}const tl=new Set(["width","height","top","left","right","bottom",...ln]),Ls=n=>Array.isArray(n);function ed(n,t,e){n.hasValue(t)?n.getValue(t).set(e):n.addValue(t,pe(e))}function nd(n){return Ls(n)?n[n.length-1]||0:n}function Vr(n,t){const e=Re(n,t);let{transitionEnd:i={},transition:s={},...r}=e||{};r={...r,...i};for(const o in r){const a=nd(r[o]);ed(n,o,a)}}const it=n=>!!(n&&n.getVelocity);function id(n){return!!(it(n)&&n.add)}function Os(n,t){const e=n.getValue("willChange");if(id(e))return e.add(t);if(!e&&de.WillChange){const i=new de.WillChange("auto");n.addValue("willChange",i),i.add(t)}}function Er(n){return n.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sd="framerAppearId",el="data-"+Er(sd);function nl(n){return n.props[el]}function rd({protectedKeys:n,needsAnimating:t},e){const i=n.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,i}function kr(n,t,{delay:e=0,transitionOverride:i,type:s}={}){let{transition:r,transitionEnd:o,...a}=t;const u=n.getDefaultTransition();r=r?Cr(r,u):u;const l=r==null?void 0:r.reduceMotion,c=r==null?void 0:r.skipAnimations;i&&(r=i);const f=[],h=s&&n.animationState&&n.animationState.getState()[s],d=r==null?void 0:r.path;d&&d.animateVisualElement(n,a,r,e,f);for(const m in a){const p=n.getValue(m,n.latestValues[m]??null),g=a[m];if(g===void 0||h&&rd(h,m))continue;const y={delay:e,...Mr(r||{},m)};c&&(y.skipAnimations=!0);const _=p.get();if(_!==void 0&&!p.isAnimating()&&!Array.isArray(g)&&g===_&&!y.velocity){N.update(()=>p.set(g));continue}let v=!1;if(window.MotionHandoffAnimation){const P=nl(n);if(P){const S=window.MotionHandoffAnimation(P,m,N);S!==null&&(y.startTime=S,v=!0)}}Os(n,m);const x=l??n.shouldReduceMotion;p.start(Dr(m,p,g,x&&tl.has(m)?{type:!1}:y,n,v));const T=p.animation;T&&f.push(T)}if(o){const m=()=>N.update(()=>{o&&Vr(n,o)});f.length?Promise.all(f).then(m):m()}return f}function Fs(n,t,e={}){var u;const i=Re(n,t,e.type==="exit"?(u=n.presenceContext)==null?void 0:u.custom:void 0);let{transition:s=n.getDefaultTransition()||{}}=i||{};e.transitionOverride&&(s=e.transitionOverride);const r=i?()=>Promise.all(kr(n,i,e)):()=>Promise.resolve(),o=n.variantChildren&&n.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:h}=s;return od(n,t,l,c,f,h,e)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(e.delay)])}function od(n,t,e=0,i=0,s=0,r=1,o){const a=[];for(const u of n.variantChildren)u.notify("AnimationStart",t),a.push(Fs(u,t,{...o,delay:e+(typeof i=="function"?0:i)+Qu(n.variantChildren,u,i,s,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function il(n,t,e={}){n.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(r=>Fs(n,r,e));i=Promise.all(s)}else if(typeof t=="string")i=Fs(n,t,e);else{const s=typeof t=="function"?Re(n,t,e.custom):t;i=Promise.all(kr(n,s,e))}return i.then(()=>{n.notify("AnimationComplete",t)})}const ad={test:n=>n==="auto",parse:n=>n},sl=n=>t=>t.test(n),rl=[un,D,Yt,Ht,If,Ff,ad],Vo=n=>rl.find(sl(n));function ud(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||du(n):!0}const ld=new Set(["brightness","contrast","saturate","opacity"]);function cd(n){const[t,e]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[i]=e.match(xr)||[];if(!i)return n;const s=e.replace(i,"");let r=ld.has(t)?1:0;return i!==e&&(r*=100),t+"("+r+s+")"}const fd=/\b([a-z-]*)\(.*?\)/gu,Is={...jt,getAnimatableNone:n=>{const t=n.match(fd);return t?t.map(cd).join(" "):n}},Bs={...jt,getAnimatableNone:n=>{const t=jt.parse(n);return jt.createTransformer(n)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Eo={...un,transform:Math.round},hd={rotate:Ht,pathRotation:Ht,rotateX:Ht,rotateY:Ht,rotateZ:Ht,scale:Qn,scaleX:Qn,scaleY:Qn,scaleZ:Qn,skew:Ht,skewX:Ht,skewY:Ht,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Rn,originX:yo,originY:yo,originZ:D},Ti={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...hd,zIndex:Eo,fillOpacity:Rn,strokeOpacity:Rn,numOctaves:Eo},dd={...Ti,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:Is,WebkitFilter:Is,mask:Bs,WebkitMask:Bs},ol=n=>dd[n],pd=new Set([Is,Bs]);function al(n,t){let e=ol(n);return pd.has(e)||(e=jt),e.getAnimatableNone?e.getAnimatableNone(t):void 0}const md=new Set(["auto","none","0"]);function gd(n,t,e){let i=0,s;for(;i<n.length&&!s;){const r=n[i];typeof r=="string"&&!md.has(r)&&tn(r).values.length&&(s=n[i]),i++}if(s&&e)for(const r of t)n[r]=al(e,s)}class yd extends Pr{constructor(t,e,i,s,r){super(t,e,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),vr(f))){const h=Ju(f,e.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!tl.has(i)||t.length!==2)return;const[s,r]=t,o=Vo(s),a=Vo(r),u=go(s),l=go(r);if(u!==l&&ae[i]){this.needsMeasurement=!0;return}if(o!==a)if(Po(o)&&Po(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else ae[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||ud(t[s]))&&i.push(s);i.length&&gd(t,i,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ae[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const s=e[e.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=ae[e](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([u,l])=>{t.getValue(u).set(l)}),this.resolveNoneKeyframes()}}function ji(n,t,e){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let i=document;t&&(i=t.current);const s=(e==null?void 0:e[n])??i.querySelectorAll(n);return s?Array.from(s):[]}return Array.from(n).filter(i=>i!=null)}const Ns=(n,t)=>t&&typeof n=="number"?t.transform(n):n;function oi(n){return hu(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:Lr}=Cu(queueMicrotask,!1),It={x:!1,y:!1};function ul(){return It.x||It.y}function _d(n){return n==="x"||n==="y"?It[n]?null:(It[n]=!0,()=>{It[n]=!1}):It.x||It.y?null:(It.x=It.y=!0,()=>{It.x=It.y=!1})}function ll(n,t){const e=ji(n),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[e,s,()=>i.abort()]}function vd(n){return!(n.pointerType==="touch"||ul())}function xd(n,t,e={}){const[i,s,r]=ll(n,e);return i.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",m)},f=g=>{l&&(l(g),l=void 0),c()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},m=g=>{if(g.pointerType!=="touch"){if(a){u=!0;return}f(g)}},p=g=>{if(!vd(g))return;u=!1;const y=t(o,g);typeof y=="function"&&(l=y,o.addEventListener("pointerleave",m,s))};o.addEventListener("pointerenter",p,s),o.addEventListener("pointerdown",d,s)}),r}const cl=(n,t)=>t?n===t?!0:cl(n,t.parentElement):!1,Or=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Td=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wd(n){return Td.has(n.tagName)||n.isContentEditable===!0}const bd=new Set(["INPUT","SELECT","TEXTAREA"]);function Sd(n){return bd.has(n.tagName)||n.isContentEditable===!0}const ai=new WeakSet;function ko(n){return t=>{t.key==="Enter"&&n(t)}}function es(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Pd=(n,t)=>{const e=n.currentTarget;if(!e)return;const i=ko(()=>{if(ai.has(e))return;es(e,"down");const s=ko(()=>{es(e,"up")}),r=()=>es(e,"cancel");e.addEventListener("keyup",s,t),e.addEventListener("blur",r,t)});e.addEventListener("keydown",i,t),e.addEventListener("blur",()=>e.removeEventListener("keydown",i),t)};function Lo(n){return Or(n)&&!ul()}const Oo=new WeakSet;function Ad(n,t,e={}){const[i,s,r]=ll(n,e),o=a=>{const u=a.currentTarget;if(!Lo(a)||Oo.has(a))return;ai.add(u),e.stopPropagation&&Oo.add(a);const l=t(u,a),c=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),ai.has(u)&&ai.delete(u),Lo(d)&&typeof l=="function"&&l(d,{success:m})},f=d=>{c(d,u===window||u===document||e.useGlobalTarget||cl(u,d.target))},h=d=>{c(d,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return i.forEach(a=>{(e.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),oi(a)&&(a.addEventListener("focus",l=>Pd(l,s)),!wd(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function zi(n){return hu(n)&&"ownerSVGElement"in n}const ui=new WeakMap;let oe;const fl=(n,t,e)=>(i,s)=>s&&s[0]?s[0][n+"Size"]:zi(i)&&"getBBox"in i?i.getBBox()[t]:i[e],Cd=fl("inline","width","offsetWidth"),Md=fl("block","height","offsetHeight");function Dd({target:n,borderBoxSize:t}){var e;(e=ui.get(n))==null||e.forEach(i=>{i(n,{get width(){return Cd(n,t)},get height(){return Md(n,t)}})})}function Rd(n){n.forEach(Dd)}function Vd(){typeof ResizeObserver>"u"||(oe=new ResizeObserver(Rd))}function Ed(n,t){oe||Vd();const e=ji(n);return e.forEach(i=>{let s=ui.get(i);s||(s=new Set,ui.set(i,s)),s.add(t),oe==null||oe.observe(i)}),()=>{e.forEach(i=>{const s=ui.get(i);s==null||s.delete(t),s!=null&&s.size||oe==null||oe.unobserve(i)})}}const li=new Set;let We;function kd(){We=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};li.forEach(t=>t(n))},window.addEventListener("resize",We)}function Ld(n){return li.add(n),We||kd(),()=>{li.delete(n),!li.size&&typeof We=="function"&&(window.removeEventListener("resize",We),We=void 0)}}function Fo(n,t){return typeof n=="function"?Ld(n):Ed(n,t)}function hl(n){return zi(n)&&n.tagName==="svg"}function Od(...n){const t=!Array.isArray(n[0]),e=t?0:-1,i=n[0+e],s=n[1+e],r=n[2+e],o=n[3+e],a=Nu(s,r,o);return t?a(i):a}const Fd=[...rl,J,jt],Id=n=>Fd.find(sl(n)),Io=()=>({translate:0,scale:1,origin:0,originPoint:0}),$e=()=>({x:Io(),y:Io()}),Bo=()=>({min:0,max:0}),Q=()=>({x:Bo(),y:Bo()}),En=new WeakMap;function Ui(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function kn(n){return typeof n=="string"||Array.isArray(n)}const Fr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ir=["initial",...Fr];function Wi(n){return Ui(n.animate)||Ir.some(t=>kn(n[t]))}function dl(n){return!!(Wi(n)||n.variants)}function Bd(n,t,e){for(const i in t){const s=t[i],r=e[i];if(it(s))n.addValue(i,s);else if(it(r))n.addValue(i,pe(s,{owner:n}));else if(r!==s)if(n.hasValue(i)){const o=n.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=n.getStaticValue(i);n.addValue(i,pe(o!==void 0?o:s,{owner:n}))}}for(const i in e)t[i]===void 0&&n.removeValue(i);return t}const wi={current:null},Br={current:!1},Nd=typeof window<"u";function pl(){if(Br.current=!0,!!Nd)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>wi.current=n.matches;n.addEventListener("change",t),t()}else wi.current=!1}const No=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bi={};function ml(n){bi=n}function jd(){return bi}class gl{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:o,visualState:a},u={}){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=Pr,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=dt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,N.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Wi(e),this.isVariantNode=dl(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const d in h){const m=h[d];l[d]!==void 0&&it(m)&&m.set(l[d])}}mount(t){var e,i;if(this.hasBeenMounted)for(const s in this.initialValues)(e=this.values.get(s))==null||e.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,En.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Br.current||pl(),this.shouldReduceMotion=wi.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ee(this.notifyUpdate),ee(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&Zu.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:l,duration:c}=e.accelerate,f=new Hu({element:this.current,name:t,keyframes:a,times:u,ease:l,duration:gt(c)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const i=cn.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=e.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&N.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),r&&r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in bi){const e=bi[t];if(!e)continue;const{isEnabled:i,Feature:s}=e;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const r=this.features[t];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):Q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let i=0;i<No.length;i++){const s=No[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=t[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Bd(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&e!==void 0&&(i=pe(e===null?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(fu(i)||du(i))?i=parseFloat(i):!Id(i)&&jt.test(e)&&(i=al(t,e)),this.setBaseTarget(t,it(i)?i.get():i)),it(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var r;const{initial:e}=this.props;let i;if(typeof e=="string"||typeof e=="object"){const o=Rr(this.props,e,(r=this.presenceContext)==null?void 0:r.custom);o&&(i=o[t])}if(e&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!it(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new mr),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Lr.render(this.render)}}class yl extends gl{constructor(){super(...arguments),this.KeyframeResolver=yd}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){const i=t.style;return i?i[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;it(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class _e{constructor(t){this.isMounted=!1,this.node=t}update(){}}function _l({top:n,left:t,right:e,bottom:i}){return{x:{min:t,max:e},y:{min:n,max:i}}}function zd({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function Ud(n,t){if(!t)return n;const e=t({x:n.left,y:n.top}),i=t({x:n.right,y:n.bottom});return{top:e.y,left:e.x,bottom:i.y,right:i.x}}function ns(n){return n===void 0||n===1}function js({scale:n,scaleX:t,scaleY:e}){return!ns(n)||!ns(t)||!ns(e)}function Se(n){return js(n)||vl(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function vl(n){return jo(n.x)||jo(n.y)}function jo(n){return n&&n!=="0%"}function Si(n,t,e){const i=n-e,s=t*i;return e+s}function zo(n,t,e,i,s){return s!==void 0&&(n=Si(n,s,i)),Si(n,e,i)+t}function zs(n,t=0,e=1,i,s){n.min=zo(n.min,t,e,i,s),n.max=zo(n.max,t,e,i,s)}function xl(n,{x:t,y:e}){zs(n.x,t.translate,t.scale,t.originPoint),zs(n.y,e.translate,e.scale,e.originPoint)}const Uo=.999999999999,Wo=1.0000000000001;function Wd(n,t,e,i=!1){var a;const s=e.length;if(!s)return;t.x=t.y=1;let r,o;for(let u=0;u<s;u++){r=e[u],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(Wt(n.x,-r.scroll.offset.x),Wt(n.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,xl(n,o)),i&&Se(r.latestValues)&&ci(n,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}t.x<Wo&&t.x>Uo&&(t.x=1),t.y<Wo&&t.y>Uo&&(t.y=1)}function Wt(n,t){n.min+=t,n.max+=t}function $o(n,t,e,i,s=.5){const r=j(n.min,n.max,s);zs(n,t,e,r,i)}function Go(n,t){return typeof n=="string"?parseFloat(n)/100*(t.max-t.min):n}function ci(n,t,e){const i=e??n;$o(n.x,Go(t.x,i.x),t.scaleX,t.scale,t.originX),$o(n.y,Go(t.y,i.y),t.scaleY,t.scale,t.originY)}function Tl(n,t){return _l(Ud(n.getBoundingClientRect(),t))}function $d(n,t,e){const i=Tl(n,e),{scroll:s}=t;return s&&(Wt(i.x,s.offset.x),Wt(i.y,s.offset.y)),i}const Gd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yd=ln.length;function Kd(n,t,e){let i="",s=!0;for(let o=0;o<Yd;o++){const a=ln[o],u=n[a];if(u===void 0)continue;let l=!0;if(typeof u=="number")l=u===(a.startsWith("scale")?1:0);else{const c=parseFloat(u);l=a.startsWith("scale")?c===1:c===0}if(!l||e){const c=Ns(u,Ti[a]);if(!l){s=!1;const f=Gd[a]||a;i+=`${f}(${c}) `}e&&(t[a]=c)}}const r=n.pathRotation;return r&&(s=!1,i+=`rotate(${Ns(r,Ti.pathRotation)}) `),i=i.trim(),e?i=e(t,s?"":i):s&&(i="none"),i}function Nr(n,t,e){const{style:i,vars:s,transformOrigin:r}=n;let o=!1,a=!1;for(const u in t){const l=t[u];if(cn.has(u)){o=!0;continue}else if(Du(u)){s[u]=l;continue}else{const c=Ns(l,Ti[u]);u.startsWith("origin")?(a=!0,r[u]=c):i[u]=c}}if(t.transform||(o||e?i.transform=Kd(t,n.transform,e):i.transform&&(i.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:c=0}=r;i.transformOrigin=`${u} ${l} ${c}`}}function wl(n,{style:t,vars:e},i,s){const r=n.style;let o;for(o in t)r[o]=t[o];s==null||s.applyProjectionStyles(r,i);for(o in e)r.setProperty(o,e[o])}function Yo(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const hn={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if(D.test(n))n=parseFloat(n);else return n;const e=Yo(n,t.target.x),i=Yo(n,t.target.y);return`${e}% ${i}%`}},Xd={correct:(n,{treeScale:t,projectionDelta:e})=>{const i=n,s=jt.parse(n);if(s.length>5)return i;const r=jt.createTransformer(n),o=typeof s[0]!="number"?1:0,a=e.x.scale*t.x,u=e.y.scale*t.y;s[0+o]/=a,s[1+o]/=u;const l=j(a,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=l),typeof s[3+o]=="number"&&(s[3+o]/=l),r(s)}},Us={borderRadius:{...hn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomLeftRadius:hn,borderBottomRightRadius:hn,boxShadow:Xd};function bl(n,{layout:t,layoutId:e}){return cn.has(n)||n.startsWith("origin")||(t||e!==void 0)&&(!!Us[n]||n==="opacity")}function jr(n,t,e){var o;const i=n.style,s=t==null?void 0:t.style,r={};if(!i)return r;for(const a in i)(it(i[a])||s&&it(s[a])||bl(a,n)||((o=e==null?void 0:e.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=i[a]);return r}function Hd(n){return window.getComputedStyle(n)}class Sl extends yl{constructor(){super(...arguments),this.type="html",this.renderInstance=wl}readValueFromInstance(t,e){var i;if(cn.has(e))return(i=this.projection)!=null&&i.isProjecting?Ms(e):vh(t,e);{const s=Hd(t),r=(Du(e)?s.getPropertyValue(e):s[e])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return Tl(t,e)}build(t,e,i){Nr(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return jr(t,e,i)}}function qd(n,t){return n in t}class Zd extends gl{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,e){if(qd(e,t)){const i=t[e];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,e){delete e.output[t]}measureInstanceViewportBox(){return Q()}build(t,e){Object.assign(t.output,e)}renderInstance(t,{output:e}){Object.assign(t,e)}sortInstanceNodePosition(){return 0}}const Qd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jd={offset:"strokeDashoffset",array:"strokeDasharray"};function tp(n,t,e=1,i=0,s=!0){n.pathLength=1;const r=s?Qd:Jd;n[r.offset]=`${-i}`,n[r.array]=`${t} ${e}`}const ep=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Pl(n,{attrX:t,attrY:e,attrScale:i,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},u,l,c){if(Nr(n,a,l),u){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:f,style:h}=n;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=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const d of ep)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),e!==void 0&&(f.y=e),i!==void 0&&(f.scale=i),s!==void 0&&tp(f,s,r,o,!1)}const Al=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"]),Cl=n=>typeof n=="string"&&n.toLowerCase()==="svg";function np(n,t,e,i){wl(n,t,void 0,i);for(const s in t.attrs)n.setAttribute(Al.has(s)?s:Er(s),t.attrs[s])}function Ml(n,t,e){const i=jr(n,t,e);for(const s in n)if(it(n[s])||it(t[s])){const r=ln.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=n[s]}return i}class Dl extends yl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(cn.has(e)){const i=ol(e);return i&&i.default||0}return e=Al.has(e)?e:Er(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return Ml(t,e,i)}build(t,e,i){Pl(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,s){np(t,e,i,s)}mount(t){this.isSVGTag=Cl(t.tagName),super.mount(t)}}const ip=Ir.length;function Rl(n){if(!n)return;if(!n.isControllingVariants){const e=n.parent?Rl(n.parent)||{}:{};return n.props.initial!==void 0&&(e.initial=n.props.initial),e}const t={};for(let e=0;e<ip;e++){const i=Ir[e],s=n.props[i];(kn(s)||s===!1)&&(t[i]=s)}return t}function Vl(n,t){if(!Array.isArray(t))return!1;const e=t.length;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(t[i]!==n[i])return!1;return!0}const sp=[...Fr].reverse(),rp=Fr.length;function op(n){return t=>Promise.all(t.map(({animation:e,options:i})=>il(n,e,i)))}function ap(n){let t=op(n),e=Ko(),i=!0,s=!1;const r=l=>(c,f)=>{var d;const h=Re(n,f,l==="exit"?(d=n.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:m,transitionEnd:p,...g}=h;c={...c,...g,...p}}return c};function o(l){t=l(n)}function a(l){const{props:c}=n,f=Rl(n.parent)||{},h=[],d=new Set;let m={},p=1/0;for(let y=0;y<rp;y++){const _=sp[y],v=e[_],x=c[_]!==void 0?c[_]:f[_],T=kn(x),P=_===l?v.isActive:null;P===!1&&(p=y);let S=x===f[_]&&x!==c[_]&&T;if(S&&(i||s)&&n.manuallyAnimateOnMount&&(S=!1),v.protectedKeys={...m},!v.isActive&&P===null||!x&&!v.prevProp||Ui(x)||typeof x=="boolean")continue;if(_==="exit"&&v.isActive&&P!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const b=up(v.prevProp,x);let w=b||_===l&&v.isActive&&!S&&T||y>p&&T,A=!1;const M=Array.isArray(x)?x:[x];let R=M.reduce(r(_),{});P===!1&&(R={});const{prevResolvedValues:V={}}=v,k={...V,...R},O=E=>{w=!0,d.has(E)&&(A=!0,d.delete(E)),v.needsAnimating[E]=!0;const W=n.getValue(E);W&&(W.liveStyle=!1)};for(const E in k){const W=R[E],et=V[E];if(m.hasOwnProperty(E))continue;let $=!1;Ls(W)&&Ls(et)?$=!Vl(W,et)||b:$=W!==et,$?W!=null?O(E):d.add(E):W!==void 0&&d.has(E)?O(E):v.protectedKeys[E]=!0}v.prevProp=x,v.prevResolvedValues=R,v.isActive&&(m={...m,...R}),(i||s)&&n.blockInitialAnimation&&(w=!1);const L=S&&b;w&&(!L||A)&&h.push(...M.map(E=>{const W={type:_};if(typeof E=="string"&&(i||s)&&!L&&n.manuallyAnimateOnMount&&n.parent){const{parent:et}=n,$=Re(et,E);if(et.enteringChildren&&$){const{delayChildren:ft}=$.transition||{};W.delay=Qu(et.enteringChildren,n,ft)}}return{animation:E,options:W}}))}if(d.size){const y={};if(typeof c.initial!="boolean"){const _=Re(n,Array.isArray(c.initial)?c.initial[0]:c.initial);_&&_.transition&&(y.transition=_.transition)}d.forEach(_=>{const v=n.getBaseTarget(_),x=n.getValue(_);x&&(x.liveStyle=!0),y[_]=v??null}),h.push({animation:y})}let g=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!n.manuallyAnimateOnMount&&(g=!1),i=!1,s=!1,g?t(h):Promise.resolve()}function u(l,c){var h;if(e[l].isActive===c)return Promise.resolve();(h=n.variantChildren)==null||h.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(l,c)}),e[l].isActive=c;const f=a(l);for(const d in e)e[d].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>e,reset:()=>{e=Ko(),s=!0}}}function up(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!Vl(t,n):!1}function Te(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ko(){return{animate:Te(!0),whileInView:Te(),whileHover:Te(),whileTap:Te(),whileDrag:Te(),whileFocus:Te(),exit:Te()}}function Ws(n,t){n.min=t.min,n.max=t.max}function Ft(n,t){Ws(n.x,t.x),Ws(n.y,t.y)}function Xo(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}const El=1e-4,lp=1-El,cp=1+El,kl=.01,fp=0-kl,hp=0+kl;function pt(n){return n.max-n.min}function dp(n,t,e){return Math.abs(n-t)<=e}function Ho(n,t,e,i=.5){n.origin=i,n.originPoint=j(t.min,t.max,n.origin),n.scale=pt(e)/pt(t),n.translate=j(e.min,e.max,n.origin)-n.originPoint,(n.scale>=lp&&n.scale<=cp||isNaN(n.scale))&&(n.scale=1),(n.translate>=fp&&n.translate<=hp||isNaN(n.translate))&&(n.translate=0)}function bn(n,t,e,i){Ho(n.x,t.x,e.x,i?i.originX:void 0),Ho(n.y,t.y,e.y,i?i.originY:void 0)}function qo(n,t,e,i=0){const s=i?j(e.min,e.max,i):e.min;n.min=s+t.min,n.max=n.min+pt(t)}function pp(n,t,e,i){qo(n.x,t.x,e.x,i==null?void 0:i.x),qo(n.y,t.y,e.y,i==null?void 0:i.y)}function Zo(n,t,e,i=0){const s=i?j(e.min,e.max,i):e.min;n.min=t.min-s,n.max=n.min+pt(t)}function Pi(n,t,e,i){Zo(n.x,t.x,e.x,i==null?void 0:i.x),Zo(n.y,t.y,e.y,i==null?void 0:i.y)}function Qo(n,t,e,i,s){return n-=t,n=Si(n,1/e,i),s!==void 0&&(n=Si(n,1/s,i)),n}function mp(n,t=0,e=1,i=.5,s,r=n,o=n){if(Yt.test(t)&&(t=parseFloat(t),t=j(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=j(r.min,r.max,i);n===r&&(a-=t),n.min=Qo(n.min,t,e,a,s),n.max=Qo(n.max,t,e,a,s)}function Jo(n,t,[e,i,s],r,o){mp(n,t[e],t[i],t[s],t.scale,r,o)}const gp=["x","scaleX","originX"],yp=["y","scaleY","originY"];function ta(n,t,e,i){Jo(n.x,t,gp,e?e.x:void 0,i?i.x:void 0),Jo(n.y,t,yp,e?e.y:void 0,i?i.y:void 0)}function ea(n){return n.translate===0&&n.scale===1}function Ll(n){return ea(n.x)&&ea(n.y)}function na(n,t){return n.min===t.min&&n.max===t.max}function _p(n,t){return na(n.x,t.x)&&na(n.y,t.y)}function ia(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function Ol(n,t){return ia(n.x,t.x)&&ia(n.y,t.y)}function sa(n){return pt(n.x)/pt(n.y)}function ra(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}function zt(n){return[n("x"),n("y")]}function vp(n,t,e){let i="";const s=n.x.translate/t.x,r=n.y.translate/t.y,o=(e==null?void 0:e.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),e){const{transformPerspective:l,rotate:c,pathRotation:f,rotateX:h,rotateY:d,skewX:m,skewY:p}=e;l&&(i=`perspective(${l}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotate(${f}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),m&&(i+=`skewX(${m}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=n.x.scale*t.x,u=n.y.scale*t.y;return(a!==1||u!==1)&&(i+=`scale(${a}, ${u})`),i||"none"}const Fl=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],xp=Fl.length,oa=n=>typeof n=="string"?parseFloat(n):n,aa=n=>typeof n=="number"||D.test(n);function Tp(n,t,e,i,s,r){s?(n.opacity=j(0,e.opacity??1,wp(i)),n.opacityExit=j(t.opacity??1,0,bp(i))):r&&(n.opacity=j(t.opacity??1,e.opacity??1,i));for(let o=0;o<xp;o++){const a=Fl[o];let u=ua(t,a),l=ua(e,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||aa(u)===aa(l)?(n[a]=Math.max(j(oa(u),oa(l),i),0),(Yt.test(l)||Yt.test(u))&&(n[a]+="%")):n[a]=l}(t.rotate||e.rotate)&&(n.rotate=j(t.rotate||0,e.rotate||0,i))}function ua(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const wp=Il(0,.5,Tu),bp=Il(.5,.95,Ot);function Il(n,t,e){return i=>i<n?0:i>t?1:e(Je(n,t,i))}function Bl(n,t,e){const i=it(n)?n:pe(n);return i.start(Dr("",i,t,e)),i.animation}function Ln(n,t,e,i={passive:!0}){return n.addEventListener(t,e,i),()=>n.removeEventListener(t,e)}const Sp=(n,t)=>n.depth-t.depth;class Pp{constructor(){this.children=[],this.isDirty=!1}add(t){dr(this.children,t),this.isDirty=!0}remove(t){Qe(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Sp),this.isDirty=!1,this.children.forEach(t)}}function Ap(n,t){const e=dt.now(),i=({timestamp:s})=>{const r=s-e;r>=t&&(ee(i),n(r-t))};return N.setup(i,!0),()=>ee(i)}function fi(n){return it(n)?n.get():n}class Cp{constructor(){this.members=[]}add(t){dr(this.members,t);for(let e=this.members.length-1;e>=0;e--){const i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(Qe(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(Qe(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){var e;for(let i=this.members.indexOf(t)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&((e=s.instance)==null?void 0:e.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,e){var s;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:o}=t.options;(r===void 0||r!==o)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,i,s,r,o;(i=(e=t.options).onExitComplete)==null||i.call(e),(o=(s=t.resumingFrom)==null?void 0:(r=s.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},is=["","X","Y","Z"],Mp=1e3;let Dp=0;function ss(n,t,e,i){const{latestValues:s}=t;s[n]&&(e[n]=s[n],t.setStaticValue(n,0),i&&(i[n]=0))}function Nl(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const e=nl(t);if(window.MotionHasOptimisedAnimation(e,"transform")){const{layout:s,layoutId:r}=n.options;window.MotionCancelOptimisedAnimation(e,"transform",N,!(s||r))}const{parent:i}=n;i&&!i.hasCheckedOptimisedAppear&&Nl(i)}function jl({attachResizeListener:n,defaultParent:t,measureScroll:e,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Dp++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ep),this.nodes.forEach(Bp),this.nodes.forEach(Np),this.nodes.forEach(kp)},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 u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pp)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new mr),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=zi(o)&&!hl(o),this.instance=o;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),n){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;N.read(()=>{f=window.innerWidth}),n(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=Ap(h,250),hi.hasAnimatedSinceResize&&(hi.hasAnimatedSinceResize=!1,this.nodes.forEach(fa)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||$p,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=l.getProps(),y=!this.targetLayout||!Ol(this.targetLayout,d),_=!f&&h;if(this.options.layoutRoot||this.resumeFrom||_||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Mr(m,"layout"),onPlay:p,onComplete:g};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,_,v.path)}else f||fa(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(),ee(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(jp),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&&Nl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];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:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(Op),this.nodes.forEach(la);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ca);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Fp),this.nodes.forEach(Ip),this.nodes.forEach(Rp),this.nodes.forEach(Vp)):this.nodes.forEach(ca),this.clearAllSnapshots();const a=dt.now();ot.delta=Kt(0,1e3/60,a-ot.timestamp),ot.timestamp=a,ot.isProcessing=!0,Hi.update.process(ot),Hi.preRender.process(ot),Hi.render.process(ot),ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Lr.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Lp),this.sharedNodes.forEach(zp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,N.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){N.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pt(this.snapshot.measuredBox.x)&&!pt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Q()),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 u=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:e(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ll(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,c=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||Se(this.latestValues)||c)&&(s(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),Gp(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:o}=this.options;if(!o)return Q();const a=o.measureViewportBox();if(!(((l=this.scroll)==null?void 0:l.wasRoot)||this.path.some(Yp))){const{scroll:c}=this.root;c&&(Wt(a.x,c.offset.x),Wt(a.y,c.offset.y))}return a}removeElementScroll(o){var u;const a=Q();if(Ft(a,o),(u=this.scroll)!=null&&u.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:f,options:h}=c;c!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Ft(a,o),Wt(a.x,f.offset.x),Wt(a.y,f.offset.y))}return a}applyTransform(o,a=!1,u){var c,f;const l=u||Q();Ft(l,o);for(let h=0;h<this.path.length;h++){const d=this.path[h];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Wt(l.x,-d.scroll.offset.x),Wt(l.y,-d.scroll.offset.y)),Se(d.latestValues)&&ci(l,d.latestValues,(c=d.layout)==null?void 0:c.layoutBox)}return Se(this.latestValues)&&ci(l,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),l}removeTransform(o){var u;const a=Q();Ft(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!Se(c.latestValues))continue;let f;c.instance&&(js(c.latestValues)&&c.updateSnapshot(),f=Q(),Ft(f,c.measurePageBox())),ta(a,c.latestValues,(u=c.snapshot)==null?void 0:u.layoutBox,f)}return Se(this.latestValues)&&ta(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!==ot.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 u=!!this.resumingFrom||this!==a;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=ot.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=Q(),this.targetWithTransforms=Q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pp(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Ft(this.target,this.layout.layoutBox),xl(this.target,this.targetDelta)):Ft(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||js(this.parent.latestValues)||vl(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,u){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Q(),this.relativeTargetOrigin=Q(),Pi(this.relativeTargetOrigin,a,u,this.options.layoutAnchor||void 0),Ft(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===ot.timestamp&&(u=!1),u)return;const{layout:l,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||c))return;Ft(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Wd(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=Q());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xo(this.prevProjectionDelta.x,this.projectionDelta.x),Xo(this.prevProjectionDelta.y,this.projectionDelta.y)),bn(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ra(this.projectionDelta.x,this.prevProjectionDelta.x)||!ra(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$e(),this.projectionDelta=$e(),this.projectionDeltaWithTransform=$e()}setAnimationOrigin(o,a=!1,u){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},h=$e();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Q(),m=l?l.source:void 0,p=this.layout?this.layout.source:void 0,g=m!==p,y=this.getStack(),_=!y||y.members.length<=1,v=!!(g&&!_&&this.options.crossfade===!0&&!this.path.some(Wp));this.animationProgress=0;let x;const T=u==null?void 0:u.interpolateProjection(o);this.mixTargetDelta=P=>{const S=P/1e3,b=T==null?void 0:T(S);b?(h.x.translate=b.x,h.x.scale=j(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=b.y,h.y.scale=j(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(ha(h.x,o.x,S),ha(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pi(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Up(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&_p(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Q()),Ft(x,this.relativeTarget)),g&&(this.animationValues=f,Tp(f,c,this.latestValues,S,v,_)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,u,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(l=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||l.stop(),this.pendingAnimation&&(ee(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=N.update(()=>{hi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pe(0)),this.motionValue.jump(0,!1),this.currentAnimation=Bl(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},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(Mp),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:c}=o;if(!(!a||!u||!l)){if(this!==o&&this.layout&&l&&zl(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Q();const f=pt(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+f;const h=pt(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+h}Ft(a,u),ci(a,c),bn(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Cp),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const 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:u}={}){const l=this.getStack();l&&l.promote(this,u),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:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&ss("z",o,l,this.animationValues);for(let c=0;c<is.length;c++)ss(`rotate${is[c]}`,o,l,this.animationValues),ss(`skew${is[c]}`,o,l,this.animationValues);o.render();for(const c in l)o.setStaticValue(c,l[c]),this.animationValues&&(this.animationValues[c]=l[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=fi(a==null?void 0:a.pointerEvents)||"",o.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=fi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Se(this.latestValues)&&(o.transform=u?u({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=vp(this.projectionDeltaWithTransform,this.treeScale,c);u&&(f=u(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,l.animationValues?o.opacity=l===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=l===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in Us){if(c[m]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=Us[m],_=f==="none"?c[m]:p(c[m],l);if(g){const v=g.length;for(let x=0;x<v;x++)o[g[x]]=_}else y?this.options.visualElement.renderState.vars[m]=_:o[m]=_}this.options.layoutId&&(o.pointerEvents=l===this?fi(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(la),this.root.sharedNodes.clear()}}}function Rp(n){n.updateLayout()}function Vp(n){var e;const t=((e=n.resumeFrom)==null?void 0:e.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&t&&n.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=n.layout,{animationType:r}=n.options,o=t.source!==n.layout.source;if(r==="size")zt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],d=pt(h);h.min=i[f].min,h.max=h.min+d});else if(r==="x"||r==="y"){const f=r==="x"?"y":"x";Ws(o?t.measuredBox[f]:t.layoutBox[f],i[f])}else zl(r,t.layoutBox,i)&&zt(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],d=pt(i[f]);h.max=h.min+d,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[f].max=n.relativeTarget[f].min+d)});const a=$e();bn(a,i,t.layoutBox);const u=$e();o?bn(u,n.applyTransform(s,!0),t.measuredBox):bn(u,i,t.layoutBox);const l=!Ll(a);let c=!1;if(!n.resumeFrom){const f=n.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const m=n.options.layoutAnchor||void 0,p=Q();Pi(p,t.layoutBox,h.layoutBox,m);const g=Q();Pi(g,i,d.layoutBox,m),Ol(p,g)||(c=!0),f.options.layoutRoot&&(n.relativeTarget=g,n.relativeTargetOrigin=p,n.relativeParent=f)}}}n.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(n.isLead()){const{onExitComplete:i}=n.options;i&&i()}n.options.transition=void 0}function Ep(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function kp(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function Lp(n){n.clearSnapshot()}function la(n){n.clearMeasurements()}function Op(n){n.isLayoutDirty=!0,n.updateLayout()}function ca(n){n.isLayoutDirty=!1}function Fp(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function Ip(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function fa(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function Bp(n){n.resolveTargetDelta()}function Np(n){n.calcProjection()}function jp(n){n.resetSkewAndRotation()}function zp(n){n.removeLeadSnapshot()}function ha(n,t,e){n.translate=j(t.translate,0,e),n.scale=j(t.scale,1,e),n.origin=t.origin,n.originPoint=t.originPoint}function da(n,t,e,i){n.min=j(t.min,e.min,i),n.max=j(t.max,e.max,i)}function Up(n,t,e,i){da(n.x,t.x,e.x,i),da(n.y,t.y,e.y,i)}function Wp(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const $p={duration:.45,ease:[.4,0,.1,1]},pa=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),ma=pa("applewebkit/")&&!pa("chrome/")?Math.round:Ot;function ga(n){n.min=ma(n.min),n.max=ma(n.max)}function Gp(n){ga(n.x),ga(n.y)}function zl(n,t,e){return n==="position"||n==="preserve-aspect"&&!dp(sa(t),sa(e),.2)}function Yp(n){var t;return n!==n.root&&((t=n.scroll)==null?void 0:t.wasRoot)}const Kp=jl({attachResizeListener:(n,t)=>Ln(n,"resize",t),measureScroll:()=>{var n,t;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Xp=n=>!n.isLayoutDirty&&n.willUpdate(!1);function ya(){const n=new Set,t=new WeakMap,e=()=>n.forEach(Xp);return{add:i=>{n.add(i),t.set(i,i.addEventListener("willUpdate",e))},remove:i=>{n.delete(i);const s=t.get(i);s&&(s(),t.delete(i)),e()},dirty:e}}const rs={current:void 0},Ul=jl({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!rs.current){const n=new Kp({});n.mount(window),n.setOptions({layoutScroll:!0}),rs.current=n}return rs.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),en=C.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function _a(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function Hp(...n){return t=>{let e=!1;const i=n.map(s=>{const r=_a(s,t);return!e&&typeof r=="function"&&(e=!0),r});if(e)return()=>{for(let s=0;s<i.length;s++){const r=i[s];typeof r=="function"?r():_a(n[s],null)}}}}function qp(...n){return C.useCallback(Hp(...n),n)}class Zp extends C.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(oi(e)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=e.offsetParent,s=oi(i)&&i.offsetWidth||0,r=oi(i)&&i.offsetHeight||0,o=getComputedStyle(e),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=e.offsetTop,a.left=e.offsetLeft,a.right=s-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Qp({children:n,isPresent:t,anchorX:e,anchorY:i,root:s,pop:r}){var h;const o=C.useId(),a=C.useRef(null),u=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:l}=C.useContext(en),c=((h=n.props)==null?void 0:h.ref)??(n==null?void 0:n.ref),f=qp(a,c);return C.useInsertionEffect(()=>{const{width:d,height:m,top:p,left:g,right:y,bottom:_,direction:v}=u.current;if(t||r===!1||!a.current||!d||!m)return;const x=v==="rtl",T=e==="left"?x?`right: ${y}`:`left: ${g}`:x?`left: ${g}`:`right: ${y}`,P=i==="bottom"?`bottom: ${_}`:`top: ${p}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");l&&(S.nonce=l);const b=s??document.head;return b.appendChild(S),S.sheet&&S.sheet.insertRule(`
          [data-motion-pop-id="${o}"] {
            position: absolute !important;
            width: ${d}px !important;
            height: ${m}px !important;
            ${T}px !important;
            ${P}px !important;
          }
        `),()=>{var w;(w=a.current)==null||w.removeAttribute("data-motion-pop-id"),b.contains(S)&&b.removeChild(S)}},[t]),Nt.jsx(Zp,{isPresent:t,childRef:a,sizeRef:u,pop:r,children:r===!1?n:C.cloneElement(n,{ref:f})})}const Jp=({children:n,initial:t,isPresent:e,onExitComplete:i,custom:s,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:u,root:l})=>{const c=te(tm),f=C.useId();let h=!0,d=C.useMemo(()=>(h=!1,{id:f,initial:t,isPresent:e,custom:s,onExitComplete:m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[e,c,i]);return r&&h&&(d={...d}),C.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[e]),C.useEffect(()=>{!e&&!c.size&&i&&i()},[e]),n=Nt.jsx(Qp,{pop:o==="popLayout",isPresent:e,anchorX:a,anchorY:u,root:l,children:n}),Nt.jsx(Bi.Provider,{value:d,children:n})};function tm(){return new Map}function Wl(n=!0){const t=C.useContext(Bi);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:i,register:s}=t,r=C.useId();C.useEffect(()=>{if(n)return s(r)},[n]);const o=C.useCallback(()=>n&&i&&i(r),[r,i,n]);return!e&&i?[!1,o]:[!0]}const Jn=n=>n.key||"";function va(n){const t=[];return C.Children.forEach(n,e=>{C.isValidElement(e)&&t.push(e)}),t}const Wy=({children:n,custom:t,initial:e=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:u="top",root:l})=>{const[c,f]=Wl(o),h=C.useMemo(()=>va(n),[n]),d=o&&!c?[]:h.map(Jn),m=C.useRef(!0),p=C.useRef(h),g=te(()=>new Map),y=C.useRef(new Set),[_,v]=C.useState(h),[x,T]=C.useState(h);$n(()=>{m.current=!1,p.current=h;for(let b=0;b<x.length;b++){const w=Jn(x[b]);d.includes(w)?(g.delete(w),y.current.delete(w)):g.get(w)!==!0&&g.set(w,!1)}},[x,d.length,d.join("-")]);const P=[];if(h!==_){let b=[...h];for(let w=0;w<x.length;w++){const A=x[w],M=Jn(A);d.includes(M)||(b.splice(w,0,A),P.push(A))}return r==="wait"&&P.length&&(b=P),T(va(b)),v(h),null}const{forceRender:S}=C.useContext(Dn);return Nt.jsx(Nt.Fragment,{children:x.map(b=>{const w=Jn(b),A=o&&!c?!1:h===x||d.includes(w),M=()=>{if(y.current.has(w))return;if(g.has(w))y.current.add(w),g.set(w,!0);else return;let R=!0;g.forEach(V=>{V||(R=!1)}),R&&(S==null||S(),T(p.current),o&&(f==null||f()),i&&i())};return Nt.jsx(Jp,{isPresent:A,initial:!m.current||e?void 0:!1,custom:t,presenceAffectsLayout:s,mode:r,root:l,onExitComplete:A?void 0:M,anchorX:a,anchorY:u,children:b},w)})})},em=C.createContext(null);function nm(){const n=C.useRef(!1);return $n(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function im(){const n=nm(),[t,e]=C.useState(0),i=C.useCallback(()=>{n.current&&e(t+1)},[t]);return[C.useCallback(()=>N.postRender(i),[i]),t]}const $l=n=>n===!0,sm=n=>$l(n===!0)||n==="id",$y=({children:n,id:t,inherit:e=!0})=>{const i=C.useContext(Dn),s=C.useContext(em),[r,o]=im(),a=C.useRef(null),u=i.id||s;a.current===null&&(sm(e)&&u&&(t=t?u+"-"+t:u),a.current={id:t,group:$l(e)&&i.group||ya()});const l=C.useMemo(()=>({...a.current,forceRender:r}),[o]);return Nt.jsx(Dn.Provider,{value:l,children:n})},Gl=C.createContext({strict:!1}),xa={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 Ta=!1;function rm(){if(Ta)return;const n={};for(const t in xa)n[t]={isEnabled:e=>xa[t].some(i=>!!e[i])};ml(n),Ta=!0}function Yl(){return rm(),jd()}function om(n){const t=Yl();for(const e in n)t[e]={...t[e],...n[e]};ml(t)}const am=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 Ai(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||am.has(n)}let Kl=n=>!Ai(n);function Xl(n){typeof n=="function"&&(Kl=t=>t.startsWith("on")?!Ai(t):n(t))}try{Xl(require("@emotion/is-prop-valid").default)}catch{}function um(n,t,e){const i={};for(const s in n)s==="values"&&typeof n.values=="object"||it(n[s])||(Kl(s)||e===!0&&Ai(s)||!t&&!Ai(s)||n.draggable&&s.startsWith("onDrag"))&&(i[s]=n[s]);return i}function Gy({children:n,isValidProp:t,...e}){t&&Xl(t);const i=C.useContext(en);e={...i,...e},e.transition=Cr(e.transition,i.transition),e.isStatic=te(()=>e.isStatic);const s=C.useMemo(()=>e,[JSON.stringify(e.transition),e.transformPagePoint,e.reducedMotion,e.skipAnimations]);return Nt.jsx(en.Provider,{value:s,children:n})}const $i=C.createContext({});function lm(n,t){if(Wi(n)){const{initial:e,animate:i}=n;return{initial:e===!1||kn(e)?e:void 0,animate:kn(i)?i:void 0}}return n.inherit!==!1?t:{}}function cm(n){const{initial:t,animate:e}=lm(n,C.useContext($i));return C.useMemo(()=>({initial:t,animate:e}),[wa(t),wa(e)])}function wa(n){return Array.isArray(n)?n.join(" "):n}const zr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Hl(n,t,e){for(const i in t)!it(t[i])&&!bl(i,e)&&(n[i]=t[i])}function fm({transformTemplate:n},t){return C.useMemo(()=>{const e=zr();return Nr(e,t,n),Object.assign({},e.vars,e.style)},[t])}function hm(n,t){const e=n.style||{},i={};return Hl(i,e,n),Object.assign(i,fm(n,t)),i}function dm(n,t){const e={},i=hm(n,t);return n.drag&&n.dragListener!==!1&&(e.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(e.tabIndex=0),e.style=i,e}const ql=()=>({...zr(),attrs:{}});function pm(n,t,e,i){const s=C.useMemo(()=>{const r=ql();return Pl(r,t,Cl(i),n.transformTemplate,n.style),{...r.attrs,style:{...r.style}}},[t]);if(n.style){const r={};Hl(r,n.style,n),s.style={...r,...s.style}}return s}const mm=["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 Ur(n){return typeof n!="string"||n.includes("-")?!1:!!(mm.indexOf(n)>-1||/[A-Z]/u.test(n))}function gm(n,t,e,{latestValues:i},s,r=!1,o){const u=(o??Ur(n)?pm:dm)(t,i,s,n),l=um(t,typeof n=="string",r),c=n!==C.Fragment?{...l,...u,ref:e}:{},{children:f}=t,h=C.useMemo(()=>it(f)?f.get():f,[f]);return C.createElement(n,{...c,children:h})}function ym({scrapeMotionValuesFromProps:n,createRenderState:t},e,i,s){return{latestValues:_m(e,i,s,n),renderState:t()}}function _m(n,t,e,i){const s={},r=i(n,{});for(const h in r)s[h]=fi(r[h]);let{initial:o,animate:a}=n;const u=Wi(n),l=dl(n);t&&l&&!u&&n.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=e?e.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!Ui(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=Rr(n,h[d]);if(m){const{transitionEnd:p,transition:g,...y}=m;for(const _ in y){let v=y[_];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(s[_]=v)}for(const _ in p)s[_]=p[_]}}}return s}const Zl=n=>(t,e)=>{const i=C.useContext($i),s=C.useContext(Bi),r=()=>ym(n,t,i,s);return e?r():te(r)},vm=Zl({scrapeMotionValuesFromProps:jr,createRenderState:zr}),xm=Zl({scrapeMotionValuesFromProps:Ml,createRenderState:ql}),Tm=Symbol.for("motionComponentSymbol");function wm(n,t,e){const i=C.useRef(e);C.useInsertionEffect(()=>{i.current=e});const s=C.useRef(null);return C.useCallback(r=>{var a;r&&((a=n.onMount)==null||a.call(n,r)),t&&(r?t.mount(r):t.unmount());const o=i.current;if(typeof o=="function")if(r){const u=o(r);typeof u=="function"&&(s.current=u)}else s.current?(s.current(),s.current=null):o(r);else o&&(o.current=r)},[t])}const Ql=C.createContext({});function je(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function bm(n,t,e,i,s,r){var v,x;const{visualElement:o}=C.useContext($i),a=C.useContext(Gl),u=C.useContext(Bi),l=C.useContext(en),c=l.reducedMotion,f=l.skipAnimations,h=C.useRef(null),d=C.useRef(!1);i=i||a.renderer,!h.current&&i&&(h.current=i(n,{visualState:t,parent:o,props:e,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:r}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,p=C.useContext(Ql);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&Sm(h.current,e,s,p);const g=C.useRef(!1);C.useInsertionEffect(()=>{m&&g.current&&m.update(e,u)});const y=e[el],_=C.useRef(!!y&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,y)));return $n(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),C.useEffect(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,y)}),_.current=!1),m.enteringChildren=void 0)}),m}function Sm(n,t,e,i){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutAnchor:c,layoutCrossfade:f}=t;n.projection=new e(n.latestValues,t["data-framer-portal-id"]?void 0:Jl(n.parent)),n.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&je(a),visualElement:n,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:f,layoutScroll:u,layoutRoot:l,layoutAnchor:c})}function Jl(n){if(n)return n.options.allowProjection!==!1?n.projection:Jl(n.parent)}function os(n,{forwardMotionProps:t=!1,type:e}={},i,s){i&&om(i);const r=e?e==="svg":Ur(n),o=r?xm:vm;function a(l,c){let f;const h={...C.useContext(en),...l,layoutId:Pm(l)},{isStatic:d}=h,m=cm(l),p=o(l,d);if(!d&&typeof window<"u"){Am();const g=Cm(h);f=g.MeasureLayout,m.visualElement=bm(n,p,h,s,g.ProjectionNode,r)}return Nt.jsxs($i.Provider,{value:m,children:[f&&m.visualElement?Nt.jsx(f,{visualElement:m.visualElement,...h}):null,gm(n,l,wm(p,m.visualElement,c),p,d,t,r)]})}a.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const u=C.forwardRef(a);return u[Tm]=n,u}function Pm({layoutId:n}){const t=C.useContext(Dn).id;return t&&n!==void 0?t+"-"+n:n}function Am(n,t){C.useContext(Gl).strict}function Cm(n){const t=Yl(),{drag:e,layout:i}=t;if(!e&&!i)return{};const s={...e,...i};return{MeasureLayout:e!=null&&e.isEnabled(n)||i!=null&&i.isEnabled(n)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Mm(n,t){if(typeof Proxy>"u")return os;const e=new Map,i=(r,o)=>os(r,o,n,t),s=(r,o)=>i(r,o);return new Proxy(s,{get:(r,o)=>o==="create"?i:(e.has(o)||e.set(o,os(o,void 0,n,t)),e.get(o))})}const Dm=(n,t)=>t.isSVG??Ur(n)?new Dl(t):new Sl(t,{allowProjection:n!==C.Fragment});class Rm extends _e{constructor(t){super(t),t.animationState||(t.animationState=ap(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ui(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Vm=0;class Em extends _e{constructor(){super(...arguments),this.id=Vm++,this.isExitComplete=!1}update(){var r;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!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 u=Re(this.node,o,a);if(u){const{transition:l,transitionEnd:c,...f}=u;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 s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const km={animation:{Feature:Rm},exit:{Feature:Em}};function Xn(n){return{point:{x:n.pageX,y:n.pageY}}}const Lm=n=>t=>Or(t)&&n(t,Xn(t));function Sn(n,t,e,i){return Ln(n,t,Lm(e),i)}const tc=({current:n})=>n?n.ownerDocument.defaultView:null,ba=(n,t)=>Math.abs(n-t);function Om(n,t){const e=ba(n.x,t.x),i=ba(n.y,t.y);return Math.sqrt(e**2+i**2)}const Sa=new Set(["auto","scroll"]);class ec{constructor(t,e,{transformPagePoint:i,contextWindow:s=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=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ti(this.lastRawMoveEventInfo,this.transformPagePoint));const d=as(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=Om(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=d,{timestamp:y}=ot;this.history.push({...g,timestamp:y});const{onStart:_,onMove:v}=this.handlers;m||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=ti(m,this.transformPagePoint),N.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=as(d.type==="pointercancel"?this.lastMoveEventInfo:ti(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,_),g&&g(d,_)},!Or(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const u=Xn(t),l=ti(u,this.transformPagePoint),{point:c}=l,{timestamp:f}=ot;this.history=[{...c,timestamp:f}];const{onSessionStart:h}=e;h&&h(t,as(l,this.history)),this.removeListeners=Gn(Sn(this.contextWindow,"pointermove",this.handlePointerMove),Sn(this.contextWindow,"pointerup",this.handlePointerUp),Sn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){const i=getComputedStyle(e);(Sa.has(i.overflowX)||Sa.has(i.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.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(t){const e=this.scrollPositions.get(t);if(!e)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:s.x-e.x,y:s.y-e.y};r.x===0&&r.y===0||(i?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(t,s),N.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ee(this.updatePoint)}}function ti(n,t){return t?{point:t(n.point)}:n}function Pa(n,t){return{x:n.x-t.x,y:n.y-t.y}}function as({point:n},t){return{point:n,delta:Pa(n,nc(t)),offset:Pa(n,Fm(t)),velocity:Im(t,.1)}}function Fm(n){return n[0]}function nc(n){return n[n.length-1]}function Im(n,t){if(n.length<2)return{x:0,y:0};let e=n.length-1,i=null;const s=nc(n);for(;e>=0&&(i=n[e],!(s.timestamp-i.timestamp>gt(t)));)e--;if(!i)return{x:0,y:0};i===n[0]&&n.length>2&&s.timestamp-i.timestamp>gt(t)*2&&(i=n[1]);const r=Vt(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Bm(n,{min:t,max:e},i){return t!==void 0&&n<t?n=i?j(t,n,i.min):Math.max(n,t):e!==void 0&&n>e&&(n=i?j(e,n,i.max):Math.min(n,e)),n}function Aa(n,t,e){return{min:t!==void 0?n.min+t:void 0,max:e!==void 0?n.max+e-(n.max-n.min):void 0}}function Nm(n,{top:t,left:e,bottom:i,right:s}){return{x:Aa(n.x,e,s),y:Aa(n.y,t,i)}}function Ca(n,t){let e=t.min-n.min,i=t.max-n.max;return t.max-t.min<n.max-n.min&&([e,i]=[i,e]),{min:e,max:i}}function jm(n,t){return{x:Ca(n.x,t.x),y:Ca(n.y,t.y)}}function zm(n,t){let e=.5;const i=pt(n),s=pt(t);return s>i?e=Je(t.min,t.max-i,n.min):i>s&&(e=Je(n.min,n.max-s,t.min)),Kt(0,1,e)}function Um(n,t){const e={};return t.min!==void 0&&(e.min=t.min-n.min),t.max!==void 0&&(e.max=t.max-n.min),e}const $s=.35;function Wm(n=$s){return n===!1?n=0:n===!0&&(n=$s),{x:Ma(n,"left","right"),y:Ma(n,"top","bottom")}}function Ma(n,t,e){return{min:Da(n,t),max:Da(n,e)}}function Da(n,t){return typeof n=="number"?n:n[t]||0}const $m=new WeakMap;class Gm{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=f=>{e&&this.snapToCursor(Xn(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=_d(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),zt(y=>{let _=this.getAxisMotionValue(y).get()||0;if(Yt.test(_)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[y];x&&(_=pt(x)*(parseFloat(_)/100))}}this.originPoint[y]=_}),p&&N.update(()=>p(f,h),!1,!0),Os(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=Km(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&N.update(()=>g(f,h),!1,!0)},u=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new ec(t,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:tc(this.visualElement),element:this.visualElement.current})}stop(t,e){const i=t||this.latestPointerEvent,s=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&N.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){const{drag:s}=this.getProps();if(!i||!ei(t,s,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=Bm(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,s=this.constraints;t&&je(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Nm(i.layoutBox,t):this.constraints=!1,this.elastic=Wm(e),s!==this.constraints&&!je(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&zt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Um(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!je(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const r=$d(i,s.root,this.visualElement.getTransformPagePoint());let o=jm(s.layout.layoutBox,r);if(e){const a=e(zd(o));this.hasMutatedConstraints=!!a,a&&(o=_l(a))}return o}startAnimation(t){const{drag:e,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=zt(c=>{if(!ei(c,e,this.currentDirection))return;let f=u&&u[c]||{};(o===!0||o===c)&&(f={min:0,max:0});const h=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,e){const i=this.getAxisMotionValue(t);return Os(this.visualElement,t),i.start(Dr(t,i,0,e,this.visualElement,!1))}stopAnimation(){zt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[e];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){zt(e=>{const{drag:i}=this.getProps();if(!ei(e,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(e);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[e],u=r.get()||0;r.set(t[e]-j(o,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!je(e)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};zt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const u=a.get();s[o]=zm({min:u,max:u},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),zt(o=>{if(!ei(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:l}=this.constraints[o];a.set(j(u,l,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;$m.set(this.visualElement,this);const t=this.visualElement.current,e=Sn(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps(),h=l.target,d=h!==t&&Sd(h);c&&f&&!d&&this.start(l)});let i;const s=()=>{const{dragConstraints:l}=this.getProps();je(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),i||(i=Ym(t,l.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),N.read(s);const a=Ln(window,"resize",()=>this.scalePositionWithinConstraints()),u=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(zt(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{a(),e(),o(),u&&u(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=$s,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Ra(n){let t=!0;return()=>{if(t){t=!1;return}n()}}function Ym(n,t,e){const i=Fo(n,Ra(e)),s=Fo(t,Ra(e));return()=>{i(),s()}}function ei(n,t,e){return(t===!0||t===n)&&(e===null||e===n)}function Km(n,t=10){let e=null;return Math.abs(n.y)>t?e="y":Math.abs(n.x)>t&&(e="x"),e}class Xm extends _e{constructor(t){super(t),this.removeGroupControls=Ot,this.removeListeners=Ot,this.controls=new Gm(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ot}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const us=n=>(t,e)=>{n&&N.update(()=>n(t,e),!1,!0)};class Hm extends _e{constructor(){super(...arguments),this.removePointerDownListener=Ot}onPointerDown(t){this.session=new ec(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:us(t),onStart:us(e),onMove:us(i),onEnd:(r,o)=>{delete this.session,s&&N.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=Sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ls=!1;class qm extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&s&&i.register(r),ls&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:i,drag:s,isPresent:r}=this.props,{projection:o}=i;return o&&(o.isPresent=r,t.layoutDependency!==e&&o.setOptions({...o.options,layoutDependency:e}),ls=!0,s||t.layoutDependency!==e||e===void 0||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||N.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),Lr.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:s}=t;ls=!0,s&&(s.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ic(n){const[t,e]=Wl(),i=C.useContext(Dn);return Nt.jsx(qm,{...n,layoutGroup:i,switchLayoutGroup:C.useContext(Ql),isPresent:t,safeToRemove:e})}const Zm={pan:{Feature:Hm},drag:{Feature:Xm,ProjectionNode:Ul,MeasureLayout:ic}};function Va(n,t,e){const{props:i}=n;n.animationState&&i.whileHover&&n.animationState.setActive("whileHover",e==="Start");const s="onHover"+e,r=i[s];r&&N.postRender(()=>r(t,Xn(t)))}class Qm extends _e{mount(){const{current:t}=this.node;t&&(this.unmount=xd(t,(e,i)=>(Va(this.node,i,"Start"),s=>Va(this.node,s,"End"))))}unmount(){}}class Jm extends _e{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gn(Ln(this.node.current,"focus",()=>this.onFocus()),Ln(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ea(n,t,e){const{props:i}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&i.whileTap&&n.animationState.setActive("whileTap",e==="Start");const s="onTap"+(e==="End"?"":e),r=i[s];r&&N.postRender(()=>r(t,Xn(t)))}class tg extends _e{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=Ad(t,(s,r)=>(Ea(this.node,r,"Start"),(o,{success:a})=>Ea(this.node,o,a?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const Gs=new WeakMap,cs=new WeakMap,eg=n=>{const t=Gs.get(n.target);t&&t(n)},ng=n=>{n.forEach(eg)};function ig({root:n,...t}){const e=n||document;cs.has(e)||cs.set(e,{});const i=cs.get(e),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(ng,{root:n,...t})),i[s]}function sg(n,t,e){const i=ig(t);return Gs.set(n,e),i.observe(n),()=>{Gs.delete(n),i.unobserve(n)}}const rg={some:0,all:1};class og extends _e{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var u;(u=this.stopObserver)==null||u.call(this);const{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:s="some",once:r}=t,o={root:e?e.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:rg[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),d=c?f:h;d&&d(l)};this.stopObserver=sg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(ag(t,e))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function ag({viewport:n={}},{viewport:t={}}={}){return e=>n[e]!==t[e]}const ug={inView:{Feature:og},tap:{Feature:tg},focus:{Feature:Jm},hover:{Feature:Qm}},lg={layout:{ProjectionNode:Ul,MeasureLayout:ic}},cg={...km,...ug,...Zm,...lg},Yy=Mm(cg,Dm);function fg(n){const t=te(()=>pe(n)),{isStatic:e}=C.useContext(en);if(e){const[,i]=C.useState(n);C.useEffect(()=>t.on("change",i),[])}return t}function sc(n,t){const e=fg(t()),i=()=>e.set(t());return i(),$n(()=>{const s=()=>N.preRender(i,!1,!0),r=n.map(o=>o.on("change",s));return()=>{r.forEach(o=>o()),ee(i)}}),e}function hg(n){wn.current=[],n();const t=sc(wn.current,n);return wn.current=void 0,t}function dg(n,t,e,i){if(typeof n=="function")return hg(n);if(e!==void 0&&!Array.isArray(e)&&typeof t!="function")return pg(n,t,e,i);const o=typeof t=="function"?t:Od(t,e,i),a=Array.isArray(n)?ka(n,o):ka([n],([l])=>o(l)),u=Array.isArray(n)?void 0:n.accelerate;return u&&!u.isTransformed&&typeof t!="function"&&Array.isArray(e)&&(i==null?void 0:i.clamp)!==!1&&(a.accelerate={...u,times:t,keyframes:e,isTransformed:!0}),a}function ka(n,t){const e=te(()=>[]);return sc(n,()=>{e.length=0;const i=n.length;for(let s=0;s<i;s++)e[s]=n[s].get();return t(e)})}function pg(n,t,e,i){const s=te(()=>Object.keys(e)),r=te(()=>({}));for(const o of s)r[o]=dg(n,t,e[o],i);return r}function Ky(){!Br.current&&pl();const[n]=C.useState(wi.current);return n}function mg(n){n.values.forEach(t=>t.stop())}function Ys(n,t){[...t].reverse().forEach(i=>{const s=n.getVariant(i);s&&Vr(n,s),n.variantChildren&&n.variantChildren.forEach(r=>{Ys(r,t)})})}function gg(n,t){if(Array.isArray(t))return Ys(n,t);if(typeof t=="string")return Ys(n,[t]);Vr(n,t)}function yg(){const n=new Set,t={subscribe(e){return n.add(e),()=>void n.delete(e)},start(e,i){const s=[];return n.forEach(r=>{s.push(il(r,e,{transitionOverride:i}))}),Promise.all(s)},set(e){return n.forEach(i=>{gg(i,e)})},stop(){n.forEach(e=>{mg(e)})},mount(){return()=>{t.stop()}}};return t}function Wr(n){return typeof n=="object"&&!Array.isArray(n)}function rc(n,t,e,i){return n==null?[]:typeof n=="string"&&Wr(t)?ji(n,e,i):n instanceof NodeList?Array.from(n):Array.isArray(n)?n.filter(s=>s!=null):[n]}function _g(n,t,e){return n*(t+1)+e*t}function La(n,t,e,i){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,n+parseFloat(t)):t==="<"?e:t.startsWith("<")?Math.max(0,e+parseFloat(t.slice(1))):i.get(t)??n}function vg(n,t,e){for(let i=0;i<n.length;i++){const s=n[i];s.at>t&&s.at<e&&(Qe(n,s),i--)}}function xg(n,t,e,i,s,r){vg(n,s,r);for(let o=0;o<t.length;o++)n.push({value:t[o],at:j(s,r,i[o]),easing:Pu(e,o)})}function Tg(n,t,e=0){const i=t+1+t*e;for(let s=0;s<n.length;s++)n[s]=n[s]/i}function wg(n,t){return n.at===t.at?n.value===null?1:t.value===null?-1:0:n.at-t.at}const bg="easeInOut",Sg=20;function Pg(n,{defaultTransition:t={},...e}={},i,s){const r=t.duration||.3,o=new Map,a=new Map,u={},l=new Map;let c=0,f=0,h=0;for(let d=0;d<n.length;d++){const m=n[d];if(typeof m=="string"){l.set(m,f);continue}else if(!Array.isArray(m)){l.set(m.name,La(f,m.at,c,l));continue}let[p,g,y={}]=m;y.at!==void 0&&(f=La(f,y.at,c,l));let _=0;const v=(x,T,P,S=0,b=0)=>{const w=Ag(x),{delay:A=0,times:M=zu(w),type:R=t.type||"keyframes",repeat:V,repeatType:k,repeatDelay:O=0,...L}=T;let{ease:F=t.ease||"easeOut",duration:E}=T;const W=typeof A=="function"?A(S,b):A,et=w.length,$=Ar(R)?R:s==null?void 0:s[R||"keyframes"];if(et<=2&&$){let nt=100;if(et===2&&Dg(w)){const xe=w[1]-w[0];nt=Math.abs(xe)}const se={...t,...L};E!==void 0&&(se.duration=gt(E));const Be=Iu(se,nt,$);F=Be.ease,E=Be.duration}E??(E=r);const ft=f+W;M.length===1&&M[0]===0&&(M[1]=1);const ht=M.length-w.length;if(ht>0&&ju(M,ht),w.length===1&&w.unshift(null),V&&V<Sg){const nt=E>0?O/E:0;E=_g(E,V,O);const se=[...w],Be=[...M];F=Array.isArray(F)?[...F]:[F];const xe=[...F],qn=k==="reverse"||k==="mirror";let ut=se,co=xe;qn&&(ut=[...se].reverse(),k==="reverse"&&(co=[...xe].reverse().map(re=>typeof re=="function"?gr(re):re)));for(let re=0;re<V;re++){const fo=qn&&re%2===0,ho=fo?ut:se,yf=fo?co:xe,po=(re+1)*(1+nt);nt>0&&(w.push(w[w.length-1]),M.push(po),F.push("linear")),w.push(...ho);for(let fn=0;fn<ho.length;fn++)M.push(Be[fn]+po),F.push(fn===0?"linear":Pu(yf,fn-1))}Tg(M,V,nt)}const rt=ft+E;xg(P,w,F,M,ft,rt),_=Math.max(W+E,_),h=Math.max(rt,h)};if(it(p)){const x=Oa(p,a);v(g,y,Fa("default",x))}else{const x=rc(p,g,i,u),T=x.length;for(let P=0;P<T;P++){g=g,y=y;const S=x[P],b=Oa(S,a);for(const w in g)v(g[w],Cg(y,w),Fa(w,b),P,T)}}c=f,f+=_}return a.forEach((d,m)=>{for(const p in d){const g=d[p];g.sort(wg);const y=[],_=[],v=[];for(let S=0;S<g.length;S++){const{at:b,value:w,easing:A}=g[S];y.push(w),_.push(Je(0,h,b)),v.push(A||"easeOut")}_[0]!==0&&(_.unshift(0),y.unshift(y[0]),v.unshift(bg)),_[_.length-1]!==1&&(_.push(1),y.push(null)),o.has(m)||o.set(m,{keyframes:{},transition:{}});const x=o.get(m);x.keyframes[p]=y;const{type:T,...P}=t;x.transition[p]={...P,duration:h,ease:v,times:_,...e}}}),o}function Oa(n,t){return!t.has(n)&&t.set(n,{}),t.get(n)}function Fa(n,t){return t[n]||(t[n]=[]),t[n]}function Ag(n){return Array.isArray(n)?n:[n]}function Cg(n,t){return n&&n[t]?{...n,...n[t]}:{...n}}const Mg=n=>typeof n=="number",Dg=n=>n.every(Mg);function Rg(n){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},e=zi(n)&&!hl(n)?new Dl(t):new Sl(t);e.mount(n),En.set(n,e)}function Vg(n){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},e=new Zd(t);e.mount(n),En.set(n,e)}function Eg(n,t){return it(n)||typeof n=="number"||typeof n=="string"&&!Wr(t)}function oc(n,t,e,i){const s=[];if(Eg(n,t))s.push(Bl(n,Wr(t)&&t.default||t,e&&(e.default||e)));else{if(n==null)return s;const r=rc(n,t,i),o=r.length;for(let a=0;a<o;a++){const u=r[a],l=u instanceof Element?Rg:Vg;En.has(u)||l(u);const c=En.get(u),f={...e};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),s.push(...kr(c,{...t,transition:f},{}))}}return s}function kg(n,t,e){const i=[],s=n.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],u=pe(0);return u.on("change",a),o.length===1?[u,[0,1]]:o.length===2?[u,[0,1],o[1]]:[u,o[1],o[2]]}return o});return Pg(s,t,e,{spring:Vn}).forEach(({keyframes:o,transition:a},u)=>{i.push(...oc(u,o,a))}),i}function Lg(n){return Array.isArray(n)&&n.some(Array.isArray)}function Og(n={}){const{scope:t,reduceMotion:e,skipAnimations:i}=n;function s(r,o,a){let u=[],l;const c={};if(e!==void 0&&(c.reduceMotion=e),i!==void 0&&(c.skipAnimations=i),Lg(r)){const{onComplete:h,...d}=o||{};typeof h=="function"&&(l=h),u=kg(r,{...c,...d},t)}else{const{onComplete:h,...d}=a||{};typeof h=="function"&&(l=h),u=oc(r,o,{...c,...d},t)}const f=new Wh(u);return l&&f.finished.then(l),t&&(t.animations.push(f),f.finished.then(()=>{Qe(t.animations,f)})),f}return s}const Xy=Og();function Fg(){const n=te(yg);return $n(n.mount,[]),n}const Hy=Fg,Ig={some:0,all:1};function Bg(n,t,{root:e,margin:i,amount:s="some"}={}){const r=ji(n),o=new WeakMap,a=l=>{l.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=t(c.target,c);typeof h=="function"?o.set(c.target,h):u.unobserve(c.target)}else typeof f=="function"&&(f(c),o.delete(c.target))})},u=new IntersectionObserver(a,{root:e,rootMargin:i,threshold:typeof s=="number"?s:Ig[s]});return r.forEach(l=>u.observe(l)),()=>u.disconnect()}function qy(n,{root:t,margin:e,amount:i,once:s=!1,initial:r=!1}={}){const[o,a]=C.useState(r);return C.useEffect(()=>{if(!n.current||s&&o)return;const u=()=>(a(!0),s?void 0:()=>a(!1)),l={root:t&&t.current||void 0,margin:e,amount:i};return Bg(n.current,u,l)},[t,n,e,s,i]),o}function qt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function ac(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t}/*!
 * GSAP 3.15.0
 * https://gsap.com
 *
 * @license Copyright 2008-2026, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var At={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},On={duration:.5,overwrite:!1,delay:0},$r,at,G,Et=1e8,U=1/Et,Ks=Math.PI*2,Ng=Ks/4,jg=0,uc=Math.sqrt,zg=Math.cos,Ug=Math.sin,st=function(t){return typeof t=="string"},q=function(t){return typeof t=="function"},ne=function(t){return typeof t=="number"},Gr=function(t){return typeof t>"u"},Xt=function(t){return typeof t=="object"},yt=function(t){return t!==!1},Yr=function(){return typeof window<"u"},ni=function(t){return q(t)||st(t)},lc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ct=Array.isArray,Wg=/random\([^)]+\)/g,$g=/,\s*/g,Ia=/(?:-?\.?\d|\.)+/gi,cc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ge=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,fs=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,fc=/[+-]=-?[.\d]+/,Gg=/[^,'"\[\]\s]+/gi,Yg=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,K,Ut,Xs,Kr,Ct={},Ci={},hc,dc=function(t){return(Ci=nn(t,Ct))&&Tt},Xr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Fn=function(t,e){return!e&&console.warn(t)},pc=function(t,e){return t&&(Ct[t]=e)&&Ci&&(Ci[t]=e)||Ct},In=function(){return 0},Kg={suppressEvents:!0,isStart:!0,kill:!1},di={suppressEvents:!0,kill:!1},Xg={suppressEvents:!0},Hr={},fe=[],Hs={},mc,wt={},hs={},Ba=30,pi=[],qr="",Zr=function(t){var e=t[0],i,s;if(Xt(e)||q(e)||(t=[t]),!(i=(e._gsap||{}).harness)){for(s=pi.length;s--&&!pi[s].targetTest(e););i=pi[s]}for(s=t.length;s--;)t[s]&&(t[s]._gsap||(t[s]._gsap=new Ic(t[s],i)))||t.splice(s,1);return t},Ve=function(t){return t._gsap||Zr(kt(t))[0]._gsap},gc=function(t,e,i){return(i=t[e])&&q(i)?t[e]():Gr(i)&&t.getAttribute&&t.getAttribute(e)||i},_t=function(t,e){return(t=t.split(",")).forEach(e)||t},Z=function(t){return Math.round(t*1e5)/1e5||0},Y=function(t){return Math.round(t*1e7)/1e7||0},Xe=function(t,e){var i=e.charAt(0),s=parseFloat(e.substr(2));return t=parseFloat(t),i==="+"?t+s:i==="-"?t-s:i==="*"?t*s:t/s},Hg=function(t,e){for(var i=e.length,s=0;t.indexOf(e[s])<0&&++s<i;);return s<i},Mi=function(){var t=fe.length,e=fe.slice(0),i,s;for(Hs={},fe.length=0,i=0;i<t;i++)s=e[i],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},Qr=function(t){return!!(t._initted||t._startAt||t.add)},yc=function(t,e,i,s){fe.length&&!at&&Mi(),t.render(e,i,!!(at&&e<0&&Qr(t))),fe.length&&!at&&Mi()},_c=function(t){var e=parseFloat(t);return(e||e===0)&&(t+"").match(Gg).length<2?e:st(t)?t.trim():t},vc=function(t){return t},Mt=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},qg=function(t){return function(e,i){for(var s in i)s in e||s==="duration"&&t||s==="ease"||(e[s]=i[s])}},nn=function(t,e){for(var i in e)t[i]=e[i];return t},Na=function n(t,e){for(var i in e)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=Xt(e[i])?n(t[i]||(t[i]={}),e[i]):e[i]);return t},Di=function(t,e){var i={},s;for(s in t)s in e||(i[s]=t[s]);return i},Pn=function(t){var e=t.parent||K,i=t.keyframes?qg(ct(t.keyframes)):Mt;if(yt(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},Zg=function(t,e){for(var i=t.length,s=i===e.length;s&&i--&&t[i]===e[i];);return i<0},xc=function(t,e,i,s,r){var o=t[s],a;if(r)for(a=e[r];o&&o[r]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[s]=e,e._prev=o,e.parent=e._dp=t,e},Gi=function(t,e,i,s){i===void 0&&(i="_first"),s===void 0&&(s="_last");var r=e._prev,o=e._next;r?r._next=o:t[i]===e&&(t[i]=o),o?o._prev=r:t[s]===e&&(t[s]=r),e._next=e._prev=e.parent=null},me=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ee=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Qg=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},qs=function(t,e,i,s){return t._startAt&&(at?t._startAt.revert(di):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,s))},Jg=function n(t){return!t||t._ts&&n(t.parent)},ja=function(t){return t._repeat?sn(t._tTime,t=t.duration()+t._rDelay)*t:0},sn=function(t,e){var i=Math.floor(t=Y(t/e));return t&&i===t?i-1:i},Ri=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yi=function(t){return t._end=Y(t._start+(t._tDur/Math.abs(t._ts||t._rts||U)||0))},Ki=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Y(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Yi(t),i._dirty||Ee(i,t)),t},Tc=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Ri(t.rawTime(),e),(!e._dur||Hn(0,e.totalDuration(),i)-e._tTime>U)&&e.render(i,!0)),Ee(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-U}},$t=function(t,e,i,s){return e.parent&&me(e),e._start=Y((ne(i)?i:i||t!==K?Dt(t,i,e):t._time)+e._delay),e._end=Y(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),xc(t,e,"_first","_last",t._sort?"_start":0),Zs(e)||(t._recent=e),s||Tc(t,e),t._ts<0&&Ki(t,t._tTime),t},wc=function(t,e){return(Ct.ScrollTrigger||Xr("scrollTrigger",e))&&Ct.ScrollTrigger.create(e,t)},bc=function(t,e,i,s,r){if(to(t,e,r),!t._initted)return 1;if(!i&&t._pt&&!at&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&mc!==bt.frame)return fe.push(t),t._lazy=[r,s],1},t0=function n(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||n(e))},Zs=function(t){var e=t.data;return e==="isFromStart"||e==="isStart"},e0=function(t,e,i,s){var r=t.ratio,o=e<0||!e&&(!t._start&&t0(t)&&!(!t._initted&&Zs(t))||(t._ts<0||t._dp._ts<0)&&!Zs(t))?0:1,a=t._rDelay,u=0,l,c,f;if(a&&t._repeat&&(u=Hn(0,t._tDur,e),c=sn(u,a),t._yoyo&&c&1&&(o=1-o),c!==sn(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||at||s||t._zTime===U||!e&&t._zTime){if(!t._initted&&bc(t,e,s,i,u))return;for(f=t._zTime,t._zTime=e||(i?U:0),i||(i=e&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=u,l=t._pt;l;)l.r(o,l.d),l=l._next;e<0&&qs(t,e,i,!0),t._onUpdate&&!i&&St(t,"onUpdate"),u&&t._repeat&&!i&&t.parent&&St(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===o&&(o&&me(t,1),!i&&!at&&(St(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},n0=function(t,e,i){var s;if(i>e)for(s=t._first;s&&s._start<=i;){if(s.data==="isPause"&&s._start>e)return s;s=s._next}else for(s=t._last;s&&s._start>=i;){if(s.data==="isPause"&&s._start<e)return s;s=s._prev}},rn=function(t,e,i,s){var r=t._repeat,o=Y(e)||0,a=t._tTime/t._tDur;return a&&!s&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:Y(o*(r+1)+t._rDelay*r):o,a>0&&!s&&Ki(t,t._tTime=t._tDur*a),t.parent&&Yi(t),i||Ee(t.parent,t),t},za=function(t){return t instanceof mt?Ee(t):rn(t,t._dur)},i0={_start:0,endTime:In,totalDuration:In},Dt=function n(t,e,i){var s=t.labels,r=t._recent||i0,o=t.duration()>=Et?r.endTime(!1):t._dur,a,u,l;return st(e)&&(isNaN(e)||e in s)?(u=e.charAt(0),l=e.substr(-1)==="%",a=e.indexOf("="),u==="<"||u===">"?(a>=0&&(e=e.replace(/=/,"")),(u==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(e.substr(1))||0)*(l?(a<0?r:i).totalDuration()/100:1)):a<0?(e in s||(s[e]=o),s[e]):(u=parseFloat(e.charAt(a-1)+e.substr(a+1)),l&&i&&(u=u/100*(ct(i)?i[0]:i).totalDuration()),a>1?n(t,e.substr(0,a-1),i)+u:o+u)):e==null?o:+e},An=function(t,e,i){var s=ne(e[1]),r=(s?2:1)+(t<2?0:1),o=e[r],a,u;if(s&&(o.duration=e[1]),o.parent=i,t){for(a=o,u=i;u&&!("immediateRender"in a);)a=u.vars.defaults||{},u=yt(u.vars.inherit)&&u.parent;o.immediateRender=yt(a.immediateRender),t<2?o.runBackwards=1:o.startAt=e[r-1]}return new tt(e[0],o,e[r+1])},ve=function(t,e){return t||t===0?e(t):e},Hn=function(t,e,i){return i<t?t:i>e?e:i},lt=function(t,e){return!st(t)||!(e=Yg.exec(t))?"":e[1]},s0=function(t,e,i){return ve(i,function(s){return Hn(t,e,s)})},Qs=[].slice,Sc=function(t,e){return t&&Xt(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Xt(t[0]))&&!t.nodeType&&t!==Ut},r0=function(t,e,i){return i===void 0&&(i=[]),t.forEach(function(s){var r;return st(s)&&!e||Sc(s,1)?(r=i).push.apply(r,kt(s)):i.push(s)})||i},kt=function(t,e,i){return G&&!e&&G.selector?G.selector(t):st(t)&&!i&&(Xs||!on())?Qs.call((e||Kr).querySelectorAll(t),0):ct(t)?r0(t,i):Sc(t)?Qs.call(t,0):t?[t]:[]},Js=function(t){return t=kt(t)[0]||Fn("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return kt(e,i.querySelectorAll?i:i===t?Fn("Invalid scope")||Kr.createElement("div"):t)}},Pc=function(t){return t.sort(function(){return .5-Math.random()})},Ac=function(t){if(q(t))return t;var e=Xt(t)?t:{each:t},i=ke(e.ease),s=e.from||0,r=parseFloat(e.base)||0,o={},a=s>0&&s<1,u=isNaN(s)||a,l=e.axis,c=s,f=s;return st(s)?c=f={center:.5,edges:.5,end:1}[s]||0:!a&&u&&(c=s[0],f=s[1]),function(h,d,m){var p=(m||e).length,g=o[p],y,_,v,x,T,P,S,b,w;if(!g){if(w=e.grid==="auto"?0:(e.grid||[1,Et])[1],!w){for(S=-Et;S<(S=m[w++].getBoundingClientRect().left)&&w<p;);w<p&&w--}for(g=o[p]=[],y=u?Math.min(w,p)*c-.5:s%w,_=w===Et?0:u?p*f/w-.5:s/w|0,S=0,b=Et,P=0;P<p;P++)v=P%w-y,x=_-(P/w|0),g[P]=T=l?Math.abs(l==="y"?x:v):uc(v*v+x*x),T>S&&(S=T),T<b&&(b=T);s==="random"&&Pc(g),g.max=S-b,g.min=b,g.v=p=(parseFloat(e.amount)||parseFloat(e.each)*(w>p?p-1:l?l==="y"?p/w:w:Math.max(w,p/w))||0)*(s==="edges"?-1:1),g.b=p<0?r-p:r,g.u=lt(e.amount||e.each)||0,i=i&&p<0?_0(i):i}return p=(g[h]-g.min)/g.max||0,Y(g.b+(i?i(p):p)*g.v)+g.u}},tr=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var s=Y(Math.round(parseFloat(i)/t)*t*e);return(s-s%1)/e+(ne(i)?0:lt(i))}},Cc=function(t,e){var i=ct(t),s,r;return!i&&Xt(t)&&(s=i=t.radius||Et,t.values?(t=kt(t.values),(r=!ne(t[0]))&&(s*=s)):t=tr(t.increment)),ve(e,i?q(t)?function(o){return r=t(o),Math.abs(r-o)<=s?r:o}:function(o){for(var a=parseFloat(r?o.x:o),u=parseFloat(r?o.y:0),l=Et,c=0,f=t.length,h,d;f--;)r?(h=t[f].x-a,d=t[f].y-u,h=h*h+d*d):h=Math.abs(t[f]-a),h<l&&(l=h,c=f);return c=!s||l<=s?t[c]:o,r||c===o||ne(o)?c:c+lt(o)}:tr(t))},Mc=function(t,e,i,s){return ve(ct(t)?!e:i===!0?!!(i=0):!s,function(){return ct(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(s=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+i*.99))/i)*i*s)/s})},o0=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(s){return e.reduce(function(r,o){return o(r)},s)}},a0=function(t,e){return function(i){return t(parseFloat(i))+(e||lt(i))}},u0=function(t,e,i){return Rc(t,e,0,1,i)},Dc=function(t,e,i){return ve(i,function(s){return t[~~e(s)]})},l0=function n(t,e,i){var s=e-t;return ct(t)?Dc(t,n(0,t.length),e):ve(i,function(r){return(s+(r-t)%s)%s+t})},c0=function n(t,e,i){var s=e-t,r=s*2;return ct(t)?Dc(t,n(0,t.length-1),e):ve(i,function(o){return o=(r+(o-t)%r)%r||0,t+(o>s?r-o:o)})},Bn=function(t){return t.replace(Wg,function(e){var i=e.indexOf("[")+1,s=e.substring(i||7,i?e.indexOf("]"):e.length-1).split($g);return Mc(i?s:+s[0],i?0:+s[1],+s[2]||1e-5)})},Rc=function(t,e,i,s,r){var o=e-t,a=s-i;return ve(r,function(u){return i+((u-t)/o*a||0)})},f0=function n(t,e,i,s){var r=isNaN(t+e)?0:function(d){return(1-d)*t+d*e};if(!r){var o=st(t),a={},u,l,c,f,h;if(i===!0&&(s=1)&&(i=null),o)t={p:t},e={p:e};else if(ct(t)&&!ct(e)){for(c=[],f=t.length,h=f-2,l=1;l<f;l++)c.push(n(t[l-1],t[l]));f--,r=function(m){m*=f;var p=Math.min(h,~~m);return c[p](m-p)},i=e}else s||(t=nn(ct(t)?[]:{},t));if(!c){for(u in e)Jr.call(a,t,u,"get",e[u]);r=function(m){return io(m,a)||(o?t.p:t)}}}return ve(i,r)},Ua=function(t,e,i){var s=t.labels,r=Et,o,a,u;for(o in s)a=s[o]-e,a<0==!!i&&a&&r>(a=Math.abs(a))&&(u=o,r=a);return u},St=function(t,e,i){var s=t.vars,r=s[e],o=G,a=t._ctx,u,l,c;if(r)return u=s[e+"Params"],l=s.callbackScope||t,i&&fe.length&&Mi(),a&&(G=a),c=u?r.apply(l,u):r.call(l),G=o,c},gn=function(t){return me(t),t.scrollTrigger&&t.scrollTrigger.kill(!!at),t.progress()<1&&St(t,"onInterrupt"),t},Ye,Vc=[],Ec=function(t){if(t)if(t=!t.name&&t.default||t,Yr()||t.headless){var e=t.name,i=q(t),s=e&&!i&&t.init?function(){this._props=[]}:t,r={init:In,render:io,add:Jr,kill:M0,modifier:C0,rawVars:0},o={targetTest:0,get:0,getSetter:no,aliases:{},register:0};if(on(),t!==s){if(wt[e])return;Mt(s,Mt(Di(t,r),o)),nn(s.prototype,nn(r,Di(t,o))),wt[s.prop=e]=s,t.targetTest&&(pi.push(s),Hr[e]=1),e=(e==="css"?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}pc(e,s),t.register&&t.register(Tt,s,vt)}else Vc.push(t)},z=255,yn={aqua:[0,z,z],lime:[0,z,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,z],navy:[0,0,128],white:[z,z,z],olive:[128,128,0],yellow:[z,z,0],orange:[z,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[z,0,0],pink:[z,192,203],cyan:[0,z,z],transparent:[z,z,z,0]},ds=function(t,e,i){return t+=t<0?1:t>1?-1:0,(t*6<1?e+(i-e)*t*6:t<.5?i:t*3<2?e+(i-e)*(2/3-t)*6:e)*z+.5|0},kc=function(t,e,i){var s=t?ne(t)?[t>>16,t>>8&z,t&z]:0:yn.black,r,o,a,u,l,c,f,h,d,m;if(!s){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),yn[t])s=yn[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return s=parseInt(t.substr(1,6),16),[s>>16,s>>8&z,s&z,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),s=[t>>16,t>>8&z,t&z]}else if(t.substr(0,3)==="hsl"){if(s=m=t.match(Ia),!e)u=+s[0]%360/360,l=+s[1]/100,c=+s[2]/100,o=c<=.5?c*(l+1):c+l-c*l,r=c*2-o,s.length>3&&(s[3]*=1),s[0]=ds(u+1/3,r,o),s[1]=ds(u,r,o),s[2]=ds(u-1/3,r,o);else if(~t.indexOf("="))return s=t.match(cc),i&&s.length<4&&(s[3]=1),s}else s=t.match(Ia)||yn.transparent;s=s.map(Number)}return e&&!m&&(r=s[0]/z,o=s[1]/z,a=s[2]/z,f=Math.max(r,o,a),h=Math.min(r,o,a),c=(f+h)/2,f===h?u=l=0:(d=f-h,l=c>.5?d/(2-f-h):d/(f+h),u=f===r?(o-a)/d+(o<a?6:0):f===o?(a-r)/d+2:(r-o)/d+4,u*=60),s[0]=~~(u+.5),s[1]=~~(l*100+.5),s[2]=~~(c*100+.5)),i&&s.length<4&&(s[3]=1),s},Lc=function(t){var e=[],i=[],s=-1;return t.split(he).forEach(function(r){var o=r.match(Ge)||[];e.push.apply(e,o),i.push(s+=o.length+1)}),e.c=i,e},Wa=function(t,e,i){var s="",r=(t+s).match(he),o=e?"hsla(":"rgba(",a=0,u,l,c,f;if(!r)return t;if(r=r.map(function(h){return(h=kc(h,e,1))&&o+(e?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),i&&(c=Lc(t),u=i.c,u.join(s)!==c.c.join(s)))for(l=t.replace(he,"1").split(Ge),f=l.length-1;a<f;a++)s+=l[a]+(~u.indexOf(a)?r.shift()||o+"0,0,0,0)":(c.length?c:r.length?r:i).shift());if(!l)for(l=t.split(he),f=l.length-1;a<f;a++)s+=l[a]+r[a];return s+l[f]},he=function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in yn)n+="|"+t+"\\b";return new RegExp(n+")","gi")}(),h0=/hsl[a]?\(/,Oc=function(t){var e=t.join(" "),i;if(he.lastIndex=0,he.test(e))return i=h0.test(e),t[1]=Wa(t[1],i),t[0]=Wa(t[0],i,Lc(t[1])),!0},Nn,bt=function(){var n=Date.now,t=500,e=33,i=n(),s=i,r=1e3/240,o=r,a=[],u,l,c,f,h,d,m=function p(g){var y=n()-s,_=g===!0,v,x,T,P;if((y>t||y<0)&&(i+=y-e),s+=y,T=s-i,v=T-o,(v>0||_)&&(P=++f.frame,h=T-f.time*1e3,f.time=T=T/1e3,o+=v+(v>=r?4:r-v),x=1),_||(u=l(p)),x)for(d=0;d<a.length;d++)a[d](T,h,P,g)};return f={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){hc&&(!Xs&&Yr()&&(Ut=Xs=window,Kr=Ut.document||{},Ct.gsap=Tt,(Ut.gsapVersions||(Ut.gsapVersions=[])).push(Tt.version),dc(Ci||Ut.GreenSockGlobals||!Ut.gsap&&Ut||{}),Vc.forEach(Ec)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(g){return setTimeout(g,o-f.time*1e3+1|0)},Nn=1,m(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),Nn=0,l=In},lagSmoothing:function(g,y){t=g||1/0,e=Math.min(y||33,t)},fps:function(g){r=1e3/(g||240),o=f.time*1e3+r},add:function(g,y,_){var v=y?function(x,T,P,S){g(x,T,P,S),f.remove(v)}:g;return f.remove(g),a[_?"unshift":"push"](v),on(),v},remove:function(g,y){~(y=a.indexOf(g))&&a.splice(y,1)&&d>=y&&d--},_listeners:a},f}(),on=function(){return!Nn&&bt.wake()},I={},d0=/^[\d.\-M][\d.\-,\s]/,p0=/["']/g,m0=function(t){for(var e={},i=t.substr(1,t.length-3).split(":"),s=i[0],r=1,o=i.length,a,u,l;r<o;r++)u=i[r],a=r!==o-1?u.lastIndexOf(","):u.length,l=u.substr(0,a),e[s]=isNaN(l)?l.replace(p0,"").trim():+l,s=u.substr(a+1).trim();return e},g0=function(t){var e=t.indexOf("(")+1,i=t.indexOf(")"),s=t.indexOf("(",e);return t.substring(e,~s&&s<i?t.indexOf(")",i+1):i)},y0=function(t){var e=(t+"").split("("),i=I[e[0]];return i&&e.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[m0(e[1])]:g0(t).split(",").map(_c)):I._CE&&d0.test(t)?I._CE("",t):i},_0=function(t){return function(e){return 1-t(1-e)}},ke=function(t,e){return t&&(q(t)?t:I[t]||y0(t))||e},Ie=function(t,e,i,s){i===void 0&&(i=function(u){return 1-e(1-u)}),s===void 0&&(s=function(u){return u<.5?e(u*2)/2:1-e((1-u)*2)/2});var r={easeIn:e,easeOut:i,easeInOut:s},o;return _t(t,function(a){I[a]=Ct[a]=r,I[o=a.toLowerCase()]=i;for(var u in r)I[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=I[a+"."+u]=r[u]}),r},Fc=function(t){return function(e){return e<.5?(1-t(1-e*2))/2:.5+t((e-.5)*2)/2}},ps=function n(t,e,i){var s=e>=1?e:1,r=(i||(t?.3:.45))/(e<1?e:1),o=r/Ks*(Math.asin(1/s)||0),a=function(c){return c===1?1:s*Math.pow(2,-10*c)*Ug((c-o)*r)+1},u=t==="out"?a:t==="in"?function(l){return 1-a(1-l)}:Fc(a);return r=Ks/r,u.config=function(l,c){return n(t,l,c)},u},ms=function n(t,e){e===void 0&&(e=1.70158);var i=function(o){return o?--o*o*((e+1)*o+e)+1:0},s=t==="out"?i:t==="in"?function(r){return 1-i(1-r)}:Fc(i);return s.config=function(r){return n(t,r)},s};_t("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,t){var e=t<5?t+1:t;Ie(n+",Power"+(e-1),t?function(i){return Math.pow(i,e)}:function(i){return i},function(i){return 1-Math.pow(1-i,e)},function(i){return i<.5?Math.pow(i*2,e)/2:1-Math.pow((1-i)*2,e)/2})});I.Linear.easeNone=I.none=I.Linear.easeIn;Ie("Elastic",ps("in"),ps("out"),ps());(function(n,t){var e=1/t,i=2*e,s=2.5*e,r=function(a){return a<e?n*a*a:a<i?n*Math.pow(a-1.5/t,2)+.75:a<s?n*(a-=2.25/t)*a+.9375:n*Math.pow(a-2.625/t,2)+.984375};Ie("Bounce",function(o){return 1-r(1-o)},r)})(7.5625,2.75);Ie("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)});Ie("Circ",function(n){return-(uc(1-n*n)-1)});Ie("Sine",function(n){return n===1?1:-zg(n*Ng)+1});Ie("Back",ms("in"),ms("out"),ms());I.SteppedEase=I.steps=Ct.SteppedEase={config:function(t,e){t===void 0&&(t=1);var i=1/t,s=t+(e?0:1),r=e?1:0,o=1-U;return function(a){return((s*Hn(0,o,a)|0)+r)*i}}};On.ease=I["quad.out"];_t("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return qr+=n+","+n+"Params,"});var Ic=function(t,e){this.id=jg++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:gc,this.set=e?e.getSetter:no},jn=function(){function n(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,rn(this,+e.duration,1,1),this.data=e.data,G&&(this._ctx=G,G.data.push(this)),Nn||bt.wake()}var t=n.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,rn(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,s){if(on(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ki(this,i),!r._dp||r.parent||Tc(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&$t(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===U||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),yc(this,i,s)),this},t.time=function(i,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+ja(this))%(this._dur+this._rDelay)||(i?this._dur:0),s):this._time},t.totalProgress=function(i,s){return arguments.length?this.totalTime(this.totalDuration()*i,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+ja(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,s){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*r,s):this._repeat?sn(this._tTime,r)+1:1},t.timeScale=function(i,s){if(!arguments.length)return this._rts===-U?0:this._rts;if(this._rts===i)return this;var r=this.parent&&this._ts?Ri(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-U?0:this._rts,this.totalTime(Hn(-Math.abs(this._delay),this.totalDuration(),r),s!==!1),Yi(this),Qg(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(on(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==U&&(this._tTime-=U)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=Y(i);var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&$t(s,this,this._start-this._delay),this}return this._start},t.endTime=function(i){return this._start+(yt(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var s=this.parent||this._dp;return s?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ri(s.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=Xg);var s=at;return at=i,Qr(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),at=s,this},t.globalTime=function(i){for(var s=this,r=arguments.length?i:s.rawTime();s;)r=s._start+r/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(i):r},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,za(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var s=this._time;return this._rDelay=i,za(this),s?this.time(s):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,s){return this.totalTime(Dt(this,i),yt(s))},t.restart=function(i,s){return this.play().totalTime(i?-this._delay:0,yt(s)),this._dur||(this._zTime=-U),this},t.play=function(i,s){return i!=null&&this.seek(i,s),this.reversed(!1).paused(!1)},t.reverse=function(i,s){return i!=null&&this.seek(i||this.totalDuration(),s),this.reversed(!0).paused(!1)},t.pause=function(i,s){return i!=null&&this.seek(i,s),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-U:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-U,this},t.isActive=function(){var i=this.parent||this._dp,s=this._start,r;return!!(!i||this._ts&&this._initted&&i.isActive()&&(r=i.rawTime(!0))>=s&&r<this.endTime(!0)-U)},t.eventCallback=function(i,s,r){var o=this.vars;return arguments.length>1?(s?(o[i]=s,r&&(o[i+"Params"]=r),i==="onUpdate"&&(this._onUpdate=s)):delete o[i],this):o[i]},t.then=function(i){var s=this,r=s._prom;return new Promise(function(o){var a=q(i)?i:vc,u=function(){var c=s.then;s.then=null,r&&r(),q(a)&&(a=a(s))&&(a.then||a===s)&&(s.then=c),o(a),s.then=c};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?u():s._prom=u})},t.kill=function(){gn(this)},n}();Mt(jn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-U,_prom:0,_ps:!1,_rts:1});var mt=function(n){ac(t,n);function t(i,s){var r;return i===void 0&&(i={}),r=n.call(this,i)||this,r.labels={},r.smoothChildTiming=!!i.smoothChildTiming,r.autoRemoveChildren=!!i.autoRemoveChildren,r._sort=yt(i.sortChildren),K&&$t(i.parent||K,qt(r),s),i.reversed&&r.reverse(),i.paused&&r.paused(!0),i.scrollTrigger&&wc(qt(r),i.scrollTrigger),r}var e=t.prototype;return e.to=function(s,r,o){return An(0,arguments,this),this},e.from=function(s,r,o){return An(1,arguments,this),this},e.fromTo=function(s,r,o,a){return An(2,arguments,this),this},e.set=function(s,r,o){return r.duration=0,r.parent=this,Pn(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new tt(s,r,Dt(this,o),1),this},e.call=function(s,r,o){return $t(this,tt.delayedCall(0,s,r),o)},e.staggerTo=function(s,r,o,a,u,l,c){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=c,o.parent=this,new tt(s,o,Dt(this,u)),this},e.staggerFrom=function(s,r,o,a,u,l,c){return o.runBackwards=1,Pn(o).immediateRender=yt(o.immediateRender),this.staggerTo(s,r,o,a,u,l,c)},e.staggerFromTo=function(s,r,o,a,u,l,c,f){return a.startAt=o,Pn(a).immediateRender=yt(a.immediateRender),this.staggerTo(s,r,a,u,l,c,f)},e.render=function(s,r,o){var a=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=s<=0?0:Y(s),f=this._zTime<0!=s<0&&(this._initted||!l),h,d,m,p,g,y,_,v,x,T,P,S;if(this!==K&&c>u&&s>=0&&(c=u),c!==this._tTime||o||f){if(a!==this._time&&l&&(c+=this._time-a,s+=this._time-a),h=c,x=this._start,v=this._ts,y=!v,f&&(l||(a=this._zTime),(s||!r)&&(this._zTime=s)),this._repeat){if(P=this._yoyo,g=l+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(g*100+s,r,o);if(h=Y(c%g),c===u?(p=this._repeat,h=l):(T=Y(c/g),p=~~T,p&&p===T&&(h=l,p--),h>l&&(h=l)),T=sn(this._tTime,g),!a&&this._tTime&&T!==p&&this._tTime-T*g-this._dur<=0&&(T=p),P&&p&1&&(h=l-h,S=1),p!==T&&!this._lock){var b=P&&T&1,w=b===(P&&p&1);if(p<T&&(b=!b),a=b?0:c%l?l:c,this._lock=1,this.render(a||(S?0:Y(p*g)),r,!l)._lock=0,this._tTime=c,!r&&this.parent&&St(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1,T=p),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,w&&(this._lock=2,a=b?l:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!y)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=n0(this,Y(a),Y(h)),_&&(c-=h-(h=_._start))),this._tTime=c,this._time=h,this._act=!!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&c&&l&&!r&&!T&&(St(this,"onStart"),this._tTime!==c))return this;if(h>=a&&s>=0)for(d=this._first;d;){if(m=d._next,(d._act||h>=d._start)&&d._ts&&_!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,r,o),h!==this._time||!this._ts&&!y){_=0,m&&(c+=this._zTime=-U);break}}d=m}else{d=this._last;for(var A=s<0?s:h;d;){if(m=d._prev,(d._act||A<=d._end)&&d._ts&&_!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(A-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(A-d._start)*d._ts,r,o||at&&Qr(d)),h!==this._time||!this._ts&&!y){_=0,m&&(c+=this._zTime=A?-U:U);break}}d=m}}if(_&&!r&&(this.pause(),_.render(h>=a?0:-U)._zTime=h>=a?1:-1,this._ts))return this._start=x,Yi(this),this.render(s,r,o);this._onUpdate&&!r&&St(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&a)&&(x===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((s||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&me(this,1),!r&&!(s<0&&!a)&&(c||a||!u)&&(St(this,c===u&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<u&&this.timeScale()>0)&&this._prom())))}return this},e.add=function(s,r){var o=this;if(ne(r)||(r=Dt(this,r,s)),!(s instanceof jn)){if(ct(s))return s.forEach(function(a){return o.add(a,r)}),this;if(st(s))return this.addLabel(s,r);if(q(s))s=tt.delayedCall(0,s);else return this}return this!==s?$t(this,s,r):this},e.getChildren=function(s,r,o,a){s===void 0&&(s=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Et);for(var u=[],l=this._first;l;)l._start>=a&&(l instanceof tt?r&&u.push(l):(o&&u.push(l),s&&u.push.apply(u,l.getChildren(!0,r,o)))),l=l._next;return u},e.getById=function(s){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===s)return r[o]},e.remove=function(s){return st(s)?this.removeLabel(s):q(s)?this.killTweensOf(s):(s.parent===this&&Gi(this,s),s===this._recent&&(this._recent=this._last),Ee(this))},e.totalTime=function(s,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Y(bt.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),n.prototype.totalTime.call(this,s,r),this._forcing=0,this):this._tTime},e.addLabel=function(s,r){return this.labels[s]=Dt(this,r),this},e.removeLabel=function(s){return delete this.labels[s],this},e.addPause=function(s,r,o){var a=tt.delayedCall(0,r||In,o);return a.data="isPause",this._hasPause=1,$t(this,a,Dt(this,s))},e.removePause=function(s){var r=this._first;for(s=Dt(this,s);r;)r._start===s&&r.data==="isPause"&&me(r),r=r._next},e.killTweensOf=function(s,r,o){for(var a=this.getTweensOf(s,o),u=a.length;u--;)ue!==a[u]&&a[u].kill(s,r);return this},e.getTweensOf=function(s,r){for(var o=[],a=kt(s),u=this._first,l=ne(r),c;u;)u instanceof tt?Hg(u._targets,a)&&(l?(!ue||u._initted&&u._ts)&&u.globalTime(0)<=r&&u.globalTime(u.totalDuration())>r:!r||u.isActive())&&o.push(u):(c=u.getTweensOf(a,r)).length&&o.push.apply(o,c),u=u._next;return o},e.tweenTo=function(s,r){r=r||{};var o=this,a=Dt(o,s),u=r,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,d,m=tt.to(o,Mt({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||U,onStart:function(){if(o.pause(),!d){var g=r.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&rn(m,g,0,1).render(m._time,!0,!0),d=1}c&&c.apply(m,f||[])}},r));return h?m.render(0):m},e.tweenFromTo=function(s,r,o){return this.tweenTo(r,Mt({startAt:{time:Dt(this,s)}},o))},e.recent=function(){return this._recent},e.nextLabel=function(s){return s===void 0&&(s=this._time),Ua(this,Dt(this,s))},e.previousLabel=function(s){return s===void 0&&(s=this._time),Ua(this,Dt(this,s),1)},e.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+U)},e.shiftChildren=function(s,r,o){o===void 0&&(o=0);var a=this._first,u=this.labels,l;for(s=Y(s);a;)a._start>=o&&(a._start+=s,a._end+=s),a=a._next;if(r)for(l in u)u[l]>=o&&(u[l]+=s);return Ee(this)},e.invalidate=function(s){var r=this._first;for(this._lock=0;r;)r.invalidate(s),r=r._next;return n.prototype.invalidate.call(this,s)},e.clear=function(s){s===void 0&&(s=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Ee(this)},e.totalDuration=function(s){var r=0,o=this,a=o._last,u=Et,l,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(f=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>u&&o._sort&&a._ts&&!o._lock?(o._lock=1,$t(o,a,c-a._delay,1)._lock=0):u=c,c<0&&a._ts&&(r-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=Y(c/o._ts),o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),u=0),a._end>r&&a._ts&&(r=a._end),a=l;rn(o,o===K&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(s){if(K._ts&&(yc(K,Ri(s,K)),mc=bt.frame),bt.frame>=Ba){Ba+=At.autoSleep||120;var r=K._first;if((!r||!r._ts)&&At.autoSleep&&bt._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||bt.sleep()}}},t}(jn);Mt(mt.prototype,{_lock:0,_hasPause:0,_forcing:0});var v0=function(t,e,i,s,r,o,a){var u=new vt(this._pt,t,e,0,1,Wc,null,r),l=0,c=0,f,h,d,m,p,g,y,_;for(u.b=i,u.e=s,i+="",s+="",(y=~s.indexOf("random("))&&(s=Bn(s)),o&&(_=[i,s],o(_,t,e),i=_[0],s=_[1]),h=i.match(fs)||[];f=fs.exec(s);)m=f[0],p=s.substring(l,f.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),m!==h[c++]&&(g=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:p||c===1?p:",",s:g,c:m.charAt(1)==="="?Xe(g,m)-g:parseFloat(m)-g,m:d&&d<4?Math.round:0},l=fs.lastIndex);return u.c=l<s.length?s.substring(l,s.length):"",u.fp=a,(fc.test(s)||y)&&(u.e=0),this._pt=u,u},Jr=function(t,e,i,s,r,o,a,u,l,c){q(s)&&(s=s(r||0,t,o));var f=t[e],h=i!=="get"?i:q(f)?l?t[e.indexOf("set")||!q(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,d=q(f)?l?S0:zc:eo,m;if(st(s)&&(~s.indexOf("random(")&&(s=Bn(s)),s.charAt(1)==="="&&(m=Xe(h,s)+(lt(h)||0),(m||m===0)&&(s=m))),!c||h!==s||er)return!isNaN(h*s)&&s!==""?(m=new vt(this._pt,t,e,+h||0,s-(h||0),typeof f=="boolean"?A0:Uc,0,d),l&&(m.fp=l),a&&m.modifier(a,this,t),this._pt=m):(!f&&!(e in t)&&Xr(e,s),v0.call(this,t,e,h,s,d,u||At.stringFilter,l))},x0=function(t,e,i,s,r){if(q(t)&&(t=Cn(t,r,e,i,s)),!Xt(t)||t.style&&t.nodeType||ct(t)||lc(t))return st(t)?Cn(t,r,e,i,s):t;var o={},a;for(a in t)o[a]=Cn(t[a],r,e,i,s);return o},Bc=function(t,e,i,s,r,o){var a,u,l,c;if(wt[t]&&(a=new wt[t]).init(r,a.rawVars?e[t]:x0(e[t],s,r,o,i),i,s,o)!==!1&&(i._pt=u=new vt(i._pt,r,t,0,1,a.render,a,0,a.priority),i!==Ye))for(l=i._ptLookup[i._targets.indexOf(r)],c=a._props.length;c--;)l[a._props[c]]=u;return a},ue,er,to=function n(t,e,i){var s=t.vars,r=s.ease,o=s.startAt,a=s.immediateRender,u=s.lazy,l=s.onUpdate,c=s.runBackwards,f=s.yoyoEase,h=s.keyframes,d=s.autoRevert,m=t._dur,p=t._startAt,g=t._targets,y=t.parent,_=y&&y.data==="nested"?y.vars.targets:g,v=t._overwrite==="auto"&&!$r,x=t.timeline,T=s.easeReverse||f,P,S,b,w,A,M,R,V,k,O,L,F,E;if(x&&(!h||!r)&&(r="none"),t._ease=ke(r,On.ease),t._rEase=T&&(ke(T)||t._ease),t._from=!x&&!!s.runBackwards,t._from&&(t.ratio=1),!x||h&&!s.stagger){if(V=g[0]?Ve(g[0]).harness:0,F=V&&s[V.prop],P=Di(s,Hr),p&&(p._zTime<0&&p.progress(1),e<0&&c&&a&&!d?p.render(-1,!0):p.revert(c&&m?di:Kg),p._lazy=0),o){if(me(t._startAt=tt.set(g,Mt({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!p&&yt(u),startAt:null,delay:0,onUpdate:l&&function(){return St(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,e<0&&(at||!a&&!d)&&t._startAt.revert(di),a&&m&&e<=0&&i<=0){e&&(t._zTime=e);return}}else if(c&&m&&!p){if(e&&(a=!1),b=Mt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&yt(u),immediateRender:a,stagger:0,parent:y},P),F&&(b[V.prop]=F),me(t._startAt=tt.set(g,b)),t._startAt._dp=0,t._startAt._sat=t,e<0&&(at?t._startAt.revert(di):t._startAt.render(-1,!0)),t._zTime=e,!a)n(t._startAt,U,U);else if(!e)return}for(t._pt=t._ptCache=0,u=m&&yt(u)||u&&!m,S=0;S<g.length;S++){if(A=g[S],R=A._gsap||Zr(g)[S]._gsap,t._ptLookup[S]=O={},Hs[R.id]&&fe.length&&Mi(),L=_===g?S:_.indexOf(A),V&&(k=new V).init(A,F||P,t,L,_)!==!1&&(t._pt=w=new vt(t._pt,A,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(W){O[W]=w}),k.priority&&(M=1)),!V||F)for(b in P)wt[b]&&(k=Bc(b,P,t,L,A,_))?k.priority&&(M=1):O[b]=w=Jr.call(t,A,b,"get",P[b],L,_,0,s.stringFilter);t._op&&t._op[S]&&t.kill(A,t._op[S]),v&&t._pt&&(ue=t,K.killTweensOf(A,O,t.globalTime(e)),E=!t.parent,ue=0),t._pt&&u&&(Hs[R.id]=1)}M&&$c(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!E,h&&e<=0&&x.render(Et,!0,!0)},T0=function(t,e,i,s,r,o,a,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[e],c,f,h,d;if(!l)for(l=t._ptCache[e]=[],h=t._ptLookup,d=t._targets.length;d--;){if(c=h[d][e],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==e&&c.fp!==e;)c=c._next;if(!c)return er=1,t.vars[e]="+=0",to(t,a),er=0,u?Fn(e+" not eligible for reset. Try splitting into individual properties"):1;l.push(c)}for(d=l.length;d--;)f=l[d],c=f._pt||f,c.s=(s||s===0)&&!r?s:c.s+(s||0)+o*c.c,c.c=i-c.s,f.e&&(f.e=Z(i)+lt(f.e)),f.b&&(f.b=c.s+lt(f.b))},w0=function(t,e){var i=t[0]?Ve(t[0]).harness:0,s=i&&i.aliases,r,o,a,u;if(!s)return e;r=nn({},e);for(o in s)if(o in r)for(u=s[o].split(","),a=u.length;a--;)r[u[a]]=r[o];return r},b0=function(t,e,i,s){var r=e.ease||s||"power1.inOut",o,a;if(ct(e))a=i[t]||(i[t]=[]),e.forEach(function(u,l){return a.push({t:l/(e.length-1)*100,v:u,e:r})});else for(o in e)a=i[o]||(i[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:e[o],e:r})},Cn=function(t,e,i,s,r){return q(t)?t.call(e,i,s,r):st(t)&&~t.indexOf("random(")?Bn(t):t},Nc=qr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",jc={};_t(Nc+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return jc[n]=1});var tt=function(n){ac(t,n);function t(i,s,r,o){var a;typeof s=="number"&&(r.duration=s,s=r,r=null),a=n.call(this,o?s:Pn(s))||this;var u=a.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,d=u.overwrite,m=u.keyframes,p=u.defaults,g=u.scrollTrigger,y=s.parent||K,_=(ct(i)||lc(i)?ne(i[0]):"length"in s)?[i]:kt(i),v,x,T,P,S,b,w,A;if(a._targets=_.length?Zr(_):Fn("GSAP target "+i+" not found. https://gsap.com",!At.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,m||h||ni(l)||ni(c)){s=a.vars;var M=s.easeReverse||s.yoyoEase;if(v=a.timeline=new mt({data:"nested",defaults:p||{},targets:y&&y.data==="nested"?y.vars.targets:_}),v.kill(),v.parent=v._dp=qt(a),v._start=0,h||ni(l)||ni(c)){if(P=_.length,w=h&&Ac(h),Xt(h))for(S in h)~Nc.indexOf(S)&&(A||(A={}),A[S]=h[S]);for(x=0;x<P;x++)T=Di(s,jc),T.stagger=0,M&&(T.easeReverse=M),A&&nn(T,A),b=_[x],T.duration=+Cn(l,qt(a),x,b,_),T.delay=(+Cn(c,qt(a),x,b,_)||0)-a._delay,!h&&P===1&&T.delay&&(a._delay=c=T.delay,a._start+=c,T.delay=0),v.to(b,T,w?w(x,b,_):0),v._ease=I.none;v.duration()?l=c=0:a.timeline=0}else if(m){Pn(Mt(v.vars.defaults,{ease:"none"})),v._ease=ke(m.ease||s.ease||"none");var R=0,V,k,O;if(ct(m))m.forEach(function(L){return v.to(_,L,">")}),v.duration();else{T={};for(S in m)S==="ease"||S==="easeEach"||b0(S,m[S],T,m.easeEach);for(S in T)for(V=T[S].sort(function(L,F){return L.t-F.t}),R=0,x=0;x<V.length;x++)k=V[x],O={ease:k.e,duration:(k.t-(x?V[x-1].t:0))/100*l},O[S]=k.v,v.to(_,O,R),R+=O.duration;v.duration()<l&&v.to({},{duration:l-v.duration()})}}l||a.duration(l=v.duration())}else a.timeline=0;return d===!0&&!$r&&(ue=qt(a),K.killTweensOf(_),ue=0),$t(y,qt(a),r),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(f||!l&&!m&&a._start===Y(y._time)&&yt(f)&&Jg(qt(a))&&y.data!=="nested")&&(a._tTime=-U,a.render(Math.max(0,-c)||0)),g&&wc(qt(a),g),a}var e=t.prototype;return e.render=function(s,r,o){var a=this._time,u=this._tDur,l=this._dur,c=s<0,f=s>u-U&&!c?u:s<U?0:s,h,d,m,p,g,y,_,v;if(!l)e0(this,s,r,o);else if(f!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,v=this.timeline,this._repeat){if(p=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(p*100+s,r,o);if(h=Y(f%p),f===u?(m=this._repeat,h=l):(g=Y(f/p),m=~~g,m&&m===g?(h=l,m--):h>l&&(h=l)),y=this._yoyo&&m&1,y&&(h=l-h),g=sn(this._tTime,p),h===a&&!o&&this._initted&&m===g)return this._tTime=f,this;m!==g&&this.vars.repeatRefresh&&!y&&!this._lock&&h!==p&&this._initted&&(this._lock=o=1,this.render(Y(p*m),!0).invalidate()._lock=0)}if(!this._initted){if(bc(this,c?s:h,o,r,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(s,r,o)}if(this._rEase){var x=h<a;if(x!==this._inv){var T=x?a:l-a;this._inv=x,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=T?(x?-1:1)/T:0,this._invScale=x?-this.ratio:1-this.ratio,this._invEase=x?this._rEase:this._ease}this.ratio=_=this._invRatio+this._invScale*this._invEase((h-this._invTime)*this._invRecip)}else this.ratio=_=this._ease(h/l);if(this._from&&(this.ratio=_=1-_),this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&f&&!r&&!g&&(St(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(_,d.d),d=d._next;v&&v.render(s<0?s:v._dur*v._ease(h/this._dur),r,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!r&&(c&&qs(this,s,r,o),St(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!r&&this.parent&&St(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&qs(this,s,!0,!0),(s||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&me(this,1),!r&&!(c&&!a)&&(f||a||y)&&(St(this,f===u?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom()))}return this},e.targets=function(){return this._targets},e.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),n.prototype.invalidate.call(this,s)},e.resetTo=function(s,r,o,a,u){Nn||bt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||to(this,l),c=this._ease(l/this._dur),T0(this,s,r,o,a,c,l,u)?this.resetTo(s,r,o,a,1):(Ki(this,0),this.parent||xc(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function(s,r){if(r===void 0&&(r="all"),!s&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?gn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!at),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,r,ue&&ue.vars.overwrite!==!0)._first||gn(this),this.parent&&o!==this.timeline.totalDuration()&&rn(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,u=s?kt(s):a,l=this._ptLookup,c=this._pt,f,h,d,m,p,g,y;if((!r||r==="all")&&Zg(a,u))return r==="all"&&(this._pt=0),gn(this);for(f=this._op=this._op||[],r!=="all"&&(st(r)&&(p={},_t(r,function(_){return p[_]=1}),r=p),r=w0(a,r)),y=a.length;y--;)if(~u.indexOf(a[y])){h=l[y],r==="all"?(f[y]=r,m=h,d={}):(d=f[y]=f[y]||{},m=r);for(p in m)g=h&&h[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Gi(this,g,"_pt"),delete h[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&c&&gn(this),this},t.to=function(s,r){return new t(s,r,arguments[2])},t.from=function(s,r){return An(1,arguments)},t.delayedCall=function(s,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(s,r,o){return An(2,arguments)},t.set=function(s,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(s,r)},t.killTweensOf=function(s,r,o){return K.killTweensOf(s,r,o)},t}(jn);Mt(tt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});_t("staggerTo,staggerFrom,staggerFromTo",function(n){tt[n]=function(){var t=new mt,e=Qs.call(arguments,0);return e.splice(n==="staggerFromTo"?5:4,0,0),t[n].apply(t,e)}});var eo=function(t,e,i){return t[e]=i},zc=function(t,e,i){return t[e](i)},S0=function(t,e,i,s){return t[e](s.fp,i)},P0=function(t,e,i){return t.setAttribute(e,i)},no=function(t,e){return q(t[e])?zc:Gr(t[e])&&t.setAttribute?P0:eo},Uc=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},A0=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Wc=function(t,e){var i=e._pt,s="";if(!t&&e.b)s=e.b;else if(t===1&&e.e)s=e.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+s,i=i._next;s+=e.c}e.set(e.t,e.p,s,e)},io=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},C0=function(t,e,i,s){for(var r=this._pt,o;r;)o=r._next,r.p===s&&r.modifier(t,e,i),r=o},M0=function(t){for(var e=this._pt,i,s;e;)s=e._next,e.p===t&&!e.op||e.op===t?Gi(this,e,"_pt"):e.dep||(i=1),e=s;return!i},D0=function(t,e,i,s){s.mSet(t,e,s.m.call(s.tween,i,s.mt),s)},$c=function(t){for(var e=t._pt,i,s,r,o;e;){for(i=e._next,s=r;s&&s.pr>e.pr;)s=s._next;(e._prev=s?s._prev:o)?e._prev._next=e:r=e,(e._next=s)?s._prev=e:o=e,e=i}t._pt=r},vt=function(){function n(e,i,s,r,o,a,u,l,c){this.t=i,this.s=r,this.c=o,this.p=s,this.r=a||Uc,this.d=u||this,this.set=l||eo,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=n.prototype;return t.modifier=function(i,s,r){this.mSet=this.mSet||this.set,this.set=D0,this.m=i,this.mt=r,this.tween=s},n}();_t(qr+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(n){return Hr[n]=1});Ct.TweenMax=Ct.TweenLite=tt;Ct.TimelineLite=Ct.TimelineMax=mt;K=new mt({sortChildren:!1,defaults:On,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});At.stringFilter=Oc;var Le=[],mi={},R0=[],$a=0,V0=0,gs=function(t){return(mi[t]||R0).map(function(e){return e()})},nr=function(){var t=Date.now(),e=[];t-$a>2&&(gs("matchMediaInit"),Le.forEach(function(i){var s=i.queries,r=i.conditions,o,a,u,l;for(a in s)o=Ut.matchMedia(s[a]).matches,o&&(u=1),o!==r[a]&&(r[a]=o,l=1);l&&(i.revert(),u&&e.push(i))}),gs("matchMediaRevert"),e.forEach(function(i){return i.onMatch(i,function(s){return i.add(null,s)})}),$a=t,gs("matchMedia"))},Gc=function(){function n(e,i){this.selector=i&&Js(i),this.data=[],this._r=[],this.isReverted=!1,this.id=V0++,e&&this.add(e)}var t=n.prototype;return t.add=function(i,s,r){q(i)&&(r=s,s=i,i=q);var o=this,a=function(){var l=G,c=o.selector,f;return l&&l!==o&&l.data.push(o),r&&(o.selector=Js(r)),G=o,f=s.apply(o,arguments),q(f)&&o._r.push(f),G=l,o.selector=c,o.isReverted=!1,f};return o.last=a,i===q?a(o,function(u){return o.add(null,u)}):i?o[i]=a:a},t.ignore=function(i){var s=G;G=null,i(this),G=s},t.getTweens=function(){var i=[];return this.data.forEach(function(s){return s instanceof n?i.push.apply(i,s.getTweens()):s instanceof tt&&!(s.parent&&s.parent.data==="nested")&&i.push(s)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,s){var r=this;if(i?function(){for(var a=r.getTweens(),u=r.data.length,l;u--;)l=r.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(i)}),u=r.data.length;u--;)l=r.data[u],l instanceof mt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof tt)&&l.revert&&l.revert(i);r._r.forEach(function(c){return c(i,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var o=Le.length;o--;)Le[o].id===this.id&&Le.splice(o,1)},t.revert=function(i){this.kill(i||{})},n}(),E0=function(){function n(e){this.contexts=[],this.scope=e,G&&G.data.push(this)}var t=n.prototype;return t.add=function(i,s,r){Xt(i)||(i={matches:i});var o=new Gc(0,r||this.scope),a=o.conditions={},u,l,c;G&&!o.selector&&(o.selector=G.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=i;for(l in i)l==="all"?c=1:(u=Ut.matchMedia(i[l]),u&&(Le.indexOf(o)<0&&Le.push(o),(a[l]=u.matches)&&(c=1),u.addListener?u.addListener(nr):u.addEventListener("change",nr)));return c&&s(o,function(f){return o.add(null,f)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(s){return s.kill(i,!0)})},n}(),Vi={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(function(s){return Ec(s)})},timeline:function(t){return new mt(t)},getTweensOf:function(t,e){return K.getTweensOf(t,e)},getProperty:function(t,e,i,s){st(t)&&(t=kt(t)[0]);var r=Ve(t||{}).get,o=i?vc:_c;return i==="native"&&(i=""),t&&(e?o((wt[e]&&wt[e].get||r)(t,e,i,s)):function(a,u,l){return o((wt[a]&&wt[a].get||r)(t,a,u,l))})},quickSetter:function(t,e,i){if(t=kt(t),t.length>1){var s=t.map(function(c){return Tt.quickSetter(c,e,i)}),r=s.length;return function(c){for(var f=r;f--;)s[f](c)}}t=t[0]||{};var o=wt[e],a=Ve(t),u=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(c){var f=new o;Ye._pt=0,f.init(t,i?c+i:c,Ye,0,[t]),f.render(1,f),Ye._pt&&io(1,Ye)}:a.set(t,u);return o?l:function(c){return l(t,u,i?c+i:c,a,1)}},quickTo:function(t,e,i){var s,r=Tt.to(t,Mt((s={},s[e]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),o=function(u,l,c){return r.resetTo(e,u,l,c)};return o.tween=r,o},isTweening:function(t){return K.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ke(t.ease,On.ease)),Na(On,t||{})},config:function(t){return Na(At,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,s=t.plugins,r=t.defaults,o=t.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!wt[a]&&!Ct[a]&&Fn(e+" effect requires "+a+" plugin.")}),hs[e]=function(a,u,l){return i(kt(a),Mt(u||{},r),l)},o&&(mt.prototype[e]=function(a,u,l){return this.add(hs[e](a,Xt(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,e){I[t]=ke(e)},parseEase:function(t,e){return arguments.length?ke(t,e):I},getById:function(t){return K.getById(t)},exportRoot:function(t,e){t===void 0&&(t={});var i=new mt(t),s,r;for(i.smoothChildTiming=yt(t.smoothChildTiming),K.remove(i),i._dp=0,i._time=i._tTime=K._time,s=K._first;s;)r=s._next,(e||!(!s._dur&&s instanceof tt&&s.vars.onComplete===s._targets[0]))&&$t(i,s,s._start-s._delay),s=r;return $t(K,i,0),i},context:function(t,e){return t?new Gc(t,e):G},matchMedia:function(t){return new E0(t)},matchMediaRefresh:function(){return Le.forEach(function(t){var e=t.conditions,i,s;for(s in e)e[s]&&(e[s]=!1,i=1);i&&t.revert()})||nr()},addEventListener:function(t,e){var i=mi[t]||(mi[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=mi[t],s=i&&i.indexOf(e);s>=0&&i.splice(s,1)},utils:{wrap:l0,wrapYoyo:c0,distribute:Ac,random:Mc,snap:Cc,normalize:u0,getUnit:lt,clamp:s0,splitColor:kc,toArray:kt,selector:Js,mapRange:Rc,pipe:o0,unitize:a0,interpolate:f0,shuffle:Pc},install:dc,effects:hs,ticker:bt,updateRoot:mt.updateRoot,plugins:wt,globalTimeline:K,core:{PropTween:vt,globals:pc,Tween:tt,Timeline:mt,Animation:jn,getCache:Ve,_removeLinkedListItem:Gi,reverting:function(){return at},context:function(t){return t&&G&&(G.data.push(t),t._ctx=G),G},suppressOverwrites:function(t){return $r=t}}};_t("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return Vi[n]=tt[n]});bt.add(mt.updateRoot);Ye=Vi.to({},{duration:0});var k0=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},L0=function(t,e){var i=t._targets,s,r,o;for(s in e)for(r=i.length;r--;)o=t._ptLookup[r][s],o&&(o=o.d)&&(o._pt&&(o=k0(o,s)),o&&o.modifier&&o.modifier(e[s],t,i[r],s))},ys=function(t,e){return{name:t,headless:1,rawVars:1,init:function(s,r,o){o._onInit=function(a){var u,l;if(st(r)&&(u={},_t(r,function(c){return u[c]=1}),r=u),e){u={};for(l in r)u[l]=e(r[l]);r=u}L0(a,r)}}}},Tt=Vi.registerPlugin({name:"attr",init:function(t,e,i,s,r){var o,a,u;this.tween=i;for(o in e)u=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(u||0)+"",e[o],s,r,0,0,o),a.op=o,a.b=u,this._props.push(o)},render:function(t,e){for(var i=e._pt;i;)at?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},ys("roundProps",tr),ys("modifiers"),ys("snap",Cc))||Vi;tt.version=mt.version=Tt.version="3.15.0";hc=1;Yr()&&on();I.Power0;I.Power1;I.Power2;I.Power3;I.Power4;I.Linear;I.Quad;I.Cubic;I.Quart;I.Quint;I.Strong;I.Elastic;I.Back;I.SteppedEase;I.Bounce;I.Sine;I.Expo;I.Circ;/*!
 * CSSPlugin 3.15.0
 * https://gsap.com
 *
 * Copyright 2008-2026, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Ga,le,He,so,Me,Ya,ro,O0=function(){return typeof window<"u"},ie={},Pe=180/Math.PI,qe=Math.PI/180,Ne=Math.atan2,Ka=1e8,oo=/([A-Z])/g,F0=/(left|right|width|margin|padding|x)/i,I0=/[\s,\(]\S/,Gt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ir=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},B0=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},N0=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},j0=function(t,e){return e.set(e.t,e.p,t===1?e.e:t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},z0=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},Yc=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Kc=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},U0=function(t,e,i){return t.style[e]=i},W0=function(t,e,i){return t.style.setProperty(e,i)},$0=function(t,e,i){return t._gsap[e]=i},G0=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Y0=function(t,e,i,s,r){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(r,o)},K0=function(t,e,i,s,r){var o=t._gsap;o[e]=i,o.renderTransform(r,o)},X="transform",xt=X+"Origin",X0=function n(t,e){var i=this,s=this.target,r=s.style,o=s._gsap;if(t in ie&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Gt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=Zt(s,a)}):this.tfm[t]=o.x?o[t]:Zt(s,t),t===xt&&(this.tfm.zOrigin=o.zOrigin);else return Gt.transform.split(",").forEach(function(a){return n.call(i,a,e)});if(this.props.indexOf(X)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(xt,e,"")),t=X}(r||e)&&this.props.push(t,e,r[t])},Xc=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},H0=function(){var t=this.props,e=this.target,i=e.style,s=e._gsap,r,o;for(r=0;r<t.length;r+=3)t[r+1]?t[r+1]===2?e[t[r]](t[r+2]):e[t[r]]=t[r+2]:t[r+2]?i[t[r]]=t[r+2]:i.removeProperty(t[r].substr(0,2)==="--"?t[r]:t[r].replace(oo,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),r=ro(),(!r||!r.isStart)&&!i[X]&&(Xc(i),s.zOrigin&&i[xt]&&(i[xt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Hc=function(t,e){var i={target:t,props:[],revert:H0,save:X0};return t._gsap||Tt.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(s){return i.save(s)}),i},qc,sr=function(t,e){var i=le.createElementNS?le.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):le.createElement(t);return i&&i.style?i:le.createElement(t)},Pt=function n(t,e,i){var s=getComputedStyle(t);return s[e]||s.getPropertyValue(e.replace(oo,"-$1").toLowerCase())||s.getPropertyValue(e)||!i&&n(t,an(e)||e,1)||""},Xa="O,Moz,ms,Ms,Webkit".split(","),an=function(t,e,i){var s=e||Me,r=s.style,o=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Xa[o]+t in r););return o<0?null:(o===3?"ms":o>=0?Xa[o]:"")+t},rr=function(){O0()&&window.document&&(Ga=window,le=Ga.document,He=le.documentElement,Me=sr("div")||{style:{}},sr("div"),X=an(X),xt=X+"Origin",Me.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",qc=!!an("perspective"),ro=Tt.core.reverting,so=1)},Ha=function(t){var e=t.ownerSVGElement,i=sr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=t.cloneNode(!0),r;s.style.display="block",i.appendChild(s),He.appendChild(i);try{r=s.getBBox()}catch{}return i.removeChild(s),He.removeChild(i),r},qa=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Zc=function(t){var e,i;try{e=t.getBBox()}catch{e=Ha(t),i=1}return e&&(e.width||e.height)||i||(e=Ha(t)),e&&!e.width&&!e.x&&!e.y?{x:+qa(t,["x","cx","x1"])||0,y:+qa(t,["y","cy","y1"])||0,width:0,height:0}:e},Qc=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Zc(t))},ge=function(t,e){if(e){var i=t.style,s;e in ie&&e!==xt&&(e=X),i.removeProperty?(s=e.substr(0,2),(s==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),i.removeProperty(s==="--"?e:e.replace(oo,"-$1").toLowerCase())):i.removeAttribute(e)}},ce=function(t,e,i,s,r,o){var a=new vt(t._pt,e,i,0,1,o?Kc:Yc);return t._pt=a,a.b=s,a.e=r,t._props.push(i),a},Za={deg:1,rad:1,turn:1},q0={grid:1,flex:1},ye=function n(t,e,i,s){var r=parseFloat(i)||0,o=(i+"").trim().substr((r+"").length)||"px",a=Me.style,u=F0.test(e),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=s==="px",d=s==="%",m,p,g,y;if(s===o||!r||Za[s]||Za[o])return r;if(o!=="px"&&!h&&(r=n(t,e,i,"px")),y=t.getCTM&&Qc(t),(d||o==="%")&&(ie[e]||~e.indexOf("adius")))return m=y?t.getBBox()[u?"width":"height"]:t[c],Z(d?r/m*f:r/100*m);if(a[u?"width":"height"]=f+(h?o:s),p=s!=="rem"&&~e.indexOf("adius")||s==="em"&&t.appendChild&&!l?t:t.parentNode,y&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===le||!p.appendChild)&&(p=le.body),g=p._gsap,g&&d&&g.width&&u&&g.time===bt.time&&!g.uncache)return Z(r/g.width*f);if(d&&(e==="height"||e==="width")){var _=t.style[e];t.style[e]=f+s,m=t[c],_?t.style[e]=_:ge(t,e)}else(d||o==="%")&&!q0[Pt(p,"display")]&&(a.position=Pt(t,"position")),p===t&&(a.position="static"),p.appendChild(Me),m=Me[c],p.removeChild(Me),a.position="absolute";return u&&d&&(g=Ve(p),g.time=bt.time,g.width=p[c]),Z(h?m*r/f:m&&r?f/m*r:0)},Zt=function(t,e,i,s){var r;return so||rr(),e in Gt&&e!=="transform"&&(e=Gt[e],~e.indexOf(",")&&(e=e.split(",")[0])),ie[e]&&e!=="transform"?(r=Un(t,s),r=e!=="transformOrigin"?r[e]:r.svg?r.origin:ki(Pt(t,xt))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||r==="auto"||s||~(r+"").indexOf("calc("))&&(r=Ei[e]&&Ei[e](t,e,i)||Pt(t,e)||gc(t,e)||(e==="opacity"?1:0))),i&&!~(r+"").trim().indexOf(" ")?ye(t,e,r,i)+i:r},Z0=function(t,e,i,s){if(!i||i==="none"){var r=an(e,t,1),o=r&&Pt(t,r,1);o&&o!==i?(e=r,i=o):e==="borderColor"&&(i=Pt(t,"borderTopColor"))}var a=new vt(this._pt,t.style,e,0,1,Wc),u=0,l=0,c,f,h,d,m,p,g,y,_,v,x,T;if(a.b=i,a.e=s,i+="",s+="",s.substring(0,6)==="var(--"&&(s=Pt(t,s.substring(4,s.indexOf(")")))),s==="auto"&&(p=t.style[e],t.style[e]=s,s=Pt(t,e)||s,p?t.style[e]=p:ge(t,e)),c=[i,s],Oc(c),i=c[0],s=c[1],h=i.match(Ge)||[],T=s.match(Ge)||[],T.length){for(;f=Ge.exec(s);)g=f[0],_=s.substring(u,f.index),m?m=(m+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(m=1),g!==(p=h[l++]||"")&&(d=parseFloat(p)||0,x=p.substr((d+"").length),g.charAt(1)==="="&&(g=Xe(d,g)+x),y=parseFloat(g),v=g.substr((y+"").length),u=Ge.lastIndex-v.length,v||(v=v||At.units[e]||x,u===s.length&&(s+=v,a.e+=v)),x!==v&&(d=ye(t,e,p,v)||0),a._pt={_next:a._pt,p:_||l===1?_:",",s:d,c:y-d,m:m&&m<4||e==="zIndex"?Math.round:0});a.c=u<s.length?s.substring(u,s.length):""}else a.r=e==="display"&&s==="none"?Kc:Yc;return fc.test(s)&&(a.e=0),this._pt=a,a},Qa={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Q0=function(t){var e=t.split(" "),i=e[0],s=e[1]||"50%";return(i==="top"||i==="bottom"||s==="left"||s==="right")&&(t=i,i=s,s=t),e[0]=Qa[i]||i,e[1]=Qa[s]||s,e.join(" ")},J0=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i=e.t,s=i.style,r=e.u,o=i._gsap,a,u,l;if(r==="all"||r===!0)s.cssText="",u=1;else for(r=r.split(","),l=r.length;--l>-1;)a=r[l],ie[a]&&(u=1,a=a==="transformOrigin"?xt:X),ge(i,a);u&&(ge(i,X),o&&(o.svg&&i.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Un(i,1),o.uncache=1,Xc(s)))}},Ei={clearProps:function(t,e,i,s,r){if(r.data!=="isFromStart"){var o=t._pt=new vt(t._pt,e,i,0,0,J0);return o.u=s,o.pr=-10,o.tween=r,t._props.push(i),1}}},zn=[1,0,0,1,0,0],Jc={},tf=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Ja=function(t){var e=Pt(t,X);return tf(e)?zn:e.substr(7).match(cc).map(Z)},ao=function(t,e){var i=t._gsap||Ve(t),s=t.style,r=Ja(t),o,a,u,l;return i.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,r=[u.a,u.b,u.c,u.d,u.e,u.f],r.join(",")==="1,0,0,1,0,0"?zn:r):(r===zn&&!t.offsetParent&&t!==He&&!i.svg&&(u=s.display,s.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,a=t.nextElementSibling,He.appendChild(t)),r=Ja(t),u?s.display=u:ge(t,"display"),l&&(a?o.insertBefore(t,a):o?o.appendChild(t):He.removeChild(t))),e&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},or=function(t,e,i,s,r,o){var a=t._gsap,u=r||ao(t,!0),l=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,d=u[0],m=u[1],p=u[2],g=u[3],y=u[4],_=u[5],v=e.split(" "),x=parseFloat(v[0])||0,T=parseFloat(v[1])||0,P,S,b,w;i?u!==zn&&(S=d*g-m*p)&&(b=x*(g/S)+T*(-p/S)+(p*_-g*y)/S,w=x*(-m/S)+T*(d/S)-(d*_-m*y)/S,x=b,T=w):(P=Zc(t),x=P.x+(~v[0].indexOf("%")?x/100*P.width:x),T=P.y+(~(v[1]||v[0]).indexOf("%")?T/100*P.height:T)),s||s!==!1&&a.smooth?(y=x-l,_=T-c,a.xOffset=f+(y*d+_*p)-y,a.yOffset=h+(y*m+_*g)-_):a.xOffset=a.yOffset=0,a.xOrigin=x,a.yOrigin=T,a.smooth=!!s,a.origin=e,a.originIsAbsolute=!!i,t.style[xt]="0px 0px",o&&(ce(o,a,"xOrigin",l,x),ce(o,a,"yOrigin",c,T),ce(o,a,"xOffset",f,a.xOffset),ce(o,a,"yOffset",h,a.yOffset)),t.setAttribute("data-svg-origin",x+" "+T)},Un=function(t,e){var i=t._gsap||new Ic(t);if("x"in i&&!e&&!i.uncache)return i;var s=t.style,r=i.scaleX<0,o="px",a="deg",u=getComputedStyle(t),l=Pt(t,xt)||"0",c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w,A,M,R,V,k,O,L,F,E,W,et,$,ft,ht,rt,nt;return c=f=h=p=g=y=_=v=x=0,d=m=1,i.svg=!!(t.getCTM&&Qc(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(s[X]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[X]!=="none"?u[X]:"")),s.scale=s.rotate=s.translate="none"),S=ao(t,i.svg),i.svg&&(i.uncache?(E=t.getBBox(),l=i.xOrigin-E.x+"px "+(i.yOrigin-E.y)+"px",F=""):F=!e&&t.getAttribute("data-svg-origin"),or(t,F||l,!!F||i.originIsAbsolute,i.smooth!==!1,S)),T=i.xOrigin||0,P=i.yOrigin||0,S!==zn&&(M=S[0],R=S[1],V=S[2],k=S[3],c=O=S[4],f=L=S[5],S.length===6?(d=Math.sqrt(M*M+R*R),m=Math.sqrt(k*k+V*V),p=M||R?Ne(R,M)*Pe:0,_=V||k?Ne(V,k)*Pe+p:0,_&&(m*=Math.abs(Math.cos(_*qe))),i.svg&&(c-=T-(T*M+P*V),f-=P-(T*R+P*k))):(nt=S[6],ht=S[7],et=S[8],$=S[9],ft=S[10],rt=S[11],c=S[12],f=S[13],h=S[14],b=Ne(nt,ft),g=b*Pe,b&&(w=Math.cos(-b),A=Math.sin(-b),F=O*w+et*A,E=L*w+$*A,W=nt*w+ft*A,et=O*-A+et*w,$=L*-A+$*w,ft=nt*-A+ft*w,rt=ht*-A+rt*w,O=F,L=E,nt=W),b=Ne(-V,ft),y=b*Pe,b&&(w=Math.cos(-b),A=Math.sin(-b),F=M*w-et*A,E=R*w-$*A,W=V*w-ft*A,rt=k*A+rt*w,M=F,R=E,V=W),b=Ne(R,M),p=b*Pe,b&&(w=Math.cos(b),A=Math.sin(b),F=M*w+R*A,E=O*w+L*A,R=R*w-M*A,L=L*w-O*A,M=F,O=E),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,y=180-y),d=Z(Math.sqrt(M*M+R*R+V*V)),m=Z(Math.sqrt(L*L+nt*nt)),b=Ne(O,L),_=Math.abs(b)>2e-4?b*Pe:0,x=rt?1/(rt<0?-rt:rt):0),i.svg&&(F=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!tf(Pt(t,X)),F&&t.setAttribute("transform",F))),Math.abs(_)>90&&Math.abs(_)<270&&(r?(d*=-1,_+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,_+=_<=0?180:-180)),e=e||i.uncache,i.x=c-((i.xPercent=c&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+o,i.y=f-((i.yPercent=f&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+o,i.z=h+o,i.scaleX=Z(d),i.scaleY=Z(m),i.rotation=Z(p)+a,i.rotationX=Z(g)+a,i.rotationY=Z(y)+a,i.skewX=_+a,i.skewY=v+a,i.transformPerspective=x+o,(i.zOrigin=parseFloat(l.split(" ")[2])||!e&&i.zOrigin||0)&&(s[xt]=ki(l)),i.xOffset=i.yOffset=0,i.force3D=At.force3D,i.renderTransform=i.svg?ey:qc?ef:ty,i.uncache=0,i},ki=function(t){return(t=t.split(" "))[0]+" "+t[1]},_s=function(t,e,i){var s=lt(e);return Z(parseFloat(e)+parseFloat(ye(t,"x",i+"px",s)))+s},ty=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ef(t,e)},we="0deg",dn="0px",be=") ",ef=function(t,e){var i=e||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,u=i.z,l=i.rotation,c=i.rotationY,f=i.rotationX,h=i.skewX,d=i.skewY,m=i.scaleX,p=i.scaleY,g=i.transformPerspective,y=i.force3D,_=i.target,v=i.zOrigin,x="",T=y==="auto"&&t&&t!==1||y===!0;if(v&&(f!==we||c!==we)){var P=parseFloat(c)*qe,S=Math.sin(P),b=Math.cos(P),w;P=parseFloat(f)*qe,w=Math.cos(P),o=_s(_,o,S*w*-v),a=_s(_,a,-Math.sin(P)*-v),u=_s(_,u,b*w*-v+v)}g!==dn&&(x+="perspective("+g+be),(s||r)&&(x+="translate("+s+"%, "+r+"%) "),(T||o!==dn||a!==dn||u!==dn)&&(x+=u!==dn||T?"translate3d("+o+", "+a+", "+u+") ":"translate("+o+", "+a+be),l!==we&&(x+="rotate("+l+be),c!==we&&(x+="rotateY("+c+be),f!==we&&(x+="rotateX("+f+be),(h!==we||d!==we)&&(x+="skew("+h+", "+d+be),(m!==1||p!==1)&&(x+="scale("+m+", "+p+be),_.style[X]=x||"translate(0, 0)"},ey=function(t,e){var i=e||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,u=i.rotation,l=i.skewX,c=i.skewY,f=i.scaleX,h=i.scaleY,d=i.target,m=i.xOrigin,p=i.yOrigin,g=i.xOffset,y=i.yOffset,_=i.forceCSS,v=parseFloat(o),x=parseFloat(a),T,P,S,b,w;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=qe,l*=qe,T=Math.cos(u)*f,P=Math.sin(u)*f,S=Math.sin(u-l)*-h,b=Math.cos(u-l)*h,l&&(c*=qe,w=Math.tan(l-c),w=Math.sqrt(1+w*w),S*=w,b*=w,c&&(w=Math.tan(c),w=Math.sqrt(1+w*w),T*=w,P*=w)),T=Z(T),P=Z(P),S=Z(S),b=Z(b)):(T=f,b=h,P=S=0),(v&&!~(o+"").indexOf("px")||x&&!~(a+"").indexOf("px"))&&(v=ye(d,"x",o,"px"),x=ye(d,"y",a,"px")),(m||p||g||y)&&(v=Z(v+m-(m*T+p*S)+g),x=Z(x+p-(m*P+p*b)+y)),(s||r)&&(w=d.getBBox(),v=Z(v+s/100*w.width),x=Z(x+r/100*w.height)),w="matrix("+T+","+P+","+S+","+b+","+v+","+x+")",d.setAttribute("transform",w),_&&(d.style[X]=w)},ny=function(t,e,i,s,r){var o=360,a=st(r),u=parseFloat(r)*(a&&~r.indexOf("rad")?Pe:1),l=u-s,c=s+l+"deg",f,h;return a&&(f=r.split("_")[1],f==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),f==="cw"&&l<0?l=(l+o*Ka)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*Ka)%o-~~(l/o)*o)),t._pt=h=new vt(t._pt,e,i,s,l,B0),h.e=c,h.u="deg",t._props.push(i),h},tu=function(t,e){for(var i in e)t[i]=e[i];return t},iy=function(t,e,i){var s=tu({},i._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=i.style,a,u,l,c,f,h,d,m;s.svg?(l=i.getAttribute("transform"),i.setAttribute("transform",""),o[X]=e,a=Un(i,1),ge(i,X),i.setAttribute("transform",l)):(l=getComputedStyle(i)[X],o[X]=e,a=Un(i,1),o[X]=l);for(u in ie)l=s[u],c=a[u],l!==c&&r.indexOf(u)<0&&(d=lt(l),m=lt(c),f=d!==m?ye(i,u,l,m):parseFloat(l),h=parseFloat(c),t._pt=new vt(t._pt,a,u,f,h-f,ir),t._pt.u=m||0,t._props.push(u));tu(a,s)};_t("padding,margin,Width,Radius",function(n,t){var e="Top",i="Right",s="Bottom",r="Left",o=(t<3?[e,i,s,r]:[e+r,e+i,s+i,s+r]).map(function(a){return t<2?n+a:"border"+a+n});Ei[t>1?"border"+n:n]=function(a,u,l,c,f){var h,d;if(arguments.length<4)return h=o.map(function(m){return Zt(a,m,l)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(c+"").split(" "),d={},o.forEach(function(m,p){return d[m]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(u,d,f)}});var nf={name:"css",register:rr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,s,r){var o=this._props,a=t.style,u=i.vars.startAt,l,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w;so||rr(),this.styles=this.styles||Hc(t),b=this.styles.props,this.tween=i;for(p in e)if(p!=="autoRound"&&(c=e[p],!(wt[p]&&Bc(p,e,i,s,t,r)))){if(d=typeof c,m=Ei[p],d==="function"&&(c=c.call(i,s,t,r),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=Bn(c)),m)m(this,t,p,c,i)&&(S=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(p)+"").trim(),c+="",he.lastIndex=0,he.test(l)||(g=lt(l),y=lt(c),y?g!==y&&(l=ye(t,p,l,y)+y):g&&(c+=g)),this.add(a,"setProperty",l,c,s,r,0,0,p),o.push(p),b.push(p,0,a[p]);else if(d!=="undefined"){if(u&&p in u?(l=typeof u[p]=="function"?u[p].call(i,s,t,r):u[p],st(l)&&~l.indexOf("random(")&&(l=Bn(l)),lt(l+"")||l==="auto"||(l+=At.units[p]||lt(Zt(t,p))||""),(l+"").charAt(1)==="="&&(l=Zt(t,p))):l=Zt(t,p),h=parseFloat(l),_=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),p in Gt&&(p==="autoAlpha"&&(h===1&&Zt(t,"visibility")==="hidden"&&f&&(h=0),b.push("visibility",0,a.visibility),ce(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Gt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),v=p in ie,v){if(this.styles.save(p),w=c,d==="string"&&c.substring(0,6)==="var(--"){if(c=Pt(t,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var A=t.style.perspective;t.style.perspective=c,c=Pt(t,"perspective"),A?t.style.perspective=A:ge(t,"perspective")}f=parseFloat(c)}if(x||(T=t._gsap,T.renderTransform&&!e.parseTransform||Un(t,e.parseTransform),P=e.smoothOrigin!==!1&&T.smooth,x=this._pt=new vt(this._pt,a,X,0,1,T.renderTransform,T,0,-1),x.dep=1),p==="scale")this._pt=new vt(this._pt,T,"scaleY",T.scaleY,(_?Xe(T.scaleY,_+f):f)-T.scaleY||0,ir),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){b.push(xt,0,a[xt]),c=Q0(c),T.svg?or(t,c,0,P,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==T.zOrigin&&ce(this,T,"zOrigin",T.zOrigin,y),ce(this,a,p,ki(l),ki(c)));continue}else if(p==="svgOrigin"){or(t,c,1,P,0,this);continue}else if(p in Jc){ny(this,T,p,h,_?Xe(h,_+c):c);continue}else if(p==="smoothOrigin"){ce(this,T,"smooth",T.smooth,c);continue}else if(p==="force3D"){T[p]=c;continue}else if(p==="transform"){iy(this,c,t);continue}}else p in a||(p=an(p)||p);if(v||(f||f===0)&&(h||h===0)&&!I0.test(c)&&p in a)g=(l+"").substr((h+"").length),f||(f=0),y=lt(c)||(p in At.units?At.units[p]:g),g!==y&&(h=ye(t,p,l,y)),this._pt=new vt(this._pt,v?T:a,p,h,(_?Xe(h,_+f):f)-h,!v&&(y==="px"||p==="zIndex")&&e.autoRound!==!1?z0:ir),this._pt.u=y||0,v&&w!==c?(this._pt.b=l,this._pt.e=w,this._pt.r=j0):g!==y&&y!=="%"&&(this._pt.b=l,this._pt.r=N0);else if(p in a)Z0.call(this,t,p,l,_?_+c:c);else if(p in t)this.add(t,p,l||t[p],_?_+c:c,s,r);else if(p!=="parseTransform"){Xr(p,c);continue}v||(p in a?b.push(p,0,a[p]):typeof t[p]=="function"?b.push(p,2,t[p]()):b.push(p,1,l||t[p])),o.push(p)}}S&&$c(this)},render:function(t,e){if(e.tween._time||!ro())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:Zt,aliases:Gt,getSetter:function(t,e,i){var s=Gt[e];return s&&s.indexOf(",")<0&&(e=s),e in ie&&e!==xt&&(t._gsap.x||Zt(t,"x"))?i&&Ya===i?e==="scale"?G0:$0:(Ya=i||{})&&(e==="scale"?Y0:K0):t.style&&!Gr(t.style[e])?U0:~e.indexOf("-")?W0:no(t,e)},core:{_removeProperty:ge,_getMatrix:ao}};Tt.utils.checkPrefix=an;Tt.core.getStyleSaver=Hc;(function(n,t,e,i){var s=_t(n+","+t+","+e,function(r){ie[r]=1});_t(t,function(r){At.units[r]="deg",Jc[r]=1}),Gt[s[13]]=n+","+t,_t(i,function(r){var o=r.split(":");Gt[o[1]]=s[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");_t("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){At.units[n]="px"});Tt.registerPlugin(nf);var sy=Tt.registerPlugin(nf)||Tt;sy.core.Tween;/*!
 * paths 3.15.0
 * https://gsap.com
 *
 * Copyright 2008-2026, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var ry=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,oy=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,ay=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,uy=/(^[#\.][a-z]|[a-y][a-z])/i,ly=Math.PI/180,cy=180/Math.PI,ii=Math.sin,si=Math.cos,Lt=Math.abs,Qt=Math.sqrt,fy=Math.atan2,ar=1e8,eu=function(t){return typeof t=="string"},sf=function(t){return typeof t=="number"},hy=function(t){return typeof t>"u"},dy={},py={},Li=1e5,rf=function(t){return Math.round((t+ar)%1*Li)/Li||(t<0?0:1)},B=function(t){return Math.round(t*Li)/Li||0},nu=function(t){return Math.round(t*1e10)/1e10||0},iu=function(t){return t.closed=Math.abs(t[0]-t[t.length-2])<.001&&Math.abs(t[1]-t[t.length-1])<.001},su=function(t,e,i,s){var r=t[e],o=s===1?6:ur(r,i,s);if((o||!s)&&o+i+2<r.length)return t.splice(e,0,r.slice(0,i+o+2)),r.splice(0,i+o),1},of=function(t,e,i){var s=t.length,r=~~(i*s);if(t[r]>e){for(;--r&&t[r]>e;);r<0&&(r=0)}else for(;t[++r]<e&&r<s;);return r<s?r:s-1},my=function(t,e){var i=t.length;for(t.reverse();i--;)t[i].reversed||_y(t[i])},ru=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e},gy=function(t,e){var i=t.length,s=t[i-1]||[],r=s.length;i&&e[0]===s[r-2]&&e[1]===s[r-1]&&(e=s.concat(e.slice(2)),i--),t[i]=e};function gi(n){n=eu(n)&&uy.test(n)&&document.querySelector(n)||n;var t=n.getAttribute?n:0,e;return t&&(n=n.getAttribute("d"))?(t._gsPath||(t._gsPath={}),e=t._gsPath[n],e&&!e._dirty?e:t._gsPath[n]=Oi(n)):n?eu(n)?Oi(n):sf(n[0])?[n]:n:console.warn("Expecting a <path> element or an SVG path data string")}function yy(n){for(var t=[],e=0;e<n.length;e++)t[e]=ru(n[e],n[e].slice(0));return ru(n,t)}function _y(n){var t=0,e;for(n.reverse();t<n.length;t+=2)e=n[t],n[t]=n[t+1],n[t+1]=e;n.reversed=!n.reversed}var vy=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path"),s=[].slice.call(t.attributes),r=s.length,o;for(e=","+e+",";--r>-1;)o=s[r].nodeName.toLowerCase(),e.indexOf(","+o+",")<0&&i.setAttributeNS(null,o,s[r].nodeValue);return i},xy={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},Ty=function(t,e){for(var i=e?e.split(","):[],s={},r=i.length;--r>-1;)s[i[r]]=+t.getAttribute(i[r])||0;return s};function wy(n,t){var e=n.tagName.toLowerCase(),i=.552284749831,s,r,o,a,u,l,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w;return e==="path"||!n.getBBox?n:(l=vy(n,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),w=Ty(n,xy[e]),e==="rect"?(a=w.rx,u=w.ry||a,r=w.x,o=w.y,d=w.width-a*2,m=w.height-u*2,a||u?(p=r+a*(1-i),g=r+a,y=g+d,_=y+a*i,v=y+a,x=o+u*(1-i),T=o+u,P=T+m,S=P+u*i,b=P+u,s="M"+v+","+T+" V"+P+" C"+[v,S,_,b,y,b,y-(y-g)/3,b,g+(y-g)/3,b,g,b,p,b,r,S,r,P,r,P-(P-T)/3,r,T+(P-T)/3,r,T,r,x,p,o,g,o,g+(y-g)/3,o,y-(y-g)/3,o,y,o,_,o,v,x,v,T].join(",")+"z"):s="M"+(r+d)+","+o+" v"+m+" h"+-d+" v"+-m+" h"+d+"z"):e==="circle"||e==="ellipse"?(e==="circle"?(a=u=w.r,f=a*i):(a=w.rx,u=w.ry,f=u*i),r=w.cx,o=w.cy,c=a*i,s="M"+(r+a)+","+o+" C"+[r+a,o+f,r+c,o+u,r,o+u,r-c,o+u,r-a,o+f,r-a,o,r-a,o-f,r-c,o-u,r,o-u,r+c,o-u,r+a,o-f,r+a,o].join(",")+"z"):e==="line"?s="M"+w.x1+","+w.y1+" L"+w.x2+","+w.y2:(e==="polyline"||e==="polygon")&&(h=(n.getAttribute("points")+"").match(oy)||[],r=h.shift(),o=h.shift(),s="M"+r+","+o+" L"+h.join(","),e==="polygon"&&(s+=","+r+","+o+"z")),l.setAttribute("d",lf(l._gsRawPath=Oi(s))),t&&n.parentNode&&(n.parentNode.insertBefore(l,n),n.parentNode.removeChild(n)),l)}function af(n,t,e){var i=n[t],s=n[t+2],r=n[t+4],o;return i+=(s-i)*e,s+=(r-s)*e,i+=(s-i)*e,o=s+(r+(n[t+6]-r)*e-s)*e-i,i=n[t+1],s=n[t+3],r=n[t+5],i+=(s-i)*e,s+=(r-s)*e,i+=(s-i)*e,B(fy(s+(r+(n[t+7]-r)*e-s)*e-i,o)*cy)}function uf(n,t,e){e=hy(e)?1:nu(e)||0,t=nu(t)||0;var i=Math.max(0,~~(Lt(e-t)-1e-8)),s=yy(n);if(t>e&&(t=1-t,e=1-e,my(s),s.totalLength=0),t<0||e<0){var r=Math.abs(~~Math.min(t,e))+1;t+=r,e+=r}s.totalLength||Oe(s);var o=e>1,a=ou(s,t,dy,!0),u=ou(s,e,py),l=u.segment,c=a.segment,f=u.segIndex,h=a.segIndex,d=u.i,m=a.i,p=h===f,g=d===m&&p,y,_,v,x,T,P,S,b;if(o||i){for(y=f<h||p&&d<m||g&&u.t<a.t,su(s,h,m,a.t)&&(h++,y||(f++,g?(u.t=(u.t-a.t)/(1-a.t),d=0):p&&(d-=m))),Math.abs(1-(e-t))<1e-5?f=h-1:!u.t&&f?f--:su(s,f,d,u.t)&&y&&h++,a.t===1&&(h=(h+1)%s.length),T=[],P=s.length,S=1+P*i,b=h,S+=(P-h+f)%P,x=0;x<S;x++)gy(T,s[b++%P]);s=T}else if(v=u.t===1?6:ur(l,d,u.t),t!==e)for(_=ur(c,m,g?a.t/u.t:a.t),p&&(v+=_),l.splice(d+v+2),(_||m)&&c.splice(0,m+_),x=s.length;x--;)(x<h||x>f)&&s.splice(x,1);else l.angle=af(l,d+v,0),d+=v,a=l[d],u=l[d+1],l.length=l.totalLength=0,l.totalPoints=s.totalPoints=8,l.push(a,u,a,u,a,u,a,u);return s.totalLength=0,s}function by(n,t,e){t=t||0,n.samples||(n.samples=[],n.lookup=[]);var i=~~n.resolution||12,s=1/i,r=n.length,o=n[t],a=n[t+1],u=t?t/6*i:0,l=n.samples,c=n.lookup,f=(t?n.minLength:ar)||ar,h=l[u+e*i-1],d=t?l[u-1]:0,m,p,g,y,_,v,x,T,P,S,b,w,A,M,R,V,k;for(l.length=c.length=0,p=t+2;p<r;p+=6){if(g=n[p+4]-o,y=n[p+2]-o,_=n[p]-o,T=n[p+5]-a,P=n[p+3]-a,S=n[p+1]-a,v=x=b=w=0,Lt(g)<.01&&Lt(T)<.01&&Lt(_)+Lt(S)<.01)n.length>8&&(n.splice(p,6),p-=6,r-=6);else for(m=1;m<=i;m++)M=s*m,A=1-M,v=x-(x=(M*M*g+3*A*(M*y+A*_))*M),b=w-(w=(M*M*T+3*A*(M*P+A*S))*M),V=Qt(b*b+v*v),V<f&&(f=V),d+=V,l[u++]=d;o+=g,a+=T}if(h)for(h-=d;u<l.length;u++)l[u]+=h;if(l.length&&f){if(n.totalLength=k=l[l.length-1]||0,n.minLength=f,k/f<9999)for(V=R=0,m=0;m<k;m+=f)c[V++]=l[R]<m?++R:R}else n.totalLength=l[0]=0;return t?d-l[t/2-1]:d}function Oe(n,t){var e,i,s;for(s=e=i=0;s<n.length;s++)n[s].resolution=~~t||12,e+=by(n[s]),i+=n[s].length;return n.totalPoints=i,n.totalLength=e,n}function ur(n,t,e){if(e<=0||e>=1)return 0;var i=n[t],s=n[t+1],r=n[t+2],o=n[t+3],a=n[t+4],u=n[t+5],l=n[t+6],c=n[t+7],f=i+(r-i)*e,h=r+(a-r)*e,d=s+(o-s)*e,m=o+(u-o)*e,p=f+(h-f)*e,g=d+(m-d)*e,y=a+(l-a)*e,_=u+(c-u)*e;return h+=(y-h)*e,m+=(_-m)*e,n.splice(t+2,4,B(f),B(d),B(p),B(g),B(p+(h-p)*e),B(g+(m-g)*e),B(h),B(m),B(y),B(_)),n.samples&&n.samples.splice(t/6*n.resolution|0,0,0,0,0,0,0,0),6}function ou(n,t,e,i){e=e||{},n.totalLength||Oe(n),(t<0||t>1)&&(t=rf(t));var s=0,r=n[0],o,a,u,l,c,f,h;if(!t)h=f=s=0,r=n[0];else if(t===1)h=1,s=n.length-1,r=n[s],f=r.length-8;else{if(n.length>1){for(u=n.totalLength*t,c=f=0;(c+=n[f++].totalLength)<u;)s=f;r=n[s],l=c-r.totalLength,t=(u-l)/(c-l)||0}o=r.samples,a=r.resolution,u=r.totalLength*t,f=r.lookup.length?r.lookup[~~(u/r.minLength)]||0:of(o,u,t),l=f?o[f-1]:0,c=o[f],c<u&&(l=c,c=o[++f]),h=1/a*((u-l)/(c-l)+f%a),f=~~(f/a)*6,i&&h===1&&(f+6<r.length?(f+=6,h=0):s+1<n.length&&(f=h=0,r=n[++s]))}return e.t=h,e.i=f,e.path=n,e.segment=r,e.segIndex=s,e}function au(n,t,e,i){var s=n[0],r=i||{},o,a,u,l,c,f,h,d,m;if((t<0||t>1)&&(t=rf(t)),s.lookup||Oe(n),n.length>1){for(u=n.totalLength*t,c=f=0;(c+=n[f++].totalLength)<u;)s=n[f];l=c-s.totalLength,t=(u-l)/(c-l)||0}return o=s.samples,a=s.resolution,u=s.totalLength*t,f=s.lookup.length?s.lookup[t<1?~~(u/s.minLength):s.lookup.length-1]||0:of(o,u,t),l=f?o[f-1]:0,c=o[f],c<u&&(l=c,c=o[++f]),h=1/a*((u-l)/(c-l)+f%a)||0,m=1-h,f=~~(f/a)*6,d=s[f],r.x=B((h*h*(s[f+6]-d)+3*m*(h*(s[f+4]-d)+m*(s[f+2]-d)))*h+d),r.y=B((h*h*(s[f+7]-(d=s[f+1]))+3*m*(h*(s[f+5]-d)+m*(s[f+3]-d)))*h+d),e&&(r.angle=s.totalLength?af(s,f,h>=1?1-1e-9:h||1e-9):s.angle||0),r}function _n(n,t,e,i,s,r,o){for(var a=n.length,u,l,c,f,h;--a>-1;)for(u=n[a],l=u.length,c=0;c<l;c+=2)f=u[c],h=u[c+1],u[c]=f*t+h*i+r,u[c+1]=f*e+h*s+o;return n._dirty=1,n}function Sy(n,t,e,i,s,r,o,a,u){if(!(n===a&&t===u)){e=Lt(e),i=Lt(i);var l=s%360*ly,c=si(l),f=ii(l),h=Math.PI,d=h*2,m=(n-a)/2,p=(t-u)/2,g=c*m+f*p,y=-f*m+c*p,_=g*g,v=y*y,x=_/(e*e)+v/(i*i);x>1&&(e=Qt(x)*e,i=Qt(x)*i);var T=e*e,P=i*i,S=(T*P-T*v-P*_)/(T*v+P*_);S<0&&(S=0);var b=(r===o?-1:1)*Qt(S),w=b*(e*y/i),A=b*-(i*g/e),M=(n+a)/2,R=(t+u)/2,V=M+(c*w-f*A),k=R+(f*w+c*A),O=(g-w)/e,L=(y-A)/i,F=(-g-w)/e,E=(-y-A)/i,W=O*O+L*L,et=(L<0?-1:1)*Math.acos(O/Qt(W)),$=(O*E-L*F<0?-1:1)*Math.acos((O*F+L*E)/Qt(W*(F*F+E*E)));isNaN($)&&($=h),!o&&$>0?$-=d:o&&$<0&&($+=d),et%=d,$%=d;var ft=Math.ceil(Lt($)/(d/4)),ht=[],rt=$/ft,nt=4/3*ii(rt/2)/(1+si(rt/2)),se=c*e,Be=f*e,xe=f*-i,qn=c*i,ut;for(ut=0;ut<ft;ut++)s=et+ut*rt,g=si(s),y=ii(s),O=si(s+=rt),L=ii(s),ht.push(g-nt*y,y+nt*g,O+nt*L,L-nt*O,O,L);for(ut=0;ut<ht.length;ut+=2)g=ht[ut],y=ht[ut+1],ht[ut]=g*se+y*xe+V,ht[ut+1]=g*Be+y*qn+k;return ht[ut-2]=a,ht[ut-1]=u,ht}}function Oi(n){var t=(n+"").replace(ay,function(w){var A=+w;return A<1e-4&&A>-1e-4?0:A}).match(ry)||[],e=[],i=0,s=0,r=2/3,o=t.length,a=0,u="ERROR: malformed path: "+n,l,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b=function(A,M,R,V){_=(R-A)/3,v=(V-M)/3,p.push(A+_,M+v,R-_,V-v,R,V)};if(!n||!isNaN(t[0])||isNaN(t[1]))return console.log(u),e;for(l=0;l<o;l++)if(T=d,isNaN(t[l])?(d=t[l].toUpperCase(),m=d!==t[l]):l--,f=+t[l+1],h=+t[l+2],m&&(f+=i,h+=s),l||(g=f,y=h),d==="M")p&&(p.length<8?e.length-=1:a+=p.length,iu(p)),i=g=f,s=y=h,p=[f,h],e.push(p),l+=2,d="L";else if(d==="C")p||(p=[0,0]),m||(i=s=0),p.push(f,h,i+t[l+3]*1,s+t[l+4]*1,i+=t[l+5]*1,s+=t[l+6]*1),l+=6;else if(d==="S")_=i,v=s,(T==="C"||T==="S")&&(_+=i-p[p.length-4],v+=s-p[p.length-3]),m||(i=s=0),p.push(_,v,f,h,i+=t[l+3]*1,s+=t[l+4]*1),l+=4;else if(d==="Q")_=i+(f-i)*r,v=s+(h-s)*r,m||(i=s=0),i+=t[l+3]*1,s+=t[l+4]*1,p.push(_,v,i+(f-i)*r,s+(h-s)*r,i,s),l+=4;else if(d==="T")_=i-p[p.length-4],v=s-p[p.length-3],p.push(i+_,s+v,f+(i+_*1.5-f)*r,h+(s+v*1.5-h)*r,i=f,s=h),l+=2;else if(d==="H")b(i,s,i=f,s),l+=1;else if(d==="V")b(i,s,i,s=f+(m?s-i:0)),l+=1;else if(d==="L"||d==="Z")d==="Z"&&(f=g,h=y,p.closed=!0),(d==="L"||Lt(i-f)>.5||Lt(s-h)>.5)&&(b(i,s,f,h),d==="L"&&(l+=2)),i=f,s=h;else if(d==="A"){if(P=t[l+4],S=t[l+5],_=t[l+6],v=t[l+7],c=7,P.length>1&&(P.length<3?(v=_,_=S,c--):(v=S,_=P.substr(2),c-=2),S=P.charAt(1),P=P.charAt(0)),x=Sy(i,s,+t[l+1],+t[l+2],+t[l+3],+P,+S,(m?i:0)+_*1,(m?s:0)+v*1),l+=c,x)for(c=0;c<x.length;c++)p.push(x[c]);i=p[p.length-2],s=p[p.length-1]}else console.log(u);return l=p.length,l<6?(e.pop(),l=0):iu(p),e.totalPoints=a+l,e}function Py(n,t){t===void 0&&(t=1);for(var e=n[0],i=0,s=[e,i],r=2;r<n.length;r+=2)s.push(e,i,n[r],i=(n[r]-e)*t/2,e=n[r],-i);return s}function lr(n,t){Lt(n[0]-n[2])<1e-4&&Lt(n[1]-n[3])<1e-4&&(n=n.slice(2));var e=n.length-2,i=+n[0],s=+n[1],r=+n[2],o=+n[3],a=[i,s,i,s],u=r-i,l=o-s,c=n.nonSmooth||[],f=Math.abs(n[e]-i)<.001&&Math.abs(n[e+1]-s)<.001,h,d,m,p,g,y,_,v,x,T,P,S,b,w,A;if(!e)return[i,s,i,s,i,s,i,s];for(f&&(n.push(r,o),r=i,o=s,i=n[e-2],s=n[e-1],n.unshift(i,s),e+=4,c=[0,0].concat(c)),t=t||t===0?+t:1,m=2;m<e;m+=2)if(h=i,d=s,i=r,s=o,r=+n[m+2],o=+n[m+3],!(i===r&&s===o)){if(p=u,g=l,u=r-i,l=o-s,c[m]){a.push(i-(i-h)/4,s-(s-d)/4,i,s,i+(r-i)/4,s+(o-s)/4);continue}y=Qt(p*p+g*g),_=Qt(u*u+l*l),v=Qt(Math.pow(u/_+p/y,2)+Math.pow(l/_+g/y,2)),x=(y+_)*t*.25/v,T=i-(i-h)*(y?x/y:0),P=i+(r-i)*(_?x/_:0),S=i-(T+((P-T)*(y*3/(y+_)+.5)/4||0)),b=s-(s-d)*(y?x/y:0),w=s+(o-s)*(_?x/_:0),A=s-(b+((w-b)*(y*3/(y+_)+.5)/4||0)),a.push(B(T+S),B(b+A),B(i),B(s),B(P+S),B(w+A))}return i!==r||s!==o||a.length<4?a.push(B(r),B(o),B(r),B(o)):a.length-=2,a.length===2?a.push(i,s,i,s,i,s):f&&(a.splice(0,6),a.length-=6),a.closed=f,a}function lf(n){sf(n[0])&&(n=[n]);var t="",e=n.length,i,s,r,o;for(s=0;s<e;s++){for(o=n[s],t+="M"+B(o[0])+","+B(o[1])+" C",i=o.length,r=2;r<i;r++)t+=B(o[r++])+","+B(o[r++])+" "+B(o[r++])+","+B(o[r++])+" "+B(o[r++])+","+B(o[r])+" ";o.closed&&(t+="z")}return t}/*!
 * matrix 3.15.0
 * https://gsap.com
 *
 * Copyright 2008-2026, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var Jt,Fe,uo,Xi,vn,yi,Fi,Mn,Bt="transform",cr=Bt+"Origin",cf,ff=function(t){var e=t.ownerDocument||t;for(!(Bt in t.style)&&("msTransform"in t.style)&&(Bt="msTransform",cr=Bt+"Origin");e.parentNode&&(e=e.parentNode););if(Fe=window,Fi=new Wn,e){Jt=e,uo=e.documentElement,Xi=e.body,Mn=Jt.createElementNS("http://www.w3.org/2000/svg","g"),Mn.style.transform="none";var i=e.createElement("div"),s=e.createElement("div"),r=e&&(e.body||e.firstElementChild);r&&r.appendChild&&(r.appendChild(i),i.appendChild(s),i.style.position="static",i.style.transform="translate3d(0,0,1px)",cf=s.offsetParent!==i,r.removeChild(i))}return e},Ay=function(t){for(var e,i;t&&t!==Xi;)i=t._gsap,i&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e},hf=[],df=[],Cy=function(){return Fe.pageYOffset||Jt.scrollTop||uo.scrollTop||Xi.scrollTop||0},My=function(){return Fe.pageXOffset||Jt.scrollLeft||uo.scrollLeft||Xi.scrollLeft||0},lo=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},Dy=function n(t){if(Fe.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return n(t)},vs=function n(t,e){if(t.parentNode&&(Jt||ff(t))){var i=lo(t),s=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?e?"rect":"g":"div",o=e!==2?0:100,a=e===3?100:0,u={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},l=Jt.createElementNS?Jt.createElementNS(s.replace(/^https/,"http"),r):Jt.createElement(r);return e&&(i?(yi||(yi=n(t)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+a+")"),l.setAttribute("fill","transparent"),yi.appendChild(l)):(vn||(vn=n(t),Object.assign(vn.style,u)),Object.assign(l.style,u,{width:"0.1px",height:"0.1px",top:a+"px",left:o+"px"}),vn.appendChild(l))),l}throw"Need document and parent."},Ry=function(t){for(var e=new Wn,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e},Vy=function(t){var e=t.getCTM(),i;return e||(i=t.style[Bt],t.style[Bt]="none",t.appendChild(Mn),e=Mn.getCTM(),t.removeChild(Mn),i?t.style[Bt]=i:t.style.removeProperty(Bt.replace(/([A-Z])/g,"-$1").toLowerCase())),e||Fi.clone()},Ey=function(t,e){var i=lo(t),s=t===i,r=i?hf:df,o=t.parentNode,a=o&&!i&&o.shadowRoot&&o.shadowRoot.appendChild?o.shadowRoot:o,u,l,c,f,h,d;if(t===Fe)return t;if(r.length||r.push(vs(t,1),vs(t,2),vs(t,3)),u=i?yi:vn,i)s?(c=Vy(t),f=-c.e/c.a,h=-c.f/c.d,l=Fi):t.getBBox?(c=t.getBBox(),l=t.transform?t.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?Ry(l):l.getItem(0).matrix:Fi,f=l.a*c.x+l.c*c.y,h=l.b*c.x+l.d*c.y):(l=new Wn,f=h=0),e&&t.tagName.toLowerCase()==="g"&&(f=h=0),(s||!t.getBoundingClientRect().width?i:o).appendChild(u),u.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+f)+","+(l.f+h)+")");else{if(f=h=0,cf)for(l=t.offsetParent,c=t;c&&(c=c.parentNode)&&c!==l&&c.parentNode;)(Fe.getComputedStyle(c)[Bt]+"").length>4&&(f=c.offsetLeft,h=c.offsetTop,c=0);if(d=Fe.getComputedStyle(t),d.position!=="absolute"&&d.position!=="fixed")for(l=t.offsetParent;o&&o!==l;)f+=o.scrollLeft||0,h+=o.scrollTop||0,o=o.parentNode;c=u.style,c.top=t.offsetTop-h+"px",c.left=t.offsetLeft-f+"px",c[Bt]=d[Bt],c[cr]=d[cr],c.position=d.position==="fixed"?"fixed":"absolute",a.appendChild(u)}return u},xs=function(t,e,i,s,r,o,a){return t.a=e,t.b=i,t.c=s,t.d=r,t.e=o,t.f=a,t},Wn=function(){function n(e,i,s,r,o,a){e===void 0&&(e=1),i===void 0&&(i=0),s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=0),a===void 0&&(a=0),xs(this,e,i,s,r,o,a)}var t=n.prototype;return t.inverse=function(){var i=this.a,s=this.b,r=this.c,o=this.d,a=this.e,u=this.f,l=i*o-s*r||1e-10;return xs(this,o/l,-s/l,-r/l,i/l,(r*u-o*a)/l,-(i*u-s*a)/l)},t.multiply=function(i){var s=this.a,r=this.b,o=this.c,a=this.d,u=this.e,l=this.f,c=i.a,f=i.c,h=i.b,d=i.d,m=i.e,p=i.f;return xs(this,c*s+h*o,c*r+h*a,f*s+d*o,f*r+d*a,u+m*s+p*o,l+m*r+p*a)},t.clone=function(){return new n(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(i){var s=this.a,r=this.b,o=this.c,a=this.d,u=this.e,l=this.f;return s===i.a&&r===i.b&&o===i.c&&a===i.d&&u===i.e&&l===i.f},t.apply=function(i,s){s===void 0&&(s={});var r=i.x,o=i.y,a=this.a,u=this.b,l=this.c,c=this.d,f=this.e,h=this.f;return s.x=r*a+o*l+f||0,s.y=r*u+o*c+h||0,s},n}();function Ze(n,t,e,i){if(!n||!n.parentNode||(Jt||ff(n)).documentElement===n)return new Wn;var s=Ay(n),r=lo(n),o=r?hf:df,a=Ey(n,e),u=o[0].getBoundingClientRect(),l=o[1].getBoundingClientRect(),c=o[2].getBoundingClientRect(),f=a.parentNode,h=!i&&Dy(n),d=new Wn((l.left-u.left)/100,(l.top-u.top)/100,(c.left-u.left)/100,(c.top-u.top)/100,u.left+(h?0:My()),u.top+(h?0:Cy()));if(f.removeChild(a),s)for(u=s.length;u--;)l=s[u],l.scaleX=l.scaleY=0,l.renderTransform(1,l);return t?d.inverse():d}/*!
 * MotionPathPlugin 3.15.0
 * https://gsap.com
 *
 * @license Copyright 2008-2026, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license
 * @author: Jack Doyle, jack@greensock.com
*/var ky="x,translateX,left,marginLeft,xPercent".split(","),Ly="y,translateY,top,marginTop,yPercent".split(","),Oy=Math.PI/180,Rt,pf,ze,fr,Ts,uu,Fy=function(){return Rt||typeof window<"u"&&(Rt=window.gsap)&&Rt.registerPlugin&&Rt},pn=function(t,e,i,s){for(var r=e.length,o=s===2?0:s,a=0;a<r;a++)t[o]=parseFloat(e[a][i]),s===2&&(t[o+1]=0),o+=2;return t},Ke=function(t,e,i){return parseFloat(t._gsap.get(t,e,i||"px"))||0},mf=function(t){var e=t[0],i=t[1],s;for(s=2;s<t.length;s+=2)e=t[s]+=e,i=t[s+1]+=i},lu=function(t,e,i,s,r,o,a,u,l){if(a.type==="cubic")e=[e];else{a.fromCurrent!==!1&&e.unshift(Ke(i,s,u),r?Ke(i,r,l):0),a.relative&&mf(e);var c=r?lr:Py;e=[c(e,a.curviness)]}return e=o(gf(e,i,a)),Ii(t,i,s,e,"x",u),r&&Ii(t,i,r,e,"y",l),Oe(e,a.resolution||(a.curviness===0?20:12))},Iy=function(t){return t},By=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,cu=function(t,e,i){var s=Ze(t),r=0,o=0,a;return(t.tagName+"").toLowerCase()==="svg"?(a=t.viewBox.baseVal,a.width||(a={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):a=e&&t.getBBox&&t.getBBox(),e&&e!=="auto"&&(r=e.push?e[0]*(a?a.width:t.offsetWidth||0):e.x,o=e.push?e[1]*(a?a.height:t.offsetHeight||0):e.y),i.apply(r||o?s.apply({x:r,y:o}):{x:s.e,y:s.f})},hr=function(t,e,i,s){var r=Ze(t.parentNode,!0,!0),o=r.clone().multiply(Ze(e)),a=cu(t,i,r),u=cu(e,s,r),l=u.x,c=u.y,f;return o.e=o.f=0,s==="auto"&&e.getTotalLength&&e.tagName.toLowerCase()==="path"&&(f=e.getAttribute("d").match(By)||[],f=o.apply({x:+f[0],y:+f[1]}),l+=f.x,c+=f.y),f&&(f=o.apply(e.getBBox()),l-=f.x,c-=f.y),o.e=l-a.x,o.f=c-a.y,o},gf=function(t,e,i){var s=i.align,r=i.matrix,o=i.offsetX,a=i.offsetY,u=i.alignOrigin,l=t[0][0],c=t[0][1],f=Ke(e,"x"),h=Ke(e,"y"),d,m,p;return!t||!t.length?gi("M0,0L0,0"):(s&&(s==="self"||(d=fr(s)[0]||e)===e?_n(t,1,0,0,1,f-l,h-c):(u&&u[2]!==!1?Rt.set(e,{transformOrigin:u[0]*100+"% "+u[1]*100+"%"}):u=[Ke(e,"xPercent")/-100,Ke(e,"yPercent")/-100],m=hr(e,d,u,"auto"),p=m.apply({x:l,y:c}),_n(t,m.a,m.b,m.c,m.d,f+m.e-(p.x-m.e),h+m.f-(p.y-m.f)))),r?_n(t,r.a,r.b,r.c,r.d,r.e,r.f):(o||a)&&_n(t,1,0,0,1,o||0,a||0),t)},Ii=function(t,e,i,s,r,o){var a=e._gsap,u=a.harness,l=u&&u.aliases&&u.aliases[i],c=l&&l.indexOf(",")<0?l:i,f=t._pt=new pf(t._pt,e,c,0,0,Iy,0,a.set(e,c,t));f.u=ze(a.get(e,c,o))||0,f.path=s,f.pp=r,t._props.push(c)},Ny=function(t,e){return function(i){return t||e!==1?uf(i,t,e):i}},jy={version:"3.15.0",name:"motionPath",register:function(t,e,i){Rt=t,ze=Rt.utils.getUnit,fr=Rt.utils.toArray,Ts=Rt.core.getStyleSaver,uu=Rt.core.reverting||function(){},pf=i},init:function(t,e,i){if(!Rt)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(!(typeof e=="object"&&!e.style)||!e.path)&&(e={path:e});var s=[],r=e,o=r.path,a=r.autoRotate,u=r.unitX,l=r.unitY,c=r.x,f=r.y,h=o[0],d=Ny(e.start,"end"in e?e.end:1),m,p;if(this.rawPaths=s,this.target=t,this.tween=i,this.styles=Ts&&Ts(t,"transform"),(this.rotate=a||a===0)&&(this.rOffset=parseFloat(a)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=ze(t._gsap.get(t,this.rProp))||0),Array.isArray(o)&&!("closed"in o)&&typeof h!="number"){for(p in h)!c&&~ky.indexOf(p)?c=p:!f&&~Ly.indexOf(p)&&(f=p);c&&f?s.push(lu(this,pn(pn([],o,c,0),o,f,1),t,c,f,d,e,u||ze(o[0][c]),l||ze(o[0][f]))):c=f=0;for(p in h)p!==c&&p!==f&&s.push(lu(this,pn([],o,p,2),t,p,0,d,e,ze(o[0][p])))}else m=d(gf(gi(e.path),t,e)),Oe(m,e.resolution),s.push(m),Ii(this,t,e.x||"x",m,"x",e.unitX||"px"),Ii(this,t,e.y||"y",m,"y",e.unitY||"px");i.vars.immediateRender&&this.render(i.progress(),this)},render:function(t,e){var i=e.rawPaths,s=i.length,r=e._pt;if(e.tween._time||!uu()){for(t>1?t=1:t<0&&(t=0);s--;)au(i[s],t,!s&&e.rotate,i[s]);for(;r;)r.set(r.t,r.p,r.path[r.pp]+r.u,r.d,t),r=r._next;e.rotate&&e.rSet(e.target,e.rProp,i[0].angle*(e.radians?Oy:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function(t){return Oe(gi(t)).totalLength},sliceRawPath:uf,getRawPath:gi,pointsToSegment:lr,stringToRawPath:Oi,rawPathToString:lf,transformRawPath:_n,getGlobalMatrix:Ze,getPositionOnPath:au,cacheRawPathMeasurements:Oe,convertToPath:function(t,e){return fr(t).map(function(i){return wy(i,e!==!1)})},convertCoordinates:function(t,e,i){var s=Ze(e,!0,!0).multiply(Ze(t));return i?s.apply(i):s},getAlignMatrix:hr,getRelativePosition:function(t,e,i,s){var r=hr(t,e,i,s);return{x:r.e,y:r.f}},arrayToRawPath:function(t,e){e=e||{};var i=pn(pn([],t,e.x||"x",0),t,e.y||"y",1);return e.relative&&mf(i),[e.type==="cubic"?i:lr(i,e.curviness)]}};Fy()&&Rt.registerPlugin(jy);export{Wy as A,$y as L,jy as M,dg as a,Xy as b,Ky as c,Fg as d,Hy as e,qy as f,sy as g,Gy as h,Yy as m,fg as u};