PageSourceSearch

https://nightowl.app/_astro/AnimatedText.astro_astro_type_script_index_0_lang.D3Lfhh-2.js

js nightowl.app collected 2026-09-24 11:57:32 UTC 63,461 bytes, 1 lines download raw bytes

1function ls(e,t){e.indexOf(t)===-1&&e.push(t)}function Qt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const z=(e,t,n)=>n>t?t:n<e?e:n;let te=()=>{};const X={},Qe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),us=e=>typeof e=="object"&&e!==null,tn=e=>/^0[^.\s]+$/u.test(e);function en(e){let t;return()=>(t===void 0&&(t=e()),t)}const it=e=>e,ee=(...e)=>e.reduce((t,n)=>s=>n(t(s))),ne=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1};class nn{constructor(){this.subscriptions=[]}add(t){return ls(this.subscriptions,t),()=>Qt(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const O=e=>e*1e3,K=e=>e/1e3,sn=(e,t)=>t?e*(1e3/t):0,cs=(e,t,n)=>{const s=t-e;return((n-e)%s+s)%s+e},rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fs=1e-7,hs=12;function ds(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=rn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>fs&&++a<hs);return o}function bt(e,t,n,s){if(e===t&&n===s)return it;const i=r=>ds(r,0,1,e,n);return r=>r===0||r===1?r:rn(i(r),t,s)}const on=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,se=e=>t=>1-e(1-t),an=bt(.33,1.53,.69,.99),ie=se(an),ln=on(ie),un=e=>e>=1?1:(e*=2)<1?.5*ie(e):.5*(2-Math.pow(2,-10*(e-1))),re=e=>1-Math.sin(Math.acos(e)),ps=se(re),cn=on(re),ms=bt(.42,0,1,1),gs=bt(0,0,.58,1),fn=bt(.42,0,.58,1),hn=e=>Array.isArray(e)&&typeof e[0]!="number";function dn(e,t){return hn(e)?e[cs(0,e.length,t)]:e}const pn=e=>Array.isArray(e)&&typeof e[0]=="number",ys={linear:it,easeIn:ms,easeInOut:fn,easeOut:gs,circIn:re,circInOut:cn,circOut:ps,backIn:ie,backInOut:ln,backOut:an,anticipate:un},bs=e=>typeof e=="string",Ot=e=>{if(pn(e)){te(e.length===4);const[t,n,s,i]=e;return bt(t,n,s,i)}else if(bs(e))return ys[e];return e},St=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ts(e){let t=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){r.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,l=!1,f=!1)=>{const p=f&&s?t:n;return l&&r.add(c),p.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,s){i=!0;return}s=!0;const l=t;t=n,n=l,t.forEach(a),t.clear(),s=!1,i&&(i=!1,u.process(c))}};return u}const vs=40;function mn(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=St.reduce((A,V)=>(A[V]=Ts(r),A),{}),{setup:a,read:u,resolveKeyframes:c,preUpdate:l,update:f,preRender:h,render:p,postRender:y}=o,m=()=>{const A=X.useManualTiming,V=A?i.timestamp:performance.now();n=!1,A||(i.delta=s?1e3/60:Math.max(Math.min(V-i.timestamp,vs),1)),i.timestamp=V,i.isProcessing=!0,a.process(i),u.process(i),c.process(i),l.process(i),f.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(m))},g=()=>{n=!0,s=!0,i.isProcessing||e(m)};return{schedule:St.reduce((A,V)=>{const v=o[V];return A[V]=(w,F=!1,S=!1)=>(n||g(),v.schedule(w,F,S)),A},{}),cancel:A=>{for(let V=0;V<St.length;V++)o[St[V]].cancel(A)},state:i,steps:o}}const{schedule:W,cancel:Bt,state:At}=mn(typeof requestAnimationFrame<"u"?requestAnimationFrame:it,!0);let Mt;function Ss(){Mt=void 0}const P={now:()=>(Mt===void 0&&P.set(At.isProcessing||X.useManualTiming?At.timestamp:performance.now()),Mt),set:e=>{Mt=e,queueMicrotask(Ss)}},gn=e=>t=>typeof t=="string"&&t.startsWith(e),yn=gn("--"),Vs=gn("var(--"),oe=e=>Vs(e)?Ms.test(e.split("/*")[0].trim()):!1,Ms=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function De(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const rt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},mt={...rt,transform:e=>z(0,1,e)},Vt={...rt,default:1},dt=e=>Math.round(e*1e5)/1e5,ae=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function As(e){return e==null}const xs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,le=(e,t)=>n=>!!(typeof n=="string"&&xs.test(n)&&n.startsWith(e)||t&&!As(n)&&Object.prototype.hasOwnProperty.call(n,t)),bn=(e,t,n)=>s=>
1{if(typeof s!="string")return s;const[i,r,o,a]=s.match(ae);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ws=e=>z(0,255,e),Rt={...rt,transform:e=>Math.round(ws(e))},q={test:le("rgb","red"),parse:bn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+Rt.transform(e)+", "+Rt.transform(t)+", "+Rt.transform(n)+", "+dt(mt.transform(s))+")"};function Cs(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Kt={test:le("#"),parse:Cs,transform:q.transform},Tt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),U=Tt("deg"),et=Tt("%"),d=Tt("px"),Fs=Tt("vh"),Ds=Tt("vw"),Re={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},tt={test:le("hsl","hue"),parse:bn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+et.transform(dt(t))+", "+et.transform(dt(n))+", "+dt(mt.transform(s))+")"},R={test:e=>q.test(e)||Kt.test(e)||tt.test(e),parse:e=>q.test(e)?q.parse(e):tt.test(e)?tt.parse(e):Kt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?q.transform(e):tt.transform(e),getAnimatableNone:e=>{const t=R.parse(e);return t.alpha=0,R.transform(t)}},Rs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Es(e){return isNaN(e)&&typeof e=="string"&&(e.match(ae)?.length||0)+(e.match(Rs)?.length||0)>0}const Tn="number",vn="color",Ps="var",ks="var(",Ee="${}",Is=/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 nt(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(Is,u=>(R.test(u)?(s.color.push(r),i.push(vn),n.push(R.parse(u))):u.startsWith(ks)?(s.var.push(r),i.push(Ps),n.push(u)):(s.number.push(r),i.push(Tn),n.push(parseFloat(u))),++r,Ee)).split(Ee);return{values:n,split:a,indexes:s,types:i}}function Os(e){return nt(e).values}function Sn({split:e,types:t}){const n=e.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=e[r],s[r]!==void 0){const o=t[r];o===Tn?i+=dt(s[r]):o===vn?i+=R.transform(s[r]):i+=s[r]}return i}}function Bs(e){return Sn(nt(e))}const Ks=e=>typeof e=="number"?0:R.test(e)?R.getAnimatableNone(e):e,Ns=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Ks(e);function Ls(e){const t=nt(e);return Sn(t)(t.values.map((s,i)=>Ns(s,t.split[i])))}const N={test:Es,parse:Os,createTransformer:Bs,getAnimatableNone:Ls};function Et(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ws({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=Et(u,a,e+1/3),r=Et(u,a,e),o=Et(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function xt(e,t){return n=>n>0?t:e}const ot=(e,t,n)=>e+(t-e)*n,Pt=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},$s=[Kt,q,tt],js=e=>$s.find(t=>t.test(e));function Pe(e){const t=js(e);if(!t)return!1;let n=t.parse(e);return t===tt&&(n=Ws(n)),n}const ke=(e,t)=>{const n=Pe(e),s=Pe(t);if(!n||!s)return xt(e,t);const i={...n};return r=>(i.red=Pt(n.red,s.red,r),i.green=Pt(n.green,s.green,r),i.blue=Pt(n.blue,s.blue,r),i.alpha=ot(n.alpha,s.alpha,r),q.transform(i))},Nt=new Set(["none","hidden"]);function _s(e,t){return Nt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Us(e,t){return n=>ot(e,t,n)}function ue(e){return typeof e=="number"?Us:typeof e=="string"?oe(e)?xt:R.test(e)?ke:zs:Array.isArray(e)?Vn:typeof e=="object"?R.test(e)?ke:Gs:xt}function Vn(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>ue(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Gs(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=ue(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Ys(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const zs=(e,t)=>{const n=N.createTransformer(t),s=nt(e),i=nt(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Nt.has(e)&&!i.values.length||Nt.has(t)&&!s.values.length?_s(e,t):ee(Vn(Ys(s,i),i.values),n):xt(e,t)};function Mn(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):ue(e)(e,t)}const Xs=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>W.update(t,n),stop:()=>Bt(t),now:()=>At.isProcessing?At.timestamp:P.now()}},An=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)s+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},wt=2e4;function ce(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<wt;)t+=n,s=e.next(t);return t>=wt?1/0:t}function xn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(ce(s),wt);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:K(i)}}const D={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 Lt(e,t){return e*Math.sqrt(1-t*t)}const qs=12;function Zs(e,t,n){let s=n;for(let i=1;i<qs;i++)s=s-e(s)/t(s);return s}const kt=.001;function Hs({duration:e=D.duration,bounce:t=D.bounce,velocity:n=D.velocity,mass:s=D.mass}){let i,r,o=1-t;o=z(D.minDamping,D.maxDamping,o),e=z(D.minDuration,D.maxDuration,K(e)),o<1?(i=c=>{const l=c*o,f=l*e,h=l-n,p=Lt(c,o),y=Math.exp(-f);return kt-h/p*y},r=c=>{const f=c*o*e,h=f*n+n,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-f),m=Lt(Math.pow(c,2),o);return(-i(c)+kt>0?-1:1)*((h-p)*y)/m}):(i=c=>{const l=Math.exp(-c*e),f=(c-n)*e+1;return-kt+l*f},r=c=>
1{const l=Math.exp(-c*e),f=(n-c)*(e*e);return l*f});const a=5/e,u=Zs(i,r,a);if(e=O(e),isNaN(u))return{stiffness:D.stiffness,damping:D.damping,duration:e};{const c=Math.pow(u,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:e}}}const Js=["duration","bounce"],Qs=["stiffness","damping","mass"];function Ie(e,t){return t.some(n=>e[n]!==void 0)}function ti(e){let t={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...e};if(!Ie(e,Qs)&&Ie(e,Js))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*z(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:D.mass,stiffness:i,damping:r}}else{const n=Hs({...e,velocity:0});t={...t,...n,mass:D.mass},t.isResolvedFromDuration=!0}return t}function gt(e=D.visualDuration,t=D.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:c,mass:l,duration:f,velocity:h,isResolvedFromDuration:p}=ti({...n,velocity:-K(n.velocity||0)}),y=h||0,m=c/(2*Math.sqrt(u*l)),g=o-r,b=K(Math.sqrt(u/l)),C=Math.abs(g)<5;s||(s=C?D.restSpeed.granular:D.restSpeed.default),i||(i=C?D.restDelta.granular:D.restDelta.default);let A,V,v,w,F,S;if(m<1)v=Lt(b,m),w=(y+m*b*g)/v,A=T=>{const x=Math.exp(-m*b*T);return o-x*(w*Math.sin(v*T)+g*Math.cos(v*T))},F=m*b*w+g*v,S=m*b*g-w*v,V=T=>Math.exp(-m*b*T)*(F*Math.sin(v*T)+S*Math.cos(v*T));else if(m===1){A=x=>o-Math.exp(-b*x)*(g+(y+b*g)*x);const T=y+b*g;V=x=>Math.exp(-b*x)*(b*T*x-y)}else{const T=b*Math.sqrt(m*m-1);A=I=>{const $=Math.exp(-m*b*I),j=Math.min(T*I,300);return o-$*((y+m*b*g)*Math.sinh(j)+T*g*Math.cosh(j))/T};const x=(y+m*b*g)/T,k=m*b*x-g*T,L=m*b*g-x*T;V=I=>{const $=Math.exp(-m*b*I),j=Math.min(T*I,300);return $*(k*Math.sinh(j)+L*Math.cosh(j))}}const M={calculatedDuration:p&&f||null,velocity:T=>O(V(T)),next:T=>{if(!p&&m<1){const k=Math.exp(-m*b*T),L=Math.sin(v*T),I=Math.cos(v*T),$=o-k*(w*L+g*I),j=O(k*(F*L+S*I));return a.done=Math.abs(j)<=s&&Math.abs(o-$)<=i,a.value=a.done?o:$,a}const x=A(T);if(p)a.done=T>=f;else{const k=O(V(T));a.done=Math.abs(k)<=s&&Math.abs(o-x)<=i}return a.value=a.done?o:x,a},toString:()=>{const T=Math.min(ce(M),wt),x=An(k=>M.next(T*k).value,T,30);return T+"ms "+x},toTransition:()=>{}};return M}gt.applyToOptions=e=>{const t=xn(e,100,gt);return e.ease=t.ease,e.duration=O(t.duration),e.type="keyframes",e};const ei=5;function wn(e,t,n){const s=Math.max(t-ei,0);return sn(n-e(s),t-s)}function Wt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:c=.5,restSpeed:l}){const f=e[0],h={done:!1,value:f},p=S=>a!==void 0&&S<a||u!==void 0&&S>u,y=S=>a===void 0?u:u===void 0||Math.abs(a-S)<Math.abs(u-S)?a:u;let m=n*t;const g=f+m,b=o===void 0?g:o(g);b!==g&&(m=b-f);const C=S=>-m*Math.exp(-S/s),A=S=>b+C(S),V=S=>{const M=C(S),T=A(S);h.done=Math.abs(M)<=c,h.value=h.done?b:T};let v,w;const F=S=>{p(h.value)&&(v=S,w=gt({keyframes:[h.value,y(h.value)],velocity:wn(A,S,h.value),damping:i,stiffness:r,restDelta:c,restSpeed:l}))};return F(0),{calculatedDuration:null,next:S=>{let M=!1;return!w&&v===void 0&&(M=!0,V(S),F(S)),v!==void 0&&S>=v?w.next(S-v):(!M&&V(S),h)}}}function ni(e,t,n){const s=[],i=n||X.mix||Mn,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||it:t;a=ee(u,a)}s.push(a)}return s}function si(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(te(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ni(t,s,i),u=a.length,c=l=>{if(o&&l<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(l<e[f+1]);f++);const h=ne(e[f],e[f+1],l);return a[f](h)};return n?l=>c(z(e[0],e[r-1],l)):c}function Cn(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=ne(0,t,s);e.push(ot(n,1,i))}}function Fn(e){const t=[0];return Cn(t,e.length-1),t}function ii(e,t){return e.map(n=>n*t)}function ri(e,t){return e.map(()=>t||fn).splice(0,e.length-1)}function pt({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=hn(s)?s.map(Ot):Ot(s),r={done:!1,value:t[0]},o=ii(n&&n.length===t.length?n:Fn(t),e),a=si(o,t,{ease:Array.isArray(i)?i:ri(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const oi=e=>e!==null;function Dt(e,{repeat:t,repeatType:n="loop"},s,i=1){const r=e.filter(oi),a=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const ai={decay:Wt,inertia:Wt,tween:pt,keyframes:pt,spring:gt};function Dn(e){typeof e.type=="string"&&(e.type=ai[e.type])}class fe{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const li=e=>e/100;class Ct extends fe{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=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Dn(t);const{type:n=pt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||pt;u!==pt&&typeof a[0]!="number"&&(this.mixKeyframes=ee(li,Mn(a[0],a[1])),a=[0,100]);const c=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=ce(c));const{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,V=s;
1if(f){const S=Math.min(this.currentTime,i)/a;let M=Math.floor(S),T=S%1;!T&&S>=1&&(T=1),T===1&&M--,M=Math.min(M,f+1),!!(M%2)&&(h==="reverse"?(T=1-T,p&&(T-=p/a)):h==="mirror"&&(V=o)),A=z(0,1,T)*a}let v;C?(this.delayState.value=l[0],v=this.delayState):v=V.next(A),r&&!C&&(v.value=r(v.value));let{done:w}=v;!C&&u!==null&&(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return F&&y!==Wt&&(v.value=Dt(l,this.options,g,this.speed)),m&&m(v.value),F&&this.finish(),v}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(this.currentTime)}set time(t){t=O(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 n=this.generator.next(t).value;return wn(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(P.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=K(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Xs,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function ui(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Z=e=>e*180/Math.PI,$t=e=>{const t=Z(Math.atan2(e[1],e[0]));return jt(t)},ci={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$t,rotateZ:$t,skewX:e=>Z(Math.atan(e[1])),skewY:e=>Z(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jt=e=>(e=e%360,e<0&&(e+=360),e),Oe=$t,Be=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ke=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Be,scaleY:Ke,scale:e=>(Be(e)+Ke(e))/2,rotateX:e=>jt(Z(Math.atan2(e[6],e[5]))),rotateY:e=>jt(Z(Math.atan2(-e[2],e[0]))),rotateZ:Oe,rotate:Oe,skewX:e=>Z(Math.atan(e[4])),skewY:e=>Z(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function _t(e){return e.includes("scale")?1:0}function Ut(e,t){if(!e||e==="none")return _t(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=fi,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ci,i=a}if(!i)return _t(t);const r=s[t],o=i[1].split(",").map(di);return typeof r=="function"?r(o):o[r]}const hi=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ut(n,t)};function di(e){return parseFloat(e.trim())}const at=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],lt=new Set([...at,"pathRotation"]),Ne=e=>e===rt||e===d,pi=new Set(["x","y","z"]),mi=at.filter(e=>!pi.has(e));function gi(e){const t=[];
1return mi.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const Y={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const i=e.max-e.min;return s==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ut(t,"x"),y:(e,{transform:t})=>Ut(t,"y")};Y.translateX=Y.x;Y.translateY=Y.y;const H=new Set;let Gt=!1,Yt=!1,zt=!1;function Rn(){if(Yt){const e=Array.from(H).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=gi(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Yt=!1,Gt=!1,H.forEach(e=>e.complete(zt)),H.clear()}function En(){H.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yt=!0)})}function yi(){zt=!0,En(),Rn(),zt=!1}class he{constructor(t,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(H.add(this),Gt||(Gt=!0,W.read(En),W.resolveKeyframes(Rn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;if(t[0]===null){const r=i?.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),i&&r===void 0&&i.set(t[0])}ui(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),H.delete(this)}cancel(){this.state==="scheduled"&&(H.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bi=e=>e.startsWith("--");function Pn(e,t,n){bi(t)?e.style.setProperty(t,n):e.style[t]=n}const Ti={};function kn(e,t){const n=en(e);return()=>Ti[t]??n()}const vi=kn(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),In=kn(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ht=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Le={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ht([0,.65,.55,1]),circOut:ht([.55,0,1,.45]),backIn:ht([.31,.01,.66,-.59]),backOut:ht([.33,1.53,.69,.99])};function On(e,t){if(e)return typeof e=="function"?In()?An(e,t):"ease-out":pn(e)?ht(e):Array.isArray(e)?e.map(n=>On(n,t)||Le.easeOut):Le[e]}function Si(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},c=void 0){const l={[t]:n};u&&(l.offset=u);const f=On(a,i);Array.isArray(f)&&(l.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(l,h)}function de(e){return typeof e=="function"&&"applyToOptions"in e}function Vi({type:e,...t}){return de(e)&&In()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Bn extends fe{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,te(typeof t.type!="string");const c=Vi(t);this.animation=Si(n,s,i,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const l=Dt(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),Pn(n,s,l),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return K(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=O(t),n&&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:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&vi()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),it):i(this)}}const Kn={anticipate:un,backInOut:ln,circInOut:cn};function Mi(e){return e in Kn}function Ai(e){typeof e.ease=="string"&&Mi(e.ease)&&(e.ease=Kn[e.ease])}const It=10;class xi extends Bn{constructor(t){Ai(t),Dn(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Ct({...o,autoplay:!1}),u=Math.max(It,P.now()-this.startTime),c=z(0,It,u-It),l=a.sample(u).value,{name:f}=this.options;r&&f&&Pn(r,f,l),n.setWithVelocity(a.sample(Math.max(0,u-c)).value,l,c),a.stop()}}const We=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(N.test(e)||e==="0")&&!e.startsWith("url("));function wi(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ci(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=We(i,t),a=We(r,t);return!o||!a?!1:wi(e)||(n==="spring"||de(n))&&s}function Xt(e){e.duration=0,e.type="keyframes"}const Nn=new Set(["opacity","clipPath","filter","transform"]),Fi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Di(e){for(let t=0;t<e.length;
1t++)if(typeof e[t]=="string"&&Fi.test(e[t]))return!0;return!1}const Ri=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ei=en(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Pi(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Ei()&&n&&(Nn.has(n)||Ri.has(n)&&Di(a))&&(n!=="transform"||!l)&&!c&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ki=40;class Ii extends fe{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:c,element:l,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();const h={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:c,element:l,...f},p=l?.KeyframeResolver||he;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,h,!g),u,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:c,onUpdate:l}=s;this.resolvedAt=P.now();let f=!0;Ci(t,r,o,a)||(f=!1,(X.instantAnimations||!u)&&l?.(Dt(t,s,n)),t[0]=t[t.length-1],Xt(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ki?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},y=f&&!c&&Pi(p),m=p.motionValue?.owner?.current;let g;if(y)try{g=new xi({...p,element:m})}catch{g=new Ct(p)}
1else g=new Ct(p);g.finished.then(()=>{this.notifyFinished()}).catch(it),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,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yi()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class Oi{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,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t){const n=this.animations.map(s=>s.attachTimeline(t));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].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 $e(this.animations,"duration")}get iterationDuration(){return $e(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function $e(e,t){let n=0;for(let s=0;s<e.length;s++){const i=e[s][t];i!==null&&i>n&&(n=i)}return n}class Bi extends Oi{then(t,n){return this.finished.finally(t).then(()=>{})}}const je=30,Ki=e=>!isNaN(parseFloat(e));class Ni{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=P.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=P.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ki(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new nn);const s=this.events[t].add(n);return t==="change"?()=>{s(),W.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.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 this.current}getPrevious(){return this.prev}getVelocity(){const t=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>je)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,je);return sn(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function st(e,t){return new Ni(e,t)}function Ln(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Wn(e,t){const n=e?.[t]??e?.default??e;return n!==e?Ln(n,e):n}const Li={type:"spring",stiffness:500,damping:25,restSpeed:10},Wi=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$i={type:"keyframes",duration:.8},ji={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_i=(e,{keyframes:t})=>t.length>2?$i:lt.has(e)?e.startsWith("scale")?Wi(t[1]):Li:ji,Ui=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Gi(e){for(const t in e)if(!Ui.has(t))return!0;return!1}const $n=(e,t,n,s={},i,r)=>
1o=>{const a=Wn(s,e)||{},u=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-O(u);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Gi(a)||Object.assign(l,_i(e,l)),l.duration&&(l.duration=O(l.duration)),l.repeatDelay&&(l.repeatDelay=O(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Xt(l),l.delay===0&&(f=!0)),(X.instantAnimations||X.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,Xt(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const h=Dt(l.keyframes,a);if(h!==void 0){W.update(()=>{l.onUpdate(h),l.onComplete()});return}}return a.isSync?new Ct(l):new Ii(l)},Yi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zi(e){const t=Yi.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function jn(e,t,n=1){const[s,i]=zi(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return Qe(o)?parseFloat(o):o}return oe(i)?jn(i,t,n+1):i}function _e(e){const t=[{},{}];return e?.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function _n(e,t,n,s){if(typeof t=="function"){const[i,r]=_e(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=_e(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function Xi(e,t,n){const s=e.getProps();return _n(s,t,s.custom,e)}const Un=new Set(["width","height","top","left","right","bottom",...at]),qi=e=>Array.isArray(e);function Zi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,st(n))}function Hi(e){return qi(e)?e[e.length-1]||0:e}function Ji(e,t){const n=Xi(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Hi(r[o]);Zi(e,o,a)}}const E=e=>!!(e&&e.getVelocity);function Qi(e){return!!(E(e)&&e.add)}function tr(e,t){const n=e.getValue("willChange");if(Qi(n))return n.add(t);if(!n&&X.WillChange){const s=new X.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function pe(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const er="framerAppearId",nr="data-"+pe(er);function sr(e){return e.props[nr]}function ir({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function rr(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?Ln(r,u):u;const c=r?.reduceMotion,l=r?.skipAnimations;s&&(r=s);const f=[],h=i&&e.animationState&&e.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(e,a,r,n,f);for(const y in a){const m=e.getValue(y,e.latestValues[y]??null),g=a[y];if(g===void 0||h&&ir(h,y))continue;const b={delay:n,...Wn(r||{},y)};l&&(b.skipAnimations=!0);const C=m.get();if(C!==void 0&&!m.isAnimating()&&!Array.isArray(g)&&g===C&&!b.velocity){W.update(()=>m.set(g));continue}let A=!1;if(window.MotionHandoffAnimation){const w=sr(e);if(w){const F=window.MotionHandoffAnimation(w,y,W);F!==null&&(b.startTime=F,A=!0)}}tr(e,y);const V=c??e.shouldReduceMotion;m.start($n(y,m,g,V&&Un.has(y)?{type:!1}:b,e,A));const v=m.animation;v&&f.push(v)}if(o){const y=()=>W.update(()=>{o&&Ji(e,o)});f.length?Promise.all(f).then(y):y()}return f}const or={test:e=>e==="auto",parse:e=>e},Gn=e=>t=>t.test(e),Yn=[rt,d,et,U,Ds,Fs,or],Ue=e=>Yn.find(Gn(e));function ar(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tn(e):!0}const lr=new Set(["brightness","contrast","saturate","opacity"]);function ur(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(ae)||[];if(!s)return e;const i=n.replace(s,"");let r=lr.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const cr=/\b([a-z-]*)\(.*?\)/gu,qt={...N,getAnimatableNone:e=>{const t=e.match(cr);return t?t.map(ur).join(" "):e}},Zt={...N,getAnimatableNone:e=>{const t=N.parse(e);return N.createTransformer(e)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Ge={...rt,transform:Math.round},fr={rotate:U,pathRotation:U,rotateX:U,rotateY:U,rotateZ:U,scale:Vt,scaleX:Vt,scaleY:Vt,scaleZ:Vt,skew:U,skewX:U,skewY:U,distance:d,translateX:d,translateY:d,translateZ:d,x:d,y:d,z:d,perspective:d,transformPerspective:d,opacity:mt,originX:Re,originY:Re,originZ:d},Ft={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
1: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,...fr,zIndex:Ge,fillOpacity:mt,strokeOpacity:mt,numOctaves:Ge},hr={...Ft,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:qt,WebkitFilter:qt,mask:Zt,WebkitMask:Zt},zn=e=>hr[e],dr=new Set([qt,Zt]);function Xn(e,t){let n=zn(e);return dr.has(n)||(n=N),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pr=new Set(["auto","none","0"]);function mr(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!pr.has(r)&&nt(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=Xn(n,i)}class gr extends he{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),oe(f))){const h=jn(f,n.current);h!==void 0&&(t[l]=h),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Un.has(s)||t.length!==2)return;const[i,r]=t,o=Ue(i),a=Ue(r),u=De(i),c=De(r);if(u!==c&&Y[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ne(o)&&Ne(a))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else Y[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||ar(t[i]))&&s.push(i);s.length&&mr(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Y[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=Y[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const yr=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function qn(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}const Ht=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:br}=mn(queueMicrotask,!1);function Zn(e){return us(e)&&"ownerSVGElement"in e}function Tr(e){return Zn(e)&&e.tagName==="svg"}function vr(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function Sr(e=.1,{startDelay:t=0,from:n=0,ease:s}={}){return(i,r)=>{const o=typeof n=="number"?n:vr(n,r),a=Math.abs(o-i);let u=e*a;if(s){const c=r*e;u=Ot(s)(u/c)*c}return t+u}}const Vr=[...Yn,R,N],Mr=e=>Vr.find(Gn(e)),Ye=()=>({min:0,max:0}),me=()=>({x:Ye(),y:Ye()}),yt=new WeakMap;function Ar(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function xr(e){return typeof e=="string"||Array.isArray(e)}const wr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cr=["initial",...wr];function Hn(e){return Ar(e.animate)||Cr.some(t=>xr(e[t]))}function Fr(e){return!!(Hn(e)||e.variants)}function Dr(e,t,n){for(const s in t){const i=t[s],r=n[s];if(E(i))e.addValue(s,i);else if(E(r))e.addValue(s,st(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,st(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Jt={current:null},Jn={current:!1},Rr=typeof window<"u";function Er(){if(Jn.current=!0,!!Rr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jt.current=e.matches;e.addEventListener("change",t),t()}else Jt.current=!1}const ze=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xe={};class Qn{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,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=he,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 p=P.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,W.render(this.render,!1,!0))};const{latestValues:c,renderState:l}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Hn(n),this.isVariantNode=Fr(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&E(y)&&y.set(c[p])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,yt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Jn.current||Er(),this.shouldReduceMotion=Jt.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Bt(this.notifyUpdate),Bt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];
1n&&(n.unmount(),n.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,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Nn.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:u,ease:c,duration:l}=n.accelerate,f=new Bn({element:this.current,name:t,keyframes:a,times:u,ease:c,duration:O(l)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const s=lt.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&W.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),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 Xe){const n=Xe[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(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):me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ze.length;s++){const i=ze[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Dr(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=st(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Qe(s)||tn(s))?s=parseFloat(s):!Mr(s)&&N.test(n)&&(s=Xn(t,n)),this.setBaseTarget(t,E(s)?s.get():s)),E(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=_n(this.props,n,this.presenceContext?.custom);r&&(s=r[t])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!E(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new nn),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){br.render(this.render)}}class ts extends Qn{constructor(){super(...arguments),this.KeyframeResolver=gr}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;E(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Pr({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function kr(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Ir(e,t){return Pr(kr(e.getBoundingClientRect(),t))}const Or={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Br=at.length;function Kr(e,t,n){let s="",i=!0;for(let o=0;o<Br;o++){const a=at[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(a.startsWith("scale")?1:0);else{const l=parseFloat(u);c=a.startsWith("scale")?l===1:l===0}if(!c||n){const l=Ht(u,Ft[a]);if(!c){i=!1;const f=Or[a]||a;s+=`${f}(${l}) `}n&&(t[a]=l)}}const r=e.pathRotation;return r&&(i=!1,s+=`rotate(${Ht(r,Ft.pathRotation)}) `),s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}
1function es(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const u in t){const c=t[u];if(lt.has(u)){o=!0;continue}else if(yn(u)){i[u]=c;continue}else{const l=Ht(c,Ft[u]);u.startsWith("origin")?(a=!0,r[u]=l):s[u]=l}}if(t.transform||(o||n?s.transform=Kr(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:u="50%",originY:c="50%",originZ:l=0}=r;s.transformOrigin=`${u} ${c} ${l}`}}function ns(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function qe(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ft={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(d.test(e))e=parseFloat(e);else return e;const n=qe(e,t.target.x),s=qe(e,t.target.y);return`${n}% ${s}%`}},Nr={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=N.parse(e);if(i.length>5)return s;const r=N.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;const c=ot(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),r(i)}},Lr={borderRadius:{...ft,applyTo:[...yr]},borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomLeftRadius:ft,borderBottomRightRadius:ft,boxShadow:Nr};function Wr(e,{layout:t,layoutId:n}){return lt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lr[e]||e==="opacity")}function ss(e,t,n){const s=e.style,i=t?.style,r={};if(!s)return r;for(const o in s)(E(s[o])||i&&E(i[o])||Wr(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function $r(e){return window.getComputedStyle(e)}class jr extends ts{constructor(){super(...arguments),this.type="html",this.renderInstance=ns}readValueFromInstance(t,n){if(lt.has(n))return this.projection?.isProjecting?_t(n):hi(t,n);{const s=$r(t),i=(yn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ir(t,n)}build(t,n,s){es(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return ss(t,n,s)}}function _r(e,t){return e in t}class Ur extends Qn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(_r(n,t)){const s=t[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return me()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Gr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yr={offset:"strokeDashoffset",array:"strokeDasharray"};function zr(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?Gr:Yr;e[r.offset]=`${-s}`,e[r.array]=`${t} ${n}`}const Xr=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qr(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},u,c,l){if(es(e,a,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=l?.transformBox??"fill-box",delete f.transformBox);for(const p of Xr)f[p]!==void 0&&(h[p]=f[p],delete f[p]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&zr(f,i,r,o,!1)}const is=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"]),Zr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hr(e,t,n,s){ns(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(is.has(i)?i:pe(i),t.attrs[i])}function Jr(e,t,n){const s=ss(e,t,n);for(const i in e)if(E(e[i])||E(t[i])){const r=at.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}class Qr extends ts{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=me}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(lt.has(n)){const s=zn(n);return s&&s.default||0}return n=is.has(n)?n:pe(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Jr(t,n,s)}build(t,n,s){qr(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){Hr(t,n,s,i)}mount(t){this.isSVGTag=Zr(t.tagName),super.mount(t)}}function to(e,t,n){const s=E(e)?e:st(e);return s.start($n("",s,t,n)),s.animation}function ge(e){return typeof e=="object"&&!Array.isArray(e)}function rs(e,t,n,s){return e==null?[]:typeof e=="string"&&ge(t)?qn(e,n,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(i=>i!=null):[e]}function eo(e,t,n){return e*(t+1)+n*t}function Ze(e,t,n,s){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):s.get(t)??e}function no(e,t,n){for(let s=0;s<e.length;s++){const i=e[s];i.at>t&&i.at<n&&(Qt(e,i),s--)}}function so(e,t,n,s,i,r){no(e,i,r);for(let o=0;o<t.length;
1o++)e.push({value:t[o],at:ot(i,r,s[o]),easing:dn(n,o)})}function io(e,t,n=0){const s=t+1+t*n;for(let i=0;i<e.length;i++)e[i]=e[i]/s}function ro(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const oo="easeInOut",ao=20;function lo(e,{defaultTransition:t={},...n}={},s,i){const r=t.duration||.3,o=new Map,a=new Map,u={},c=new Map;let l=0,f=0,h=0;for(let p=0;p<e.length;p++){const y=e[p];if(typeof y=="string"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,Ze(f,y.at,l,c));continue}let[m,g,b={}]=y;b.at!==void 0&&(f=Ze(f,b.at,l,c));let C=0;const A=(V,v,w,F=0,S=0)=>{const M=uo(V),{delay:T=0,times:x=Fn(M),type:k=t.type||"keyframes",repeat:L,repeatType:I,repeatDelay:$=0,...j}=v;let{ease:_=t.ease||"easeOut",duration:B}=v;const ye=typeof T=="function"?T(F,S):T,be=M.length,Te=de(k)?k:i?.[k||"keyframes"];if(be<=2&&Te){let J=100;if(be===2&&ho(M)){const ut=M[1]-M[0];J=Math.abs(ut)}const Q={...t,...j};B!==void 0&&(Q.duration=O(B));const vt=xn(Q,J,Te);_=vt.ease,B=vt.duration}B??(B=r);const ve=f+ye;x.length===1&&x[0]===0&&(x[1]=1);const Se=x.length-M.length;if(Se>0&&Cn(x,Se),M.length===1&&M.unshift(null),L&&L<ao){const J=B>0?$/B:0;B=eo(B,L,$);const Q=[...M],vt=[...x];_=Array.isArray(_)?[..._]:[_];const ut=[..._],Me=I==="reverse"||I==="mirror";let Ae=Q,xe=ut;Me&&(Ae=[...Q].reverse(),I==="reverse"&&(xe=[...ut].reverse().map(G=>typeof G=="function"?se(G):G)));for(let G=0;G<L;G++){const we=Me&&G%2===0,Ce=we?Ae:Q,as=we?xe:ut,Fe=(G+1)*(1+J);J>0&&(M.push(M[M.length-1]),x.push(Fe),_.push("linear")),M.push(...Ce);for(let ct=0;ct<Ce.length;ct++)x.push(vt[ct]+Fe),_.push(ct===0?"linear":dn(as,ct-1))}io(x,L,J)}const Ve=ve+B;so(w,M,_,x,ve,Ve),C=Math.max(ye+B,C),h=Math.max(Ve,h)};if(E(m)){const V=He(m,a);A(g,b,Je("default",V))}else{const V=rs(m,g,s,u),v=V.length;for(let w=0;w<v;w++){g=g,b=b;const F=V[w],S=He(F,a);for(const M in g)A(g[M],co(b,M),Je(M,S),w,v)}}l=f,f+=C}return a.forEach((p,y)=>{for(const m in p){const g=p[m];g.sort(ro);const b=[],C=[],A=[];for(let F=0;F<g.length;F++){const{at:S,value:M,easing:T}=g[F];b.push(M),C.push(ne(0,h,S)),A.push(T||"easeOut")}C[0]!==0&&(C.unshift(0),b.unshift(b[0]),A.unshift(oo)),C[C.length-1]!==1&&(C.push(1),b.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const V=o.get(y);V.keyframes[m]=b;const{type:v,...w}=t;V.transition[m]={...w,duration:h,ease:A,times:C,...n}}}),o}function He(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Je(e,t){return t[e]||(t[e]=[]),t[e]}function uo(e){return Array.isArray(e)?e:[e]}function co(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const fo=e=>typeof e=="number",ho=e=>e.every(fo);function po(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Zn(e)&&!Tr(e)?new Qr(t):new jr(t);n.mount(e),yt.set(e,n)}function mo(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Ur(t);n.mount(e),yt.set(e,n)}function go(e,t){return E(e)||typeof e=="number"||typeof e=="string"&&!ge(t)}function os(e,t,n,s){const i=[];if(go(e,t))i.push(to(e,ge(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;const r=rs(e,t,s),o=r.length;for(let a=0;a<o;a++){const u=r[a],c=u instanceof Element?po:mo;yt.has(u)||c(u);const l=yt.get(u),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...rr(l,{...t,transition:f},{}))}}return i}function yo(e,t,n){const s=[],i=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],u=st(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 lo(i,t,n,{spring:gt}).forEach(({keyframes:o,transition:a},u)=>{s.push(...os(u,o,a))}),s}function bo(e){return Array.isArray(e)&&e.some(Array.isArray)}function To(e={}){const{scope:t,reduceMotion:n,skipAnimations:s}=e;function i(r,o,a){let u=[],c;const l={};if(n!==void 0&&(l.reduceMotion=n),s!==void 0&&(l.skipAnimations=s),bo(r)){const{onComplete:h,...p}=o||{};typeof h=="function"&&(c=h),u=yo(r,{...l,...p},t)}else{const{onComplete:h,...p}=a||{};typeof h=="function"&&(c=h),u=os(r,o,{...l,...p},t)}const f=new Bi(u);return c&&f.finished.then(c),t&&(t.animations.push(f),f.finished.then(()=>{Qt(t.animations,f)})),f}return i}const vo=To(),So={some:0,all:1};function Vo(e,t,{root:n,margin:s,amount:i="some"}={}){const r=qn(e),o=new WeakMap,a=c=>
1{c.forEach(l=>{const f=o.get(l.target);if(l.isIntersecting!==!!f)if(l.isIntersecting){const h=t(l.target,l);typeof h=="function"?o.set(l.target,h):u.unobserve(l.target)}else typeof f=="function"&&(f(l),o.delete(l.target))})},u=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:So[i]});return r.forEach(c=>u.observe(c)),()=>u.disconnect()}const Mo=document.querySelectorAll(".animated-text");Mo.forEach(e=>{const t=parseFloat(e.getAttribute("data-duration")),n=parseFloat(e.getAttribute("data-delay")),s=parseFloat(e.getAttribute("data-stagger"));Vo(e,i=>{const r=i.querySelectorAll(".word");return vo(r,{opacity:1,y:0,filter:"blur(0px)"},{duration:t,delay:Sr(s,{startDelay:n}),easing:"ease-out"}),()=>{}})});

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