PageSourceSearch

https://captrack.ai/build/assets/OurPartners-Bw2cn8JM.js

js captrack.ai collected 2026-10-05 13:06:24 UTC 136,862 bytes, 1 lines download raw bytes

vendor: 29,401 bytes, line 1
1import{r as P,j as m,X as Lo,L as Fo,P as Bo,e as No,A as zs,b8 as Io,aD as Oo,b7 as Gs,aQ as Wo,aR as Uo,l as Ko}from"./main-B-2yXN8h.js";const _s=P.createContext({});function zo(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const Go=typeof window<"u",_o=Go?P.useLayoutEffect:P.useEffect,tn=P.createContext(null);function en(t,e){t.indexOf(e)===-1&&t.push(e)}function Zt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const tt=(t,e,n)=>n>e?e:n<t?t:n;let nn=()=>{};const it={},$s=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Hs=t=>typeof t=="object"&&t!==null,Ys=t=>/^0[^.\s]+$/u.test(t);function Xs(t){let e;return()=>(e===void 0&&(e=t()),e)}const _=t=>t,Ft=(...t)=>t.reduce((e,n)=>s=>n(e(s))),kt=(t,e,n)=>{const s=e-t;return s?(n-t)/s:1};class sn{constructor(){this.subscriptions=[]}add(e){return en(this.subscriptions,e),()=>Zt(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,G=t=>t/1e3,qs=(t,e)=>e?t*(1e3/e):0,Zs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$o=1e-7,Ho=12;function Yo(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Zs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>$o&&++a<Ho);return o}function Bt(t,e,n,s){if(t===e&&n===s)return _;const i=r=>Yo(r,0,1,t,n);return r=>r===0||r===1?r:Zs(i(r),e,s)}const Js=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Qs=t=>e=>1-t(1-e),ti=Bt(.33,1.53,.69,.99),on=Qs(ti),ei=Js(on),ni=t=>t>=1?1:(t*=2)<1?.5*on(t):.5*(2-Math.pow(2,-10*(t-1))),rn=t=>1-Math.sin(Math.acos(t)),si=Qs(rn),ii=Js(rn),Xo=Bt(.42,0,1,1),qo=Bt(0,0,.58,1),oi=Bt(.42,0,.58,1),Zo=t=>Array.isArray(t)&&typeof t[0]!="number",ri=t=>Array.isArray(t)&&typeof t[0]=="number",Jo={linear:_,easeIn:Xo,easeInOut:oi,easeOut:qo,circIn:rn,circInOut:ii,circOut:si,backIn:on,backInOut:ei,backOut:ti,anticipate:ni},Qo=t=>typeof t=="string",En=t=>{if(ri(t)){nn(t.length===4);const[e,n,s,i]=t;return Bt(e,n,s,i)}else if(Qo(t))return Jo[t];return t},Ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tr(t){let e=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){r.has(l)&&(c.schedule(l),t()),l(o)}const c={schedule:(l,u=!1,h=!1)=>{const p=h&&s?e:n;return u&&r.add(l),p.add(l),l},cancel:l=>{n.delete(l),r.delete(l)},process:l=>{if(o=l,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,c.process(l))}};return c}const er=40;function ai(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Ot.reduce((v,b)=>(v[b]=tr(r),v),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:h,preRender:d,render:p,postRender:f}=o,g=()=>{const v=it.useManualTiming,b=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(b-i.timestamp,er),1)),i.timestamp=b,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),h.process(i),d.process(i),p.process(i),f.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Ot.reduce((v,b)=>{const V=o[b];return v[b]=(D,C=!1,A=!1)=>(n||y(),V.schedule(D,C,A)),v},{}),cancel:v=>{for(let b=0;b<Ot.length;b++)o[Ot[b]].cancel(v)},state:i,steps:o}}const{schedule:M,cancel:ot,state:N,steps:de}=ai(typeof requestAnimationFrame<"u"?requestAnimationFrame:_,!0);let zt;function nr(){zt=void 0}const O={now:()=>(zt===void 0&&O.set(N.isProcessing||it.useManualTiming?N.timestamp:performance.now()),zt),set:t=>{zt=t,queueMicrotask(nr)}},li=t=>e=>typeof e=="string"&&e.startsWith(t),ci=li("--"),sr=li("var(--"),an=t=>sr(t)?ir.test(t.split("/*")[0].trim()):!1,ir=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Mn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const bt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rt={...bt,transform:t=>tt(0,1,t)},Wt={...bt,default:1},Ct=t=>Math.round(t*1e5)/1e5,ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function or(t){return t==null}const rr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cn=(t,e)=>n=>!!(typeof n=="string"&&rr.test(n)&&n.startsWith(t)||e&&!or(n)&&Object.prototype.hasOwnProperty.call(n,e)),ui=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(ln);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ar=t=>tt(0,255,t),fe={...bt,transform:t=>Math.round(ar(t))},ht={test:cn("rgb","red"),parse:ui("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+fe.transform(t)+", "+fe.transform(e)+", "+fe.transform(n)+", "+Ct(Rt.transform(s))+")"};function lr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const Me={test:cn("#"),parse:lr,transform:ht.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Nt("deg"),Q=Nt("%"),T=Nt("px"),cr=Nt("vh"),ur=Nt("vw"),Dn={...Q,parse:t=>Q.parse(t)/100,transform:t=>Q.transform(t*100)},yt={test:cn("hsl","hue"),parse:ui("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Q.transform(Ct(e))+", "+Q.transform(Ct(n))+", "+Ct(Rt.transform(s))+")"},j={test:t=>ht.test(t)||Me.test(t)||yt.test(t),parse:t=>ht.test(t)?ht.parse(t):yt.test(t)?yt.parse(t):Me.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):yt.transform(t),getAnimatableNone:t=>{const e=j.parse(t);return e.alpha=0,j.transform(e)}},hr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dr(t){return isNaN(t)&&typeof t=="string"&&(t.match(ln)?.length||0)+(t.match(hr)?.length||0)>0}const hi="number",di="color",fr="var",mr="var(",kn="${}",pr=/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 wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(pr,c=>(j.test(c)?(s.color.push(r),i.push(di),n.push(j.parse(c))):c.startsWith(mr)?(s.var.push(r),i.push(fr),n.push(c)):(s.number.push(r),i.push(hi),n.push(parseFloat(c))),++r,kn)).split(kn);return{values:n,split:a,indexes:s,types:i}}function gr(t){return wt(t).values}function fi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;r<n;r++)if(i+=t[r],s[r]!==void 0){const o=e[r];o===hi?i+=Ct(s[r]):o===di?i+=j.transform(s[r]):i+=s[r]}return i}}function yr(t){return fi(wt(t))}const xr=t=>typeof t=="number"?0:j.test(t)?j.getAnimatableNone(t):t,vr=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:xr(t);function wr(t){const e=wt(t);return fi(e)(e.values.map((s,i)=>vr(s,e.split[i])))}const Y={test:dr,parse:gr,createTransformer:yr,getAnimatableNone:wr};function me(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Tr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=me(c,a,t+1/3),r=me(c,a,t),o=me(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Jt(t,e){return n=>n>0?e:t}const E=(t,e,n)=>t+(e-t)*n,pe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},br=[Me,ht,yt],Pr=t=>br.find(e=>e.test(t));function Rn(t){const e=Pr(t);if(!e)return!1;let n=e.parse(t);return e===yt&&(n=Tr(n)),n}const jn=(t,e)=>{const n=Rn(t),s=Rn(e);if(!n||!s)return Jt(t,e);const i={...n};return r=>(i.red=pe(n.red,s.red,r),i.green=pe(n.green,s.green,r),i.blue=pe(n.blue,s.blue,r),i.alpha=E(n.alpha,s.alpha,r),ht.transform(i))},De=new Set(["none","hidden"]);function Sr(t,e){return De.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Ar(t,e){return n=>E(t,e,n)}function un(t){return typeof t=="number"?Ar:typeof t=="string"?an(t)?Jt:j.test(t)?jn:Er:Array.isArray(t)?mi:typeof t=="object"?j.test(t)?jn:Vr:Jt}function mi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>un(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Vr(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=un(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Cr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}const Er=(t,e)=>{const n=Y.createTransformer(e),s=wt(t),i=wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?De.has(t)&&!i.values.length||De.has(e)&&!s.values.length?Sr(t,e):Ft(mi(Cr(s,i),i.values),n):Jt(t,e)};function pi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?E(t,e,n):un(t)(t,e)}const Mr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>M.update(e,n),stop:()=>ot(e),now:()=>N.isProcessing?N.timestamp:O.now()}},gi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=Math.round(t(r/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Qt=2e4;function hn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Qt;)e+=n,s=t.next(e);return e>=Qt?1/0:e}function Dr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(hn(s),Qt);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:G(i)}}const k={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 ke(t,e){return t*Math.sqrt(1-e*e)}const kr=12;function Rr(t,e,n){let s=n;for(let i=1;i<kr;i++)s=s-t(s)/e(s);return s}const ge=.001;function jr({duration:t=k.duration,bounce:e=k.bounce,velocity:n=k.velocity,mass:s=k.mass}){let i,r,o=1-e;o=tt(k.minDamping,k.maxDamping,o),t=tt(k.minDuration,k.maxDuration,G(t)),o<1?(i=l=>{const u=l*o,h=u*t,d=u-n,p=ke(l,o),f=Math.exp(-h);return ge-d/p*f},r=l=>{const h=l*o*t,d=h*n+n,p=Math.pow(o,2)*Math.pow(l,2)*t,f=Math.exp(-h),g=ke(Math.pow(l,2),o);return(-i(l)+ge>0?-1:1)*((d-p)*f)/g}):(i=l=>{const u=Math.exp(-l*t),h=(l-n)*t+1;return-ge+u*h},r=l=>{const u=Math.exp(-l*t),h=(n-l)*(t*t);return u*h});const a=5/t,c=Rr(i,r,a);if(t=K(t),isNaN(c))return{stiffness:k.stiffness,damping:k.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:t}}}const Lr=["duration","bounce"],Fr=["stiffness","damping","mass"];function Ln(t,e){return e.some(n=>t[n]!==void 0)}function Br(t){let e={velocity:k.velocity,stiffness:k.stiffness,damping:k.damping,mass:k.mass,isResolvedFromDuration:!1,...t};if(!Ln(t,Fr)&&Ln(t,Lr))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:k.mass,stiffness:i,damping:r}}else{const n=jr({...t,velocity:0});e={...e,...n,mass:k.mass},e.isResolvedFromDuration=!0}return e}function te(t=k.visualDuration,e=k.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:h,velocity:d,isResolvedFromDuration:p}=Br({...n,velocity:-G(n.velocity||0)}),f=d||0,g=l/(2*Math.sqrt(c*u)),y=o-r,x=G(Math.sqrt(c/u)),w=Math.abs(y)<5;s||(s=w?k.restSpeed.granular:k.restSpeed.default),i||(i=w?k.restDelta.granular:k.restDelta.default);let v,b,V,D,C,A;if(g<1)V=ke(x,g),D=(f+g*x*y)/V,v=S=>{const R=Math.exp(-g*x*S);return o-R*(D*Math.sin(V*S)+y*Math.cos(V*S))},C=g*x*D+y*V,A=g*x*y-D*V,b=S=>Math.exp(-g*x*S)*(C*Math.sin(V*S)+A*Math.cos(V*S));else if(g===1){v=R=>o-Math.exp(-x*R)*(y+(f+x*y)*R);const S=f+x*y;b=R=>Math.exp(-x*R)*(x*S*R-f)}else{const S=x*Math.sqrt(g*g-1);v=X=>{const et=Math.exp(-g*x*X),q=Math.min(S*X,300);return o-et*((f+g*x*y)*Math.sinh(q)+S*y*Math.cosh(q))/S};const R=(f+g*x*y)/S,U=g*x*R-y*S,at=g*x*y-R*S;b=X=>{const et=Math.exp(-g*x*X),q=Math.min(S*X,300);return et*(U*Math.sinh(q)+at*Math.cosh(q))}}const F={calculatedDuration:p&&h||null,velocity:S=>K(b(S)),next:S=>{if(!p&&g<1){const U=Math.exp(-g*x*S),at=Math.sin(V*S),X=Math.cos(V*S),et=o-U*(D*at+y*X),q=K(U*(C*at+A*X));return a.done=Math.abs(q)<=s&&Math.abs(o-et)<=i,a.value=a.done?o:et,a}const R=v(S);if(p)a.done=S>=h;else{const U=K(b(S));a.done=Math.abs(U)<=s&&Math.abs(o-R)<=i}return a.value=a.done?o:R,a},toString:()=>{const S=Math.min(hn(F),Qt),R=gi(U=>F.next(S*U).value,S,30);return S+"ms "+R},toTransition:()=>{}};return F}te.applyToOptions=t=>{const e=Dr(t,100,te);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const Nr=5;function yi(t,e,n){const s=Math.max(e-Nr,0);return qs(n-t(s),e-s)}function Re({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},p=A=>a!==void 0&&A<a||c!==void 0&&A>c,f=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let g=n*e;const y=h+g,x=o===void 0?y:o(y);x!==y&&(g=x-h);const w=A=>-g*Math.exp(-A/s),v=A=>x+w(A),b=A=>{const F=w(A),S=v(A);d.done=Math.abs(F)<=l,d.value=d.done?x:S};let V,D;const C=A=>{p(d.value)&&(V=A,D=te({keyframes:[d.value,f(d.value)],velocity:yi(v,A,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:A=>{let F=!1;return!D&&V===void 0&&(F=!0,b(A),C(A)),V!==void 0&&A>=V?D.next(A-V):(!F&&b(A),d)}}}function Ir(t,e,n){const s=[],i=n||it.mix||pi,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||_:e;a=Ft(c,a)}s.push(a)}return s}function Or(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(nn(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Ir(e,s,i),c=a.length,l=u=>{if(o&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const d=kt(t[h],t[h+1],u);return a[h](d)};return n?u=>l(tt(t[0],t[r-1],u)):l}function Wr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=kt(0,e,s);t.push(E(n,1,i))}}function Ur(t){const e=[0];return Wr(e,t.length-1),e}function Kr(t,e){return t.map(n=>n*e)}function zr(t,e){return t.map(()=>e||oi).splice(0,t.length-1)}function Et({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Zo(s)?s.map(En):En(s),r={done:!1,value:e[0]},o=Kr(n&&n.length===e.length?n:Ur(e),t),a=Or(o,e,{ease:Array.isArray(i)?i:zr(e,i)});return{calculatedDuration:t,next:c=>(r.value=a(c),r.done=c>=t,r)}}const Gr=t=>t!==null;function le(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Gr),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const _r={decay:Re,inertia:Re,tween:Et,keyframes:Et,spring:te};function xi(t){typeof t.type=="string"&&(t.type=_r[t.type])}class dn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const $r=t=>t/100;class ee extends dn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;xi(e);const{type:n=Et,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const c=n||Et;c!==Et&&typeof a[0]!="number"&&(this.mixKeyframes=Ft($r,pi(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=hn(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:p,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const x=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,b=s;if(h){const A=Math.min(this.currentTime,i)/a;let F=Math.floor(A),S=A%1;!S&&A>=1&&(S=1),S===1&&F--,F=Math.min(F,h+1),F%2&&(d==="reverse"?(S=1-S,p&&(S-=p/a)):d==="mirror"&&(b=o)),v=tt(0,1,S)*a}let V;w?(this.delayState.value=u[0],V=this.delayState):V=b.next(v),r&&!w&&(V.value=r(V.value));let{done:D}=V;!w&&c!==null&&(D=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return C&&f!==Re&&(V.value=le(u,this.options,y,this.speed)),g&&g(V.value),C&&this.finish(),V}then(e,n){return this.finished.then(e,n)}get duration(){return G(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+G(e)}get time(){return G(this.currentTime)}set time(e){e=K(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return yi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(O.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=G(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Mr,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Hr(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const dt=t=>t*180/Math.PI,je=t=>{const e=dt(Math.atan2(t[1],t[0]));return Le(e)},Yr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:je,rotateZ:je,skewX:t=>dt(Math.atan(t[1])),skewY:t=>dt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Le=t=>(t=t%360,t<0&&(t+=360),t),Fn=je,Bn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Nn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Xr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bn,scaleY:Nn,scale:t=>(Bn(t)+Nn(t))/2,rotateX:t=>Le(dt(Math.atan2(t[6],t[5]))),rotateY:t=>Le(dt(Math.atan2(-t[2],t[0]))),rotateZ:Fn,rotate:Fn,skewX:t=>dt(Math.atan(t[4])),skewY:t=>dt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Be(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Xr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Yr,i=a}if(!i)return Fe(e);const r=s[e],o=i[1].split(",").map(Zr);return typeof r=="function"?r(o):o[r]}const qr=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Be(n,e)};function Zr(t){return parseFloat(t.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],St=new Set([...Pt,"pathRotation"]),In=t=>t===bt||t===T,Jr=new Set(["x","y","z"]),Qr=Pt.filter(t=>!Jr.has(t));function ta(t){const e=[];return Qr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const st={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Be(e,"x"),y:(t,{transform:e})=>Be(e,"y")};st.translateX=st.x;st.translateY=st.y;const ft=new Set;let Ne=!1,Ie=!1,Oe=!1;function vi(){if(Ie){const t=Array.from(ft).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ta(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ie=!1,Ne=!1,ft.forEach(t=>t.complete(Oe)),ft.clear()}function wi(){ft.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ie=!0)})}function ea(){Oe=!0,wi(),vi(),Oe=!1}class fn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ft.add(this),Ne||(Ne=!0,M.read(wi),M.resolveKeyframes(vi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Hr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ft.delete(this)}cancel(){this.state==="scheduled"&&(ft.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const na=t=>t.startsWith("--");function Ti(t,e,n){na(e)?t.style.setProperty(e,n):t.style[e]=n}const sa={};function bi(t,e){const n=Xs(t);return()=>sa[e]??n()}const ia=bi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Pi=bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,On={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vt([0,.65,.55,1]),circOut:Vt([.55,0,1,.45]),backIn:Vt([.31,.01,.66,-.59]),backOut:Vt([.33,1.53,.69,.99])};function Si(t,e){if(t)return typeof t=="function"?Pi()?gi(t,e):"ease-out":ri(t)?Vt(t):Array.isArray(t)?t.map(n=>Si(n,e)||On.easeOut):On[t]}function oa(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const h=Si(a,i);Array.isArray(h)&&(u.easing=h);const d={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return l&&(d.pseudoElement=l),t.animate(u,d)}function Ai(t){return typeof t=="function"&&"applyToOptions"in t}function ra({type:t,...e}){return Ai(t)&&Pi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Vi extends dn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,nn(typeof e.type!="string");const l=ra(e);this.animation=oa(n,s,i,l,r),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=le(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Ti(n,s,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return G(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+G(e)}get time(){return G(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=K(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ia()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),_):i(this)}}const Ci={anticipate:ni,backInOut:ei,circInOut:ii};function aa(t){return t in Ci}function la(t){typeof t.ease=="string"&&aa(t.ease)&&(t.ease=Ci[t.ease])}const ye=10;class ca extends Vi{constructor(e){la(e),xi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new ee({...o,autoplay:!1}),c=Math.max(ye,O.now()-this.startTime),l=tt(0,ye,c-ye),u=a.sample(c).value,{name:h}=this.options;r&&h&&Ti(r,h,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const Wn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function ua(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function ha(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=Wn(i,e),a=Wn(r,e);return!o||!a?!1:ua(t)||(n==="spring"||Ai(n))&&s}function We(t){t.duration=0,t.type="keyframes"}const Ei=new Set(["opacity","clipPath","filter","transform"]),da=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function fa(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&da.test(t[e]))return!0;return!1}const ma=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),pa=Xs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ga(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return pa()&&n&&(Ei.has(n)||ma.has(n)&&fa(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ya=40;class xa extends dn{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:c,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.now();const d={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:c,motionValue:l,element:u,...h},p=u?.KeyframeResolver||fn;this.keyframeResolver=new p(a,(f,g,y)=>this.onKeyframesResolved(f,g,d,!y),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=O.now();let h=!0;ha(e,r,o,a)||(h=!1,(it.instantAnimations||!c)&&u?.(le(e,s,n)),e[0]=e[e.length-1],We(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ya?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},f=h&&!l&&ga(p),g=p.motionValue?.owner?.current;let y;if(f)try{y=new ca({...p,element:g})}catch{y=new ee(p)}else y=new ee(p);y.finished.then(()=>{this.notifyFinished()}).catch(_),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ea()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Mi(t,e,n,s=0,i=1){const r=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const Un=30,va=t=>!isNaN(parseFloat(t));class wa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=O.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(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new sn);const s=this.events[e].add(n);return e==="change"?()=>{s(),M.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Un)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Un);return qs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tt(t,e){return new wa(t,e)}function Di(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function mn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Di(n,t):n}const Ta={type:"spring",stiffness:500,damping:25,restSpeed:10},ba=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Pa={type:"keyframes",duration:.8},Sa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Aa=(t,{keyframes:e})=>e.length>2?Pa:St.has(t)?t.startsWith("scale")?ba(e[1]):Ta:Sa,Va=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ca(t){for(const e in t)if(!Va.has(e))return!0;return!1}const pn=(t,e,n,s={},i,r)=>
vendor: 6,702 bytes, line 1
1o=>{const a=mn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ca(a)||Object.assign(u,Aa(t,u)),u.duration&&(u.duration=K(u.duration)),u.repeatDelay&&(u.repeatDelay=K(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(We(u),u.delay===0&&(h=!0)),(it.instantAnimations||it.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(h=!0,We(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const d=le(u.keyframes,a);if(d!==void 0){M.update(()=>{u.onUpdate(d),u.onComplete()});return}}return a.isSync?new ee(u):new xa(u)},Ea=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ma(t){const e=Ea.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ki(t,e,n=1){const[s,i]=Ma(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return $s(o)?parseFloat(o):o}return an(i)?ki(i,e,n+1):i}function Kn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gn(t,e,n,s){if(typeof e=="function"){const[i,r]=Kn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Kn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return gn(s,e,n!==void 0?n:s.custom,t)}const Ri=new Set(["width","height","top","left","right","bottom",...Pt]),Ue=t=>Array.isArray(t);function Da(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Tt(n))}function ka(t){return Ue(t)?t[t.length-1]||0:t}function Ra(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=ka(r[o]);Da(t,o,a)}}const I=t=>!!(t&&t.getVelocity);function ja(t){return!!(I(t)&&t.add)}function Ke(t,e){const n=t.getValue("willChange");if(ja(n))return n.add(e);if(!n&&it.WillChange){const s=new it.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function yn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const La="framerAppearId",ji="data-"+yn(La);function Li(t){return t.props[ji]}function Fa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Fi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const c=t.getDefaultTransition();r=r?Di(r,c):c;const l=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);const h=[],d=i&&t.animationState&&t.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(t,a,r,n,h);for(const f in a){const g=t.getValue(f,t.latestValues[f]??null),y=a[f];if(y===void 0||d&&Fa(d,f))continue;const x={delay:n,...mn(r||{},f)};u&&(x.skipAnimations=!0);const w=g.get();if(w!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===w&&!x.velocity){M.update(()=>g.set(y));continue}let v=!1;if(window.MotionHandoffAnimation){const D=Li(t);if(D){const C=window.MotionHandoffAnimation(D,f,M);C!==null&&(x.startTime=C,v=!0)}}Ke(t,f);const b=l??t.shouldReduceMotion;g.start(pn(f,g,y,b&&Ri.has(f)?{type:!1}:x,t,v));const V=g.animation;V&&h.push(V)}if(o){const f=()=>M.update(()=>{o&&Ra(t,o)});h.length?Promise.all(h).then(f):f()}return h}function ze(t,e,n={}){const s=mt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(Fi(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:h}=i;return Ba(t,e,c,l,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,l]=a==="beforeChildren"?[r,o]:[o,r];return c().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Ba(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(ze(c,e,{...o,delay:n+(typeof s=="function"?0:s)+Mi(t.variantChildren,c,s,i,r)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function Na(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>ze(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=ze(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(Fi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ia={test:t=>t==="auto",parse:t=>t},Bi=t=>e=>e.test(t),Ni=[bt,T,Q,nt,ur,cr,Ia],zn=t=>Ni.find(Bi(t));function Oa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Ys(t):!0}const Wa=new Set(["brightness","contrast","saturate","opacity"]);function Ua(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ln)||[];if(!s)return t;const i=n.replace(s,"");let r=Wa.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Ka=/\b([a-z-]*)\(.*?\)/gu,Ge={...Y,getAnimatableNone:t=>{const e=t.match(Ka);return e?e.map(Ua).join(" "):t}},_e={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Gn={...bt,transform:Math.round},za={rotate:nt,pathRotation:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:Wt,scaleX:Wt,scaleY:Wt,scaleZ:Wt,skew:nt,skewX:nt,skewY:nt,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:Rt,originX:Dn,originY:Dn,originZ:T},ne={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,top:T,right:T,bottom:T,left:T,inset:T,insetBlock:T,insetBlockStart:T,insetBlockEnd:T,insetInline:T,insetInlineStart:T,insetInlineEnd:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,paddingBlock:T,paddingBlockStart:T,paddingBlockEnd:T,paddingInline:T,paddingInlineStart:T,paddingInlineEnd:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,marginBlock:T,marginBlockStart:T,marginBlockEnd:T,marginInline:T,marginInlineStart:T,marginInlineEnd:T,fontSize:T,backgroundPositionX:T,backgroundPositionY:T,...za,zIndex:Gn,fillOpacity:Rt,strokeOpacity:Rt,numOctaves:Gn},Ga={...ne,color:j,backgroundColor:j,outlineColor:j,fill:j,stroke:j,borderColor:j,borderTopColor:j,borderRightColor:j,borderBottomColor:j,borderLeftColor:j,filter:Ge,WebkitFilter:Ge,mask:_e,WebkitMask:_e},Ii=t=>Ga[t],_a=new Set([Ge,_e]);function Oi(t,e){let n=Ii(t);return _a.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,699 bytes, line 1
1const $a=new Set(["auto","none","0"]);function Ha(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!$a.has(r)&&wt(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=Oi(n,i)}class Ya extends fn{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),an(h))){const d=ki(h,n.current);d!==void 0&&(e[u]=d),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ri.has(s)||e.length!==2)return;const[i,r]=e,o=zn(i),a=zn(r),c=Mn(i),l=Mn(r);if(c!==l&&st[s]){this.needsMeasurement=!0;return}if(o!==a)if(In(o)&&In(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else st[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Oa(e[i]))&&s.push(i);s.length&&Ha(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=st[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=st[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 76,331 bytes, line 1
1h(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Wi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const $e=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Xa(t){return Hs(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:xn}=ai(queueMicrotask,!1),H={x:!1,y:!1};function Ui(){return H.x||H.y}function qa(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function Ki(t,e){const n=Wi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Za(t){return!(t.pointerType==="touch"||Ui())}function Ja(t,e,n={}){const[s,i,r]=Ki(t,n);return s.forEach(o=>{let a=!1,c=!1,l;const u=()=>{o.removeEventListener("pointerleave",f)},h=y=>{l&&(l(y),l=void 0),u()},d=y=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),c&&(c=!1,h(y))},p=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},f=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}h(y)}},g=y=>{if(!Za(y))return;c=!1;const x=e(o,y);typeof x=="function"&&(l=x,o.addEventListener("pointerleave",f,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",p,i)}),r}const zi=(t,e)=>e?t===e?!0:zi(t,e.parentElement):!1,vn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Qa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function tl(t){return Qa.has(t.tagName)||t.isContentEditable===!0}const el=new Set(["INPUT","SELECT","TEXTAREA"]);function nl(t){return el.has(t.tagName)||t.isContentEditable===!0}const Gt=new WeakSet;function _n(t){return e=>{e.key==="Enter"&&t(e)}}function xe(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const sl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=_n(()=>{if(Gt.has(n))return;xe(n,"down");const i=_n(()=>{xe(n,"up")}),r=()=>xe(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function $n(t){return vn(t)&&!Ui()}const Hn=new WeakSet;function il(t,e,n={}){const[s,i,r]=Ki(t,n),o=a=>{const c=a.currentTarget;if(!$n(a)||Hn.has(a))return;Gt.add(c),n.stopPropagation&&Hn.add(a);const l=e(c,a),u={...i,capture:!0},h=(f,g)=>{window.removeEventListener("pointerup",d,u),window.removeEventListener("pointercancel",p,u),Gt.has(c)&&Gt.delete(c),$n(f)&&typeof l=="function"&&l(f,{success:g})},d=f=>{h(f,c===window||c===document||n.useGlobalTarget||zi(c,f.target))},p=f=>{h(f,!1)};window.addEventListener("pointerup",d,u),window.addEventListener("pointercancel",p,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Xa(a)&&(a.addEventListener("focus",l=>sl(l,i)),!tl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function wn(t){return Hs(t)&&"ownerSVGElement"in t}const _t=new WeakMap;let $t;const Gi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:wn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],ol=Gi("inline","width","offsetWidth"),rl=Gi("block","height","offsetHeight");function al({target:t,borderBoxSize:e}){_t.get(t)?.forEach(n=>{n(t,{get width(){return ol(t,e)},get height(){return rl(t,e)}})})}function ll(t){t.forEach(al)}function cl(){typeof ResizeObserver>"u"||($t=new ResizeObserver(ll))}function ul(t,e){$t||cl();const n=Wi(t);return n.forEach(s=>{let i=_t.get(s);i||(i=new Set,_t.set(s,i)),i.add(e),$t?.observe(s)}),()=>{n.forEach(s=>{const i=_t.get(s);i?.delete(e),i?.size||$t?.unobserve(s)})}}const Ht=new Set;let xt;function hl(){xt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ht.forEach(e=>e(t))},window.addEventListener("resize",xt)}function dl(t){return Ht.add(t),xt||hl(),()=>{Ht.delete(t),!Ht.size&&typeof xt=="function"&&(window.removeEventListener("resize",xt),xt=void 0)}}function Yn(t,e){return typeof t=="function"?dl(t):ul(t,e)}function fl(t){return wn(t)&&t.tagName==="svg"}const ml=[...Ni,j,Y],pl=t=>ml.find(Bi(t)),Xn=()=>({translate:0,scale:1,origin:0,originPoint:0}),vt=()=>({x:Xn(),y:Xn()}),qn=()=>({min:0,max:0}),L=()=>({x:qn(),y:qn()}),gl=new WeakMap;function ce(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function jt(t){return typeof t=="string"||Array.isArray(t)}const Tn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bn=["initial",...Tn];function ue(t){return ce(t.animate)||bn.some(e=>jt(t[e]))}function _i(t){return!!(ue(t)||t.variants)}function yl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(I(i))t.addValue(s,i);else if(I(r))t.addValue(s,Tt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,Tt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const se={current:null},Pn={current:!1},xl=typeof window<"u";function $i(){if(Pn.current=!0,!!xl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>se.current=t.matches;t.addEventListener("change",e),e()}else se.current=!1}const Zn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ie={};function Hi(t){ie=t}function vl(){return ie}class wl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fn,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=O.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,M.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ue(n),this.isVariantNode=_i(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const f=d[p];l[p]!==void 0&&I(f)&&f.set(l[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,gl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Pn.current||$i(),this.shouldReduceMotion=se.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(),ot(this.notifyUpdate),ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ei.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,h=new Vi({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:K(u)}),d=o(h);this.valueSubscriptions.set(e,()=>{d(),h.cancel()});return}const s=St.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&M.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ie){const n=ie[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<Zn.length;s++){const i=Zn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=yl(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=Tt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&($s(s)||Ys(s))?s=parseFloat(s):!pl(s)&&Y.test(n)&&(s=Oi(e,n)),this.setBaseTarget(e,I(s)?s.get():s)),I(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const r=gn(this.props,n,this.presenceContext?.custom);r&&(s=r[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!I(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new sn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){xn.render(this.render)}}class Yi extends wl{constructor(){super(...arguments),this.KeyframeResolver=Ya}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class rt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Xi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Tl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function bl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ve(t){return t===void 0||t===1}function He({scale:t,scaleX:e,scaleY:n}){return!ve(t)||!ve(e)||!ve(n)}function ut(t){return He(t)||qi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function qi(t){return Jn(t.x)||Jn(t.y)}function Jn(t){return t&&t!=="0%"}function oe(t,e,n){const s=t-n,i=e*s;return n+i}function Qn(t,e,n,s,i){return i!==void 0&&(t=oe(t,i,s)),oe(t,n,s)+e}function Ye(t,e=0,n=1,s,i){t.min=Qn(t.min,e,n,s,i),t.max=Qn(t.max,e,n,s,i)}function Zi(t,{x:e,y:n}){Ye(t.x,e.translate,e.scale,e.originPoint),Ye(t.y,n.translate,n.scale,n.originPoint)}const ts=.999999999999,es=1.0000000000001;function Pl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(J(t.x,-r.scroll.offset.x),J(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Zi(t,o)),s&&ut(r.latestValues)&&Yt(t,r.latestValues,r.layout?.layoutBox))}e.x<es&&e.x>ts&&(e.x=1),e.y<es&&e.y>ts&&(e.y=1)}function J(t,e){t.min+=e,t.max+=e}function ns(t,e,n,s,i=.5){const r=E(t.min,t.max,i);Ye(t,e,n,r,s)}function ss(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Yt(t,e,n){const s=n??t;ns(t.x,ss(e.x,s.x),e.scaleX,e.scale,e.originX),ns(t.y,ss(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ji(t,e){return Xi(bl(t.getBoundingClientRect(),e))}function Sl(t,e,n){const s=Ji(t,n),{scroll:i}=e;return i&&(J(s.x,i.offset.x),J(s.y,i.offset.y)),s}const Al={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vl=Pt.length;function Cl(t,e,n){let s="",i=!0;for(let o=0;o<Vl;o++){const a=Pt[o],c=t[a];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(a.startsWith("scale")?1:0);else{const u=parseFloat(c);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=$e(c,ne[a]);if(!l){i=!1;const h=Al[a]||a;s+=`${h}(${u}) `}n&&(e[a]=u)}}const r=t.pathRotation;return r&&(i=!1,s+=`rotate(${$e(r,ne.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Sn(t,e,n){const{style:s,vars:i,transformOrigin:r}=t;let o=!1,a=!1;for(const c in e){const l=e[c];if(St.has(c)){o=!0;continue}else if(ci(c)){i[c]=l;continue}else{const u=$e(l,ne[c]);c.startsWith("origin")?(a=!0,r[c]=u):s[c]=u}}if(e.transform||(o||n?s.transform=Cl(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=r;s.transformOrigin=`${c} ${l} ${u}`}}function Qi(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function is(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const At={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=is(t,e.target.x),s=is(t,e.target.y);return`${n}% ${s}%`}},El={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Y.parse(t);if(i.length>5)return s;const r=Y.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=c;const l=E(a,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=l),typeof i[3+o]=="number"&&(i[3+o]/=l),r(i)}},Xe={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:El};function to(t,{layout:e,layoutId:n}){return St.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Xe[t]||t==="opacity")}function An(t,e,n){const s=t.style,i=e?.style,r={};if(!s)return r;for(const o in s)(I(s[o])||i&&I(i[o])||to(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Ml(t){return window.getComputedStyle(t)}class Dl extends Yi{constructor(){super(...arguments),this.type="html",this.renderInstance=Qi}readValueFromInstance(e,n){if(St.has(n))return this.projection?.isProjecting?Fe(n):qr(e,n);{const s=Ml(e),i=(ci(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ji(e,n)}build(e,n,s){Sn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return An(e,n,s)}}const kl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rl={offset:"strokeDashoffset",array:"strokeDasharray"};function jl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?kl:Rl;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Ll=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eo(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},c,l,u){if(Sn(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:d}=t;h.transform&&(d.transform=h.transform,delete h.transform),(d.transform||h.transformOrigin)&&(d.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const p of Ll)h[p]!==void 0&&(d[p]=h[p],delete h[p]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&jl(h,i,r,o,!1)}const no=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"]),so=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Fl(t,e,n,s){Qi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(no.has(i)?i:yn(i),e.attrs[i])}function io(t,e,n){const s=An(t,e,n);for(const i in t)if(I(t[i])||I(e[i])){const r=Pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Bl extends Yi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(St.has(n)){const s=Ii(n);return s&&s.default||0}return n=no.has(n)?n:yn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return io(e,n,s)}build(e,n,s){eo(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Fl(e,n,s,i)}mount(e){this.isSVGTag=so(e.tagName),super.mount(e)}}const Nl=bn.length;function oo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?oo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Nl;n++){const s=bn[n],i=t.props[s];(jt(i)||i===!1)&&(e[s]=i)}return e}function ro(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Il=[...Tn].reverse(),Ol=Tn.length;function Wl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Na(t,n,s)))}function Ul(t){let e=Wl(t),n=os(),s=!0,i=!1;const r=l=>(u,h)=>{const d=mt(t,h,l==="exit"?t.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...g}=d;u={...u,...g,...f}}return u};function o(l){e=l(t)}function a(l){const{props:u}=t,h=oo(t.parent)||{},d=[],p=new Set;let f={},g=1/0;for(let x=0;x<Ol;x++){const w=Il[x],v=n[w],b=u[w]!==void 0?u[w]:h[w],V=jt(b),D=w===l?v.isActive:null;D===!1&&(g=x);let C=b===h[w]&&b!==u[w]&&V;if(C&&(s||i)&&t.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...f},!v.isActive&&D===null||!b&&!v.prevProp||ce(b)||typeof b=="boolean")continue;if(w==="exit"&&v.isActive&&D!==!0){v.prevResolvedValues&&(f={...f,...v.prevResolvedValues});continue}const A=Kl(v.prevProp,b);let F=A||w===l&&v.isActive&&!C&&V||x>g&&V,S=!1;const R=Array.isArray(b)?b:[b];let U=R.reduce(r(w),{});D===!1&&(U={});const{prevResolvedValues:at={}}=v,X={...at,...U},et=B=>{F=!0,p.has(B)&&(S=!0,p.delete(B)),v.needsAnimating[B]=!0;const z=t.getValue(B);z&&(z.liveStyle=!1)};for(const B in X){const z=U[B],lt=at[B];if(f.hasOwnProperty(B))continue;let pt=!1;Ue(z)&&Ue(lt)?pt=!ro(z,lt)||A:pt=z!==lt,pt?z!=null?et(B):p.add(B):z!==void 0&&p.has(B)?et(B):v.protectedKeys[B]=!0}v.prevProp=b,v.prevResolvedValues=U,v.isActive&&(f={...f,...U}),(s||i)&&t.blockInitialAnimation&&(F=!1);const q=C&&A;F&&(!q||S)&&d.push(...R.map(B=>{const z={type:w};if(typeof B=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,pt=mt(lt,B);if(lt.enteringChildren&&pt){const{delayChildren:jo}=pt.transition||{};z.delay=Mi(lt.enteringChildren,t,jo)}}return{animation:B,options:z}}))}if(p.size){const x={};if(typeof u.initial!="boolean"){const w=mt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(x.transition=w.transition)}p.forEach(w=>{const v=t.getBaseTarget(w),b=t.getValue(w);b&&(b.liveStyle=!0),x[w]=v??null}),d.push({animation:x})}let y=!!d.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(d):Promise.resolve()}function c(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(d=>d.animationState?.setActive(l,u)),n[l].isActive=u;const h=a(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=os(),i=!0}}}function Kl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ro(e,t):!1}function ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function os(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}function qe(t,e){t.min=e.min,t.max=e.max}function $(t,e){qe(t.x,e.x),qe(t.y,e.y)}function rs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const ao=1e-4,zl=1-ao,Gl=1+ao,lo=.01,_l=0-lo,$l=0+lo;function W(t){return t.max-t.min}function Hl(t,e,n){return Math.abs(t-e)<=n}function as(t,e,n,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=W(n)/W(e),t.translate=E(n.min,n.max,t.origin)-t.originPoint,(t.scale>=zl&&t.scale<=Gl||isNaN(t.scale))&&(t.scale=1),(t.translate>=_l&&t.translate<=$l||isNaN(t.translate))&&(t.translate=0)}function Mt(t,e,n,s){as(t.x,e.x,n.x,s?s.originX:void 0),as(t.y,e.y,n.y,s?s.originY:void 0)}function ls(t,e,n,s=0){const i=s?E(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+W(e)}function Yl(t,e,n,s){ls(t.x,e.x,n.x,s?.x),ls(t.y,e.y,n.y,s?.y)}function cs(t,e,n,s=0){const i=s?E(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+W(e)}function re(t,e,n,s){cs(t.x,e.x,n.x,s?.x),cs(t.y,e.y,n.y,s?.y)}function us(t,e,n,s,i){return t-=e,t=oe(t,1/n,s),i!==void 0&&(t=oe(t,1/i,s)),t}function Xl(t,e=0,n=1,s=.5,i,r=t,o=t){if(Q.test(e)&&(e=parseFloat(e),e=E(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=E(r.min,r.max,s);t===r&&(a-=e),t.min=us(t.min,e,n,a,i),t.max=us(t.max,e,n,a,i)}function hs(t,e,[n,s,i],r,o){Xl(t,e[n],e[s],e[i],e.scale,r,o)}const ql=["x","scaleX","originX"],Zl=["y","scaleY","originY"];function ds(t,e,n,s){hs(t.x,e,ql,n?n.x:void 0,s?s.x:void 0),hs(t.y,e,Zl,n?n.y:void 0,s?s.y:void 0)}function fs(t){return t.translate===0&&t.scale===1}function co(t){return fs(t.x)&&fs(t.y)}function ms(t,e){return t.min===e.min&&t.max===e.max}function Jl(t,e){return ms(t.x,e.x)&&ms(t.y,e.y)}function ps(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function uo(t,e){return ps(t.x,e.x)&&ps(t.y,e.y)}function gs(t){return W(t.x)/W(t.y)}function ys(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function Ql(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,pathRotation:h,rotateX:d,rotateY:p,skewX:f,skewY:g}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotate(${h}deg) `),d&&(s+=`rotateX(${d}deg) `),p&&(s+=`rotateY(${p}deg) `),f&&(s+=`skewX(${f}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const ho=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],tc=ho.length,xs=t=>typeof t=="string"?parseFloat(t):t,vs=t=>typeof t=="number"||T.test(t);function ec(t,e,n,s,i,r){i?(t.opacity=E(0,n.opacity??1,nc(s)),t.opacityExit=E(e.opacity??1,0,sc(s))):r&&(t.opacity=E(e.opacity??1,n.opacity??1,s));for(let o=0;o<tc;o++){const a=ho[o];let c=ws(e,a),l=ws(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||vs(c)===vs(l)?(t[a]=Math.max(E(xs(c),xs(l),s),0),(Q.test(l)||Q.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=E(e.rotate||0,n.rotate||0,s))}function ws(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const nc=fo(0,.5,si),sc=fo(.5,.95,_);function fo(t,e,n){return s=>s<t?0:s>e?1:n(kt(t,e,s))}function ic(t,e,n){const s=I(t)?t:Tt(t);return s.start(pn("",s,e,n)),s.animation}function Lt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n,s)}const oc=(t,e)=>t.depth-e.depth;class rc{constructor(){this.children=[],this.isDirty=!1}add(e){en(this.children,e),this.isDirty=!0}remove(e){Zt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(oc),this.isDirty=!1,this.children.forEach(e)}}function ac(t,e){const n=O.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(ot(s),t(r-e))};return M.setup(s,!0),()=>ot(s)}function Xt(t){return I(t)?t.get():t}class lc{constructor(){this.members=[]}add(e){en(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(Zt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Zt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:r}=e.options;(i===void 0||i!==r)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},we=["","X","Y","Z"],cc=1e3;let uc=0;function Te(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function mo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Li(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&mo(s)}function po({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e?.()){this.id=uc++,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(fc),this.nodes.forEach(vc),this.nodes.forEach(wc),this.nodes.forEach(mc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new rc)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new sn),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=wn(o)&&!fl(o),this.instance=o;const{layoutId:a,layout:c,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&&(c||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const d=()=>this.root.updateBlockedByResize=!1;M.read(()=>{h=window.innerWidth}),t(o,()=>{const p=window.innerWidth;p!==h&&(h=p,this.root.updateBlockedByResize=!0,u&&u(),u=ac(d,250),qt.hasAnimatedSinceResize&&(qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ps)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||l.getDefaultTransition()||Ac,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=l.getProps(),x=!this.targetLayout||!uo(this.targetLayout,p),w=!h&&d;if(this.options.layoutRoot||this.resumeFrom||w||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...mn(f,"layout"),onPlay:g,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,w,v.path)}else h||Ps(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}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(),ot(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(Tc),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&&mo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(gc),this.nodes.forEach(Ts);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bs);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yc),this.nodes.forEach(xc),this.nodes.forEach(hc),this.nodes.forEach(dc)):this.nodes.forEach(bs),this.clearAllSnapshots();const a=O.now();N.delta=tt(0,1e3/60,a-N.timestamp),N.timestamp=a,N.isProcessing=!0,de.update.process(N),de.preRender.process(N),de.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pc),this.sharedNodes.forEach(bc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!W(this.snapshot.measuredBox.x)&&!W(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=L()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!co(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&this.instance&&(a||ut(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Vc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return L();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Cc))){const{scroll:l}=this.root;l&&(J(a.x,l.offset.x),J(a.y,l.offset.y))}return a}removeElementScroll(o){const a=L();if($(a,o),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:h}=l;l!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&$(a,o),J(a.x,u.offset.x),J(a.y,u.offset.y))}return a}applyTransform(o,a=!1,c){const l=c||L();$(l,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(J(l.x,-h.scroll.offset.x),J(l.y,-h.scroll.offset.y)),ut(h.latestValues)&&Yt(l,h.latestValues,h.layout?.layoutBox)}return ut(this.latestValues)&&Yt(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(o){const a=L();$(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!ut(l.latestValues))continue;let u;l.instance&&(He(l.latestValues)&&l.updateSnapshot(),u=L(),$(u,l.measurePageBox())),ds(a,l.latestValues,l.snapshot?.layoutBox,u)}return ut(this.latestValues)&&ds(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!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=N.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Yl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):$(this.target,this.layout.layoutBox),Zi(this.target,this.targetDelta)):$(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||He(this.parent.latestValues)||qi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),re(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),$(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===N.timestamp&&(c=!1),c)return;const{layout:l,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||u))return;$(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,d=this.treeScale.y;Pl(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=L());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rs(this.prevProjectionDelta.x,this.projectionDelta.x),rs(this.prevProjectionDelta.y,this.projectionDelta.y)),Mt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==d||!ys(this.projectionDelta.x,this.prevProjectionDelta.x)||!ys(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vt(),this.projectionDelta=vt(),this.projectionDeltaWithTransform=vt()}setAnimationOrigin(o,a=!1,c){const l=this.snapshot,u=l?l.latestValues:{},h={...this.latestValues},d=vt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=L(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=f!==g,x=this.getStack(),w=!x||x.members.length<=1,v=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(Sc));this.animationProgress=0;let b;const V=c?.interpolateProjection(o);this.mixTargetDelta=D=>{const C=D/1e3,A=V?.(C);A?(d.x.translate=A.x,d.x.scale=E(o.x.scale,1,C),d.x.origin=o.x.origin,d.x.originPoint=o.x.originPoint,d.y.translate=A.y,d.y.scale=E(o.y.scale,1,C),d.y.origin=o.y.origin,d.y.originPoint=o.y.originPoint):(Ss(d.x,o.x,C),Ss(d.y,o.y,C)),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(re(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Pc(this.relativeTarget,this.relativeTargetOrigin,p,C),b&&Jl(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=L()),$(b,this.relativeTarget)),y&&(this.animationValues=h,ec(h,u,this.latestValues,C,v,w)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=h),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Tt(0)),this.motionValue.jump(0,!1),this.currentAnimation=ic(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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(cc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&go(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||L();const h=W(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const d=W(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}$(a,c),Yt(a,u),Mt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new lc),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(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Te("z",o,l,this.animationValues);for(let u=0;u<we.length;u++)Te(`rotate${we[u]}`,o,l,this.animationValues),Te(`skew${we[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Xt(a?.pointerEvents)||"",o.transform=c?c(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=Xt(a?.pointerEvents)||""),this.hasProjected&&!ut(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let h=Ql(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),o.transform=h;const{x:d,y:p}=this.projectionDelta;o.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,l.animationValues?o.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const f in Xe){if(u[f]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=Xe[f],w=h==="none"?u[f]:g(u[f],l);if(y){const v=y.length;for(let b=0;b<v;b++)o[y[b]]=w}else x?this.options.visualElement.renderState.vars[f]=w:o[f]=w}this.options.layoutId&&(o.pointerEvents=l===this?Xt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(Ts),this.root.sharedNodes.clear()}}}function hc(t){t.updateLayout()}function dc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,r=e.source!==t.layout.source;if(i==="size")Z(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],d=W(h);h.min=n[u].min,h.max=h.min+d});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";qe(r?e.measuredBox[u]:e.layoutBox[u],n[u])}else go(i,e.layoutBox,n)&&Z(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],d=W(n[u]);h.max=h.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+d)});const o=vt();Mt(o,n,e.layoutBox);const a=vt();r?Mt(a,t.applyTransform(s,!0),e.measuredBox):Mt(a,n,e.layoutBox);const c=!co(o);let l=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:d}=u;if(h&&d){const p=t.options.layoutAnchor||void 0,f=L();re(f,e.layoutBox,h.layoutBox,p);const g=L();re(g,n,d.layoutBox,p),uo(f,g)||(l=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=f,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function fc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function mc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function pc(t){t.clearSnapshot()}function Ts(t){t.clearMeasurements()}function gc(t){t.isLayoutDirty=!0,t.updateLayout()}function bs(t){t.isLayoutDirty=!1}function yc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function xc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ps(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function vc(t){t.resolveTargetDelta()}function wc(t){t.calcProjection()}function Tc(t){t.resetSkewAndRotation()}function bc(t){t.removeLeadSnapshot()}function Ss(t,e,n){t.translate=E(e.translate,0,n),t.scale=E(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function As(t,e,n,s){t.min=E(e.min,n.min,s),t.max=E(e.max,n.max,s)}function Pc(t,e,n,s){As(t.x,e.x,n.x,s),As(t.y,e.y,n.y,s)}function Sc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ac={duration:.45,ease:[.4,0,.1,1]},Vs=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Cs=Vs("applewebkit/")&&!Vs("chrome/")?Math.round:_;function Es(t){t.min=Cs(t.min),t.max=Cs(t.max)}function Vc(t){Es(t.x),Es(t.y)}function go(t,e,n){return t==="position"||t==="preserve-aspect"&&!Hl(gs(e),gs(n),.2)}function Cc(t){return t!==t.root&&t.scroll?.wasRoot}const Ec=po({attachResizeListener:(t,e)=>Lt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),be={current:void 0},yo=po({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!be.current){const t=new Ec({});t.mount(window),t.setOptions({layoutScroll:!0}),be.current=t}return be.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),xo=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Mc(t=!0){const e=P.useContext(tn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=P.useId();P.useEffect(()=>{if(t)return i(r)},[t]);const o=P.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const vo=P.createContext({strict:!1}),Ms={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 Ds=!1;function Dc(){if(Ds)return;const t={};for(const e in Ms)t[e]={isEnabled:n=>Ms[e].some(s=>!!n[s])};Hi(t),Ds=!0}function wo(){return Dc(),vl()}function kc(t){const e=wo();for(const n in t)e[n]={...e[n],...t[n]};Hi(e)}const Rc=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 ae(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Rc.has(t)}let To=t=>!ae(t);function jc(t){typeof t=="function"&&(To=e=>e.startsWith("on")?!ae(e):t(e))}try{jc(require("@emotion/is-prop-valid").default)}catch{}function Lc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||I(t[i])||(To(i)||n===!0&&ae(i)||!e&&!ae(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const he=P.createContext({});function Fc(t,e){if(ue(t)){const{initial:n,animate:s}=t;return{initial:n===!1||jt(n)?n:void 0,animate:jt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Bc(t){const{initial:e,animate:n}=Fc(t,P.useContext(he));return P.useMemo(()=>({initial:e,animate:n}),[ks(e),ks(n)])}function ks(t){return Array.isArray(t)?t.join(" "):t}const Vn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bo(t,e,n){for(const s in e)!I(e[s])&&!to(s,n)&&(t[s]=e[s])}function Nc({transformTemplate:t},e){return P.useMemo(()=>{const n=Vn();return Sn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Ic(t,e){const n=t.style||{},s={};return bo(s,n,t),Object.assign(s,Nc(t,e)),s}function Oc(t,e){const n={},s=Ic(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Po=()=>({...Vn(),attrs:{}});function Wc(t,e,n,s){const i=P.useMemo(()=>{const r=Po();return eo(r,e,so(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};bo(r,t.style,t),i.style={...r,...i.style}}return i}const Uc=["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 Cn(t){return typeof t!="string"||t.includes("-")?!1:!!(Uc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Kc(t,e,n,{latestValues:s},i,r=!1,o){const c=(o??Cn(t)?Wc:Oc)(e,s,i,t),l=Lc(e,typeof t=="string",r),u=t!==P.Fragment?{...l,...c,ref:n}:{},{children:h}=e,d=P.useMemo(()=>I(h)?h.get():h,[h]);return P.createElement(t,{...u,children:d})}function zc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Gc(n,s,i,t),renderState:e()}}function Gc(t,e,n,s){const i={},r=s(t,{});for(const d in r)i[d]=Xt(r[d]);let{initial:o,animate:a}=t;const c=ue(t),l=_i(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const h=u?a:o;if(h&&typeof h!="boolean"&&!ce(h)){const d=Array.isArray(h)?h:[h];for(let p=0;p<d.length;p++){const f=gn(t,d[p]);if(f){const{transitionEnd:g,transition:y,...x}=f;for(const w in x){let v=x[w];if(Array.isArray(v)){const b=u?v.length-1:0;v=v[b]}v!==null&&(i[w]=v)}for(const w in g)i[w]=g[w]}}}return i}const So=t=>(e,n)=>{const s=P.useContext(he),i=P.useContext(tn),r=()=>zc(t,e,s,i);return n?r():zo(r)},_c=So({scrapeMotionValuesFromProps:An,createRenderState:Vn}),$c=So({scrapeMotionValuesFromProps:io,createRenderState:Po}),Hc=Symbol.for("motionComponentSymbol");function Yc(t,e,n){const s=P.useRef(n);P.useInsertionEffect(()=>{s.current=n});const i=P.useRef(null);return P.useCallback(r=>{r&&t.onMount?.(r),e&&(r?e.mount(r):e.unmount());const o=s.current;if(typeof o=="function")if(r){const a=o(r);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r)},[e])}const Ao=P.createContext({});function gt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Xc(t,e,n,s,i,r){const{visualElement:o}=P.useContext(he),a=P.useContext(vo),c=P.useContext(tn),l=P.useContext(xo),u=l.reducedMotion,h=l.skipAnimations,d=P.useRef(null),p=P.useRef(!1);s=s||a.renderer,!d.current&&s&&(d.current=s(t,{visualState:e,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:r}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));const f=d.current,g=P.useContext(Ao);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&qc(d.current,n,i,g);const y=P.useRef(!1);P.useInsertionEffect(()=>{f&&y.current&&f.update(n,c)});const x=n[ji],w=P.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return _o(()=>{p.current=!0,f&&(y.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),w.current&&f.animationState&&f.animationState.animateChanges())}),P.useEffect(()=>{f&&(!w.current&&f.animationState&&f.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),f.enteringChildren=void 0)}),f}function qc(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Vo(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&gt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Vo(t){if(t)return t.options.allowProjection!==!1?t.projection:Vo(t.parent)}function Pe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&kc(s);const r=n?n==="svg":Cn(t),o=r?$c:_c;function a(l,u){let h;const d={...P.useContext(xo),...l,layoutId:Zc(l)},{isStatic:p}=d,f=Bc(l),g=o(l,p);if(!p&&typeof window<"u"){Jc();const y=Qc(d);h=y.MeasureLayout,f.visualElement=Xc(t,g,d,i,y.ProjectionNode,r)}return m.jsxs(he.Provider,{value:f,children:[h&&f.visualElement?m.jsx(h,{visualElement:f.visualElement,...d}):null,Kc(t,l,Yc(g,f.visualElement,u),g,p,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=P.forwardRef(a);return c[Hc]=t,c}function Zc({layoutId:t}){const e=P.useContext(_s).id;return e&&t!==void 0?e+"-"+t:t}function Jc(t,e){P.useContext(vo).strict}function Qc(t){const e=wo(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function tu(t,e){if(typeof Proxy>"u")return Pe;const n=new Map,s=(r,o)=>Pe(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,Pe(o,void 0,t,e)),n.get(o))})}const eu=(t,e)=>e.isSVG??Cn(t)?new Bl(e):new Dl(e,{allowProjection:t!==P.Fragment});class nu extends rt{constructor(e){super(e),e.animationState||(e.animationState=Ul(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ce(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let su=0;class iu extends rt{constructor(){super(...arguments),this.id=su++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=mt(this.node,r,o);if(a){const{transition:c,transitionEnd:l,...u}=a;for(const h in u)this.node.getValue(h)?.jump(u[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const ou={animation:{Feature:nu},exit:{Feature:iu}};function It(t){return{point:{x:t.pageX,y:t.pageY}}}const ru=t=>e=>vn(e)&&t(e,It(e));function Dt(t,e,n,s){return Lt(t,e,ru(n),s)}const Co=({current:t})=>t?t.ownerDocument.defaultView:null,Rs=(t,e)=>Math.abs(t-e);function au(t,e){const n=Rs(t.x,e.x),s=Rs(t.y,e.y);return Math.sqrt(n**2+s**2)}const js=new Set(["auto","scroll"]);class Eo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ut(this.lastRawMoveEventInfo,this.transformPagePoint));const f=Se(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=au(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=f,{timestamp:w}=N;this.history.push({...x,timestamp:w});const{onStart:v,onMove:b}=this.handlers;g||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Ut(g,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Se(f.type==="pointercancel"?this.lastMoveEventInfo:Ut(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(f,v),x&&x(f,v)},!vn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const c=It(e),l=Ut(c,this.transformPagePoint),{point:u}=l,{timestamp:h}=N;this.history=[{...u,timestamp:h}];const{onSessionStart:d}=n;d&&d(e,Se(l,this.history));const p={passive:!0,capture:!0};this.removeListeners=Ft(Dt(this.contextWindow,"pointermove",this.handlePointerMove,p),Dt(this.contextWindow,"pointerup",this.handlePointerUp,p),Dt(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(js.has(s.overflowX)||js.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),M.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function Ut(t,e){return e?{point:e(t.point)}:t}function Ls(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Se({point:t},e){return{point:t,delta:Ls(t,Mo(e)),offset:Ls(t,lu(e)),velocity:cu(e,.1)}}function lu(t){return t[0]}function Mo(t){return t[t.length-1]}function cu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Mo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>K(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>K(e)*2&&(s=t[1]);const r=G(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function uu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?E(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?E(n,t,s.max):Math.min(t,n)),t}function Fs(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function hu(t,{top:e,left:n,bottom:s,right:i}){return{x:Fs(t.x,n,i),y:Fs(t.y,e,s)}}function Bs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function du(t,e){return{x:Bs(t.x,e.x),y:Bs(t.y,e.y)}}function fu(t,e){let n=.5;const s=W(t),i=W(e);return i>s?n=kt(e.min,e.max-s,t.min):s>i&&(n=kt(t.min,t.max-i,e.min)),tt(0,1,n)}function mu(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ze=.35;function pu(t=Ze){return t===!1?t=0:t===!0&&(t=Ze),{x:Ns(t,"left","right"),y:Ns(t,"top","bottom")}}function Ns(t,e,n){return{min:Is(t,e),max:Is(t,n)}}function Is(t,e){return typeof t=="number"?t:t[e]||0}const gu=new WeakMap;class yu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(It(h).point),this.stopAnimation()},o=(h,d)=>{const{drag:p,dragPropagation:f,onDragStart:g}=this.getProps();if(p&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qa(p),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Z(x=>{let w=this.getAxisMotionValue(x).get()||0;if(Q.test(w)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[x];b&&(w=W(b)*(parseFloat(w)/100))}}this.originPoint[x]=w}),g&&M.update(()=>g(h,d),!1,!0),Ke(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d;const{dragPropagation:p,dragDirectionLock:f,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=d;if(f&&this.currentDirection===null){this.currentDirection=vu(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&M.update(()=>y(h,d),!1,!0)},c=(h,d)=>{this.latestPointerEvent=h,this.latestPanInfo=d,this.stop(h,d),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Eo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Co(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&M.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Kt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=uu(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&gt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=hu(s.layoutBox,e):this.constraints=!1,this.elastic=pu(n),i!==this.constraints&&!gt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=mu(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());const r=Sl(s,i.root,this.visualElement.getTransformPagePoint());let o=du(i.layout.layoutBox,r);if(n){const a=n(Tl(o));this.hasMutatedConstraints=!!a,a&&(o=Xi(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Z(u=>{if(!Kt(u,n,this.currentDirection))return;let h=c&&c[u]||{};(o===!0||o===u)&&(h={min:0,max:0});const d=i?200:1e6,p=i?40:1e7,f={type:"inertia",velocity:s?e[u]:0,bounceStiffness:d,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,f)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ke(this.visualElement,e),s.start(pn(e,s,0,n,this.visualElement,!1))}stopAnimation(){Z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Z(n=>{const{drag:s}=this.getProps();if(!Kt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],c=r.get()||0;r.set(e[n]-E(o,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!gt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Z(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();i[o]=fu({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(o=>{if(!Kt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(E(c,l,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gu.set(this.visualElement,this);const e=this.visualElement.current,n=Dt(e,"pointerdown",l=>{const{drag:u,dragListener:h=!0}=this.getProps(),d=l.target,p=d!==e&&nl(d);u&&h&&!p&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();gt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=xu(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),M.read(i);const a=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),c=r.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=l[h].translate,d.set(d.get()+l[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ze,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Os(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function xu(t,e,n){const s=Yn(t,Os(n)),i=Yn(e,Os(n));return()=>{s(),i()}}function Kt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function vu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class wu extends rt{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new yu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ae=t=>(e,n)=>{t&&M.update(()=>t(e,n),!1,!0)};class Tu extends rt{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Eo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Co(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ae(e),onStart:Ae(n),onMove:Ae(s),onEnd:(r,o)=>{delete this.session,i&&M.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Dt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ve=!1;class bu extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Ve&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Ve=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||M.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),xn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ve=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}
1function Do(t){const[e,n]=Mc(),s=P.useContext(_s);return m.jsx(bu,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(Ao),isPresent:e,safeToRemove:n})}const Pu={pan:{Feature:Tu},drag:{Feature:wu,ProjectionNode:yo,MeasureLayout:Do}};function Ws(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&M.postRender(()=>r(e,It(e)))}class Su extends rt{mount(){const{current:e}=this.node;e&&(this.unmount=Ja(e,(n,s)=>(Ws(this.node,s,"Start"),i=>Ws(this.node,i,"End"))))}unmount(){}}class Au extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ft(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Us(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&M.postRender(()=>r(e,It(e)))}class Vu extends rt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=il(e,(i,r)=>(Us(this.node,r,"Start"),(o,{success:a})=>Us(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Je=new WeakMap,Ce=new WeakMap,Cu=t=>{const e=Je.get(t.target);e&&e(t)},Eu=t=>{t.forEach(Cu)};function Mu({root:t,...e}){const n=t||document;Ce.has(n)||Ce.set(n,{});const s=Ce.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Eu,{root:t,...e})),s[i]}function Du(t,e,n){const s=Mu(e);return Je.set(t,n),s.observe(t),()=>{Je.delete(t),s.unobserve(t)}}const ku={some:0,all:1};class Ru extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:ku[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=l?u:h;d&&d(c)};this.stopObserver=Du(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ju(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function ju({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Lu={inView:{Feature:Ru},tap:{Feature:Vu},focus:{Feature:Au},hover:{Feature:Su}},Fu={layout:{ProjectionNode:yo,MeasureLayout:Do}},Bu={...ou,...Lu,...Pu,...Fu},Nu=tu(Bu,eu);function ko(){!Pn.current&&$i();const[t]=P.useState(se.current);return t}const Qe=Nu,Ro="https://www.gopicky.com/",Ee=[{id:"euka",name:"Euka.Ai",logo:"/img/partner-euka-logo.svg",href:"https://euka.ai/"},{id:"medialabs",name:"Medialabs",logo:"/img/partner-media-labs-logo.svg",href:"https://medialabs-co.com/"},{id:"social-army",name:"Social Army",logo:"/img/partner-social-army-logo.svg",href:"https://social-army.io/"},{id:"picky",name:"Picky",logo:"/img/picky-creators-logo.svg",href:Ro,opensModal:!0}],Iu=[{id:"platform",content:m.jsxs(m.Fragment,{children:["Korea's",m.jsx("span",{className:"font-medium text-[#080E1F]",children:" #1 K-beauty creator discovery "})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"platform with millions of engaged users and creators"})]})},{id:"relationships",content:m.jsx(m.Fragment,{children:m.jsx("span",{className:"font-normal text-[#57658D]",children:"Deep relationships with Korean TikTok Shop sellers and affiliates"})})},{id:"onboarding",content:m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-medium text-[#080E1
1F]",children:"Full Korean-language onboarding"})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"and account support, delivered on Korean time"})]})},{id:"expertise",content:m.jsx(m.Fragment,{children:m.jsx("span",{className:"font-normal text-[#57658D]",children:"Local market expertise and community trust built inside Korea"})})}],Ou=[{id:"assessment",content:m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-medium text-[#080E1F]",children:"Free assessment:"})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"We audit your account at no cost to find exactly what TikTok owes you"})]})},{id:"fbt",content:m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-medium text-[#080E1F]",children:"FBT reimbursement recovery:"})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"We reclaim money TikTok owes you on "}),m.jsx("span",{className:"font-medium text-[#080E1F]",children:"lost, damaged, & mismanaged returns"})]})},{id:"beyond",content:m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-medium text-[#080E1F]",children:"Beyond auto-refunds:"})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"We catch TikTok refunds that slip through the cracks."})]})},{id:"performance",content:m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"font-medium text-[#080E1F]",children:"Performance-based, zero risk:"})," ",m.jsx("span",{className:"font-normal text-[#57658D]",children:"You only pay a percentage after TikTok pays you, never out of pocket"})]})}],Wu=[{title:"Korean-Time Support",description:"Korean-language onboarding and account support delivered on Korean time, so nothing gets lost to timezone friction.",iconSrc:"/img/globe.svg",iconAlt:"Korean-time support"},{title:"Free Account Assessment",description:"We audit your FBT inventory for lost, damaged, and mismanaged returns at no cost. Recovering what TikTok's auto-refunds leave behind. Fully performance-based.",iconSrc:"/img/dollar.svg",iconAlt:"Free account assessment"},{title:"Amazon Recovery, Too",description:"Selling on Amazon as well? We can help recover your lost, damaged, and overcharged inventory there too — so nothing slips through the cracks across your channels.",iconSrc:"/img/cart.svg",iconAlt:"Amazon recovery"}];function Ks({items:t,bulletClass:e}){return m.jsx("ul",{className:"space-y-4",children:t.map(({id:n,content:s})=>m.jsxs("li",{className:"flex gap-3  text-[15px] leading-[1.55] text-[#57658D] md:text-base md:leading-[1.6]",children:[m.jsx("span",{className:`mt-[9px] h-1.5 w-1.5 shrink-0 rounded-full ${e}`,"aria-hidden":!0}),m.jsx("span",{className:"font-normal text-[#57658D]",children:s})]},n))})}function Uu({open:t,onClose:e}){return P.useEffect(()=>{if(!t)return;const n=i=>{i.key==="Escape"&&e()},s=document.body.style.overflow;return document.body.style.overflow="hidden",document.addEventListener("keydown",n),()=>{document.body.style.overflow=s,document.removeEventListener("keydown",n)}},[t,e]),t?m.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center p-4 sm:p-6",children:[m.jsx("button",{type:"button",className:"absolute inset-0 bg-black/60 backdrop-blur-sm","aria-label":"Close partnership announcement",onClick:e}),m.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"picky-partnership-title",className:"relative z-10 flex max-h-[92vh] w-full max-w-4xl flex-col overflow-hidden rounded-2xl bg-white shadow-2xl",onClick:n=>n.stopPropagation(),children:[m.jsx("button",{type:"button",onClick:e,className:"absolute right-4 top-4 z-20 rounded-full p-2 text-[#6272A0] transition-colors hover:bg-slate-100 hover:text-[#161616]","aria-label":"Close",children:m.jsx(Lo,{className:"h-5 w-5"})}),m.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:m.jsxs("div",{className:"px-5 pb-8 pt-10 sm:px-8 sm:pb-10 sm:pt-12",children:[m.jsx("div",{className:"mb-8 flex justify-center",children:m.jsx("span",{className:"rounded-full border border-[#B8D4FF] px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-[#1A52F5]",children:"Partnership Announcement"})}),m.jsxs("div",{className:"mb-8 flex flex-col items-center justify-center gap-2 sm:flex-row sm:gap-6",children:[m.jsx(Fo,{to:"/",className:"flex h-16 w-44 shrink-0 cursor-pointer items-center justify-center rounded-2xl border border-[#
1E4E8F0] bg-white px-4 py-3 shadow-sm transition-shadow hover:shadow-md sm:h-24 sm:w-56 sm:px-5","aria-label":"Go to CapTrack home",children:m.jsx("img",{src:Bo,alt:"CapTrack",className:"max-h-full w-full object-contain",decoding:"async"})}),m.jsx("span",{className:"inline-flex shrink-0 items-center justify-center text-[#141B34]","aria-hidden":!0,children:m.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",className:"block sm:h-6 sm:w-6",children:m.jsx("path",{d:"M6 6L16 16M16 6L6 16",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"})})}),m.jsx("a",{href:Ro,target:"_blank",rel:"noopener noreferrer",className:"flex h-16 w-44 shrink-0 cursor-pointer items-center justify-center rounded-2xl border border-[#E4E8F0] bg-white px-4 py-3 shadow-sm transition-shadow hover:shadow-md sm:h-24 sm:w-56 sm:px-5","aria-label":"Visit Picky website",children:m.jsx("img",{src:"/img/picky-creators-logo.svg",alt:"Picky",className:"max-h-full w-full object-contain",decoding:"async"})})]}),m.jsx("h2",{id:"picky-partnership-title",className:"mx-auto mb-4 max-w-3xl text-center font-bricolage text-2xl font-extrabold leading-[1.55] tracking-wide text-[#080E1F] sm:text-2xl md:text-3xl",children:"CapTrack Has Partnered With Picky To Give Korean Brands Selling On TikTok Shop A Direct Path To Recovered Revenue And Korea's Top K-Beauty Creators"}),m.jsx("p",{className:"mx-auto mb-10 max-w-2xl text-center text-base text-[#6272A0] sm:text-lg",children:"With local-language onboarding and Korean-time support. Performance-based recovery."}),m.jsxs("div",{className:"mb-8 grid gap-4 md:grid-cols-2",children:[m.jsxs("div",{className:"rounded-2xl border border-[#F0D4E0] bg-[#FFF5F8] p-5 font-bricolage sm:p-6",children:[m.jsx("h3",{className:"mb-5 text-sm font-bold uppercase tracking-wide text-[#E91E8C]",children:"What Picky Brings"}),m.jsx(Ks,{items:Iu,bulletClass:"bg-[#E91E8C]"})]}),m.jsxs("div",{className:"rounded-2xl border border-[#C5D8FF] bg-[#F3F7FF] p-5 font-bricolage sm:p-6",children:[m.jsx("h3",{className:"mb-5 text-sm font-bold uppercase tracking-wide text-[#1A52F5]",children:"What CapTrack Brings"}),m.jsx(Ks,{items:Ou,bulletClass:"bg-[#1A52F5]"})]})]}),m.jsx("div",{className:"mb-8 grid gap-4 md:grid-cols-3",children:Wu.map(({title:n,description:s,iconSrc:i,iconAlt:r})=>m.jsxs("div",{className:"rounded-2xl border border-[#E4E8F0] bg-[#F8FAFF] p-5 font-bricolage",children:[m.jsxs("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl border border-[#E4E8F0] bg-white shadow-sm",children:[m.jsx("img",{src:i,alt:"","aria-hidden":!0,className:"h-7 w-7 object-contain",decoding:"async"}),m.jsx("span",{className:"sr-only",children:r})]}),m.jsx("h4",{className:"mb-2 text-lg !font-[500] text-[#080E1F]",children:n}),m.jsx("p",{className:"text-sm font-normal leading-relaxed text-[#57658D]",children:s})]},n))}),m.jsxs("div",{className:"rounded-2xl bg-[#0B1120] p-6 sm:p-8",children:[m.jsx("p",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-white",children:"Korean Special Offer — Picky Partners Only"}),m.jsx("h3",{className:"mb-4 font-bricolage text-2xl font-extrabold text-white sm:text-3xl",children:"20% Recovery Rate (Vs. 25% Standard)"}),m.jsx("p",{className:"mb-6 max-w-3xl text-sm leading-relaxed text-[#D2D2D2] sm:text-base",children:"Exclusive to brands referred through the CapTrack × Picky partnership. We start with a free assessment of your TikTok Shop account, then recover your lost, damaged, and mismanaged FBT returns at a discounted 20% performance rate. Going beyond TikTok's auto-refunds to catch what's missed. You only pay a percentage after TikTok pays you, so there's never any cost out of pocket."}),m.jsxs("a",{href:No,className:"inline-flex items-center justify-center gap-2 rounded-lg bg-[#1A52F5] px-6 py-3.5 text-base font-semibold text-white transition-colors hover:bg-[#1547d4]",children:["Start with a Free Assessment",m.jsx(zs,{className:"h-4 w-4 shrink-0",strokeWidth:2.5,"aria-hidden":!0})]})]})]})})]})]}):null}function Ku({partner:t,onOpenPickyModal:e}){const[n,s]=P.useState(!1),i=ko(),r=m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"flex h-[148px] w-[148px] items-center justify-center rounded-full bg-[#FAFAF9] drop-shadow-xl transition-shadow duration-300 group-hover:shadow-[0_8px_32px_rgba(15,23,42,0.08)] md:h-[168px] md:w-[168px]",children:m.jsx("div",{className:"flex h-[108px] w-[108px] items-center justify-center rounded-full bg-white p-4 shadow-[0_8px_28px_rgba(15,23,42,0.1)] md:h-[120px] md:w-[120px] md:p-5",children:n?m.jsx("span",{className:"w-full px-1 text-center text-xs font-medium wrap-break-word text-wl-body",children:t.name}):m.jsx("img",{src:t.logo,alt:`${t.name} logo`,className:"max-h-full max-w-full object-contain transition-transform duration-300",onError:()=>s(!0),decoding:"async"})})}),m.jsx("span",{className:"text-center text-base font-medium text-wl-body transition-colors group-hover:text-wl-primary",children:t.name})]}),o={initial:i?!1:{opacity:0,scale:.8}
1,animate:{opacity:1,scale:1},transition:{duration:.4,type:"spring",stiffness:100},whileHover:i?void 0:{scale:1.05,y:-5},className:"group flex cursor-pointer flex-col items-center gap-4 border-0 bg-transparent p-0 no-underline"};return t.opensModal?m.jsx(Qe.button,{type:"button","aria-label":`View ${t.name} partnership`,onClick:e,...o,children:r}):m.jsx(Qe.a,{href:t.href,target:"_blank",rel:"noopener noreferrer","aria-label":`Visit ${t.name}`,...o,children:r})}function zu(){const t=P.useRef(null),[e,n]=P.useState([]),[s,i]=P.useState(!1),r=ko();return P.useEffect(()=>{const o=()=>{if(!t.current)return;const c=t.current.offsetWidth,l=window.innerWidth;let u=148,h=32;l>=1024?(u=168,h=40):l>=768&&(u=168,h=32);let d=Math.floor((c+h)/(u+h));d=Math.max(2,Math.min(d,Ee.length));const p=[];let f=0,g=!1;for(;f<Ee.length;){const y=g?Math.max(1,d-1):d;p.push(Ee.slice(f,f+y)),f+=y,g=!g}n(p)},a=new ResizeObserver(o);return t.current&&a.observe(t.current),window.addEventListener("resize",o),o(),()=>{a.disconnect(),window.removeEventListener("resize",o)}},[]),m.jsxs("section",{className:"py-16 md:py-24",children:[m.jsxs("div",{className:"container",children:[m.jsxs(Qe.div,{initial:r?!1:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-14 md:mb-16",children:[m.jsxs("div",{className:"mb-6 flex items-center justify-center gap-2 text-sm font-semibold uppercase tracking-wide text-wl-primary",children:[m.jsx("span",{className:"h-0.5 w-6 bg-wl-primary","aria-hidden":!0}),"Trusted Network"]}),m.jsx("h1",{className:"mx-auto mb-4 max-w-3xl text-center font-bricolage text-4xl font-extrabold leading-[110%] tracking-wide! text-wl-heading lg:text-5xl",children:"We Work Closely With These Partners"}),m.jsx("p",{className:"mx-auto max-w-2xl text-center text-lg text-[#6272A0]",children:"Together with our partners, we help TikTok sellers recover every dollar they're owed. faster, smarter, and at scale."})]}),m.jsx("div",{ref:t,className:"mx-auto flex w-full max-w-4xl flex-col items-center gap-6 md:gap-8",children:e.map((o,a)=>m.jsx("div",{className:"flex w-full flex-wrap items-start justify-center gap-8 md:gap-10 lg:gap-12",children:o.map(c=>m.jsx(Ku,{partner:c,onOpenPickyModal:()=>i(!0)},c.id))},a))})]}),m.jsx(Uu,{open:s,onClose:()=>i(!1)})]})}function Gu(){const t=Io(!1);return m.jsx("section",{className:"bg-[#0B1120] py-20 md:py-24",children:m.jsxs("div",{className:"container text-center",children:[m.jsx("p",{className:"mb-6 text-sm font-semibold uppercase tracking-wide text-[#6B9AFF]",children:"Interested in joining our partner network?"}),m.jsx("h2",{className:"mx-auto mb-10 max-w-3xl font-bricolage text-4xl font-extrabold leading-[110%] tracking-wide text-white lg:text-5xl",children:"Let's Grow Together"}),m.jsx("div",{className:"flex flex-col items-center justify-center gap-5 sm:flex-row sm:gap-8",children:m.jsxs("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"inline-flex w-full items-center justify-center gap-2 rounded-lg bg-[#1A52F5] px-8 py-4 text-base font-semibold text-white transition-colors hover:bg-[#1547d4] sm:w-auto",children:["Book A Call",m.jsx(zs,{className:"h-4 w-4 shrink-0",strokeWidth:2.5,"aria-hidden":!0})]})})]})})}const _u=Gs===2?"/":"/revenue-recovery";function Xu(){return m.jsx(Oo,{children:m.jsxs("div",{className:"partner-landing min-h-screen w-full min-w-0 bg-white font-dm-sans text-slate-900 selection:bg-blue-200 selection:text-blue-900",children:[Gs===2?m.jsx(Wo,{sectionBasePath:_u}):m.jsx(Uo,{}),m.jsxs("main",{className:"w-full min-w-0",children:[m.jsx(zu,{}),m.jsx(Gu,{})]}),m.jsx(Ko,{whitelabel:!0})]})})}export{Xu as default};

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.